/*
This file is part of Ext JS 5.1.3.228

Copyright (c) 2011-2016 Sencha Inc

Contact:  http://www.sencha.com/contact

Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement provided with the Software or, alternatively, in accordance with the
terms contained in a written agreement between you and Sencha.

If you are unsure which license is appropriate for your use, please contact the sales department
at http://www.sencha.com/contact.

Version: 5.1.3.228 Build date: 2016-05-12 14:15:41 (8ca2a768eb8f8689993abbca3080a391b0e750d8)

*/
var Ext=Ext||{};Ext.Boot=Ext.Boot||(function(i){var p=document,g=[],l={disableCaching:(/[?&](?:cache|disableCacheBuster)\b/i.test(location.search)||!(/http[s]?\:/i.test(location.href))||/(^|[ ;])ext-cache=1/.test(p.cookie))?false:true,disableCachingParam:"_dc",loadDelay:false,preserveScripts:true,charset:"UTF-8"},r={},h=/\.css(?:\?|$)/i,o=p.createElement("a"),m=typeof window!=="undefined",j={browser:m,node:!m&&(typeof require==="function"),phantom:(window&&(window._phantom||window.callPhantom))||/PhantomJS/.test(window.navigator.userAgent)},n=(Ext.platformTags={}),e=function(s){},a=function(t,s,v){if(v){a(t,v)}if(t&&s&&typeof s==="object"){for(var u in s){t[u]=s[u]}}return t},q=function(){var u=false,x=Array.prototype.shift.call(arguments),t,v,s,w;if(typeof arguments[arguments.length-1]==="boolean"){u=Array.prototype.pop.call(arguments)}s=arguments.length;for(t=0;t<s;t++){w=arguments[t];if(typeof w==="object"){for(v in w){x[u?v.toLowerCase():v]=w[v]}}}return x},c=(typeof Object.keys=="function")?function(s){if(!s){return[]}return Object.keys(s)}:function(s){var t=[],u;for(u in s){if(s.hasOwnProperty(u)){t.push(u)}}return t},d={loading:0,loaded:0,apply:a,env:j,config:l,assetConfig:r,scripts:{},currentFile:null,suspendedQueue:[],currentRequest:null,syncMode:false,debug:e,useElements:true,listeners:[],Request:b,Entry:k,allowMultipleBrowsers:false,browserNames:{ie:"IE",firefox:"Firefox",safari:"Safari",chrome:"Chrome",opera:"Opera",dolfin:"Dolfin",edge:"Edge",webosbrowser:"webOSBrowser",chromeMobile:"ChromeMobile",chromeiOS:"ChromeiOS",silk:"Silk",other:"Other"},osNames:{ios:"iOS",android:"Android",windowsPhone:"WindowsPhone",webos:"webOS",blackberry:"BlackBerry",rimTablet:"RIMTablet",mac:"MacOS",win:"Windows",tizen:"Tizen",linux:"Linux",bada:"Bada",chromeOS:"ChromeOS",other:"Other"},browserPrefixes:{ie:"MSIE ",edge:"Edge/",firefox:"Firefox/",chrome:"Chrome/",safari:"Version/",opera:"OPR/",dolfin:"Dolfin/",webosbrowser:"wOSBrowser/",chromeMobile:"CrMo/",chromeiOS:"CriOS/",silk:"Silk/"},browserPriority:["edge","opera","dolfin","webosbrowser","silk","chromeiOS","chromeMobile","ie","firefox","safari","chrome"],osPrefixes:{tizen:"(Tizen )",ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",windowsPhone:"Windows Phone ",blackberry:"(?:BlackBerry|BB)(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/",chromeOS:"CrOS "},fallbackOSPrefixes:{windows:"win",mac:"mac",linux:"linux"},devicePrefixes:{iPhone:"iPhone",iPod:"iPod",iPad:"iPad"},maxIEVersion:12,detectPlatformTags:function(){var x=this,s=navigator.userAgent,y=/Mobile(\/|\s)/.test(s),w=document.createElement("div"),B=function(G,E){if(E===undefined){E=window}var F="on"+G.toLowerCase(),H=(F in w);if(!H){if(w.setAttribute&&w.removeAttribute){w.setAttribute(F,"");H=typeof w[F]==="function";if(typeof w[F]!=="undefined"){w[F]=undefined}w.removeAttribute(F)}}return H},A=function(){var F={},M,I,N,O,J,K,G,L,E;K=x.browserPriority.length;for(J=0;J<K;J++){O=x.browserPriority[J];if(!E){N=x.browserPrefixes[O];G=s.match(new RegExp("("+N+")([\\w\\._]+)"));L=G&&G.length>1?parseInt(G[2]):0;if(L){E=true}}else{L=0}F[O]=L}if(F.ie){var H=document.documentMode;if(H>=8){F.ie=H}}L=F.ie||false;M=Math.max(L,x.maxIEVersion);for(J=8;J<=M;++J){I="ie"+J;F[I+"m"]=L?L<=J:0;F[I]=L?L===J:0;F[I+"p"]=L?L>=J:0}return F},z=function(){var F={},K,L,N,H,I,G,E,J,M;N=c(x.osPrefixes);I=N.length;for(H=0,M=0;H<I;H++){L=N[H];K=x.osPrefixes[L];G=s.match(new RegExp("("+K+")([^\\s;]+)"));E=G?G[1]:null;if(E&&(E==="HTC_"||E==="Silk/")){J=2.3}else{J=G&&G.length>1?parseFloat(G[G.length-1]):0}if(J){M++}F[L]=J}N=c(x.fallbackOSPrefixes);I=N.length;for(H=0;H<I;H++){L=N[H];if(M===0){K=x.fallbackOSPrefixes[L];G=s.toLowerCase().match(new RegExp(K));F[L]=G?true:0}else{F[L]=0}}return F},C=function(){var F={},K,I,J,H,E,G;J=c(x.devicePrefixes);E=J.length;for(H=0;H<E;H++){I=J[H];K=x.devicePrefixes[I];G=s.match(new RegExp(K));F[I]=G?true:0}return F},u=A(),v=z(),D=C(),t=d.loadPlatformsParam();q(n,u,v,D,t,true);n.phone=!!((n.iphone||n.ipod)||(!n.silk&&(n.android&&(n.android<3||y)))||(n.blackberry&&y)||(n.windowsphone));n.tablet=!!(!n.phone&&(n.ipad||n.android||n.silk||n.rimtablet||(n.ie10&&/; Touch/.test(s))));n.touch=B("touchend")||navigator.maxTouchPoints||navigator.msMaxTouchPoints;n.desktop=!n.phone&&!n.tablet;n.cordova=n.phonegap=!!(window.PhoneGap||window.Cordova||window.cordova);n.webview=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(s);n.androidstock=(n.android<=4.3)&&(n.safari||n.silk);q(n,t,true)},loadPlatformsParam:function(){var s=window.location.search.substr(1),u=s.split("&"),w={},y,z={},B,x,v,t,A;for(y=0;y<u.length;y++){B=u[y].split("=");w[B[0]]=B[1]}if(w.platformTags){B=w.platformTags.split(",");for(x=B.length,y=0;y<x;y++){v=B[y].split(":");t=v[0];A=true;if(v.length>1){A=v[1];if(A==="false"||A==="0"){A=false}}z[t]=A}}return z},filterPlatform:function(u,y){u=g.concat(u||g);y=g.concat(y||g);var x=u.length,w=y.length,t=(!x&&w),v,s;for(v=0;v<x&&!t;v++){s=u[v];t=!!n[s]}for(v=0;v<w&&t;v++){s=y[v];t=!n[s]}return t},init:function(){var v=p.getElementsByTagName("script"),w=v.length,C=/\/ext(\-[a-z\-]+)?\.js$/,A,y,s,t,x,B,u,z;for(u=0;u<w;u++){s=(y=v[u]).src;if(!s){continue}t=y.readyState||null;if(!x){if(C.test(s)){d.hasReadyState=("readyState" in y);d.hasAsync=("async" in y)||!d.hasReadyState;x=s}}if(!d.scripts[B=d.canonicalUrl(s)]){e("creating entry "+B+" in Boot.init");A=new k({key:B,url:s,done:t===null||t==="loaded"||t==="complete",el:y,prop:"src"})}}if(!x){y=v[v.length-1];x=y.src;d.hasReadyState=("readyState" in y);d.hasAsync=("async" in y)||!d.hasReadyState}d.baseUrl=x.substring(0,x.lastIndexOf("/")+1);z=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"");d.origin=z;d.detectPlatformTags();Ext.filterPlatform=d.filterPlatform},canonicalUrl:function(v){o.href=v;var u=o.href,t=l.disableCachingParam,x=t?u.indexOf(t+"="):-1,w,s;if(x>0&&((w=u.charAt(x-1))==="?"||w==="&")){s=u.indexOf("&",x);s=(s<0)?"":u.substring(s);if(s&&w==="?"){++x;s=s.substring(1)}u=u.substring(0,x-1)+s}return u},getConfig:function(s){return s?d.config[s]:d.config},setConfig:function(t,v){if(typeof t==="string"){d.config[t]=v}else{for(var u in t){d.setConfig(u,t[u])}}return d},getHead:function(){return d.docHead||(d.docHead=p.head||p.getElementsByTagName("head")[0])},create:function(u,v,s){var t=s||{};t.url=u;t.key=v;return d.scripts[v]=new k(t)},getEntry:function(t,s){var u=d.canonicalUrl(t),v=d.scripts[u];if(!v){v=d.create(t,u,s)}return v},registerContent:function(t,u,v){var s={content:v,loaded:true,css:u==="css"};return d.getEntry(t,s)},processRequest:function(t,s){t.loadEntries(s)},load:function(s){e("Boot.load called");var s=new b(s);if(s.sync||d.syncMode){return d.loadSync(s)}if(d.currentRequest){e("current active request, suspending this request");s.getEntries();d.suspendedQueue.push(s)}else{d.currentRequest=s;d.processRequest(s,false)}return d},loadSync:function(s){e("Boot.loadSync called");var s=new b(s);d.syncMode++;d.processRequest(s,true);d.syncMode--;return d},loadBasePrefix:function(s){s=new b(s);s.prependBaseUrl=true;return d.load(s)},loadSyncBasePrefix:function(s){s=new b(s);s.prependBaseUrl=true;return d.loadSync(s)},requestComplete:function(t){var s;if(d.currentRequest===t){d.currentRequest=null;while(d.suspendedQueue.length>0){s=d.suspendedQueue.shift();if(!s.done){e("resuming suspended request");d.load(s);break}}}if(!d.currentRequest&&d.suspendedQueue.length==0){d.fireListeners()}},isLoading:function(){return !d.currentRequest&&d.suspendedQueue.length==0},fireListeners:function(){var s;while(d.isLoading()&&(s=d.listeners.shift())){s()}},onBootReady:function(s){if(!d.isLoading()){s()}else{d.listeners.push(s)}},getPathsFromIndexes:function(t,s){return b.prototype.getPathsFromIndexes(t,s)},createLoadOrderMap:function(s){return b.prototype.createLoadOrderMap(s)},fetch:function(s,t,B,v){v=(v===undefined)?!!t:v;var A=new XMLHttpRequest(),C,x,y,u=false,z=function(){if(A&&A.readyState==4){x=(A.status===1223)?204:(A.status===0&&((self.location||{}).protocol==="file:"||(self.location||{}).protocol==="ionp:"))?200:A.status;y=A.responseText;C={content:y,status:x,exception:u};if(t){t.call(B,C)}A=null}};if(v){A.onreadystatechange=z}try{e("fetching "+s+" "+(v?"async":"sync"));A.open("GET",s,v);A.send(null)}catch(w){u=w;z();return C}if(!v){z()}return C},notifyAll:function(s){s.notifyRequests()}};function b(s){if(s.$isRequest){return s}var s=s.url?s:{url:s},t=s.url,u=t.charAt?[t]:t,v=s.charset||d.config.charset;a(s,{urls:u,charset:v});a(this,s)}b.prototype={$isRequest:true,createLoadOrderMap:function(t){var s=t.length,u={},w,v;for(w=0;w<s;w++){v=t[w];u[v.path]=v}return u},getLoadIndexes:function(x,z,u,v,F){var G=u[x],y,w,E,D,B,A,C,t,s;if(z[x]){return z}z[x]=true;B=false;while(!B){A=false;for(C in z){if(z.hasOwnProperty(C)){G=u[C];if(!G){continue}s=this.prepareUrl(G.path);D=d.getEntry(s);if(!F||!D||!D.done){E=G.requires;if(v&&G.uses){E=E.concat(G.uses)}for(y=E.length,w=0;w<y;w++){t=E[w];if(!z[t]){z[t]=true;A=true}}}}}if(!A){B=true}}return z},getPathsFromIndexes:function(x,t){var v=[],y=[],u,s,w;for(u in x){if(x.hasOwnProperty(u)&&x[u]){v.push(u)}}v.sort(function(A,z){return A-z});for(s=v.length,w=0;w<s;w++){y.push(t[v[w]].path)}return y},expandUrl:function(s,y,v,B){if(typeof s=="string"){s=[s]}var z=this,t=z.loadOrder,A=z.loadOrderMap;if(t){A=A||z.createLoadOrderMap(t);z.loadOrderMap=A;y=y||{};var x=s.length,u=[],w,C;for(w=0;w<x;w++){C=A[s[w]];if(C){z.getLoadIndexes(C.idx,y,t,v,B)}else{u.push(s[w])}}return z.getPathsFromIndexes(y,t).concat(u)}return s},expandUrls:function(z,v){if(typeof z=="string"){z=[z]}var x=[],s={},C,y=z.length,w,B,u,A;for(w=0;w<y;w++){C=this.expandUrl(z[w],{},v,true);for(B=0,u=C.length;B<u;B++){A=C[B];if(!s[A]){s[A]=true;x.push(A)}}}if(x.length==0){x=z}return x},expandLoadOrder:function(){var t=this,u=t.urls,s;if(!t.expanded){s=this.expandUrls(u,true);t.expanded=true}else{s=u}t.urls=s;if(u.length!=s.length){t.sequential=true}return t},getUrls:function(){this.expandLoadOrder();return this.urls},prepareUrl:function(s){if(this.prependBaseUrl){return d.baseUrl+s}return s},getEntries:function(){var w=this,s=w.entries,u,v,x,t;if(!s){s=[];x=w.getUrls();for(u=0;u<x.length;u++){t=w.prepareUrl(x[u]);v=d.getEntry(t,{buster:w.buster,charset:w.charset});v.requests.push(w);s.push(v)}w.entries=s}return s},loadEntries:function(y){var x=this,t=x.getEntries(),s=t.length,z=x.loadStart||0,u,w,v;if(y!==undefined){x.sync=y}x.loaded=x.loaded||0;x.loading=x.loading||s;for(v=z;v<s;v++){w=t[v];if(!w.loaded){u=t[v].load(x.sync)}else{u=true}if(!u){x.loadStart=v;w.onDone(function(){x.loadEntries(y)});break}}x.processLoadedEntries()},processLoadedEntries:function(){var w=this,t=w.getEntries(),s=t.length,x=w.startIndex||0,u,v;if(!w.done){for(u=x;u<s;u++){v=t[u];if(!v.loaded){w.startIndex=u;return}if(!v.evaluated){v.evaluate()}if(v.error){w.error=true}}w.notify()}},notify:function(){var w=this;if(!w.done){var t=w.error,v=w[t?"failure":"success"],s=("delay" in w)?w.delay:(t?1:d.config.chainDelay),u=w.scope||w;w.done=true;if(v){if(s===0||s>0){setTimeout(function(){v.call(u,w)},s)}else{v.call(u,w)}}w.fireListeners();d.requestComplete(w)}},onDone:function(u){var t=this,s=t.listeners||(t.listeners=[]);if(t.done){u(t)}else{s.push(u)}},fireListeners:function(){var s=this.listeners,t;if(s){e("firing request listeners");while((t=s.shift())){t(this)}}}};function k(t){if(t.$isEntry){return t}e("creating entry for "+t.url);var y=t.charset||d.config.charset,x=Ext.manifest,s=x&&x.loader,u=(t.cache!==undefined)?t.cache:(s&&s.cache),w,v;if(d.config.disableCaching){if(u===undefined){u=!d.config.disableCaching}if(u===false){w=+new Date()}else{if(u!==true){w=u}}if(w){v=(s&&s.cacheParam)||d.config.disableCachingParam;w=v+"="+w}}a(t,{charset:y,buster:w,requests:[]});a(this,t)}k.prototype={$isEntry:true,done:false,evaluated:false,loaded:false,isCrossDomain:function(){var s=this;if(s.crossDomain===undefined){e("checking "+s.getLoadUrl()+" for prefix "+d.origin);s.crossDomain=(s.getLoadUrl().indexOf(d.origin)!==0)}return s.crossDomain},isCss:function(){var t=this;if(t.css===undefined){if(t.url){var s=d.assetConfig[t.url];t.css=s?s.type==="css":h.test(t.url)}else{t.css=false}}return this.css},getElement:function(s){var u=this,t=u.el;if(!t){e("creating element for "+u.url);if(u.isCss()){s=s||"link";t=p.createElement(s);if(s=="link"){t.rel="stylesheet";u.prop="href"}else{u.prop="textContent"}t.type="text/css"}else{s=s||"script";t=p.createElement(s);t.type="text/javascript";u.prop="src";if(u.charset){t.charset=u.charset}if(d.hasAsync){t.async=false}}u.el=t}return t},getLoadUrl:function(){var t=this,s=d.canonicalUrl(t.url);if(!t.loadUrl){t.loadUrl=!!t.buster?(s+(s.indexOf("?")===-1?"?":"&")+t.buster):s}return t.loadUrl},fetch:function(v){var t=this.getLoadUrl(),u=!!v.async,s=v.complete;d.fetch(t,s,this,u)},onContentLoaded:function(t){var x=this,s=t.status,w=t.content,v=t.exception,u=this.getLoadUrl();x.loaded=true;if((v||s===0)&&!j.phantom){x.error=("Failed loading synchronously via XHR: '"+u+"'. It's likely that the file is either being loaded from a different domain or from the local file system where cross origin requests are not allowed for security reasons. Try asynchronous loading instead.")||true;x.evaluated=true}else{if((s>=200&&s<300)||s===304||j.phantom||(s===0&&w.length>0)){x.content=w}else{x.error=("Failed loading synchronously via XHR: '"+u+"'. Please verify that the file exists. XHR status code: "+s)||true;x.evaluated=true}}},createLoadElement:function(w){var u=this,t=u.getElement(),s=function(){if(this.readyState==="loaded"||this.readyState==="complete"){if(w){w()}}},v=function(){u.error=true;if(w){w()}};u.preserve=true;t.onerror=v;if(d.hasReadyState){t.onreadystatechange=s}else{t.onload=w}t[u.prop]=u.getLoadUrl()},onLoadElementReady:function(){d.getHead().appendChild(this.getElement());this.evaluated=true},inject:function(x,w){e("injecting content for "+this.url);var y=this,z=d.getHead(),s=y.url,A=y.key,t,u,v,B;if(y.isCss()){y.preserve=true;B=A.substring(0,A.lastIndexOf("/")+1);t=p.createElement("base");t.href=B;if(z.firstChild){z.insertBefore(t,z.firstChild)}else{z.appendChild(t)}t.href=t.href;if(s){x+="\n/*# sourceURL="+A+" */"}u=y.getElement("style");v=("styleSheet" in u);z.appendChild(t);if(v){z.appendChild(u);u.styleSheet.cssText=x}else{u.textContent=x;z.appendChild(u)}z.removeChild(t)}else{if(s){x+="\n//# sourceURL="+A}Ext.globalEval(x)}return y},loadCrossDomain:function(){var t=this,s=function(){t.loaded=t.evaluated=t.done=true;t.notifyRequests()};t.createLoadElement(function(){s()});t.evaluateLoadElement();return false},loadElement:function(){var t=this,s=function(){t.loaded=t.evaluated=t.done=true;t.notifyRequests()};t.createLoadElement(function(){s()});t.evaluateLoadElement();return true},loadSync:function(){var s=this;s.fetch({async:false,complete:function(t){s.onContentLoaded(t)}});s.evaluate();s.notifyRequests()},load:function(t){var s=this;if(!s.loaded){if(s.loading){return false}s.loading=true;if(!t){if(s.isCrossDomain()){return s.loadCrossDomain()}else{if(!s.isCss()&&d.hasReadyState){s.createLoadElement(function(){s.loaded=true;s.notifyRequests()})}else{if(d.useElements&&!(s.isCss()&&j.phantom)){return s.loadElement()}else{s.fetch({async:!t,complete:function(u){s.onContentLoaded(u);s.notifyRequests()}})}}}}else{s.loadSync()}}return true},evaluateContent:function(){this.inject(this.content);this.content=null},evaluateLoadElement:function(){d.getHead().appendChild(this.getElement())},evaluate:function(){var s=this;if(!s.evaluated){if(s.evaluating){return}s.evaluating=true;if(s.content!==undefined){s.evaluateContent()}else{if(!s.error){s.evaluateLoadElement()}}s.evaluated=s.done=true;s.cleanup()}},cleanup:function(){var u=this,t=u.el,v;if(!t){return}if(!u.preserve){u.el=null;t.parentNode.removeChild(t);for(v in t){try{if(v!==u.prop){t[v]=null}delete t[v]}catch(s){}}}t.onload=t.onerror=t.onreadystatechange=i},notifyRequests:function(){var v=this.requests,s=v.length,t,u;for(t=0;t<s;t++){u=v[t];u.processLoadedEntries()}if(this.done){this.fireListeners()}},onDone:function(u){var t=this,s=t.listeners||(t.listeners=[]);if(t.done){u(t)}else{s.push(u)}},fireListeners:function(){var s=this.listeners,t;if(s&&s.length>0){e("firing event listeners for url "+this.url);while((t=s.shift())){t(this)}}}};Ext.disableCacheBuster=function(t,u){var s=new Date();s.setTime(s.getTime()+(t?10*365:-1)*24*60*60*1000);s=s.toGMTString();p.cookie="ext-cache=1; expires="+s+"; path="+(u||"/")};if(j.node){d.prototype.load=d.prototype.loadSync=function(s){require(filePath);onLoad.call(scope)};d.prototype.init=i}d.init();return d}(function(){}));Ext.globalEval=Ext.globalEval||(this.execScript?function(a){execScript(a)}:function($$code){eval.call(window,$$code)});if(!Function.prototype.bind){(function(){var a=Array.prototype.slice,b=function(d){var c=a.call(arguments,1),e=this;if(c.length){return function(){var g=arguments;return e.apply(d,g.length?c.concat(a.call(g)):c)}}c=null;return function(){return e.apply(d,arguments)}};Function.prototype.bind=b;b.$extjs=true}())}Ext.setResourcePath=function(c,b){var a=Ext.manifest||(Ext.manifest={}),d=a.resources||(a.resources={});if(a){if(typeof c!=="string"){Ext.apply(d,c)}else{d[c]=b}a.resources=d}};Ext.getResourcePath=function(g,e,a){if(typeof g!=="string"){e=g.pool;a=g.packageName;g=g.path}var d=Ext.manifest,h=d&&d.resources,c=h[e],b=[];if(c==null){c=h.path;if(c==null){c="resources"}}if(c){b.push(c)}if(a){b.push(a)}b.push(g);return b.join("/")};var Ext=Ext||{};if(!Ext.Direct){Ext.Direct={}}if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.app.bind){Ext.app.bind={}}if(!Ext.app.domain){Ext.app.domain={}}if(!Ext.app.route){Ext.app.route={}}if(!Ext.button){Ext.button={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}if(!Ext.dashboard){Ext.dashboard={}}if(!Ext.data){Ext.data={}}if(!Ext.data.field){Ext.data.field={}}if(!Ext.data.flash){Ext.data.flash={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.matrix){Ext.data.matrix={}}if(!Ext.data.operation){Ext.data.operation={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.schema){Ext.data.schema={}}if(!Ext.data.session){Ext.data.session={}}if(!Ext.data.validator){Ext.data.validator={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dd){Ext.dd={}}if(!Ext.direct){Ext.direct={}}if(!Ext.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.flash){Ext.flash={}}if(!Ext.form){Ext.form={}}if(!Ext.form.Action){Ext.form.Action={}}if(!Ext.form.action){Ext.form.action={}}if(!Ext.form.field){Ext.form.field={}}if(!Ext.form.trigger){Ext.form.trigger={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.layout){Ext.fx.layout={}}if(!Ext.fx.layout.card){Ext.fx.layout.card={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.fx.target){Ext.fx.target={}}if(!Ext.grid){Ext.grid={}}if(!Ext.grid.column){Ext.grid.column={}}if(!Ext.grid.feature){Ext.grid.feature={}}if(!Ext.grid.filters){Ext.grid.filters={}}if(!Ext.grid.filters.filter){Ext.grid.filters.filter={}}if(!Ext.grid.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}if(!Ext.grid.property){Ext.grid.property={}}if(!Ext.grid.selection){Ext.grid.selection={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.boxOverflow){Ext.layout.boxOverflow={}}if(!Ext.layout.component){Ext.layout.component={}}if(!Ext.layout.component.field){Ext.layout.component.field={}}if(!Ext.layout.container){Ext.layout.container={}}if(!Ext.layout.container.border){Ext.layout.container.border={}}if(!Ext.layout.container.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.overrides){Ext.overrides={}}if(!Ext.overrides.app){Ext.overrides.app={}}if(!Ext.overrides.app.domain){Ext.overrides.app.domain={}}if(!Ext.overrides.dom){Ext.overrides.dom={}}if(!Ext.overrides.event){Ext.overrides.event={}}if(!Ext.overrides.event.publisher){Ext.overrides.event.publisher={}}if(!Ext.overrides.plugin){Ext.overrides.plugin={}}if(!Ext.overrides.util){Ext.overrides.util={}}if(!Ext.panel){Ext.panel={}}if(!Ext.perf){Ext.perf={}}if(!Ext.picker){Ext.picker={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.resizer){Ext.resizer={}}if(!Ext.rtl){Ext.rtl={}}if(!Ext.rtl.button){Ext.rtl.button={}}if(!Ext.rtl.dd){Ext.rtl.dd={}}if(!Ext.rtl.dom){Ext.rtl.dom={}}if(!Ext.rtl.event){Ext.rtl.event={}}if(!Ext.rtl.form){Ext.rtl.form={}}if(!Ext.rtl.grid){Ext.rtl.grid={}}if(!Ext.rtl.grid.column){Ext.rtl.grid.column={}}if(!Ext.rtl.grid.plugin){Ext.rtl.grid.plugin={}}if(!Ext.rtl.layout){Ext.rtl.layout={}}if(!Ext.rtl.layout.component){Ext.rtl.layout.component={}}if(!Ext.rtl.layout.container){Ext.rtl.layout.container={}}if(!Ext.rtl.layout.container.boxOverflow){Ext.rtl.layout.container.boxOverflow={}}if(!Ext.rtl.panel){Ext.rtl.panel={}}if(!Ext.rtl.resizer){Ext.rtl.resizer={}}if(!Ext.rtl.scroll){Ext.rtl.scroll={}}if(!Ext.rtl.slider){Ext.rtl.slider={}}if(!Ext.rtl.tab){Ext.rtl.tab={}}if(!Ext.rtl.tip){Ext.rtl.tip={}}if(!Ext.rtl.tree){Ext.rtl.tree={}}if(!Ext.rtl.util){Ext.rtl.util={}}if(!Ext.rtl.view){Ext.rtl.view={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.selection){Ext.selection={}}if(!Ext.slider){Ext.slider={}}if(!Ext.sparkline){Ext.sparkline={}}if(!Ext.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}if(!Ext.tree){Ext.tree={}}if(!Ext.tree.plugin){Ext.tree.plugin={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.ux.form){Ext.ux.form={}}if(!Ext.ux.layout){Ext.ux.layout={}}if(!Ext.view){Ext.view={}}if(!Ext.window){Ext.window={}}(function(e){var b,m=["constructor","toString","valueOf","toLocaleString"],g={},q={},d=0,n,k,s,i,a,h,o,c,j,r=function(){var v,u;k=Ext.Base;s=Ext.ClassManager;for(v=m.length;v-->0;){u=(1<<v);q[g[u]=m[v]]=u}for(v in q){d|=q[v]}d=~d;Function.prototype.$isFunction=1;j=!!(s&&s.addAlias);i=Ext.Class.getPreprocessor("config").fn;a=Ext.Class.getPreprocessor("cachedConfig")&&Ext.Class.getPreprocessor("cachedConfig").fn;h=Ext.Class.getPreprocessor("platformConfig")&&Ext.Class.getPreprocessor("platformConfig").fn;c=Ext.Class.getPreprocessor("privates")&&Ext.Class.getPreprocessor("privates").fn;o=Ext.ClassManager.postprocessors.deprecated&&Ext.ClassManager.postprocessors.deprecated.fn;b=k.$staticMembers;if(!b){b=[];for(n in k){if(k.hasOwnProperty(n)){b.push(n)}}}e.derive=l;return l.apply(this,arguments)},t=function(D,z,C){var w=C.enumerableMembers,A=D.prototype,y,B,x,v,u;if(!z){return}if(j){D.addMembers(z)}else{for(y in z){v=z[y];if(v&&v.$isFunction&&!v.$isClass&&v!==Ext.emptyFn&&v!==Ext.identityFn){u=A.hasOwnProperty(y)&&A[y];if(u){v.$previous=u}A[y]=B=v;B.$owner=D;B.$name=y}else{A[y]=v}}for(x=1;w;x<<=1){if(w&x){w&=~x;y=g[x];A[y]=B=z[y];B.$owner=D;B.$name=y}}}},p=function(y){var u=function x(){return y.apply(this,arguments)||null},w,v;u.prototype=Ext.Object.chain(y.prototype);for(w=b.length;w-->0;){v=b[w];u[v]=k[v]}return u},l=function(z,C,X,u,B,L,A,U,x,N,G){var v=function F(){return this.constructor.apply(this,arguments)||null},W=v,w={enumerableMembers:u&d,onCreated:G,onBeforeCreated:t,aliases:U},J=X.alternateClassName||[],S=Ext.global,O,R,T,I,Q,aa,Z,y,P,E,V,M,H,Y,K=s.alternateToName||s.maps.alternateToName,D=s.nameToAlternates||s.maps.nameToAlternates;for(T=b.length;T-->0;){Z=b[T];v[Z]=k[Z]}if(X.$isFunction){X=X(v)}w.data=X;E=X.statics;delete X.statics;X.$className=z;if("$className" in X){v.$className=X.$className}v.extend(C);P=v.prototype;v.xtype=X.xtype=B[0];if(B){P.xtypes=B}P.xtypesChain=L;P.xtypesMap=A;X.alias=U;W.triggerExtended(v,X,w);if(X.onClassExtended){v.onExtended(X.onClassExtended,v);delete X.onClassExtended}if(X.privates&&c){c.call(Ext.Class,v,X)}if(E){if(j){v.addStatics(E)}else{for(V in E){if(E.hasOwnProperty(V)){Y=E[V];if(Y&&Y.$isFunction&&!Y.$isClass&&Y!==Ext.emptyFn&&Y!==Ext.identityFn){v[V]=H=Y;H.$owner=v;H.$name=V}v[V]=Y}}}}if(X.inheritableStatics){v.addInheritableStatics(X.inheritableStatics);delete X.inheritableStatics}if(P.onClassExtended){W.onExtended(P.onClassExtended,W);delete P.onClassExtended}if(X.config){i.call(Ext.Class,v,X)}if(X.cachedConfig&&a){a.call(Ext.Class,v,X);delete X.cachedConfig}if(X.platformConfig&&h){h.call(Ext.Class,v,X);delete X.platformConfig}if(X.deprecated&&o){o.call(Ext.ClassManager,z,v,X)}w.onBeforeCreated(v,w.data,w);for(T=0,Q=x&&x.length;T<Q;++T){v.mixin.apply(v,x[T])}for(T=0,Q=U.length;T<Q;T++){O=U[T];s.setAlias?s.setAlias(v,O):s.addAlias(v,O)}if(X.singleton){W=new v()}if(!(J instanceof Array)){J=[J]}M=s.getName(W);for(T=0,I=J.length;T<I;T++){R=J[T];s.classes[R]=W;if(j){s.addAlternate(v,R)}else{if(M){K[R]=M;J=D[M]||(D[M]=[]);J.push(R)}}}for(T=0,Q=N.length;T<Q;T+=2){aa=N[T];if(!aa){aa=S}aa[N[T+1]]=W}s.classes[z]=W;if(!j){if(M&&M!==z){K[z]=M;J=D[M]||(D[M]=[]);J.push(z)}}delete P.alternateClassName;if(w.onCreated){w.onCreated.call(W,W)}if(z){s.triggerCreated(z)}return W};e.derive=r}(Ext.cmd={}));var Ext=Ext||{};Ext._startTime=Date.now?Date.now():(+new Date());(function(){var b=this,h=Object.prototype,c=h.toString,o=["valueOf","toLocaleString","toString","constructor"],l=function(){},g=function(){},j=function(i){return i},n=function(){var i=n.caller.caller;return i.$owner.prototype[i.$name].apply(this,arguments)},a=Ext.manifest||{},k,d=/\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/,e=/^\\?\/Date\(([-+])?(\d+)(?:[+-]\d{4})?\)\\?\/$/;Ext.global=b;l.$nullFn=j.$nullFn=l.$emptyFn=j.$identityFn=g.$nullFn=true;g.$privacy="framework";Ext.suspendLayouts=Ext.resumeLayouts=l;for(k in {toString:1}){o=null}Ext.enumerables=o;Ext.apply=function(s,r,u){if(u){Ext.apply(s,u)}if(s&&r&&typeof r==="object"){var t,q,p;for(t in r){s[t]=r[t]}if(o){for(q=o.length;q--;){p=o[q];if(r.hasOwnProperty(p)){s[p]=r[p]}}}}return s};function m(r,i,s){var p,q;for(p in s){if(s.hasOwnProperty(p)){q=s[p];if(typeof q==="function"){q.$name=p;q.$owner=i;q.$previous=r.hasOwnProperty(p)?r[p]:n}r[p]=q}}}Ext.buildSettings=Ext.apply({baseCSSPrefix:"x-"},Ext.buildSettings||{});Ext.apply(Ext,{idSeed:0,idPrefix:"ext-",isSecure:/^https/i.test(window.location.protocol),enableGarbageCollector:false,enableListenerCollection:true,name:Ext.sandboxName||"Ext",privateFn:g,emptyFn:l,identityFn:j,frameStartTime:+new Date(),manifest:a,validIdRe:/^[a-z_][a-z0-9\-_]*$/i,BLANK_IMAGE_URL:"data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",makeIdSelector:function(i){return"#"+i},id:function(p,i){if(p&&p.id){return p.id}var q=(i||Ext.idPrefix)+(++Ext.idSeed);if(p){p.id=q}return q},returnId:function(i){return i.getId()},returnTrue:function(){return true},emptyString:new String(),baseCSSPrefix:Ext.buildSettings.baseCSSPrefix,$eventNameMap:{},$vendorEventRe:/^(DOMMouse|Moz.+|MS.+|webkit.+)/,canonicalEventName:function(i){return Ext.$eventNameMap[i]||(Ext.$eventNameMap[i]=(Ext.$vendorEventRe.test(i)?i:i.toLowerCase()))},applyIf:function(p,i){var q;if(p){for(q in i){if(p[q]===undefined){p[q]=i[q]}}}return p},now:(b.performance&&b.performance.now)?function(){return performance.now()}:(Date.now||(Date.now=function(){return +new Date()})),destroy:function(){var r=arguments.length,q,p;for(q=0;q<r;q++){p=arguments[q];if(p){if(Ext.isArray(p)){this.destroy.apply(this,p)}else{if(Ext.isFunction(p.destroy)){p.destroy()}}}}return null},destroyMembers:function(s){for(var u,r,t=1,q=arguments,p=q.length;t<p;t++){u=s[r=q[t]];if(u!=null){s[r]=Ext.destroy(u)}}},override:function(q,r){if(q.$isClass){q.override(r)}else{if(typeof q==="function"){Ext.apply(q.prototype,r)}else{var i=q.self,p;if(i&&i.$isClass){p=r.privates;if(p){r=Ext.apply({},r);delete r.privates;m(q,i,p)}m(q,i,r)}else{Ext.apply(q,r)}}}return q},valueFrom:function(q,i,p){return Ext.isEmpty(q,p)?i:q},isEmpty:function(i,p){return(i==null)||(!p?i==="":false)||(Ext.isArray(i)&&i.length===0)},isArray:("isArray" in Array)?Array.isArray:function(i){return c.call(i)==="[object Array]"},isDate:function(i){return c.call(i)==="[object Date]"},isMSDate:function(i){if(!Ext.isString(i)){return false}return e.test(i)},isObject:(c.call(null)==="[object Object]")?function(i){return i!==null&&i!==undefined&&c.call(i)==="[object Object]"&&i.ownerDocument===undefined}:function(i){return c.call(i)==="[object Object]"},isSimpleObject:function(i){return i instanceof Object&&i.constructor===Object},isPrimitive:function(p){var i=typeof p;return i==="string"||i==="number"||i==="boolean"},isFunction:(typeof document!=="undefined"&&typeof document.getElementsByTagName("body")==="function")?function(i){return !!i&&c.call(i)==="[object Function]"}:function(i){return !!i&&typeof i==="function"},isNumber:function(i){return typeof i==="number"&&isFinite(i)},isNumeric:function(i){return !isNaN(parseFloat(i))&&isFinite(i)},isString:function(i){return typeof i==="string"},isBoolean:function(i){return typeof i==="boolean"},isElement:function(i){return i?i.nodeType===1:false},isTextNode:function(i){return i?i.nodeName==="#text":false},isDefined:function(i){return typeof i!=="undefined"},isIterable:function(i){if(!i||typeof i.length!=="number"||typeof i==="string"||Ext.isFunction(i)){return false}if(!i.propertyIsEnumerable){return !!i.item}if(i.hasOwnProperty("length")&&!i.propertyIsEnumerable("length")){return true}return d.test(c.call(i))},isDebugEnabled:l,clone:function(u){if(u===null||u===undefined){return u}if(u.nodeType&&u.cloneNode){return u.cloneNode(true)}var t=c.call(u),s,q,p,v,r;if(t==="[object Date]"){return new Date(u.getTime())}if(t==="[object Array]"){s=u.length;v=[];while(s--){v[s]=Ext.clone(u[s])}}else{if(t==="[object Object]"&&u.constructor===Object){v={};for(r in u){v[r]=Ext.clone(u[r])}if(o){for(q=o.length;q--;){p=o[q];if(u.hasOwnProperty(p)){v[p]=u[p]}}}}}return v||u},getUniqueGlobalNamespace:function(){var q=this.uniqueGlobalNamespace,p;if(q===undefined){p=0;do{q="ExtBox"+(++p)}while(b[q]!==undefined);b[q]=Ext;this.uniqueGlobalNamespace=q}return q},functionFactoryCache:{},cacheableFunctionFactory:function(){var t=this,q=Array.prototype.slice.call(arguments),p=t.functionFactoryCache,i,r,s;if(Ext.isSandboxed){s=q.length;if(s>0){s--;q[s]="var Ext=window."+Ext.name+";"+q[s]}}i=q.join("");r=p[i];if(!r){r=Function.prototype.constructor.apply(Function.prototype,q);p[i]=r}return r},functionFactory:function(){var i=Array.prototype.slice.call(arguments),p;if(Ext.isSandboxed){p=i.length;if(p>0){p--;i[p]="var Ext=window."+Ext.name+";"+i[p]}}return Function.prototype.constructor.apply(Function.prototype,i)},Logger:{log:function(p,i){if(p&&b.console){if(!i||!(i in b.console)){i="log"}p="["+i.toUpperCase()+"] "+p;b.console[i](p)}},verbose:function(i){this.log(i,"verbose")},info:function(i){this.log(i,"info")},warn:function(i){this.log(i,"warn")},error:function(i){throw new Error(i)},deprecate:function(i){this.log(i,"warn")}}||{verbose:l,log:l,info:l,warn:l,error:function(i){throw new Error(i)},deprecate:l},getElementById:function(i){return document.getElementById(i)},splitAndUnescape:(function(){var i={};return function(r,q){if(!r){return[]}else{if(!q){return[r]}}var t=i[q]||(i[q]=new RegExp("\\\\"+q,"g")),p=[],u,s;u=r.split(q);while((s=u.shift())!==undefined){while(s.charAt(s.length-1)==="\\"&&u.length>0){s=s+q+u.shift()}s=s.replace(t,q);p.push(s)}return p}})()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=true}());(function(){function a(){var c=this,b=c.sourceClass,e=c.sourceMethod,d=c.msg;if(e){if(d){e+="(): ";e+=d}else{e+="()"}}if(b){e=e?(b+"."+e):b}return e||d||""}Ext.Error=function(c){if(Ext.isString(c)){c={msg:c}}var b=new Error();Ext.apply(b,c);b.message=b.message||b.msg;b.toString=a;return b};Ext.apply(Ext.Error,{ignore:false,raise:function(d){d=d||{};if(Ext.isString(d)){d={msg:d}}var c=this,g=c.raise.caller,e,b;if(g){if(!d.sourceMethod&&(b=g.$name)){d.sourceMethod=b}if(!d.sourceClass&&(b=g.$owner)&&(b=b.$className)){d.sourceClass=b}}if(c.handle(d)!==true){e=a.call(d);throw new Ext.Error(d)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.Array=(function(){var c=Array.prototype,l=c.slice,n=(function(){var v=[],e,u=20;if(!v.splice){return false}while(u--){v.push("A")}v.splice(15,0,"F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F");e=v.length;v.splice(13,0,"XXX");if(e+1!==v.length){return false}return true}()),m="indexOf" in c,h=true;function k(x,u){var e=x.length,w=new Array(e),v;for(v=0;v<e;v++){w[v]=v}w.sort(function(z,y){return u(x[z],x[y])||(z-y)});for(v=0;v<e;v++){w[v]=x[w[v]]}for(v=0;v<e;v++){x[v]=w[v]}return x}try{if(typeof document!=="undefined"){l.call(document.getElementsByTagName("body"))}}catch(p){h=false}var j=function(u,e){return(e<0)?Math.max(0,u.length+e):Math.min(u.length,e)},t=function(B,A,u,E){var F=E?E.length:0,w=B.length,C=j(B,A);if(C===w){if(F){B.push.apply(B,E)}}else{var z=Math.min(u,w-C),D=C+z,v=D+F-z,e=w-D,x=w-z,y;if(v<D){for(y=0;y<e;++y){B[v+y]=B[D+y]}}else{if(v>D){for(y=e;y--;){B[v+y]=B[D+y]}}}if(F&&C===x){B.length=x;B.push.apply(B,E)}else{B.length=x+F;for(y=0;y<F;++y){B[C+y]=E[y]}}}return B},g=function(w,e,v,u){if(u&&u.length){if(e===0&&!v){w.unshift.apply(w,u)}else{if(e<w.length){w.splice.apply(w,[e,v].concat(u))}else{w.push.apply(w,u)}}}else{w.splice(e,v)}return w},b=function(v,e,u){return t(v,e,u)},o=function(v,e,u){v.splice(e,u);return v},i=function(x,e,v){var w=j(x,e),u=x.slice(e,j(x,w+v));if(arguments.length<4){t(x,w,v)}else{t(x,w,v,l.call(arguments,3))}return u},d=function(e){return e.splice.apply(e,l.call(arguments,1))},s=n?o:b,q=n?g:t,r=n?d:i,a={binarySearch:function(A,x,v,e,z){var w=A.length,u,y;if(v instanceof Function){z=v;v=0;e=w}else{if(e instanceof Function){z=e;e=w}else{if(v===undefined){v=0}if(e===undefined){e=w}z=z||a.lexicalCompare}}--e;while(v<=e){u=(v+e)>>1;y=z(x,A[u]);if(y>=0){v=u+1}else{if(y<0){e=u-1}}}return v},defaultCompare:function(e,u){return(e<u)?-1:((e>u)?1:0)},lexicalCompare:function(e,u){e=String(e);u=String(u);return(e<u)?-1:((e>u)?1:0)},each:function(y,w,v,e){y=a.from(y);var u,x=y.length;if(e!==true){for(u=0;u<x;u++){if(w.call(v||y[u],y[u],u,y)===false){return u}}}else{for(u=x-1;u>-1;u--){if(w.call(v||y[u],y[u],u,y)===false){return u}}}return true},forEach:("forEach" in c)?function(v,u,e){return v.forEach(u,e)}:function(x,v,u){for(var e=0,w=x.length;e<w;e++){v.call(u,x[e],e,x)}},indexOf:m?function(v,e,u){return c.indexOf.call(v,e,u)}:function(x,v,w){var e,u=x.length;for(e=(w<0)?Math.max(0,u+w):w||0;e<u;e++){if(x[e]===v){return e}}return -1},contains:m?function(u,e){return c.indexOf.call(u,e)!==-1}:function(w,v){var e,u;for(e=0,u=w.length;e<u;e++){if(w[e]===v){return true}}return false},toArray:function(v,x,e){if(!v||!v.length){return[]}if(typeof v==="string"){v=v.split("")}if(h){return l.call(v,x||0,e||v.length)}var w=[],u;x=x||0;e=e?((e<0)?v.length+e:e):v.length;for(u=x;u<e;u++){w.push(v[u])}return w},pluck:function(y,e){var u=[],v,x,w;for(v=0,x=y.length;v<x;v++){w=y[v];u.push(w[e])}return u},map:("map" in c)?function(v,u,e){return v.map(u,e)}:function(y,x,w){var v=[],u=0,e=y.length;for(;u<e;u++){v[u]=x.call(w,y[u],u,y)}return v},every:("every" in c)?function(v,u,e){return v.every(u,e)}:function(x,v,u){var e=0,w=x.length;for(;e<w;++e){if(!v.call(u,x[e],e,x)){return false}}return true},some:("some" in c)?function(v,u,e){return v.some(u,e)}:function(x,v,u){var e=0,w=x.length;for(;e<w;++e){if(v.call(u,x[e],e,x)){return true}}return false},equals:function(x,w){var u=x.length,e=w.length,v;if(x===w){return true}if(u!==e){return false}for(v=0;v<u;++v){if(x[v]!==w[v]){return false}}return true},clean:function(x){var u=[],e=0,w=x.length,v;for(;e<w;e++){v=x[e];if(!Ext.isEmpty(v)){u.push(v)}}return u},unique:function(x){var w=[],e=0,v=x.length,u;for(;e<v;e++){u=x[e];if(a.indexOf(w,u)===-1){w.push(u)}}return w},filter:("filter" in c)?function(v,u,e){return v.filter(u,e)}:function(y,w,v){var u=[],e=0,x=y.length;for(;e<x;e++){if(w.call(v,y[e],e,y)){u.push(y[e])}}return u},findBy:function(x,w,v){var u=0,e=x.length;for(;u<e;u++){if(w.call(v||x,x[u],u)){return x[u]}}return null},from:function(v,u){if(v===undefined||v===null){return[]}if(Ext.isArray(v)){return(u)?l.call(v):v}var e=typeof v;if(v&&v.length!==undefined&&e!=="string"&&(e!=="function"||!v.apply)){return a.toArray(v)}return[v]},remove:function(v,u){var e=a.indexOf(v,u);if(e!==-1){s(v,e,1)}return v},removeAt:function(w,u,v){var e=w.length;if(u>=0&&u<e){v=v||1;v=Math.min(v,e-u);s(w,u,v)}return w},include:function(u,e){if(!a.contains(u,e)){u.push(e)}},clone:function(e){return l.call(e)},merge:function(){var e=l.call(arguments),w=[],u,v;for(u=0,v=e.length;u<v;u++){w=w.concat(e[u])}return a.unique(w)},intersect:function(){var e=[],v=l.call(arguments),G,E,A,D,H,w,u,C,F,x,B,z,y;if(!v.length){return e}G=v.length;for(B=H=0;B<G;B++){w=v[B];if(!D||w.length<D.length){D=w;H=B}}D=a.unique(D);s(v,H,1);u=D.length;G=v.length;for(B=0;B<u;B++){C=D[B];x=0;for(z=0;z<G;z++){E=v[z];A=E.length;for(y=0;y<A;y++){F=E[y];if(C===F){x++;break}}}if(x===G){e.push(C)}}return e},difference:function(u,e){var z=l.call(u),x=z.length,w,v,y;for(w=0,y=e.length;w<y;w++){for(v=0;v<x;v++){if(z[v]===e[w]){s(z,v,1);v--;x--}}}return z},slice:([1,2].slice(1,undefined).length?function(v,u,e){return l.call(v,u,e)}:function(v,u,e){if(typeof u==="undefined"){return l.call(v)}if(typeof e==="undefined"){return l.call(v,u)}return l.call(v,u,e)}),sort:function(u,e){return k(u,e||a.lexicalCompare)},flatten:function(v){var u=[];function e(w){var y,z,x;for(y=0,z=w.length;y<z;y++){x=w[y];if(Ext.isArray(x)){e(x)}else{u.push(x)}}return u}return e(v)},min:function(y,x){var u=y[0],e,w,v;for(e=0,w=y.length;e<w;e++){v=y[e];if(x){if(x(u,v)===1){u=v}}else{if(v<u){u=v}}}return u},max:function(y,x){var e=y[0],u,w,v;for(u=0,w=y.length;u<w;u++){v=y[u];if(x){if(x(e,v)===-1){e=v}}else{if(v>e){e=v}}}return e},mean:function(e){return e.length>0?a.sum(e)/e.length:undefined},sum:function(x){var u=0,e,w,v;for(e=0,w=x.length;e<w;e++){v=x[e];u+=v}return u},toMap:function(x,e,v){var w={},u=x.length;if(!e){while(u--){w[x[u]]=u+1}}else{if(typeof e==="string"){while(u--){w[x[u][e]]=u+1}}else{while(u--){w[e.call(v,x[u])]=u+1}}}return w},toValueMap:function(z,w,E,y){var e={},v=z.length,u,x,C,A,D,B;if(!w){while(v--){B=z[v];e[B]=B}}else{if(!(A=(typeof w!=="string"))){y=E}x=y===1;u=y===2;while(v--){B=z[v];D=A?w.call(E,B):B[w];if(x){if(D in e){e[D].push(B)}else{e[D]=[B]}}else{if(u&&(D in e)){if((C=e[D]) instanceof Array){C.push(B)}else{e[D]=[C,B]}}else{e[D]=B}}}}return e},erase:s,insert:function(v,u,e){return q(v,u,0,e)},replace:q,splice:r,push:function(w){var e=arguments.length,v=1,u;if(w===undefined){w=[]}else{if(!Ext.isArray(w)){w=[w]}}for(;v<e;v++){u=arguments[v];Array.prototype.push[Ext.isIterable(u)?"apply":"call"](w,u)}return w},numericSortFn:function(u,e){return u-e}};Ext.each=a.each;a.union=a.merge;Ext.min=a.min;Ext.max=a.max;Ext.sum=a.sum;Ext.mean=a.mean;Ext.flatten=a.flatten;Ext.clean=a.clean;Ext.unique=a.unique;Ext.pluck=a.pluck;Ext.toArray=function(){return a.toArray.apply(a,arguments)};return a}());Ext.String=(function(){var i=/^[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+|[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+$/g,m=/('|\\)/g,b=/([-.*+?\^${}()|\[\]\/\\])/g,o=/^\s+|\s+$/g,j=/\s+/,l=/(^[^a-z]*|[^\w])/gi,e,a,h,d,g=function(q,p){return e[p]},k=function(q,p){return(p in a)?a[p]:String.fromCharCode(parseInt(p.substr(2),10))},c=function(q,p){if(q===null||q===undefined||p===null||p===undefined){return false}return p.length<=q.length},n;return n={insert:function(r,t,q){if(!r){return t}if(!t){return r}var p=r.length;if(!q&&q!==0){q=p}if(q<0){q*=-1;if(q>=p){q=0}else{q=p-q}}if(q===0){r=t+r}else{if(q>=r.length){r+=t}else{r=r.substr(0,q)+t+r.substr(q)}}return r},startsWith:function(r,t,q){var p=c(r,t);if(p){if(q){r=r.toLowerCase();t=t.toLowerCase()}p=r.lastIndexOf(t,0)===0}return p},endsWith:function(t,q,r){var p=c(t,q);if(p){if(r){t=t.toLowerCase();q=q.toLowerCase()}p=t.indexOf(q,t.length-q.length)!==-1}return p},createVarName:function(p){return p.replace(l,"")},htmlEncode:function(p){return(!p)?p:String(p).replace(h,g)},htmlDecode:function(p){return(!p)?p:String(p).replace(d,k)},hasHtmlCharacters:function(p){return h.test(p)},addCharacterEntities:function(q){var p=[],t=[],r,s;for(r in q){s=q[r];a[r]=s;e[s]=r;p.push(s);t.push(r)}h=new RegExp("("+p.join("|")+")","g");d=new RegExp("("+t.join("|")+"|&#[0-9]{1,5};)","g")},resetCharacterEntities:function(){e={};a={};this.addCharacterEntities({"&amp;":"&","&gt;":">","&lt;":"<","&quot;":'"',"&#39;":"'"})},urlAppend:function(q,p){if(!Ext.isEmpty(p)){return q+(q.indexOf("?")===-1?"?":"&")+p}return q},trim:function(p){if(p){p=p.replace(i,"")}return p||""},capitalize:function(p){if(p){p=p.charAt(0).toUpperCase()+p.substr(1)}return p||""},uncapitalize:function(p){if(p){p=p.charAt(0).toLowerCase()+p.substr(1)}return p||""},ellipsis:function(r,q,s){if(r&&r.length>q){if(s){var t=r.substr(0,q-2),p=Math.max(t.lastIndexOf(" "),t.lastIndexOf("."),t.lastIndexOf("!"),t.lastIndexOf("?"));if(p!==-1&&p>=(q-15)){return t.substr(0,p)+"..."}}return r.substr(0,q-3)+"..."}return r},escapeRegex:function(p){return p.replace(b,"\\$1")},createRegex:function(t,s,q,p){var r=t;if(t!=null&&!t.exec){r=n.escapeRegex(String(t));if(s!==false){r="^"+r}if(q!==false){r+="$"}r=new RegExp(r,(p!==false)?"i":"")}return r},escape:function(p){return p.replace(m,"\\$1")},toggle:function(q,r,p){return q===r?p:r},leftPad:function(q,r,s){var p=String(q);s=s||" ";while(p.length<r){p=s+p}return p},repeat:function(t,s,q){if(s<1){s=0}for(var p=[],r=s;r--;){p.push(t)}return p.join(q||"")},splitWords:function(p){if(p&&typeof p=="string"){return p.replace(o,"").split(j)}return p||[]}}}());Ext.String.resetCharacterEntities();Ext.htmlEncode=Ext.String.htmlEncode;Ext.htmlDecode=Ext.String.htmlDecode;Ext.urlAppend=Ext.String.urlAppend;Ext.Date=(function(){var g,e=Date,l=/(\\.)/g,a=/([gGhHisucUOPZ]|MS)/,h=/([djzmnYycU]|MS)/,k=/\\/gi,c=/\{(\d+)\}/g,i=new RegExp("\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/"),d=Ext.String.leftPad,b=["var me = this, dt, y, m, d, h, i, s, ms, o, O, z, zz, u, v, W, year, jan4, week1monday, daysInMonth, dayMatched,","def = me.defaults,","from = Ext.Number.from,","results = String(input).match(me.parseRegexes[{0}]);","if(results){","{1}","if(u != null){","v = new Date(u * 1000);","}else{","dt = me.clearTime(new Date);","y = from(y, from(def.y, dt.getFullYear()));","m = from(m, from(def.m - 1, dt.getMonth()));","dayMatched = d !== undefined;","d = from(d, from(def.d, dt.getDate()));","if (!dayMatched) {","dt.setDate(1);","dt.setMonth(m);","dt.setFullYear(y);","daysInMonth = me.getDaysInMonth(dt);","if (d > daysInMonth) {","d = daysInMonth;","}","}","h  = from(h, from(def.h, dt.getHours()));","i  = from(i, from(def.i, dt.getMinutes()));","s  = from(s, from(def.s, dt.getSeconds()));","ms = from(ms, from(def.ms, dt.getMilliseconds()));","if(z >= 0 && y >= 0){","v = me.add(new Date(y < 100 ? 100 : y, 0, 1, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);","v = !strict? v : (strict === true && (z <= 364 || (me.isLeapYear(v) && z <= 365))? me.add(v, me.DAY, z) : null);","}else if(strict === true && !me.isValid(y, m + 1, d, h, i, s, ms)){","v = null;","}else{","if (W) {","year = y || (new Date()).getFullYear();","jan4 = new Date(year, 0, 4, 0, 0, 0);","d = jan4.getDay();","week1monday = new Date(jan4.getTime() - ((d === 0 ? 6 : d - 1) * 86400000));","v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000 + 43200000)));","} else {","v = me.add(new Date(y < 100 ? 100 : y, m, d, h, i, s, ms), me.YEAR, y < 100 ? y - 100 : 0);","}","}","}","}","if(v){","if(zz != null){","v = me.add(v, me.SECOND, -v.getTimezoneOffset() * 60 - zz);","}else if(o){","v = me.add(v, me.MINUTE, -v.getTimezoneOffset() + (sn == '+'? -1 : 1) * (hr * 60 + mn));","}","}","return (v != null) ? v : null;"].join("\n");if(!Date.prototype.toISOString){Date.prototype.toISOString=function(){var m=this;return d(m.getUTCFullYear(),4,"0")+"-"+d(m.getUTCMonth()+1,2,"0")+"-"+d(m.getUTCDate(),2,"0")+"T"+d(m.getUTCHours(),2,"0")+":"+d(m.getUTCMinutes(),2,"0")+":"+d(m.getUTCSeconds(),2,"0")+"."+d(m.getUTCMilliseconds(),3,"0")+"Z"}}function j(n){var m=Array.prototype.slice.call(arguments,1);return n.replace(c,function(o,p){return m[p]})}return g={now:e.now,toString:function(m){if(!m){m=new e()}return m.getFullYear()+"-"+d(m.getMonth()+1,2,"0")+"-"+d(m.getDate(),2,"0")+"T"+d(m.getHours(),2,"0")+":"+d(m.getMinutes(),2,"0")+":"+d(m.getSeconds(),2,"0")},getElapsed:function(n,m){return Math.abs(n-(m||g.now()))},useStrict:false,formatCodeToRegex:function(n,m){var o=g.parseCodes[n];if(o){o=typeof o==="function"?o():o;g.parseCodes[n]=o}return o?Ext.applyIf({c:o.c?j(o.c,m||"{0}"):o.c},o):{g:0,c:null,s:Ext.String.escapeRegex(n)}},parseFunctions:{MS:function(n,m){var o=(n||"").match(i);return o?new e(((o[1]||"")+o[2])*1):null},time:function(n,m){var o=parseInt(n,10);if(o||o===0){return new e(o)}return null},timestamp:function(n,m){var o=parseInt(n,10);if(o||o===0){return new e(o*1000)}return null}},parseRegexes:[],formatFunctions:{MS:function(){return"\\/Date("+this.getTime()+")\\/"},time:function(){return this.getTime().toString()},timestamp:function(){return g.format(this,"U")}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:"m/d/Y",getShortMonthName:function(m){return g.monthNames[m].substring(0,3)},getShortDayName:function(m){return g.dayNames[m].substring(0,3)},getMonthNumber:function(m){return g.monthNumbers[m.substring(0,1).toUpperCase()+m.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(m){return a.test(m.replace(l,""))},formatContainsDateInfo:function(m){return h.test(m.replace(l,""))},unescapeFormat:function(m){return m.replace(k,"")},formatCodes:{d:"Ext.String.leftPad(m.getDate(), 2, '0')",D:"Ext.Date.getShortDayName(m.getDay())",j:"m.getDate()",l:"Ext.Date.dayNames[m.getDay()]",N:"(m.getDay() ? m.getDay() : 7)",S:"Ext.Date.getSuffix(m)",w:"m.getDay()",z:"Ext.Date.getDayOfYear(m)",W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(m), 2, '0')",F:"Ext.Date.monthNames[m.getMonth()]",m:"Ext.String.leftPad(m.getMonth() + 1, 2, '0')",M:"Ext.Date.getShortMonthName(m.getMonth())",n:"(m.getMonth() + 1)",t:"Ext.Date.getDaysInMonth(m)",L:"(Ext.Date.isLeapYear(m) ? 1 : 0)",o:"(m.getFullYear() + (Ext.Date.getWeekOfYear(m) == 1 && m.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(m) >= 52 && m.getMonth() < 11 ? -1 : 0)))",Y:"Ext.String.leftPad(m.getFullYear(), 4, '0')",y:"('' + m.getFullYear()).substring(2, 4)",a:"(m.getHours() < 12 ? 'am' : 'pm')",A:"(m.getHours() < 12 ? 'AM' : 'PM')",g:"((m.getHours() % 12) ? m.getHours() % 12 : 12)",G:"m.getHours()",h:"Ext.String.leftPad((m.getHours() % 12) ? m.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(m.getHours(), 2, '0')",i:"Ext.String.leftPad(m.getMinutes(), 2, '0')",s:"Ext.String.leftPad(m.getSeconds(), 2, '0')",u:"Ext.String.leftPad(m.getMilliseconds(), 3, '0')",O:"Ext.Date.getGMTOffset(m)",P:"Ext.Date.getGMTOffset(m, true)",T:"Ext.Date.getTimezone(m)",Z:"(m.getTimezoneOffset() * -60)",c:function(){var q="Y-m-dTH:i:sP",o=[],n,m=q.length,p;for(n=0;n<m;++n){p=q.charAt(n);o.push(p==="T"?"'T'":g.getFormatCode(p))}return o.join(" + ")},C:function(){return"m.toISOString()"},U:"Math.round(m.getTime() / 1000)"},isValid:function(v,n,u,r,p,q,o){r=r||0;p=p||0;q=q||0;o=o||0;var t=g.add(new e(v<100?100:v,n-1,u,r,p,q,o),g.YEAR,v<100?v-100:0);return v===t.getFullYear()&&n===t.getMonth()+1&&u===t.getDate()&&r===t.getHours()&&p===t.getMinutes()&&q===t.getSeconds()&&o===t.getMilliseconds()},parse:function(n,q,m){var o=g.parseFunctions;if(o[q]==null){g.createParser(q)}return o[q].call(g,n,Ext.isDefined(m)?m:g.useStrict)},parseDate:function(n,o,m){return g.parse(n,o,m)},getFormatCode:function(n){var m=g.formatCodes[n];if(m){m=typeof m==="function"?m():m;g.formatCodes[n]=m}return m||("'"+Ext.String.escape(n)+"'")},createFormat:function(q){var p=[],m=false,o="",n;for(n=0;n<q.length;++n){o=q.charAt(n);if(!m&&o==="\\"){m=true}else{if(m){m=false;p.push("'"+Ext.String.escape(o)+"'")}else{if(o==="\n"){p.push("'\\n'")}else{p.push(g.getFormatCode(o))}}}}g.formatFunctions[q]=Ext.functionFactory("var m=this;return "+p.join("+"))},createParser:function(v){var n=g.parseRegexes.length,w=1,o=[],u=[],s=false,m="",q=0,r=v.length,t=[],p;for(;q<r;++q){m=v.charAt(q);if(!s&&m==="\\"){s=true}else{if(s){s=false;u.push(Ext.String.escape(m))}else{p=g.formatCodeToRegex(m,w);w+=p.g;u.push(p.s);if(p.g&&p.c){if(p.calcAtEnd){t.push(p.c)}else{o.push(p.c)}}}}}o=o.concat(t);g.parseRegexes[n]=new RegExp("^"+u.join("")+"$","i");g.parseFunctions[v]=Ext.functionFactory("input","strict",j(b,n,o.join("")))},parseCodes:{d:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(3[0-1]|[1-2][0-9]|0[1-9])"},j:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(3[0-1]|[1-2][0-9]|[1-9])"},D:function(){for(var m=[],n=0;n<7;m.push(g.getShortDayName(n)),++n){}return{g:0,c:null,s:"(?:"+m.join("|")+")"}},l:function(){return{g:0,c:null,s:"(?:"+g.dayNames.join("|")+")"}},N:{g:0,c:null,s:"[1-7]"},S:{g:0,c:null,s:"(?:st|nd|rd|th)"},w:{g:0,c:null,s:"[0-6]"},z:{g:1,c:"z = parseInt(results[{0}], 10);\n",s:"(\\d{1,3})"},W:{g:1,c:"W = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},F:function(){return{g:1,c:"m = parseInt(me.getMonthNumber(results[{0}]), 10);\n",s:"("+g.monthNames.join("|")+")"}},M:function(){for(var m=[],n=0;n<12;m.push(g.getShortMonthName(n)),++n){}return Ext.applyIf({s:"("+m.join("|")+")"},g.formatCodeToRegex("F"))},m:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(1[0-2]|0[1-9])"},n:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(1[0-2]|[1-9])"},t:{g:0,c:null,s:"(?:\\d{2})"},L:{g:0,c:null,s:"(?:1|0)"},o:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},Y:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},y:{g:1,c:"var ty = parseInt(results[{0}], 10);\ny = ty > me.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{2})"},a:{g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(am|pm|AM|PM)",calcAtEnd:true},A:{g:1,c:"if (/(am)/i.test(results[{0}])) {\nif (!h || h == 12) { h = 0; }\n} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM|am|pm)",calcAtEnd:true},g:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|[0-9])"},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|1[0-9]|[0-9])"},h:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|0[1-9])"},H:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|[0-1][0-9])"},i:{g:1,c:"i = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},s:{g:1,c:"s = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},u:{g:1,c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n",s:"(\\d+)"},O:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),","mn = o.substring(3,5) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{4})"},P:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),","mn = o.substring(4,6) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{2}:\\d{2})"},T:{g:0,c:null,s:"[A-Z]{1,5}"},Z:{g:1,c:"zz = results[{0}] * 1;\nzz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var o=[],m=[g.formatCodeToRegex("Y",1),g.formatCodeToRegex("m",2),g.formatCodeToRegex("d",3),g.formatCodeToRegex("H",4),g.formatCodeToRegex("i",5),g.formatCodeToRegex("s",6),{c:"ms = results[7] || '0'; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n"},{c:["if(results[8]) {","if(results[8] == 'Z'){","zz = 0;","}else if (results[8].indexOf(':') > -1){",g.formatCodeToRegex("P",8).c,"}else{",g.formatCodeToRegex("O",8).c,"}","}"].join("\n")}],p,n;for(p=0,n=m.length;p<n;++p){o.push(m[p].c)}return{g:1,c:o.join(""),s:[m[0].s,"(?:","-",m[1].s,"(?:","-",m[2].s,"(?:","(?:T| )?",m[3].s,":",m[4].s,"(?::",m[5].s,")?","(?:(?:\\.|,)(\\d+))?","(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?",")?",")?",")?"].join("")}},U:{g:1,c:"u = parseInt(results[{0}], 10);\n",s:"(-?\\d+)"}},dateFormat:function(m,n){return g.format(m,n)},isEqual:function(n,m){if(n&&m){return(n.getTime()===m.getTime())}return !(n||m)},format:function(n,o){var m=g.formatFunctions;if(!Ext.isDate(n)){return""}if(m[o]==null){g.createFormat(o)}return m[o].call(n)+""},getTimezone:function(m){return m.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,5})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getGMTOffset:function(m,n){var o=m.getTimezoneOffset();return(o>0?"-":"+")+Ext.String.leftPad(Math.floor(Math.abs(o)/60),2,"0")+(n?":":"")+Ext.String.leftPad(Math.abs(o%60),2,"0")},getDayOfYear:function(p){var o=0,r=g.clone(p),n=p.getMonth(),q;for(q=0,r.setDate(1),r.setMonth(0);q<n;r.setMonth(++q)){o+=g.getDaysInMonth(r)}return o+p.getDate()-1},getWeekOfYear:(function(){var m=86400000,n=7*m;return function(p){var q=e.UTC(p.getFullYear(),p.getMonth(),p.getDate()+3)/m,o=Math.floor(q/7),r=new e(o*n).getUTCFullYear();return o-Math.floor(e.UTC(r,0,7)/n)+1}}()),isLeapYear:function(m){var n=m.getFullYear();return !!((n&3)===0&&(n%100||(n%400===0&&n)))},getFirstDayOfMonth:function(n){var m=(n.getDay()-(n.getDate()-1))%7;return(m<0)?(m+7):m},getLastDayOfMonth:function(m){return g.getLastDateOfMonth(m).getDay()},getFirstDateOfMonth:function(m){return new e(m.getFullYear(),m.getMonth(),1)},getLastDateOfMonth:function(m){return new e(m.getFullYear(),m.getMonth(),g.getDaysInMonth(m))},getDaysInMonth:(function(){var m=[31,28,31,30,31,30,31,31,30,31,30,31];return function(o){var n=o.getMonth();return n===1&&g.isLeapYear(o)?29:m[n]}}()),getSuffix:function(m){switch(m.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},clone:function(m){return new e(m.getTime())},isDST:function(m){return new e(m.getFullYear(),0,1).getTimezoneOffset()!==m.getTimezoneOffset()},clearTime:function(m,q){if(isNaN(m.getTime())){return m}if(q){return g.clearTime(g.clone(m))}var o=m.getDate(),n,p;m.setHours(0);m.setMinutes(0);m.setSeconds(0);m.setMilliseconds(0);if(m.getDate()!==o){for(n=1,p=g.add(m,g.HOUR,n);p.getDate()!==o;n++,p=g.add(m,g.HOUR,n)){}m.setDate(o);m.setHours(p.getHours())}return m},add:function(o,n,r){var s=g.clone(o),m,q,p=0;if(!n||r===0){return s}q=r-parseInt(r,10);r=parseInt(r,10);if(r){switch(n.toLowerCase()){case g.MILLI:s.setTime(s.getTime()+r);break;case g.SECOND:s.setTime(s.getTime()+r*1000);break;case g.MINUTE:s.setTime(s.getTime()+r*60*1000);break;case g.HOUR:s.setTime(s.getTime()+r*60*60*1000);break;case g.DAY:s.setDate(s.getDate()+r);break;case g.MONTH:m=o.getDate();if(m>28){m=Math.min(m,g.getLastDateOfMonth(g.add(g.getFirstDateOfMonth(o),g.MONTH,r)).getDate())}s.setDate(m);s.setMonth(o.getMonth()+r);break;case g.YEAR:m=o.getDate();if(m>28){m=Math.min(m,g.getLastDateOfMonth(g.add(g.getFirstDateOfMonth(o),g.YEAR,r)).getDate())}s.setDate(m);s.setFullYear(o.getFullYear()+r);break}}if(q){switch(n.toLowerCase()){case g.MILLI:p=1;break;case g.SECOND:p=1000;break;case g.MINUTE:p=1000*60;break;case g.HOUR:p=1000*60*60;break;case g.DAY:p=1000*60*60*24;break;case g.MONTH:m=g.getDaysInMonth(s);p=1000*60*60*24*m;break;case g.YEAR:m=(g.isLeapYear(s)?366:365);p=1000*60*60*24*m;break}if(p){s.setTime(s.getTime()+p*q)}}return s},subtract:function(n,m,o){return g.add(n,m,-o)},between:function(n,p,m){var o=n.getTime();return p.getTime()<=o&&o<=m.getTime()},compat:function(){var u,v=["useStrict","formatCodeToRegex","parseFunctions","parseRegexes","formatFunctions","y2kYear","MILLI","SECOND","MINUTE","HOUR","DAY","MONTH","YEAR","defaults","dayNames","monthNames","monthNumbers","getShortMonthName","getShortDayName","getMonthNumber","formatCodes","isValid","parseDate","getFormatCode","createFormat","createParser","parseCodes"],t=["dateFormat","format","getTimezone","getGMTOffset","getDayOfYear","getWeekOfYear","isLeapYear","getFirstDayOfMonth","getLastDayOfMonth","getDaysInMonth","getSuffix","clone","isDST","clearTime","add","between"],n=v.length,m=t.length,q,r,o;for(o=0;o<n;o++){q=v[o];e[q]=g[q]}for(u=0;u<m;u++){r=t[u];e.prototype[r]=function(){var p=Array.prototype.slice.call(arguments);p.unshift(this);return g[r].apply(g,p)}}},diff:function(n,m,p){var o,q=+m-n;switch(p){case g.MILLI:return q;case g.SECOND:return Math.floor(q/1000);case g.MINUTE:return Math.floor(q/60000);case g.HOUR:return Math.floor(q/3600000);case g.DAY:return Math.floor(q/86400000);case"w":return Math.floor(q/604800000);case g.MONTH:o=(m.getFullYear()*12+m.getMonth())-(n.getFullYear()*12+n.getMonth());if(g.add(n,p,o)>m){return o-1}return o;case g.YEAR:o=m.getFullYear()-n.getFullYear();if(g.add(n,p,o)>m){return o-1}else{return o}}},align:function(n,p,o){var m=new e(+n);switch(p.toLowerCase()){case g.MILLI:return m;case g.SECOND:m.setUTCSeconds(m.getUTCSeconds()-m.getUTCSeconds()%o);m.setUTCMilliseconds(0);return m;case g.MINUTE:m.setUTCMinutes(m.getUTCMinutes()-m.getUTCMinutes()%o);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return m;case g.HOUR:m.setUTCHours(m.getUTCHours()-m.getUTCHours()%o);m.setUTCMinutes(0);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return m;case g.DAY:if(o===7||o===14){m.setUTCDate(m.getUTCDate()-m.getUTCDay()+1)}m.setUTCHours(0);m.setUTCMinutes(0);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return m;case g.MONTH:m.setUTCMonth(m.getUTCMonth()-(m.getUTCMonth()-1)%o,1);m.setUTCHours(0);m.setUTCMinutes(0);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return m;case g.YEAR:m.setUTCFullYear(m.getUTCFullYear()-m.getUTCFullYear()%o,1,1);m.setUTCHours(0);m.setUTCMinutes(0);m.setUTCSeconds(0);m.setUTCMilliseconds(0);return n}}}}());Ext.Function=(function(){var b=0,k,d=[],l=[],g=0,h={},e=window,j=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(p){var m=Ext.now(),n=Math.max(0,16-(m-b)),o=e.setTimeout(function(){p(m+n)},n);b=m+n;return o},c=function(){var m=d.length,p,n,o;k=null;for(n=0;n<m;n++){o=d[n];p=o[3];if(h[p]){o[0].apply(o[1]||Ext.global,o[2]||l);delete h[p]}}d=d.slice(m)},a=function(){Ext.elevateFunction(c)},i={flexSetter:function(m){return function(o,q){var n,p;if(o!==null){if(typeof o!=="string"){for(n in o){if(o.hasOwnProperty(n)){m.call(this,n,o[n])}}if(Ext.enumerables){for(p=Ext.enumerables.length;p--;){n=Ext.enumerables[p];if(o.hasOwnProperty(n)){m.call(this,n,o[n])}}}}else{m.call(this,o,q)}}return this}},bind:function(p,o,n,m){if(arguments.length===2){return function(){return p.apply(o,arguments)}}var r=p,q=Array.prototype.slice;return function(){var s=n||arguments;if(m===true){s=q.call(arguments,0);s=s.concat(n)}else{if(typeof m=="number"){s=q.call(arguments,0);Ext.Array.insert(s,m,n)}}return r.apply(o||Ext.global,s)}},bindCallback:function(q,p,o,n,m){return function(){var r=Ext.Array.slice(arguments);return Ext.callback(q,p,o?o.concat(r):r,n,m)}},pass:function(o,m,n){if(!Ext.isArray(m)){if(Ext.isIterable(m)){m=Ext.Array.clone(m)}else{m=m!==undefined?[m]:[]}}return function(){var p=m.slice();p.push.apply(p,arguments);return o.apply(n||this,p)}},alias:function(n,m){return function(){return n[m].apply(n,arguments)}},clone:function(m){return function(){return m.apply(this,arguments)}},createInterceptor:function(p,o,n,m){if(!Ext.isFunction(o)){return p}else{m=Ext.isDefined(m)?m:null;return function(){var r=this,q=arguments;o.target=r;o.method=p;return(o.apply(n||r||Ext.global,q)!==false)?p.apply(r||Ext.global,q):m}}},createDelayed:function(q,o,p,n,m){if(p||n){q=Ext.Function.bind(q,p,n,m)}return function(){var s=this,r=Array.prototype.slice.call(arguments);setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(q,s,r)}else{q.apply(s,r)}},o)}},defer:function(q,o,p,n,m){q=Ext.Function.bind(q,p,n,m);if(o>0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(q)}else{q()}},o)}q();return 0},interval:function(q,o,p,n,m){q=Ext.Function.bind(q,p,n,m);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(q)}else{q()}},o)},createSequence:function(n,o,m){if(!o){return n}else{return function(){var p=n.apply(this,arguments);o.apply(m||this,arguments);return p}}},createBuffered:function(q,n,p,o){var m;return function(){var s=o||Array.prototype.slice.call(arguments,0),r=p||this;if(m){clearTimeout(m)}m=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(q,r,s)}else{q.apply(r,s)}},n)}},createAnimationFrame:function(p,o,n,q){var m;q=q||3;return function(){var r=n||Array.prototype.slice.call(arguments,0);o=o||this;if(q===3&&m){i.cancelAnimationFrame(m)}if((q&1)||!m){m=i.requestAnimationFrame(function(){m=null;p.apply(o,r)})}}},requestAnimationFrame:function(p,o,m){var q=++g,n=Array.prototype.slice.call(arguments,0);n[3]=q;h[q]=1;d.push(n);if(!k){k=j(Ext.elevateFunction?a:c)}return q},cancelAnimationFrame:function(m){delete h[m]},createThrottled:function(q,n,p){var r=0,m,o,t,s=function(){if(Ext.elevateFunction){Ext.elevateFunction(q,p,o)}else{q.apply(p,o)}r=Ext.now();t=null};return function(){if(!p){p=this}m=Ext.now()-r;o=arguments;if(m>=n){clearTimeout(t);s()}else{if(!t){t=Ext.defer(s,n-m)}}}},createBarrier:function(o,n,m){return function(){if(!--o){n.apply(m,arguments)}}},interceptBefore:function(n,m,p,o){var q=n[m]||Ext.emptyFn;return(n[m]=function(){var r=p.apply(o||this,arguments);q.apply(this,arguments);return r})},interceptAfter:function(n,m,p,o){var q=n[m]||Ext.emptyFn;return(n[m]=function(){q.apply(this,arguments);return p.apply(o||this,arguments)})},makeCallback:function(n,m){return function(){return m[n].apply(m,arguments)}}};Ext.defer=i.defer;Ext.interval=i.interval;Ext.pass=i.pass;Ext.bind=i.bind;Ext.deferCallback=i.requestAnimationFrame;return i})();Ext.Number=(new function(){var d=this,c=(0.9).toFixed()!=="1",b=Math,a={count:false,inclusive:false,wrap:true};Ext.apply(d,{Clip:{DEFAULT:a,COUNT:Ext.applyIf({count:true},a),INCLUSIVE:Ext.applyIf({inclusive:true},a),NOWRAP:Ext.applyIf({wrap:false},a)},clipIndices:function(m,n,h){h=h||a;var g=0,l=h.wrap,k,e,j;n=n||[];for(j=0;j<2;++j){k=e;e=n[j];if(e==null){e=g}else{if(j&&h.count){e+=k;e=(e>m)?m:e}else{if(l){e=(e<0)?(m+e):e}if(j&&h.inclusive){++e}e=(e<0)?0:((e>m)?m:e)}}g=m}n[0]=k;n[1]=(e<k)?k:e;return n},constrain:function(i,h,g){var e=parseFloat(i);if(h===null){h=i}if(g===null){g=i}return(e<h)?h:((e>g)?g:e)},snap:function(i,g,h,j){var e;if(i===undefined||i<h){return h||0}if(g){e=i%g;if(e!==0){i-=e;if(e*2>=g){i+=g}else{if(e*2<-g){i-=g}}}}return d.constrain(i,h,j)},snapInRange:function(i,e,h,j){var g;h=(h||0);if(i===undefined||i<h){return h}if(e&&(g=((i-h)%e))){i-=g;g*=2;if(g>=e){i+=e}}if(j!==undefined){if(i>(j=d.snapInRange(j,e,h))){i=j}}return i},sign:function(e){e=+e;if(e===0||isNaN(e)){return e}return(e>0)?1:-1},toFixed:c?function(h,e){e=e||0;var g=b.pow(10,e);return(b.round(h*g)/g).toFixed(e)}:function(g,e){return g.toFixed(e)},from:function(g,e){if(isFinite(g)){g=parseFloat(g)}return !isNaN(g)?g:e},randomInt:function(g,e){return b.floor(b.random()*(e-g+1)+g)},correctFloat:function(e){return parseFloat(e.toPrecision(14))}});Ext.num=function(){return d.from.apply(this,arguments)}}());(function(){var d=function(){},b=/^\?/,c=/(\[):?([^\]]*)\]/g,a=/^([^\[]+)/,g=/\+/g,e=Ext.Object={chain:Object.create||function(i){d.prototype=i;var h=new d();d.prototype=null;return h},clear:function(h){for(var i in h){delete h[i]}return h},freeze:Object.freeze?function(j,h){if(j&&typeof j==="object"&&!Object.isFrozen(j)){Object.freeze(j);if(h){for(var i in j){e.freeze(j[i],h)}}}return j}:Ext.identityFn,toQueryObjects:function(k,o,j){var h=e.toQueryObjects,n=[],l,m;if(Ext.isArray(o)){for(l=0,m=o.length;l<m;l++){if(j){n=n.concat(h(k+"["+l+"]",o[l],true))}else{n.push({name:k,value:o[l]})}}}else{if(Ext.isObject(o)){for(l in o){if(o.hasOwnProperty(l)){if(j){n=n.concat(h(k+"["+l+"]",o[l],true))}else{n.push({name:k,value:o[l]})}}}}else{n.push({name:k,value:o})}}return n},toQueryString:function(m,k){var n=[],l=[],p,o,q,h,r;for(p in m){if(m.hasOwnProperty(p)){n=n.concat(e.toQueryObjects(p,m[p],k))}}for(o=0,q=n.length;o<q;o++){h=n[o];r=h.value;if(Ext.isEmpty(r)){r=""}else{if(Ext.isDate(r)){r=Ext.Date.toString(r)}}l.push(encodeURIComponent(h.name)+"="+encodeURIComponent(String(r)))}return l.join("&")},fromQueryString:function(k,v){var q=k.replace(b,"").split("&"),y={},w,o,A,r,u,m,s,t,h,n,x,p,z,l;for(u=0,m=q.length;u<m;u++){s=q[u];if(s.length>0){o=s.split("=");A=o[0];A=A.replace(g,"%20");A=decodeURIComponent(A);r=o[1];if(r!==undefined){r=r.replace(g,"%20");r=decodeURIComponent(r)}else{r=""}if(!v){if(y.hasOwnProperty(A)){if(!Ext.isArray(y[A])){y[A]=[y[A]]}y[A].push(r)}else{y[A]=r}}else{n=A.match(c);x=A.match(a);A=x[0];p=[];if(n===null){y[A]=r;continue}for(t=0,h=n.length;t<h;t++){z=n[t];z=(z.length===2)?"":z.substring(1,z.length-1);p.push(z)}p.unshift(A);w=y;for(t=0,h=p.length;t<h;t++){z=p[t];if(t===h-1){if(Ext.isArray(w)&&z===""){w.push(r)}else{w[z]=r}}else{if(w[z]===undefined||typeof w[z]==="string"){l=p[t+1];w[z]=(Ext.isNumeric(l)||l==="")?[]:{}}w=w[z]}}}}}return y},each:function(j,m,l){var h=Ext.enumerables,k,n;if(j){l=l||j;for(n in j){if(j.hasOwnProperty(n)){if(m.call(l,n,j[n],j)===false){return}}}if(h){for(k=h.length;k--;){if(j.hasOwnProperty(n=h[k])){if(m.call(l,n,j[n],j)===false){return}}}}}},eachValue:function(j,m,l){var h=Ext.enumerables,k,n;l=l||j;for(n in j){if(j.hasOwnProperty(n)){if(m.call(l,j[n])===false){return}}}if(h){for(k=h.length;k--;){if(j.hasOwnProperty(n=h[k])){if(m.call(l,j[n])===false){return}}}}},merge:function(o){var m=1,n=arguments.length,h=e.merge,k=Ext.clone,l,q,p,j;for(;m<n;m++){l=arguments[m];for(q in l){p=l[q];if(p&&p.constructor===Object){j=o[q];if(j&&j.constructor===Object){h(j,p)}else{o[q]=k(p)}}else{o[q]=p}}}return o},mergeIf:function(h){var m=1,n=arguments.length,k=Ext.clone,j,l,o;for(;m<n;m++){j=arguments[m];for(l in j){if(!(l in h)){o=j[l];if(o&&o.constructor===Object){h[l]=k(o)}else{h[l]=o}}}}return h},getAllKeys:function(h){var i=[],j;for(j in h){i.push(j)}return i},getKey:function(h,j){for(var i in h){if(h.hasOwnProperty(i)&&h[i]===j){return i}}return null},getValues:function(i){var h=[],j;for(j in i){if(i.hasOwnProperty(j)){h.push(i[j])}}return h},getKeys:(typeof Object.keys=="function")?function(h){if(!h){return[]}return Object.keys(h)}:function(h){var i=[],j;for(j in h){if(h.hasOwnProperty(j)){i.push(j)}}return i},getSize:function(h){var i=0,j;for(j in h){if(h.hasOwnProperty(j)){i++}}return i},isEmpty:function(h){for(var i in h){if(h.hasOwnProperty(i)){return false}}return true},equals:(function(){var h=function(k,j){var i;for(i in k){if(k.hasOwnProperty(i)){if(k[i]!==j[i]){return false}}}return true};return function(j,i){if(j===i){return true}if(j&&i){return h(j,i)&&h(i,j)}else{if(!j&&!i){return j===i}else{return false}}}})(),fork:function(k){var h,i,j;if(k&&k.constructor===Object){h=e.chain(k);for(i in k){j=k[i];if(j){if(j.constructor===Object){h[i]=e.fork(j)}else{if(j instanceof Array){h[i]=Ext.Array.clone(j)}}}}}else{h=k}return h},defineProperty:("defineProperty" in Object)?Object.defineProperty:function(i,h,j){if(!Object.prototype.__defineGetter__){return}if(j.get){i.__defineGetter__(h,j.get)}if(j.set){i.__defineSetter__(h,j.set)}},classify:function(k){var j=k,m=[],i={},h=function(){var o=0,p=m.length,q;for(;o<p;o++){q=m[o];this[q]=new i[q]()}},l,n;for(l in k){if(k.hasOwnProperty(l)){n=k[l];if(n&&n.constructor===Object){m.push(l);i[l]=e.classify(n)}}}h.prototype=j;return h}};Ext.merge=Ext.Object.merge;Ext.mergeIf=Ext.Object.mergeIf}());Ext.apply(Ext,{_namedScopes:{"this":{isThis:1},controller:{isController:1},self:{isSelf:1},"self.controller":{isSelf:1,isController:1}},escapeId:(function(){var c=/^[a-zA-Z_][a-zA-Z0-9_\-]*$/i,d=/([\W]{1})/g,b=/^(\d)/g,a=function(h,g){return"\\"+g},e=function(h,g){return"\\00"+g.charCodeAt(0).toString(16)+" "};return function(g){return c.test(g)?g:g.replace(d,a).replace(b,e)}}()),callback:function(i,g,d,c,b,h){if(!i){return}var e=(g in Ext._namedScopes);if(i.charAt){if((!g||e)&&b){g=b.resolveListenerScope(e?g:h)}i=g[i]}else{if(e){g=h||b}else{if(!g){g=b}}}var a;if(i&&Ext.isFunction(i)){g=g||Ext.global;if(c){Ext.defer(i,c,g,d)}else{if(Ext.elevateFunction){a=Ext.elevateFunction(i,g,d)}else{if(d){a=i.apply(g,d)}else{a=i.call(g)}}}}return a},coerce:function(e,d){var c=Ext.typeOf(e),b=Ext.typeOf(d),a=typeof e==="string";if(c!==b){switch(b){case"string":return String(e);case"number":return Number(e);case"boolean":return a&&(!e||e==="false"||e==="0")?false:Boolean(e);case"null":return a&&(!e||e==="null")?null:false;case"undefined":return a&&(!e||e==="undefined")?undefined:false;case"date":return a&&isNaN(e)?Ext.Date.parse(e,Ext.Date.defaultFormat):Date(Number(e))}}return e},copyTo:function(b,d,g,e){if(typeof g==="string"){g=g.split(Ext.propertyNameSplitRe)}for(var a,c=0,h=g?g.length:0;c<h;c++){a=g[c];if(e||d.hasOwnProperty(a)){b[a]=d[a]}}return b},copy:function(b,d,g,e){if(typeof g==="string"){g=g.split(Ext.propertyNameSplitRe)}for(var a,c=0,h=g?g.length:0;c<h;c++){a=g[c];if(d.hasOwnProperty(a)||(e&&a in d)){b[a]=d[a]}}return b},propertyNameSplitRe:/[,;\s]+/,copyToIf:function(a,d,e){if(typeof e==="string"){e=e.split(Ext.propertyNameSplitRe)}for(var b,c=0,g=e?e.length:0;c<g;c++){b=e[c];if(a[b]===undefined){a[b]=d[b]}}return a},copyIf:function(a,d,e){if(typeof e==="string"){e=e.split(Ext.propertyNameSplitRe)}for(var b,c=0,g=e?e.length:0;c<g;c++){b=e[c];if(!(b in a)&&(b in d)){a[b]=d[b]}}return a},extend:(function(){var a=Object.prototype.constructor,b=function(d){var c;for(c in d){if(!d.hasOwnProperty(c)){continue}this[c]=d[c]}};return function(c,i,g){if(Ext.isObject(i)){g=i;i=c;c=g.constructor!==a?g.constructor:function(){i.apply(this,arguments)}}var e=function(){},d,h=i.prototype;e.prototype=h;d=c.prototype=new e();d.constructor=c;c.superclass=h;if(h.constructor===a){h.constructor=i}c.override=function(j){Ext.override(c,j)};d.override=b;d.proto=d;c.override(g);c.extend=function(j){return Ext.extend(c,j)};return c}}()),iterate:function(a,c,b){if(Ext.isEmpty(a)){return}if(b===undefined){b=a}if(Ext.isIterable(a)){Ext.Array.each.call(Ext.Array,a,c,b)}else{Ext.Object.each.call(Ext.Object,a,c,b)}},urlEncode:function(){var a=Ext.Array.from(arguments),b="";if(Ext.isString(a[1])){b=a[1]+"&";a[1]=false}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(c){var b=Ext._scrollbarSize;if(c||!b){var a=document.body,d=document.createElement("div");d.style.width=d.style.height="100px";d.style.overflow="scroll";d.style.position="absolute";a.appendChild(d);Ext._scrollbarSize=b={width:d.offsetWidth-d.clientWidth,height:d.offsetHeight-d.clientHeight};a.removeChild(d)}return b},typeOf:(function(){var a=/\S/,c=Object.prototype.toString,d={number:1,string:1,"boolean":1,"undefined":1},b={"[object Array]":"array","[object Date]":"date","[object Boolean]":"boolean","[object Number]":"number","[object RegExp]":"regexp"};return function(h){if(h===null){return"null"}var g=typeof h,e,i;if(d[g]){return g}e=b[i=c.call(h)];if(e){return e}if(g==="function"){return"function"}if(g==="object"){if(h.nodeType!==undefined){if(h.nodeType===3){return a.test(h.nodeValue)?"textnode":"whitespace"}else{return"element"}}return"object"}return i}}()),factory:function(b,e,a,g){var d=Ext.ClassManager,c;if(!b||b.isInstance){if(a&&a!==b){a.destroy()}return b}if(g){if(typeof b==="string"){return d.instantiateByAlias(g+"."+b)}else{if(Ext.isObject(b)&&"type" in b){return d.instantiateByAlias(g+"."+b.type,b)}}}if(b===true){return a||Ext.create(e)}if("xtype" in b){c=d.instantiateByAlias("widget."+b.xtype,b)}else{if("xclass" in b){c=Ext.create(b.xclass,b)}}if(c){if(a){a.destroy()}return c}if(a){return a.setConfig(b)}return Ext.create(e,b)},log:(function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}())});(function(){var d=[""],h=/([^\d\.])/,b=/[^\d]/g,a=/[\-+]/g,g=/\s/g,c=/_/g,e;Ext.Version=e=function(r,n){var s=this,l=s.padModes,j,p,m,o,t,k,q;if(r.isVersion){r=r.version}s.version=q=String(r).toLowerCase().replace(c,".").replace(a,"");j=q.charAt(0);if(j in l){q=q.substring(1);m=l[j]}else{m=n?l[n]:0}s.pad=m;k=q.search(h);s.shortVersion=q;if(k!==-1){s.release=t=q.substr(k,r.length);s.shortVersion=q.substr(0,k);t=e.releaseValueMap[t]||t}s.releaseValue=t||m;s.shortVersion=s.shortVersion.replace(b,"");s.parts=o=q.split(".");for(p=o.length;p--;){o[p]=parseInt(o[p],10)}if(m===Infinity){o.push(m)}s.major=o[0]||m;s.minor=o[1]||m;s.patch=o[2]||m;s.build=o[3]||m;return s};e.prototype={isVersion:true,padModes:{"~":NaN,"^":Infinity},release:"",compareTo:function(t){var u=this,n=u.pad,r=u.parts,v=r.length,m=t.isVersion?t:new e(t),k=m.pad,q=m.parts,p=q.length,j=Math.max(v,p),o,l,s;for(o=0;o<j;o++){l=(o<v)?r[o]:n;s=(o<p)?q[o]:k;if(l<s){return -1}if(l>s){return 1}}l=u.releaseValue;s=m.releaseValue;if(l<s){return -1}if(l>s){return 1}return 0},toString:function(){return this.version},valueOf:function(){return this.version},getMajor:function(){return this.major},getMinor:function(){return this.minor},getPatch:function(){return this.patch},getBuild:function(){return this.build},getRelease:function(){return this.release},getReleaseValue:function(){return this.releaseValue},isGreaterThan:function(i){return this.compareTo(i)>0},isGreaterThanOrEqual:function(i){return this.compareTo(i)>=0},isLessThan:function(i){return this.compareTo(i)<0},isLessThanOrEqual:function(i){return this.compareTo(i)<=0},equals:function(i){return this.compareTo(i)===0},match:function(i){i=String(i);return this.version.substr(0,i.length)===i},toArray:function(){var i=this;return[i.getMajor(),i.getMinor(),i.getPatch(),i.getBuild(),i.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(i){return this.compareTo(i)>0},lt:function(i){return this.compareTo(i)<0},gtEq:function(i){return this.compareTo(i)>=0},ltEq:function(i){return this.compareTo(i)<=0}};Ext.apply(e,{aliases:{from:{extjs:"ext",core:"sencha-core"},to:{ext:["extjs"],"sencha-core":["core"]}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,"#":-2,p:-1,pl:-1},getComponentValue:function(i){return !i?0:(isNaN(i)?this.releaseValueMap[i]||i:parseInt(i,10))},compare:function(k,j){var i=k.isVersion?k:new e(k);return i.compareTo(j)},set:function(o,m,l){var k=e.aliases.to[m],j=l.isVersion?l:new e(l),n;o[m]=j;if(k){for(n=k.length;n-->0;){o[k[n]]=j}}return j}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(j){var i=Ext.compatVersions,k;if(!j){k=i.ext||i.touch||i.core}else{k=i[e.aliases.from[j]||j]}return k||Ext.getVersion(j)},setCompatVersion:function(j,i){e.set(Ext.compatVersions,j,i)},setVersion:function(j,i){Ext.lastRegisteredVersion=e.set(Ext.versions,j,i);return this},getVersion:function(j){var i=Ext.versions;if(!j){return i.ext||i.touch||i.core}return i[e.aliases.from[j]||j]},checkVersion:function(p,x){var t=Ext.isArray(p),l=e.aliases.from,y=t?p:d,k=y.length,m=Ext.versions,w=m.ext||m.touch,q,v,s,n,o,j,z,r,u;if(!t){d[0]=p}for(q=0;q<k;++q){if(!Ext.isString(z=y[q])){s=Ext.checkVersion(z.and||z.or,!z.or);if(z.not){s=!s}}else{if(z.indexOf(" ")>=0){z=z.replace(g,"")}v=z.indexOf("@");if(v<0){r=z;u=w}else{j=z.substring(0,v);if(!(u=m[l[j]||j])){if(x){return false}continue}r=z.substring(v+1)}v=r.indexOf("-");if(v<0){if(r.charAt(v=r.length-1)==="+"){n=r.substring(0,v);o=null}else{n=o=r}}else{if(v>0){n=r.substring(0,v);o=r.substring(v+1)}else{n=null;o=r.substring(v+1)}}s=true;if(n){n=new e(n,"~");s=n.ltEq(u)}if(s&&o){o=new e(o,"~");s=o.gtEq(u)}}if(s){if(!x){return true}}else{if(x){return false}}}return !!x},deprecate:function(i,k,l,j){if(e.compare(Ext.getVersion(i),k)<1){l.call(j)}}})}());(function(d){var e=(d&&d.packages)||{},c=d&&d.compatibility,b,a;for(b in e){a=e[b];Ext.setVersion(b,a.version)}if(c){if(Ext.isString(c)){Ext.setCompatVersion("core",c)}else{for(b in c){Ext.setCompatVersion(b,c[b])}}}if(!e.ext&&!e.touch){Ext.setVersion('ext','5.1.3.228');Ext.setVersion('sencha-core','5.1.3.228');}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:"_"+b,initializing:"is"+a+"Initializing",apply:"apply"+a,update:"update"+a,get:"get"+a,set:"set"+a,initGet:"initGet"+a,doSet:"doSet"+a,changeEvent:b.toLowerCase()+"change"};c.root=c};Ext.Config.map={};Ext.Config.get=function(b){var c=Ext.Config.map,a=c[b]||(c[b]=new Ext.Config(b));return a};Ext.Config.prototype={self:Ext.Config,isConfig:true,getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(g,b,e,d){var a,c;if(!b){a=g}else{if(!g){a=b}else{a=Ext.Object.chain(b);for(c in g){if(!d||!(c in a)){a[c]=g[c]}}}}return a},mergeSets:function(e,c,a){var b=c?Ext.Object.chain(c):{},d,g;if(e instanceof Array){for(d=e.length;d--;){g=e[d];if(!a||!(g in b)){b[g]=true}}}else{if(e){if(e.constructor===Object){for(d in e){g=e[d];if(!a||!(d in b)){b[d]=g}}}else{if(!a||!(e in b)){b[e]=true}}}}return b},makeGetter:function(){var a=this.name,b=this.names.internal;return function(){var c=this.$configPrefixed?b:a;return this[c]}},makeInitGetter:function(){var a=this.name,e=this.names,d=e.set,b=e.get,c=e.initializing;return function(){var g=this;g[c]=true;delete g[b];g[d](g.config[a]);delete g[c];return g[b].apply(g,arguments)}},makeSetter:function(){var a=this.name,e=this.names,c=e.internal,d=e.get,b=e.apply,h=e.update,g;g=function(l){var k=this,j=k.$configPrefixed?c:a,i=k[j];delete k[d];if(!k[b]||(l=k[b](l,i))!==undefined){if(l!==(i=k[j])){k[j]=l;if(k[h]){k[h](l,i)}}}return k};g.$isDefault=true;return g}};(function(){var b=Ext.Config,c=b.map,a=Ext.Object;Ext.Configurator=function(d){var g=this,e=d.prototype,h=d.superclass?d.superclass.self.$config:null;g.cls=d;if(h){g.configs=a.chain(h.configs);g.cachedConfigs=a.chain(h.cachedConfigs);g.initMap=a.chain(h.initMap);g.values=a.chain(h.values);g.needsFork=h.needsFork}else{g.configs={};g.cachedConfigs={};g.initMap={};g.values={}}e.config=e.defaultConfig=g.values;d.$config=g};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:false,initList:null,add:function(u,d){var v=this,i=v.cls,l=v.configs,w=v.cachedConfigs,n=v.initMap,q=i.prototype,x=d&&d.$config.configs,e=v.values,k,m,t,g,h,j,y,p,o,r;for(y in u){r=u[y];k=r&&r.constructor===Object;m=k&&"$value" in r?r:null;if(m){t=!!m.cached;r=m.$value;k=r&&r.constructor===Object}g=m&&m.merge;h=l[y];if(h){if(d){g=h.merge;if(!g){continue}m=null}else{g=g||h.merge}j=e[y];if(g){r=g.call(h,r,j,i,d)}else{if(k){if(j&&j.constructor===Object){r=a.merge({},j,r)}}}}else{if(x){h=x[y];m=null}else{h=b.get(y)}l[y]=h;if(h.cached||t){w[y]=true}p=h.names;if(!q[o=p.get]){q[o]=h.getGetter()}if(!q[o=p.set]){q[o]=h.getSetter()}}if(m){if(h.owner!==i){l[y]=h=Ext.Object.chain(h);h.owner=i}Ext.apply(h,m);delete h.$value}if(!v.needsFork&&r&&(r.constructor===Object||r instanceof Array)){v.needsFork=true}if(r!==null){n[y]=true}else{if(q.$configPrefixed){q[l[y].names.internal]=null}else{q[l[y].name]=null}if(y in n){n[y]=false}}e[y]=r}},configure:function(y,m){var A=this,l=A.configs,n=A.initMap,p=A.initListMap,w=A.initList,q=A.cls.prototype,e=A.values,r=0,t=!w,g,h,j,C,v,u,k,o,B,s,z,x,d;e=A.needsFork?a.fork(e):a.chain(e);if(t){A.initList=w=[];A.initListMap=p={};y.isFirstInstance=true;for(B in n){C=n[B];h=l[B];z=h.cached;if(C){o=h.names;s=e[B];if(!q[o.set].$isDefault||q[o.apply]||q[o.update]||typeof s==="object"){if(z){(g||(g=[])).push(h)}else{w.push(h);p[B]=true}y[o.get]=h.initGetter||h.getInitGetter()}else{q[h.getInternalName(q)]=s}}else{if(z){q[h.getInternalName(q)]=undefined}}}}k=g&&g.length;if(k){for(v=0;v<k;++v){u=g[v].getInternalName(q);y[u]=null}for(v=0;v<k;++v){o=(h=g[v]).names;j=o.get;if(y.hasOwnProperty(j)){y[o.set](e[h.name]);delete y[j]}}for(v=0;v<k;++v){u=g[v].getInternalName(q);q[u]=y[u];delete y[u]}}if(m&&m.platformConfig){m=A.resolvePlatformConfig(y,m)}if(t){if(y.afterCachedConfig&&!y.afterCachedConfig.$nullFn){y.afterCachedConfig(m)}}y.isConfiguring=true;y.config=e;for(v=0,k=w.length;v<k;++v){h=w[v];y[h.names.get]=h.initGetter||h.getInitGetter()}if(y.transformInstanceConfig){m=y.transformInstanceConfig(m)}if(m){for(B in m){s=m[B];h=l[B];if(!h){y[B]=s}else{if(!h.lazy){++r}if(!p[B]){y[h.names.get]=h.initGetter||h.getInitGetter()}if(h.merge){s=h.merge(s,e[B],y)}else{if(s&&s.constructor===Object){x=e[B];if(x&&x.constructor===Object){s=a.merge(e[B],s)}else{s=Ext.clone(s)}}}}e[B]=s}}if(y.beforeInitConfig&&!y.beforeInitConfig.$nullFn){if(y.beforeInitConfig(m)===false){return}}if(m){for(B in m){if(!r){break}h=l[B];if(h&&!h.lazy){--r;o=h.names;j=o.get;if(y.hasOwnProperty(j)){y[o.set](e[B]);delete y[o.get]}}}}for(v=0,k=w.length;v<k;++v){h=w[v];o=h.names;j=o.get;if(!h.lazy&&y.hasOwnProperty(j)){y[o.set](e[h.name]);delete y[j]}}delete y.isConfiguring},getCurrentConfig:function(e){var d=e.defaultConfig,h={},g;for(g in d){h[g]=e[c[g].names.get]()}return h},merge:function(d,j,h){var l=this.configs,g,k,i,e;for(g in h){k=h[g];e=l[g];if(e){if(e.merge){k=e.merge(k,j[g],d)}else{if(k&&k.constructor===Object){i=j[g];if(i&&i.constructor===Object){k=Ext.Object.merge(i,k)}else{k=Ext.clone(k)}}}}j[g]=k}return j},reconfigure:function(s,n,t){var j=s.config,k=[],r=s.$configStrict&&!(t&&t.strict===false),o=this.configs,g=t&&t.defaults,m,q,h,l,e,p,d;for(e in n){if(g&&s.hasOwnProperty(e)){continue}j[e]=n[e];m=o[e];if(m){s[m.names.get]=m.initGetter||m.getInitGetter()}else{d=s.self.prototype[e];if(r){if((typeof d==="function")&&!d.$nullFn){continue}}}k.push(e)}for(h=0,l=k.length;h<l;h++){e=k[h];m=o[e];if(m){p=m.names;q=p.get;if(s.hasOwnProperty(q)){s[p.set](n[e]);delete s[q]}}else{m=c[e]||Ext.Config.get(e);p=m.names;if(s[p.set]){s[p.set](n[e])}else{s[e]=n[e]}}}},resolvePlatformConfig:function(d,l){var j=l&&l.platformConfig,e=l,g,h,k;if(j){h=Ext.getPlatformConfigKeys(j);k=h.length;if(k){e=Ext.merge({},e);for(g=0,k=h.length;g<k;++g){this.merge(d,e,j[h[g]])}}}return e}}}());Ext.Base=(function(c){var b=[],j,l=[],m=function(q,p){var s=this,o,n,r;if(q){n=Ext.Config.map[q];r=n.names.get;if(p&&s.hasOwnProperty(r)){o=s.config[q]}else{o=s[r]()}}else{o=s.getCurrentConfig()}return o},g=function(n){return function(){return this[n].apply(this,arguments)}},a=Ext.Version,i=/^\d/,k={},e={},h=function(){},d=h.prototype;Ext.apply(h,{$className:"Ext.Base",$isClass:true,create:function(){return Ext.create.apply(Ext,[this].concat(Array.prototype.slice.call(arguments,0)))},addDeprecations:function(t){var C=this,o=[],q=Ext.getCompatVersion(t.name),B,x,s,y,D,v,A,u,z,E,w,n,r,p;for(x in t){if(i.test(x)){p=new Ext.Version(x);p.deprecations=t[x];o.push(p)}}o.sort(a.compare);for(s=o.length;s--;){B=(p=o[s]).deprecations;D=C.prototype;r=B.statics;v=q&&q.lt(p);if(!v){break}while(B){z=B.methods;if(z){for(E in z){n=z[E];u=null;if(!n){}else{if(Ext.isString(n)){if(v){u=g(n)}}else{y="";if(n.message||n.fn){n=n.fn}A=D.hasOwnProperty(E)&&D[E];if(v&&n){n.$owner=C;n.$name=E;if(A){n.$previous=A}u=n}}}if(u){D[E]=u}}}B=r;r=null;D=C}}},extend:function(r){var t=this,n=r.prototype,p,q,s,o,u;p=t.prototype=Ext.Object.chain(n);p.self=t;t.superclass=p.superclass=n;if(!r.$isClass){for(q in d){if(q in p){p[q]=d[q]}}}u=n.$inheritableStatics;if(u){for(q=0,s=u.length;q<s;q++){o=u[q];if(!t.hasOwnProperty(o)){t[o]=r[o]}}}if(r.$onExtended){t.$onExtended=r.$onExtended.slice()}t.getConfigurator()},$onExtended:[],triggerExtended:function(){var p=this.$onExtended,o=p.length,n,q;if(o>0){for(n=0;n<o;n++){q=p[n];q.fn.apply(q.scope||this,arguments)}}},onExtended:function(o,n){this.$onExtended.push({fn:o,scope:n});return this},addStatics:function(n){this.addMembers(n,true);return this},addInheritableStatics:function(o){var r=this,q=r.prototype,s,n,p,u,t;s=q.$inheritableStatics;n=q.$hasInheritableStatics;if(!s){s=q.$inheritableStatics=[];n=q.$hasInheritableStatics={}}for(p in o){if(o.hasOwnProperty(p)){u=o[p];t=r[p];if(typeof t==="function"&&!t.$isClass&&!t.$nullFn){u.$previous=t}r[p]=u;if(!n[p]){n[p]=true;s.push(p)}}}return r},addMembers:function(r,C,o){var A=this,v=Ext.Function.clone,y=C?A:A.prototype,s=!C&&y.defaultConfig,B=Ext.enumerables,w=r.privates,x,u,z,t,n,p,q;if(w){delete r.privates;if(!C){q=w.statics;delete w.statics}A.addMembers(w,C,p);if(q){A.addMembers(q,true,p)}}for(n in r){if(r.hasOwnProperty(n)){t=r[n];if(typeof t==="function"&&!t.$isClass&&!t.$nullFn){if(t.$owner){t=v(t)}if(y.hasOwnProperty(n)){t.$previous=y[n]}t.$owner=A;t.$name=n}else{if(s&&(n in s)&&!y.config.hasOwnProperty(n)){(x||(x={}))[n]=t;continue}}y[n]=t}}if(x){A.addConfig(x)}if(B){for(u=0,z=B.length;u<z;++u){if(r.hasOwnProperty(n=B[u])){t=r[n];if(t&&!t.$nullFn){if(t.$owner){t=v(t)}t.$owner=A;t.$name=n;if(y.hasOwnProperty(n)){t.$previous=y[n]}}y[n]=t}}}return this},addMember:function(n,o){k[n]=o;this.addMembers(k);delete k[n];return this},borrow:function(t,n){var p=t.prototype,r={},q,s,o;n=Ext.Array.from(n);for(q=0,s=n.length;q<s;q++){o=n[q];r[o]=p[o]}return this.addMembers(r)},override:function(o){var q=this,t=o.statics,s=o.inheritableStatics,p=o.config,n=o.mixins,r=o.cachedConfig;if(t||s||p){o=Ext.apply({},o)}if(t){q.addMembers(t,true);delete o.statics}if(s){q.addInheritableStatics(s);delete o.inheritableStatics}if(p){q.addConfig(p);delete o.config}if(r){q.addCachedConfig(r);delete o.cachedConfig}delete o.mixins;q.addMembers(o);if(n){q.mixin(n)}return q},callParent:function(n){var o;return(o=this.callParent.caller)&&(o.$previous||((o=o.$owner?o:o.caller)&&o.$owner.superclass.self[o.$name])).apply(this,n||b)},callSuper:function(n){var o;return(o=this.callSuper.caller)&&((o=o.$owner?o:o.caller)&&o.$owner.superclass.self[o.$name]).apply(this,n||b)},mixin:function(n,p){var u=this,A,w,z,v,q,t,r,y,x,s,o;if(typeof n!=="string"){s=n;if(s instanceof Array){for(q=0,t=s.length;q<t;q++){A=s[q];u.mixin(A.prototype.mixinId||A.$className,A)}}else{for(r in s){u.mixin(r,s[r])}}return}A=p.prototype;w=u.prototype;if(A.onClassMixedIn){A.onClassMixedIn.call(p,u)}if(!w.hasOwnProperty("mixins")){if("mixins" in w){w.mixins=Ext.Object.chain(w.mixins)}else{w.mixins={}}}for(z in A){x=A[z];if(z==="mixins"){Ext.applyIf(w.mixins,x)}else{if(!(z==="mixinId"||z==="config"||z==="$inheritableStatics")&&(w[z]===undefined)){w[z]=x}}}v=A.$inheritableStatics;if(v){o={};for(q=0,t=v.length;q<t;q++){y=v[q];if(!u.hasOwnProperty(y)){o[y]=p[y]}}u.addInheritableStatics(o)}if("config" in A){u.addConfig(A.config,p)}w.mixins[n]=A;if(A.afterClassMixedIn){A.afterClassMixedIn.call(p,u)}return u},addConfig:function(o,p){var n=this.$config||this.getConfigurator();n.add(o,p)},addCachedConfig:function(n,p){var q={},o;for(o in n){q[o]={cached:true,$value:n[o]}}this.addConfig(q,p)},getConfigurator:function(){return this.$config||new Ext.Configurator(this)},getName:function(){return Ext.getClassName(this)},createAlias:c(function(o,n){e[o]=function(){return this[n].apply(this,arguments)};this.override(e);delete e[o]})});for(j in h){if(h.hasOwnProperty(j)){l.push(j)}}h.$staticMembers=l;h.getConfigurator();h.addMembers({$className:"Ext.Base",isInstance:true,$configPrefixed:true,$configStrict:true,isConfiguring:false,isFirstInstance:false,statics:function(){var o=this.statics.caller,n=this.self;if(!o){return n}return o.$owner},callParent:function(o){var p,n=(p=this.callParent.caller)&&(p.$previous||((p=p.$owner?p:p.caller)&&p.$owner.superclass[p.$name]));return n.apply(this,o||b)},callSuper:function(o){var p,n=(p=this.callSuper.caller)&&((p=p.$owner?p:p.caller)&&p.$owner.superclass[p.$name]);return n.apply(this,o||b)},self:h,constructor:function(){return this},getConfigurator:function(){return this.$config||this.self.getConfigurator()},initConfig:function(p){var o=this,n=o.getConfigurator();o.initConfig=Ext.emptyFn;o.initialConfig=p||{};n.configure(o,p);return o},beforeInitConfig:Ext.emptyFn,getConfig:m,setConfig:function(p,r,o){var q=this,n;if(p){if(typeof p==="string"){n={};n[p]=r}else{n=p}q.getConfigurator().reconfigure(q,n,o)}return q},getCurrentConfig:function(){var n=this.getConfigurator();return n.getCurrentConfig(this)},hasConfig:function(n){return n in this.defaultConfig},getInitialConfig:function(o){var n=this.config;if(!o){return n}return n[o]},$links:null,link:function(o,q){var p=this,n=p.$links||(p.$links={});n[o]=true;p[o]=q;return q},unlink:function(s){var q=this,n,p,o,r;for(n=0,p=s.length;n<p;n++){o=s[n];r=q[o];if(r){if(r.isInstance&&!r.isDestroyed){r.destroy()}else{if(r.parentNode&&"nodeType" in r){r.parentNode.removeChild(r)}}}q[o]=null}return q},destroy:function(){var o=this,n=o.$links;o.destroy=Ext.emptyFn;o.isDestroyed=true;if(n){o.$links=null;o.unlink(Ext.Object.getKeys(n))}}});d.callOverridden=d.callParent;return h}(Ext.Function.flexSetter));(function(b,a){(Ext.util||(Ext.util={})).Cache=b=function(c){var e=this,d;if(c){Ext.apply(e,c)}e.head=d={key:null,value:null};e.map={};d.next=d.prev=d};b.prototype=a={maxSize:100,count:0,clear:function(){var e=this,c=e.head,d=c.next;c.next=c.prev=c;if(!e.evict.$nullFn){for(;d!==c;d=d.next){e.evict(d.key,d.value)}}e.count=0},each:function(e,d){d=d||this;for(var c=this.head,g=c.next;g!==c;g=g.next){if(e.call(d,g.key,g.value)){break}}},get:function(d){var g=this,c=g.head,h=g.map,e=h[d];if(e){if(e.prev!==c){g.unlinkEntry(e);g.linkEntry(e)}}else{h[d]=e={key:d,value:g.miss.apply(g,arguments)};g.linkEntry(e);++g.count;while(g.count>g.maxSize){g.unlinkEntry(c.prev,true);--g.count}}return e.value},evict:Ext.emptyFn,linkEntry:function(d){var c=this.head,e=c.next;d.next=e;d.prev=c;c.next=d;e.prev=d},unlinkEntry:function(e,g){var c=e.next,d=e.prev;d.next=c;c.prev=d;if(g){this.evict(e.key,e.value)}}};a.destroy=a.clear}());(function(){var d,c=Ext.Base,e=c.$staticMembers,b=function(h,g){return(h.length-g.length)||((h<g)?-1:((h>g)?1:0))};function a(h){function g(){return this.constructor.apply(this,arguments)||null}return g}Ext.Class=d=function(h,i,g){if(typeof h!="function"){g=i;i=h;h=null}if(!i){i={}}h=d.create(h,i);d.process(h,i,g);return h};Ext.apply(d,{makeCtor:a,onBeforeCreated:function(h,i,g){h.addMembers(i);g.onCreated.call(h,h)},create:function(g,k){var j=e.length,h;if(!g){g=a()}while(j--){h=e[j];g[h]=c[h]}return g},process:function(g,o,k){var h=o.preprocessors||d.defaultPreprocessors,r=this.preprocessors,u={onBeforeCreated:this.onBeforeCreated},t=[],v,n,m,s,l,q,p;delete o.preprocessors;g._classHooks=u;for(m=0,s=h.length;m<s;m++){v=h[m];if(typeof v=="string"){v=r[v];n=v.properties;if(n===true){t.push(v.fn)}else{if(n){for(l=0,q=n.length;l<q;l++){p=n[l];if(o.hasOwnProperty(p)){t.push(v.fn);break}}}}}else{t.push(v)}}u.onCreated=k?k:Ext.emptyFn;u.preprocessors=t;this.doProcess(g,o,u)},doProcess:function(h,l,g){var k=this,m=g.preprocessors,i=m.shift(),j=k.doProcess;for(;i;i=m.shift()){if(i.call(k,h,l,g,j)===false){return}}g.onBeforeCreated.apply(k,arguments)},preprocessors:{},registerPreprocessor:function(h,k,i,g,j){if(!g){g="last"}if(!i){i=[h]}this.preprocessors[h]={name:h,properties:i||false,fn:k};this.setDefaultPreprocessorPosition(h,g,j);return this},getPreprocessor:function(g){return this.preprocessors[g]},getPreprocessors:function(){return this.preprocessors},defaultPreprocessors:[],getDefaultPreprocessors:function(){return this.defaultPreprocessors},setDefaultPreprocessors:function(g){this.defaultPreprocessors=Ext.Array.from(g);return this},setDefaultPreprocessorPosition:function(i,k,j){var g=this.defaultPreprocessors,h;if(typeof k=="string"){if(k==="first"){g.unshift(i);return this}else{if(k==="last"){g.push(i);return this}}k=(k==="after")?1:-1}h=Ext.Array.indexOf(g,j);if(h!==-1){Ext.Array.splice(g,Math.max(0,h+k),0,i)}return this}});d.registerPreprocessor("extend",function(h,k,p){var l=Ext.Base,m=l.prototype,n=k.extend,g,o,j;delete k.extend;if(n&&n!==Object){g=n}else{g=l}o=g.prototype;if(!g.$isClass){for(j in m){if(!o[j]){o[j]=m[j]}}}h.extend(g);h.triggerExtended.apply(h,arguments);if(k.onClassExtended){h.onExtended(k.onClassExtended,h);delete k.onClassExtended}},true);d.registerPreprocessor("privates",function(g,j){var i=j.privates,k=i.statics,h=i.privacy||true;delete j.privates;delete i.statics;g.addMembers(i,false,h);if(k){g.addMembers(k,true,h)}});d.registerPreprocessor("statics",function(g,h){g.addStatics(h.statics);delete h.statics});d.registerPreprocessor("inheritableStatics",function(g,h){g.addInheritableStatics(h.inheritableStatics);delete h.inheritableStatics});Ext.createRuleFn=function(g){return new Function("$c","with($c) { return ("+g+"); }")};Ext.expressionCache=new Ext.util.Cache({miss:Ext.createRuleFn});Ext.ruleKeySortFn=b;Ext.getPlatformConfigKeys=function(i){var h=[],g,j;for(g in i){j=Ext.expressionCache.get(g);if(j(Ext.platformTags)){h.push(g)}}h.sort(b);return h};d.registerPreprocessor("platformConfig",function(w,A,g){var l=A.platformConfig,z=A.config,n,m,p,x,u,q,C,s,B,y,k,v,o,t,h,r;delete A.platformConfig;if(l instanceof Array){z=z||{};r=(Ext.theme||(Ext.theme={name:"Default"})).name;for(v=0,o=l.length;v<o;v++){k=l[v];B=k.platform;delete k.platform;y=[].concat(k.theme);h=y.length;delete k.theme;if(B&&Ext.filterPlatform(B)){Ext.merge(z,k)}if(h){for(t=0;t<h;t++){if(r===y[t]){Ext.merge(z,k)}}}}}else{x=w.getConfigurator();m=x.configs;q=Ext.getPlatformConfigKeys(l);for(v=0,o=q.length;v<o;++v){p=l[q[v]];u=n=null;for(C in p){s=p[C];if(z&&C in z){(n||(n={}))[C]=s;(u||(u={}))[C]=z[C];delete z[C]}else{if(C in m){(n||(n={}))[C]=s}else{A[C]=s}}}if(u){x.add(u)}if(n){x.add(n)}}}});d.registerPreprocessor("config",function(g,h){if(h.hasOwnProperty("$configPrefixed")){g.prototype.$configPrefixed=h.$configPrefixed}g.addConfig(h.config);delete h.config});d.registerPreprocessor("cachedConfig",function(g,h){if(h.hasOwnProperty("$configPrefixed")){g.prototype.$configPrefixed=h.$configPrefixed}g.addCachedConfig(h.cachedConfig);delete h.cachedConfig});d.registerPreprocessor("mixins",function(j,k,g){var i=k.mixins,h=g.onCreated;delete k.mixins;g.onCreated=function(){g.onCreated=h;j.mixin(i);return g.onCreated.apply(this,arguments)}});Ext.extend=function(i,j,h){if(arguments.length===2&&Ext.isObject(j)){h=j;j=i;i=null}var g;if(!j){throw new Error("[Ext.extend] Attempting to extend from a class which has not been loaded on the page.")}h.extend=j;h.preprocessors=["extend","statics","inheritableStatics","mixins","platformConfig","config"];if(i){g=new d(i,h);g.prototype.constructor=i}else{g=new d(h)}g.prototype.override=function(l){for(var k in l){if(l.hasOwnProperty(k)){this[k]=l[k]}}};return g}}());Ext.Inventory=function(){var a=this;a.names=[];a.paths={};a.alternateToName={};a.aliasToName={};a.nameToAliases={};a.nameToAlternates={}};Ext.Inventory.prototype={_array1:[0],prefixes:null,dotRe:/\./g,wildcardRe:/\*/g,addAlias:function(b,a){return this.addMapping(b,a,this.aliasToName,this.nameToAliases)},addAlternate:function(a,b){return this.addMapping(a,b,this.alternateToName,this.nameToAlternates)},addMapping:function(l,e,g,n){var b=l.$className||l,j=b,k=this._array1,o,d,p,h,c,m;if(Ext.isString(b)){j={};j[b]=e}for(p in j){d=j[p];if(Ext.isString(d)){k[0]=d;d=k}c=d.length;m=n[p]||(n[p]=[]);for(h=0;h<c;++h){if(!(o=d[h])){continue}if(g[o]!==p){g[o]=p;m.push(o)}}}},getAliasesByName:function(a){return this.nameToAliases[a]||null},getAlternatesByName:function(a){return this.nameToAlternates[a]||null},getNameByAlias:function(a){return this.aliasToName[a]||""},getNameByAlternate:function(a){return this.alternateToName[a]||""},getNamesByExpression:function(m,a,j){var v=this,s=v.aliasToName,p=v.alternateToName,b=v.nameToAliases,d=v.nameToAlternates,u=j?a:{},l=[],t=Ext.isString(m)?[m]:m,h=t.length,e=v.wildcardRe,c,q,r,k,o,w,g;for(q=0;q<h;++q){if((c=t[q]).indexOf("*")<0){if(!(w=s[c])){if(!(w=p[c])){w=c}}if(!(w in u)&&!(a&&(w in a))){u[w]=1;l.push(w)}}else{g=new RegExp("^"+c.replace(e,"(.*?)")+"$");for(w in b){if(!(w in u)&&!(a&&(w in a))){if(!(k=g.test(w))){o=(r=b[w]).length;while(!k&&o-->0){k=g.test(r[o])}r=d[w];if(r&&!k){o=r.length;while(!k&&o-->0){k=g.test(r[o])}}}if(k){u[w]=1;l.push(w)}}}}}return l},getPath:function(b){var c=this,e=c.paths,a="",d;if(b in e){a=e[b]}else{d=c.getPrefix(b);if(d){b=b.substring(d.length+1);a=e[d];if(a){a+="/"}}a+=b.replace(c.dotRe,"/")+".js"}return a},getPrefix:function(b){if(b in this.paths){return b}var e=this.getPrefixes(),a=e.length,c,d;while(a-->0){c=(d=e[a]).length;if(c<b.length&&b.charAt(c)==="."&&d===b.substring(0,c)){return d}}return""},getPrefixes:function(){var a=this,b=a.prefixes;if(!b){a.prefixes=b=a.names.slice(0);b.sort(a._compareNames)}return b},removeName:function(b){var g=this,k=g.aliasToName,m=g.alternateToName,l=g.nameToAliases,e=g.nameToAlternates,c=l[b],h=e[b],d,j;delete l[b];delete e[b];if(c){for(d=c.length;d--;){if(b===(j=c[d])){delete k[j]}}}if(h){for(d=h.length;d--;){if(b===(j=h[d])){delete m[j]}}}},resolveName:function(a){var b=this,c;if(!(a in b.nameToAliases)){if(!(c=b.aliasToName[a])){c=b.alternateToName[a]}}return c||a},select:function(e,c){var d=this,g={},b={excludes:g,exclude:function(){d.getNamesByExpression(arguments,g,true);return this}},a;for(a in e){b[a]=d.selectMethod(g,e[a],c||e)}return b},selectMethod:function(d,b,a){var c=this;return function(e){var g=Ext.Array.slice(arguments,1);g.unshift(c.getNamesByExpression(e,d));return b.apply(a,g)}},setPath:Ext.Function.flexSetter(function(a,c){var b=this;b.paths[a]=c;b.names.push(a);b.prefixes=null;return b}),_compareNames:function(a,c){var b=a.length-c.length;if(!b){b=(a<c)?-1:1}return b}};Ext.ClassManager=(function(e,l,c,p,g){var j=Ext.Class.makeCtor,a=Ext.apply(new Ext.Inventory(),{classes:{},classState:{},existCache:{},namespaceRewrites:[{from:"Ext.",to:Ext}],enableNamespaceParseCache:true,namespaceParseCache:{},instantiators:[],isCreated:function(v){var u,w,t,s,x;if(a.classes[v]||a.existCache[v]){return true}s=g;x=a.parseNamespace(v);for(u=0,w=x.length;u<w;u++){t=x[u];if(typeof t!=="string"){s=t}else{if(!s||!s[t]){return false}s=s[t]}}a.triggerCreated(v);return true},createdListeners:[],nameCreatedListeners:{},existsListeners:[],nameExistsListeners:{},overrideMap:{},triggerCreated:function(s,t){a.existCache[s]=t||1;a.classState[s]+=40;a.notify(s,a.createdListeners,a.nameCreatedListeners)},onCreated:function(u,t,s){a.addListener(u,t,s,a.createdListeners,a.nameCreatedListeners)},notify:function(A,C,u){var v=a.getAlternatesByName(A),B=[A],x,z,w,y,t,s;for(x=0,z=C.length;x<z;x++){t=C[x];t.fn.call(t.scope,A)}while(B){for(x=0,z=B.length;x<z;x++){s=B[x];C=u[s];if(C){for(w=0,y=C.length;w<y;w++){t=C[w];t.fn.call(t.scope,s)}delete u[s]}}B=v;v=null}},addListener:function(x,w,v,u,t){if(Ext.isArray(v)){x=Ext.Function.createBarrier(v.length,x,w);for(s=0;s<v.length;s++){this.addListener(x,null,v[s],u,t)}return}var s,y={fn:x,scope:w};if(v){if(this.isCreated(v)){x.call(w,v);return}if(!t[v]){t[v]=[]}t[v].push(y)}else{u.push(y)}},parseNamespace:function(u){var s=this.namespaceParseCache,v,x,z,t,C,B,A,w,y;if(this.enableNamespaceParseCache){if(s.hasOwnProperty(u)){return s[u]}}v=[];x=this.namespaceRewrites;z=g;t=u;for(w=0,y=x.length;w<y;w++){C=x[w];B=C.from;A=C.to;if(t===B||t.substring(0,B.length)===B){t=t.substring(B.length);if(typeof A!=="string"){z=A}else{v=v.concat(A.split("."))}break}}v.push(z);v=v.concat(t.split("."));if(this.enableNamespaceParseCache){s[u]=v}return v},setNamespace:function(v,y){var t=g,z=this.parseNamespace(v),x=z.length-1,s=z[x],w,u;for(w=0;w<x;w++){u=z[w];if(typeof u!=="string"){t=u}else{if(!t[u]){t[u]={}}t=t[u]}}t[s]=y;return t[s]},createNamespaces:function(){var s=g,x,u,v,t,w,y;for(v=0,w=arguments.length;v<w;v++){x=this.parseNamespace(arguments[v]);for(t=0,y=x.length;t<y;t++){u=x[t];if(typeof u!=="string"){s=u}else{if(!s[u]){s[u]={}}s=s[u]}}}return s},set:function(s,v){var u=this,t=u.getName(v);u.classes[s]=u.setNamespace(s,v);if(t&&t!==s){u.addAlternate(t,s)}return this},get:function(u){var w=this.classes,s,y,t,v,x;if(w[u]){return w[u]}s=g;y=this.parseNamespace(u);for(v=0,x=y.length;v<x;v++){t=y[v];if(typeof t!=="string"){s=t}else{if(!s||!s[t]){return null}s=s[t]}}return s},addNameAliasMappings:function(s){this.addAlias(s)},addNameAlternateMappings:function(s){this.addAlternate(s)},getByAlias:function(s){return this.get(this.getNameByAlias(s))},getName:function(s){return s&&s.$className||""},getClass:function(s){return s&&s.self||null},create:function(t,v,s){var u=j(t);if(typeof v==="function"){v=v(u)}v.$className=t;return new e(u,v,function(){var w=v.postprocessors||a.defaultPostprocessors,D=a.postprocessors,E=[],C,y,B,x,A,z,F;delete v.postprocessors;for(y=0,B=w.length;y<B;y++){C=w[y];if(typeof C==="string"){C=D[C];z=C.properties;if(z===true){E.push(C.fn)}else{if(z){for(x=0,A=z.length;x<A;x++){F=z[x];if(v.hasOwnProperty(F)){E.push(C.fn);break}}}}}else{E.push(C)}}v.postprocessors=E;v.createdFn=s;a.processCreate(t,this,v)})},processCreate:function(v,t,x){var w=this,s=x.postprocessors.shift(),u=x.createdFn;if(!s){if(v){w.set(v,t)}delete t._classHooks;if(u){u.call(t,t)}if(v){w.triggerCreated(v)}return}if(s.call(w,v,t,x,w.processCreate)!==false){w.processCreate(v,t,x)}},createOverride:function(y,w,u){var A=this,C=1,B=w.override,D=w.requires,v=w.uses,x=w.mixins,s,z,t=function(){var E,I,H,G,F;if(!z){I=D?D.slice(0):[];if(x){if(!(s=x instanceof Array)){for(G in x){if(Ext.isString(E=x[G])){I.push(E)}}}else{for(H=0,F=x.length;H<F;++H){if(Ext.isString(E=x[H])){I.push(E)}}}}z=true;if(I.length){Ext.require(I,t);return}}if(s){for(H=0,F=x.length;H<F;++H){if(Ext.isString(E=x[H])){x[H]=Ext.ClassManager.get(E)}}}else{if(x){for(G in x){if(Ext.isString(E=x[G])){x[G]=Ext.ClassManager.get(E)}}}}E=B.$isClass?B:A.get(B);delete w.override;delete w.compatibility;delete w.requires;delete w.uses;Ext.override(E,w);Ext.Loader.history.push(y);if(v){Ext.Loader.addUsedClasses(v)}if(u){u.call(E,E)}};if(y){a.overrideMap[y]=true}if("compatibility" in w){C=w.compatibility;if(!C){C=false}else{if(typeof C==="number"){C=true}else{if(typeof C!=="boolean"){C=Ext.checkVersion(C)}}}}if(C){if(B.$isClass){t()}else{A.onCreated(t,A,B)}}A.triggerCreated(y,2);return A},instantiateByAlias:function(){var t=arguments[0],s=c.call(arguments),u=this.getNameByAlias(t);s[0]=u;return Ext.create.apply(Ext,s)},instantiate:function(){return Ext.create.apply(Ext,arguments)},dynInstantiate:function(t,s){s=p(s,true);s.unshift(t);return Ext.create.apply(Ext,s)},getInstantiator:function(v){var u=this.instantiators,w,t,s;w=u[v];if(!w){t=v;s=[];for(t=0;t<v;t++){s.push("a["+t+"]")}w=u[v]=new Function("c","a","return new c("+s.join(",")+")")}return w},postprocessors:{},defaultPostprocessors:[],registerPostprocessor:function(t,w,u,s,v){if(!s){s="last"}if(!u){u=[t]}this.postprocessors[t]={name:t,properties:u||false,fn:w};this.setDefaultPostprocessorPosition(t,s,v);return this},setDefaultPostprocessors:function(s){this.defaultPostprocessors=p(s);return this},setDefaultPostprocessorPosition:function(t,w,v){var u=this.defaultPostprocessors,s;if(typeof w==="string"){if(w==="first"){u.unshift(t);return this}else{if(w==="last"){u.push(t);return this}}w=(w==="after")?1:-1}s=Ext.Array.indexOf(u,v);if(s!==-1){Ext.Array.splice(u,Math.max(0,s+w),0,t)}return this}});a.registerPostprocessor("alias",function(u,t,x){var s=Ext.Array.from(x.alias),v,w;for(v=0,w=s.length;v<w;v++){l=s[v];this.addAlias(t,l)}},["xtype","alias"]);a.registerPostprocessor("singleton",function(t,s,v,u){if(v.singleton){u.call(this,t,new s(),v)}else{return true}return false});a.registerPostprocessor("alternateClassName",function(t,s,x){var v=x.alternateClassName,u,w,y;if(!(v instanceof Array)){v=[v]}for(u=0,w=v.length;u<w;u++){y=v[u];this.set(y,s)}});a.registerPostprocessor("debugHooks",function(t,s,u){var v=s.isInstance?s.self:s;delete v.prototype.debugHooks});a.registerPostprocessor("deprecated",function(t,s,u){var v=s.isInstance?s.self:s;v.addDeprecations(u.deprecated);delete v.prototype.deprecated});Ext.apply(Ext,{create:function(){var u=arguments[0],v=typeof u,t=c.call(arguments,1),s;if(v==="function"){s=u}else{if(v!=="string"&&t.length===0){t=[u];if(!(u=u.xclass)){u=t[0].xtype;if(u){u="widget."+u}}}u=a.resolveName(u);s=a.get(u)}if(!s){Ext.syncRequire(u);s=a.get(u)}return a.getInstantiator(t.length)(s,t)},widget:function(u,t){var x=u,v,w,s;if(typeof x!=="string"){t=u;x=t.xtype;w=t.xclass}else{t=t||{}}if(t.isComponent){return t}if(!w){v="widget."+x;w=a.getNameByAlias(v)}if(w){s=a.get(w)}if(!s){return Ext.create(w||v,t)}return new s(t)},createByAlias:l(a,"instantiateByAlias"),define:function(t,u,s){if(u.override){a.classState[t]=20;return a.createOverride.apply(a,arguments)}a.classState[t]=10;return a.create.apply(a,arguments)},undefine:function(v){var t=a.classes,x,y,u,s;delete a.namespaceParseCache[v];delete t[v];delete a.existCache[v];delete a.classState[v];a.removeName(v);x=a.parseNamespace(v);y=x.length-1;u=x[0];for(s=1;s<y;s++){u=u[x[s]];if(!u){return}}try{delete u[x[y]]}catch(w){u[x[y]]=undefined}},getClassName:l(a,"getName"),getDisplayName:function(s){if(s){if(s.displayName){return s.displayName}if(s.$name&&s.$class){return Ext.getClassName(s.$class)+"#"+s.$name}if(s.$className){return s.$className}}return"Anonymous"},getClass:l(a,"getClass"),namespace:l(a,"createNamespaces")});Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;e.registerPreprocessor("className",function(s,t){if("$className" in t){s.$className=t.$className}},true,"first");e.registerPreprocessor("alias",function(D,x){var B=D.prototype,u=p(x.xtype),s=p(x.alias),E="widget.",C=E.length,y=Array.prototype.slice.call(B.xtypesChain||[]),v=Ext.merge({},B.xtypesMap||{}),w,A,z,t;for(w=0,A=s.length;w<A;w++){z=s[w];if(z.substring(0,C)===E){t=z.substring(C);Ext.Array.include(u,t)}}D.xtype=x.xtype=u[0];x.xtypes=u;for(w=0,A=u.length;w<A;w++){t=u[w];if(!v[t]){v[t]=true;y.push(t)}}x.xtypesChain=y;x.xtypesMap=v;Ext.Function.interceptAfter(x,"onClassCreated",function(){var F=B.mixins,H,G;for(H in F){if(F.hasOwnProperty(H)){G=F[H];u=G.xtypes;if(u){for(w=0,A=u.length;w<A;w++){t=u[w];if(!v[t]){v[t]=true;y.push(t)}}}}}});for(w=0,A=u.length;w<A;w++){t=u[w];Ext.Array.include(s,E+t)}x.alias=s},["xtype","alias"]);if(Ext.manifest){var d=Ext.manifest,i=d.classes,r=d.paths,h={},o={},n,k,b,q,m;if(r){if(d.bootRelative){m=Ext.Boot.baseUrl;for(q in r){if(r.hasOwnProperty(q)){r[q]=m+r[q]}}}a.setPath(r)}if(i){for(n in i){o[n]=[];h[n]=[];k=i[n];if(k.alias){h[n]=k.alias}if(k.alternates){o[n]=k.alternates}}}a.addAlias(h);a.addAlternate(o)}return a}(Ext.Class,Ext.Function.alias,Array.prototype.slice,Ext.Array.from,Ext.global));(Ext.env||(Ext.env={})).Browser=function(u,o){var v=this,a=v.browserPrefixes,b=v.enginePrefixes,r=u.match(new RegExp("((?:"+Ext.Object.getValues(a).join(")|(?:")+"))([\\w\\._]+)")),h=u.match(new RegExp("((?:"+Ext.Object.getValues(b).join(")|(?:")+"))([\\w\\._]+)")),c=v.browserNames,q=c.other,k=v.engineNames,t=k.other,m="",g="",d="",j=false,p,n,l,w,s;v.userAgent=u;if(/Edge\//.test(u)){r=u.match(/(Edge\/)([\w.]+)/)}if(r){q=c[Ext.Object.getKey(a,r[1])];if(q==="Safari"&&/^Opera/.test(u)){q="Opera"}m=new Ext.Version(r[2])}if(h){t=k[Ext.Object.getKey(b,h[1])];g=new Ext.Version(h[2])}if(t==="Trident"&&q!=="IE"){q="IE";var e=u.match(/.*rv:(\d+.\d+)/);if(e&&e.length){e=e[1];m=new Ext.Version(e)}}if(u.match(/FB/)&&q==="Other"){q=c.safari;t=k.webkit}if(u.match(/Android.*Chrome/g)){q="ChromeMobile"}if(u.match(/OPR/)){q="Opera";r=u.match(/OPR\/(\d+.\d+)/);m=new Ext.Version(r[1])}Ext.apply(this,{engineName:t,engineVersion:g,name:q,version:m});this.setFlag(q,true,o);if(m){d=m.getMajor()||"";if(v.is.IE){d=parseInt(d,10);l=document.documentMode;if(l===7||(d===7&&l!==8&&l!==9&&l!==10)){d=7}else{if(l===8||(d===8&&l!==8&&l!==9&&l!==10)){d=8}else{if(l===9||(d===9&&l!==7&&l!==8&&l!==10)){d=9}else{if(l===10||(d===10&&l!==7&&l!==8&&l!==9)){d=10}else{if(l===11||(d===11&&l!==7&&l!==8&&l!==9&&l!==10)){d=11}}}}}s=Math.max(d,11);for(p=7;p<=s;++p){n="isIE"+p;if(d<=p){Ext[n+"m"]=true}if(d===p){Ext[n]=true}if(d>=p){Ext[n+"p"]=true}}}if(v.is.Opera&&parseInt(d,10)<=12){Ext.isOpera12m=true}Ext.chromeVersion=Ext.isChrome?d:0;Ext.firefoxVersion=Ext.isFirefox?d:0;Ext.ieVersion=Ext.isIE?d:0;Ext.operaVersion=Ext.isOpera?d:0;Ext.safariVersion=Ext.isSafari?d:0;Ext.webKitVersion=Ext.isWebKit?d:0;this.setFlag(q+d,true,o);this.setFlag(q+m.getShortVersion())}for(p in c){if(c.hasOwnProperty(p)){w=c[p];this.setFlag(w,q===w)}}this.setFlag(w);if(g){this.setFlag(t+(g.getMajor()||""));this.setFlag(t+g.getShortVersion())}for(p in k){if(k.hasOwnProperty(p)){w=k[p];this.setFlag(w,t===w,o)}}this.setFlag("Standalone",!!navigator.standalone);this.setFlag("Ripple",!!document.getElementById("tinyhippos-injected")&&!Ext.isEmpty(window.top.ripple));this.setFlag("WebWorks",!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){j=true;this.setFlag("PhoneGap");this.setFlag("Cordova")}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(u)){j=true}this.setFlag("WebView",j);this.isStrict=Ext.isStrict=document.compatMode==="CSS1Compat";this.isSecure=Ext.isSecure;this.identity=q+d+(this.isStrict?"Strict":"Quirks")};Ext.env.Browser.prototype={constructor:Ext.env.Browser,browserNames:{ie:"IE",firefox:"Firefox",safari:"Safari",chrome:"Chrome",opera:"Opera",dolfin:"Dolfin",edge:"Edge",webosbrowser:"webOSBrowser",chromeMobile:"ChromeMobile",chromeiOS:"ChromeiOS",silk:"Silk",other:"Other"},engineNames:{webkit:"WebKit",gecko:"Gecko",presto:"Presto",trident:"Trident",other:"Other"},enginePrefixes:{webkit:"AppleWebKit/",gecko:"Gecko/",presto:"Presto/",trident:"Trident/"},browserPrefixes:{ie:"MSIE ",edge:"Edge/",firefox:"Firefox/",chrome:"Chrome/",safari:"Version/",opera:"OPR/",dolfin:"Dolfin/",webosbrowser:"wOSBrowser/",chromeMobile:"CrMo/",chromeiOS:"CriOS/",silk:"Silk/"},styleDashPrefixes:{WebKit:"-webkit-",Gecko:"-moz-",Trident:"-ms-",Presto:"-o-",Other:""},stylePrefixes:{WebKit:"Webkit",Gecko:"Moz",Trident:"ms",Presto:"O",Other:""},propertyPrefixes:{WebKit:"webkit",Gecko:"moz",Trident:"ms",Presto:"o",Other:""},is:function(a){return !!this.is[a]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(a,c,b){if(c===undefined){c=true}this.is[a]=c;this.is[a.toLowerCase()]=c;if(b){Ext["is"+a]=c}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(a){var b=this.propertyPrefixes[this.engineName];if(b.length>0){return b+Ext.String.capitalize(a)}return a},getPreferredTranslationMethod:function(a){if(typeof a==="object"&&"translationMethod" in a&&a.translationMethod!=="auto"){return a.translationMethod}else{return"csstransform"}}};(function(a){Ext.browser=new Ext.env.Browser(a,true);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":"about:blank"}(Ext.global.navigator.userAgent));Ext.env.OS=function(p,b,m){var l=this,k=l.names,d=l.prefixes,a,j="",g=l.is,c,h,e,o,n;m=m||Ext.browser;for(c in d){if(d.hasOwnProperty(c)){h=d[c];e=p.match(new RegExp("(?:"+h+")([^\\s;]+)"));if(e){a=k[c];n=e[1];if(n&&n==="HTC_"){j=new Ext.Version("2.3")}else{if(n&&n==="Silk/"){j=new Ext.Version("2.3")}else{j=new Ext.Version(e[e.length-1])}}break}}}if(!a){a=k[(p.toLowerCase().match(/mac|win|linux/)||["other"])[0]];j=new Ext.Version("")}this.name=a;this.version=j;if(b){this.setFlag(b.replace(/ simulator$/i,""))}this.setFlag(a);if(j){this.setFlag(a+(j.getMajor()||""));this.setFlag(a+j.getShortVersion())}for(c in k){if(k.hasOwnProperty(c)){o=k[c];if(!g.hasOwnProperty(a)){this.setFlag(o,(a===o))}}}if(this.name==="iOS"&&window.screen.height===568){this.setFlag("iPhone5")}if(m.is.Safari||m.is.Silk){if(this.is.Android2||this.is.Android3||m.version.shortVersion===501){m.setFlag("AndroidStock");m.setFlag("AndroidStock2")}if(this.is.Android4){m.setFlag("AndroidStock");m.setFlag("AndroidStock4")}}};Ext.env.OS.prototype={constructor:Ext.env.OS,names:{ios:"iOS",android:"Android",windowsPhone:"WindowsPhone",webos:"webOS",blackberry:"BlackBerry",rimTablet:"RIMTablet",mac:"MacOS",win:"Windows",tizen:"Tizen",linux:"Linux",bada:"Bada",chrome:"ChromeOS",other:"Other"},prefixes:{tizen:"(Tizen )",ios:"i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ",android:"(Android |HTC_|Silk/)",windowsPhone:"Windows Phone ",blackberry:"(?:BlackBerry|BB)(?:.*)Version/",rimTablet:"RIM Tablet OS ",webos:"(?:webOS|hpwOS)/",bada:"Bada/",chrome:"CrOS "},is:function(a){return !!this[a]},name:null,version:null,setFlag:function(a,b){if(b===undefined){b=true}if(this.flags){this.flags[a]=b}this.is[a]=b;this.is[a.toLowerCase()]=b;return this}};(function(){var a=Ext.global.navigator,h=a.userAgent,g=Ext.env.OS,e=(Ext.is||(Ext.is={})),i,d,b;g.prototype.flags=e;Ext.os=i=new g(h,a.platform);d=i.name;Ext["is"+d]=true;Ext.isMac=e.Mac=e.MacOS;var j=window.location.search.match(/deviceType=(Tablet|Phone)/),c=window.deviceType;if(j&&j[1]){b=j[1]}else{if(c==="iPhone"){b="Phone"}else{if(c==="iPad"){b="Tablet"}else{if(!i.is.Android&&!i.is.iOS&&!i.is.WindowsPhone&&/Windows|Linux|MacOS/.test(d)){b="Desktop";Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else{if(i.is.iPad||i.is.RIMTablet||i.is.Android3||Ext.browser.is.Silk||(i.is.Android4&&h.search(/mobile/i)===-1)){b="Tablet"}else{b="Phone"}}}}}i.setFlag(b,true);i.deviceType=b;delete g.prototype.flags}());Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a="div"}else{if(typeof a!=="string"){return a}}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(c,b){var d=this.getTestElement(b).style,a=Ext.String.capitalize(c);if(typeof d[c]!=="undefined"||typeof d[Ext.browser.getStylePrefix(c)+a]!=="undefined"){return true}return false},isStyleSupportedWithoutPrefix:function(b,a){var c=this.getTestElement(a).style;if(typeof c[b]!=="undefined"){return true}return false},isEventSupported:function(c,a){if(a===undefined){a=window}var e=this.getTestElement(a),b="on"+c.toLowerCase(),d=(b in e);if(!d){if(e.setAttribute&&e.removeAttribute){e.setAttribute(b,"");d=typeof e[b]==="function";if(typeof e[b]!=="undefined"){e[b]=undefined}e.removeAttribute(b)}}return d},getStyle:function(c,b){var a=c.ownerDocument.defaultView,d=(a?a.getComputedStyle(c,null):c.currentStyle);return(d||c.style)[b]},getSupportedPropertyName:function(b,a){var c=Ext.browser.getVendorProperyName(a);if(c in b){return c}else{if(a in b){return a}}return null},detect:function(i){var j=this,l=document,g=j.toRun||j.tests,e=g.length,b=l.createElement("div"),c=[],o=Ext.supports,m=j.has,a,h,d,k;if(!Ext.theme){Ext.theme={name:"Default"}}Ext.theme.is={};Ext.theme.is[Ext.theme.name]=true;b.innerHTML='<div style="height:30px;width:50px;"><div style="height:20px;width:20px;"></div></div><div style="width: 200px; height: 200px; position: relative; padding: 5px;"><div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></div></div><div style="position: absolute; left: 10%; top: 10%;"></div><div style="float:left; background-color:transparent;"></div>';if(i){l.body.appendChild(b)}d=j.preDetected[Ext.browser.identity]||[];while(e--){h=g[e];k=d[e];a=h.name;if(k===undefined){if(!i&&h.ready){c.push(h);continue}k=h.fn.call(j,l,b)}o[a]=m[a]=k}if(i){l.body.removeChild(b)}j.toRun=c},report:function(){var b=[],a=this.tests.length,c;for(c=0;c<a;++c){b.push(this.has[this.tests[c].name]?1:0)}Ext.log(Ext.browser.identity+": ["+b.join(",")+"]")},preDetected:{},tests:[{name:"CSSPointerEvents",fn:function(a){return"pointerEvents" in a.documentElement.style}},{name:"CSS3BoxShadow",fn:function(a){return"boxShadow" in a.documentElement.style||"WebkitBoxShadow" in a.documentElement.style||"MozBoxShadow" in a.documentElement.style}},{name:"ClassList",fn:function(a){return !!a.documentElement.classList}},{name:"Canvas",fn:function(){var a=this.getTestElement("canvas");return !!(a&&a.getContext&&a.getContext("2d"))}},{name:"Svg",fn:function(a){return !!(a.createElementNS&&!!a.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect)}},{name:"Vml",fn:function(){var b=this.getTestElement(),a=false;b.innerHTML="<!--[if vml]><br><![endif]-->";a=(b.childNodes.length===1);b.innerHTML="";return a}},{name:"touchScroll",fn:function(){var a=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){a=1}else{if(Ext.supports.Touch){a=2}}return a}},{name:"Touch",fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return(Ext.supports.TouchEvents&&a!==1)||a>1}else{return Ext.supports.TouchEvents||a>0}}},{name:"TouchEvents",fn:function(){return this.isEventSupported("touchend")}},{name:"PointerEvents",fn:function(){return navigator.pointerEnabled}},{name:"MSPointerEvents",fn:function(){return navigator.msPointerEnabled}},{name:"Orientation",fn:function(){return("orientation" in window)&&this.isEventSupported("orientationchange")}},{name:"OrientationChange",fn:function(){return this.isEventSupported("orientationchange")}},{name:"DeviceMotion",fn:function(){return this.isEventSupported("devicemotion")}},{names:["Geolocation","GeoLocation"],fn:function(){return"geolocation" in window.navigator}},{name:"SqlDatabase",fn:function(){return"openDatabase" in window}},{name:"WebSockets",fn:function(){return"WebSocket" in window}},{name:"Range",fn:function(){return !!document.createRange}},{name:"CreateContextualFragment",fn:function(){var a=!!document.createRange?document.createRange():false;return a&&!!a.createContextualFragment}},{name:"History",fn:function(){return("history" in window&&"pushState" in window.history)}},{name:"CssTransforms",fn:function(){return this.isStyleSupported("transform")}},{name:"CssTransformNoPrefix",fn:function(){return this.isStyleSupportedWithoutPrefix("transform")}},{name:"Css3dTransforms",fn:function(){return this.has("CssTransforms")&&this.isStyleSupported("perspective")&&!Ext.browser.is.AndroidStock2}},{name:"CssAnimations",fn:function(){return this.isStyleSupported("animationName")}},{names:["CssTransitions","Transitions"],fn:function(){return this.isStyleSupported("transitionProperty")}},{names:["Audio","AudioTag"],fn:function(){return !!this.getTestElement("audio").canPlayType}},{name:"Video",fn:function(){return !!this.getTestElement("video").canPlayType}},{name:"LocalStorage",fn:function(){try{if("localStorage" in window&&window.localStorage!==null){localStorage.setItem("sencha-localstorage-test","test success");localStorage.removeItem("sencha-localstorage-test");return true}}catch(a){}return false}},{name:"XHR2",fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&("withCredentials" in new XMLHttpRequest())}},{name:"XHRUploadProgress",fn:function(){if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){var a=new XMLHttpRequest();return a&&("upload" in a)&&("onprogress" in a.upload)}return false}},{name:"NumericInputPlaceHolder",fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:"ProperHBoxStretching",ready:true,fn:function(){var b=document.createElement("div"),c=b.appendChild(document.createElement("div")),d=c.appendChild(document.createElement("div")),a;b.setAttribute("style","width: 100px; height: 100px; position: relative;");c.setAttribute("style","position: absolute; display: -ms-flexbox; display: -webkit-flex; display: -moz-flexbox; display: flex; -ms-flex-direction: row; -webkit-flex-direction: row; -moz-flex-direction: row; flex-direction: row; min-width: 100%;");d.setAttribute("style","width: 200px; height: 50px;");document.body.appendChild(b);a=c.offsetWidth;document.body.removeChild(b);return(a>100)}},{name:"matchesSelector",fn:function(){var b=document.documentElement,e="matches",d="webkitMatchesSelector",a="msMatchesSelector",c="mozMatchesSelector";return b[e]?e:b[d]?d:b[a]?a:b[c]?c:null}},{name:"RightMargin",ready:true,fn:function(b,c){var a=b.defaultView;return !(a&&a.getComputedStyle(c.firstChild.firstChild,null).marginRight!=="0px")}},{name:"DisplayChangeInputSelectionBug",fn:function(){var a=Ext.webKitVersion;return 0<a&&a<533}},{name:"DisplayChangeTextAreaSelectionBug",fn:function(){var a=Ext.webKitVersion;return 0<a&&a<534.24}},{name:"TransparentColor",ready:true,fn:function(b,c,a){a=b.defaultView;return !(a&&a.getComputedStyle(c.lastChild,null).backgroundColor!=="transparent")}},{name:"ComputedStyle",ready:true,fn:function(b,c,a){a=b.defaultView;return a&&a.getComputedStyle}},{name:"Float",fn:function(a){return"cssFloat" in a.documentElement.style}},{name:"CSS3BorderRadius",ready:true,fn:function(d){var b=["borderRadius","BorderRadius","MozBorderRadius","WebkitBorderRadius","OBorderRadius","KhtmlBorderRadius"],c=false,a;for(a=0;a<b.length;a++){if(d.documentElement.style[b[a]]!==undefined){c=true}}return c&&!Ext.isIE9}},{name:"CSS3LinearGradient",fn:function(g,a){var i="background-image:",h="-webkit-gradient(linear, left top, right bottom, from(black), to(white))",e="linear-gradient(left top, black, white)",d="-moz-"+e,b="-ms-"+e,c="-o-"+e,j=[i+h,i+e,i+d,i+b,i+c];a.style.cssText=j.join(";");return((""+a.style.backgroundImage).indexOf("gradient")!==-1)&&!Ext.isIE9}},{name:"MouseEnterLeave",fn:function(a){return("onmouseenter" in a.documentElement&&"onmouseleave" in a.documentElement)}},{name:"MouseWheel",fn:function(a){return("onmousewheel" in a.documentElement)}},{name:"Opacity",fn:function(a,b){if(Ext.isIE8){return false}b.firstChild.style.cssText="opacity:0.73";return b.firstChild.style.opacity=="0.73"}},{name:"Placeholder",fn:function(a){return"placeholder" in a.createElement("input")}},{name:"Direct2DBug",fn:function(a){return Ext.isString(a.documentElement.style.msTransformOrigin)&&Ext.isIE9m}},{name:"BoundingClientRect",fn:function(a){return"getBoundingClientRect" in a.documentElement}},{name:"RotatedBoundingClientRect",ready:true,fn:function(e){var a=e.body,b=false,d=e.createElement("div"),c=d.style;if(d.getBoundingClientRect){c.position="absolute";c.top="0";c.WebkitTransform=c.MozTransform=c.msTransform=c.OTransform=c.transform="rotate(90deg)";c.width="100px";c.height="30px";a.appendChild(d);b=d.getBoundingClientRect().height!==100;a.removeChild(d)}return b}},{name:"ChildContentClearedWhenSettingInnerHTML",ready:true,fn:function(){var a=this.getTestElement(),b;a.innerHTML="<div>a</div>";b=a.firstChild;a.innerHTML="<div>b</div>";return b.innerHTML!=="a"}},{name:"IncludePaddingInWidthCalculation",ready:true,fn:function(a,b){return b.childNodes[1].firstChild.offsetWidth===210}},{name:"IncludePaddingInHeightCalculation",ready:true,fn:function(a,b){return b.childNodes[1].firstChild.offsetHeight===210}},{name:"TextAreaMaxLength",fn:function(a){return("maxlength" in a.createElement("textarea"))}},{name:"GetPositionPercentage",ready:true,fn:function(a,b){return Ext.feature.getStyle(b.childNodes[2],"left")==="10%"}},{name:"PercentageHeightOverflowBug",ready:true,fn:function(d){var a=false,c,b;if(Ext.getScrollbarSize().height){b=this.getTestElement();c=b.style;c.height="50px";c.width="50px";c.overflow="auto";c.position="absolute";b.innerHTML=['<div style="display:table;height:100%;">','<div style="width:51px;"></div>',"</div>"].join("");d.body.appendChild(b);if(b.firstChild.offsetHeight===50){a=true}d.body.removeChild(b)}return a}},{name:"xOriginBug",ready:true,fn:function(d,e){e.innerHTML='<div id="b1" style="height:100px;width:100px;direction:rtl;position:relative;overflow:scroll"><div id="b2" style="position:relative;width:100%;height:20px;"></div><div id="b3" style="position:absolute;width:20px;height:20px;top:0px;right:0px"></div></div>';var c=document.getElementById("b1").getBoundingClientRect(),b=document.getElementById("b2").getBoundingClientRect(),a=document.getElementById("b3").getBoundingClientRect();return(b.left!==c.left&&a.right!==c.right)}},{name:"ScrollWidthInlinePaddingBug",ready:true,fn:function(d){var a=false,c,b;b=d.createElement("div");c=b.style;c.height="50px";c.width="50px";c.padding="10px";c.overflow="hidden";c.position="absolute";b.innerHTML='<span style="display:inline-block;zoom:1;height:60px;width:60px;"></span>';d.body.appendChild(b);if(b.scrollWidth===70){a=true}d.body.removeChild(b);return a}},{name:"rtlVertScrollbarOnRight",ready:true,fn:function(c,d){d.innerHTML='<div style="height:100px;width:100px;direction:rtl;overflow:scroll"><div style="width:20px;height:200px;"></div></div>';var b=d.firstChild,a=b.firstChild;return(a.offsetLeft+a.offsetWidth!==b.offsetLeft+b.offsetWidth)}},{name:"rtlVertScrollbarOverflowBug",ready:true,fn:function(b,c){c.innerHTML='<div style="height:100px;width:100px;direction:rtl;overflow:auto"><div style="width:95px;height:200px;"></div></div>';var a=c.firstChild;return a.clientHeight===a.offsetHeight}},{identity:"defineProperty",fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return false}return true}},{identify:"nativeXhr",fn:function(){if(typeof XMLHttpRequest!=="undefined"){return true}XMLHttpRequest=function(){try{return new ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(a){return null}};return false}},{name:"SpecialKeyDownRepeat",fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!((Ext.isGecko&&!Ext.isWindows)||(Ext.isOpera&&Ext.operaVersion<12))}},{name:"EmulatedMouseOver",fn:function(){return Ext.os.is.iOS}},{name:"Hashchange",fn:function(){var a=document.documentMode;return"onhashchange" in window&&(a===undefined||a>7)}},{name:"FixedTableWidthBug",ready:true,fn:function(){if(Ext.isIE8){return false}var b=document.createElement("div"),a=document.createElement("div"),c;b.setAttribute("style","display:table;table-layout:fixed;");a.setAttribute("style","display:table-cell;min-width:50px;");b.appendChild(a);document.body.appendChild(b);b.offsetWidth;b.style.width="25px";c=b.offsetWidth;document.body.removeChild(b);return c===50}},{name:"FocusinFocusoutEvents",fn:function(){return !Ext.isGecko}},0]};Ext.feature.tests.pop();Ext.supports={};Ext.feature.detect();Ext.env.Ready={blocks:(location.search||"").indexOf("ext-pauseReadyFire")>0?1:0,bound:0,delay:1,firing:false,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==="complete"){a.onReadyEvent({type:b.readyState||"body"})}else{a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener("deviceready",a.onReadyEvent,false)}b.addEventListener("DOMContentLoaded",a.onReadyEvent,false);window.addEventListener("load",a.onReadyEvent,false)}}},block:function(){++this.blocks;Ext.isReady=false},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.now();Ext.isDomReady=true;a.state=1;Ext.feature.detect(true);if(!a.delay){a.handleReady()}else{if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else{a.handleReadySoon()}}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.now();a.invokeAll();Ext._afterReadytime=Ext.now()}},handleReadySoon:function(a){var b=this;if(!b.timer){b.timer=Ext.defer(function(){b.timer=null;b.handleReady()},a||b.delay)}},invoke:function(b){var a=b.delay;if(a){Ext.defer(b.fn,a,b.scope)}else{if(Ext.elevateFunction){Ext.elevateFunction(b.fn,b.scope)}else{b.fn.call(b.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else{this.doInvokeAll()}},doInvokeAll:function(){var b=this,a=b.listeners,c;if(!b.blocks){Ext.isReady=true}b.firing=true;while(a.length){if(b.sortGeneration!==b.generation){b.sortGeneration=b.generation;a.sort(b.sortFn)}c=a.pop();if(b.blocks&&!c.dom){a.push(c);break}b.invoke(c)}b.firing=false},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:false,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(c,b,a){var d=Ext.env.Ready,e=d.makeListener(c,b,a);if(d.state===2&&!d.firing&&(e.dom||!d.blocks)){d.invoke(e)}else{d.listeners.push(e);++d.generation;if(!d.bound){d.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else{a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(d,c){return -((d.phase-c.phase)||(c.priority-d.priority)||(d.id-c.id))},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener("deviceready",a.onReadyEvent,false)}b.removeEventListener("DOMContentLoaded",a.onReadyEvent,false);window.removeEventListener("load",a.onReadyEvent,false)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=true;try{document.documentElement.doScroll("left")}catch(c){b=false}if(b&&document.body){a.onReadyEvent({type:"doScroll"})}else{a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){if(a.bound){return}var d=document,b;try{b=window.frameElement===undefined}catch(c){}if(!b||!d.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else{if(a.pollScroll()){return}}if(d.readyState==="complete"){a.onReadyEvent({type:"already "+(d.readyState||"body")})}else{d.attachEvent("onreadystatechange",a.onReadyStateChange);window.attachEvent("onload",a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent("onreadystatechange",a.onReadyStateChange);window.detachEvent("onload",a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){clearTimeout(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:true};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()}());Ext.Loader=(new function(){var c=this,a=Ext.ClassManager,h=Ext.Boot,d=Ext.Class,j=Ext.env.Ready,i=Ext.Function.alias,g=["extend","mixins","requires"],n={},k=[],b=[],e=[],o={},m={},l={enabled:true,scriptChainDelay:false,disableCaching:true,disableCachingParam:"_dc",paths:a.paths,preserveScripts:true,scriptCharset:undefined},p={disableCaching:true,disableCachingParam:true,preserveScripts:true,scriptChainDelay:"loadDelay"};Ext.apply(c,{isInHistory:n,isLoading:false,history:k,config:l,readyListeners:b,optionalRequires:e,requiresMap:o,hasFileLoadError:false,scriptsLoading:0,syncModeEnabled:false,missingQueue:m,init:function(){var v=document.getElementsByTagName("script"),q=v[v.length-1].src,A=q.substring(0,q.lastIndexOf("/")+1),y=Ext._classPathMetadata,z=Ext.Microloader,s=Ext.manifest,t,w,x,u,r;if(!a.getPath("Ext")){a.setPath("Ext",A+"src")}if(y){Ext._classPathMetadata=null;c.addClassPathMappings(y)}if(s){t=s.loadOrder;w=Ext.Boot.baseUrl;if(t&&s.bootRelative){for(x=t.length,u=0;u<x;u++){r=t[u];r.path=w+r.path}}}if(z){j.block();z.onMicroloaderReady(function(){j.unblock()})}},setConfig:Ext.Function.flexSetter(function(q,r){if(q==="paths"){c.setPath(r)}else{l[q]=r;var s=p[q];if(s){h.setConfig((s===true)?q:s,r)}}return c}),getConfig:function(q){return q?l[q]:l},setPath:function(){a.setPath.apply(a,arguments);return c},addClassPathMappings:function(q){a.setPath(q);return c},addBaseUrlClassPathMappings:function(q){for(var r in q){q[r]=h.baseUrl+q[r]}Ext.Loader.addClassPathMappings(q)},getPath:function(q){return a.getPath(q)},require:function(s,r,q,u){if(u){return c.exclude(u).require(s,r,q)}var t=a.getNamesByExpression(s);return c.load(t,r,q)},syncRequire:function(){var r=c.syncModeEnabled;c.syncModeEnabled=true;var q=c.require.apply(c,arguments);c.syncModeEnabled=r;return q},exclude:function(r){var q=a.select({require:function(u,t,s){return c.load(u,t,s)},syncRequire:function(w,u,t){var v=c.syncModeEnabled;c.syncModeEnabled=true;var s=c.load(w,u,t);c.syncModeEnabled=v;return s}});q.exclude(r);return q},load:function(q,y,z){if(y){if(y.length){y=c.makeLoadCallback(q,y)}y=y.bind(z||Ext.global)}var t=[],s=q.length,w,v,u,x=[],r=a.classState;for(v=0;v<s;++v){w=a.resolveName(q[v]);if(!a.isCreated(w)){t.push(w);m[w]=c.getPath(w);if(!r[w]){x.push(m[w])}}}u=t.length;if(u){c.missingCount+=u;a.onCreated(function(){if(y){Ext.callback(y,z,arguments)}c.checkReady()},c,t);if(!l.enabled){Ext.Error.raise("Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class"+((t.length>1)?"es":"")+": "+t.join(", "))}if(x.length){c.loadScripts({url:x,_classNames:t})}else{c.checkReady()}}else{if(y){y.call(z)}c.checkReady()}if(c.syncModeEnabled){if(s===1){return a.get(q[0])}}return c},makeLoadCallback:function(q,r){return function(){var t=[],s=q.length;while(s-->0){t[s]=a.get(q[s])}return r.apply(this,t)}},onLoadFailure:function(){var q=this,r=q.onError;c.hasFileLoadError=true;--c.scriptsLoading;if(r){r.call(q.userScope,q)}c.checkReady()},onLoadSuccess:function(){var q=this,r=q.onLoad;--c.scriptsLoading;if(r){r.call(q.userScope,q)}c.checkReady()},onReady:function(s,r,u,q){if(u){j.on(s,r,q)}else{var t=j.makeListener(s,r,q);if(c.isLoading){b.push(t)}else{j.invoke(t)}}},addUsedClasses:function(s){var q,r,t;if(s){s=(typeof s==="string")?[s]:s;for(r=0,t=s.length;r<t;r++){q=s[r];if(typeof q==="string"&&!Ext.Array.contains(e,q)){e.push(q)}}}return c},triggerReady:function(){var q,r=e;if(c.isLoading&&r.length){e=[];c.require(r)}else{c.isLoading=false;b.sort(j.sortFn);while(b.length&&!c.isLoading){q=b.pop();j.invoke(q)}j.unblock()}},historyPush:function(q){if(q&&!n[q]&&!a.overrideMap[q]){n[q]=true;k.push(q)}return c},loadScripts:function(u){var t=Ext.manifest,q=t&&t.loadOrder,r=t&&t.loadOrderMap,s;++c.scriptsLoading;if(q&&!r){t.loadOrderMap=r=h.createLoadOrderMap(q)}c.checkReady();s=Ext.apply({loadOrder:q,loadOrderMap:r,charset:l.scriptCharset,success:c.onLoadSuccess,failure:c.onLoadFailure,sync:c.syncModeEnabled,_classNames:[]},u);s.userScope=s.scope;s.scope=s;h.load(s)},loadScriptsSync:function(r){var q=c.syncModeEnabled;c.syncModeEnabled=true;c.loadScripts({url:r});c.syncModeEnabled=q},loadScriptsSyncBasePrefix:function(r){var q=c.syncModeEnabled;c.syncModeEnabled=true;c.loadScripts({url:r,prependBaseUrl:true});c.syncModeEnabled=q},loadScript:function(y){var r=typeof y==="string",u=y instanceof Array,x=!u&&!r,q=x?y.url:y,t=x&&y.onError,v=x&&y.onLoad,w=x&&y.scope,s={url:q,scope:w,onLoad:v,onError:t,_classNames:[]};c.loadScripts(s)},flushMissingQueue:function(){var q,t,s=0,r=0;for(q in m){s++;t=m[q];if(a.isCreated(q)){delete m[q]}else{if(a.existCache[q]===2){delete m[q]}else{++r}}}this.missingCount=r},checkReady:function(){var r=c.isLoading,q;c.flushMissingQueue();q=c.missingCount+c.scriptsLoading;if(q&&!r){j.block();c.isLoading=!!q}else{if(!q&&r){c.triggerReady()}}}});Ext.require=i(c,"require");Ext.syncRequire=i(c,"syncRequire");Ext.exclude=i(c,"exclude");d.registerPreprocessor("loader",function(F,u,E,D){var A=this,y=[],q,z=a.getName(F),t,s,x,w,C,v,r,B;for(t=0,x=g.length;t<x;t++){v=g[t];if(u.hasOwnProperty(v)){r=u[v];if(typeof r==="string"){y.push(r)}else{if(r instanceof Array){for(s=0,w=r.length;s<w;s++){C=r[s];if(typeof C==="string"){y.push(C)}}}else{if(typeof r!=="function"){for(s in r){if(r.hasOwnProperty(s)){C=r[s];if(typeof C==="string"){y.push(C)}}}}}}}}if(y.length===0){return}if(z){o[z]=y}(z?c.exclude(z):c).require(y,function(){for(t=0,x=g.length;t<x;t++){v=g[t];if(u.hasOwnProperty(v)){r=u[v];if(typeof r==="string"){u[v]=a.get(r)}else{if(r instanceof Array){for(s=0,w=r.length;s<w;s++){C=r[s];if(typeof C==="string"){u[v][s]=a.get(C)}}}else{if(typeof r!=="function"){for(var G in r){if(r.hasOwnProperty(G)){C=r[G];if(typeof C==="string"){u[v][G]=a.get(C)}}}}}}}}D.call(A,F,u,E)});return false},true,"after","className");a.registerPostprocessor("uses",function(r,B,w){var q=Ext.manifest,s=q&&q.loadOrder,t=q&&q.classes,u,y,A,x,v,z;if(s){y=t[r];if(y&&!isNaN(v=y.idx)){A=s[v];u=A.uses;z={};for(x=u.length,v=0;v<x;v++){z[u[v]]=true}u=Ext.Boot.getPathsFromIndexes(z,s,true);if(u.length>0){c.loadScripts({url:u,sequential:true})}}}if(w.uses){u=w.uses;c.addUsedClasses(u)}});a.onCreated(c.historyPush);c.init()}());Ext._endTime=new Date().getTime();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}(Ext.cmd.derive("Ext.Mixin",Ext.Base,function(a){return{statics:{addHook:function(i,e,c,d){var h=Ext.isFunction(i),g=function(){var k=arguments,l=h?i:d[i],j=this.callParent(k);l.apply(this,k);return j},b=e.hasOwnProperty(c)&&e[c];if(h){i.$previous=Ext.emptyFn}g.$name=c;g.$owner=e.self;if(b){g.$previous=b.$previous;b.$previous=g}else{e[c]=g}}},onClassExtended:function(l,d){var g=d.mixinConfig,j=d.xhooks,i=l.superclass,e=d.onClassMixedIn,b,h,k,c;if(j){delete d.xhooks;(g||(d.mixinConfig=g={})).on=j}if(g){b=i.mixinConfig;if(b){d.mixinConfig=g=Ext.merge({},b,g)}d.mixinId=g.id;h=g.before;k=g.after;j=g.on;c=g.extended}if(h||k||j||c){d.onClassMixedIn=function(p){var m=this.prototype,o=p.prototype,n;if(h){Ext.Object.each(h,function(q,r){p.addMember(q,function(){if(m[r].apply(this,arguments)!==false){return this.callParent(arguments)}})})}if(k){Ext.Object.each(k,function(q,r){p.addMember(q,function(){var s=this.callParent(arguments);m[r].apply(this,arguments);return s})})}if(j){for(n in j){a.addHook(j[n],o,n,m)}}if(c){p.onExtended(function(){var q=Ext.Array.slice(arguments,0);q.unshift(p);return c.apply(this,q)},this)}if(e){e.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,"Mixin"],0));Ext.util=Ext.util||{};Ext.util.DelayedTask=function(e,d,b,i,h){var g=this,a,c=function(){var j=Ext.GlobalEvents;clearInterval(g.id);g.id=null;e.apply(d,b||[]);if(h!==false&&j.hasListeners.idle){j.fireEvent("idle")}};i=typeof i==="boolean"?i:true;g.id=null;g.delay=function(k,m,l,j){if(i){g.cancel()}if(typeof k==="number"){a=k}e=m||e;d=l||d;b=j||b;if(!g.id){g.id=Ext.interval(c,a)}};g.cancel=function(){if(g.id){clearInterval(g.id);g.id=null}}};(Ext.cmd.derive("Ext.util.Event",Ext.Base,function(){var d=Array.prototype.slice,a=Ext.Array.insert,c=Ext.Array.toArray,b={};return{isEvent:true,suspended:0,noOptions:{},constructor:function(g,e){this.name=e;this.observable=g;this.listeners=[]},addListener:function(n,e,g,u,q){var x=this,l=false,p=x.observable,k=x.name,r,j,w,t,y,s,h,m,v,o;if(x.findListener(n,e)===-1){j=x.createListener(n,e,g,u,q);if(x.firing){x.listeners=x.listeners.slice(0)}r=x.listeners;m=h=r.length;w=g&&g.priority;y=x._highestNegativePriorityIndex;s=y!==undefined;if(w){t=(w<0);if(!t||s){for(v=(t?y:0);v<h;v++){o=r[v].o?r[v].o.priority||0:0;if(o<w){m=v;break}}}else{x._highestNegativePriorityIndex=m}}else{if(s){m=y}}if(!t&&m<=y){x._highestNegativePriorityIndex++}if(m===h){r[h]=j}else{a(r,m,[j])}if(p.isElement){p._getPublisher(k).subscribe(p,k,g.delegated!==false,g.capture)}l=true}return l},createListener:function(n,q,e,g,i){var l=this,m=Ext._namedScopes[q],h={fn:n,scope:q,ev:l,caller:g,manager:i,namedScope:m,defaultScope:m?(q||l.observable):undefined,lateBound:typeof n==="string"},p=n,k=false,j;if(e){h.o=e;if(e.single){p=l.createSingle(p,h,e,q);k=true}if(e.target){p=l.createTargeted(p,h,e,q,k);k=true}if(e.delay){p=l.createDelayed(p,h,e,q,k);k=true}if(e.buffer){p=l.createBuffered(p,h,e,q,k);k=true}if(l.observable.isElement){j=e.type;if(j){h.type=j}}}h.fireFn=p;h.wrapped=k;return h},findListener:function(j,h){var g=this.listeners,e=g.length,k;while(e--){k=g[e];if(k){if(k.fn===j&&k.scope==h){return e}}}return -1},removeListener:function(r,t,p){var q=this,o=false,e=q.observable,n=q.name,h,v,u,l,j,s,g,m;p=p||q.findListener(r,t);if(p!=-1){h=q.listeners[p];u=h.o;v=q._highestNegativePriorityIndex;if(q.firing){q.listeners=q.listeners.slice(0)}if(h.task){h.task.cancel();delete h.task}l=h.tasks&&h.tasks.length;if(l){while(l--){h.tasks[l].cancel()}delete h.tasks}q.listeners.splice(p,1);j=h.manager;if(j){s=j.managedListeners;if(s){for(m=s.length;m--;){g=s[m];if(g.item===q.observable&&g.ename===n&&g.fn===r&&g.scope===t){s.splice(m,1)}}}}if(v){if(p<v){q._highestNegativePriorityIndex--}else{if(p===v&&p===q.listeners.length){delete q._highestNegativePriorityIndex}}}if(e.isElement){e._getPublisher(n).unsubscribe(e,n,u.delegated!==false,u.capture)}o=true}return o},clearListeners:function(){var g=this.listeners,e=g.length,h;while(e--){h=g[e];this.removeListener(h.fn,h.scope)}},suspend:function(){++this.suspended},resume:function(){if(this.suspended){--this.suspended}},isSuspended:function(){return this.suspended>0},fire:function(){var u=this,v=u.listeners,p=v.length,s=u.observable.isElement,x,w,l,m,r,h,o,k,g,t,j,n,q;if(!u.suspended&&p>0){u.firing=true;r=arguments.length?d.call(arguments,0):[];o=r.length;if(s){q=r[0]}for(m=0;m<p;m++){h=v[m];x=h.o;if(s){if(g){q.setCurrentTarget(g)}t=h.type;if(t){j=q;q=r[0]=j.chain({type:t})}Ext.EventObject=q}n=r;if(x){if(s){w=x.delegate;if(w){k=q.getTarget("#"+q.currentTarget.id+" "+w);if(k){r[1]=k;g=q.currentTarget;q.setCurrentTarget(k)}else{continue}}if(x.preventDefault){q.preventDefault()}if(x.stopPropagation){q.stopPropagation()}if(x.stopEvent){q.stopEvent()}}r[o]=x;if(x.args){n=x.args.concat(r)}}l=u.getFireInfo(h);if(l.fn.apply(l.scope,n)===false){return(u.firing=false)}if(j){q=r[0]=j;j=null}}}u.firing=false;return true},getFireInfo:function(k,j){var l=this.observable,e=k.fireFn,i=k.scope,g=k.namedScope,h;if(!j&&k.wrapped){b.fn=e;return b}h=j?k.fn:e;if(k.lateBound){if(!i||g){i=(k.caller||l).resolveListenerScope(k.defaultScope)}h=i[h]}else{if(g&&g.isController){i=(k.caller||l).resolveListenerScope(k.defaultScope)}else{if(!i||g){i=l}}}b.fn=h;b.scope=i;return b},createTargeted:function(h,i,j,g,e){return function(){if(j.target===arguments[0]){var k;if(!e){k=i.ev.getFireInfo(i,true);h=k.fn;g=k.scope}return h.apply(g,arguments)}}},createBuffered:function(h,i,j,g,e){i.task=new Ext.util.DelayedTask();return function(){var k;if(!e){k=i.ev.getFireInfo(i,true);h=k.fn;g=k.scope}i.task.delay(j.buffer,h,g,c(arguments))}},createDelayed:function(h,i,j,g,e){return function(){var k=new Ext.util.DelayedTask(),l;if(!e){l=i.ev.getFireInfo(i,true);h=l.fn;g=l.scope}if(!i.tasks){i.tasks=[]}i.tasks.push(k);k.delay(j.delay||10,h,g,c(arguments))}},createSingle:function(h,i,j,g,e){return function(){var l=i.ev,m=l.observable,k=i.fn,n;if(m){m.removeListener(l.name,k,g)}else{l.removeListener(k,g)}if(!e){n=l.getFireInfo(i,true);h=n.fn;g=n.scope}return h.apply(g,arguments)}}}},1,0,0,0,0,0,[Ext.util,"Event"],0));(Ext.cmd.derive("Ext.mixin.Identifiable",Ext.Base,{statics:{uniqueIds:{}},isIdentifiable:true,mixinId:"identifiable",idCleanRegex:/\.|[^\w\-]/g,defaultIdPrefix:"ext-",defaultIdSeparator:"-",getOptimizedId:function(){return this.id},getUniqueId:function(){var g=this.id,b,d,e,a,c;if(!(g||g===0)){b=this.self.prototype;d=this.defaultIdSeparator;a=Ext.mixin.Identifiable.uniqueIds;if(!b.hasOwnProperty("identifiablePrefix")){e=this.xtype;if(e){c=this.defaultIdPrefix+e.replace(this.idCleanRegex,d)+d}else{if(!(c=b.$className)){c=this.defaultIdPrefix+"anonymous"+d}else{c=c.replace(this.idCleanRegex,d).toLowerCase()+d}}b.identifiablePrefix=c}c=this.identifiablePrefix;if(!a.hasOwnProperty(c)){a[c]=0}g=this.id=this.id=c+(++a[c])}this.getUniqueId=this.getOptimizedId;return g},setId:function(a){this.id=this.id=a},getId:function(){var a=this.id;if(!a){a=this.getUniqueId()}this.getId=this.getOptimizedId;return a}},0,0,0,0,0,0,[Ext.mixin,"Identifiable"],0));(Ext.cmd.derive("Ext.mixin.Observable",Ext.Mixin,function(a){var d=Ext.emptyFn,c=[],e=Array.prototype,g=e.slice,b=function(h){if(h instanceof b){return h}this.observable=h;if(arguments[1].isObservable){this.managedListeners=true}this.args=g.call(arguments,1)};b.prototype.destroy=function(){this.destroy=Ext.emptyFn;var h=this.observable;h[this.managedListeners?"mun":"un"].apply(h,this.args)};return{mixinConfig:{id:"observable",after:{destroy:"clearListeners"}},statics:{releaseCapture:function(h){h.fireEventArgs=this.prototype.fireEventArgs},capture:function(k,i,h){var j=function(l,m){return i.apply(h,[l].concat(m))};this.captureArgs(k,j,h)},captureArgs:function(j,i,h){j.fireEventArgs=Ext.Function.createInterceptor(j.fireEventArgs,i,h)},observe:function(h,i){if(h){if(!h.isObservable){Ext.applyIf(h,new this());this.captureArgs(h.prototype,h.fireEventArgs,h)}if(Ext.isObject(i)){h.on(i)}}return h},prepareClass:function(l,r,m){var q=l.listeners=[],o=m||l.prototype,h=o.listeners,k=r?r.listeners:l.superclass.self.listeners,i,s,p;if(k){q.push(k)}if(h){s=h.scope;if(!s){h.scope="self"}else{p=Ext._namedScopes[s];if(p&&p.isController){h.scope="self.controller"}}q.push(h);o.listeners=null}if(!l.HasListeners){var n=function(){},j=l.superclass.HasListeners||(r&&r.HasListeners)||a.HasListeners;l.prototype.HasListeners=l.HasListeners=n;n.prototype=l.hasListeners=new j()}}},isObservable:true,eventsSuspended:0,constructor:function(l){var o=this,k=o.self,j,n,p,h,m;if(o.$observableInitialized){return}o.$observableInitialized=true;o.hasListeners=new o.HasListeners();o.events=o.events||{};j=k.listeners;if(j&&!o._addDeclaredListeners(j)){k.listeners=null}n=(l&&l.listeners)||o.listeners;if(n){if(n instanceof Array){for(m=0,h=n.length;m<h;++m){o.addListener(n[m])}}else{o.addListener(n)}}p=(l&&l.bubbleEvents)||o.bubbleEvents;if(p){o.enableBubble(p)}if(o.$applyConfigs){Ext.apply(o,l)}else{o.initConfig(l)}if(n){o.listeners=null}},onClassExtended:function(h,i){if(!h.HasListeners){a.prepareClass(h,h.prototype.$observableMixedIn?undefined:i)}},$eventOptions:{scope:1,delay:1,buffer:1,onFrame:1,single:1,args:1,destroyable:1,priority:1,order:1},$orderToPriority:{before:100,current:0,after:-100},_addDeclaredListeners:function(h){var i=this;if(h instanceof Array){Ext.each(h,i._addDeclaredListeners,i)}else{i._addedDeclaredListeners=true;i.addListener(h)}return i._addedDeclaredListeners},addManagedListener:function(o,k,m,p,q,j){var l=this,n=l.managedListeners=l.managedListeners||[],i,h;if(typeof k!=="string"){h=arguments.length>4?q:k;q=k;for(k in q){if(q.hasOwnProperty(k)){i=q[k];if(!o.$eventOptions[k]){l.addManagedListener(o,k,i.fn||i,i.scope||q.scope||p,i.fn?i:h,true)}}}if(q&&q.destroyable){return new b(l,o,q)}}else{if(m!==d){o.doAddListener(k,m,p,q,null,l,l);if(!j&&q&&q.destroyable){return new b(l,o,k,m,p)}}}},removeManagedListener:function(p,k,n,q){var m=this,r,j,o,h,l;if(typeof k!=="string"){r=k;for(k in r){if(r.hasOwnProperty(k)){j=r[k];if(!p.$eventOptions[k]){m.removeManagedListener(p,k,j.fn||j,j.scope||r.scope||q)}}}}else{o=m.managedListeners?m.managedListeners.slice():[];k=Ext.canonicalEventName(k);for(l=0,h=o.length;l<h;l++){m.removeManagedListenerItem(false,o[l],p,k,n,q)}}},fireEvent:function(h){return this.fireEventArgs(h,g.call(arguments,1))},resolveListenerScope:function(i){var h=Ext._namedScopes[i];if(h){if(h.isSelf||h.isThis){i=null}}return i||this},fireEventArgs:function(h,j){h=Ext.canonicalEventName(h);var m=this,k=m.events,l=k&&k[h],i=true;if(m.hasListeners[h]){i=m.doFireEvent(h,j||c,l?l.bubble:false)}return i},fireAction:function(i,k,m,l,j,h){j=j?Ext.Object.chain(j):{};j.single=true;j.priority=((h==="after")?-99.5:99.5);this.doAddListener(i,m,l,j);this.fireEventArgs(i,k)},doFireEvent:function(j,l,i){var n=this,h,m,k=true;do{if(n.eventsSuspended){if((h=n.eventQueue)){h.push([j,l])}return k}else{m=n.events&&n.events[j];if(m&&m!==true){if((k=m.fire.apply(m,l))===false){break}}}}while(i&&(n=n.getBubbleParent()));return k},getBubbleParent:function(){var i=this,h=i.getBubbleTarget&&i.getBubbleTarget();if(h&&h.isObservable){return h}return null},addListener:function(l,r,s,t,j,h){var q=this,m=Ext._namedScopes,i,p,n,o,k;if(typeof l!=="string"){t=l;s=t.scope;p=s&&m[s];n=p&&p.isSelf;k=((q.isComponent||q.isWidget)&&t.element)?q.$elementEventOptions:q.$eventOptions;for(l in t){i=t[l];if(!k[l]){o=i.scope;if(o&&n){p=m[o];if(p&&p.isController){o="self.controller"}}q.doAddListener(l,i.fn||i,o||s,i.fn?i:t,j,h)}}if(t&&t.destroyable){return new b(q,t)}}else{q.doAddListener(l,r,s,t,j,h);if(t&&t.destroyable){return new b(q,l,r,s,t)}}return q},removeListener:function(k,m,l,h){var n=this,j,i;if(typeof k!=="string"){i=k;h=h||n.$eventOptions;for(k in i){if(i.hasOwnProperty(k)){j=i[k];if(!n.$eventOptions[k]){n.doRemoveListener(k,j.fn||j,j.scope||i.scope)}}}}else{n.doRemoveListener(k,m,l)}return n},clearListeners:function(){var l=this,j=l.events,h=l.hasListeners,k,i;if(j){for(i in j){if(j.hasOwnProperty(i)){k=j[i];if(k.isEvent){delete h[i];k.clearListeners()}}}}l.clearManagedListeners()},clearManagedListeners:function(){var l=this,j=l.managedListeners?l.managedListeners.slice():[],k=0,h=j.length;for(;k<h;k++){l.removeManagedListenerItem(true,j[k])}l.managedListeners=[]},removeManagedListenerItem:function(i,h,m,j,l,k){if(i||(h.item===m&&h.ename===j&&(!l||h.fn===l)&&(!k||h.scope===k))){h.item.doRemoveListener(h.ename,h.fn,h.scope,h.options);if(!i){Ext.Array.remove(this.managedListeners,h)}}},hasListener:function(h){h=Ext.canonicalEventName(h);return !!this.hasListeners[h]},isSuspended:function(j){var i=this.eventsSuspended>0,h=this.events;if(!i&&j&&h){j=h[j];if(j&&j.isEvent){return j.isSuspended()}}return i},suspendEvents:function(h){++this.eventsSuspended;if(h&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var n=this,l=n.events,h=arguments.length,k,m,j;for(k=0;k<h;k++){j=arguments[k];j=Ext.canonicalEventName(j);m=l[j];if(!m||!m.isEvent){m=n._initEvent(j)}m.suspend()}},resumeEvent:function(){var l=this.events||0,h=l&&arguments.length,k,m,j;for(k=0;k<h;k++){j=Ext.canonicalEventName(arguments[k]);m=l[j];if(m&&m.resume){m.resume()}}},resumeEvents:function(h){var i=this,l=i.eventQueue,k,j;if(i.eventsSuspended&&!--i.eventsSuspended){delete i.eventQueue;if(!h&&l){k=l.length;for(j=0;j<k;j++){i.fireEventArgs.apply(i,l[j])}}}},relayEvents:function(j,l,o){var n=this,h=l.length,k=0,m,p={};for(;k<h;k++){m=l[k];p[m]=n.createRelayer(o?o+m:m)}n.mon(j,p,null,null,undefined);return new b(n,j,p)},createRelayer:function(h,i){var j=this;return function(){return j.fireEventArgs.call(j,h,i?g.apply(arguments,i):arguments)}},enableBubble:function(p){if(p){var n=this,o=(typeof p=="string")?arguments:p,k=n.events,m=k&&o.length,j,l,h;for(h=0;h<m;++h){j=o[h];j=Ext.canonicalEventName(j);l=k[j];if(!l||!l.isEvent){l=n._initEvent(j)}n.hasListeners._incr_(j);l.bubble=true}}},destroy:function(){this.clearListeners();this.callParent()},privates:{doAddListener:function(l,o,r,s,k,i,m){var n=this,j=s&&s.managedName,h,q,p;k=k||(s&&s.order);if(k){p=(s&&s.priority);if(!p){s=s?Ext.Object.chain(s):{};s.priority=n.$orderToPriority[k]}}l=Ext.canonicalEventName(l);if(!m&&(r&&r.isObservable&&(r!==n))){m=r}if(m){q=m.managedListeners=m.managedListeners||[];q.push({item:n,ename:j||l,fn:o,scope:r,options:s})}h=(n.events||(n.events={}))[l];if(!h||!h.isEvent){h=n._initEvent(l)}if(o!==d){if(h.addListener(o,r,s,i,m)){n.hasListeners._incr_(l)}}},doRemoveListener:function(i,k,j){var m=this,h=m.events,l;i=Ext.canonicalEventName(i);l=h&&h[i];if(l&&l.isEvent){if(l.removeListener(k,j)){m.hasListeners._decr_(i)}}},_initEvent:function(h){return(this.events[h]=new Ext.util.Event(this,h))}},deprecated:{"5.0":{methods:{addEvents:null}},"5.1":{methods:{addBeforeListener:function(h,k,j,i){return this.addListener(h,k,j,i,"before")},addAfterListener:function(h,k,j,i){return this.addListener(h,k,j,i,"after")},removeBeforeListener:function(h,k,j,i){return this.removeListener(h,k,j,i,"before")},removeAfterListener:function(h,k,j,i){return this.removeListener(h,k,j,i,"after")},onBefore:"addBeforeListener",onAfter:"addAfterListener",unBefore:"removeBeforeListener",unAfter:"removeAfterListener"}}}}},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.mixin,"Observable"],function(){var b=this,e=b.prototype,c=function(){},g=function(h){if(!h.HasListeners){var i=h.prototype;i.$observableMixedIn=1;b.prepareClass(h,this);h.onExtended(function(j,k){b.prepareClass(j,null,k)});if(i.onClassMixedIn){Ext.override(h,{onClassMixedIn:function(j){g.call(this,j);this.callParent(arguments)}})}else{i.onClassMixedIn=function(j){g.call(this,j)}}}a.call(this,h)},a=e.onClassMixedIn;c.prototype={_decr_:function(h){if(!--this[h]){delete this[h]}},_incr_:function(h){if(this.hasOwnProperty(h)){++this[h]}else{this[h]=1}}};e.HasListeners=b.HasListeners=c;b.createAlias({on:"addListener",un:"removeListener",mon:"addManagedListener",mun:"removeManagedListener",setListeners:"addListener"});b.observeClass=b.observe;function d(n){var m=(this.methodEvents=this.methodEvents||{})[n],j,i,k,l=this,h;if(!m){this.methodEvents[n]=m={};m.originalFn=this[n];m.methodName=n;m.before=[];m.after=[];h=function(q,p,o){if((i=q.apply(p||l,o))!==undefined){if(typeof i=="object"){if(i.returnValue!==undefined){j=i.returnValue}else{j=i}k=!!i.cancel}else{if(i===false){k=true}else{j=i}}}};this[n]=function(){var q=Array.prototype.slice.call(arguments,0),p,r,o;j=i=undefined;k=false;for(r=0,o=m.before.length;r<o;r++){p=m.before[r];h(p.fn,p.scope,q);if(k){return j}}if((i=m.originalFn.apply(l,q))!==undefined){j=i}for(r=0,o=m.after.length;r<o;r++){p=m.after[r];h(p.fn,p.scope,q);if(k){return j}}return j}}return m}Ext.apply(e,{onClassMixedIn:g,beforeMethod:function(j,i,h){d.call(this,j).before.push({fn:i,scope:h})},afterMethod:function(j,i,h){d.call(this,j).after.push({fn:i,scope:h})},removeMethodListener:function(n,l,k){var m=this.getMethodEvent(n),j,h;for(j=0,h=m.before.length;j<h;j++){if(m.before[j].fn==l&&m.before[j].scope==k){Ext.Array.erase(m.before,j,1);return}}for(j=0,h=m.after.length;j<h;j++){if(m.after[j].fn==l&&m.after[j].scope==k){Ext.Array.erase(m.after,j,1);return}}},toggleEventLogging:function(h){Ext.util.Observable[h?"capture":"releaseCapture"](this,function(i){if(Ext.isDefined(Ext.global.console)){Ext.global.console.log(i,arguments)}})}})}));(Ext.cmd.derive("Ext.util.HashMap",Ext.Base,{generation:0,config:{keyFn:null},constructor:function(a){var c=this,b;c.mixins.observable.constructor.call(c,a);c.clear(true);b=c.getKeyFn();if(b){c.getKey=b}},getCount:function(){return this.length},getData:function(a,b){if(b===undefined){b=a;a=this.getKey(b)}return[a,b]},getKey:function(a){return a.id},add:function(a,c){var b=this;if(arguments.length===1){c=a;a=b.getKey(c)}if(b.containsKey(a)){return b.replace(a,c)}b.map[a]=c;++b.length;b.generation++;if(b.hasListeners.add){b.fireEvent("add",b,a,c)}return c},replace:function(b,d){var c=this,e=c.map,a;if(arguments.length===1){d=b;b=c.getKey(d)}if(!c.containsKey(b)){c.add(b,d)}a=e[b];e[b]=d;c.generation++;if(c.hasListeners.replace){c.fireEvent("replace",c,b,d,a)}return d},remove:function(b){var a=this.findKey(b);if(a!==undefined){return this.removeAtKey(a)}return false},removeAtKey:function(a){var b=this,c;if(b.containsKey(a)){c=b.map[a];delete b.map[a];--b.length;b.generation++;if(b.hasListeners.remove){b.fireEvent("remove",b,a,c)}return true}return false},get:function(a){var b=this.map;return b.hasOwnProperty(a)?b[a]:undefined},clear:function(a){var b=this;if(a||b.generation){b.map={};b.length=0;b.generation=a?0:b.generation+1}if(a!==true&&b.hasListeners.clear){b.fireEvent("clear",b)}return b},containsKey:function(a){var b=this.map;return b.hasOwnProperty(a)&&b[a]!==undefined},contains:function(a){return this.containsKey(this.findKey(a))},getKeys:function(){return this.getArray(true)},getValues:function(){return this.getArray(false)},getArray:function(d){var a=[],b,c=this.map;for(b in c){if(c.hasOwnProperty(b)){a.push(d?b:c[b])}}return a},each:function(d,c){var a=Ext.apply({},this.map),b,e=this.length;c=c||this;for(b in a){if(a.hasOwnProperty(b)){if(d.call(c,b,a[b],e)===false){break}}}return this},clone:function(){var c=new this.self(this.initialConfig),b=this.map,a;c.suspendEvents();for(a in b){if(b.hasOwnProperty(a)){c.add(a,b[a])}}c.resumeEvents();return c},findKey:function(b){var a,c=this.map;for(a in c){if(c.hasOwnProperty(a)&&c[a]===b){return a}}return undefined}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.util,"HashMap"],0));(Ext.cmd.derive("Ext.AbstractManager",Ext.Base,{typeName:"type",constructor:function(a){Ext.apply(this,a||{});this.all=new Ext.util.HashMap();this.types={}},get:function(a){return this.all.get(a)},register:function(a){this.all.add(a)},unregister:function(a){this.all.remove(a)},registerType:function(b,a){this.types[b]=a;a[this.typeName]=b},isRegistered:function(a){return this.types[a]!==undefined},create:function(a,d){var b=a[this.typeName]||a.type||d,c=this.types[b];return new c(a)},onAvailable:function(g,c,b){var a=this.all,d,e;if(a.containsKey(g)){d=a.get(g);c.call(b||d,d)}else{e=function(j,h,i){if(h==g){c.call(b||i,i);a.un("add",e)}};a.on("add",e)}},each:function(b,a){this.all.each(b,a||this)},getCount:function(){return this.all.getCount()}},1,0,0,0,0,0,[Ext,"AbstractManager"],0));(Ext.cmd.derive("Ext.data.flash.BinaryXhr",Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=true;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById("ext-flash-polyfill");Ext.GlobalEvents.fireEvent("flashready")},flashPluginActive:false,flashPluginInjected:false,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(d,c,b){var a;a=this.liveConnections[Number(d)];if(a){a.onFlashStateChange(c,b)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var b=this,a,c;b.flashPolyfillEl=Ext.getBody().appendChild({id:"ext-flash-polyfill",cn:[{tag:"p",html:"To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed."},{tag:"a",href:"http://www.adobe.com/go/getflashplayer",cn:[{tag:"img",src:window.location.protocol+"//www.adobe.com/images/shared/download_buttons/get_flash_player.gif",alt:"Get Adobe Flash player"}]}]});a=[Ext.Loader.getPath("Ext.data.Connection"),"../../../plugins/flash/swfobject.js"].join("/");c="/plugins/flash/FlashPlugin.swf";if(Ext.flashPluginPath){c=Ext.flashPluginPath}Ext.Loader.loadScript({url:a,onLoad:function(){var e="11.4.0";var h="playerProductInstall.swf";var d={};var i={};i.quality="high";i.bgcolor="#ffffff";i.allowscriptaccess="sameDomain";i.allowfullscreen="true";var g={};g.id="ext-flash-polyfill";g.name="polyfill";g.align="middle";swfobject.embedSWF(c,"ext-flash-polyfill","0","0",e,h,d,i,g)},onError:function(){},scope:b});Ext.data.flash.BinaryXhr.flashPluginInjected=true}},readyState:0,status:0,statusText:"",responseBytes:null,javascriptId:null,constructor:function(a){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var b=this;Ext.apply(b,a);b.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=true;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener("flashready",a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(b,c){a.push(b+": "+c)});return a.join("\r\n")},getResponseHeader:function(b){var a=this.responseHeaders;return(a&&a[b])||null},open:function(g,c,d,a,b){var e=this;e.method=g;e.url=c;e.async=d!==false;e.user=a;e.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(a){var b=this;b.body=a;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener("flashready",b.onFlashReady,b)}else{this.onFlashReady()}},onFlashReady:function(){var c=this,b,a;c.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(c);b={method:c.method,url:c.url,user:c.user,password:c.password,mimeType:c.mimeType,requestHeaders:c.requestHeaders,body:c.body,javascriptId:c.javascriptId};a=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(b,a){this.requestHeaders[b]=a},onreadystatechange:Ext.emptyFn,parseData:function(b){var a=this;this.status=b.status||0;a.responseHeaders={};if(a.mimeType){a.responseHeaders["content-type"]=a.mimeType}if(b.reason=="complete"){this.responseBytes=b.data;a.responseHeaders["content-length"]=b.data.length}else{if(b.reason=="error"||b.reason=="securityError"){this.statusText=b.text;a.responseHeaders["content-length"]=0}}},onFlashStateChange:function(c,b){var a=this;if(c==4){a.parseData(b);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(c)}},1,0,0,0,0,0,[Ext.data.flash,"BinaryXhr"],0));(Ext.cmd.derive("Ext.data.Connection",Ext.Base,{statics:{requestId:0},config:{url:null,async:true,username:"",password:"",disableCaching:true,withCredentials:false,binary:false,cors:false,isXdr:false,defaultXdrContentType:"text/plain",disableCachingParam:"_dc",timeout:30000,extraParams:null,autoAbort:false,method:null,defaultHeaders:null,defaultPostHeader:"application/x-www-form-urlencoded; charset=UTF-8",useDefaultXhrHeader:true,defaultXhrHeader:"XMLHttpRequest"},constructor:function(a){this.mixins.observable.constructor.call(this,a);this.requests={}},request:function(l){l=l||{};var h=this,k=l.scope||window,g=l.username||h.getUsername(),i=l.password||h.getPassword()||"",b,d,e,a,c,j;if(h.fireEvent("beforerequest",h,l)!==false){d=h.setOptions(l,k);if(h.isFormUpload(l)){h.upload(l.form,d.url,d.data,l);return null}if(l.autoAbort||h.getAutoAbort()){h.abort()}b=l.async!==false?(l.async||h.getAsync()):false;j=h.openRequest(l,d,b,g,i);c=h.getIsXdr();if(!c){a=h.setupHeaders(j,l,d.data,d.params)}e={id:++Ext.data.Connection.requestId,xhr:j,headers:a,options:l,async:b,binary:l.binary||h.getBinary(),timeout:Ext.defer(function(){e.timedout=true;h.abort(e)},l.timeout||h.getTimeout())};h.requests[e.id]=e;h.latestId=e.id;if(b){if(!c){j.onreadystatechange=Ext.Function.bind(h.onStateChange,h,[e])}}if(c){h.processXdrRequest(e,j)}j.send(d.data);if(!b){return h.onComplete(e)}return e}else{Ext.callback(l.callback,l.scope,[l,undefined,undefined]);return null}},processXdrRequest:function(b,c){var a=this;delete b.headers;b.contentType=b.options.contentType||a.getDefaultXdrContentType();c.onload=Ext.Function.bind(a.onStateChange,a,[b,true]);c.onerror=c.ontimeout=Ext.Function.bind(a.onStateChange,a,[b,false])},processXdrResponse:function(a,b){a.getAllResponseHeaders=function(){return[]};a.getResponseHeader=function(){return""};a.contentType=b.contentType||this.getDefaultXdrContentType()},upload:function(b,g,s,e){b=Ext.getDom(b);e=e||{};var n=Ext.id(),l=document.createElement("iframe"),c=[],d="multipart/form-data",r={target:b.target,method:b.method,encoding:b.encoding,enctype:b.enctype,action:b.action},a=function(h,u){i=document.createElement("input");Ext.fly(i).set({type:"hidden",value:u,name:h});b.appendChild(i);c.push(i)},i,k,p,t,o,j,m,q;Ext.fly(l).set({id:n,name:n,cls:"x-hidden-display",src:Ext.SSL_SECURE_URL,tabIndex:-1});document.body.appendChild(l);if(document.frames){document.frames[n].name=n}Ext.fly(b).set({target:n,method:"POST",enctype:d,encoding:d,action:g||r.action});if(s){k=Ext.Object.fromQueryString(s)||{};for(t in k){if(k.hasOwnProperty(t)){p=k[t];if(Ext.isArray(p)){o=p.length;for(j=0;j<o;j++){a(t,p[j])}}else{a(t,p)}}}}Ext.get(l).on({load:Ext.Function.bind(this.onUploadComplete,this,[l,e]),single:!Ext.isOpera});b.submit();Ext.fly(b).set(r);for(m=c.length,q=0;q<m;q++){Ext.removeNode(c[q])}},onUploadComplete:function(a,k){var g=this,b={responseText:"",responseXML:null},i,j,h,c;try{h=(a&&(a.contentWindow.document||a.contentDocument))||(window.frames[a.id]||{}).document;if(h){if(Ext.isOpera&&h.location==Ext.SSL_SECURE_URL){return}if(h.body){if((c=h.body.firstChild)&&/pre/i.test(c.tagName)){b.responseText=c.textContent||c.innerText}else{if((c=h.getElementsByTagName("textarea")[0])){b.responseText=c.value}else{b.responseText=h.body.textContent||h.body.innerText}}}b.responseXML=h.XMLDocument||h;i=k.success;j=true}else{Ext.Error.raise("Could not acquire a suitable connection for the file upload service.")}}catch(d){b.responseText='{success:false,message:"'+Ext.String.trim(d.message||d.description)+'"}';i=k.failure;j=false}g.fireEvent(j?"requestcomplete":"requestexception",g,b,k);Ext.callback(i,k.scope,[b,k]);Ext.callback(k.callback,k.scope,[k,j,b]);Ext.defer(Ext.removeNode,100,Ext,[a])},isFormUpload:function(a){var b=this.getForm(a);if(b){return(a.isUpload||(/multipart\/form-data/i).test(b.getAttribute("enctype")))}return false},getForm:function(a){var b=a.form||null;if(b){b=Ext.getDom(b)}return b},setOptions:function(m,l){var j=this,e=m.params||{},i=j.getExtraParams(),d=m.urlParams,c=m.url||j.getUrl(),h=m.cors,k=m.jsonData,b,a,g;if(h!==undefined){j.setCors(h)}if(Ext.isFunction(e)){e=e.call(l,m)}if(Ext.isFunction(c)){c=c.call(l,m)}c=this.setupUrl(m,c);g=m.rawData||m.binaryData||m.xmlData||k||null;if(k&&!Ext.isPrimitive(k)){g=Ext.encode(g)}if(m.binaryData){if(j.nativeBinaryPostSupport()){g=(new Uint8Array(m.binaryData));if((Ext.isChrome&&Ext.chromeVersion<22)||Ext.isSafari||Ext.isGecko){g=g.buffer}}}if(Ext.isObject(e)){e=Ext.Object.toQueryString(e)}if(Ext.isObject(i)){i=Ext.Object.toQueryString(i)}e=e+((i)?((e)?"&":"")+i:"");d=Ext.isObject(d)?Ext.Object.toQueryString(d):d;e=this.setupParams(m,e);b=(m.method||j.getMethod()||((e||g)?"POST":"GET")).toUpperCase();this.setupMethod(m,b);a=m.disableCaching!==false?(m.disableCaching||j.getDisableCaching()):false;if(b==="GET"&&a){c=Ext.urlAppend(c,(m.disableCachingParam||j.getDisableCachingParam())+"="+(new Date().getTime()))}if((b=="GET"||g)&&e){c=Ext.urlAppend(c,e);e=null}if(d){c=Ext.urlAppend(c,d)}return{url:c,method:b,data:g||e||null}},setupUrl:function(b,a){var c=this.getForm(b);if(c){a=a||c.action}return a},setupParams:function(a,d){var c=this.getForm(a),b;if(c&&!this.isFormUpload(a)){b=Ext.Element.serializeForm(c);d=d?(d+"&"+b):b}return d},setupMethod:function(a,b){if(this.isFormUpload(a)){return"POST"}return b},setupHeaders:function(o,p,g,d){var k=this,b=Ext.apply({},p.headers||{},k.getDefaultHeaders()||{}),n=k.getDefaultPostHeader(),l=p.jsonData,a=p.xmlData,j="Content-Type",c=Ext.isDefined(p.useDefaultXhrHeader)?p.useDefaultXhrHeader:k.getUseDefaultXhrHeader(),m,h;if(!b.hasOwnProperty(j)&&(g||d)){if(g){if(p.rawData){n="text/plain"}else{if(a&&Ext.isDefined(a)){n="text/xml"}else{if(l&&Ext.isDefined(l)){n="application/json"}}}}b[j]=n}if(c&&!b["X-Requested-With"]){b["X-Requested-With"]=k.getDefaultXhrHeader()}if(b[j]===undefined||b[j]===null){delete b[j]}try{for(m in b){if(b.hasOwnProperty(m)){h=b[m];o.setRequestHeader(m,h)}}}catch(i){k.fireEvent("exception",m,h)}return b},newRequest:function(a){var b=this,c;if(a.binaryData){if(b.nativeBinaryPostSupport()){c=b.getXhrInstance()}else{c=new Ext.data.flash.BinaryXhr()}}else{if(b.getCors()&&Ext.isIE&&Ext.ieVersion<=9){c=b.getXdrInstance();b.setIsXdr(true)}else{c=b.getXhrInstance();b.setIsXdr(false)}}return c},openRequest:function(c,a,d,h,b){var e=this,g=e.newRequest(c);if(h){g.open(a.method,a.url,d,h,b)}else{if(e.getIsXdr()){g.open(a.method,a.url)}else{g.open(a.method,a.url,d)}}if(c.binary||e.getBinary()){if(window.Uint8Array){g.responseType="arraybuffer"}else{if(g.overrideMimeType){g.overrideMimeType("text/plain; charset=x-user-defined")}}}if(c.withCredentials||e.getWithCredentials()){g.withCredentials=true}return g},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else{Ext.Error.raise({msg:"Your browser does not support CORS"})}return a},getXhrInstance:(function(){var b=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],c=0,a=b.length,g;for(;c<a;++c){try{g=b[c];g();break}catch(d){}}return g}()),isLoading:function(a){if(!a){a=this.getLatest()}if(!(a&&a.xhr)){return false}var b=a.xhr.readyState,c=Ext.data.flash&&Ext.data.flash.BinaryXhr;return((a.xhr instanceof c)&&b!=4)||!(b===0||b==4)},abort:function(b){var a=this,d;if(!b){b=a.getLatest()}if(b&&a.isLoading(b)){d=b.xhr;try{d.onreadystatechange=null}catch(c){d.onreadystatechange=Ext.emptyFn}d.abort();a.clearTimeout(b);if(!b.timedout){b.aborted=true}a.onComplete(b);a.cleanup(b)}},abortAll:function(){var b=this.requests,a;for(a in b){if(b.hasOwnProperty(a)){this.abort(b[a])}}},getLatest:function(){var b=this.latestId,a;if(b){a=this.requests[b]}return a||null},onStateChange:function(d,b){var c=this,a=Ext.GlobalEvents;if((d.xhr&&d.xhr.readyState==4)||c.getIsXdr()){c.clearTimeout(d);c.onComplete(d,b);c.cleanup(d);if(a.hasListeners.idle){a.fireEvent("idle")}}},clearTimeout:function(a){clearTimeout(a.timeout);delete a.timeout},cleanup:function(a){a.xhr=null;delete a.xhr},onComplete:function(b,i){var d=this,j=b.options,h,k,g,a;try{h=b.xhr;k=d.parseStatus(h.status);if(k.success){k.success=h.readyState===4}}catch(c){k={success:false,isException:false}}g=d.getIsXdr()?i:k.success;if(g){a=d.createResponse(b);d.fireEvent("requestcomplete",d,a,j);Ext.callback(j.success,j.scope,[a,j])}else{if(k.isException||b.aborted||b.timedout){a=d.createException(b)}else{a=d.createResponse(b)}d.fireEvent("requestexception",d,a,j);Ext.callback(j.failure,j.scope,[a,j])}Ext.callback(j.callback,j.scope,[j,g,a]);delete d.requests[b.id];return a},parseStatus:function(a){a=a==1223?204:a;var c=(a>=200&&a<300)||a==304,b=false;if(!c){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:b=true;break}}return{success:c,isException:b}},createResponse:function(e){var i=this,k=e.xhr,c=i.getIsXdr(),b={},l=c?[]:k.getAllResponseHeaders().replace(/\r\n/g,"\n").split("\n"),h=l.length,m,g,j,d,a;while(h--){m=l[h];g=m.indexOf(":");if(g>=0){j=m.substr(0,g).toLowerCase();if(m.charAt(g+1)==" "){++g}b[j]=m.substr(g+1)}}e.xhr=null;delete e.xhr;d={request:e,requestId:e.id,status:k.status,statusText:k.statusText,getResponseHeader:function(n){return b[n.toLowerCase()]},getAllResponseHeaders:function(){return b}};if(c){i.processXdrResponse(d,k)}if(e.binary){d.responseBytes=i.getByteArray(k)}else{d.responseText=k.responseText;d.responseXML=k.responseXML}k=null;return d},createException:function(a){return{request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?"transaction aborted":"communication failure",aborted:a.aborted,timedout:a.timedout}},getByteArray:function(k){var c=k.response,b=k.responseBody,l=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,j,g,d;if(k instanceof l){a=k.responseBytes}else{if(window.Uint8Array){a=c?new Uint8Array(c):[]}else{if(Ext.isIE9p){try{a=new VBArray(b).toArray()}catch(h){a=[]}}else{if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(k.responseBody,a=[])}else{a=[];j=k.responseText;g=j.length;for(d=0;d<g;d++){a.push(j.charCodeAt(d)&255)}}}}}return a},injectVBScript:function(){var a=document.createElement("script");a.type="text/vbscript";a.text=["Function getIEByteArray(byteArray, out)","Dim len, i","len = LenB(byteArray)","For i = 1 to len","out.push(AscB(MidB(byteArray, i, 1)))","Next","End Function"].join("\n");Ext.getHead().dom.appendChild(a);this.self.vbScriptInjected=true},nativeBinaryPostSupport:function(){return Ext.isChrome||(Ext.isSafari&&Ext.isDefined(window.Uint8Array))||(Ext.isGecko&&Ext.isDefined(window.Uint8Array))}},1,0,0,0,0,[["observable",Ext.mixin.Observable]],[Ext.data,"Connection"],0));(Ext.cmd.derive("Ext.Ajax",Ext.data.Connection,{singleton:true,autoAbort:false},0,0,0,0,0,0,[Ext,"Ajax"],0));(Ext.cmd.derive("Ext.AnimationQueue",Ext.Base,{singleton:true,constructor:function(){this.queue=[];this.taskQueue=[];this.runningQueue=[];this.idleQueue=[];this.isRunning=false;this.isIdle=true;this.run=Ext.Function.bind(this.run,this);if(Ext.os.is.iOS){Ext.interval(this.watch,500,this)}},start:function(c,b,a){this.queue.push(arguments);if(!this.isRunning){if(this.hasOwnProperty("idleTimer")){clearTimeout(this.idleTimer);delete this.idleTimer}if(this.hasOwnProperty("idleQueueTimer")){clearTimeout(this.idleQueueTimer);delete this.idleQueueTimer}this.isIdle=false;this.isRunning=true;this.doStart()}},watch:function(){if(this.isRunning&&Ext.now()-this.lastRunTime>=500){this.run()}},run:function(){if(!this.isRunning){return}var a=this.runningQueue,b,c;this.lastRunTime=Ext.now();this.frameStartTime=Ext.now();a.push.apply(a,this.queue);for(b=0,c=a.length;b<c;b++){this.invoke(a[b])}a.length=0;this.doIterate()},doStart:function(){this.animationFrameId=Ext.Function.requestAnimationFrame(this.run);this.lastRunTime=Ext.now()},doIterate:function(){this.animationFrameId=Ext.Function.requestAnimationFrame(this.run)},doStop:function(){Ext.Function.cancelAnimationFrame(this.animationFrameId)},stop:function(e,d,b){if(!this.isRunning){return}var a=this.queue,h=a.length,c,g;for(c=0;c<h;c++){g=a[c];if(g[0]===e&&g[1]===d&&g[2]===b){a.splice(c,1);c--;h--}}if(h===0){this.doStop();this.isRunning=false;this.idleTimer=Ext.defer(this.whenIdle,100,this)}},onIdle:function(e,d,a){var c=this.idleQueue,b,g,h;for(b=0,g=c.length;b<g;b++){h=c[b];if(e===h[0]&&d===h[1]&&a===h[2]){return}}c.push(arguments);if(this.isIdle){this.processIdleQueue()}},unIdle:function(e,d,a){var c=this.idleQueue,b,g,h;for(b=0,g=c.length;b<g;b++){h=c[b];if(e===h[0]&&d===h[1]&&a===h[2]){c.splice(b,1);return true}}return false},queueTask:function(c,b,a){this.taskQueue.push(arguments);this.processTaskQueue()},dequeueTask:function(e,d,a){var c=this.taskQueue,b,g,h;for(b=0,g=c.length;b<g;b++){h=c[b];if(e===h[0]&&d===h[1]&&a===h[2]){c.splice(b,1);b--;g--}}},invoke:function(d){var c=d[0],b=d[1],a=d[2];c=(typeof c=="string"?b[c]:c);if(Ext.isArray(a)){c.apply(b,a)}else{c.call(b,a)}},whenIdle:function(){this.isIdle=true;this.processIdleQueue()},processIdleQueue:function(){if(!this.hasOwnProperty("idleQueueTimer")){this.idleQueueTimer=Ext.defer(this.processIdleQueueItem,1,this)}},processIdleQueueItem:function(){delete this.idleQueueTimer;if(!this.isIdle){return}var a=this.idleQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty("taskQueueTimer")){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var a=this.taskQueue,b;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}},showFps:function(){Ext.onInternalReady(function(){Ext.Viewport.add([{xtype:"component",bottom:50,left:0,width:50,height:20,html:"Average",style:"background-color: black; color: white; text-align: center; line-height: 20px; font-size: 8px;"},{id:"__averageFps",xtype:"component",bottom:0,left:0,width:50,height:50,html:"0",style:"background-color: red; color: white; text-align: center; line-height: 50px;"},{xtype:"component",bottom:50,left:50,width:50,height:20,html:"Min (Last 1k)",style:"background-color: black; color: white; text-align: center; line-height: 20px; font-size: 8px;"},{id:"__minFps",xtype:"component",bottom:0,left:50,width:50,height:50,html:"0",style:"background-color: orange; color: white; text-align: center; line-height: 50px;"},{xtype:"component",bottom:50,left:100,width:50,height:20,html:"Max (Last 1k)",style:"background-color: black; color: white; text-align: center; line-height: 20px; font-size: 8px;"},{id:"__maxFps",xtype:"component",bottom:0,left:100,width:50,height:50,html:"0",style:"background-color: yellow; color: black; text-align: center; line-height: 50px;"},{xtype:"component",bottom:50,left:150,width:50,height:20,html:"Current",style:"background-color: black; color: white; text-align: center; line-height: 20px; font-size: 8px;"},{id:"__currentFps",xtype:"component",bottom:0,left:150,width:50,height:50,html:"0",style:"background-color: green; color: white; text-align: center; line-height: 50px;"}]);Ext.AnimationQueue.resetFps()})},resetFps:function(){var c=Ext.getCmp("__currentFps"),b=Ext.getCmp("__averageFps"),i=Ext.getCmp("__minFps"),h=Ext.getCmp("__maxFps"),d=1000,a=0,g=0,e=0;Ext.AnimationQueue.onFpsChanged=function(j){g++;if(!(g%10)){d=1000;a=0}e+=j;d=Math.min(d,j);a=Math.max(a,j);c.setHtml(Math.round(j));b.setHtml(Math.round(e/g));i.setHtml(Math.round(d));h.setHtml(Math.round(a))}}},1,0,0,0,0,0,[Ext,"AnimationQueue"],function(){}));(Ext.cmd.derive("Ext.ComponentManager",Ext.Base,{alternateClassName:"Ext.ComponentMgr",singleton:true,count:0,typeName:"xtype",constructor:function(a){var b=this;Ext.apply(b,a||{});b.all={};b.references={};b.onAvailableCallbacks={}},create:function(a,b){if(typeof a==="string"){return Ext.widget(a)}if(a.isComponent){return a}if("xclass" in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(a){var e=this,d=e.all,c=a.getId(),b=e.onAvailableCallbacks;d[c]=a;if(a.reference){e.references[c]=a}++e.count;if(!e.hasFocusListener){Ext.on("focus",e.onGlobalFocus,e);e.hasFocusListener=true}b=b&&b[c];if(b&&b.length){e.notifyAvailable(a)}},unregister:function(a){var b=a.getId();if(a.reference){delete this.references[b]}delete this.all[b];this.count--},markReferencesDirty:function(){this.referencesDirty=true},fixReferences:function(){var c=this,b=c.references,a;if(c.referencesDirty){for(a in b){if(b.hasOwnProperty(a)){b[a].fixReference()}}c.referencesDirty=false}},onAvailable:function(h,c,b){var g=this,e=g.onAvailableCallbacks,a=g.all,d;if(h in a){d=a[h];c.call(b||d,d)}else{if(h){if(!Ext.isArray(e[h])){e[h]=[]}e[h].push(function(i){c.call(b||i,i)})}}},notifyAvailable:function(b){var a=this.onAvailableCallbacks[b&&b.getId()]||[];while(a.length){(a.shift())(b)}},each:function(b,a){return Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.fromElement(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(g){var i=this,d=g.toElement,h=g.fromElement,c=Ext.Component.fromElement(d),j=Ext.Component.fromElement(h),k=i.getCommonAncestor(j,c),a,b;if(j&&!(j.isDestroyed||j.destroying)){if(j.focusable&&h===j.getFocusEl().dom){a=new Ext.event.Event(g.event);a.type="blur";a.target=h;a.relatedTarget=d;j.onBlur(a)}for(b=j;b&&b!==k;b=b.getRefOwner()){if(!(b.isDestroyed||b.destroying)){b.onFocusLeave({event:g.event,type:"focusleave",target:h,relatedTarget:d,fromComponent:j,toComponent:c})}}}if(c&&!c.isDestroyed){if(c.focusable&&d===c.getFocusEl().dom){a=new Ext.event.Event(g.event);a.type="focus";a.relatedTarget=h;a.target=d;c.onFocus(a)}for(b=c;b&&b!==k;b=b.getRefOwner()){b.onFocusEnter({event:g.event,type:"focusenter",relatedTarget:h,target:d,fromComponent:j,toComponent:c})}}},getCommonAncestor:function(b,a){if(b===a){return b}while(b&&!(b.isAncestor(a)||b===a)){b=b.getRefOwner()}return b},deprecated:{5:{methods:{isRegistered:null,registerType:null}}}},1,0,0,0,0,0,[Ext,"ComponentManager",Ext,"ComponentMgr"],function(){Ext.getCmp=function(a){return Ext.ComponentManager.get(a)}}));Ext.ns("Ext.util").Operators={"=":function(b,c){return b==c},"!=":function(b,c){return b!=c},"^=":function(b,c){return b&&b.substr(0,c.length)==c},"$=":function(b,c){return b&&b.substr(b.length-c.length)==c},"*=":function(b,c){return b&&b.indexOf(c)!==-1},"%=":function(b,c){return(b%c)===0},"|=":function(b,c){return b&&(b==c||b.substr(0,c.length+1)==c+"-")},"~=":function(b,c){return b&&(" "+b+" ").indexOf(" "+c+" ")!=-1}};(Ext.cmd.derive("Ext.util.LruCache",Ext.util.HashMap,{config:{maxSize:null},add:function(a,e){var d=this,c,b;d.removeAtKey(a);b=d.last;c={prev:b,next:null,key:a,value:e};if(b){b.next=c}else{d.first=c}d.last=c;Ext.util.HashMap.prototype.add.call(this,a,c);d.prune();return e},insertBefore:function(b,g,c){var e=this,a,d;if(c=this.map[this.findKey(c)]){a=e.findKey(g);if(a){e.unlinkEntry(d=e.map[a])}else{d={prev:c.prev,next:c,key:b,value:g}}if(c.prev){d.prev.next=d}else{e.first=d}d.next=c;c.prev=d;e.prune();return g}else{return e.add(b,g)}},get:function(a){var b=this.map[a];if(b){if(b.next){this.moveToEnd(b)}return b.value}},removeAtKey:function(a){this.unlinkEntry(this.map[a]);return Ext.util.HashMap.prototype.removeAtKey.apply(this,arguments)},clear:function(a){this.first=this.last=null;return Ext.util.HashMap.prototype.clear.apply(this,arguments)},unlinkEntry:function(a){if(a){if(a.next){a.next.prev=a.prev}else{this.last=a.prev}if(a.prev){a.prev.next=a.next}else{this.first=a.next}a.prev=a.next=null}},moveToEnd:function(a){this.unlinkEntry(a);if(a.prev=this.last){this.last.next=a}else{this.first=a}this.last=a},getArray:function(c){var a=[],b=this.first;while(b){a.push(c?b.key:b.value);b=b.next}return a},each:function(c,b,a){var g=this,e=a?g.last:g.first,d=g.length;b=b||g;while(e){if(c.call(b,e.key,e.value,d)===false){break}e=a?e.prev:e.next}return g},findKey:function(b){var a,c=this.map;for(a in c){if(c.hasOwnProperty(a)&&c[a].value===b){return a}}return undefined},clone:function(){var a=new this.self(this.initialConfig),c=this.map,b;a.suspendEvents();for(b in c){if(c.hasOwnProperty(b)){a.add(b,c[b].value)}}a.resumeEvents();return a},prune:function(){var b=this,a=b.getMaxSize(),c=a?(b.length-a):0;if(c>0){for(;b.first&&c;c--){b.removeAtKey(b.first.key)}}}},0,0,0,0,0,0,[Ext.util,"LruCache"],0));(Ext.cmd.derive("Ext.ComponentQuery",Ext.Base,{singleton:true},0,0,0,0,0,0,[Ext,"ComponentQuery"],function(){var g=this,s=Ext.util.Operators,k=/(\d*)n\+?(\d*)/,e=/\D/,m=/^(\s)+/,l=/\\(.)/g,n=new Ext.util.LruCache({maxSize:100}),o=["var r = [],","i = 0,","it = items,","l = it.length,","c;","for (; i < l; i++) {","c = it[i];","if (c.{0}) {","r.push(c);","}","}","return r;"].join(""),p=function(u,t){return t.method.apply(this,[u].concat(t.args))},a=function(v,z){var t=[],w=0,y=v.length,x,u=z!==">";for(;w<y;w++){x=v[w];if(x.getRefItems){t=t.concat(x.getRefItems(u))}}return t},h=function(u){var t=[],v=0,x=u.length,w;for(;v<x;v++){w=u[v];while(!!(w=w.getRefOwner())){t.push(w)}}return t},d=function(u,z,y){if(z==="*"){return u.slice()}else{var t=[],v=0,x=u.length,w;for(;v<x;v++){w=u[v];if(w.isXType(z,y)){t.push(w)}}return t}},b=function(C,D,w,v){var G=[],B=0,u=C.length,F,y,E,t,A,z,x;if(D.charAt(0)==="@"){F=true;D=D.substr(1)}if(D.charAt(0)==="?"){F=true;y=true;D=D.substr(1)}for(;B<u;B++){E=C[B];x=E.getConfigurator&&E.self.$config.configs[D];if(x){t=E[x.names.get]()}else{if(F&&!E.hasOwnProperty(D)){continue}else{t=E[D]}}if(y){G.push(E)}else{if(w==="~="){if(t){if(!Ext.isArray(t)){t=t.split(" ")}for(A=0,z=t.length;A<z;A++){if(s[w](Ext.coerce(t[A],v),v)){G.push(E);break}}}}else{if(w==="/="){if(t!=null&&v.test(t)){G.push(E)}}else{if(!v?!!E[D]:s[w](Ext.coerce(t,v),v)){G.push(E)}}}}}return G},i=function(u,y){var t=[],v=0,x=u.length,w;for(;v<x;v++){w=u[v];if(w.getItemId()===y){t.push(w)}}return t},r=function(t,u,v){return g.pseudos[u](t,v)},j=/^(\s?([>\^])\s?|\s|$)/,q=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,c=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:d,argTransform:function(t){if(t[1]!==undefined){t[1]=t[1].replace(l,"$1")}return t.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:b,argTransform:function(w){var t=w[0],x=w[1],u=w[2],v=w[4],y;if(v!==undefined){v=v.replace(l,"$1")}if(u==="/="){y=n.get(v);if(y){v=y}else{v=n.add(v,new RegExp(v))}}return[x,u,v]}},{re:/^#((?:\\\.|[\w\-])+)/,method:i},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:r,argTransform:function(t){if(t[2]!==undefined){t[2]=t[2].replace(l,"$1")}return t.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:o}];g.Query=Ext.extend(Object,{constructor:function(t){t=t||{};Ext.apply(this,t)},execute:function(v){var w=this.operations,u=[],y,x,t;for(x=0,t=w.length;x<t;x++){y=w[x];u=u.concat(this._execute(v,y))}return u},_execute:function(u,w){var x=0,y=w.length,v,t;if(!u){t=Ext.ComponentManager.getAll()}else{if(Ext.isIterable(u)){t=u}else{if(u.isMixedCollection){t=u.items}}}for(;x<y;x++){v=w[x];if(v.mode==="^"){t=h(t||[u])}else{if(v.mode){t=a(t||[u],v.mode)}else{t=p(t||a([u]),v)}}if(x===y-1){return t}}return[]},is:function(w){var v=this.operations,u=false,t=v.length,y,x;if(t===0){return true}for(x=0;x<t;x++){y=v[x];u=this._is(w,y);if(u){return u}}return false},_is:function(B,t){var z=t.length,u=[B],v,x,w,y,A,C;for(x=z-1;x>=0;--x){v=t[x];y=v.mode;if(y){if(y==="^"){u=a(u," ")}else{if(y===">"){A=[];for(w=0,z=u.length;w<z;++w){C=u[w].getRefOwner();if(C){A.push(C)}}u=A}else{u=h(u)}}if(u.length===0){return false}}else{u=p(u,v);if(u.length===0){return false}}}return true},getMatches:function(w,u){var t=u.length,v;for(v=0;v<t;++v){w=p(w,u[v]);if(w.length===0){break}}return w},isMultiMatch:function(){return this.operations.length>1}});Ext.apply(g,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(z,t){var x=0,y=z.length,w=[],v=-1,u;for(;x<y;++x){u=z[x];if(!g.is(u,t)){w[++v]=u}}return w},first:function(u){var t=[];if(u.length>0){t.push(u[0])}return t},last:function(v){var t=v.length,u=[];if(t>0){u.push(v[t-1])}return u},focusable:function(u){var t=u.length,w=[],v=0,x;for(;v<t;v++){x=u[v];if(x.isFocusable&&x.isFocusable()){w.push(x)}}return w},"nth-child":function(z,A){var B=[],u=k.exec(A==="even"&&"2n"||A==="odd"&&"2n+1"||!e.test(A)&&"n+"+A||A),x=(u[1]||1)-0,y=u[2]-0,w,t,v;for(w=0;t=z[w];w++){v=w+1;if(x===1){if(y===0||v===y){B.push(t)}}else{if((v+y)%x===0){B.push(t)}}}return B},scrollable:function(u){var t=u.length,w=[],v=0,x;for(;v<t;v++){x=u[v];if(x.scrollable||x._scrollable){w.push(x)}}return w}},query:function(t,A){if(!t){return Ext.ComponentManager.all.getArray()}var v=[],B=[],y={},x=g.cache.get(t),w,z,u;if(!x){x=g.cache.add(t,g.parse(t))}v=x.execute(A);if(x.isMultiMatch()){w=v.length;for(u=0;u<w;u++){z=v[u];if(!y[z.id]){B.push(z);y[z.id]=true}}v=B}return v},visitPreOrder:function(t,v,x,w,u){g._visit(true,t,v,x,w,u)},visitPostOrder:function(t,v,x,w,u){g._visit(false,t,v,x,w,u)},_visit:function(D,u,C,B,E,y){var A=g.cache.get(u),x=[C],t,z=0,w,v;if(!A){A=g.cache.add(u,g.parse(u))}v=A.is(C);if(C.getRefItems){t=C.getRefItems();z=t.length}if(y){Ext.Array.push(x,y)}if(D){if(v){if(B.apply(E||C,x)===false){return false}}}for(w=0;w<z;w++){if(g._visit.call(g,D,u,t[w],B,E,y)===false){return false}}if(!D){if(v){if(B.apply(E||C,x)===false){return false}}}},is:function(u,t){if(!t){return true}var v=g.cache.get(t);if(!v){v=g.cache.add(t,g.parse(t))}return v.is(u)},parse:function(u){var v=[],x,y,w,t;x=Ext.splitAndUnescape(u,",");for(w=0,t=x.length;w<t;w++){y=Ext.String.trim(x[w]);v.push(g._parse(y))}return new g.Query({operations:v})},_parse:function(z){var u=[],x=Ext.String.trim,v=c.length,E,A,y,F,G,H,w,B,C,t,D;while(z&&E!==z){E=z;A=z.match(q);if(A){F=A[1];y=x(A[2]).replace(l,"$1");if(F==="#"){u.push({method:i,args:[y]})}else{u.push({method:d,args:[y,Boolean(A[3])]})}z=z.replace(A[0],"").replace(m,"$1")}while(!(G=z.match(j))){for(B=0;z&&B<v;B++){C=c[B];H=z.match(C.re);t=C.method;w=C.argTransform;if(H){if(w){D=w(H)}else{D=H.slice(1)}u.push({method:Ext.isString(C.method)?Ext.functionFactory("items",Ext.String.format.apply(Ext.String,[t].concat(H.slice(1)))):C.method,args:D});z=z.replace(H[0],"").replace(m,"$1");break}if(B===(v-1)){Ext.Error.raise('Invalid ComponentQuery selector: "'+arguments[0]+'"')}}}if(G[1]){u.push({mode:G[2]||G[1]});z=z.replace(G[0],"").replace(m,"")}}return u}})}));(Ext.cmd.derive("Ext.Evented",Ext.Base,{alternateClassName:"Ext.EventedBase",statics:{generateSetter:function(a){var h=a.names,b=a.name,e=h.internal,d=h.apply,c=h.changeEvent,g=h.doSet;return function(m){var l=this,k=l.$configPrefixed?e:b,n=l.initialized,j,i=l[d];if(i){m=i.call(l,m,l[k]);if(m===undefined){return l}}j=l[k];if(m!==j){if(n){l.fireAction(c,[l,m,j],l.doSet,l,{nameMap:h})}else{l[k]=m;if(l[g]){l[g](m,j)}}}return this}}},initialized:false,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.initialized=true},doSet:function(c,d,b,a){var e=a.nameMap;c[e.internal]=d;if(c[e.doSet]){c[e.doSet].call(this,d,b)}},onClassExtended:function(b,e){if(!e.hasOwnProperty("eventedConfig")){return}var d=e.config,h=e.eventedConfig,g="eventedSetter",c,a;if(d){Ext.applyIf(d,h)}else{b.addConfig(h)}for(c in h){if(h.hasOwnProperty(c)){a=Ext.Config.get(c);e[a.names.set]=a[g]||(a[g]=this.generateSetter(a))}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext,"Evented",Ext,"EventedBase"],0));(Ext.cmd.derive("Ext.util.Positionable",Ext.Base,{mixinId:"positionable",_positionTopLeft:["position","top","left"],_alignRe:/^([a-z]+)-([a-z]+)(\?)?$/,afterSetPosition:Ext.emptyFn,adjustForConstraints:function(c,b){var a=this.getConstrainVector(b,c);if(a){c[0]+=a[0];c[1]+=a[1]}return c},alignTo:function(c,a,g,b){var e=this,d=e.el;return e.setXY(e.getAlignToXY(c,a,g),d.anim&&!!b?d.anim(b):false)},calculateAnchorXY:function(g,i,h,d){var j=this,c=j.el,k=document,e=(c.dom===k.body||c.dom===k),l=Math.round,m,b,a;g=(g||"tl").toLowerCase();d=d||{};b=d.width||(e?Ext.Element.getViewportWidth():j.getWidth());a=d.height||(e?Ext.Element.getViewportHeight():j.getHeight());switch(g){case"tl":m=[0,0];break;case"bl":m=[0,a];break;case"tr":m=[b,0];break;case"c":m=[l(b*0.5),l(a*0.5)];break;case"t":m=[l(b*0.5),0];break;case"l":m=[0,l(a*0.5)];break;case"r":m=[b,l(a*0.5)];break;case"b":m=[l(b*0.5),a];break;case"tc":m=[l(b*0.5),0];break;case"bc":m=[l(b*0.5),a];break;case"br":m=[b,a]}return[m[0]+i,m[1]+h]},convertPositionSpec:Ext.identityFn,getAlignToXY:function(j,w,e){var z=this,d,v,a,h,r,g,s,t,p,q,u,o,n,b,c,i,l,m,k;j=Ext.get(j.el||j);if(!j||!j.dom){}e=e||[0,0];w=(!w||w==="?"?"tl-bl?":(!(/-/).test(w)&&w!==""?"tl-"+w:w||"tl-bl")).toLowerCase();w=z.convertPositionSpec(w);a=w.match(z._alignRe);o=a[1];n=a[2];u=!!a[3];h=z.getAnchorXY(o,true);r=z.getAnchorToXY(j,n,false);m=r[0]-h[0]+e[0];k=r[1]-h[1]+e[1];if(u){d=z.constrainTo||z.container||z.el.parent();d=Ext.get(d.el||d);v=d.getConstrainRegion();v.right=v.left+d.el.dom.clientWidth;g=z.getWidth();s=z.getHeight();t=j.getRegion();b=o.charAt(0);c=o.charAt(o.length-1);i=n.charAt(0);l=n.charAt(n.length-1);p=(m<t.right&&m+g>=t.left)&&((b=="t"&&i=="b")||(b=="b"&&i=="t"));q=(k<t.bottom&&k+s>=t.top)&&((c=="r"&&l=="l")||(c=="l"&&l=="r"));if(m+g>v.right){if(q){m=t.left-g;q=false}else{m=v.right-g}}if(m<v.left){m=q?t.right:v.left}if(k+s>v.bottom){if(p){k=t.top-s;p=false}else{k=v.bottom-s}}if(k<v.top){k=p?t.bottom:v.top}}return[m,k]},getAnchorXY:function(d,i,b){var h=this,j=h.getXY(),a=h.el,l=document,c=a.dom==l.body||a.dom==l,k=a.getScroll(),g=c?k.left:i?0:j[0],e=c?k.top:i?0:j[1];return h.calculateAnchorXY(d,g,e,b)},getBox:function(d,i){var e=this,m=i?e.getLocalXY():e.getXY(),j=m[0],g=m[1],k=e.getWidth(),b=e.getHeight(),c,a,l;if(d){c=e.getBorderPadding();a=c.beforeX;l=c.beforeY;j+=a;g+=l;k-=(a+c.afterX);b-=(l+c.afterY)}return{x:j,left:j,0:j,y:g,top:g,1:g,width:k,height:b,right:j+k,bottom:g+b}},calculateConstrainedPosition:function(h,b,l,d){var k=this,c,i=k.floatParent,e=i?i.getTargetEl():null,a,g,j,n=false,m;if(l&&i){a=e.getXY();g=e.getBorderPadding();a[0]+=g.beforeX;a[1]+=g.beforeY;if(b){j=[b[0]+a[0],b[1]+a[1]]}}else{j=b}h=h||k.constrainTo||e||k.container||k.el.parent();if(l&&j){j=k.reverseTranslateXY(j)}c=((k.constrainHeader&&k.header.rendered)?k.header:k).getConstrainVector(h,j,d);if(c){n=b||k.getPosition(l);n[0]+=c[0];n[1]+=c[1]}return n},getConstrainRegion:function(){var h=this,c=h.el,a=c.dom.nodeName==="BODY",e=c.dom,g=c.getBorders(),i=c.getXY(),d=i[0]+g.beforeX,j=i[1]+g.beforeY,k,b,l;if(a){k=c.getScroll();d=k.left;j=k.top;b=Ext.Element.getViewportWidth();l=Ext.Element.getViewportHeight()}else{b=e.clientWidth;l=e.clientHeight}return new Ext.util.Region(j,d+b,j+l,d)},getConstrainVector:function(h,c,e){var a=this.getRegion(),d=[0,0],b=(this.shadow&&this.constrainShadow&&!this.shadowDisabled)?this.shadow.getShadowSize():undefined,j=false,i,g=this.constraintInsets;if(!(h instanceof Ext.util.Region)){h=Ext.get(h.el||h);i=h.getViewSize();h=h.getConstrainRegion();h.right=h.left+i.width;h.bottom=h.top+i.height}if(g){g=Ext.isObject(g)?g:Ext.Element.parseBox(g);h.adjust(g.top,g.right,g.bottom,g.left)}if(c){a.translateBy(c[0]-a.x,c[1]-a.y)}if(e){a.right=a.left+e[0];a.bottom=a.top+e[1]}if(b){h.adjust(b[0],-b[1],-b[2],b[3])}if(a.right>h.right){j=true;d[0]=(h.right-a.right)}if(a.left+d[0]<h.left){j=true;d[0]=(h.left-a.left)}if(a.bottom>h.bottom){j=true;d[1]=(h.bottom-a.bottom)}if(a.top+d[1]<h.top){j=true;d[1]=(h.top-a.top)}return j?d:false},getOffsetsTo:function(a){var c=this.getXY(),b=Ext.fly(a.el||a).getXY();return[c[0]-b[0],c[1]-b[1]]},getRegion:function(){var a=this.getBox();return new Ext.util.Region(a.top,a.right,a.bottom,a.left)},getClientRegion:function(){var b=this,a,c=b.getBox(),d=b.dom;a=d.offsetWidth-d.clientWidth;if(a){if(b.getStyle("direction")==="rtl"){c.left+=a}else{c.right-=a}}a=d.offsetHeight-d.clientHeight;if(a){c.bottom-=a}return new Ext.util.Region(c.top,c.right,c.bottom,c.left)},getViewRegion:function(){var g=this,c=g.el,a=c.dom.nodeName==="BODY",e,j,h,i,d,b,k;if(a){j=c.getScroll();d=j.left;i=j.top;b=Ext.Element.getViewportWidth();k=Ext.Element.getViewportHeight()}else{e=g.getBorderPadding();h=g.getXY();d=h[0]+e.beforeX;i=h[1]+e.beforeY;b=g.getWidth(true);k=g.getHeight(true)}return new Ext.util.Region(i,d+b,i+k,d)},getClientRegion:function(){var c=this.el,g,h,e,d,b,a;g=this.getBorderPadding();h=this.getXY();e=h[0]+g.beforeX;d=h[1]+g.beforeY;b=c.dom.clientWidth;a=c.dom.clientHeight;return new Ext.util.Region(d,e+b,d+a,e)},move:function(j,b,c){var g=this,m=g.getXY(),k=m[0],i=m[1],d=[k-b,i],l=[k+b,i],h=[k,i-b],a=[k,i+b],e={l:d,left:d,r:l,right:l,t:h,top:h,up:h,b:a,bottom:a,down:a};j=j.toLowerCase();g.setXY([e[j][0],e[j][1]],c)},setBox:function(c){var b=this,a,d;if(c.isRegion){c={x:c.left,y:c.top,width:c.right-c.left,height:c.bottom-c.top}}b.constrainBox(c);a=c.x;d=c.y;b.setXY([a,d]);b.setSize(c.width,c.height);b.afterSetPosition(a,d);return b},constrainBox:function(d){var c=this,b,a,e;if(c.constrain||c.constrainHeader){a=("x" in d)?d.x:d.left;e=("y" in d)?d.y:d.top;b=c.calculateConstrainedPosition(null,[a,e],false,[d.width,d.height]);if(b){d.x=b[0];d.y=b[1]}}},translatePoints:function(a,c){var b=this.translateXY(a,c);return{left:b.x,top:b.y}},translateXY:function(h,e){var d=this,b=d.el,i=b.getStyle(d._positionTopLeft),a=i.position==="relative",c=parseFloat(i.left),g=parseFloat(i.top),j=d.getXY();if(Ext.isArray(h)){e=h[1];h=h[0]}if(isNaN(c)){c=a?0:b.dom.offsetLeft}if(isNaN(g)){g=a?0:b.dom.offsetTop}c=(typeof h==="number")?h-j[0]+c:undefined;g=(typeof e==="number")?e-j[1]+g:undefined;return{x:c,y:g}},reverseTranslateXY:function(k){var i=k,c=this.el,j=[],d=c.dom,b=d.offsetParent,a,e,h,g;if(b){a=c.isStyle("position","relative"),e=Ext.fly(b).getXY(),h=k[0]+e[0]+b.clientLeft;g=k[1]+e[1]+b.clientTop;if(a){h+=c.getPadding("l");g+=c.getPadding("t")}i=[h,g]}return i}},0,0,0,0,0,0,[Ext.util,"Positionable"],0));Ext.define("Ext.overrides.util.Positionable",{override:"Ext.util.Positionable",anchorTo:function(h,e,b,a,j,k){var g=this,i=!Ext.isEmpty(j),c=function(){g.alignTo(h,e,b,a);Ext.callback(k,g)},d=g.getAnchor();g.removeAnchor();Ext.apply(d,{fn:c,scroll:i});Ext.on("resize",c,null);if(i){Ext.getWin().on("scroll",c,null,{buffer:!isNaN(j)?j:50})}c();return g},getAnchor:function(){var b=this.el,c,a;if(!b.dom){return}c=b.getData();a=c._anchor;if(!a){a=c._anchor={}}return a},removeAnchor:function(){var a=this.getAnchor();if(a&&a.fn){Ext.un("resize",a.fn);if(a.scroll){Ext.getWin().on("scroll",a.fn)}delete a.fn}return this},setBox:function(c,a){var b=this;if(c.isRegion){c={x:c.left,y:c.top,width:c.right-c.left,height:c.bottom-c.top}}if(a){b.constrainBox(c);b.animate(Ext.applyIf({to:c,listeners:{afteranimate:Ext.Function.bind(b.afterSetPosition,b,[c.x,c.y])}},a))}else{arguments.callee.$previous.call(this,c)}return b}});(Ext.cmd.derive("Ext.dom.UnderlayPool",Ext.Base,{constructor:function(a){this.elementConfig=a;this.cache=[]},checkOut:function(){var a=this.cache.shift();if(!a){a=Ext.Element.create(this.elementConfig);a.setVisibilityMode(2)}return a},checkIn:function(a){this.cache.push(a)},reset:function(){var a=this.cache,b=a.length;while(b--){a[b].destroy()}this.cache=[]}},1,0,0,0,0,0,[Ext.dom,"UnderlayPool"],0));(Ext.cmd.derive("Ext.dom.Underlay",Ext.Base,{constructor:function(a){Ext.apply(this,a)},beforeShow:Ext.emptyFn,getInsertionTarget:function(){return this.target},getPool:function(){return this.pool||(this.self.prototype.pool=new Ext.dom.UnderlayPool(this.elementConfig))},hide:function(){var b=this,a=b.el;if(a){a.hide();b.getPool().checkIn(a);b.el=null;b.hidden=true}},realign:function(i,h,a,j){var e=this,b=e.el,d=e.target,c=e.offsets,g=Math.max;if(b){if(i==null){i=d.getX()}if(h==null){h=d.getY()}if(a==null){a=d.getWidth()}if(j==null){j=d.getHeight()}if(c){i=i+c.x;h=h+c.y;a=g(a+c.w,0);j=g(j+c.h,0)}b.setXY([i,h]);b.setSize(a,j)}},setZIndex:function(a){this.zIndex=a;if(this.el){this.el.setStyle("z-index",a)}},show:function(){var b=this,d=b.target,g=b.zIndex,a=b.el,c=b.getInsertionTarget().dom,e;if(!a){a=b.el=b.getPool().checkOut()}b.beforeShow();if(g==null){g=(parseInt(d.getStyle("z-index"),10))}if(g){a.setStyle("z-index",g)}a.setStyle("position",b.fixed?"fixed":"");e=a.dom;if(e.nextSibling!==c){d.dom.parentNode.insertBefore(e,c)}a.show();b.realign();b.hidden=false}},1,0,0,0,0,0,[Ext.dom,"Underlay"],0));(Ext.cmd.derive("Ext.dom.Shadow",Ext.dom.Underlay,{alternateClassName:"Ext.Shadow",mode:"drop",offset:4,cls:"x-"+(!Ext.supports.CSS3BoxShadow?"ie":"css")+"-shadow",constructor:function(b){var d=this,e,c,g,a;Ext.dom.Underlay.prototype.constructor.call(this,b);d.elementConfig={cls:d.cls,role:"presentation"};g=d.offset;a=Math.floor(g/2);d.opacity=50;switch(d.mode.toLowerCase()){case"drop":e={x:0,y:0,w:g,h:g};if(Ext.supports.CSS3BoxShadow){c={x:g,y:g,h:-g,w:-g}}else{c={x:-a,y:-a,h:-a,w:-a}}break;case"sides":e={x:-g,y:0,w:g*2,h:g};if(Ext.supports.CSS3BoxShadow){c={x:0,y:g,h:-g,w:0}}else{c={x:1+a-2*g,y:-(1+a),h:-1,w:a-1}}break;case"frame":e={x:-g,y:-g,w:g*2,h:g*2};if(Ext.supports.CSS3BoxShadow){c={x:0,y:0,h:0,w:0}}else{c={x:1+a-2*g,y:1+a-2*g,h:g-a-1,w:g-a-1}}break;case"bottom":e={x:-g,y:0,w:g*2,h:g};if(Ext.supports.CSS3BoxShadow){c={x:0,y:g,h:-g,w:0}}else{c={x:0,y:g,h:0,w:0}}break}d.offsets=c;d.outerOffsets=e},getShadowSize:function(){var b=this,d=b.el?b.offset:0,a=[d,d,d,d],c=b.mode.toLowerCase();if(b.el&&c!=="frame"){a[0]=0;if(c=="drop"){a[3]=0}}return a},boxShadowProperty:(function(){var b="boxShadow",a=document.documentElement.style;if(!("boxShadow" in a)){if("WebkitBoxShadow" in a){b="WebkitBoxShadow"}else{if("MozBoxShadow" in a){b="MozBoxShadow"}}}return b}()),beforeShow:function(){var b=this,a=b.el.dom.style,c=b.shim;if(Ext.supports.CSS3BoxShadow){a[b.boxShadowProperty]="0 0 "+(b.offset+2)+"px #888"}else{a.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+b.opacity+") progid:DXImageTransform.Microsoft.Blur(pixelradius="+(b.offset)+")"}if(c){c.realign()}},setOpacity:function(a){var b=this.el;if(b){if(Ext.isIE&&!Ext.supports.CSS3BoxShadow){a=Math.floor(a*100/2)/100}this.opacity=a;b.setOpacity(a)}}},1,0,0,0,0,0,[Ext.dom,"Shadow",Ext,"Shadow"],0));(Ext.cmd.derive("Ext.dom.Shim",Ext.dom.Underlay,{cls:"x-shim",constructor:function(a){Ext.dom.Underlay.prototype.constructor.call(this,a);this.elementConfig={tag:"iframe",cls:this.cls,role:"presentation",frameBorder:"0",src:Ext.SSL_SECURE_URL,tabindex:"-1"}},getInsertionTarget:function(){var a=this.shadow;return(a&&a.el)||this.target}},1,0,0,0,0,0,[Ext.dom,"Shim"],0));(Ext.cmd.derive("Ext.dom.ElementEvent",Ext.util.Event,{addListener:function(h,l,m,c,e){var g=this,i=false,a=g.name,k=Ext.event.publisher.Dom.instance.directEvents[a],b,d,j;m=m||{};if(m.delegated===false||k){if(k&&m.delegate){m.capture=true}if(m.capture){j=g.directCaptures||(g.directCaptures=new Ext.util.Event(g.observable,a));i=j.addListener(h,l,m,c,e)}else{d=g.directs||(g.directs=new Ext.util.Event(g.observable,a));i=d.addListener(h,l,m,c,e)}}else{if(m.capture){b=g.captures||(g.captures=new Ext.util.Event(g.observable,a));i=b.addListener(h,l,m,c,e)}else{i=Ext.util.Event.prototype.addListener.call(this,h,l,m,c,e)}}return i},removeListener:function(e,d){var g=this,a=g.captures,c=g.directs,h=g.directCaptures,i=false,b=g.findListener(e,d);if(b!==-1){i=Ext.util.Event.prototype.removeListener.call(this,e,d,b)}else{if(c){b=c.findListener(e,d)}if(b!==-1){i=c.removeListener(e,d,b)}else{if(a){b=a.findListener(e,d)}if(b!==-1){i=a.removeListener(e,d,b)}else{if(h){b=h.findListener(e,d);if(b!==-1){i=h.removeListener(e,d,b)}}}}}return i},clearListeners:function(){var c=this,d=c.directCaptures,b=c.directs,a=c.captures;if(d){d.clearListeners()}if(b){b.clearListeners()}if(a){a.clearListeners()}Ext.util.Event.prototype.clearListeners.call(this)},suspend:function(){var c=this,d=c.directCaptures,b=c.directs,a=c.captures;if(d){d.suspend()}if(b){b.suspend()}if(a){a.suspend()}Ext.util.Event.prototype.suspend.call(this)},resume:function(){var c=this,d=c.directCaptures,b=c.directs,a=c.captures;if(d){d.resume()}if(b){b.resume()}if(a){a.resume()}Ext.util.Event.prototype.resume.call(this)}},0,0,0,0,0,0,[Ext.dom,"ElementEvent"],0));(Ext.cmd.derive("Ext.event.publisher.Publisher",Ext.Base,{handledEvents:[],statics:{publishers:{},publishersByEvent:{}},constructor:function(){var b=this,a=b.type;b.handles={};b.registerEvents();Ext.event.publisher.Publisher.publishers[a]=b},registerEvents:function(e){var h=this,d=Ext.event.publisher.Publisher.publishersByEvent,b=e||h.handledEvents,g=b.length,a,c;for(c=0;c<g;c++){a=b[c];h.handles[a]=1;d[a]=h}},fire:function(c,a,b){var d;if(c.hasListeners[a]){d=c.events[a];if(d){d.fire.apply(d,b)}}},destroy:Ext.emptyFn},1,0,0,0,0,0,[Ext.event.publisher,"Publisher"],0));(Ext.cmd.derive("Ext.util.Offset",Ext.Base,{statics:{fromObject:function(a){return new this(a.x,a.y)}},constructor:function(a,b){this.x=(a!=null&&!isNaN(a))?a:0;this.y=(b!=null&&!isNaN(b))?b:0;return this},copy:function(){return new Ext.util.Offset(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},toString:function(){return"Offset["+this.x+","+this.y+"]"},equals:function(a){return(this.x==a.x&&this.y==a.y)},round:function(b){if(!isNaN(b)){var a=Math.pow(10,b);this.x=Math.round(this.x*a)/a;this.y=Math.round(this.y*a)/a}else{this.x=Math.round(this.x);this.y=Math.round(this.y)}},isZero:function(){return this.x==0&&this.y==0}},3,0,0,0,0,0,[Ext.util,"Offset"],0));(Ext.cmd.derive("Ext.util.Region",Ext.Base,{isRegion:true,statics:{getRegion:function(a){return Ext.fly(a).getRegion()},from:function(a){return new this(a.top,a.right,a.bottom,a.left)}},constructor:function(d,g,a,c){var e=this;e.y=e.top=e[1]=d;e.right=g;e.bottom=a;e.x=e.left=e[0]=c},contains:function(b){var a=this;return(b.x>=a.x&&b.right<=a.right&&b.y>=a.y&&b.bottom<=a.bottom)},intersect:function(h){var g=this,d=Math.max(g.y,h.y),e=Math.min(g.right,h.right),a=Math.min(g.bottom,h.bottom),c=Math.max(g.x,h.x);if(a>d&&e>c){return new this.self(d,e,a,c)}else{return false}},union:function(h){var g=this,d=Math.min(g.y,h.y),e=Math.max(g.right,h.right),a=Math.max(g.bottom,h.bottom),c=Math.min(g.x,h.x);return new this.self(d,e,a,c)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);return a},adjust:function(d,g,a,c){var e=this;e.top=e.y+=d;e.left=e.x+=c;e.right+=g;e.bottom+=a;return e},getOutOfBoundOffset:function(a,b){if(!Ext.isObject(a)){if(a=="x"){return this.getOutOfBoundOffsetX(b)}else{return this.getOutOfBoundOffsetY(b)}}else{b=a;var c=new Ext.util.Offset();c.x=this.getOutOfBoundOffsetX(b.x);c.y=this.getOutOfBoundOffsetY(b.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else{if(a>=this.right){return this.right-a}}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else{if(a>=this.bottom){return this.bottom-a}}return 0},isOutOfBound:function(a,b){if(!Ext.isObject(a)){if(a=="x"){return this.isOutOfBoundX(b)}else{return this.isOutOfBoundY(b)}}else{b=a;return(this.isOutOfBoundX(b.x)||this.isOutOfBoundY(b.y))}},isOutOfBoundX:function(a){return(a<this.x||a>this.right)},isOutOfBoundY:function(a){return(a<this.y||a>this.bottom)},restrict:function(b,d,a){if(Ext.isObject(b)){var c;a=d;d=b;if(d.copy){c=d.copy()}else{c={x:d.x,y:d.y}}c.x=this.restrictX(d.x,a);c.y=this.restrictY(d.y,a);return c}else{if(b=="x"){return this.restrictX(d,a)}else{return this.restrictY(d,a)}}},restrictX:function(b,a){if(!a){a=1}if(b<=this.x){b-=(b-this.x)*a}else{if(b>=this.right){b-=(b-this.right)*a}}return b},restrictY:function(b,a){if(!a){a=1}if(b<=this.y){b-=(b-this.y)*a}else{if(b>=this.bottom){b-=(b-this.bottom)*a}}return b},getSize:function(){return{width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return this},toString:function(){return"Region["+this.top+","+this.right+","+this.bottom+","+this.left+"]"},translateBy:function(a,c){if(arguments.length==1){c=a.y;a=a.x}var b=this;b.top=b.y+=c;b.right+=a;b.bottom+=c;b.left=b.x+=a;return b},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return(this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left)}},3,0,0,0,0,0,[Ext.util,"Region"],0));(Ext.cmd.derive("Ext.util.Point",Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=(a&&a.length>0)?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}Ext.util.Region.prototype.constructor.call(this,b,a,b,a)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return"Point["+this.x+","+this.y+"]"},isCloseTo:function(c,b){if(typeof b=="number"){return this.getDistanceTo(c)<=b}var a=c.x,g=c.y,e=b.x,d=b.y;return(this.x<=a+e&&this.x>=a-e&&this.y<=g+d&&this.y>=g-d)},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=="object"){a=this.origin}return(Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y))},getDistanceTo:function(b){if(!b||typeof b!=="object"){b=this.origin}var c=this.x-b.x,a=this.y-b.y;return Math.sqrt(c*c+a*a)},getAngleTo:function(b){if(!b||typeof b!=="object"){b=this.origin}var c=this.x-b.x,a=this.y-b.y;return Math.atan2(a,c)*this.radianToDegreeConstant}},3,0,0,0,0,0,[Ext.util,"Point"],function(){this.prototype.translate=this.prototype.translateBy}));(Ext.cmd.derive("Ext.event.Event",Ext.Base,{alternateClassName:"Ext.EventObjectImpl",isStopped:false,defaultPrevented:false,isEvent:true,statics:{resolveTextNode:function(a){return(a&&a.nodeType===3)?a.parentNode:a},pointerEvents:{pointerdown:1,pointermove:1,pointerup:1,pointercancel:1,pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerDown:1,MSPointerMove:1,MSPointerUp:1,MSPointerOver:1,MSPointerOut:1,MSPointerCancel:1,MSPointerEnter:1,MSPointerLeave:1},mouseEvents:{mousedown:1,mousemove:1,mouseup:1,mouseover:1,mouseout:1,mouseenter:1,mouseleave:1},clickEvents:{click:1,dblclick:1},touchEvents:{touchstart:1,touchmove:1,touchend:1,touchcancel:1},focusEvents:{focus:1,blur:1,focusin:1,focusout:1,focusenter:1,focusleave:1},pointerTypes:{2:"touch",3:"pen",4:"mouse",touch:"touch",pen:"pen",mouse:"mouse"}},constructor:function(b){var g=this,j=g.self,e=g.self.resolveTextNode,i=b.changedTouches,c=i?i[0]:b,h=b.type,a,d;g.pageX=c.pageX;g.pageY=c.pageY;g.target=g.delegatedTarget=e(b.target);d=b.relatedTarget;if(d){g.relatedTarget=e(d)}g.browserEvent=g.event=b;g.type=h;g.button=b.button||0;g.shiftKey=b.shiftKey;g.ctrlKey=b.ctrlKey||b.metaKey||false;g.altKey=b.altKey;g.charCode=b.charCode||0;g.keyCode=b.keyCode;g.buttons=b.buttons;if(g.button===0&&g.buttons===0){g.buttons=1}if(j.forwardTab!==undefined&&j.focusEvents[h]){g.forwardTab=j.forwardTab}if(j.mouseEvents[h]||j.clickEvents[h]){a="mouse"}else{if(j.pointerEvents[h]){a=j.pointerTypes[b.pointerType]}else{if(j.touchEvents[h]){a="touch"}}}if(a){g.pointerType=a}g.timeStamp=g.time=+(b.timeStamp||new Date())},chain:function(a){var b=Ext.Object.chain(this);b.parentEvent=this;return Ext.apply(b,a)},correctWheelDelta:function(c){var b=this.WHEEL_SCALE,a=Math.round(c/b);if(!a&&c){a=(c<0)?-1:1}return a},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getPoint:function(){var a=this.getXY();return new Ext.util.Point(a[0],a[1])},getRelatedTarget:function(b,e,a){var c=this.relatedTarget,d=null;if(c&&c.nodeType){if(b){d=Ext.fly(c).findParent(b,e,a)}else{d=a?Ext.get(c):c}}return d},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):(a?Ext.get(this.target):this.target)},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var d=this,c=d.browserEvent,b=0,a=0;if(Ext.isDefined(c.wheelDeltaX)){b=c.wheelDeltaX;a=c.wheelDeltaY}else{if(c.wheelDelta){a=c.wheelDelta}else{if(c.detail){a=-c.detail;if(a>100){a=3}else{if(a<-100){a=-3}}if(Ext.isDefined(c.axis)&&c.axis===c.HORIZONTAL_AXIS){b=a;a=0}}}}return{x:d.correctWheelDelta(b),y:d.correctWheelDelta(a)}},getX:function(){return this.getXY()[0]},getXY:function(){var c=this,e=c.xy;if(!e){e=c.xy=[c.pageX,c.pageY];var b=e[0],h,d,g,a;if(!b&&b!==0){h=c.browserEvent;d=document;g=d.documentElement;a=d.body;e[0]=h.clientX+(g&&g.scrollLeft||a&&a.scrollLeft||0)-(g&&g.clientLeft||a&&a.clientLeft||0);e[1]=h.clientY+(g&&g.scrollTop||a&&a.scrollTop||0)-(g&&g.clientTop||a&&a.clientTop||0)}}return e},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(d){var c=this,a=c.keyCode,b=c.type==="keypress";return((!b||Ext.isGecko)&&a>=33&&a<=40)||(!d&&(a===c.RETURN||a===c.TAB||a===c.ESC))},isSpecialKey:function(){var d=this,b=d.keyCode,a=Ext.isGecko,c=d.type==="keypress";return(a&&c&&d.charCode===0)||(this.isNavKeyPress())||(b===d.BACKSPACE)||(b===d.ENTER)||(b>=16&&b<=20)||((!c||a)&&b>=44&&b<=46)},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var b=this,a=b.parentEvent;b.defaultPrevented=true;if(a){a.defaultPrevented=true}b.browserEvent.preventDefault();return b},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var b=this,c=b.browserEvent,a=b.parentEvent;b.isStopped=true;if(a){a.isStopped=true}if(!c.stopPropagation){c.cancelBubble=true;return b}c.stopPropagation();return b},within:function(c,d,a){var b;if(c){b=d?this.getRelatedTarget():this.getTarget()}return b?Ext.fly(c).contains(b)||!!(a&&b===Ext.getDom(c)):false},deprecated:{"4.0":{methods:{getPageX:"getX",getPageY:"getY"}}}},1,0,0,0,0,0,[Ext.event,"Event",Ext,"EventObjectImpl"],function(a){var b=a.prototype,c={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,WHEEL_SCALE:(function(){var d;if(Ext.isGecko){d=3}else{if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){d=120}else{d=12}d*=3}else{d=120}}return d}())};Ext.apply(a,c);Ext.apply(b,c);b.getTrueXY=b.getXY}));Ext.define("Ext.overrides.event.Event",{override:"Ext.event.Event",mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:(function(){var d,e={},c;if(!Ext.isIE9m&&document.createEvent){d={createHtmlEvent:function(k,i,h,g){var j=k.createEvent("HTMLEvents");j.initEvent(i,h,g);return j},createMouseEvent:function(u,s,m,l,o,k,i,j,g,r,q,n,p){var h=u.createEvent("MouseEvents"),t=u.defaultView||window;if(h.initMouseEvent){h.initMouseEvent(s,m,l,t,o,k,i,k,i,j,g,r,q,n,p)}else{h=u.createEvent("UIEvents");h.initEvent(s,m,l);h.view=t;h.detail=o;h.screenX=k;h.screenY=i;h.clientX=k;h.clientY=i;h.ctrlKey=j;h.altKey=g;h.metaKey=q;h.shiftKey=r;h.button=n;h.relatedTarget=p}return h},createUIEvent:function(m,k,i,h,j){var l=m.createEvent("UIEvents"),g=m.defaultView||window;l.initUIEvent(k,i,h,g,j);return l},fireEvent:function(i,g,h){i.dispatchEvent(h)}}}else{if(document.createEventObject){c={0:1,1:4,2:2};d={createHtmlEvent:function(k,i,h,g){var j=k.createEventObject();j.bubbles=h;j.cancelable=g;return j},createMouseEvent:function(t,s,m,l,o,k,i,j,g,r,q,n,p){var h=t.createEventObject();h.bubbles=m;h.cancelable=l;h.detail=o;h.screenX=k;h.screenY=i;h.clientX=k;h.clientY=i;h.ctrlKey=j;h.altKey=g;h.shiftKey=r;h.metaKey=q;h.button=c[n]||n;h.relatedTarget=p;return h},createUIEvent:function(l,j,h,g,i){var k=l.createEventObject();k.bubbles=h;k.cancelable=g;return k},fireEvent:function(i,g,h){i.fireEvent("on"+g,h)}}}}Ext.Object.each({load:[false,false],unload:[false,false],select:[true,false],change:[true,false],submit:[true,true],reset:[true,false],resize:[true,false],scroll:[true,false]},function(i,j){var h=j[0],g=j[1];e[i]=function(m,k){var l=d.createHtmlEvent(i,h,g);d.fireEvent(m,i,l)}});function b(i,h){var g=(i!=="mousemove");return function(m,j){var l=j.getXY(),k=d.createMouseEvent(m.ownerDocument,i,true,g,h,l[0],l[1],j.ctrlKey,j.altKey,j.shiftKey,j.metaKey,j.button,j.relatedTarget);d.fireEvent(m,i,k)}}Ext.each(["click","dblclick","mousedown","mouseup","mouseover","mousemove","mouseout"],function(g){e[g]=b(g,1)});Ext.Object.each({focusin:[true,false],focusout:[true,false],activate:[true,true],focus:[false,false],blur:[false,false]},function(i,j){var h=j[0],g=j[1];e[i]=function(m,k){var l=d.createUIEvent(m.ownerDocument,i,h,g,1);d.fireEvent(m,i,l)}});if(!d){e={};d={}}function a(h,g){}return function(j){var i=this,h=e[i.type]||a,g=j?(j.dom||j):i.getTarget();h(g,i)}}()),preventDefault:function(){var d=this,c=d.browserEvent,b=d.parentEvent,a,e;if(typeof c.type!=="unknown"){d.defaultPrevented=true;if(b){b.defaultPrevented=true}if(c.preventDefault){c.preventDefault()}else{if(c.type==="mousedown"){e=c.target;a=e.getAttribute("unselectable");if(a!=="on"){e.setAttribute("unselectable","on");Ext.defer(function(){e.setAttribute("unselectable",a)},1)}}c.returnValue=false;if(c.ctrlKey||c.keyCode>111&&c.keyCode<124){c.keyCode=-1}}}return d},stopPropagation:function(){var b=this,a=b.browserEvent;if(typeof a.type!=="unknown"){if(b.mousedownEvents[b.type]){Ext.GlobalEvents.fireMouseDown(b)}arguments.callee.$previous.call(this)}return b},deprecated:{"5.0":{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var a=this,d,c=function(g){if(g.keyCode===9){a.forwardTab=!g.shiftKey}},b=function(g){if(g.keyCode===9){delete a.forwardTab}};if(Ext.isIE9m){d={0:0,1:0,4:1,2:2};a.override({statics:{enableIEAsync:function(h){var e,g={};for(e in h){g[e]=h[e]}return g}},constructor:function(i,j,g,e){var h=this;h.callParent([i,j,g,e]);h.button=d[i.button];if(i.type==="contextmenu"){h.button=2}h.toElement=i.toElement;h.fromElement=i.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(e){this.browserEvent=this.self.enableIEAsync(e)},getRelatedTarget:function(g,k,e){var i=this,h,j;if(!i.relatedTarget){h=i.type;if(i.mouseLeaveRe.test(h)){j=i.toElement}else{if(i.mouseEnterRe.test(h)){j=i.fromElement}}if(j){i.relatedTarget=i.self.resolveTextNode(j)}}return i.callParent([g,k,e])}});document.attachEvent("onkeydown",c);document.attachEvent("onkeyup",b);window.attachEvent("onunload",function(){document.detachEvent("onkeydown",c);document.detachEvent("onkeyup",b)})}else{if(document.addEventListener){document.addEventListener("keydown",c,true);document.addEventListener("keyup",b,true)}}});Ext.define("Ext.rtl.event.Event",{override:"Ext.event.Event",getXY:function(){var a=this,b=a.xy;if(!b){b=arguments.callee.$previous.call(this);if(Ext.rootInheritedState.rtl){b[0]=Ext.Element.getViewportWidth()-b[0]}}return b}});(Ext.cmd.derive("Ext.event.publisher.Dom",Ext.event.publisher.Publisher,{type:"dom",handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1,scroll:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var g=this,d=Ext.event.publisher.Publisher.publishersByEvent,a=g.handledDomEvents,e=a.length,c=0,b;for(;c<e;c++){b=a[c];g.handles[b]=1;d[b]=g}Ext.event.publisher.Publisher.prototype.registerEvents.call(this)},onReady:function(){var d=this,a=d.handledDomEvents,c,b;if(a){for(b=0,c=a.length;b<c;b++){d.addDelegatedListener(a[b])}}Ext.getWin().on("unload",d.destroy,d)},initHandlers:function(){var a=this;a.onDelegatedEvent=Ext.bind(a.onDelegatedEvent,a);a.onDirectEvent=Ext.bind(a.onDirectEvent,a);a.onDirectCaptureEvent=Ext.bind(a.onDirectCaptureEvent,a)},addDelegatedListener:function(a){this.delegatedListeners[a]=1;this.target.addEventListener(a,this.onDelegatedEvent,!!this.captureEvents[a])},removeDelegatedListener:function(a){delete this.delegatedListeners[a];this.target.removeEventListener(a,this.onDelegatedEvent,!!this.captureEvents[a])},addDirectListener:function(b,c,a){c.dom.addEventListener(b,a?this.onDirectCaptureEvent:this.onDirectEvent,a)},removeDirectListener:function(b,c,a){c.dom.removeEventListener(b,a?this.onDirectCaptureEvent:this.onDirectEvent,a)},subscribe:function(c,b,g,a){var d=this,e,h;if(g&&!d.directEvents[b]){e=a?d.captureSubscribers:d.bubbleSubscribers;if(!d.handles[b]&&!d.delegatedListeners[b]){d.addDelegatedListener(b)}if(e[b]){++e[b]}else{e[b]=1}}else{e=a?d.directCaptureSubscribers:d.directSubscribers;h=c.id;e=e[b]||(e[b]={});if(e[h]){++e[h]}else{e[h]=1;d.addDirectListener(b,c,a)}}},unsubscribe:function(e,g,b,j){var i=this,h,d,a,c;if(b&&!i.directEvents[g]){h=i.captureSubscribers;d=i.bubbleSubscribers;a=j?h:d;if(a[g]){--a[g]}if(!i.handles[g]&&!d[g]&&!h[g]){this.removeDelegatedListener(g)}}else{a=j?i.directCaptureSubscribers:i.directSubscribers;c=e.id;a=a[g];if(a[c]){--a[c]}if(!a[c]){delete a[c];i.removeDirectListener(g,e,j)}}},getPropagatingTargets:function(d){var c=d,b=[],a;while(c){b.push(c);a=c.parentNode;if(!a){a=c.defaultView}c=a}return b},publish:function(b,k,j){var h=this,a,d,c,g;if(Ext.isArray(k)){a=k}else{if(h.captureEvents[b]){d=Ext.cache[k.id];a=d?[d]:[]}else{a=h.getPropagatingTargets(k)}}g=a.length;if(h.captureSubscribers[b]){for(c=g;c--;){d=Ext.cache[a[c].id];if(d){h.fire(d,b,j,false,true);if(j.isStopped){break}}}}if(!j.isStopped&&h.bubbleSubscribers[b]){for(c=0;c<g;c++){d=Ext.cache[a[c].id];if(d){h.fire(d,b,j,false,false);if(j.isStopped){break}}}}},fire:function(c,b,g,h,a){var d;if(c.hasListeners[b]){d=c.events[b];if(d){if(a&&h){d=d.directCaptures}else{if(a){d=d.captures}else{if(h){d=d.directs}}}if(d){g.setCurrentTarget(c.dom);d.fire(g,g.target)}}}},onDelegatedEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDelegatedEvent,this,[a])}else{this.doDelegatedEvent(a)}},doDelegatedEvent:function(d,c){var b=this,a=d.timeStamp;d=new Ext.event.Event(d);if(b.isEventBlocked(d)){return false}b.beforeEvent(d);Ext.frameStartTime=a;b.reEnterCount++;b.publish(d.type,d.target,d);b.reEnterCount--;if(c!==false){b.afterEvent(d)}return d},onDirectEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDirectEvent,this,[a,false])}else{this.doDirectEvent(a,false)}},onDirectCaptureEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDirectEvent,this,[a,true])}else{this.doDirectEvent(a,true)}},doDirectEvent:function(g,b){var c=this,d=g.currentTarget,a=g.timeStamp;g=new Ext.event.Event(g);if(c.isEventBlocked(g)){return}c.beforeEvent(g);Ext.frameStartTime=a;c.reEnterCount++;c.fire(Ext.cache[d.id],g.type,g,true,b);c.reEnterCount--;c.afterEvent(g)},beforeEvent:function(c){var g=c.browserEvent,a=Ext.event.publisher.Dom,b,d;if(g.type==="touchstart"){b=g.touches;if(b.length===1){d=b[0];a.lastTouchStartX=d.pageX;a.lastTouchStartY=d.pageY}}},afterEvent:function(d){var g=d.browserEvent,c=g.type,b=Ext.event.publisher.Dom,a=Ext.GlobalEvents;if(d.self.pointerEvents[c]&&d.pointerType!=="mouse"){b.lastScreenPointerEventTime=Ext.now()}if(c==="touchend"){b.lastTouchEndTime=Ext.now()}if(!this.reEnterCount&&a.hasListeners.idle&&!a.idleEventMask[c]){a.fireEvent("idle")}},isEventBlocked:function(g){var d=this,c=g.type,a=Ext.event.publisher.Dom,b=Ext.now();if(Ext.isGecko&&g.type==="click"&&g.button===2){return true}return(d.blockedPointerEvents[c]&&g.pointerType!=="mouse")||(d.blockedCompatibilityMouseEvents[c]&&(b-a.lastScreenPointerEventTime<1000))||(Ext.supports.TouchEvents&&g.self.mouseEvents[g.type]&&Math.abs(g.pageX-a.lastTouchStartX)<15&&Math.abs(g.pageY-a.lastTouchStartY)<15&&(Ext.now()-a.lastTouchEndTime)<1000)},destroy:function(){var a;for(a in this.delegatedListeners){this.removeDelegatedListener(a)}},reset:function(){var a=Ext.event.publisher.Dom;a.lastScreenPointerEventTime=a.lastTouchEndTime=a.lastTouchStartX=a.lastTouchStartY=undefined}},1,0,0,0,0,0,[Ext.event.publisher,"Dom"],function(b){var d=document,c=d.defaultView,a=b.prototype;if((Ext.os.is.iOS&&Ext.os.version.getMajor()<5)||Ext.browser.is.AndroidStock||!(c&&c.addEventListener)){a.target=d}else{a.target=c}b.instance=new b()}));Ext.define("Ext.overrides.event.publisher.Dom",{override:"Ext.event.publisher.Dom"},function(e){if(Ext.isIE9m){var d=document.body,c=e.prototype,a,b;c.target=document;c.directBoundListeners={};a=function(i,h,g){i.target=i.srcElement||window;i.currentTarget=this;if(g){h.onDirectCaptureEvent(i)}else{h.onDirectEvent(i)}};b=function(h,g){h.target=h.srcElement||window;h.currentTarget=this;g.onDirectCaptureEvent(h)};e.override({addDelegatedListener:function(g){this.delegatedListeners[g]=1;this.target.attachEvent("on"+g,this.onDelegatedEvent)},removeDelegatedListener:function(g){delete this.delegatedListeners[g];this.target.detachEvent("on"+g,this.onDelegatedEvent)},addDirectListener:function(j,k,i){var m=this,n=k.dom,l=Ext.Function.bind(a,n,[m,i],true),g=m.directBoundListeners,h=g[j]||(g[j]={});h[n.id]=l;if(n.attachEvent){n.attachEvent("on"+j,l)}else{m.callParent([j,k,i])}},removeDirectListener:function(h,i,g){var j=i.dom;if(j.detachEvent){j.detachEvent("on"+h,this.directBoundListeners[h][j.id])}else{this.callParent([h,i,g])}},doDelegatedEvent:function(h,g){h.target=h.srcElement||window;if(h.type==="focusin"){h.relatedTarget=h.fromElement===d?null:h.fromElement}else{if(h.type==="focusout"){h.relatedTarget=h.toElement===d?null:h.toElement}}return this.callParent([h,g])}});Ext.apply(c.directEvents,c.captureEvents);Ext.apply(c.directEvents,{change:1,input:1,paste:1});c.captureEvents={}}});(Ext.cmd.derive("Ext.event.publisher.Gesture",Ext.event.publisher.Dom,{type:"gesture",config:{async:true},isCancelEvent:{touchcancel:1,pointercancel:1,MSPointerCancel:1},handledEvents:[],handledDomEvents:[],constructor:function(b){var h=this,c=h.handledDomEvents,m=Ext.supports,k=m.TouchEvents,l=Ext.Function,d=h.onTouchStart,a=h.onTouchMove,j=h.onTouchEnd,g=l.createAnimationFrame(h.onTouchStart,h,null,1),e=l.createAnimationFrame(h.onTouchMove,h),i=l.createAnimationFrame(h.onTouchEnd,h,null,1);h._handlers={touchstart:d,touchmove:a,touchend:j,touchcancel:j,pointerdown:d,pointermove:a,pointerup:j,pointercancel:j,MSPointerDown:d,MSPointerMove:a,MSPointerUp:j,MSPointerCancel:j,mousedown:d,mousemove:a,mouseup:j};h._asyncHandlers={touchstart:g,touchmove:e,touchend:i,touchcancel:i,pointerdown:g,pointermove:e,pointerup:i,pointercancel:i,MSPointerDown:g,MSPointerMove:e,MSPointerUp:i,MSPointerCancel:i,mousedown:g,mousemove:e,mouseup:i};h.activeTouchesMap={};h.activeTouches=[];h.changedTouches=[];h.recognizers=[];if(k){h.onTargetTouchMove=h.onTargetTouchMove.bind(h);h.onTargetTouchEnd=h.onTargetTouchEnd.bind(h)}if(m.PointerEvents){c.push("pointerdown","pointermove","pointerup","pointercancel");h.mousePointerType="mouse"}else{if(m.MSPointerEvents){c.push("MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel");h.mousePointerType=4}else{if(k){c.push("touchstart","touchmove","touchend","touchcancel")}}}if(!c.length||(k&&Ext.isWebKit&&Ext.os.is.Desktop)){c.push("mousedown","mousemove","mouseup")}h.initConfig(b);return Ext.event.publisher.Dom.prototype.constructor.call(this)},onReady:function(){Ext.event.publisher.Dom.prototype.onReady.call(this);Ext.Array.sort(this.recognizers,function(g,e){var d=g.priority,c=e.priority;return(d>c)?1:(d<c)?-1:0})},registerRecognizer:function(a){var e=this,b=a.handledEvents,d=b.length,c;a.setOnRecognized(e.onRecognized);a.setCallbackScope(e);for(c=0;c<d;c++){e.handledEvents.push(b[c])}e.registerEvents(b);e.recognizers.push(a)},onRecognized:function(d,h,a){var k=this,l=h.changedTouches,j=l.length,m,g,c,b;a=a||{};a.type=d;a.target=l[0].target;a.isStopped=false;h=h.chain(a);if(j>1){m=[];for(c=0;c<j;c++){b=l[c];m.push(b.targets)}g=k.getCommonTargets(m)}else{g=l[0].targets}k.publish(d,g,h)},getCommonTargets:function(a){var k=a[0],g=a.length;if(g===1){return k}var d=[],e=1,h,b,c;while(true){h=k[k.length-e];if(!h){return d}for(c=1;c<g;c++){b=a[c];if(b[b.length-e]!==h){return d}}d.unshift(h);e++}return d},invokeRecognizers:function(c,h){var b=this.recognizers,g=b.length,d,a;if(c==="onStart"){for(d=0;d<g;d++){b[d].isActive=true}}for(d=0;d<g;d++){a=b[d];if(a.isActive&&a[c].call(a,h)===false){a.isActive=false}}},updateTouches:function(k,b){var o=this,s=k.browserEvent,g=s.changedTouches||[s],a=o.activeTouches,l=o.activeTouchesMap,q=[],n,j,d,h,c,m,r,p;for(c=0,m=g.length;c<m;c++){n=g[c];if("identifier" in n){j=n.identifier}else{if("pointerId" in n){j=n.pointerId}else{j=1}}d=l[j];if(!d){h=Ext.event.Event.resolveTextNode(n.target);d=l[j]={identifier:j,target:h,targets:o.getPropagatingTargets(h)};a.push(d)}if(b){delete l[j];Ext.Array.remove(a,d)}r=n.pageX;p=n.pageY;d.pageX=r;d.pageY=p;d.point=new Ext.util.Point(r,p);q.push(d)}k.touches=Ext.Array.clone(a);k.changedTouches=q},doDelegatedEvent:function(b){var a=this;b=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,b,false);if(b){if(!b.button||b.button<1){a.handlers[b.type].call(a,b)}a.afterEvent(b)}},onTouchStart:function(d){var a=this,c=d.target,b=d.browserEvent.touches;if(d.browserEvent.type==="touchstart"){c.addEventListener("touchmove",a.onTargetTouchMove);c.addEventListener("touchend",a.onTargetTouchEnd);c.addEventListener("touchcancel",a.onTargetTouchEnd)}if(b&&b.length<=a.activeTouches.length){a.removeGhostTouches(b)}a.updateTouches(d);if(!a.isStarted){a.isStarted=true;a.invokeRecognizers("onStart",d);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.pause()}}a.invokeRecognizers("onTouchStart",d)},onTouchMove:function(c){var b=this,a=b.mousePointerType;if(b.isStarted){if(a&&c.browserEvent.pointerType===a&&c.buttons===0){c.type=Ext.dom.Element.prototype.eventMap.touchend;c.button=0;b.onTouchEnd(c);return}b.updateTouches(c);if(c.changedTouches.length>0){b.invokeRecognizers("onTouchMove",c)}}},onTouchEnd:function(b){var a=this;if(!a.isStarted){return}a.updateTouches(b,true);try{a.invokeRecognizers(a.isCancelEvent[b.type]?"onTouchCancel":"onTouchEnd",b)}finally{if(!a.activeTouches.length){a.isStarted=false;a.invokeRecognizers("onEnd",b);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else{this.doTargetTouchMove(a)}},doTargetTouchMove:function(a){if(!Ext.getBody().contains(a.target)){this.onTouchMove(new Ext.event.Event(a))}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else{this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var a=this,b=c.target;b.removeEventListener("touchmove",a.onTargetTouchMove);b.removeEventListener("touchend",a.onTargetTouchEnd);b.removeEventListener("touchcancel",a.onTargetTouchEnd);if(!Ext.getBody().contains(b)){a.onTouchEnd(new Ext.event.Event(c))}},updateAsync:function(a){this.handlers=a?this._asyncHandlers:this._handlers},reset:function(){var e=this,b=e.recognizers,d=b.length,c,a;e.activeTouchesMap={};e.activeTouches=[];e.changedTouches=[];e.isStarted=false;for(c=0;c<d;c++){a=b[c];a.reset();a.isActive=false}Ext.event.publisher.Dom.prototype.reset.call(this)},privates:{removeGhostTouches:function(e){var c={},a=e.length,j=this.activeTouches,d=this.activeTouchesMap,b,h,g;for(b=0;b<a;++b){c[e[b].identifier]=true}b=j.length;while(b--){g=j[b];h=g.identifier;if(!e[h]){Ext.Array.remove(j,g);delete d[h]}}}}},1,0,0,0,0,0,[Ext.event.publisher,"Gesture"],function(a){a.instance=new a()}));Ext.define("Ext.overrides.event.publisher.Gesture",{override:"Ext.event.publisher.Gesture"},function(){if(Ext.isIE9m){this.override({updateTouches:function(c,a){var d=c.browserEvent,b=c.getXY();d.pageX=b[0];d.pageY=b[1];this.callParent([c,a])},doDelegatedEvent:function(a){this.callParent([Ext.event.Event.enableIEAsync(a)])}})}});(Ext.cmd.derive("Ext.event.publisher.Focus",Ext.event.publisher.Dom,{type:"focus",handledEvents:["focusenter","focusleave"],handledDomEvents:["focusin","focusout"],doDelegatedEvent:function(d,c){var b=this,a;d=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,d,false);if(d){if(d.type==="focusout"){if(d.relatedTarget==null){b.processFocusIn(d,d.target,document.body,c)}}else{a=d.relatedTarget;if(a==null||!a.tagName){a=document.body}b.processFocusIn(d,a,d.target,c)}}},processFocusIn:function(g,h,c,j){var i=this,k=Ext.Element.getCommonAncestor(c,h,true),b,d=[],a;for(b=h;b&&b!==k;b=b.parentNode){d.push(b)}if(d.length){a=i.createSyntheticEvent("focusleave",g,h,c);i.publish("focusleave",d,a);d.length=0;if(a.isStopped){return}}for(b=c;b&&b!==k;b=b.parentNode){d.push(b)}a=i.createSyntheticEvent("focusenter",g,c,h);i.publish("focusenter",d,a);if(a.isStopped){return}if(j){i.afterEvent(g)}Ext.GlobalEvents.fireEvent("focus",{event:a,toElement:c,fromElement:h})},createSyntheticEvent:function(b,e,d,a){var c=new Ext.event.Event(e);c.type=b;c.relatedTarget=a;c.target=d;return c}},0,0,0,0,0,0,[Ext.event.publisher,"Focus"],function(b){var a;if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:["focus","blur"],doDelegatedEvent:function(g,d){var c=this,h;g=c.callSuper([g,false]);if(g){h=g.target!==window&&g.target!==document;if(g.type==="blur"){if(!h){if(g.explicitOriginalTarget===b.previousActiveElement){if(g.target===window){clearTimeout(a);a=0;c.processFocusIn(g,b.previousActiveElement,document.body,d);b.previousActiveElement=null}}}else{a=setTimeout(function(){a=0;c.processFocusIn(g,g.target,document.body,d);b.previousActiveElement=null},0)}b.previousActiveElement=h?g.target:null}else{clearTimeout(a);a=0;c.processFocusIn(g,b.previousActiveElement||document.body,h?g.target:document.body,d)}}}})}b.instance=new b()}));(Ext.cmd.derive("Ext.mixin.Templatable",Ext.Mixin,{mixinConfig:{id:"templatable"},referenceAttributeName:"reference",referenceSelector:"[reference]",getElementConfig:function(){return{reference:"element"}},getElementTemplate:function(){var a=document.createDocumentFragment();a.appendChild(Ext.Element.create(this.getElementConfig(),true));return a},initElement:function(){var a=this.self.prototype;a.elementTemplate=this.getElementTemplate();a.initElement=a.doInitElement;this.initElement.apply(this,arguments)},linkElement:function(a,b){this.link(a,b)},doInitElement:function(){var h=this.referenceAttributeName,c,d,e,g,b,a;c=this.elementTemplate.cloneNode(true);d=c.querySelectorAll(this.referenceSelector);for(e=0,g=d.length;e<g;e++){b=d[e];a=b.getAttribute(h);b.removeAttribute(h);this.linkElement(a,b)}}},0,0,0,0,0,0,[Ext.mixin,"Templatable"],0));(Ext.cmd.derive("Ext.TaskQueue",Ext.Base,{singleton:true,pending:false,mode:true,constructor:function(){this.readQueue=[];this.writeQueue=[];this.run=Ext.Function.bind(this.run,this);if(Ext.os.is.iOS){Ext.interval(this.watch,500,this)}},requestRead:function(c,b,a){this.request(true);this.readQueue.push(arguments)},requestWrite:function(c,b,a){this.request(false);this.writeQueue.push(arguments)},request:function(a){if(!this.pending){this.pendingTime=Date.now();this.pending=true;this.mode=a;if(a){Ext.defer(this.run,1,this)}else{Ext.Function.requestAnimationFrame(this.run)}}},watch:function(){if(this.pending&&Date.now()-this.pendingTime>=500){this.run()}},run:function(){this.pending=false;var k=this.readQueue,e=this.writeQueue,c=null,g;if(this.mode){g=k;if(e.length>0){c=false}}else{g=e;if(k.length>0){c=true}}var b=g.slice(),d,h,a,j,l;g.length=0;for(d=0,h=b.length;d<h;d++){a=b[d];j=a[0];l=a[1];if(typeof j==="string"){j=l[j]}if(a.length>2){j.apply(l,a[2])}else{j.call(l)}}b.length=0;if(c!==null){this.request(c)}}},1,0,0,0,0,0,[Ext,"TaskQueue"],0));(Ext.cmd.derive("Ext.util.sizemonitor.Abstract",Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:0,height:0,contentWidth:0,contentHeight:0,constructor:function(a){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(a);this.bindListeners(true)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer);a.addCls("x-size-monitored")},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead("refresh",this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var d=this.getElement();if(!d||d.isDestroyed){return false}var b=d.getWidth(),k=d.getHeight(),a=this.getContentWidth(),j=this.getContentHeight(),i=this.contentWidth,g=this.contentHeight,c=this.info,e=false,h;this.width=b;this.height=k;this.contentWidth=a;this.contentHeight=j;h=((i!==a?1:0)+(g!==j?2:0));if(h>0){c.width=b;c.height=k;c.contentWidth=a;c.contentHeight=j;c.flag=h;e=true;this.getCallback().apply(this.getScope(),this.getArgs())}return e},refresh:function(a){if(this.refreshSize()||a){Ext.TaskQueue.requestWrite("refreshMonitors",this)}},destroy:function(){var a=this.getElement();this.bindListeners(false);if(a&&!a.isDestroyed){a.removeCls("x-size-monitored")}delete this._element;this.callParent()}},1,0,0,0,0,[[Ext.mixin.Templatable.prototype.mixinId||Ext.mixin.Templatable.$className,Ext.mixin.Templatable]],[Ext.util.sizemonitor,"Abstract"],0));(Ext.cmd.derive("Ext.util.sizemonitor.Default",Ext.util.sizemonitor.Abstract,{updateElement:function(a){},bindListeners:function(b){var a=this.getElement().dom;if(!a){return}if(b){a.onresize=this.refresh}else{delete a.onresize}},getContentBounds:function(){return this.getElement().dom.getBoundingClientRect()},getContentWidth:function(){return this.getElement().getWidth()},getContentHeight:function(){return this.getElement().getHeight()}},0,0,0,0,0,0,[Ext.util.sizemonitor,"Default"],0));(Ext.cmd.derive("Ext.util.sizemonitor.Scroll",Ext.util.sizemonitor.Abstract,{getElementConfig:function(){return{reference:"detectorsContainer",classList:["x-size-monitors","scroll"],children:[{reference:"expandMonitor",className:"expand"},{reference:"shrinkMonitor",className:"shrink"}]}},constructor:function(a){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?"addEventListener":"removeEventListener";this.expandMonitor[a]("scroll",this.onScroll,true);this.shrinkMonitor[a]("scroll",this.onScroll,true)},forceRefresh:function(){Ext.TaskQueue.requestRead("refresh",this,[true])},onScroll:function(){Ext.TaskQueue.requestRead("refresh",this)},refreshMonitors:function(){var b=this.expandMonitor,c=this.shrinkMonitor,a=1000000;if(b&&!b.isDestroyed){b.scrollLeft=a;b.scrollTop=a}if(c&&!c.isDestroyed){c.scrollLeft=a;c.scrollTop=a}}},1,0,0,0,0,0,[Ext.util.sizemonitor,"Scroll"],0));(Ext.cmd.derive("Ext.util.sizemonitor.OverflowChange",Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=Ext.Function.bind(this.onExpand,this);this.onShrink=Ext.Function.bind(this.onShrink,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},getElementConfig:function(){return{reference:"detectorsContainer",classList:["x-size-monitors","overflowchanged"],children:[{reference:"expandMonitor",className:"expand",children:[{reference:"expandHelper"}]},{reference:"shrinkMonitor",className:"shrink",children:[{reference:"shrinkHelper"}]}]}},bindListeners:function(b){var a=b?"addEventListener":"removeEventListener";this.expandMonitor[a](Ext.browser.is.Firefox?"underflow":"overflowchanged",this.onExpand,true);this.shrinkMonitor[a](Ext.browser.is.Firefox?"overflow":"overflowchanged",this.onShrink,true)},onExpand:function(a){if(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow){return}Ext.TaskQueue.requestRead("refresh",this)},onShrink:function(a){if(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow){return}Ext.TaskQueue.requestRead("refresh",this)},refreshMonitors:function(){if(this.isDestroyed){return}var g=this.expandHelper,e=this.shrinkHelper,b=this.getContentBounds(),d=b.width,a=b.height,c;if(g&&!g.isDestroyed){c=g.style;c.width=(d+1)+"px";c.height=(a+1)+"px"}if(e&&!e.isDestroyed){c=e.style;c.width=d+"px";c.height=a+"px"}Ext.TaskQueue.requestRead("refresh",this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,"OverflowChange"],0));(Ext.cmd.derive("Ext.util.SizeMonitor",Ext.Base,{constructor:function(a){var b=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new b.OverflowChange(a)}else{if(Ext.browser.is.WebKit){if(!Ext.browser.is.Silk&&Ext.browser.engineVersion.gtEq("535")){return new b.OverflowChange(a)}else{return new b.Scroll(a)}}else{if(Ext.browser.is.IE11){return new b.Scroll(a)}else{return new b.Default(a)}}}}},1,0,0,0,0,0,[Ext.util,"SizeMonitor"],0));(Ext.cmd.derive("Ext.event.publisher.ElementSize",Ext.event.publisher.Publisher,{type:"size",handledEvents:["resize"],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(b){var d=b.id,c=this.subscribers,a=this.monitors;if(c[d]){++c[d]}else{c[d]=1;a[d]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on("painted","forceRefresh",a[d]);return true},unsubscribe:function(c){var e=c.id,d=this.subscribers,b=this.monitors,a;if(d[e]&&!--d[e]){delete d[e];a=b[e];c.un("painted","forceRefresh",a);a.destroy();delete b[e]}},onElementResize:function(a,b){Ext.TaskQueue.requestRead("fire",this,[a,"resize",[a,b]])}},1,0,0,0,0,0,[Ext.event.publisher,"ElementSize"],function(a){a.instance=new a()}));(Ext.cmd.derive("Ext.util.paintmonitor.Abstract",Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:"",monitorClass:"",constructor:function(a){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?"addEventListener":"removeEventListener"](this.eventName,this.onElementPainted,true)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:["x-paint-monitor",this.monitorClass]},true);a.appendChild(this.monitorElement);a.addCls("x-paint-monitored");this.bindListeners(true)},onElementPainted:function(){},destroy:function(){var b=this.monitorElement,a=b.parentNode,c=this.getElement();this.bindListeners(false);delete this.monitorElement;if(c&&!c.isDestroyed){c.removeCls("x-paint-monitored");delete this._element}if(a){a.removeChild(b)}this.callParent()}},1,0,0,0,0,0,[Ext.util.paintmonitor,"Abstract"],0));(Ext.cmd.derive("Ext.util.paintmonitor.CssAnimation",Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.WebKit?"webkitAnimationEnd":"animationend",monitorClass:"cssanimation",onElementPainted:function(a){if(a.animationName==="x-paint-monitor-helper"){this.getCallback().apply(this.getScope(),this.getArgs())}}},0,0,0,0,0,0,[Ext.util.paintmonitor,"CssAnimation"],0));(Ext.cmd.derive("Ext.util.paintmonitor.OverflowChange",Ext.util.paintmonitor.Abstract,{eventName:Ext.browser.is.Firefox?"overflow":"overflowchanged",monitorClass:"overflowchange",onElementPainted:function(a){this.getCallback().apply(this.getScope(),this.getArgs())}},0,0,0,0,0,0,[Ext.util.paintmonitor,"OverflowChange"],0));(Ext.cmd.derive("Ext.util.PaintMonitor",Ext.Base,{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}},1,0,0,0,0,0,[Ext.util,"PaintMonitor"],0));(Ext.cmd.derive("Ext.event.publisher.ElementPaint",Ext.event.publisher.Publisher,{type:"paint",handledEvents:["painted"],constructor:function(){this.monitors={};this.subscribers={};Ext.event.publisher.Publisher.prototype.constructor.apply(this,arguments)},subscribe:function(a){var c=a.id,b=this.subscribers;if(b[c]){++b[c]}else{b[c]=1;this.monitors[c]=new Ext.util.PaintMonitor({element:a,callback:this.onElementPainted,scope:this,args:[a]})}},unsubscribe:function(b){var d=b.id,c=this.subscribers,a=this.monitors;if(c[d]&&!--c[d]){delete c[d];a[d].destroy();delete a[d]}},onElementPainted:function(a){Ext.TaskQueue.requestRead("fire",this,[a,"painted",[a]])}},1,0,0,0,0,0,[Ext.event.publisher,"ElementPaint"],function(a){a.instance=new a()}));(Ext.cmd.derive("Ext.dom.Element",Ext.Base,function(p){var u=window,P=document,R=u.top,Q,ac,J,i="width",N="height",Z="min-width",d="min-height",q="max-width",B="max-height",R="top",ad="right",K="bottom",F="left",k="visibility",aa="hidden",c="display",S="none",n="z-index",U="position",s="relative",t="static",y="-",w=/\w/g,I=/\s+/,ab=/[\s]+/,a=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,H=/table-row|table-.*-group/,b=/top/i,v={t:"border-top-width",r:"border-right-width",b:"border-bottom-width",l:"border-left-width"},Y={t:"padding-top",r:"padding-right",b:"padding-bottom",l:"padding-left"},m={t:"margin-top",r:"margin-right",b:"margin-bottom",l:"margin-left"},E=[Y.l,Y.r,Y.t,Y.b],g=[v.l,v.r,v.t,v.b],X=/\d+$/,j=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,O="px",M=/(-[a-z])/gi,af=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,r=/^\d+(?:\.\d*)?px$/i,x={},T=function(e,ag){return ag.charAt(1).toUpperCase()},C="x-hidden-visibility",A="x-hidden-display",l="x-hidden-offsets",z="x-sized",L="x-unsized",G="x-stretched",W="x-no-touch-scroll",o={style:"style",className:"className",cls:"cls",classList:"classList",text:"text",hidden:"hidden",html:"html",children:"children"},V,D,h;try{Q=R.__elementIdCounter__}catch(ae){R=u}R.__elementIdCounter=Q=(R.__elementIdCounter__||0)+1;ac="ext-window-"+Q;J="ext-document-"+Q;return{alternateClassName:["Ext.Element"],observableType:"element",isElement:true,skipGarbageCollection:true,identifiablePrefix:"ext-element-",styleHooks:{},validIdRe:Ext.validIdRe,blockedEvents:Ext.supports.EmulatedMouseOver?{mouseover:1}:{},longpressEvents:{longpress:1,taphold:1},constructor:function(ag){var e=this,ah;if(typeof ag==="string"){ag=P.getElementById(ag)}if(!ag){return null}e.dom=ag;ah=ag.id;if(ah){e.id=ah}else{ah=ag.id=e.getUniqueId()}e.el=e;Ext.cache[ah]=e;e.mixins.observable.constructor.call(e)},inheritableStatics:{cache:Ext.cache={},VISIBILITY:1,DISPLAY:2,OFFSETS:3,unitRe:j,useDelegatedEvents:true,validNodeTypes:{1:1,9:1},addUnits:function(ag,e){if(typeof ag==="number"){return ag+(e||O)}if(ag===""||ag==="auto"||ag==null){return ag||""}if(X.test(ag)){return ag+(e||O)}if(!j.test(ag)){return ag||""}return ag},create:function(ah,ag){var an=this,ak=o.hidden,aj,ao,aq,ap,e,ai,am,al;if(!ah){ah={}}if(ah.isElement){return ag?ah.dom:ah}else{if("nodeType" in ah){return ag?ah:Ext.get(ah)}}if(typeof ah==="string"){return P.createTextNode(ah)}aq=ah.tag;if(!aq){aq="div"}if(ah.namespace){aj=P.createElementNS(ah.namespace,aq)}else{aj=P.createElement(aq)}ao=aj.style;if(ah[ak]){al=ah.className;al=(al==null)?"":al+" ";ah.className=al+A;delete ah[ak]}for(e in ah){if(e!=="tag"){ap=ah[e];switch(e){case o.style:if(typeof ap==="string"){aj.setAttribute(e,ap)}else{for(ai in ap){if(ap.hasOwnProperty(ai)){ao[ai]=ap[ai]}}}break;case o.className:case o.cls:aj.className=ap;break;case o.classList:aj.className=ap.join(" ");break;case o.text:aj.textContent=ap;break;case o.html:aj.innerHTML=ap;break;case o.children:for(ai=0,am=ap.length;ai<am;ai++){aj.appendChild(an.create(ap[ai],true))}break;default:if(ap!=null){aj.setAttribute(e,ap)}}}}if(ag){return aj}else{return an.get(aj)}},detach:function(){var e=this.dom;if(e&&e.parentNode&&e.tagName!=="BODY"){e.parentNode.removeChild(e)}return this},fly:function(ag,e){return Ext.fly(ag,e)},fromPoint:(function(){var ah;if(Ext.isIE){try{ah=window.self!==window.top}catch(ag){ah=true}}return function(ai,ak,e){var aj=null;aj=P.elementFromPoint(ai,ak);if(!aj&&ah){aj=P.elementFromPoint(ai,ak)}return e?aj:Ext.get(aj)}})(),fromPagePoint:function(ah,ai,ag){var e=Ext.getDoc().getScroll();return p.fromPoint(ah-e.left,ai-e.top,ag)},get:function(ah){var al=this,e=Ext.cache,aj,ai,ag,ao,an,ak,am;if(!ah){return null}if(ah.isFly){ah=ah.dom}if(typeof ah==="string"){ag=ah;if(e.hasOwnProperty(ag)){ao=e[ag];if(ao.skipGarbageCollection||!Ext.isGarbage(ao.dom)){return ao}else{ao.destroy()}}if(ag===ac){return p.get(u)}else{if(ag===J){return p.get(P)}}ai=Ext.getElementById?Ext.getElementById(ag):P.getElementById(ag);if(ai){return new p(ai)}}aj=ah.nodeType;if(aj){an=(aj===9);am=al.validNodeTypes[aj]}else{ak=(ah.window==ah)}if(am||ak){ag=ah.id;if(e.hasOwnProperty(ag)){ao=e[ag];if(ao.skipGarbageCollection||ah===ao.dom||!Ext.isGarbage(ao.dom)){return ao}else{ao.destroy()}}if(ah===P){ah.id=J}if(ah==u){ah.id=ac}ah=new p(ah);if(ak||an){ah.skipGarbageCollection=true}return ah}if(ah.isElement){return ah}if(ah.isComposite){return ah}if(Ext.isIterable(ah)){return al.select(ah)}return null},getActiveElement:function(){var e=P.activeElement;if(!e||!e.focus){e=P.body}return e},getDocumentHeight:function(){return Math.max(!Ext.isStrict?P.body.scrollHeight:P.documentElement.scrollHeight,this.getViewportHeight())},getDocumentWidth:function(){return Math.max(!Ext.isStrict?P.body.scrollWidth:P.documentElement.scrollWidth,this.getViewportWidth())},getOrientation:function(){if(Ext.supports.OrientationChange){return(u.orientation==0)?"portrait":"landscape"}return(u.innerHeight>u.innerWidth)?"portrait":"landscape"},getViewportHeight:function(){return u.innerHeight},getViewportWidth:function(){return u.innerWidth},getViewSize:function(){return{width:p.getViewportWidth(),height:p.getViewportHeight()}},maskIframes:function(){var e=document.getElementsByTagName("iframe");Ext.each(e,function(ah){var ag;ag=Ext.fly(ah.parentNode).mask();ag.setStyle("background-color","transparent")})},normalize:function(e){return x[e]||(x[e]=e.replace(M,T))},parseBox:function(ah){ah=ah||0;var e=typeof ah,ai,ag;if(e==="number"){return{top:ah,right:ah,bottom:ah,left:ah}}else{if(e!=="string"){return ah}}ai=ah.split(" ");ag=ai.length;if(ag===1){ai[1]=ai[2]=ai[3]=ai[0]}else{if(ag===2){ai[2]=ai[0];ai[3]=ai[1]}else{if(ag===3){ai[3]=ai[1]}}}return{top:parseFloat(ai[0])||0,right:parseFloat(ai[1])||0,bottom:parseFloat(ai[2])||0,left:parseFloat(ai[3])||0}},parseStyles:function(ag){var e={},ah;if(ag){af.lastIndex=0;while((ah=af.exec(ag))){e[ah[1]]=ah[2]||""}}return e},select:function(e,ah,ag){return Ext.fly(ag||P).select(e,ah)},query:function(ag,e,ah){return Ext.fly(ah||P).query(ag,e)},unitizeBox:function(ah,e){var ag=this;ah=ag.parseBox(ah);return ag.addUnits(ah.top,e)+" "+ag.addUnits(ah.right,e)+" "+ag.addUnits(ah.bottom,e)+" "+ag.addUnits(ah.left,e)},unmaskIframes:function(){var e=document.getElementsByTagName("iframe");Ext.each(e,function(ag){Ext.fly(ag.parentNode).unmask()})},serializeForm:function(ai){var aj=ai.elements||(P.forms[ai]||Ext.getDom(ai)).elements,at=false,ar=encodeURIComponent,am="",al=aj.length,an,ag,aq,av,au,ao,ak,ap,ah;for(ao=0;ao<al;ao++){an=aj[ao];ag=an.name;aq=an.type;av=an.options;if(!an.disabled&&ag){if(/select-(one|multiple)/i.test(aq)){ap=av.length;for(ak=0;ak<ap;ak++){ah=av[ak];if(ah.selected){au=ah.hasAttribute("value");am+=Ext.String.format("{0}={1}&",ar(ag),ar(au?ah.value:ah.text))}}}else{if(!(/file|undefined|reset|button/i.test(aq))){if(!(/radio|checkbox/i.test(aq)&&!an.checked)&&!(aq=="submit"&&at)){am+=ar(ag)+"="+ar(an.value)+"&";at=/submit/i.test(aq)}}}}}return am.substr(0,am.length-1)},getCommonAncestor:function(ah,ag,e){h=h||new Ext.dom.Fly();h.attach(Ext.getDom(ah));while(!h.isAncestor(ag)){if(h.dom.parentNode){h.attach(h.dom.parentNode)}else{h.attach(document.body);break}}return e?h.dom:Ext.get(h)}},addCls:function(an,al,ap){var ao=this,ai=ao.getData(),aq,aj,ag,ah,ak,am,e;if(!an){return ao}if(!ai.isSynchronized){ao.synchronize()}aj=ao.dom;ag=ai.classMap;ah=ai.classList;al=al?al+y:"";ap=ap?y+ap:"";if(typeof an==="string"){an=an.split(I)}for(ak=0,am=an.length;ak<am;ak++){e=an[ak];if(e){e=al+e+ap;if(!ag[e]){ag[e]=true;ah.push(e);aq=true}}}if(aq){aj.className=ah.join(" ")}return ao},addStyles:function(am,al){var ah=0,ak=(am||"").match(w),aj,e=ak.length,ai,ag=[];if(e===1){ah=Math.abs(parseFloat(this.getStyle(al[ak[0]]))||0)}else{if(e){for(aj=0;aj<e;aj++){ai=ak[aj];ag.push(al[ai])}ag=this.getStyle(ag);for(aj=0;aj<e;aj++){ai=ak[aj];ah+=parseFloat(ag[al[ai]])||0}}}return ah},addUnits:function(ag,e){return p.addUnits(ag,e)},adjustDirect2DDimension:function(ah){var am=this,ag=am.dom,ak=am.getStyle("display"),aj=ag.style.display,an=ag.style.position,al=ah===i?0:1,e=ag.currentStyle,ai;if(ak==="inline"){ag.style.display="inline-block"}ag.style.position=ak.match(H)?"absolute":"static";ai=(parseFloat(e[ah])||parseFloat(e.msTransformOrigin.split(" ")[al])*2)%1;ag.style.position=an;if(ak==="inline"){ag.style.display=aj}return ai},animate:function(e){e=new Ext.fx.Animation(e);e.setElement(this);this._activeAnimation=e;e.on({animationend:this._onAnimationEnd});Ext.Animator.run(e)},_onAnimationEnd:function(){this._activeAnimation=null},getActiveAnimation:function(){return this._activeAnimation},append:function(){this.appendChild.apply(this,arguments)},appendChild:function(ai,ah){var aj=this,al,ag,ak;if(ai.nodeType||ai.dom||typeof ai==="string"){ai=Ext.getDom(ai);aj.dom.appendChild(ai);return !ah?Ext.get(ai):ai}else{if(ai.length){al=Ext.fly(document.createDocumentFragment());ag=ai.length;for(ak=0;ak<ag;ak++){al.appendChild(ai[ak],ah)}aj.dom.appendChild(al.dom);return ah?al.dom:al}else{return aj.createChild(ai,null,ah)}}},appendTo:function(e){Ext.getDom(e).appendChild(this.dom);return this},applyStyles:function(e){if(e){if(typeof e==="function"){e=e.call()}if(typeof e==="string"){e=p.parseStyles(e)}if(typeof e==="object"){this.setStyle(e)}}return this},blur:function(){var ag=this,ai=ag.dom;if(ai!==P.body){try{ai.blur()}catch(ah){}return ag}else{return ag.focus(undefined,ai)}},cacheScrollValues:function(){var aj=this,ak=[],ai=[],al,ah,ag,e;D=D||new Ext.dom.Fly();al=aj.query("*");for(ag=0,e=al.length;ag<e;ag++){ah=al[ag];if(ah.scrollTop>0||ah.scrollLeft!==0){ai.push(ah);ak.push(D.attach(ah).getScroll())}}return function(){var an,ao,am;for(ao=0,am=ai.length;ao<am;ao++){an=ak[ao];D.attach(ai[ao]);D.setScrollLeft(an.left);D.setScrollTop(an.top)}}},center:function(e){return this.alignTo(e||P,"c-c")},child:function(e,ag){var ah=this,ai=Ext.get(ah).id;return ah.selectNode(Ext.makeIdSelector(ai)+" > "+e,!!ag)},constrainScrollLeft:function(e){var ag=this.dom;return Math.max(Math.min(e,ag.scrollWidth-ag.clientWidth),0)},constrainScrollTop:function(e){var ag=this.dom;return Math.max(Math.min(e,ag.scrollHeight-ag.clientHeight),0)},createChild:function(ag,e,ah){ag=ag||{tag:"div"};if(e){return Ext.DomHelper.insertBefore(e,ag,ah!==true)}else{return Ext.DomHelper.append(this.dom,ag,ah!==true)}},contains:function(e){if(!e){return false}var ag=this,ah=Ext.getDom(e);return(ah===ag.dom)||ag.isAncestor(ah)},destroy:function(){var e=this,ag=e.dom;if(ag&&ag.parentNode){ag.parentNode.removeChild(ag)}e.collect()},detach:function(){var e=this.dom;if(e&&e.parentNode&&e.tagName!=="BODY"){e.parentNode.removeChild(e)}return this},disableShadow:function(){var e=this.shadow;if(e){e.hide();e.disabled=true}},disableShim:function(){var e=this.shim;if(e){e.hide();e.disabled=true}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(ag){ag.preventDefault()},destroyable:true,delegated:false})},disableTouchScroll:function(){this.addCls(W);this.on({touchmove:function(ag){ag.preventDefault()},translate:false})},doReplaceWith:function(e){var ag=this.dom;ag.parentNode.replaceChild(Ext.getDom(e),ag)},doScrollIntoView:function(e,aj,ag,ak,aq,an){D=D||new Ext.dom.Fly();var ao=this,al=ao.dom,ar=D.attach(e)[aq](),ap=e.scrollTop,am=ao.getScrollIntoViewXY(e,ar,ap),ai=am.x,ah=am.y;if(ak){if(ag){ag=Ext.apply({listeners:{afteranimate:function(){D.attach(al).highlight()}}},ag)}else{D.attach(al).highlight()}}if(ah!==ap){D.attach(e).scrollTo("top",ah,ag)}if(aj!==false&&(ai!==ar)){D.attach(e)[an]("left",ai,ag)}return ao},down:function(e,ag){return this.selectNode(e,!!ag)},enableShadow:function(ag,e){var ah=this,aj=ah.shadow||(ah.shadow=new Ext.dom.Shadow(Ext.apply({target:ah},ag))),ai=ah.shim;if(ai){ai.offsets=aj.outerOffsets;ai.shadow=aj;aj.shim=ai}if(e===true||(e!==false&&ah.isVisible())){aj.show()}else{aj.hide()}aj.disabled=false},enableShim:function(ag,e){var ah=this,aj=ah.shim||(ah.shim=new Ext.dom.Shim(Ext.apply({target:ah},ag))),ai=ah.shadow;if(ai){aj.offsets=ai.outerOffsets;aj.shadow=ai;ai.shim=aj}if(e===true||(e!==false&&ah.isVisible())){aj.show()}else{aj.hide()}aj.disabled=false},findParent:function(al,ag,e){var ai=this,aj=ai.dom,ah=P.documentElement,ak=0;if(ag||ag===0){if(typeof ag!=="number"){ah=Ext.getDom(ag);ag=Number.MAX_VALUE}}else{ag=50}while(aj&&aj.nodeType===1&&ak<ag&&aj!==ah){if(Ext.fly(aj).is(al)){return e?Ext.get(aj):aj}ak++;aj=aj.parentNode}return null},findParentNode:function(ai,ag,e){var ah=Ext.fly(this.dom.parentNode);return ah?ah.findParent(ai,ag,e):null},first:function(e,ag){return this.matchNode("nextSibling","firstChild",e,ag)},focus:function(aj,ai){var ag=this;ai=ai||ag.dom;try{if(Number(aj)){Ext.defer(ag.focus,aj,ag,[null,ai])}else{Ext.GlobalEvents.fireEvent("beforefocus",ai);ai.focus()}}catch(ah){}return ag},collect:function(){var e=this,ag=e.dom,ai=e.shadow,ah=e.shim;if(!e.isFly){e.mixins.observable.destroy.call(e);delete Ext.cache[e.id];e.isDestroyed=true;e.el=null}if(ag){ag._extData=e.dom=null}if(ai){ai.hide();e.shadow=null}if(ah){ah.hide();e.shim=null}},getAnchorToXY:function(ai,e,ah,ag){return ai.getAnchorXY(e,ah,ag)},getAttribute:function(e,ag){var ah=this.dom;return ag?(ah.getAttributeNS(ag,e)||ah.getAttribute(ag+":"+e)):(ah.getAttribute(e)||ah[e]||null)},getAttributes:function(){var ai=this.dom.attributes,ah={},ag,aj,e;for(aj=0,e=ai.length;aj<e;aj++){ag=ai[aj];ah[ag.name]=ag.value}return ah},getBottom:function(e){return(e?this.getLocalY():this.getY())+this.getHeight()},getById:function(ah,e){var ag=P.getElementById(ah)||this.dom.querySelector(Ext.makeIdSelector(ah));return e?ag:(ag?Ext.get(ag):null)},getBorderPadding:function(){var e=this.getStyle(E),ag=this.getStyle(g);return{beforeX:(parseFloat(ag[v.l])||0)+(parseFloat(e[Y.l])||0),afterX:(parseFloat(ag[v.r])||0)+(parseFloat(e[Y.r])||0),beforeY:(parseFloat(ag[v.t])||0)+(parseFloat(e[Y.t])||0),afterY:(parseFloat(ag[v.b])||0)+(parseFloat(e[Y.b])||0)}},getBorders:function(){var e=this.getStyle(g);return{beforeX:(parseFloat(e[v.l])||0),afterX:(parseFloat(e[v.r])||0),beforeY:(parseFloat(e[v.t])||0),afterY:(parseFloat(e[v.b])||0)}},getBorderWidth:function(e){return this.addStyles(e,v)},getData:function(e){var ah=this.dom,ag;if(ah){ag=ah._extData;if(!ag&&!e){ah._extData=ag={}}}return ag},getFirstChild:function(){return Ext.get(this.dom.firstElementChild)},getHeight:function(ai,ag){var ah=this,aj=ah.isStyle("display","none"),e,ak;if(aj){return 0}e=ah.dom.offsetHeight;if(Ext.supports.Direct2DBug){ak=ah.adjustDirect2DDimension(N);if(ag){e+=ak}else{if(ak>0&&ak<0.5){e++}}}if(ai){e-=ah.getBorderWidth("tb")+ah.getPadding("tb")}return(e<0)?0:e},getHtml:function(){return this.dom?this.dom.innerHTML:""},getLeft:function(e){return e?this.getLocalX():this.getX()},getLocalX:function(){var ah=this,ag,e=ah.getStyle("left");if(!e||e==="auto"){e=0}else{if(r.test(e)){e=parseFloat(e)}else{e=ah.getX();ag=ah.dom.offsetParent;if(ag){e-=Ext.fly(ag).getX()}}}return e},getLocalXY:function(){var ai=this,ah,ag=ai.getStyle(["left","top"]),e=ag.left,aj=ag.top;if(!e||e==="auto"){e=0}else{if(r.test(e)){e=parseFloat(e)}else{e=ai.getX();ah=ai.dom.offsetParent;if(ah){e-=Ext.fly(ah).getX()}}}if(!aj||aj==="auto"){aj=0}else{if(r.test(aj)){aj=parseFloat(aj)}else{aj=ai.getY();ah=ai.dom.offsetParent;if(ah){aj-=Ext.fly(ah).getY()}}}return[e,aj]},getLocalY:function(){var ag=this,e,ah=ag.getStyle("top");if(!ah||ah==="auto"){ah=0}else{if(r.test(ah)){ah=parseFloat(ah)}else{ah=ag.getY();e=ag.dom.offsetParent;if(e){ah-=Ext.fly(e).getY()}}}return ah},getMargin:(function(){var ag={t:"top",l:"left",r:"right",b:"bottom"},e=["margin-top","margin-left","margin-right","margin-bottom"];return function(ai){var ak=this,aj,ah,al;if(!ai){aj=ak.getStyle(e);al={};if(aj&&typeof aj==="object"){al={};for(ah in m){al[ah]=al[ag[ah]]=parseFloat(aj[m[ah]])||0}}}else{al=ak.addStyles(ai,m)}return al}})(),getPadding:function(e){return this.addStyles(e,Y)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(e){return(e?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var ah=this,ak=ah.dom,ag=P.documentElement,aj,ai,e=document.body;if(ak===P||ak===e){aj=ag.scrollLeft||(e?e.scrollLeft:0);ai=ag.scrollTop||(e?e.scrollTop:0)}else{aj=ak.scrollLeft;ai=ak.scrollTop}return{left:aj,top:ai}},getScrollIntoViewXY:function(ak,ar,aq){var au=this.dom,ag=Ext.getDom(ak),ah=this.getOffsetsTo(ag),ap=au.offsetWidth,am=au.offsetHeight,e=ah[0]+ar,al=ah[1]+aq,aj=al+am,aw=e+ap,an=ag.clientHeight,at=ag.clientWidth,av=ar,ao=aq,ai=ao+an,ax=av+at;if(am>an||al<ao){aq=al}else{if(aj>ai){aq=aj-an}}if(ap>at||e<av){ar=e}else{if(aw>ax){ar=aw-at}}return{x:ar,y:aq}},getScrollLeft:function(){var e=this.dom;if(e===P||e===document.body){return this.getScroll().left}else{return e.scrollLeft}},getScrollTop:function(){var e=this.dom;if(e===P||e===document.body){return this.getScroll().top}else{return e.scrollTop}},getSize:function(e){return{width:this.getWidth(e),height:this.getHeight(e)}},getStyle:function(ar,am){var an=this,ai=an.dom,av=typeof ar!=="string",at=an.styleHooks,ag=ar,ao=ag,al=1,ak,au,aq,ap,ah,e,aj;if(av){aq={};ag=ao[0];aj=0;if(!(al=ao.length)){return aq}}if(!ai||ai.documentElement){return aq||""}ak=ai.style;if(am){e=ak}else{e=ai.ownerDocument.defaultView.getComputedStyle(ai,null);if(!e){am=true;e=ak}}do{ap=at[ag];if(!ap){at[ag]=ap={name:p.normalize(ag)}}if(ap.get){ah=ap.get(ai,an,am,e)}else{au=ap.name;ah=e[au]}if(!av){return ah}aq[ag]=ah;ag=ao[++aj]}while(aj<al);return aq},getStyleValue:function(e){return this.dom.style.getPropertyValue(e)},getTop:function(e){return e?this.getLocalY():this.getY()},getValue:function(ag){var e=this.dom.value;return ag?parseInt(e,10):e},getViewSize:function(){var e=this.dom;if(e===P||e===P.body){return{width:p.getViewportWidth(),height:p.getViewportHeight()}}else{return{width:e.clientWidth,height:e.clientHeight}}},getVisibilityMode:function(){var e=this,ag=e.getData(),ah=ag.visibilityMode;if(ah===undefined){ag.visibilityMode=ah=p.DISPLAY}return ah},getWidth:function(e,ak){var ai=this,al=ai.dom,aj=ai.isStyle("display","none"),ah,ag,am;if(aj){return 0}if(Ext.supports.BoundingClientRect){ah=al.getBoundingClientRect();ag=(ai.vertical&&!Ext.supports.RotatedBoundingClientRect)?(ah.bottom-ah.top):(ah.right-ah.left);ag=ak?ag:Math.ceil(ag)}else{ag=al.offsetWidth}if(Ext.supports.Direct2DBug&&!ai.vertical){am=ai.adjustDirect2DDimension(i);if(ak){ag+=am}else{if(am>0&&am<0.5){ag++}}}if(e){ag-=ai.getBorderWidth("lr")+ai.getPadding("lr")}return(ag<0)?0:ag},getX:function(){return this.getXY()[0]},getXY:function(){var ah=Math.round,ak=this.dom,ag=0,al=0,aj,e;if(ak!==P&&ak!==P.body){try{aj=ak.getBoundingClientRect()}catch(ai){aj={left:0,top:0}}ag=ah(aj.left);al=ah(aj.top);e=Ext.getDoc().getScroll();ag+=e.left;al+=e.top}return[ag,al]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle("z-index"),10)},hasCls:function(e){var ag=this.getData();if(!ag.isSynchronized){this.synchronize()}return ag.classMap.hasOwnProperty(e)},hide:function(){this.setVisible(false);return this},insertAfter:function(e){e=Ext.getDom(e);e.parentNode.insertBefore(this.dom,e.nextSibling);return this},insertBefore:function(e){e=Ext.getDom(e);e.parentNode.insertBefore(this.dom,e);return this},insertFirst:function(ag,e){ag=ag||{};if(ag.nodeType||ag.dom||typeof ag==="string"){ag=Ext.getDom(ag);this.dom.insertBefore(ag,this.dom.firstChild);return !e?Ext.get(ag):ag}else{return this.createChild(ag,this.dom.firstChild,e)}},insertHtml:function(ag,ah,e){var ai=Ext.DomHelper.insertHtml(ag,this.dom,ah);return e?Ext.get(ai):ai},insertSibling:function(ah,ak,an){var am=this,ao=Ext.DomHelper,ap=(ak||"before").toLowerCase()==="after",aj,ag,ai,al;if(Ext.isIterable(ah)){ai=ah.length;ag=Ext.fly(document.createDocumentFragment());if(Ext.isArray(ah)){for(al=0;al<ai;al++){aj=ag.appendChild(ah[al],an)}}else{for(al=0;al<ai;al++){ag.dom.appendChild(aj=ah[0])}if(an===false){aj=Ext.get(aj)}}am.dom.parentNode.insertBefore(ag.dom,ap?am.dom.nextSibling:am.dom);return aj}ah=ah||{};if(ah.nodeType||ah.dom){aj=am.dom.parentNode.insertBefore(Ext.getDom(ah),ap?am.dom.nextSibling:am.dom);if(!an){aj=Ext.get(aj)}}else{if(ap&&!am.dom.nextSibling){aj=ao.append(am.dom.parentNode,ah,!an)}else{aj=ao[ap?"insertAfter":"insertBefore"](am.dom,ah,!an)}}return aj},is:function(e){var ah=this.dom,ag;if(!e){ag=true}else{if(!ah.tagName){ag=false}else{if(Ext.isFunction(e)){ag=e(ah)}else{ag=ah[Ext.supports.matchesSelector](e)}}}return ag},isAncestor:function(ag){var e=false,ah=this.dom,ai=Ext.getDom(ag);if(ah&&ai){if(ah.contains){return ah.contains(ai)}else{if(ah.compareDocumentPosition){return !!(ah.compareDocumentPosition(ai)&16)}else{while((ai=ai.parentNode)){e=ai===ah||e}}}}return e},isPainted:(function(){return !Ext.browser.is.IE?function(){var e=this.dom;return Boolean(e&&e.offsetParent)}:function(){var e=this.dom;return Boolean(e&&(e.offsetHeight!==0&&e.offsetWidth!==0))}})(),isStyle:function(e,ag){return this.getStyle(e)===ag},isVisible:function(ag){var ah=this.dom,e;if(!ah){return false}if(!V){V=new Ext.dom.Fly()}for(e=ah.ownerDocument.documentElement;ah!==e;ah=ah.parentNode){if(!ah||ah.nodeType===11||(V.attach(ah)).isStyle(k,aa)||V.isStyle(c,S)){return false}if(!ag){break}}return true},last:function(e,ag){return this.matchNode("previousSibling","lastChild",e,ag)},matchNode:function(ag,ak,e,ah){var ai=this.dom,aj;if(!ai){return null}aj=ai[ak];while(aj){if(aj.nodeType===1&&(!e||Ext.fly(aj,"_matchNode").is(e))){return !ah?Ext.get(aj):aj}aj=aj[ag]}return null},next:function(e,ag){return this.matchNode("nextSibling","nextSibling",e,ag)},parent:function(e,ag){return this.matchNode("parentNode","parentNode",e,ag)},position:function(aj,ai,e,ah){var ag=this;if(ag.dom.tagName!=="BODY"){if(!aj&&ag.isStyle(U,t)){ag.setStyle(U,s)}else{if(aj){ag.setStyle(U,aj)}}if(ai){ag.setStyle(n,ai)}if(e||ah){ag.setXY([e||false,ah||false])}}},prev:function(e,ag){return this.matchNode("previousSibling","previousSibling",e,ag)},query:function(ah,ap,an){var aj=this.dom,al,am,ao,ag,e,ak,ai;if(!aj){return null}ap=(ap!==false);ah=ah.split(",");if(!an){al=[]}for(ak=0,am=ah.length;ak<am;ak++){if(typeof ah[ak]==="string"){if(an){ag=aj.querySelector(ah[ak]);return ap?ag:Ext.get(ag)}e=aj.querySelectorAll(ah[ak]);for(ai=0,ao=e.length;ai<ao;ai++){al.push(ap?e[ai]:Ext.get(e[ai]))}}}return al},radioCls:function(ai){var aj=this.dom.parentNode.childNodes,ag;ai=Ext.isArray(ai)?ai:[ai];for(var ah=0,e=aj.length;ah<e;ah++){ag=aj[ah];if(ag&&ag.nodeType===1){Ext.fly(ag).removeCls(ai)}}return this.addCls(ai)},redraw:function(){var ag=this.dom,e=ag.style;e.display="none";ag.offsetHeight;e.display=""},remove:function(){this.destroy()},removeChild:function(e){this.dom.removeChild(Ext.getDom(e));return this},removeCls:function(an,al,ap){var ao=this,ai=ao.getData(),aq,aj,ag,ah,ak,am,e;if(!an){return ao}if(!ai.isSynchronized){ao.synchronize()}aj=ao.dom;ag=ai.classMap;ah=ai.classList;al=al?al+y:"";ap=ap?y+ap:"";if(typeof an==="string"){an=an.split(I)}for(ak=0,am=an.length;ak<am;ak++){e=an[ak];if(e){e=al+e+ap;if(ag[e]){delete ag[e];Ext.Array.remove(ah,e);aq=true}}}if(aq){aj.className=ah.join(" ")}return ao},repaint:function(){var e=this;e.addCls("x-repaint");Ext.defer(function(){if(e.dom){Ext.fly(e.dom).removeCls("x-repaint")}},1);return e},replace:function(ah,ag){ah=Ext.getDom(ah);var e=ah.parentNode,aj=ah.id,ai=this.dom;if(ag!==false&&aj&&Ext.cache[aj]){e.insertBefore(ai,ah);Ext.get(ah).destroy()}else{e.replaceChild(ai,ah)}return this},replaceCls:function(ah,ao,am,aq){var ap=this,ak,ag,ai,al,an,e,aj=ap.getData();if(!ah&&!ao){return ap}ah=ah||[];ao=ao||[];if(!aj.isSynchronized){ap.synchronize()}if(!aq){aq=""}ak=ap.dom;ag=aj.classMap;ai=aj.classList;am=am?am+y:"";aq=aq?y+aq:"";if(typeof ah==="string"){ah=ah.split(I)}if(typeof ao==="string"){ao=ao.split(I)}for(al=0,an=ah.length;al<an;al++){e=am+ah[al]+aq;if(ag[e]){delete ag[e];Ext.Array.remove(ai,e)}}for(al=0,an=ao.length;al<an;al++){e=am+ao[al]+aq;if(!ag[e]){ag[e]=true;ai.push(e)}}ak.className=ai.join(" ");return ap},replaceWith:function(ai){var aj=this,ak=aj.dom,ah=ak.parentNode,e=Ext.cache,ag;aj.clearListeners();if(ai.nodeType||ai.dom||typeof ai==="string"){ai=Ext.get(ai);ag=ah.insertBefore(ai.dom,ak)}else{ag=Ext.DomHelper.insertBefore(ak,ai)}ah.removeChild(ak);aj.dom=ag;if(!aj.isFly){delete e[aj.id];e[aj.id=Ext.id(ag)]=aj}return aj},resolveListenerScope:function(ag){var e=this.component;return e?e.resolveListenerScope(ag):this},scroll:function(an,e,ah){if(!this.isScrollable()){return false}an=an.charAt(0);var am=this,aj=am.dom,al=an==="r"||an==="l"?"left":"top",ag=false,ai,ak;if(an==="l"||an==="t"||an==="u"){e=-e}if(al==="left"){ai=aj.scrollLeft;ak=am.constrainScrollLeft(ai+e)}else{ai=aj.scrollTop;ak=am.constrainScrollTop(ai+e)}if(ak!==ai){this.scrollTo(al,ak,ah);ag=true}return ag},scrollBy:function(ag,e,ah){var ai=this,aj=ai.dom;if(ag.length){ah=e;e=ag[1];ag=ag[0]}else{if(typeof ag!="number"){ah=e;e=ag.y;ag=ag.x}}if(ag){ai.scrollTo("left",ai.constrainScrollLeft(aj.scrollLeft+ag),ah)}if(e){ai.scrollTo("top",ai.constrainScrollTop(aj.scrollTop+e),ah)}return ai},scrollChildIntoView:function(ag,e){Ext.fly(ag).scrollIntoView(this,e)},scrollIntoView:function(e,ai,ah,ag){e=Ext.getDom(e)||Ext.getBody().dom;return this.doScrollIntoView(e,ai,ah,ag,"getScrollLeft","scrollTo")},scrollTo:function(ah,aj,e){var ak=b.test(ah),ai=this,am=ak?"scrollTop":"scrollLeft",al=ai.dom,ag;if(!e||!ai.anim){al[am]=aj}else{ag={to:{}};ag.to[am]=aj;if(Ext.isObject(e)){Ext.applyIf(ag,e)}ai.animate(ag)}return ai},select:function(ag,ai){var e,ah;if(typeof ag==="string"){ah=this.query(ag,!ai)}else{ah=ag;e=true}return ai?new Ext.CompositeElement(ah,!e):new Ext.CompositeElementLite(ah,true)},selectNode:function(ag,e){return this.query(ag,e,true)},set:function(e,ag){var ai=this,ak=ai.dom,ah,aj;for(ah in e){if(e.hasOwnProperty(ah)){aj=e[ah];if(ah==="style"){ai.applyStyles(aj)}else{if(ah==="cls"){ak.className=aj}else{if(ag!==false){if(aj===undefined){ak.removeAttribute(ah)}else{ak.setAttribute(ah,aj)}}else{ak[ah]=aj}}}}}return ai},setBottom:function(e){this.dom.style[K]=p.addUnits(e);return this},setBorder:function(e){var ah=this,ag=ah.dom.style;if(e||e===0){e=ah.self.unitizeBox((e===true)?1:e);ag.setProperty("border-width",e,"important")}else{ag.removeProperty("border-top-width");ag.removeProperty("border-right-width");ag.removeProperty("border-bottom-width");ag.removeProperty("border-left-width")}},setCls:function(ai){var ak=this,ah=ak.getData(),ag,aj,e,al;if(!ah.isSynchronized){ak.synchronize()}al=ah.classMap;if(typeof ai==="string"){ai=ai.split(I)}for(ag=0,aj=ai.length;ag<aj;ag++){e=ai[ag];if(!al[e]){al[e]=true}}ah.classList=ai.slice();ak.dom.className=ai.join(" ")},setHeight:function(e){var ag=this;ag.dom.style[N]=p.addUnits(e);if(ag.shadow||ag.shim){ag.syncUnderlays()}return ag},setHtml:function(e){if(this.dom){this.dom.innerHTML=e}},setId:function(ai){var ah=this,e=ah.id,ag=Ext.cache;if(e){delete ag[e]}ah.dom.id=ai;ah.id=ai;ag[ai]=ah;return ah},setLeft:function(ag){var e=this;e.dom.style[F]=p.addUnits(ag);if(e.shadow||e.shim){e.syncUnderlays()}return e},setLocalX:function(e){var ah=this,ag=ah.dom.style;ag.right="auto";ag.left=(e===null)?"auto":e+"px";if(ah.shadow||ah.shim){ah.syncUnderlays()}return ah},setLocalXY:function(e,ai){var ah=this,ag=ah.dom.style;ag.right="auto";if(e&&e.length){ai=e[1];e=e[0]}if(e===null){ag.left="auto"}else{if(e!==undefined){ag.left=e+"px"}}if(ai===null){ag.top="auto"}else{if(ai!==undefined){ag.top=ai+"px"}}if(ah.shadow||ah.shim){ah.syncUnderlays()}return ah},setLocalY:function(ag){var e=this;e.dom.style.top=(ag===null)?"auto":ag+"px";if(e.shadow||e.shim){e.syncUnderlays()}return e},setMargin:function(ah){var ag=this,e=ag.dom.style;if(ah||ah===0){ah=ag.self.unitizeBox((ah===true)?5:ah);e.setProperty("margin",ah,"important")}else{e.removeProperty("margin-top");e.removeProperty("margin-right");e.removeProperty("margin-bottom");e.removeProperty("margin-left")}},setMaxHeight:function(e){this.dom.style[B]=p.addUnits(e);return this},setMaxWidth:function(e){this.dom.style[q]=p.addUnits(e);return this},setMinHeight:function(e){this.dom.style[d]=p.addUnits(e);return this},setMinWidth:function(e){this.dom.style[Z]=p.addUnits(e);return this},setPadding:function(ah){var ag=this,e=ag.dom.style;if(ah||ah===0){ah=ag.self.unitizeBox((ah===true)?5:ah);e.setProperty("padding",ah,"important")}else{e.removeProperty("padding-top");e.removeProperty("padding-right");e.removeProperty("padding-bottom");e.removeProperty("padding-left")}},setRight:function(e){this.dom.style[ad]=p.addUnits(e);return this},setScrollLeft:function(e){this.dom.scrollLeft=e;return this},setScrollTop:function(e){this.dom.scrollTop=e;return this},setSize:function(ah,e){var ai=this,ag=ai.dom.style;if(Ext.isObject(ah)){e=ah.height;ah=ah.width}ag.width=p.addUnits(ah);ag.height=p.addUnits(e);if(ai.shadow||ai.shim){ai.syncUnderlays()}return ai},setSizeState:function(ah){var ag=this,ai,e;if(ah===true){ai=z;e=[L,G]}else{if(ah===false){ai=L;e=[z,G]}else{if(ah===null){ai=G;e=[z,L]}else{e=[z,L,G]}}}if(ai){ag.addCls(ai)}ag.removeCls(e);return ag},setStyle:function(am,ak){var ai=this,al=ai.dom,e=ai.styleHooks,ah=al.style,ag=am,aj;if(typeof ag==="string"){aj=e[ag];if(!aj){e[ag]=aj={name:p.normalize(ag)}}ak=(ak==null)?"":ak;if(aj.set){aj.set(al,ak,ai)}else{ah[aj.name]=ak}if(aj.afterSet){aj.afterSet(al,ak,ai)}}else{for(ag in am){if(am.hasOwnProperty(ag)){aj=e[ag];if(!aj){e[ag]=aj={name:p.normalize(ag)}}ak=am[ag];ak=(ak==null)?"":ak;if(aj.set){aj.set(al,ak,ai)}else{ah[aj.name]=ak}if(aj.afterSet){aj.afterSet(al,ak,ai)}}}}return ai},setText:function(e){this.dom.textContent=e},setTop:function(ag){var e=this;e.dom.style[R]=p.addUnits(ag);if(e.shadow||e.shim){e.syncUnderlays()}return e},setUnderlaysVisible:function(e){var ah=this.shadow,ag=this.shim;if(ah&&!ah.disabled){if(e){ah.show()}else{ah.hide()}}if(ag&&!ag.disabled){if(e){ag.show()}else{ag.hide()}}},setVisibility:function(e){var ag=this.dom.style;if(e){ag.removeProperty("visibility")}else{ag.setProperty("visibility","hidden","important")}},setVisibilityMode:function(e){this.getData().visibilityMode=e;return this},setVisible:function(ah){var e=this,ag=e.getVisibilityMode(),ai=ah?"removeCls":"addCls";switch(ag){case p.DISPLAY:e.removeCls([C,l]);e[ai](A);break;case p.VISIBILITY:e.removeCls([A,l]);e[ai](C);break;case p.OFFSETS:e.removeCls([C,A]);e[ai](l);break}if(e.shadow||e.shim){e.setUnderlaysVisible(ah)}return e},setWidth:function(e){var ag=this;ag.dom.style[i]=p.addUnits(e);if(ag.shadow||ag.shim){ag.syncUnderlays()}return ag},setX:function(e){return this.setXY([e,false])},setXY:function(ah){var ag=this,ai=ag.translatePoints(ah),e=ag.dom.style,aj;ag.position();e.right="auto";for(aj in ai){if(!isNaN(ai[aj])){e[aj]=ai[aj]+"px"}}if(ag.shadow||ag.shim){ag.syncUnderlays()}return ag},setY:function(e){return this.setXY([false,e])},setZIndex:function(e){var ag=this;if(ag.shadow){ag.shadow.setZIndex(e)}if(ag.shim){ag.shim.setZIndex(e)}return ag.setStyle("z-index",e)},show:function(){this.setVisible(true);return this},swapCls:function(ag,al,e,aj){if(e===undefined){e=true}var ai=this,ak=e?ag:al,ah=e?al:ag;if(ah){ai.removeCls(aj?aj+"-"+ah:ah)}if(ak){ai.addCls(aj?aj+"-"+ak:ak)}return ai},synchronize:function(){var am=this,ai=am.dom,an={},al=ai.className,ag,aj,ak,e,ah=am.getData();if(al&&al.length>0){ag=ai.className.split(ab);for(aj=0,ak=ag.length;aj<ak;aj++){e=ag[aj];an[e]=true}}else{ag=[]}ah.classList=ag;ah.classMap=an;ah.isSynchronized=true;return am},syncUnderlays:function(){var ai=this,am=ai.shadow,e=ai.shim,ag=ai.dom,an,ak,aj,al,ah;if(ai.isVisible()){an=ai.getXY();ak=an[0];aj=an[1];al=ag.offsetWidth;ah=ag.offsetHeight;if(am&&!am.hidden){am.realign(ak,aj,al,ah)}if(e&&!e.hidden){e.realign(ak,aj,al,ah)}}},toggleCls:function(e,ag){if(typeof ag!=="boolean"){ag=!this.hasCls(e)}return(ag)?this.addCls(e):this.removeCls(e)},toggle:function(){this.setVisible(!this.isVisible());return this},translate:function(){var e="webkitTransform" in P.createElement("div").style?"webkitTransform":"transform";return function(ag,ai,ah){this.dom.style[e]="translate3d("+(ag||0)+"px, "+(ai||0)+"px, "+(ah||0)+"px)"}}(),unwrap:function(){var ak=this.dom,e=ak.parentNode,ah,aj=Ext.Element.getActiveElement(),ai,ag;ai=Ext.cache[aj.id];if(ai){aj=ai}if(this.contains(aj)){Ext.GlobalEvents.suspendEvent("focus");if(ai){aj.suspendEvent("focus","blur")}ag=true}if(e){ah=e.parentNode;ah.insertBefore(ak,e);ah.removeChild(e)}else{ah=document.createDocumentFragment();ah.appendChild(ak)}if(ag){if(ai){aj.focus();aj.resumeEvent("focus","blur")}else{Ext.fly(aj).focus()}Ext.GlobalEvents.resumeEvent("focus")}return this},up:function(ah,e,ag){return this.findParentNode(ah,e,!ag)},update:function(e){return this.setHtml(e)},wrap:function(ah,ao,ak){var an=this,al=an.dom,aj=Ext.DomHelper.insertBefore(al,ah||{tag:"div"},!ao),am=aj,ag=Ext.Element.getActiveElement(),ai,e;if(ak){am=aj.selectNode(ak,ao)}ai=Ext.cache[ag.id];if(ai){ag=ai}if(an.contains(ag)){Ext.GlobalEvents.suspendEvent("focus");if(ai){ag.suspendEvent("focus","blur")}e=true}am.appendChild(al);if(e){if(ai){ag.focus();ag.resumeEvent("focus","blur")}else{Ext.fly(ag).focus()}Ext.GlobalEvents.resumeEvent("focus")}return aj},privates:{doAddListener:function(ak,ao,ap,aq,ag,e,ah){var an=this,al=ak,ai,aj,am;ak=Ext.canonicalEventName(ak);if(!an.blockedEvents[ak]){ai=an.mixins.observable.doAddListener;aq=aq||{};if(an.longpressEvents[ak]){an.disableTouchContextMenu()}if(p.useDelegatedEvents===false){aq.delegated=aq.delegated||false}if(aq.translate!==false){aj=an.additiveEvents[ak];if(aj){aq.type=ak;ak=aj;ai.call(an,ak,ao,ap,aq,ag,e,ah)}am=an.eventMap[ak];if(am){aq.type=aq.type||ak;if(ah){aq.managedName=al}ak=am}}ai.call(an,ak,ao,ap,aq,ag,e,ah);if(ah&&am){delete aq.managedName}delete aq.type}},doRemoveListener:function(e,aj,ai){var ak=this,ah,am,al,ag;if(!ak.blockedEvents[e]){ah=ak.mixins.observable.doRemoveListener;if(ak.longpressEvents[e]){ag=this._contextMenuListenerRemover;if(ag){ag.destroy()}}al=ak.additiveEvents[e];if(al){e=al;ah.call(ak,e,aj,ai)}am=ak.eventMap[e];if(am){ah.call(ak,am,aj,ai)}ah.call(ak,e,aj,ai)}},_initEvent:function(e){return(this.events[e]=new Ext.dom.ElementEvent(this,e))},_getPublisher:function(e){var ah=Ext.event.publisher.Publisher,ag=ah.publishersByEvent[e];if(!ag||(this.dom===window&&e==="resize")){ag=ah.publishers.dom}return ag}},deprecated:{"5.0":{methods:{cssTranslate:null,getHTML:"getHtml",getOuterHeight:null,getOuterWidth:null,getPageBox:function(ah){var ak=this,ai=ak.dom,am=ai.nodeName==="BODY",an=am?p.getViewportWidth():ai.offsetWidth,aj=am?p.getViewportHeight():ai.offsetHeight,ap=ak.getXY(),ao=ap[1],e=ap[0]+an,al=ap[1]+aj,ag=ap[0];if(ah){return new Ext.util.Region(ao,e,al,ag)}else{return{left:ag,top:ao,width:an,height:aj,right:e,bottom:al}}},getScrollParent:null,isDescendent:null,isTransparent:function(ag){var e=this.getStyle(ag);return e?a.test(e):false},purgeAllListeners:"clearListeners",removeAllListeners:"clearListeners",setHTML:"setHtml",setTopLeft:null}}}}},1,0,0,0,0,[[Ext.util.Positionable.prototype.mixinId||Ext.util.Positionable.$className,Ext.util.Positionable],[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.dom,"Element",Ext,"Element"],function(q){var b=document,m=q.prototype,x=Ext.supports,E="pointerdown",e="pointermove",c="pointerup",d="pointercancel",i="MSPointerDown",n="MSPointerMove",A="MSPointerUp",a="MSPointerCancel",t="mousedown",z="mousemove",u="mouseup",F="mouseover",D="mouseout",p="mouseenter",g="mouseleave",w="touchstart",l="touchmove",B="touchend",h="touchcancel",r="click",j="dblclick",v="tap",C="doubletap",k=m.eventMap={},s=m.additiveEvents={},o=Ext.id,y;Ext.id=function(I,H){var G=Ext.getDom(I,true),J,K;if(!G){K=o(I,H)}else{if(!(K=G.id)){K=o(null,H||q.prototype.identifiablePrefix);if(Ext.isSandboxed){J=Ext.sandboxPrefix||(Ext.sandboxPrefix=Ext.sandboxName.toLowerCase()+"-");K=J+K}G.id=K}}return K};if(x.PointerEvents){k[t]=E;k[z]=e;k[u]=c;k[w]=E;k[l]=e;k[B]=c;k[h]=d;k[r]=v;k[j]=C;k[F]="pointerover";k[D]="pointerout";k[p]="pointerenter";k[g]="pointerleave"}else{if(x.MSPointerEvents){k[E]=i;k[e]=n;k[c]=A;k[d]=a;k[t]=i;k[z]=n;k[u]=A;k[w]=i;k[l]=n;k[B]=A;k[h]=a;k[r]=v;k[j]=C;k[F]="MSPointerOver";k[D]="MSPointerOut"}else{if(x.TouchEvents){k[E]=w;k[e]=l;k[c]=B;k[d]=h;k[t]=w;k[z]=l;k[u]=B;k[r]=v;k[j]=C;if(Ext.isWebKit&&Ext.os.is.Desktop){k[w]=t;k[l]=z;k[B]=u;k[h]=u;s[t]=t;s[z]=z;s[u]=u;s[w]=w;s[l]=l;s[B]=B;s[h]=h;s[E]=t;s[e]=z;s[c]=u;s[d]=u}}else{k[E]=t;k[e]=z;k[c]=u;k[d]=u;k[w]=t;k[l]=z;k[B]=u;k[h]=u}}}if(Ext.isWebKit){k.transitionend=Ext.browser.getVendorProperyName("transitionEnd");k.animationstart=Ext.browser.getVendorProperyName("animationStart");k.animationend=Ext.browser.getVendorProperyName("animationEnd")}if(!Ext.supports.MouseWheel&&!Ext.isOpera){k.mousewheel="DOMMouseScroll"}y=m.$eventOptions=Ext.Object.chain(m.$eventOptions);y.translate=y.capture=y.delegate=y.delegated=y.stopEvent=y.preventDefault=y.stopPropagation=y.element=1;m.getTrueXY=m.getXY;Ext.select=q.select;Ext.query=q.query;Ext.apply(Ext,{get:function(G){return q.get(G)},getDom:function(G){if(!G||!b){return null}return G.dom||(typeof G==="string"?Ext.getElementById(G):G)},getBody:function(){if(!Ext._bodyEl){if(!b.body){throw new Error("[Ext.getBody] document.body does not yet exist")}Ext._bodyEl=Ext.get(b.body)}return Ext._bodyEl},getHead:function(){if(!Ext._headEl){Ext._headEl=Ext.get(b.head||b.getElementsByTagName("head")[0])}return Ext._headEl},getDoc:function(){if(!Ext._docEl){Ext._docEl=Ext.get(b)}return Ext._docEl},getWin:function(){if(!Ext._winEl){Ext._winEl=Ext.get(window)}return Ext._winEl},removeNode:function(I){I=I.dom||I;var J=I&&I.id,H=Ext.cache[J],G;if(H){H.destroy()}else{if(I&&(I.nodeType===3||I.tagName.toUpperCase()!=="BODY")){G=I.parentNode;if(G){G.removeChild(I)}}}}});Ext.isGarbage=function(G){return G&&G.nodeType===1&&G.tagName!=="BODY"&&G.tagName!=="HTML"&&(!G.parentNode||(G.offsetParent===null&&((Ext.isIE8?b.all[G.id]:b.getElementById(G.id))!==G)&&!(Ext.detachedBodyEl&&Ext.detachedBodyEl.isAncestor(G))))}}));(Ext.cmd.derive("Ext.util.Filter",Ext.Base,{isFilter:true,config:{property:null,value:null,filterFn:null,id:null,anyMatch:false,exactMatch:false,caseSensitive:false,disabled:false,disableOnEmpty:false,operator:null,root:null,serializer:null,convert:null},scope:null,$configStrict:false,statics:{createFilterFn:function(a){if(!a){return Ext.returnTrue}return function(g){var b=a.isCollection?a.items:a,h=b.length,c=true,d,e;for(d=0;c&&d<h;d++){e=b[d];if(!e.getDisabled()){c=e.filter(g)}}return c}},isInvalid:function(a){if(!a.filterFn){if(!a.property){return"A Filter requires either a property or a filterFn to be set"}if(!a.hasOwnProperty("value")&&!a.operator){return"A Filter requires either a property and value, or a filterFn to be set"}}return false}},constructor:function(a){this.initConfig(a)},preventConvert:{"in":1},filter:function(b){var a=this,e=a._filterFn||a.getFilterFn(),d=a.getConvert(),c=a._value;a._filterValue=c;a.isDateValue=Ext.isDate(c);if(a.isDateValue){a.dateValue=c.getTime()}if(d&&!a.preventConvert[a.getOperator()]){a._filterValue=d.call(a.scope||a,c)}return e.call(a.scope||a,b)},getId:function(){var a=this._id;if(!a){a=this.getProperty();if(!a){a=Ext.id(null,"ext-filter-")}this._id=a}return a},getFilterFn:function(){var b=this,c=b._filterFn,a;if(!c){a=b.getOperator();if(a){c=b.operatorFns[a]}else{c=b.createRegexFilter()}b._filterFn=c;b.generatedFilterFn=true}return c},createRegexFilter:function(){var b=this,e=!!b.getAnyMatch(),a=!!b.getExactMatch(),c=b.getValue(),d=Ext.String.createRegex(c,!e,!e&&a,!b.getCaseSensitive());return function(g){var h=b.getPropertyValue(g);return d?d.test(h):(h==null)}},getPropertyValue:function(b){var a=this._root,c=(a==null)?b:b[a];return c[this._property]},getState:function(){var c=this.getInitialConfig(),a={},b;for(b in c){if(c.hasOwnProperty(b)){a[b]=c[b]}}delete a.root;a.value=this.getValue();return a},getScope:function(){return this.scope},serialize:function(){var a=this.getState(),b=this.getSerializer();delete a.id;delete a.serializer;if(b){b.call(this,a)}return a},updateOperator:function(){if(this.generatedFilterFn){this._filterFn=null}},updateValue:function(a){if(this.generatedFilterFn){this._filterFn=null}if(this.getDisableOnEmpty()){this.setDisabled(Ext.isEmpty(a))}},updateFilterFn:function(a){delete this.generatedFilterFn},updateDisableOnEmpty:function(a){var b=false;if(a){b=Ext.isEmpty(this.getValue())}this.setDisabled(b)},privates:{getCandidateValue:function(c,b,e){var d=this,g=d._convert,a=d.getPropertyValue(c);if(g){a=g.call(d.scope||d,a)}else{if(!e){a=Ext.coerce(a,b)}}return a}}},1,0,0,0,0,0,[Ext.util,"Filter"],function(){var a=this.prototype,b=(a.operatorFns={"<":function(d){var c=this._filterValue;return this.getCandidateValue(d,c)<c},"<=":function(d){var c=this._filterValue;return this.getCandidateValue(d,c)<=c},"=":function(d){var e=this,c=e._filterValue;d=e.getCandidateValue(d,c);if(e.isDateValue&&d instanceof Date){d=d.getTime();c=e.dateValue}return d==c},"===":function(d){var e=this,c=e._filterValue;d=e.getCandidateValue(d,c,true);if(e.isDateValue&&d instanceof Date){d=d.getTime();c=e.dateValue}return d===c},">=":function(d){var c=this._filterValue;return this.getCandidateValue(d,c)>=c},">":function(d){var c=this._filterValue;return this.getCandidateValue(d,c)>c},"!=":function(d){var e=this,c=e._filterValue;d=e.getCandidateValue(d,c);if(e.isDateValue&&d instanceof Date){d=d.getTime();c=e.dateValue}return d!=c},"!==":function(d){var e=this,c=e._filterValue;d=e.getCandidateValue(d,c,true);if(e.isDateValue&&d instanceof Date){d=d.getTime();c=e.dateValue}return d!==c},"in":function(d){var c=this._filterValue;return Ext.Array.contains(c,this.getCandidateValue(d,c))},like:function(d){var c=this._filterValue;return c&&this.getCandidateValue(d,c).toLowerCase().indexOf(c.toLowerCase())>-1},"/=":function(d){var g=this,c=g._filterValue;d=g.getCandidateValue(d,c);if(c!==g.lastRegExpSource){g.lastRegExpSource=c;try{g.regex=new RegExp(c,"i")}catch(h){g.regex=null}}return g.regex?g.regex.test(d):false}});b["=="]=b["="];b.gt=b[">"];b.ge=b[">="];b.lt=b["<"];b.le=b["<="];b.eq=b["="];b.ne=b["!="]}));(Ext.cmd.derive("Ext.util.Observable",Ext.mixin.Observable,{$applyConfigs:true},0,0,0,0,0,0,[Ext.util,"Observable"],function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe}));(Ext.cmd.derive("Ext.util.AbstractMixedCollection",Ext.Base,{isMixedCollection:true,generation:0,indexGeneration:0,constructor:function(b,a){var c=this;if(arguments.length===1&&Ext.isObject(b)){c.initialConfig=b;Ext.apply(c,b)}else{c.allowFunctions=b===true;if(a){c.getKey=a}c.initialConfig={allowFunctions:c.allowFunctions,getKey:c.getKey}}c.items=[];c.map={};c.keys=[];c.indexMap={};c.length=0;c.mixins.observable.constructor.call(c)},allowFunctions:false,add:function(c,d){var a=this.length,b;if(arguments.length===1){b=this.insert(a,c)}else{b=this.insert(a,c,d)}return b},getKey:function(a){return a.id},replace:function(c,e){var d=this,a,b;if(arguments.length==1){e=arguments[0];c=d.getKey(e)}a=d.map[c];if(typeof c=="undefined"||c===null||typeof a=="undefined"){return d.add(c,e)}d.generation++;b=d.indexOfKey(c);d.items[b]=e;d.map[c]=e;if(d.hasListeners.replace){d.fireEvent("replace",c,a,e)}return e},reorder:function(d){var h=this,b=h.items,c=0,g=b.length,a=[],e=[],i;h.suspendEvents();for(i in d){a[d[i]]=b[i]}for(c=0;c<g;c++){if(d[c]==undefined){e.push(b[c])}}for(c=0;c<g;c++){if(a[c]==undefined){a[c]=e.shift()}}h.clear();h.addAll(a);h.resumeEvents()},updateKey:function(g,h){var d=this,e=d.map,a=d.indexOfKey(g),c=d.indexMap,b;if(a>-1){b=e[g];delete e[g];delete c[g];e[h]=b;c[h]=a;d.keys[a]=h;d.indexGeneration=++d.generation}},addAll:function(c){var b=this,a;if(arguments.length>1||Ext.isArray(c)){b.insert(b.length,arguments.length>1?arguments:c)}else{for(a in c){if(c.hasOwnProperty(a)){if(b.allowFunctions||typeof c[a]!="function"){b.add(a,c[a])}}}}},each:function(e,d){var b=Ext.Array.push([],this.items),c=0,a=b.length,g;for(;c<a;c++){g=b[c];if(e.call(d||g,g,c,a)===false){break}}},eachKey:function(e,d){var g=this.keys,b=this.items,c=0,a=g.length;for(;c<a;c++){e.call(d||window,g[c],b[c],c,a)}},findBy:function(e,d){var g=this.keys,b=this.items,c=0,a=b.length;for(;c<a;c++){if(e.call(d||window,b[c],g[c])){return b[c]}}return null},find:function(){if(Ext.isDefined(Ext.global.console)){Ext.global.console.warn("Ext.util.MixedCollection: find has been deprecated. Use findBy instead.")}return this.findBy.apply(this,arguments)},insert:function(b,c,d){var a;if(Ext.isIterable(c)){a=this.doInsert(b,c,d)}else{if(arguments.length>2){a=this.doInsert(b,[c],[d])}else{a=this.doInsert(b,[c])}a=a[0]}return a},doInsert:function(j,o,n){var l=this,b,c,g,k=o.length,a=k,e=l.hasListeners.add,d,h={},m,q,p;if(n!=null){l.useLinearSearch=true}else{n=o;o=new Array(k);for(g=0;g<k;g++){o[g]=this.getKey(n[g])}}l.suspendEvents();for(g=0;g<k;g++){b=o[g];c=l.indexOfKey(b);if(c!==-1){if(c<j){j--}l.removeAt(c)}if(b!=null){if(h[b]!=null){m=true;a--}h[b]=g}}l.resumeEvents();if(m){q=o;p=n;o=new Array(a);n=new Array(a);g=0;for(b in h){o[g]=q[h[b]];n[g]=p[h[b]];g++}k=a}d=j===l.length&&l.indexGeneration===l.generation;Ext.Array.insert(l.items,j,n);Ext.Array.insert(l.keys,j,o);l.length+=k;l.generation++;if(d){l.indexGeneration=l.generation}for(g=0;g<k;g++,j++){b=o[g];if(b!=null){l.map[b]=n[g];if(d){l.indexMap[b]=j}}if(e){l.fireEvent("add",j,n[g],b)}}return n},remove:function(d){var c=this,b,a;if(!c.useLinearSearch&&(b=c.getKey(d))){a=c.indexOfKey(b)}else{a=Ext.Array.indexOf(c.items,d)}return(a===-1)?false:c.removeAt(a)},removeAll:function(a){var c=this,b;if(a||c.hasListeners.remove){if(a){for(b=a.length-1;b>=0;--b){c.remove(a[b])}}else{while(c.length){c.removeAt(0)}}}else{c.length=c.items.length=c.keys.length=0;c.map={};c.indexMap={};c.generation++;c.indexGeneration=c.generation}},removeAt:function(a){var c=this,d,b;if(a<c.length&&a>=0){c.length--;d=c.items[a];Ext.Array.erase(c.items,a,1);b=c.keys[a];if(typeof b!="undefined"){delete c.map[b]}Ext.Array.erase(c.keys,a,1);if(c.hasListeners.remove){c.fireEvent("remove",d,b)}c.generation++;return d}return false},removeRange:function(h,a){var j=this,b,k,g,e,c,d;if(h<j.length&&h>=0){if(!a){a=1}e=Math.min(h+a,j.length);a=e-h;d=e===j.length;c=d&&j.indexGeneration===j.generation;for(g=h;g<e;g++){k=j.keys[g];if(k!=null){delete j.map[k];if(c){delete j.indexMap[k]}}}b=j.items[g-1];j.length-=a;j.generation++;if(c){j.indexGeneration=j.generation}if(d){j.items.length=j.keys.length=j.length}else{j.items.splice(h,a);j.keys.splice(h,a)}return b}return false},removeAtKey:function(b){var d=this,c=d.keys,a;if(b==null){for(a=c.length-1;a>=0;a--){if(c[a]==null){d.removeAt(a)}}}else{return d.removeAt(d.indexOfKey(b))}},getCount:function(){return this.length},indexOf:function(c){var b=this,a;if(c!=null){if(!b.useLinearSearch&&(a=b.getKey(c))){return this.indexOfKey(a)}return Ext.Array.indexOf(b.items,c)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var e=this,d=e.indexMap={},c=e.keys,a=c.length,b;for(b=0;b<a;b++){d[c[b]]=b}e.indexGeneration=e.generation},get:function(b){var d=this,a=d.map[b],c=a!==undefined?a:(typeof b=="number")?d.items[b]:undefined;return typeof c!="function"||d.allowFunctions?c:null},getAt:function(a){return this.items[a]},getByKey:function(a){return this.map[a]},contains:function(c){var b=this,a;if(c!=null){if(!b.useLinearSearch&&(a=b.getKey(c))){return this.map[a]!=null}return Ext.Array.indexOf(this.items,c)!==-1}return false},containsKey:function(a){return this.map.hasOwnProperty(a)},clear:function(){var a=this;if(a.generation){a.length=0;a.items=[];a.keys=[];a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}if(a.hasListeners.clear){a.fireEvent("clear")}},first:function(){return this.items[0]},last:function(){return this.items[this.length-1]},sum:function(h,b,j,a){var c=this.extractValues(h,b),g=c.length,e=0,d;j=j||0;a=(a||a===0)?a:g-1;for(d=j;d<=a;d++){e+=c[d]}return e},collect:function(k,e,h){var l=this.extractValues(k,e),a=l.length,b={},c=[],j,g,d;for(d=0;d<a;d++){j=l[d];g=String(j);if((h||!Ext.isEmpty(j))&&!b[g]){b[g]=true;c.push(j)}}return c},extractValues:function(c,a){var b=this.items;if(a){b=Ext.Array.pluck(b,a)}return Ext.Array.pluck(b,c)},hasRange:function(b,a){return(a<this.length)},getRange:function(i,b){var h=this,d=h.items,c=[],a=d.length,g,e;if(a<1){return c}if(i>b){e=true;g=i;i=b;b=g}if(i<0){i=0}if(b==null||b>=a){b=a-1}c=d.slice(i,b+1);if(e&&c.length){c.reverse()}return c},filter:function(d,c,e,a){var b=[];if(Ext.isString(d)){b.push(new Ext.util.Filter({property:d,value:c,anyMatch:e,caseSensitive:a}))}else{if(Ext.isArray(d)||d instanceof Ext.util.Filter){b=b.concat(d)}}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(e,d){var j=this,a=new j.self(j.initialConfig),h=j.keys,b=j.items,g=b.length,c;a.getKey=j.getKey;for(c=0;c<g;c++){if(e.call(d||j,b[c],h[c])){a.add(h[c],b[c])}}a.useLinearSearch=j.useLinearSearch;return a},findIndex:function(c,b,e,d,a){if(Ext.isEmpty(b,false)){return -1}b=this.createValueMatcher(b,d,a);return this.findIndexBy(function(g){return g&&b.test(g[c])},null,e)},findIndexBy:function(e,d,j){var h=this,g=h.keys,b=h.items,c=j||0,a=b.length;for(;c<a;c++){if(e.call(d||h,b[c],g[c])){return c}}return -1},createValueMatcher:function(c,e,a,b){if(!c.exec){var d=Ext.String.escapeRegex;c=String(c);if(e===true){c=d(c)}else{c="^"+d(c);if(b===true){c+="$"}}c=new RegExp(c,a?"":"i")}return c},clone:function(){var a=this,b=new a.self(a.initialConfig);b.add(a.keys,a.items);b.useLinearSearch=a.useLinearSearch;return b}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.util,"AbstractMixedCollection"],0));(Ext.cmd.derive("Ext.util.Sorter",Ext.Base,{isSorter:true,config:{property:null,sorterFn:null,root:null,transform:null,direction:"ASC",id:undefined},statics:{createComparator:function(b,a){a=a||0;return function(c,j){var e=b.isCollection?b.items:b,h=e.length,d,g;for(g=0;g<h;++g){d=e[g].sort(c,j);if(d){return d}}return a&&a(c,j)}}},multiplier:1,constructor:function(a){this.initConfig(a)},getId:function(){var a=this._id;if(!a){a=this.getProperty();if(!a){a=Ext.id(null,"ext-sorter-")}this._id=a}return a},sort:function(a,b){return this.multiplier*this.sortFn(a,b)},sortFn:function(d,c){var g=this,e=g._transform,b=g._root,h=g._property,a,i;if(b){d=d[b];c=c[b]}a=d[h];i=c[h];if(e){a=e(a);i=e(i)}return(a>i)?1:(a<i?-1:0)},applyDirection:function(a){return a?a:"ASC"},updateDirection:function(a){this.multiplier=(a.toUpperCase()==="DESC")?-1:1},updateProperty:function(a){if(a){delete this.sortFn}},updateSorterFn:function(a){this.sortFn=a},toggle:function(){this.setDirection(Ext.String.toggle(this.getDirection(),"ASC","DESC"))},getState:function(){return{root:this.getRoot(),property:this.getProperty(),direction:this.getDirection()}},serialize:function(){return{property:this.getProperty(),direction:this.getDirection()}}},1,0,0,0,0,0,[Ext.util,"Sorter"],0));(Ext.cmd.derive("Ext.util.Sortable",Ext.Base,{isSortable:true,$configPrefixed:false,$configStrict:false,config:{sorters:null},defaultSortDirection:"ASC",multiSortLimit:3,statics:{createComparator:function(a){return a&&a.length?function(d,c){var b=a[0].sort(d,c),g=a.length,e=1;for(;!b&&e<g;e++){b=a[e].sort.call(a[e],d,c)}return b}:function(){return 0}}},applySorters:function(c){var b=this,a=b.getSorters()||new Ext.util.MixedCollection(false,Ext.returnId);if(c){a.addAll(b.decodeSorters(c))}return a},sort:function(h,g,a,e){var b=this,i,d,c=b.getSorters();if(!c){b.setSorters(null);c=b.getSorters()}if(Ext.isArray(h)){e=a;a=g}else{if(Ext.isObject(h)){h=[h];e=a;a=g}else{if(Ext.isString(h)){i=c.get(h);if(!i){i={property:h,direction:g}}else{if(g==null){i.toggle()}else{i.setDirection(g)}}h=[i]}}}if(h&&h.length){h=b.decodeSorters(h);switch(a){case"multi":c.insert(0,h[0]);d=c.getCount()-b.multiSortLimit;if(d>0){c.removeRange(b.multiSortLimit,d)}break;case"prepend":c.insert(0,h);break;case"append":c.addAll(h);break;case undefined:case null:case"replace":c.clear();c.addAll(h);break;default:}}if(e!==false){b.fireEvent("beforesort",b,h);b.onBeforeSort(h);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return h},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(g){if(!Ext.isArray(g)){if(g===undefined){g=[]}else{g=[g]}}var d=g.length,h=Ext.util.Sorter,b=this.getModel?this.getModel():this.model,e,a,c;for(c=0;c<d;c++){a=g[c];if(!(a instanceof h)){if(Ext.isString(a)){a={property:a}}Ext.applyIf(a,{root:this.sortRoot,direction:"ASC"});if(a.fn){a.sorterFn=a.fn}if(typeof a=="function"){a={sorterFn:a}}if(b&&!a.transform){e=b.getField(a.property);a.transform=e&&e.sortType!==Ext.identityFn?e.sortType:undefined}g[c]=new Ext.util.Sorter(a)}}return g},getFirstSorter:function(){var c=this.getSorters().items,a=c.length,b=0,d;for(;b<a;++b){d=c[b];if(!d.isGrouper){return d}}return null}},0,0,0,0,0,0,[Ext.util,"Sortable"],function(){this.prototype.createComparator=this.createComparator}));(Ext.cmd.derive("Ext.util.MixedCollection",Ext.util.AbstractMixedCollection,{constructor:function(){this.initConfig();Ext.util.AbstractMixedCollection.prototype.constructor.apply(this,arguments)},doSort:function(a){this.sortBy(a)},_sort:function(m,b,l){var k=this,e,g,d=String(b).toUpperCase()=="DESC"?-1:1,j=[],n=k.keys,h=k.items,a;l=l||function(i,c){return i-c};for(e=0,g=h.length;e<g;e++){j[j.length]={key:n[e],value:h[e],index:e}}Ext.Array.sort(j,function(i,c){return l(i[m],c[m])*d||(i.index<c.index?-1:1)});for(e=0,g=j.length;e<g;e++){a=j[e];h[e]=a.value;n[e]=a.key;k.indexMap[a.key]=e}k.generation++;k.indexGeneration=k.generation;k.fireEvent("sort",k)},sortBy:function(b){var j=this,a=j.items,h,g=j.keys,d,e=a.length,c;for(c=0;c<e;c++){a[c].$extCollectionIndex=c}Ext.Array.sort(a,function(k,i){return b(k,i)||(k.$extCollectionIndex<i.$extCollectionIndex?-1:1)});for(c=0;c<e;c++){h=a[c];d=j.getKey(h);g[c]=d;j.indexMap[d]=c;delete h.$extCollectionIndex}j.generation++;j.indexGeneration=j.generation;j.fireEvent("sort",j,a,g)},findInsertionIndex:function(e,d){var g=this,b=g.items,i=0,a=b.length-1,c,h;if(!d){d=g.generateComparator()}while(i<=a){c=(i+a)>>1;h=d(e,b[c]);if(h>=0){i=c+1}else{if(h<0){a=c-1}}}return i},reorder:function(a){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,a);this.fireEvent("sort",this)},sortByKey:function(a,b){this._sort("key",a,b||function(d,c){var g=String(d).toUpperCase(),e=String(c).toUpperCase();return g>e?1:(g<e?-1:0)})}},1,0,0,0,0,[["sortable",Ext.util.Sortable]],[Ext.util,"MixedCollection"],0));(Ext.cmd.derive("Ext.util.TaskRunner",Ext.Base,{interval:10,timerId:null,constructor:function(a){var b=this;if(typeof a=="number"){b.interval=a}else{if(a){Ext.apply(b,a)}}b.tasks=[];b.timerFn=Ext.Function.bind(b.onTick,b)},newTask:function(b){var a=new Ext.util.TaskRunner.Task(b);a.manager=this;return a},start:function(a){var c=this,b=Ext.Date.now();if(!a.pending){c.tasks.push(a);a.pending=true}a.stopped=false;a.taskStartTime=b;a.taskRunTime=a.fireOnStart!==false?0:a.taskStartTime;a.taskRunCount=0;if(!c.firing){if(a.fireOnStart!==false){c.startTimer(0,b)}else{c.startTimer(a.interval,b)}}return a},stop:function(a){if(!a.stopped){a.stopped=true;if(a.onStop){a.onStop.call(a.scope||a,a)}}return a},stopAll:function(){Ext.each(this.tasks,this.stop,this)},firing:false,nextExpires:1e+99,onTick:function(){var o=this,g=o.tasks,q=o.fireIdleEvent,a=Ext.Date.now(),p=1e+99,l=g.length,d=Ext.GlobalEvents,c,n,j,b,e,h;o.timerId=null;o.firing=true;for(j=0;j<l||j<(l=g.length);++j){b=g[j];if(!(h=b.stopped)){c=b.taskRunTime+b.interval;if(c<=a){e=1;if(b.hasOwnProperty("fireIdleEvent")){q=b.fireIdleEvent}else{q=o.fireIdleEvent}try{e=b.run.apply(b.scope||b,b.args||[++b.taskRunCount])}catch(k){try{if(b.onError){e=b.onError.call(b.scope||b,b,k)}}catch(m){}}b.taskRunTime=a;if(e===false||b.taskRunCount===b.repeat){o.stop(b);h=true}else{h=b.stopped;c=a+b.interval}}if(!h&&b.duration&&b.duration<=(a-b.taskStartTime)){o.stop(b);h=true}}if(h){b.pending=false;if(!n){n=g.slice(0,j)}}else{if(n){n.push(b)}if(p>c){p=c}}}if(n){o.tasks=n}o.firing=false;if(o.tasks.length){o.startTimer(p-a,Ext.Date.now())}if(q!==false&&d.hasListeners.idle){d.fireEvent("idle")}},startTimer:function(e,c){var d=this,b=c+e,a=d.timerId;if(a&&d.nextExpires-b>d.interval){clearTimeout(a);a=null}if(!a){if(e<d.interval){e=d.interval}d.timerId=Ext.defer(d.timerFn,e);d.nextExpires=b}}},1,0,0,0,0,0,[Ext.util,"TaskRunner"],function(){var b=this,a=b.prototype;a.destroy=a.stopAll;b.Task=new Ext.Class({isTask:true,stopped:true,fireOnStart:false,constructor:function(c){Ext.apply(this,c)},restart:function(c){if(c!==undefined){this.interval=c}this.manager.start(this)},start:function(c){if(this.stopped){this.restart(c)}},stop:function(){this.manager.stop(this)}});a=b.Task.prototype;a.destroy=a.stop}));(Ext.cmd.derive("Ext.fx.target.Target",Ext.Base,{isAnimTarget:true,constructor:function(a){this.target=a;this.id=this.getId()},getId:function(){return this.target.id},remove:function(){Ext.destroy(this.target)}},1,0,0,0,0,0,[Ext.fx.target,"Target"],0));(Ext.cmd.derive("Ext.fx.target.Element",Ext.fx.target.Target,{type:"element",getElVal:function(b,a,c){if(c===undefined){if(a==="x"){c=b.getX()}else{if(a==="y"){c=b.getY()}else{if(a==="scrollTop"){c=b.getScroll().top}else{if(a==="scrollLeft"){c=b.getScroll().left}else{if(a==="height"){c=b.getHeight()}else{if(a==="width"){c=b.getWidth()}else{c=b.getStyle(a)}}}}}}}return c},getAttr:function(a,c){var b=this.target;return[[b,this.getElVal(b,a,c)]]},setAttr:function(k){var g=k.length,d,a,h,e,c,b;for(e=0;e<g;e++){d=k[e].attrs;for(a in d){if(d.hasOwnProperty(a)){b=d[a].length;for(c=0;c<b;c++){h=d[a][c];this.setElVal(h[0],a,h[1])}}}}},setElVal:function(b,a,c){if(a==="x"){b.setX(c)}else{if(a==="y"){b.setY(c)}else{if(a==="scrollTop"){b.scrollTo("top",c)}else{if(a==="scrollLeft"){b.scrollTo("left",c)}else{if(a==="width"){b.setWidth(c)}else{if(a==="height"){b.setHeight(c)}else{b.setStyle(a,c)}}}}}}}},0,0,0,0,0,0,[Ext.fx.target,"Element"],0));(Ext.cmd.derive("Ext.fx.target.ElementCSS",Ext.fx.target.Element,{setAttr:function(p,e){var s={attrs:[],duration:[],easing:[]},m=p.length,n=function(){this.setStyle(Ext.supports.CSS3Prefix+"TransitionProperty",null);this.setStyle(Ext.supports.CSS3Prefix+"TransitionDuration",null);this.setStyle(Ext.supports.CSS3Prefix+"TransitionTimingFunction",null)},q={single:true},g,r,k,l,c,b,h,d,a;for(h=0;h<m;h++){r=p[h];c=r.duration;l=r.easing;r=r.attrs;for(k in r){if(Ext.Array.indexOf(s.attrs,k)==-1){s.attrs.push(k.replace(/[A-Z]/g,function(i){return"-"+i.toLowerCase()}));s.duration.push(c+"ms");s.easing.push(l)}}}g=s.attrs.join(",");c=s.duration.join(",");l=s.easing.join(", ");for(h=0;h<m;h++){r=p[h].attrs;for(k in r){a=r[k].length;for(d=0;d<a;d++){b=r[k][d];b[0].setStyle(Ext.supports.CSS3Prefix+"TransitionProperty",e?"":g);b[0].setStyle(Ext.supports.CSS3Prefix+"TransitionDuration",e?"":c);b[0].setStyle(Ext.supports.CSS3Prefix+"TransitionTimingFunction",e?"":l);b[0].setStyle(k,b[1]);if(e){b=b[0].dom.offsetWidth}else{b[0].on(Ext.supports.CSS3TransitionEnd,n,b[0],q)}}}}}},0,0,0,0,0,0,[Ext.fx.target,"ElementCSS"],0));(Ext.cmd.derive("Ext.fx.target.CompositeElement",Ext.fx.target.Element,{isComposite:true,constructor:function(a){a.id=a.id||Ext.id(null,"ext-composite-");Ext.fx.target.Element.prototype.constructor.call(this,a)},getAttr:function(a,j){var b=[],h=this.target,g=h.elements,e=g.length,c,d;for(c=0;c<e;c++){d=g[c];if(d){d=h.getElement(d);b.push([d,this.getElVal(d,a,j)])}}return b},setAttr:function(n){var l=this.target,m=n.length,b=l.elements,q=b.length,o,d,p,h,c,g,e,a;for(g=0;g<m;g++){p=n[g].attrs;for(h in p){if(p.hasOwnProperty(h)){a=p[h].length;for(e=0;e<a;e++){o=p[h][e][1];for(d=0;d<q;++d){c=b[d];if(c){c=l.getElement(c);this.setElVal(c,h,o)}}}}}}},remove:function(){this.target.destroy()}},1,0,0,0,0,0,[Ext.fx.target,"CompositeElement"],0));(Ext.cmd.derive("Ext.fx.target.CompositeElementCSS",Ext.fx.target.CompositeElement,{setAttr:function(){return Ext.fx.target.ElementCSS.prototype.setAttr.apply(this,arguments)}},0,0,0,0,0,0,[Ext.fx.target,"CompositeElementCSS"],0));(Ext.cmd.derive("Ext.fx.target.Sprite",Ext.fx.target.Target,{type:"draw",getFromPrim:function(b,a){var c;switch(a){case"rotate":case"rotation":c=b.attr.rotation;return{x:c.x||0,y:c.y||0,degrees:c.degrees||0};case"scale":case"scaling":c=b.attr.scaling;return{x:c.x||1,y:c.y||1,cx:c.cx||0,cy:c.cy||0};case"translate":case"translation":c=b.attr.translation;return{x:c.x||0,y:c.y||0};default:return b.attr[a]}},getAttr:function(a,b){return[[this.target,b!==undefined?b:this.getFromPrim(this.target,a)]]},setAttr:function(m){var g=m.length,k=[],b,e,p,r,q,o,n,d,c,l,h,a;for(d=0;d<g;d++){b=m[d].attrs;for(e in b){p=b[e];a=p.length;for(c=0;c<a;c++){q=p[c][0];r=p[c][1];if(e==="translate"||e==="translation"){n={x:r.x,y:r.y}}else{if(e==="rotate"||e==="rotation"){l=r.x;if(isNaN(l)){l=null}h=r.y;if(isNaN(h)){h=null}n={degrees:r.degrees,x:l,y:h}}else{if(e==="scale"||e==="scaling"){l=r.x;if(isNaN(l)){l=null}h=r.y;if(isNaN(h)){h=null}n={x:l,y:h,cx:r.cx,cy:r.cy}}else{if(e==="width"||e==="height"||e==="x"||e==="y"){n=parseFloat(r)}else{n=r}}}}o=Ext.Array.indexOf(k,q);if(o===-1){k.push([q,{}]);o=k.length-1}k[o][1][e]=n}}}g=k.length;for(d=0;d<g;d++){k[d][0].setAttributes(k[d][1])}this.target.redraw()}},0,0,0,0,0,0,[Ext.fx.target,"Sprite"],0));(Ext.cmd.derive("Ext.fx.target.CompositeSprite",Ext.fx.target.Sprite,{getAttr:function(a,h){var b=[],g=[].concat(this.target.items),e=g.length,d,c;for(d=0;d<e;d++){c=g[d];b.push([c,h!==undefined?h:this.getFromPrim(c,a)])}return b}},0,0,0,0,0,0,[Ext.fx.target,"CompositeSprite"],0));(Ext.cmd.derive("Ext.fx.target.Component",Ext.fx.target.Target,{type:"component",getPropMethod:{top:function(){return this.getPosition(true)[1]},left:function(){return this.getPosition(true)[0]},x:function(){return this.getPosition()[0]},y:function(){return this.getPosition()[1]},height:function(){return this.getHeight()},width:function(){return this.getWidth()},opacity:function(){return this.el.getStyle("opacity")}},setMethods:{top:"setPosition",left:"setPosition",x:"setPagePosition",y:"setPagePosition",height:"setSize",width:"setSize",opacity:"setOpacity"},getAttr:function(a,b){return[[this.target,b!==undefined?b:this.getPropMethod[a].call(this.target)]]},setAttr:function(s,g,b){var q=this,p=s.length,v,n,c,k,e,m,d,r,u,l,a={},t;for(k=0;k<p;k++){v=s[k].attrs;for(n in v){m=v[n].length;for(e=0;e<m;e++){c=v[n][e];t=a[q.setMethods[n]]||(a[q.setMethods[n]]={});t.target=c[0];t[n]=c[1]}}if(a.setPosition){c=a.setPosition;d=(c.left===undefined)?undefined:parseFloat(c.left);r=(c.top===undefined)?undefined:parseFloat(c.top);c.target.setPosition(d,r)}if(a.setPagePosition){c=a.setPagePosition;c.target.setPagePosition(c.x,c.y)}if(a.setSize){c=a.setSize;u=(c.width===undefined)?c.target.getWidth():parseFloat(c.width);l=(c.height===undefined)?c.target.getHeight():parseFloat(c.height);c.target.el.setSize(u,l);if(b||q.dynamic){Ext.GlobalEvents.on({idle:Ext.Function.bind(c.target.setSize,c.target,[u,l]),single:true})}}if(a.setOpacity){c=a.setOpacity;c.target.el.setStyle("opacity",c.opacity)}}}},0,0,0,0,0,0,[Ext.fx.target,"Component"],0));(Ext.cmd.derive("Ext.fx.Queue",Ext.Base,{constructor:function(){this.targets=new Ext.util.HashMap();this.fxQueue={}},getFxDefaults:function(a){var b=this.targets.get(a);if(b){return b.fxDefaults}return{}},setFxDefaults:function(a,c){var b=this.targets.get(a);if(b){b.fxDefaults=Ext.apply(b.fxDefaults||{},c)}},stopAnimation:function(b){var e=this,a=e.getFxQueue(b),d=a.length,c;while(d){c=a[d-1];if(c){c.end()}d--}},getActiveAnimation:function(b){var a=this.getFxQueue(b);return(a&&!!a.length)?a[0]:false},hasFxBlock:function(b){var a=this.getFxQueue(b);return a&&a[0]&&a[0].block},getFxQueue:function(b){if(!b){return false}var c=this,a=c.fxQueue[b],d=c.targets.get(b);if(!d){return false}if(!a){c.fxQueue[b]=[];if(d.type!=="element"){d.target.on("destroy",function(){c.fxQueue[b]=[]})}}return c.fxQueue[b]},queueFx:function(d){var c=this,e=d.target,a,b;if(!e){return}a=c.getFxQueue(e.getId());b=a.length;if(b){if(d.concurrent){d.paused=false}else{a[b-1].on("afteranimate",function(){d.paused=false})}}else{d.paused=false}d.on("afteranimate",function(){Ext.Array.remove(a,d);if(a.length===0){c.targets.remove(d.target)}if(d.remove){if(e.type==="element"){var g=Ext.get(e.id);if(g){g.destroy()}}}},c,{single:true});a.push(d)}},1,0,0,0,0,0,[Ext.fx,"Queue"],0));(Ext.cmd.derive("Ext.fx.Manager",Ext.Base,{singleton:true,constructor:function(){var a=this;a.items=new Ext.util.MixedCollection();a.targetArr={};a.mixins.queue.constructor.call(a);a.taskRunner=new Ext.util.TaskRunner()},interval:16,forceJS:true,createTarget:function(d){var b=this,c=!b.forceJS&&Ext.supports.Transitions,a;b.useCSS3=c;if(d){if(d.tagName||Ext.isString(d)||d.isFly){d=Ext.get(d);a=new Ext.fx.target["Element"+(c?"CSS":"")](d)}else{if(d.dom){a=new Ext.fx.target["Element"+(c?"CSS":"")](d)}else{if(d.isComposite){a=new Ext.fx.target["CompositeElement"+(c?"CSS":"")](d)}else{if(d.isSprite){a=new Ext.fx.target.Sprite(d)}else{if(d.isCompositeSprite){a=new Ext.fx.target.CompositeSprite(d)}else{if(d.isComponent){a=new Ext.fx.target.Component(d)}else{if(d.isAnimTarget){return d}else{return null}}}}}}}b.targets.add(a);return a}else{return null}},addAnim:function(d){var c=this,b=c.items,a=c.task;b.add(d.id,d);if(!a&&b.length){a=c.task={run:c.runner,interval:c.interval,scope:c};c.taskRunner.start(a)}},removeAnim:function(d){var c=this,b=c.items,a=c.task;b.removeAtKey(d.id);if(a&&!b.length){c.taskRunner.stop(a);delete c.task}},runner:function(){var d=this,b=d.items.getRange(),c=0,a=b.length,e;d.targetArr={};d.timestamp=new Date();for(;c<a;c++){e=b[c];if(e.isReady()){d.startAnim(e)}}for(c=0;c<a;c++){e=b[c];if(e.isRunning()){d.runAnim(e)}}d.applyPendingAttrs()},startAnim:function(a){a.start(this.timestamp)},runAnim:function(e,a){if(!e){return}var d=this,h=d.useCSS3&&e.target.type==="element",b=d.timestamp-e.startTime,c=(b>=e.duration),g,i;if(a){b=e.duration;c=true}g=this.collectTargetData(e,b,h,c);if(h){e.target.setAttr(g.anims[e.id].attributes,true);d.collectTargetData(e,e.duration,h,c);e.paused=true;g=e.target.target;if(e.target.isComposite){g=e.target.target.last()}i={};i[Ext.supports.CSS3TransitionEnd]=e.lastFrame;i.scope=e;i.single=true;g.on(i)}return g},jumpToEnd:function(c){var b=this,d,a;if(!b.targetArr){b.targetArr={};a=true}d=b.runAnim(c,true);b.applyAnimAttrs(d,d.anims[c.id]);if(a){b.targetArr=null}},collectTargetData:function(c,a,e,g){var b=c.target.getId(),d=this.targetArr[b];if(!d){d=this.targetArr[b]={id:b,el:c.target,anims:{}}}d.anims[c.id]={id:c.id,anim:c,elapsed:a,isLastFrame:g,attributes:[{duration:c.duration,easing:(e&&c.reverse)?c.easingFn.reverse().toCSS3():c.easing,attrs:c.runAnim(a)}]};return d},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,false,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var e=this.targetArr,g,c,b,d,a;for(c in e){if(e.hasOwnProperty(c)){g=e[c];for(a in g.anims){if(g.anims.hasOwnProperty(a)){b=g.anims[a];d=b.anim;if(b.attributes&&d.isRunning()){g.el.setAttr(b.attributes,false,b.isLastFrame);if(b.isLastFrame){d.lastFrame()}}}}}}}},1,0,0,0,0,[["queue",Ext.fx.Queue]],[Ext.fx,"Manager"],0));(Ext.cmd.derive("Ext.fx.Animator",Ext.Base,{isAnimator:true,duration:250,delay:0,delayStart:0,dynamic:false,easing:"ease",running:false,paused:false,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(a){var b=this;a=Ext.apply(b,a||{});b.config=a;b.id=Ext.id(null,"ext-animator-");b.mixins.observable.constructor.call(b,a);b.timeline=[];b.createTimeline(b.keyframes);if(b.target){b.applyAnimator(b.target);Ext.fx.Manager.addAnim(b)}},sorter:function(d,c){return d.pct-c.pct},createTimeline:function(d){var h=this,l=[],j=h.to||{},b=h.duration,m,a,c,g,k,e;for(k in d){if(d.hasOwnProperty(k)&&h.animKeyFramesRE.test(k)){e={attrs:Ext.apply(d[k],j)};if(k==="from"){k=0}else{if(k==="to"){k=100}}e.pct=parseInt(k,10);l.push(e)}}Ext.Array.sort(l,h.sorter);g=l.length;for(c=0;c<g;c++){m=(l[c-1])?b*(l[c-1].pct/100):0;a=b*(l[c].pct/100);h.timeline.push({duration:a-m,attrs:l[c].attrs})}},applyAnimator:function(d){var h=this,j=[],l=h.timeline,g=l.length,b,e,a,k,c;if(h.fireEvent("beforeanimate",h)!==false){for(c=0;c<g;c++){b=l[c];k=b.attrs;e=k.easing||h.easing;a=k.damper||h.damper;delete k.easing;delete k.damper;b=new Ext.fx.Anim({target:d,easing:e,damper:a,duration:b.duration,paused:true,to:k});j.push(b)}h.animations=j;h.target=b.target;for(c=0;c<g-1;c++){b=j[c];b.nextAnim=j[c+1];b.on("afteranimate",function(){this.nextAnim.paused=false});b.on("afteranimate",function(){this.fireEvent("keyframe",this,++this.keyframeStep)},h)}j[g-1].on("afteranimate",function(){this.lastFrame()},h)}},start:function(d){var e=this,c=e.delay,b=e.delayStart,a;if(c){if(!b){e.delayStart=d;return}else{a=d-b;if(a<c){return}else{d=new Date(b.getTime()+c)}}}if(e.fireEvent("beforeanimate",e)!==false){e.startTime=d;e.running=true;e.animations[e.keyframeStep].paused=false}},lastFrame:function(){var c=this,a=c.iterations,b=c.currentIteration;b++;if(b<a){c.startTime=new Date();c.currentIteration=b;c.keyframeStep=0;c.applyAnimator(c.target);c.animations[c.keyframeStep].paused=false}else{c.currentIteration=0;c.end()}},end:function(){var a=this;a.fireEvent("afteranimate",a,a.startTime,new Date()-a.startTime)},isReady:function(){return this.paused===false&&this.running===false&&this.iterations>0},isRunning:function(){return false}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.fx,"Animator"],0));(Ext.cmd.derive("Ext.fx.CubicBezier",Ext.Base,{singleton:true,cubicBezierAtTime:function(o,d,b,n,m,i){var j=3*d,l=3*(n-d)-j,a=1-j-l,h=3*b,k=3*(m-b)-h,p=1-h-k;function g(q){return((a*q+l)*q+j)*q}function c(q,s){var r=e(q,s);return((p*r+k)*r+h)*r}function e(q,y){var w,v,t,r,u,s;for(t=q,s=0;s<8;s++){r=g(t)-q;if(Math.abs(r)<y){return t}u=(3*a*t+2*l)*t+j;if(Math.abs(u)<0.000001){break}t=t-r/u}w=0;v=1;t=q;if(t<w){return w}if(t>v){return v}while(w<v){r=g(t);if(Math.abs(r-q)<y){return t}if(q>r){w=t}else{v=t}t=(v-w)/2+w}return t}return c(o,1/(200*i))},cubicBezier:function(b,e,a,c){var d=function(g){return Ext.fx.CubicBezier.cubicBezierAtTime(g,b,e,a,c,1)};d.toCSS3=function(){return"cubic-bezier("+[b,e,a,c].join(",")+")"};d.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-a,1-c,1-b,1-e)};return d}},0,0,0,0,0,0,[Ext.fx,"CubicBezier"],0));(Ext.cmd.derive("Ext.fx.Easing",Ext.Base,function(){var e=Math,h=e.PI,d=e.pow,b=e.sin,g=e.sqrt,a=e.abs,c=1.70158;return{singleton:true,linear:Ext.identityFn,ease:function(r){var l=0.07813-r/2,k=g(0.0066+l*l),i=k-l,p=d(a(i),1/3)*(i<0?-1:1),o=-k-l,m=d(a(o),1/3)*(o<0?-1:1),j=p+m+0.25;return d(1-j,2)*3*j*0.1+(1-j)*3*j*j+j*j*j},easeIn:function(i){return d(i,1.7)},easeOut:function(i){return d(i,0.48)},easeInOut:function(r){var l=0.48-r/1.04,k=g(0.1734+l*l),i=k-l,p=d(a(i),1/3)*(i<0?-1:1),o=-k-l,m=d(a(o),1/3)*(o<0?-1:1),j=p+m+0.5;return(1-j)*3*j*j+j*j*j},backIn:function(i){return i*i*((c+1)*i-c)},backOut:function(i){i=i-1;return i*i*((c+1)*i+c)+1},elasticIn:function(k){if(k===0||k===1){return k}var j=0.3,i=j/4;return d(2,-10*k)*b((k-i)*(2*h)/j)+1},elasticOut:function(i){return 1-Ext.fx.Easing.elasticIn(1-i)},bounceIn:function(i){return 1-Ext.fx.Easing.bounceOut(1-i)},bounceOut:function(m){var j=7.5625,k=2.75,i;if(m<(1/k)){i=j*m*m}else{if(m<(2/k)){m-=(1.5/k);i=j*m*m+0.75}else{if(m<(2.5/k)){m-=(2.25/k);i=j*m*m+0.9375}else{m-=(2.625/k);i=j*m*m+0.984375}}}return i}}},0,0,0,0,0,0,[Ext.fx,"Easing"],function(b){var c=b.self,a=c.prototype;c.addMembers({"back-in":a.backIn,"back-out":a.backOut,"ease-in":a.easeIn,"ease-out":a.easeOut,"elastic-in":a.elasticIn,"elastic-out":a.elasticOut,"bounce-in":a.bounceIn,"bounce-out":a.bounceOut,"ease-in-out":a.easeInOut})}));(Ext.cmd.derive("Ext.fx.DrawPath",Ext.Base,{singleton:true,pathToStringRE:/,?([achlmqrstvxz]),?/gi,pathCommandRE:/([achlmqstvz])[\s,]*((-?\d*\.?\d*(?:e[-+]?\d+)?\s*,?\s*)+)/ig,pathValuesRE:/(-?\d*\.?\d*(?:e[-+]?\d+)?)\s*,?\s*/ig,stopsRE:/^(\d+%?)$/,radian:Math.PI/180,is:function(b,a){a=String(a).toLowerCase();return(a=="object"&&b===Object(b))||(a=="undefined"&&typeof b==a)||(a=="null"&&b===null)||(a=="array"&&Array.isArray&&Array.isArray(b))||(Object.prototype.toString.call(b).toLowerCase().slice(8,-1))==a},path2string:function(){return this.join(",").replace(Ext.fx.DrawPath.pathToStringRE,"$1")},pathToString:function(a){return a.join(",").replace(Ext.fx.DrawPath.pathToStringRE,"$1")},parsePathString:function(a){if(!a){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},c=[],b=this;if(b.is(a,"array")&&b.is(a[0],"array")){c=b.pathClone(a)}if(!c.length){String(a).replace(b.pathCommandRE,function(g,e,j){var i=[],h=e.toLowerCase();j.replace(b.pathValuesRE,function(l,k){if(k){i.push(+k)}});if(h=="m"&&i.length>2){c.push([e].concat(Ext.Array.splice(i,0,2)));h="l";e=(e=="m")?"l":"L"}while(i.length>=d[h]){c.push([e].concat(Ext.Array.splice(i,0,d[h])));if(!d[h]){break}}})}c.toString=b.path2string;return c},pathClone:function(g){var c=[],a,e,b,d;if(!this.is(g,"array")||!this.is(g&&g[0],"array")){g=this.parsePathString(g)}for(b=0,d=g.length;b<d;b++){c[b]=[];for(a=0,e=g[b].length;a<e;a++){c[b][a]=g[b][a]}}c.toString=this.path2string;return c},pathToAbsolute:function(c){if(!this.is(c,"array")||!this.is(c&&c[0],"array")){c=this.parsePathString(c)}var k=[],m=0,l=0,o=0,n=0,g=0,h=c.length,b,d,e,a;if(h&&c[0][0]=="M"){m=+c[0][1];l=+c[0][2];o=m;n=l;g++;k[0]=["M",m,l]}for(;g<h;g++){b=k[g]=[];d=c[g];if(d[0]!=d[0].toUpperCase()){b[0]=d[0].toUpperCase();switch(b[0]){case"A":b[1]=d[1];b[2]=d[2];b[3]=d[3];b[4]=d[4];b[5]=d[5];b[6]=+(d[6]+m);b[7]=+(d[7]+l);break;case"V":b[1]=+d[1]+l;break;case"H":b[1]=+d[1]+m;break;case"M":o=+d[1]+m;n=+d[2]+l;default:e=1;a=d.length;for(;e<a;e++){b[e]=+d[e]+((e%2)?m:l)}}}else{e=0;a=d.length;for(;e<a;e++){k[g][e]=d[e]}}switch(b[0]){case"Z":m=o;l=n;break;case"H":m=b[1];break;case"V":l=b[1];break;case"M":d=k[g];a=d.length;o=d[a-2];n=d[a-1];default:d=k[g];a=d.length;m=d[a-2];l=d[a-1]}}k.toString=this.path2string;return k},interpolatePaths:function(r,l){var j=this,d=j.pathToAbsolute(r),m=j.pathToAbsolute(l),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},b=function(p,s){if(p[s].length>7){p[s].shift();var t=p[s];while(t.length){Ext.Array.splice(p,s++,0,["C"].concat(Ext.Array.splice(t,0,6)))}Ext.Array.erase(p,s,1);o=Math.max(d.length,m.length||0)}},c=function(v,u,s,p,t){if(v&&u&&v[t][0]=="M"&&u[t][0]!="M"){Ext.Array.splice(u,t,0,["M",p.x,p.y]);s.bx=0;s.by=0;s.x=v[t][1];s.y=v[t][2];o=Math.max(d.length,m.length||0)}},h,o,g,q,e,k;for(h=0,o=Math.max(d.length,m.length||0);h<o;h++){d[h]=j.command2curve(d[h],n);b(d,h);(m[h]=j.command2curve(m[h],a));b(m,h);c(d,m,n,a,h);c(m,d,a,n,h);g=d[h];q=m[h];e=g.length;k=q.length;n.x=g[e-2];n.y=g[e-1];n.bx=parseFloat(g[e-4])||n.x;n.by=parseFloat(g[e-3])||n.y;a.bx=(parseFloat(q[k-4])||a.x);a.by=(parseFloat(q[k-3])||a.y);a.x=q[k-2];a.y=q[k-1]}return[d,m]},command2curve:function(c,b){var a=this;if(!c){return["C",b.x,b.y,b.x,b.y,b.x,b.y]}if(c[0]!="T"&&c[0]!="Q"){b.qx=b.qy=null}switch(c[0]){case"M":b.X=c[1];b.Y=c[2];break;case"A":c=["C"].concat(a.arc2curve.apply(a,[b.x,b.y].concat(c.slice(1))));break;case"S":c=["C",b.x+(b.x-(b.bx||b.x)),b.y+(b.y-(b.by||b.y))].concat(c.slice(1));break;case"T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));c=["C"].concat(a.quadratic2curve(b.x,b.y,b.qx,b.qy,c[1],c[2]));break;case"Q":b.qx=c[1];b.qy=c[2];c=["C"].concat(a.quadratic2curve(b.x,b.y,c[1],c[2],c[3],c[4]));break;case"L":c=["C"].concat(b.x,b.y,c[1],c[2],c[1],c[2]);break;case"H":c=["C"].concat(b.x,b.y,c[1],b.y,c[1],b.y);break;case"V":c=["C"].concat(b.x,b.y,b.x,c[1],b.x,c[1]);break;case"Z":c=["C"].concat(b.x,b.y,b.X,b.Y,b.X,b.Y);break}return c},quadratic2curve:function(b,d,h,e,a,c){var g=1/3,i=2/3;return[g*b+i*h,g*d+i*e,g*a+i*h,g*c+i*e,a,c]},rotate:function(b,h,a){var d=Math.cos(a),c=Math.sin(a),g=b*d-h*c,e=b*c+h*d;return{x:g,y:e}},arc2curve:function(s,af,H,F,z,n,g,r,ae,A){var v=this,d=Math.PI,w=v.radian,E=d*120/180,b=w*(+z||0),M=[],J=Math,T=J.cos,a=J.sin,V=J.sqrt,u=J.abs,o=J.asin,I,O,N,aa,c,R,U,C,B,m,l,q,j,ad,e,ac,P,S,Q,ab,Z,Y,W,L,X,K,D,G,p;if(!A){I=v.rotate(s,af,-b);s=I.x;af=I.y;I=v.rotate(r,ae,-b);r=I.x;ae=I.y;O=(s-r)/2;N=(af-ae)/2;aa=(O*O)/(H*H)+(N*N)/(F*F);if(aa>1){aa=V(aa);H=aa*H;F=aa*F}c=H*H;R=F*F;U=(n==g?-1:1)*V(u((c*R-c*N*N-R*O*O)/(c*N*N+R*O*O)));C=U*H*N/F+(s+r)/2;B=U*-F*O/H+(af+ae)/2;m=o(((af-B)/F).toFixed(7));l=o(((ae-B)/F).toFixed(7));m=s<C?d-m:m;l=r<C?d-l:l;if(m<0){m=d*2+m}if(l<0){l=d*2+l}if(g&&m>l){m=m-d*2}if(!g&&l>m){l=l-d*2}}else{m=A[0];l=A[1];C=A[2];B=A[3]}q=l-m;if(u(q)>E){D=l;G=r;p=ae;l=m+E*(g&&l>m?1:-1);r=C+H*T(l);ae=B+F*a(l);M=v.arc2curve(r,ae,H,F,z,0,g,G,p,[l,D,C,B])}q=l-m;j=T(m);ad=a(m);e=T(l);ac=a(l);P=J.tan(q/4);S=4/3*H*P;Q=4/3*F*P;ab=[s,af];Z=[s+S*ad,af-Q*j];Y=[r+S*ac,ae-Q*e];W=[r,ae];Z[0]=2*ab[0]-Z[0];Z[1]=2*ab[1]-Z[1];if(A){return[Z,Y,W].concat(M)}else{M=[Z,Y,W].concat(M).join().split(",");L=[];K=M.length;for(X=0;X<K;X++){L[X]=X%2?v.rotate(M[X-1],M[X],b).y:v.rotate(M[X],M[X+1],b).x}return L}}},0,0,0,0,0,0,[Ext.fx,"DrawPath"],0));(Ext.cmd.derive("Ext.fx.PropertyHandler",Ext.Base,{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,c,a,g,i){a=(typeof a=="number")?a:1;var h=this.unitRE,d=h.exec(j),b,e;if(d){j=d[1];e=d[2];if(!this.scrollRE.test(i)&&!e&&this.pixelDefaultsRE.test(i)){e="px"}}j=+j||0;d=h.exec(c);if(d){c=d[1];e=d[2]||e}c=+c||0;b=(g!=null)?g:j;return{from:j,delta:(c-b)*a,units:e}},get:function(o,b,a,n,k){var m=o.length,d=[],e,h,l,c,g;for(e=0;e<m;e++){if(n){h=n[e][1].from}if(Ext.isArray(o[e][1])&&Ext.isArray(b)){l=[];c=0;g=o[e][1].length;for(;c<g;c++){l.push(this.computeDelta(o[e][1][c],b[c],a,h,k))}d.push([o[e][0],l])}else{d.push([o[e][0],this.computeDelta(o[e][1],b,a,h,k)])}}return d},set:function(l,g){var h=l.length,c=[],d,a,k,e,b;for(d=0;d<h;d++){a=l[d][1];if(Ext.isArray(a)){k=[];b=0;e=a.length;for(;b<e;b++){k.push(a[b].from+a[b].delta*g+(a[b].units||0))}c.push([l[d][0],k])}else{c.push([l[d][0],a.from+a.delta*g+(a.units||0)])}}return c}},stringHandler:{computeDelta:function(e,b,d,c,a){return{from:e,delta:b}},get:function(k,b,a,j,g){var h=k.length,c=[],d,e;for(d=0;d<h;d++){c.push([k[d][0],this.computeDelta(k[d][1],b,a,e,g)])}return c},set:function(a,g){var d=a.length,b=[],c,e;for(c=0;c<d;c++){e=a[c][1];b.push([a[c][0],e.delta])}return b}},color:{rgbRE:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,hexRE:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,hex3RE:/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i,parseColor:function(e,a){a=(typeof a=="number")?a:1;var g=false,c=[this.hexRE,this.rgbRE,this.hex3RE],d=c.length,j,b,k,h;for(h=0;h<d;h++){k=c[h];b=(h%2===0)?16:10;j=k.exec(e);if(j&&j.length===4){if(h===2){j[1]+=j[1];j[2]+=j[2];j[3]+=j[3]}g={red:parseInt(j[1],b),green:parseInt(j[2],b),blue:parseInt(j[3],b)};break}}return g||e},computeDelta:function(h,a,e,c){h=this.parseColor(h);a=this.parseColor(a,e);var g=c?c:h,b=typeof g,d=typeof a;if(b==="string"||b==="undefined"||d==="string"||d==="undefined"){return a||g}return{from:h,delta:{red:Math.round((a.red-g.red)*e),green:Math.round((a.green-g.green)*e),blue:Math.round((a.blue-g.blue)*e)}}},get:function(j,a,g,d){var h=j.length,c=[],e,b;for(e=0;e<h;e++){if(d){b=d[e][1].from}c.push([j[e][0],this.computeDelta(j[e][1],a,g,b)])}return c},set:function(k,e){var g=k.length,c=[],d,b,a,h,j;for(d=0;d<g;d++){b=k[d][1];if(b){h=b.from;j=b.delta;b=(typeof b==="object"&&"red" in b)?"rgb("+b.red+", "+b.green+", "+b.blue+")":b;b=(typeof b==="object"&&b.length)?b[0]:b;if(typeof b==="undefined"){return[]}a=typeof b==="string"?b:"rgb("+[(h.red+Math.round(j.red*e))%256,(h.green+Math.round(j.green*e))%256,(h.blue+Math.round(j.blue*e))%256].join(",")+")";c.push([k[d][0],a])}}return c}},object:{interpolate:function(d,b){b=(typeof b==="number")?b:1;var a={},c;for(c in d){a[c]=parseFloat(d[c])*b}return a},computeDelta:function(h,a,c,b){h=this.interpolate(h);a=this.interpolate(a,c);var g=b?b:h,e={},d;for(d in a){e[d]=a[d]-g[d]}return{from:h,delta:e}},get:function(j,a,g,d){var h=j.length,c=[],e,b;for(e=0;e<h;e++){if(d){b=d[e][1].from}c.push([j[e][0],this.computeDelta(j[e][1],a,g,b)])}return c},set:function(l,g){var h=l.length,c=[],e={},d,j,k,b,a;for(d=0;d<h;d++){b=l[d][1];j=b.from;k=b.delta;for(a in j){e[a]=j[a]+k[a]*g}c.push([l[d][0],e])}return c}},path:{computeDelta:function(e,a,c,b){c=(typeof c==="number")?c:1;var d;e=+e||0;a=+a||0;d=(b!=null)?b:e;return{from:e,delta:(a-d)*c}},forcePath:function(a){if(!Ext.isArray(a)&&!Ext.isArray(a[0])){a=Ext.fx.DrawPath.parsePathString(a)}return a},get:function(b,l,a,q){var c=this.forcePath(l),n=[],s=b.length,d,h,o,g,p,m,e,t,r;for(o=0;o<s;o++){r=this.forcePath(b[o][1]);g=Ext.fx.DrawPath.interpolatePaths(r,c);r=g[0];c=g[1];d=r.length;t=[];for(m=0;m<d;m++){g=[r[m][0]];h=r[m].length;for(e=1;e<h;e++){p=q&&q[0][1][m][e].from;g.push(this.computeDelta(r[m][e],c[m][e],a,p))}t.push(g)}n.push([b[o][0],t])}return n},set:function(p,n){var o=p.length,e=[],h,g,d,l,m,c,a,b;for(h=0;h<o;h++){c=p[h][1];l=[];a=c.length;for(g=0;g<a;g++){m=[c[g][0]];b=c[g].length;for(d=1;d<b;d++){m.push(c[g][d].from+c[g][d].delta*n)}l.push(m.join(","))}e.push([p[h][0],l.join(",")])}return e}}}},0,0,0,0,0,0,[Ext.fx,"PropertyHandler"],function(){var b=["outlineColor","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","fill","stroke"],c=b.length,a=0,d;for(;a<c;a++){d=b[a];this[d]=this.color}b=["cursor"];c=b.length;a=0;for(;a<c;a++){d=b[a];this[d]=this.stringHandler}}));(Ext.cmd.derive("Ext.fx.Anim",Ext.Base,{isAnimation:true,duration:250,delay:0,delayStart:0,dynamic:false,easing:"ease",damper:1,bezierRE:/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,reverse:false,running:false,paused:false,iterations:1,autoEnd:false,alternate:false,currentIteration:0,startTime:0,frameCount:0,constructor:function(a){var b=this,c;a=a||{};if(a.keyframes){return new Ext.fx.Animator(a)}Ext.apply(b,a);if(b.from===undefined){b.from={}}b.propHandlers={};b.config=a;b.target=Ext.fx.Manager.createTarget(b.target);b.easingFn=Ext.fx.Easing[b.easing];b.target.dynamic=b.dynamic;if(!b.easingFn){b.easingFn=String(b.easing).match(b.bezierRE);if(b.easingFn&&b.easingFn.length===5){c=b.easingFn;b.easingFn=Ext.fx.CubicBezier.cubicBezier(+c[1],+c[2],+c[3],+c[4])}}b.id=Ext.id(null,"ext-anim-");b.mixins.observable.constructor.call(b);Ext.fx.Manager.addAnim(b);if(a.autoEnd){b.running=true;b.jumpToEnd()}},setAttr:function(a,b){return Ext.fx.Manager.items.get(this.id).setAttr(this.target,a,b)},initAttrs:function(){var e=this,h=e.from,i=e.to,g=e.initialFrom||{},c={},a,b,j,d;for(d in i){if(i.hasOwnProperty(d)){a=e.target.getAttr(d,h[d]);b=i[d];if(!Ext.fx.PropertyHandler[d]){if(Ext.isObject(b)){j=e.propHandlers[d]=Ext.fx.PropertyHandler.object}else{j=e.propHandlers[d]=Ext.fx.PropertyHandler.defaultHandler}}else{j=e.propHandlers[d]=Ext.fx.PropertyHandler[d]}c[d]=j.get(a,b,e.damper,g[d],d)}}e.currentAttrs=c},start:function(d){var e=this,c=e.delay,b=e.delayStart,a;if(c){if(!b){e.delayStart=d;return}else{a=d-b;if(a<c){return}else{d=new Date(b.getTime()+c)}}}if(e.fireEvent("beforeanimate",e)!==false){e.startTime=d;if(!e.paused&&!e.currentAttrs){e.initAttrs()}e.running=true;e.frameCount=0}},jumpToEnd:function(){var a=this;if(!a.endWasCalled){if(!a.currentAttrs){a.initAttrs()}Ext.fx.Manager.jumpToEnd(a);a.end()}},runAnim:function(l){var i=this,k=i.currentAttrs,d=i.duration,c=i.easingFn,b=i.propHandlers,g={},h,j,e,a;if(l>=d){l=d;a=true}if(i.reverse){l=d-l}for(e in k){if(k.hasOwnProperty(e)){j=k[e];h=a?1:c(l/d);g[e]=b[e].set(j,h)}}i.frameCount++;return g},lastFrame:function(){var c=this,a=c.iterations,b=c.currentIteration;b++;if(b<a){if(c.alternate){c.reverse=!c.reverse}c.startTime=new Date();c.currentIteration=b;c.paused=false}else{c.currentIteration=0;c.end();c.fireEvent("lastframe",c,c.startTime)}},endWasCalled:0,end:function(){var a=this;if(a.endWasCalled++){return}a.startTime=0;a.paused=false;a.running=false;Ext.fx.Manager.removeAnim(a);a.fireEvent("afteranimate",a,a.startTime);Ext.callback(a.callback,a.scope,[a,a.startTime]);if(a.remove){a.target.destroy()}},isReady:function(){return this.paused===false&&this.running===false&&this.iterations>0},isRunning:function(){return this.paused===false&&this.running===true&&this.isAnimator!==true}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.fx,"Anim"],0));Ext.enableFx=true;(Ext.cmd.derive("Ext.util.Animate",Ext.Base,{mixinId:"animate",isAnimate:true,animate:function(a){var b=this;if(Ext.fx.Manager.hasFxBlock(b.id)){return b}Ext.fx.Manager.queueFx(new Ext.fx.Anim(b.anim(a)));return this},anim:function(a){if(!Ext.isObject(a)){return(a)?{}:false}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:true},a)},getAnimationProps:function(){var b=this,a=b.layout;return a&&a.animate?a.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,"stopAnimation"),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:true});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:false});return this},hasActiveFx:Ext.Function.alias(Ext.util.Animate,"getActiveAnimation"),getActiveAnimation:function(){return Ext.fx.Manager.getActiveAnimation(this.id)}},0,0,0,0,0,0,[Ext.util,"Animate"],0));(Ext.cmd.derive("Ext.dom.Fly",Ext.dom.Element,{alternateClassName:"Ext.dom.Element.Fly",validNodeTypes:{1:1,9:1,11:1},isFly:true,constructor:function(a){this.dom=a;this.el=this},attach:function(b){var a=this;if(!b){return a.detach()}a.dom=b;if(!Ext.cache[b.id]){a.getData().isSynchronized=false}return a},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,"Fly",Ext.dom.Element,"Fly"],function(a){var b={};a.cache=b;Ext.fly=function(i,d){var g=null,e=Ext.fly,c,h;d=d||(e.caller&&e.caller.$name)||"_global";i=Ext.getDom(i);if(i){c=i.nodeType;if(a.prototype.validNodeTypes[c]||(!c&&(i.window==i))){g=Ext.cache[i.id];if(!g||g.dom!==i){g=b[d]||(b[d]=new a());g.dom=i;h=g.getData(true);if(h){h.isSynchronized=false}}}}return g}}));(Ext.cmd.derive("Ext.dom.CompositeElementLite",Ext.Base,{alternateClassName:["Ext.CompositeElementLite"],isComposite:true,isLite:true,statics:{importElementMethods:function(){var a=Ext.dom.Element,b=this.prototype;Ext.Object.each(a.prototype,function(c,d){if(typeof d==="function"&&!b[c]){b[c]=function(){return this.invoke(c,arguments)}}})}},constructor:function(b,a){if(a){this.elements=b||[]}else{this.elements=[];this.add(b)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(c,a){var e=this.elements,b,d;if(!c){return this}if(typeof c=="string"){c=Ext.fly(a||document).query(c)}else{if(c.isComposite){c=c.elements}else{if(!Ext.isIterable(c)){c=[c]}}}for(b=0,d=c.length;b<d;++b){e.push(this.transformElement(c[b]))}return this},invoke:function(e,b){var h=this,j=h.elements,g=j.length,a,d,c;if(c!==0){a=(h.isLite?Ext.dom.Fly:Ext.dom.Element).prototype;for(c=0;c<g;c++){d=j[c];if(d){a[e].apply(h.getElement(d),b)}}}return h},item:function(b){var c=this.elements[b],a=null;if(c){a=this.getElement(c)}return a},slice:function(b,a){return Ext.Array.slice(this.elements,b,a)},each:function(g,d){var h=this,c=h.elements,a=c.length,b,j;for(b=0;b<a;b++){j=c[b];if(j){j=this.getElement(j);if(g.call(d||j,j,h,b)===false){break}}}return h},fill:function(a){var b=this;b.elements=[];b.add(a);return b},insert:function(b,a){Ext.Array.insert(this.elements,b,a)},filter:function(b){var h=this,c=h.elements,g=c.length,d=[],e=0,j=typeof b=="function",k,a;for(;e<g;e++){a=c[e];k=false;if(a){a=h.getElement(a);if(j){k=b.call(a,a,h,e)!==false}else{k=a.is(b)}if(k){d.push(h.transformElement(a))}}}h.elements=d;return h},indexOf:function(a){return Ext.Array.indexOf(this.elements,this.transformElement(a))},replaceElement:function(e,c,a){var b=!isNaN(e)?e:this.indexOf(e),g;if(b>-1){c=Ext.getDom(c);if(a){g=this.elements[b];g.parentNode.insertBefore(c,g);Ext.removeNode(g)}Ext.Array.splice(this.elements,b,1,c)}return this},clear:function(d){var c=this,b=c.elements,a=b.length-1;if(d){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(d,b){if(!d){return this}if(typeof d==="string"){d=Ext.dom.Element.selectorFunction(d,b)}var c=this.elements,a=d.length,g;for(g=0;g<a;g++){c.push(Ext.get(d[g]))}return this},first:function(){return this.item(0)},last:function(){return this.item(this.getCount()-1)},contains:function(a){return this.indexOf(a)!=-1},removeElement:function(e,i){e=[].concat(e);var d=this,g=d.elements,c=e.length,h,b,a;for(a=0;a<c;a++){h=e[a];if((b=(g[h]||g[h=d.indexOf(h)]))){if(i){if(b.dom){b.destroy()}else{Ext.removeNode(b)}}Ext.Array.erase(g,h,1)}}return d},destroy:function(){return this.invoke("destroy",arguments)}},1,0,0,0,0,0,[Ext.dom,"CompositeElementLite",Ext,"CompositeElementLite"],function(b){var a=b.prototype;b.importElementMethods();a.on=a.addListener}));Ext.define("Ext.overrides.dom.Element",(function(){var i,l=window,D=document,L="hidden",p="isClipped",J="overflow",t="overflow-x",s="overflow-y",v="originalClip",B="height",d="width",e="visibility",a="display",F="none",O="offsets",m="originalDisplay",G="visibilityMode",x="isVisible",k="x-hidden-offsets",P=['<div class="{0}-tl" role="presentation">','<div class="{0}-tr" role="presentation">','<div class="{0}-tc" role="presentation"></div>',"</div>","</div>",'<div class="{0}-ml" role="presentation">','<div class="{0}-mr" role="presentation">','<div class="{0}-mc" role="presentation"></div>',"</div>","</div>",'<div class="{0}-bl" role="presentation">','<div class="{0}-br" role="presentation">','<div class="{0}-bc" role="presentation"></div>',"</div>","</div>"].join(""),I=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,C=/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,b=/\ssrc=([\'\"])(.*?)\1/i,o=/\S/,h=/\stype=([\'\"])(.*?)\1/i,z=/^-ms-/,A=/(-[a-z])/gi,H=function(Q,R){return R.charAt(1).toUpperCase()},n="x-masked",y="x-masked-relative",u="x-mask-msg",r=/^body/i,q={},N=function(Q){var R=Q.getData(),S=R[m];if(S===undefined){R[m]=S=""}return S},w=function(R){var S=R.getData(),Q=S[G];if(Q===undefined){S[G]=Q=i.VISIBILITY}return Q},M=D.createRange?D.createRange():null,E={INPUT:true,TEXTAREA:true};if(Ext.isIE8){var j=Ext.removeNode,g=D.createElement("div"),K=[],c=Ext.Function.createBuffered(function(){var Q=K.length,R;for(R=0;R<Q;R++){g.appendChild(K[R])}g.innerHTML="";K.length=0},10);Ext.removeNode=function(Q){Q=Q.dom||Q;j(Q);K[K.length]=Q;c()}}return{override:"Ext.dom.Element",mixins:["Ext.util.Animate"],skipGarbageCollection:false,_init:function(Q){i=Q},statics:{selectableCls:"x-selectable",unselectableCls:"x-unselectable",tabIndexAttributeName:Ext.isIE8?"tabIndex":"tabindex",tabbableSelector:'a[href],button,iframe,input,select,textarea,[tabindex],[contenteditable="true"]',naturallyFocusableTags:{BUTTON:true,IFRAME:true,EMBED:true,INPUT:true,OBJECT:true,SELECT:true,TEXTAREA:true,HTML:Ext.isIE?true:false},naturallyTabbableTags:{BUTTON:true,IFRAME:true,INPUT:true,SELECT:true,TEXTAREA:true,OBJECT:Ext.isIE8m?true:false},tabbableSavedFlagAttribute:"data-tabindexsaved",tabbableSavedAttribute:"data-savedtabindex",normalize:function(Q){if(Q==="float"){Q=Ext.supports.Float?"cssFloat":"styleFloat"}return q[Q]||(q[Q]=Q.replace(z,"ms-").replace(A,H))},getViewportHeight:function(){return Ext.isIE9m?D.documentElement.clientHeight:l.innerHeight},getViewportWidth:function(){return(!Ext.isStrict&&!Ext.isOpera)?document.body.clientWidth:Ext.isIE9m?D.documentElement.clientWidth:l.innerWidth}},addClsOnClick:function(S,V,R){var T=this,U=T.dom,Q=Ext.isFunction(V);T.on("mousedown",function(){if(Q&&V.call(R||T,T)===false){return false}Ext.fly(U).addCls(S);var X=Ext.getDoc(),W=function(){Ext.fly(U).removeCls(S);X.removeListener("mouseup",W)};X.on("mouseup",W)});return T},addClsOnFocus:function(S,V,R){var T=this,U=T.dom,Q=Ext.isFunction(V);T.on("focus",function(){if(Q&&V.call(R||T,T)===false){return false}Ext.fly(U).addCls(S)});T.on("blur",function(){Ext.fly(U).removeCls(S)});return T},addClsOnOver:function(S,V,R){var T=this,U=T.dom,Q=Ext.isFunction(V);T.hover(function(){if(Q&&V.call(R||T,T)===false){return}Ext.fly(U).addCls(S)},function(){Ext.fly(U).removeCls(S)});return T},addKeyListener:function(R,T,S){var Q;if(typeof R!=="object"||Ext.isArray(R)){Q={target:this,key:R,fn:T,scope:S}}else{Q={target:this,key:R.key,shift:R.shift,ctrl:R.ctrl,alt:R.alt,fn:T,scope:S}}return new Ext.util.KeyMap(Q)},addKeyMap:function(Q){return new Ext.util.KeyMap(Ext.apply({target:this},Q))},afterAnimate:function(){var Q=this.shadow;if(Q&&!Q.disabled&&!Q.animate){Q.show()}},anchorAnimX:function(Q){var R=(Q==="l")?"right":"left";this.dom.style[R]="0px"},anim:function(Q){if(!Ext.isObject(Q)){return(Q)?{}:false}var R=this,S=Q.duration||Ext.fx.Anim.prototype.duration,U=Q.easing||"ease",T;if(Q.stopAnimation){R.stopAnimation()}Ext.applyIf(Q,Ext.fx.Manager.getFxDefaults(R.id));Ext.fx.Manager.setFxDefaults(R.id,{delay:0});T={target:R.dom,remove:Q.remove,alternate:Q.alternate||false,duration:S,easing:U,callback:Q.callback,listeners:Q.listeners,iterations:Q.iterations||1,scope:Q.scope,block:Q.block,concurrent:Q.concurrent,delay:Q.delay||0,paused:true,keyframes:Q.keyframes,from:Q.from||{},to:Ext.apply({},Q)};Ext.apply(T.to,Q.to);delete T.to.to;delete T.to.from;delete T.to.remove;delete T.to.alternate;delete T.to.keyframes;delete T.to.iterations;delete T.to.listeners;delete T.to.target;delete T.to.paused;delete T.to.callback;delete T.to.scope;delete T.to.duration;delete T.to.easing;delete T.to.concurrent;delete T.to.block;delete T.to.stopAnimation;delete T.to.delay;return T},animate:function(S){var U=this,R=U.dom.id||Ext.id(U.dom),T,V,Q;if(!Ext.fx.Manager.hasFxBlock(R)){if(S.listeners){T=S.listeners;delete S.listeners}if(S.internalListeners){S.listeners=S.internalListeners;delete S.internalListeners}Q=S.autoEnd;delete S.autoEnd;V=new Ext.fx.Anim(U.anim(S));V.on({afteranimate:"afterAnimate",beforeanimate:"beforeAnimate",scope:U,single:true});if(T){V.on(T)}Ext.fx.Manager.queueFx(V);if(Q){V.jumpToEnd()}}return U},beforeAnimate:function(){var Q=this.shadow;if(Q&&!Q.disabled&&!Q.animate){Q.hide()}},boxWrap:function(Q){Q=Q||"x-box";var R=Ext.get(this.insertHtml("beforeBegin","<div class='"+Q+"' role='presentation'>"+Ext.String.format(P,Q)+"</div>"));R.selectNode("."+Q+"-mc").appendChild(this.dom);return R},clean:function(R){var T=this,V=T.dom,U=T.getData(),W=V.firstChild,S=-1,Q;if(U.isCleaned&&R!==true){return T}while(W){Q=W.nextSibling;if(W.nodeType===3){if(!(o.test(W.nodeValue))){V.removeChild(W)}else{if(Q&&Q.nodeType===3){W.appendData(Ext.String.trim(Q.data));V.removeChild(Q);Q=W.nextSibling;W.nodeIndex=++S}}}else{Ext.fly(W,"_clean").clean();W.nodeIndex=++S}W=Q}U.isCleaned=true;return T},empty:M?function(){var Q=this.dom;if(Q.firstChild){M.setStartBefore(Q.firstChild);M.setEndAfter(Q.lastChild);M.deleteContents()}}:function(){var Q=this.dom;while(Q.lastChild){Q.removeChild(Q.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(Q){Q=Q||"";return this.setStyle({left:Q,right:Q,top:Q,bottom:Q,"z-index":"",position:"static"})},createProxy:function(Q,U,T){Q=(typeof Q==="object")?Q:{tag:"div",role:"presentation",cls:Q};var S=this,R=U?Ext.DomHelper.append(U,Q,true):Ext.DomHelper.insertBefore(S.dom,Q,true);R.setVisibilityMode(i.DISPLAY);R.hide();if(T&&S.setBox&&S.getBox){R.setBox(S.getBox())}return R},clearOpacity:function(){return this.setOpacity("")},clip:function(){var R=this,S=R.getData(),Q;if(!S[p]){S[p]=true;Q=R.getStyle([J,t,s]);S[v]={o:Q[J],x:Q[t],y:Q[s]};R.setStyle(J,L);R.setStyle(t,L);R.setStyle(s,L)}return R},destroy:function(){var S=this,U=S.dom,T=S.getData(),R,Q;if(U&&S.isAnimate){S.stopAnimation()}arguments.callee.$previous.call(this);if(U&&Ext.isIE8&&(U.window!=U)&&(U.nodeType!==9)&&(U.tagName!=="BODY")&&(U.tagName!=="HTML")){K[K.length]=U;c()}if(T){R=T.maskEl;Q=T.maskMsg;if(R){R.destroy()}if(Q){Q.destroy()}}},enableDisplayMode:function(R){var Q=this;Q.setVisibilityMode(i.DISPLAY);if(R!==undefined){Q.getData()[m]=R}return Q},fadeIn:function(S){var Q=this,R=Q.dom;Q.animate(Ext.apply({},S,{opacity:1,internalListeners:{beforeanimate:function(U){var T=Ext.fly(R,"_anim");if(T.isStyle("display","none")){T.setDisplayed("")}else{T.show()}}}}));return this},fadeOut:function(S){var Q=this,R=Q.dom;S=Ext.apply({opacity:0,internalListeners:{afteranimate:function(U){if(R&&U.to.opacity===0){var T=Ext.fly(R,"_anim");if(S.useDisplay){T.setDisplayed(false)}else{T.hide()}}}}},S);Q.animate(S);return Q},fixDisplay:function(){var Q=this;if(Q.isStyle(a,F)){Q.setStyle(e,L);Q.setStyle(a,N(Q));if(Q.isStyle(a,F)){Q.setStyle(a,"block")}}},frame:function(Q,T,U){var S=this,V=S.dom,R;Q=Q||"#C3DAF9";T=T||1;U=U||{};R=function(){var Z=Ext.fly(V,"_anim"),Y=this,aa,X,W;Z.show();aa=Z.getBox();X=Ext.getBody().createChild({role:"presentation",id:Z.dom.id+"-anim-proxy",style:{position:"absolute","pointer-events":"none","z-index":35000,border:"0px solid "+Q}});W=new Ext.fx.Anim({target:X,duration:U.duration||1000,iterations:T,from:{top:aa.y,left:aa.x,borderWidth:0,opacity:1,height:aa.height,width:aa.width},to:{top:aa.y-20,left:aa.x-20,borderWidth:10,opacity:0,height:aa.height+40,width:aa.width+40}});W.on("afteranimate",function(){X.destroy();Y.end()})};S.animate({duration:(Math.max(U.duration,500)*2)||2000,listeners:{beforeanimate:{fn:R}},callback:U.callback,scope:U.scope});return S},getColor:function(R,S,X){var U=this.getStyle(R),T=X||X===""?X:"#",W,Q,V=0;if(!U||(/transparent|inherit/.test(U))){return S}if(/^r/.test(U)){U=U.slice(4,U.length-1).split(",");Q=U.length;for(;V<Q;V++){W=parseInt(U[V],10);T+=(W<16?"0":"")+W.toString(16)}}else{U=U.replace("#","");T+=U.length===3?U.replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3"):U}return(T.length>5?T.toLowerCase():S)},getLoader:function(){var R=this,S=R.getData(),Q=S.loader;if(!Q){S.loader=Q=new Ext.ElementLoader({target:R})}return Q},getPositioning:function(R){var Q=this.getStyle(["left","top","position","z-index"]),S=this.dom;if(R){if(Q.left==="auto"){Q.left=S.offsetLeft+"px"}if(Q.top==="auto"){Q.top=S.offsetTop+"px"}}return Q},ghost:function(Q,T){var S=this,U=S.dom,R;Q=Q||"b";R=function(){var Y=Ext.fly(U,"_anim"),X=Y.getWidth(),W=Y.getHeight(),Z=Y.getXY(),V=Y.getPositioning(),aa={opacity:0};switch(Q){case"t":aa.y=Z[1]-W;break;case"l":aa.x=Z[0]-X;break;case"r":aa.x=Z[0]+X;break;case"b":aa.y=Z[1]+W;break;case"tl":aa.x=Z[0]-X;aa.y=Z[1]-W;break;case"bl":aa.x=Z[0]-X;aa.y=Z[1]+W;break;case"br":aa.x=Z[0]+X;aa.y=Z[1]+W;break;case"tr":aa.x=Z[0]+X;aa.y=Z[1]-W;break}this.to=aa;this.on("afteranimate",function(){var ab=Ext.fly(U,"_anim");if(ab){ab.hide();ab.clearOpacity();ab.setPositioning(V)}})};S.animate(Ext.applyIf(T||{},{duration:500,easing:"ease-out",listeners:{beforeanimate:R}}));return S},hide:function(Q){if(typeof Q==="string"){this.setVisible(false,Q);return this}this.setVisible(false,this.anim(Q));return this},highlight:function(T,R){var X=this,U=X.dom,Z={},W,aa,V,S,Q,Y;R=R||{};S=R.listeners||{};V=R.attr||"backgroundColor";Z[V]=T||"ffff9c";if(!R.to){aa={};aa[V]=R.endColor||X.getColor(V,"ffffff","")}else{aa=R.to}R.listeners=Ext.apply(Ext.apply({},S),{beforeanimate:function(){W=U.style[V];var ab=Ext.fly(U,"_anim");ab.clearOpacity();ab.show();Q=S.beforeanimate;if(Q){Y=Q.fn||Q;return Y.apply(Q.scope||S.scope||l,arguments)}},afteranimate:function(){if(U){U.style[V]=W}Q=S.afteranimate;if(Q){Y=Q.fn||Q;Y.apply(Q.scope||S.scope||l,arguments)}}});X.animate(Ext.apply({},R,{duration:1000,easing:"ease-in",from:Z,to:aa}));return X},hover:function(R,Q,T,S){var U=this;U.on("mouseenter",R,T||U.dom,S);U.on("mouseleave",Q,T||U.dom,S);return U},initDD:function(S,R,T){var Q=new Ext.dd.DD(Ext.id(this.dom),S,R);return Ext.apply(Q,T)},initDDProxy:function(S,R,T){var Q=new Ext.dd.DDProxy(Ext.id(this.dom),S,R);return Ext.apply(Q,T)},initDDTarget:function(S,R,T){var Q=new Ext.dd.DDTarget(Ext.id(this.dom),S,R);return Ext.apply(Q,T)},isFocusable:function(){var R=this.dom,Q=false,S;if(R&&!R.disabled){S=R.nodeName;Q=!!Ext.Element.naturallyFocusableTags[S]||((S==="A"||S==="LINK")&&!!R.href)||R.getAttribute("tabindex")!=null||R.contentEditable==="true";if(Ext.isIE8&&S==="INPUT"&&R.type==="hidden"){Q=false}Q=Q&&this.isVisible(true)}return Q},isInputField:function(){var R=this.dom,Q=R.contentEditable;if((E[R.tagName]&&R.type!=="button")||(Q===""||Q==="true")){return true}return false},isTabbable:function(){var S=this.dom,U=false,T,R,Q;if(S&&!S.disabled){T=S.nodeName;Q=S.getAttribute("tabindex");R=Q!=null;Q-=0;if(T==="A"||T==="LINK"){if(S.href){U=R&&Q<0?false:true}else{if(S.contentEditable==="true"){U=!R||(R&&Q>=0)?true:false}else{U=R&&Q>=0?true:false}}}else{if(S.contentEditable==="true"||Ext.Element.naturallyTabbableTags[T]){U=R&&Q<0?false:true}else{if(R&&Q>=0){U=true}}}if(Ext.isIE8&&T==="INPUT"&&S.type==="hidden"){U=false}U=U&&(!this.component||this.component.isVisible(true))&&this.isVisible(true)}return U},isMasked:function(Q){var U=this,W=U.getData(),T=W.maskEl,R=W.maskMsg,V=false,S;if(T&&T.isVisible()){if(R){R.center(U)}V=true}else{if(Q){S=U.findParentNode();if(S){return Ext.fly(S).isMasked(Q)}}}return V},isScrollable:function(){var Q=this.dom;return Q.scrollHeight>Q.clientHeight||Q.scrollWidth>Q.clientWidth},load:function(Q){this.getLoader().load(Q);return this},mask:function(X,V,Q){var T=this,W=T.dom,U=T.getData(),S=U.maskEl,R;if(!(r.test(W.tagName)&&T.getStyle("position")==="static")){T.addCls(y)}if(S){S.destroy()}S=Ext.DomHelper.append(W,{role:"presentation",cls:"x-mask x-border-box",children:{role:"presentation",cls:V?u+" "+V:u,cn:{tag:"div",role:"presentation",cls:"x-mask-msg-inner",cn:{tag:"div",role:"presentation",cls:"x-mask-msg-text",html:X||""}}}},true);R=Ext.get(S.dom.firstChild);U.maskEl=S;T.addCls(n);S.setDisplayed(true);if(typeof X==="string"){R.setDisplayed(true);R.center(T)}else{R.setDisplayed(false)}if(W===D.body){S.addCls("x-mask-fixed")}else{T.saveTabbableState()}T.saveChildrenTabbableState();if(Ext.isIE9m&&W!==D.body&&T.isStyle("height","auto")){S.setSize(undefined,Q||T.getHeight())}return S},monitorMouseLeave:function(Q,T,S){var U=this,V,R={mouseleave:function(W){if(Ext.isIE9m){W.enableIEAsync()}V=Ext.defer(T,Q,S||U,[W])},mouseenter:function(){clearTimeout(V)}};U.on(R);return R},puff:function(U){var T=this,V=T.dom,R,S=T.getBox(),Q=T.getStyle(["width","height","left","right","top","bottom","position","z-index","font-size","opacity"],true);U=Ext.applyIf(U||{},{easing:"ease-out",duration:500,useDisplay:false});R=function(){var W=Ext.fly(V,"_anim");W.clearOpacity();W.show();this.to={width:S.width*2,height:S.height*2,x:S.x-(S.width/2),y:S.y-(S.height/2),opacity:0,fontSize:"200%"};this.on("afteranimate",function(){var X=Ext.fly(V,"_anim");if(X){if(U.useDisplay){X.setDisplayed(false)}else{X.hide()}X.setStyle(Q);Ext.callback(U.callback,U.scope)}})};T.animate({duration:U.duration,easing:U.easing,listeners:{beforeanimate:{fn:R}}});return T},selectable:function(){var Q=this;Q.dom.unselectable="";Q.removeCls(i.unselectableCls);Q.addCls(i.selectableCls);return Q},setCapture:function(){var Q=this.dom;if(Ext.isIE9m&&Q.setCapture){Q.setCapture()}},setDisplayed:function(R){var Q=this;if(typeof R==="boolean"){R=R?N(Q):F}Q.setStyle(a,R);if(Q.shadow||Q.shim){Q.setUnderlaysVisible(R!==F)}return Q},setHeight:function(Q,R){var S=this;if(!R||!S.anim){arguments.callee.$previous.apply(this,arguments)}else{if(!Ext.isObject(R)){R={}}S.animate(Ext.applyIf({to:{height:Q}},R))}return S},setHorizontal:function(){var R=this,Q=R.verticalCls;delete R.vertical;if(Q){delete R.verticalCls;R.removeCls(Q)}delete R.setWidth;delete R.setHeight;if(!Ext.isIE8){delete R.getWidth;delete R.getHeight}delete R.styleHooks},updateText:function(T){var Q=this,S,R;if(S){R=S.firstChild;if(!R||(R.nodeType!==3||R.nextSibling)){R=D.createTextNode();Q.empty();S.appendChild(R)}if(T){R.data=T}}},setHtml:function(S,R,X,T){var U=this,W,V,Q;if(!U.dom){return U}S=S||"";V=U.dom;if(R!==true){V.innerHTML=S;Ext.callback(X,U);return U}W=Ext.id();S+='<span id="'+W+'" role="presentation"></span>';Q=Ext.interval(function(){var ae,ab,aa,Z,Y,ad,ac;if(!(ad=D.getElementById(W))){return false}clearInterval(Q);Ext.removeNode(ad);ae=Ext.getHead().dom;while((ab=I.exec(S))){aa=ab[1];Z=aa?aa.match(b):false;if(Z&&Z[2]){ac=D.createElement("script");ac.src=Z[2];Y=aa.match(h);if(Y&&Y[2]){ac.type=Y[2]}ae.appendChild(ac)}else{if(ab[2]&&ab[2].length>0){if(T){Ext.functionFactory(ab[2]).call(T)}else{Ext.globalEval(ab[2])}}}}Ext.callback(X,T||U)},20);V.innerHTML=S.replace(C,"");return U},setOpacity:function(R,Q){var S=this;if(!S.dom){return S}if(!Q||!S.anim){S.setStyle("opacity",R)}else{if(typeof Q!="object"){Q={duration:350,easing:"ease-in"}}S.animate(Ext.applyIf({to:{opacity:R}},Q))}return S},setPositioning:function(Q){return this.setStyle(Q)},setVertical:function(T,Q){var S=this,R=i.prototype;S.vertical=true;if(Q){S.addCls(S.verticalCls=Q)}S.setWidth=R.setHeight;S.setHeight=R.setWidth;if(!Ext.isIE8){S.getWidth=R.getHeight;S.getHeight=R.getWidth}S.styleHooks=(T===270)?R.verticalStyleHooks270:R.verticalStyleHooks90},setSize:function(S,Q,R){var T=this;if(Ext.isObject(S)){R=Q;Q=S.height;S=S.width}if(!R||!T.anim){T.dom.style.width=i.addUnits(S);T.dom.style.height=i.addUnits(Q);if(T.shadow||T.shim){T.syncUnderlays()}}else{if(R===true){R={}}T.animate(Ext.applyIf({to:{width:S,height:Q}},R))}return T},setVisible:function(U,Q){var S=this,T=S.dom,R=w(S);if(typeof Q==="string"){switch(Q){case a:R=i.DISPLAY;break;case e:R=i.VISIBILITY;break;case O:R=i.OFFSETS;break}S.setVisibilityMode(R);Q=false}if(!Q||!S.anim){if(R===i.DISPLAY){return S.setDisplayed(U)}else{if(R===i.OFFSETS){S[U?"removeCls":"addCls"](k)}else{if(R===i.VISIBILITY){S.fixDisplay();T.style.visibility=U?"":L}}}}else{if(U){S.setOpacity(0.01);S.setVisible(true)}if(!Ext.isObject(Q)){Q={duration:350,easing:"ease-in"}}S.animate(Ext.applyIf({callback:function(){if(!U){Ext.fly(T).setVisible(false).setOpacity(1)}},to:{opacity:(U)?1:0}},Q))}S.getData()[x]=U;if(S.shadow||S.shim){S.setUnderlaysVisible(U)}return S},setWidth:function(R,Q){var S=this;if(!Q||!S.anim){arguments.callee.$previous.apply(this,arguments)}else{if(!Ext.isObject(Q)){Q={}}S.animate(Ext.applyIf({to:{width:R}},Q))}return S},setX:function(Q,R){return this.setXY([Q,this.getY()],R)},setXY:function(S,Q){var R=this;if(!Q||!R.anim){arguments.callee.$previous.call(this,S)}else{if(!Ext.isObject(Q)){Q={}}R.animate(Ext.applyIf({to:{x:S[0],y:S[1]}},Q))}return this},setY:function(R,Q){return this.setXY([this.getX(),R],Q)},show:function(Q){if(typeof Q==="string"){this.setVisible(true,Q);return this}this.setVisible(true,this.anim(Q));return this},slideIn:function(T,S,U){var W=this,R=W.dom,Z=R.style,Y,Q,V,X;T=T||"t";S=S||{};Y=function(){var ae=this,ad=S.listeners,ac=Ext.fly(R,"_anim"),af,aa,ag,ab;if(!U){ac.fixDisplay()}af=ac.getBox();if((T=="t"||T=="b")&&af.height===0){af.height=R.scrollHeight}else{if((T=="l"||T=="r")&&af.width===0){af.width=R.scrollWidth}}aa=ac.getStyle(["width","height","left","right","top","bottom","position","z-index"],true);ac.setSize(af.width,af.height);if(S.preserveScroll){V=ac.cacheScrollValues()}ab=ac.wrap({role:"presentation",id:Ext.id()+"-anim-wrap-for-"+ac.dom.id,style:{visibility:U?"visible":"hidden"}});X=ab.dom.parentNode;ab.setPositioning(ac.getPositioning());if(ab.isStyle("position","static")){ab.position("relative")}ac.clearPositioning("auto");ab.clip();if(V){V()}ac.setStyle({visibility:"",position:"absolute"});if(U){ab.setSize(af.width,af.height)}switch(T){case"t":ag={from:{width:af.width+"px",height:"0px"},to:{width:af.width+"px",height:af.height+"px"}};Z.bottom="0px";break;case"l":ag={from:{width:"0px",height:af.height+"px"},to:{width:af.width+"px",height:af.height+"px"}};W.anchorAnimX(T);break;case"r":ag={from:{x:af.x+af.width,width:"0px",height:af.height+"px"},to:{x:af.x,width:af.width+"px",height:af.height+"px"}};W.anchorAnimX(T);break;case"b":ag={from:{y:af.y+af.height,width:af.width+"px",height:"0px"},to:{y:af.y,width:af.width+"px",height:af.height+"px"}};break;case"tl":ag={from:{x:af.x,y:af.y,width:"0px",height:"0px"},to:{width:af.width+"px",height:af.height+"px"}};Z.bottom="0px";W.anchorAnimX("l");break;case"bl":ag={from:{y:af.y+af.height,width:"0px",height:"0px"},to:{y:af.y,width:af.width+"px",height:af.height+"px"}};W.anchorAnimX("l");break;case"br":ag={from:{x:af.x+af.width,y:af.y+af.height,width:"0px",height:"0px"},to:{x:af.x,y:af.y,width:af.width+"px",height:af.height+"px"}};W.anchorAnimX("r");break;case"tr":ag={from:{x:af.x+af.width,width:"0px",height:"0px"},to:{x:af.x,width:af.width+"px",height:af.height+"px"}};Z.bottom="0px";W.anchorAnimX("r");break}ab.show();Q=Ext.apply({},S);delete Q.listeners;Q=new Ext.fx.Anim(Ext.applyIf(Q,{target:ab,duration:500,easing:"ease-out",from:U?ag.to:ag.from,to:U?ag.from:ag.to}));Q.on("afteranimate",function(){var ah=Ext.fly(R,"_anim");ah.setStyle(aa);if(U){if(!S.preventHide){if(S.useDisplay){ah.setDisplayed(false)}else{ah.hide()}}}if(ab.dom){if(ab.dom.parentNode){ab.dom.parentNode.insertBefore(ah.dom,ab.dom)}else{X.appendChild(ah.dom)}ab.destroy()}if(V){V()}ae.end()});if(ad){Q.on(ad)}};W.animate({duration:S.duration?Math.max(S.duration,500)*2:1000,listeners:{beforeanimate:Y}});return W},slideOut:function(Q,R){return this.slideIn(Q,R,true)},swallowEvent:function(R,S){var U=this,V,Q,T=function(W){W.stopPropagation();if(S){W.preventDefault()}};if(Ext.isArray(R)){Q=R.length;for(V=0;V<Q;V++){U.on(R[V],T)}return U}U.on(R,T);return U},switchOff:function(S){var R=this,T=R.dom,Q;S=Ext.applyIf(S||{},{easing:"ease-in",duration:500,remove:false,useDisplay:false});Q=function(){var Y=Ext.fly(T,"_anim"),X=this,W=Y.getSize(),Z=Y.getXY(),V,U;Y.clearOpacity();Y.clip();U=Y.getPositioning();V=new Ext.fx.Animator({target:T,duration:S.duration,easing:S.easing,keyframes:{33:{opacity:0.3},66:{height:1,y:Z[1]+W.height/2},100:{width:1,x:Z[0]+W.width/2}}});V.on("afteranimate",function(){var aa=Ext.fly(T,"_anim");if(S.useDisplay){aa.setDisplayed(false)}else{aa.hide()}aa.clearOpacity();aa.setPositioning(U);aa.setSize(W);X.end()})};R.animate({duration:(Math.max(S.duration,500)*2),listeners:{beforeanimate:{fn:Q}},callback:S.callback,scope:S.scope});return R},syncContent:function(R){R=Ext.getDom(R);var S=R.childNodes,ad=S.length,ab=this.dom,ac=ab.childNodes,Z=ac.length,X,aa,U,W,T,Q,Y,V=ab._extData;if(Ext.isIE9m&&ab.mergeAttributes){ab.mergeAttributes(R,true);ab.src=R.src}else{T=R.attributes;Q=T.length;for(X=0;X<Q;X++){Y=T[X].name;if(Y!=="id"){ab.setAttribute(Y,T[X].value)}}}if(V){V.isSynchronized=false}if(ad!==Z){ab.innerHTML=R.innerHTML;return}for(X=0;X<ad;X++){U=S[X];aa=ac[X];W=U.nodeType;if(W!==aa.nodeType||(W===1&&U.tagName!==aa.tagName)){ab.innerHTML=R.innerHTML;return}if(W===3){aa.data=U.data}else{if(U.id&&aa.id!==U.id){aa.id=U.id}aa.style.cssText=U.style.cssText;aa.className=U.className;Ext.fly(aa,"_syncContent").syncContent(U)}}},toggle:function(Q){var R=this;R.setVisible(!R.isVisible(),R.anim(Q));return R},unmask:function(){var S=this,T=S.getData(),R=T.maskEl,Q;if(R){Q=R.dom.style;if(Q.clearExpression){Q.clearExpression("width");Q.clearExpression("height")}if(R){R.destroy();delete T.maskEl}S.removeCls([n,y])}S.restoreChildrenTabbableState();if(S.dom!==D.body){S.restoreTabbableState()}},unclip:function(){var R=this,S=R.getData(),Q;if(S[p]){S[p]=false;Q=S[v];if(Q.o){R.setStyle(J,Q.o)}if(Q.x){R.setStyle(t,Q.x)}if(Q.y){R.setStyle(s,Q.y)}}return R},translate:function(Q,S,R){if(Ext.supports.CssTransforms&&!Ext.isIE9m){arguments.callee.$previous.apply(this,arguments)}else{if(Q!=null){this.dom.style.left=Q+"px"}if(S!=null){this.dom.style.top=S+"px"}}},unselectable:function(){var Q=this;if(Ext.isOpera){Q.dom.unselectable="on"}Q.removeCls(i.selectableCls);Q.addCls(i.unselectableCls);return Q},privates:{needsTabIndex:function(){var R=this.dom,S,Q;if(R){S=R.nodeName;Q=!!Ext.Element.naturallyFocusableTags[S]||((S==="A"||S==="LINK")&&!!R.href)||R.getAttribute("tabindex")!=null||R.contentEditable==="true";return !Q}},findTabbableElements:function(R,Q,S,V){R=R!=undefined?R:true;var U=this,T;T=U.selectTabbableElements(R,Q,S,V);if(U.isTabbable()){T.unshift(R?U.dom:U)}return T},selectTabbableElements:function(ac,V,W,ab){var aa=[],Q,U,S,X,Y,Z,T,R;ac=ac!=undefined?ac:true;Q=this.dom.querySelectorAll(V||Ext.Element.tabbableSelector);Y=Q.length;if(!Y){return aa}if(ab){X=Y-1;Z=0;T=-1}else{X=0;Z=Y-1;T=1}for(;;X+=T){if((T>0&&X>Z)||(T<0&&X<Z)){break}U=Q[X];R=U.getAttribute("tabindex")-0;if(!(R<0)){S=ac?Ext.fly(U):Ext.get(U);if(S.isTabbable()){aa.push(ac?U:S)}}if(aa.length>=W){return aa}}return aa},selectFirstTabbableElement:function(R,Q){var S=this.selectTabbableElements(R,Q,1,false);return S[0]},selectLastTabbableElement:function(R,Q){var S=this.selectTabbableElements(true,Q,1,true)[0];return(R!==false)?S:Ext.get(S)},saveTabbableState:function(R){var Q=Ext.Element.tabbableSavedFlagAttribute,S=this.dom;if(S.hasAttribute(Q)){return}R=R||Ext.Element.tabbableSavedAttribute;if(S.hasAttribute("tabindex")){S.setAttribute(R,S.getAttribute("tabindex"))}else{S.setAttribute(R,"none")}S.setAttribute("tabindex",-1);S.setAttribute(Q,true);return this},restoreTabbableState:function(S){var R=Ext.Element.tabbableSavedFlagAttribute,T=this.dom,Q;S=S||Ext.Element.tabbableSavedAttribute;if(!T.hasAttribute(R)||!T.hasAttribute(S)){return}Q=T.getAttribute(S);if(Q==="none"){T.removeAttribute("tabindex")}else{T.setAttribute("tabindex",Q)}T.removeAttribute(S);T.removeAttribute(R);return this},saveChildrenTabbableState:function(T){var S,U,R,Q;if(this.dom){S=this.selectTabbableElements();for(R=0,Q=S.length;R<Q;R++){U=Ext.fly(S[R]);U.saveTabbableState(T)}}return S},restoreChildrenTabbableState:function(T,S){var U,R,Q;if(this.dom){T=T||Ext.Element.tabbableSavedAttribute;S=S||this.dom.querySelectorAll("["+T+"]");for(R=0,Q=S.length;R<Q;R++){U=Ext.fly(S[R]);U.restoreTabbableState(T)}}return S}},deprecated:{"4.0":{methods:{pause:function(Q){var R=this;Ext.fx.Manager.setFxDefaults(R.id,{delay:Q});return R},scale:function(Q,R,S){this.animate(Ext.apply({},S,{width:Q,height:R}));return this},shift:function(Q){this.animate(Q);return this}}},"4.2":{methods:{moveTo:function(Q,S,R){return this.setXY([Q,S],R)},setBounds:function(R,U,T,Q,S){return this.setBox({x:R,y:U,width:T,height:Q},S)},setLeftTop:function(T,S){var R=this,Q=R.dom.style;Q.left=i.addUnits(T);Q.top=i.addUnits(S);if(R.shadow||R.shim){R.syncUnderlays()}return R},setLocation:function(Q,S,R){return this.setXY([Q,S],R)}}},"5.0":{methods:{getAttributeNS:function(R,Q){return this.getAttribute(Q,R)},getCenterXY:function(){return this.getAlignToXY(D,"c-c")},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(B))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(d))||0},getStyleSize:function(){var U=this,V=this.dom,R=(V===D||V===D.body),T,Q,S;if(R){return{width:i.getViewportWidth(),height:i.getViewportHeight()}}T=U.getStyle(["height","width"],true);if(T.width&&T.width!=="auto"){Q=parseFloat(T.width)}if(T.height&&T.height!=="auto"){S=parseFloat(T.height)}return{width:Q||U.getWidth(true),height:S||U.getHeight(true)}},isBorderBox:function(){return true},isDisplayed:function(){return !this.isStyle("display","none")},focusable:"isFocusable"}}}}})(),function(){var p=Ext.dom.Element,o=p.prototype,v=!Ext.isIE8,b=document,l=b.defaultView,u=/alpha\(opacity=(.*)\)/i,h=/^\s+|\s+$/g,w=o.styleHooks,s=Ext.supports,e,n,d,r,g,x,c;o._init(p);delete o._init;Ext.plainTableCls="x-table-plain";Ext.plainListCls="x-list-plain";if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}w.opacity={name:"opacity",afterSet:function(z,y,k){var A=k.shadow;if(A){A.setOpacity(y)}}};if(!s.Opacity&&Ext.isIE){Ext.apply(w.opacity,{get:function(A){var z=A.style.filter,y,k;if(z.match){y=z.match(u);if(y){k=parseFloat(y[1]);if(!isNaN(k)){return k?k/100:0}}}return 1},set:function(A,y){var k=A.style,z=k.filter.replace(u,"").replace(h,"");k.zoom=1;if(typeof(y)==="number"&&y>=0&&y<1){y*=100;k.filter=z+(z.length?" ":"")+"alpha(opacity="+y+")"}else{k.filter=z}}})}if(!s.matchesSelector){var i=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,j=/\-/g,a,t=function(k,y){var z=new RegExp("(?:^|\\s+)"+y.replace(j,"\\-")+"(?:\\s+|$)");if(k&&k!=="*"){k=k.toUpperCase();return function(A){return A.tagName===k&&z.test(A.className)}}return function(A){return z.test(A.className)}},q=function(k){k=k.toUpperCase();return function(y){return y.tagName===k}},m={};o.matcherCache=m;o.is=function(k){if(!k){return true}var y=this.dom,E,A,D,C,B,z,F;if(y.nodeType!==1){return false}if(!(D=Ext.isFunction(k)?k:m[k])){if(!(A=k.match(i))){C=y.parentNode;if(!C){B=true;C=a||(a=b.createDocumentFragment());a.appendChild(y)}z=Ext.Array.indexOf(Ext.fly(C,"_is").query(k),y)!==-1;if(B){a.removeChild(y)}return z}F=A[1];E=A[2];m[k]=D=E?t(F,E):q(F)}return D(y)}}if(!l||!l.getComputedStyle){o.getStyle=function(L,G){var H=this,C=H.dom,N=typeof L!=="string",z=L,I=z,F=1,A=G,y=H.styleHooks,M,E,K,J,B,k,D;if(N){K={};z=I[0];D=0;if(!(F=I.length)){return K}}if(!C||C.documentElement){return K||""}E=C.style;if(G){k=E}else{k=C.currentStyle;if(!k){A=true;k=E}}do{J=y[z];if(!J){y[z]=J={name:p.normalize(z)}}if(J.get){B=J.get(C,H,A,k)}else{M=J.name;B=k[M]}if(!N){return B}K[z]=B;z=I[++D]}while(D<F);return K}}if(Ext.isIE8){c=function(A,y,z,k){if(k[this.styleName]==="none"){return"0px"}return k[this.name]};d=["Top","Right","Bottom","Left"];r=d.length;while(r--){g=d[r];x="border"+g+"Width";w["border-"+g.toLowerCase()+"-width"]=w[x]={name:x,styleName:"border"+g+"Style",get:c}}}Ext.apply(Ext,{enableGarbageCollector:true,isBorderBox:true,useShims:false,getDetachedBody:function(){var k=Ext.detachedBodyEl;if(!k){k=b.createElement("div");Ext.detachedBodyEl=k=new Ext.dom.Fly(k);k.isDetachedBody=true}return k},getElementById:function(z){var y=b.getElementById(z),k;if(!y&&(k=Ext.detachedBodyEl)){y=k.dom.querySelector(Ext.makeIdSelector(z))}return y},addBehaviors:function(B){if(!Ext.isReady){Ext.onInternalReady(function(){Ext.addBehaviors(B)})}else{var y={},A,k,z;for(k in B){if((A=k.split("@"))[1]){z=A[0];if(!y[z]){y[z]=Ext.fly(document).select(z,true)}y[z].on(A[1],B[k])}}y=null}}});if(Ext.isIE9m){Ext.getElementById=function(z){var y=b.getElementById(z),k;if(!y&&(k=Ext.detachedBodyEl)){y=k.dom.all[z]}return y};o.getById=function(C,k){var B=this.dom,y=null,A,z;if(B){z=(v&&b.getElementById(C))||B.all[C];if(z){if(k){y=z}else{A=Ext.cache[C];if(A){if(A.skipGarbageCollection||!Ext.isGarbage(A.dom)){y=A}else{A.destroy()}}y=y||new Ext.Element(z)}}}return y}}else{if(!b.querySelector){Ext.getDetachedBody=Ext.getBody;Ext.getElementById=function(k){return b.getElementById(k)};o.getById=function(z,k){var y=b.getElementById(z);return k?y:(y?Ext.get(y):null)}}}if(Ext.isIE&&!(Ext.isIE9p&&b.documentMode>=9)){o.getAttribute=function(k,z){var A=this.dom,y;if(z){y=typeof A[z+":"+k];if(y!=="undefined"&&y!=="unknown"){return A[z+":"+k]||null}return null}if(k==="for"){k="htmlFor"}return A[k]||null}}Ext.onInternalReady(function(){var A=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,y=[],F=o.setWidth,G=o.setHeight,K=o.setSize,L=/^\d+(?:\.\d*)?px$/i,E,C,k,J;if(s.FixedTableWidthBug){w.width={name:"width",set:function(R,Q,O){var N=R.style,M=O._needsTableWidthFix,P=N.display;if(M){N.display="none"}N.width=Q;if(M){R.scrollWidth;N.display=P}}};o.setWidth=function(P,N){var R=this,S=R.dom,O=S.style,M=R._needsTableWidthFix,Q=O.display;if(M&&!N){O.display="none"}F.call(R,P,N);if(M&&!N){S.scrollWidth;O.display=Q}return R};o.setSize=function(Q,N,O){var S=this,T=S.dom,P=T.style,M=S._needsTableWidthFix,R=P.display;if(M&&!O){P.display="none"}K.call(S,Q,N,O);if(M&&!O){T.scrollWidth;P.display=R}return S}}if(Ext.isIE8){w.height={name:"height",set:function(R,Q,O){var N=O.component,P,M;if(N&&N._syncFrameHeight&&this===N.el){M=N.frameBody.dom.style;if(L.test(Q)){P=N.getFrameInfo();if(P){M.height=(parseInt(Q,10)-P.height)+"px"}}else{if(!Q||Q==="auto"){M.height=""}}}R.style.height=Q}};o.setHeight=function(M,O){var P=this.component,Q,N;if(P&&P._syncFrameHeight&&this===P.el){N=P.frameBody.dom.style;if(!M||M==="auto"){N.height=""}else{Q=P.getFrameInfo();if(Q){N.height=(M-Q.height)+"px"}}}return G.call(this,M,O)};o.setSize=function(Q,M,O){var P=this.component,R,N;if(P&&P._syncFrameHeight&&this===P.el){N=P.frameBody.dom.style;if(!M||M==="auto"){N.height=""}else{R=P.getFrameInfo();if(R){N.height=(M-R.height)+"px"}}}return K.call(this,Q,M,O)}}Ext.getDoc().on("selectstart",function(Q,R){var P=p.selectableCls,O=p.unselectableCls,M=R&&R.tagName;M=M&&M.toLowerCase();if(M==="input"||M==="textarea"){return}while(R&&R.nodeType===1&&R!==b.documentElement){var N=Ext.fly(R);if(N.hasCls(P)){return}if(N.hasCls(O)){Q.stopEvent();return}R=R.parentNode}});function D(Q,N,P,M){var O=M[this.name]||"";return A.test(O)?"transparent":O}function I(N,O,M){return function(){N.selectionStart=O;N.selectionEnd=M}}function H(Q){var O=s.DisplayChangeInputSelectionBug,P=s.DisplayChangeTextAreaSelectionBug,R,M,S,N;if(O||P){R=p.getActiveElement();M=R&&R.tagName;if((P&&M==="TEXTAREA")||(O&&M==="INPUT"&&R.type==="text")){if(Ext.fly(Q).isAncestor(R)){S=R.selectionStart;N=R.selectionEnd;if(Ext.isNumber(S)&&Ext.isNumber(N)){return I(R,S,N)}}}}return Ext.emptyFn}function B(S,P,R,O){var M=O.marginRight,N,Q;if(M!=="0px"){N=S.style;Q=N.display;N.display="inline-block";M=(R?O:S.ownerDocument.defaultView.getComputedStyle(S,null)).marginRight;N.display=Q}return M}function z(T,Q,S,P){var M=P.marginRight,O,N,R;if(M!=="0px"){O=T.style;N=H(T);R=O.display;O.display="inline-block";M=(S?P:T.ownerDocument.defaultView.getComputedStyle(T,"")).marginRight;O.display=R;N()}return M}if(!s.RightMargin){w.marginRight=w["margin-right"]={name:"marginRight",get:(s.DisplayChangeInputSelectionBug||s.DisplayChangeTextAreaSelectionBug)?z:B}}if(!s.TransparentColor){E=["background-color","border-color","color","outline-color"];for(C=E.length;C--;){k=E[C];J=p.normalize(k);w[k]=w[J]={name:J,get:D}}}o.verticalStyleHooks90=e=Ext.Object.chain(w);o.verticalStyleHooks270=n=Ext.Object.chain(w);e.width=w.height||{name:"height"};e.height=w.width||{name:"width"};e["margin-top"]={name:"marginLeft"};e["margin-right"]={name:"marginTop"};e["margin-bottom"]={name:"marginRight"};e["margin-left"]={name:"marginBottom"};e["padding-top"]={name:"paddingLeft"};e["padding-right"]={name:"paddingTop"};e["padding-bottom"]={name:"paddingRight"};e["padding-left"]={name:"paddingBottom"};e["border-top"]={name:"borderLeft"};e["border-right"]={name:"borderTop"};e["border-bottom"]={name:"borderRight"};e["border-left"]={name:"borderBottom"};n.width=w.height||{name:"height"};n.height=w.width||{name:"width"};n["margin-top"]={name:"marginRight"};n["margin-right"]={name:"marginBottom"};n["margin-bottom"]={name:"marginLeft"};n["margin-left"]={name:"marginTop"};n["padding-top"]={name:"paddingRight"};n["padding-right"]={name:"paddingBottom"};n["padding-bottom"]={name:"paddingLeft"};n["padding-left"]={name:"paddingTop"};n["border-top"]={name:"borderRight"};n["border-right"]={name:"borderBottom"};n["border-bottom"]={name:"borderLeft"};n["border-left"]={name:"borderTop"};if(!Ext.scopeCss){y.push("x-body")}if(s.Touch){y.push("x-touch")}if(Ext.isIE&&Ext.isIE9m){y.push("x-ie","x-ie9m");y.push("x-ie8p");if(Ext.isIE8){y.push("x-ie8")}else{y.push("x-ie9","x-ie9p")}if(Ext.isIE8m){y.push("x-ie8m")}}if(Ext.isIE10){y.push("x-ie10")}if(Ext.isIE11){y.push("x-ie11")}if(Ext.isGecko){y.push("x-gecko")}if(Ext.isOpera){y.push("x-opera")}if(Ext.isOpera12m){y.push("x-opera12m")}if(Ext.isWebKit){y.push("x-webkit")}if(Ext.isSafari){y.push("x-safari")}if(Ext.isChrome){y.push("x-chrome")}if(Ext.isMac){y.push("x-mac")}if(Ext.isLinux){y.push("x-linux")}if(!s.CSS3BorderRadius){y.push("x-nbr")}if(!s.CSS3LinearGradient){y.push("x-nlg")}if(s.Touch){y.push("x-touch")}Ext.getBody().addCls(y)},null,{priority:1500})});Ext.define("Ext.rtl.dom.Element",{override:"Ext.dom.Element",rtlXAnchors:{l:"r",r:"l"},_positionTopRight:["position","top","right"],pxRe:/^\d+(?:\.\d*)?px$/i,statics:{rtlParseBox:function(c){var b=Ext.Element.parseBox(c),a;a=b.left;b.left=b.right;b.right=a;return b},rtlUnitizeBox:function(h,g){var e=Ext.Element,d=e.addUnits,c=e.parseBox(h);return d(c.top,g)+" "+d(c.left,g)+" "+d(c.bottom,g)+" "+d(c.right,g)}},anchorAnimX:function(a){if(Ext.rootInheritedState.rtl){a=this.rtlXAnchors[a]}arguments.callee.$previous.apply(this,arguments)},getPositioning:function(c){var a=Ext.rootInheritedState.rtl?"right":"left",b=this.getStyle([a,"top","position","z-index"]),d=this.dom;if(c){if(b[a]==="auto"){b[a]=(a==="left")?(d.offsetLeft+"px"):(d.offsetParent.offsetWidth-d.offsetLeft-d.offsetWidth)}if(b.top==="auto"){b.top=d.offsetTop+"px"}}return b},getXY:function(){var g=document,c=Math.round,h=this.dom,b=0,i=0,e,a;if(h!==g&&h!==g.body){try{e=h.getBoundingClientRect()}catch(d){e={left:0,top:0}}g=Ext.fly(g,"_internal");if(Ext.rootInheritedState.rtl){a=g.rtlGetScroll();b=Ext.Element.getViewportWidth()-e.right+a.left}else{a=g.getScroll();b=e.left+a.left}b=c(b);i=c(e.top+a.top)}return[b,i]},rtlGetLocalX:function(){var c=this,b=c.dom.offsetParent,a=c.getStyle("right");if(!a||a==="auto"){a=0}else{if(c.pxRe.test(a)){a=parseFloat(a)}else{a=c.getX();if(b){a-=Ext.fly(b,"_internal").getX()}}}return a},rtlGetLocalXY:function(){var d=this,c=d.dom.offsetParent,b=d.getStyle(["right","top"]),a=b.right,e=b.top;if(!a||a==="auto"){a=0}else{if(d.pxRe.test(a)){a=parseFloat(a)}else{a=d.getX();if(c){a-=Ext.fly(c,"_internal").getX()}}}if(!e||e==="auto"){e=0}else{if(d.pxRe.test(e)){e=parseFloat(e)}else{e=d.getY();if(c){e-=Ext.fly(c,"_internal").getY()}}}return[a,e]},rtlGetScroll:function(){var d=this,h=d.dom,g=document,b=g.body,a=d.getScroll(),e=Math.abs(a.left),c=(h===g||h===b);if(c?(3&d._rtlDocScrollFlag):(d._rtlScrollFlag===1)){if(c){h=b}e=h.scrollWidth-e-(c?Ext.Element.getViewportWidth():h.clientWidth)}a.left=e;return a},rtlGetScrollLeft:function(){return this.rtlGetScroll().left},rtlNormalizeScrollLeft:function(b){var c=this.dom,a=this._rtlScrollFlag;if(a===0){b=-b}else{if(a===1){b=c.scrollWidth-b-c.clientWidth}}return b},rtlScrollBy:function(b,a,c){var d=this,g=d.dom,e;if(b.length){c=a;a=b[1];b=b[0]}else{if(typeof b!=="number"){c=a;a=b.y;b=b.x}}if(b){e=d.rtlNormalizeScrollLeft(d.constrainScrollLeft(d.rtlGetScrollLeft()+b));d.scrollTo("left",e,c)}if(a){d.scrollTo("top",d.constrainScrollTop(g.scrollTop+a),c)}return d},rtlScrollIntoView:function(a,d,c,b){a=Ext.getDom(a)||Ext.getBody().dom;return this.doScrollIntoView(a,d,c,b,"rtlGetScrollLeft","rtlScrollTo")},rtlScrollTo:function(b,c,a){if(b==="left"){c=this.rtlNormalizeScrollLeft(c)}return this.scrollTo(b,c,a)},rtlSetLocalX:function(a){var c=this,b=c.dom.style;b.left="auto";b.right=(a===null)?"auto":a+"px";if(c.shadow||c.shim){c.syncUnderlays()}return c},rtlSetLocalXY:function(a,d){var c=this,b=c.dom.style;b.left="auto";if(a&&a.length){d=a[1];a=a[0]}if(a===null){b.right="auto"}else{if(a!==undefined){b.right=a+"px"}}if(d===null){b.top="auto"}else{if(d!==undefined){b.top=d+"px"}}if(c.shadow||c.shim){c.syncUnderlays()}return c},rtlSetScrollLeft:function(b){var a=this;a.dom.scrollLeft=a.rtlNormalizeScrollLeft(b);return a},rtlTranslatePoints:function(a,c){var b=this.rtlTranslateXY(a,c);return{right:b.x,top:b.y}},rtlTranslateXY:function(j,h){var g=this,m=g.getStyle(g._positionTopRight),b=(m.position==="relative"),l=parseFloat(m.right),i=parseFloat(m.top),n=g.getXY(),d=g.dom,k,e,c,a;if(j&&j.length){h=j[1];j=j[0]}if(isNaN(l)){k=document;e=k.body;if(d===e){l=0}else{a=d.offsetParent;c=(a&&a!==e&&a!==k.documentElement)?a.scrollWidth:Ext.Element.getViewportWidth();l=c-d.offsetLeft-g.getWidth()}}if(isNaN(i)){i=b?0:g.dom.offsetTop}l=(typeof j==="number")?j-n[0]+l:undefined;i=(typeof h==="number")?h-n[1]+i:undefined;return{x:l,y:i}},translatePoints:function(a,b){return Ext.rootInheritedState.rtl?this.rtlTranslatePoints(a,b):arguments.callee.$previous.apply(this,arguments)},translateXY:function(a,b){return Ext.rootInheritedState.rtl?this.rtlTranslateXY(a,b):arguments.callee.$previous.apply(this,arguments)},wrap:function(){var e=this.parent(),d="x-rtl",c="x-ltr",a=arguments.callee.$previous.apply(this,arguments),b;if(e.hasCls(d)){b=d}else{if(e.hasCls(c)){b=c}}if(b){Ext.fly(a,"_internal").addCls(b)}return a}},function(){var a=this;Ext.CompositeElementLite.importElementMethods();function c(){var e=Ext.getBody().createChild({tag:"div",style:"direction:rtl;position:absolute;overflow:auto;height:100px;width:100px;",children:[{tag:"div",style:"height:30px;width:150px;"}]}),g=e.dom,d=2;if(g.scrollLeft===50){d=1}else{g.scrollLeft=-1;if(g.scrollLeft){d=0}}e.destroy();a.prototype._rtlScrollFlag=d}function b(){var n=document,e=n.documentElement,j=n.body,k=4,l=j.style,m=l.direction,g=Ext.getBody().createChild('<div style="height:20000px;width:20000px;"></div>'),i=g.dom,h,d;l.direction="ltr";h=i.getBoundingClientRect().right;l.direction="rtl";d=i.getBoundingClientRect().right;a.prototype._rtlBodyScrollbarOnRight=(h===d);if(e.scrollLeft>0){k=1}else{e.scrollLeft=-1;if(e.scrollLeft){k=0}else{e.scrollLeft=1;if(e.scrollLeft){k=2}}}g.destroy();if(!m){l.direction="ltr";j.scrollWidth}l.direction=m;a.prototype._rtlDocScrollFlag=k}Ext.onInternalReady(function(){b();c()})});(Ext.cmd.derive("Ext.GlobalEvents",Ext.mixin.Observable,{alternateClassName:"Ext.globalEvents",observableType:"global",singleton:true,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},attachListeners:function(){Ext.get(window).on("resize",this.fireResize,this,{buffer:this.resizeBuffer})},fireResize:function(){var d=this,b=Ext.Element,a=b.getViewportWidth(),c=b.getViewportHeight();if(d.curHeight!==c||d.curWidth!==a){d.curHeight=c;d.curWidth=a;d.fireEvent("resize",a,c)}}},1,0,0,0,0,0,[Ext,"GlobalEvents",Ext,"globalEvents"],function(a){Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)}}));Ext.define("Ext.overrides.GlobalEvents",{override:"Ext.GlobalEvents",attachListeners:function(){this.callParent();Ext.getDoc().on("mousedown",this.fireMouseDown,this)},fireMouseDown:function(a){this.fireEvent("mousedown",a)},deprecated:{5:{methods:{addListener:function(d,h,i,j,c,b,e){var a,g;if(d==="ready"){g=h}else{if(typeof d!=="string"){for(a in d){if(a==="ready"){g=d[a]}}}}if(g){Ext.onReady(g)}this.callParent([d,h,i,j,c,b,e])}}}}});Ext.USE_NATIVE_JSON=false;Ext.JSON=(new (function(){var me=this,hasNative=window.JSON&&JSON.toString()==="[object JSON]",useHasOwn=!!{}.hasOwnProperty,pad=function(n){return n<10?"0"+n:n},doDecode=function(json){return eval("("+json+")")},doEncode=function(o,newline){if(o===null||o===undefined){return"null"}else{if(Ext.isDate(o)){return me.encodeDate(o)}else{if(Ext.isString(o)){if(Ext.isMSDate(o)){return me.encodeMSDate(o)}else{return me.encodeString(o)}}else{if(typeof o==="number"){return isFinite(o)?String(o):"null"}else{if(Ext.isBoolean(o)){return String(o)}else{if(o.toJSON){return o.toJSON()}else{if(Ext.isArray(o)){return encodeArray(o,newline)}else{if(Ext.isObject(o)){return encodeObject(o,newline)}else{if(typeof o==="function"){return"null"}}}}}}}}}return"undefined"},m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\","\v":"\\u000b"},charToReplace=/[\\\"\x00-\x1f\x7f-\uffff]/g,encodeString=function(s){return'"'+s.replace(charToReplace,function(a){var c=m[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(o){return'"'+o+'"'},encodeArrayPretty=function(o,newline){var len=o.length,cnewline=newline+"   ",sep=","+cnewline,a=["[",cnewline],i;for(i=0;i<len;i+=1){a.push(me.encodeValue(o[i],cnewline),sep)}a[a.length-1]=newline+"]";return a.join("")},encodeObjectPretty=function(o,newline){var cnewline=newline+"   ",sep=","+cnewline,a=["{",cnewline],i,val;for(i in o){val=o[i];if(!useHasOwn||o.hasOwnProperty(i)){if(typeof val==="function"||val===undefined){continue}a.push(me.encodeValue(i)+": "+me.encodeValue(val,cnewline),sep)}}a[a.length-1]=newline+"}";return a.join("")},encodeArray=function(o,newline){if(newline){return encodeArrayPretty(o,newline)}var a=["[",""],len=o.length,i;for(i=0;i<len;i+=1){a.push(me.encodeValue(o[i]),",")}a[a.length-1]="]";return a.join("")},encodeObject=function(o,newline){if(newline){return encodeObjectPretty(o,newline)}var a=["{",""],i,val;for(i in o){val=o[i];if(!useHasOwn||o.hasOwnProperty(i)){if(typeof val==="function"||val===undefined){continue}a.push(me.encodeValue(i),":",me.encodeValue(val),",")}}a[a.length-1]="}";return a.join("")};me.encodeString=encodeString;me.encodeValue=doEncode;me.encodeDate=function(o){return'"'+o.getFullYear()+"-"+pad(o.getMonth()+1)+"-"+pad(o.getDate())+"T"+pad(o.getHours())+":"+pad(o.getMinutes())+":"+pad(o.getSeconds())+'"'};me.encode=function(o){if(hasNative&&Ext.USE_NATIVE_JSON){return JSON.stringify(o)}return me.encodeValue(o)};me.decode=function(json,safe){try{if(hasNative&&Ext.USE_NATIVE_JSON){return JSON.parse(json)}return doDecode(json)}catch(e){if(safe){return null}Ext.Error.raise({sourceClass:"Ext.JSON",sourceMethod:"decode",msg:"You're trying to decode an invalid JSON String: "+json})}};me.encodeMSDate=encodeMSDate;if(!Ext.util){Ext.util={}}Ext.util.JSON=me;Ext.encode=me.encode;Ext.decode=me.decode})());(Ext.cmd.derive("Ext.util.Format",Ext.Base,function(){var a;return{singleton:true,defaultDateFormat:"m/d/Y",thousandSeparator:",",decimalSeparator:".",currencyPrecision:2,currencySign:"$",percentSign:"%",currencyAtEnd:false,stripTagsRe:/<\/?[^>]+>/gi,stripScriptsRe:/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},undef:function(b){return b!==undefined?b:""},defaultValue:function(c,b){return c!==undefined&&c!==""?c:b},substr:"ab".substr(-1)!="b"?function(c,e,b){var d=String(c);return(e<0)?d.substr(Math.max(d.length+e,0),b):d.substr(e,b)}:function(c,d,b){return String(c).substr(d,b)},lowercase:function(b){return String(b).toLowerCase()},uppercase:function(b){return String(b).toUpperCase()},usMoney:function(b){return a.currency(b,"$",2)},currency:function(d,g,c,b){var j="",h=",0",e=0;d=d-0;if(d<0){d=-d;j="-"}c=Ext.isDefined(c)?c:a.currencyPrecision;h+=(c>0?".":"");for(;e<c;e++){h+="0"}d=a.number(d,h);if((b||a.currencyAtEnd)===true){return Ext.String.format("{0}{1}{2}",j,d,g||a.currencySign)}else{return Ext.String.format("{0}{1}{2}",j,g||a.currencySign,d)}},date:function(b,c){if(!b){return""}if(!Ext.isDate(b)){b=new Date(Date.parse(b))}return Ext.Date.dateFormat(b,c||Ext.Date.defaultFormat)},dateRenderer:function(b){return function(c){return a.date(c,b)}},hex:function(d,c){var b=parseInt(d||0,10).toString(16);if(c){if(c<0){c=-c;if(b.length>c){b=b.substring(b.length-c)}}while(b.length<c){b="0"+b}}return b},or:function(c,b){return c||b},pick:function(d,c,e){if(Ext.isNumber(d)){var b=arguments[d+1];if(b){return b}}return d?e:c},stripTags:function(b){return !b?b:String(b).replace(a.stripTagsRe,"")},stripScripts:function(b){return !b?b:String(b).replace(a.stripScriptsRe,"")},fileSize:(function(){var b=1024,c=1048576,d=1073741824;return function(g){var e;if(g<b){if(g===1){e="1 byte"}else{e=g+" bytes"}}else{if(g<c){e=(Math.round(((g*10)/b))/10)+" KB"}else{if(g<d){e=(Math.round(((g*10)/c))/10)+" MB"}else{e=(Math.round(((g*10)/d))/10)+" GB"}}}return e}})(),math:(function(){var b={};return function(d,c){if(!b[c]){b[c]=Ext.functionFactory("v","return v "+c+";")}return b[c](d)}}()),round:function(d,c){var b=Number(d);if(typeof c==="number"){c=Math.pow(10,c);b=Math.round(d*c)/c}else{if(c===undefined){b=Math.round(b)}}return b},number:function(m,g){if(!g){return m}if(isNaN(m)){return""}var e=a.formatFns[g];if(!e){var j=g,p=a.thousandSeparator,n=a.decimalSeparator,h=0,d="",c,k,l,o,b,i;if(g.substr(g.length-2)==="/i"){if(!a.I18NFormatCleanRe||a.lastDecimalSeparator!==n){a.I18NFormatCleanRe=new RegExp("[^\\d\\"+n+"#]","g");a.lastDecimalSeparator=n}g=g.substr(0,g.length-2);c=g.indexOf(p)!==-1;k=g.replace(a.I18NFormatCleanRe,"").split(n)}else{c=g.indexOf(",")!==-1;k=g.replace(a.formatCleanRe,"").split(".")}l=g.replace(a.formatPattern,"");if(k.length>2){}else{if(k.length===2){h=k[1].length;o=k[1].match(a.hashRe);if(o){i=o[0].length;d='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+i+'}$")'}}}b=["var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts"+(c?",thousandSeparator,thousands=[],j,n,i":"")+(l?',formatString="'+g+'",formatPattern=/[\\d,\\.#]+/':"")+',trailingZeroes;return function(v){if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";neg=v<0;',"absVal=Math.abs(v);","fnum=Ext.Number.toFixed(absVal, "+h+");",d,";"];if(c){if(h){b[b.length]='parts=fnum.split(".");';b[b.length]="fnum=parts[0];"}b[b.length]="if(absVal>=1000) {";b[b.length]="thousandSeparator=utilFormat.thousandSeparator;thousands.length=0;j=fnum.length;n=fnum.length%3||3;for(i=0;i<j;i+=n){if(i!==0){n=3;}thousands[thousands.length]=fnum.substr(i,n);}fnum=thousands.join(thousandSeparator);}";if(h){b[b.length]="fnum += utilFormat.decimalSeparator+parts[1];"}}else{if(h){b[b.length]='if(utilFormat.decimalSeparator!=="."){parts=fnum.split(".");fnum=parts[0]+utilFormat.decimalSeparator+parts[1];}'}}b[b.length]='if(neg&&fnum!=="'+(h?"0."+Ext.String.repeat("0",h):"0")+'") { fnum="-"+fnum; }';if(o){b[b.length]='fnum=fnum.replace(trailingZeroes,"");'}b[b.length]="return ";if(l){b[b.length]="formatString.replace(formatPattern, fnum);"}else{b[b.length]="fnum;"}b[b.length]="};";e=a.formatFns[j]=Ext.functionFactory("Ext",b.join(""))(Ext)}return e(m)},numberRenderer:function(b){return function(c){return a.number(c,b)}},percent:function(c,b){return a.number(c*100,b||"0")+a.percentSign},attributes:function(c){if(typeof c==="object"){var b=[],d;for(d in c){if(c.hasOwnProperty(d)){b.push(d,'="',d==="style"?Ext.DomHelper.generateStyles(c[d],null,true):Ext.htmlEncode(c[d]),'" ')}}c=b.join("")}return c||""},plural:function(b,c,d){return b+" "+(b===1?c:(d?d:c+"s"))},nl2br:function(b){return Ext.isEmpty(b)?"":b.replace(a.nl2brRe,"<br/>")},capitalize:Ext.String.capitalize,uncapitalize:Ext.String.uncapitalize,ellipsis:Ext.String.ellipsis,escape:Ext.String.escape,escapeRegex:Ext.String.escapeRegex,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,toggle:Ext.String.toggle,trim:Ext.String.trim,parseBox:function(c){c=c||0;if(typeof c==="number"){return{top:c,right:c,bottom:c,left:c}}var d=c.split(" "),b=d.length;if(b===1){d[1]=d[2]=d[3]=d[0]}else{if(b===2){d[2]=d[0];d[3]=d[1]}else{if(b===3){d[3]=d[1]}}}return{top:parseInt(d[0],10)||0,right:parseInt(d[1],10)||0,bottom:parseInt(d[2],10)||0,left:parseInt(d[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,"Format"],0));(Ext.cmd.derive("Ext.Template",Ext.Base,{inheritableStatics:{from:function(b,a){b=Ext.getDom(b);return new this(b.value||b.innerHTML,a||"")}},useEval:Ext.isGecko,constructor:function(d){var g=this,b=arguments,a=[],c,e=b.length,h;g.initialConfig={};if(e===1&&Ext.isArray(d)){b=d;e=b.length}if(e>1){for(c=0;c<e;c++){h=b[c];if(typeof h==="object"){Ext.apply(g.initialConfig,h);Ext.apply(g,h)}else{a.push(h)}}}else{a.push(d)}g.html=a.join("")},isTemplate:true,disableFormats:false,tokenRe:/\{(?:(?:(\d+)|([a-z_][\w\-]*))(?::([a-z_\.]+)(?:\(([^\)]*?)?\))?)?)\}/gi,apply:function(a){var b=this;if(b.compiled){if(!b.fn){b.compile()}return b.fn(a).join("")}return b.evaluate(a)},evaluate:function(a){var g=this,c=!g.disableFormats,e=Ext.util.Format,b=g;function d(k,j,i,l,h){if(i==null||i===""){i=j}if(l&&c){if(h){h=[a[i]].concat(Ext.functionFactory("return ["+h+"];")())}else{h=[a[i]]}if(l.substr(0,5)==="this."){return b[l.substr(5)].apply(b,h)}else{if(e[l]){return e[l].apply(e,h)}else{return k}}}else{return a[i]!==undefined?a[i]:""}}return g.html.replace(g.tokenRe,d)},applyOut:function(a,b){var c=this;if(c.compiled){if(!c.fn){c.compile()}b.push.apply(b,c.fn(a))}else{b.push(c.apply(a))}return b},applyTemplate:function(){return this.apply.apply(this,arguments)},set:function(a,c){var b=this;b.html=a;b.compiled=!!c;b.fn=null;return b},compileARe:/\\/g,compileBRe:/(\r\n|\n)/g,compileCRe:/'/g,compile:function(){var b=this,a;a=b.html.replace(b.compileARe,"\\\\").replace(b.compileBRe,"\\n").replace(b.compileCRe,"\\'").replace(b.tokenRe,b.regexReplaceFn.bind(b));a=(this.disableFormats!==true?"var fm=Ext.util.Format;":"")+(b.useEval?"$=":"return")+" function(v){return ['"+a+"'];};";b.fn=b.useEval?b.evalCompiled(a):(new Function("Ext",a))(Ext);b.compiled=true;return b},evalCompiled:function($){eval($);return $},regexReplaceFn:function(d,c,b,e,a){if(c==null||c===""){c='"'+b+'"'}else{if(this.stringFormat){c=parseInt(c)+1}}if(e&&this.disableFormats!==true){a=a?","+a:"";if(e.substr(0,5)==="this."){e=e+"("}else{if(Ext.util.Format[e]){e="fm."+e+"("}else{return d}}return"',"+e+"v["+c+"]"+a+"),'"}else{return"',v["+c+"] == undefined ? '' : v["+c+"],'"}},insertFirst:function(b,a,c){return this.doInsert("afterBegin",b,a,c)},insertBefore:function(b,a,c){return this.doInsert("beforeBegin",b,a,c)},insertAfter:function(b,a,c){return this.doInsert("afterEnd",b,a,c)},append:function(b,a,c){return this.doInsert("beforeEnd",b,a,c)},doInsert:function(b,d,a,e){var c=Ext.DomHelper.insertHtml(b,Ext.getDom(d),this.apply(a));return e?Ext.get(c):c},overwrite:function(c,a,d){var b=Ext.DomHelper.overwrite(Ext.getDom(c),this.apply(a));return d?Ext.get(b):b}},1,0,0,0,0,0,[Ext,"Template"],function(d){var c=/\{\d+\}/,a=function(g){if(c.test(g)){g=new d(g,b);return function(){return g.apply(arguments)}}else{return function(){return g}}},b={useFormat:false,compiled:true,stringFormat:true},e={};Ext.String.format=Ext.util.Format.format=function(h){var g=e[h]||(e[h]=a(h));return g.apply(this,arguments)}}));(Ext.cmd.derive("Ext.mixin.Inheritable",Ext.Mixin,{mixinConfig:{id:"inheritable"},getInherited:function(b){var h=this,g=(b&&h.inheritedStateInner)||h.inheritedState,e=h.ownerCt||h.initOwnerCt,d=h.isContainer,c,a,i;if(!g||g.invalid){c=h.getRefOwner();if(e){i=h.ownerLayout===e.layout}h.inheritedState=g=Ext.Object.chain(c?c.getInherited(i):Ext.rootInheritedState);if(d){h.inheritedStateInner=a=Ext.Object.chain(g)}h.initInheritedState(g,a);g=(d&&b)?h.inheritedStateInner:h.inheritedState}return g},getInheritedConfig:function(e,a){var d=this.inheritedState,b,c;if(!d||d.invalid){d=this.getInherited()}c=d[e];if(a&&d.hasOwnProperty(e)){b=c;delete d[e];c=d[e];d[e]=b}return c},fixReference:function(){var a=this,b;if(a.reference){b=a.lookupReferenceHolder();if(b){b.attachReference(a)}}},resolveListenerScope:function(g,a){var d=this,e=(typeof a==="boolean"),c=Ext._namedScopes[g],b;if(!c){b=d.getInheritedConfig("defaultListenerScope",e?a:true)||g||d}else{if(c.isController){b=d.getInheritedConfig("controller",e?a:!c.isSelf)}else{if(c.isSelf){b=d.getInheritedConfig("defaultListenerScope",e&&a)||d}else{if(c.isThis){b=d}}}}return b||null},resolveSatelliteListenerScope:function(c,e){var d=this,b=Ext._namedScopes[e],a;if(!b){a=d.getInheritedConfig("defaultListenerScope")||e||d}else{if(b.isController){a=d.getInheritedConfig("controller")}else{if(b.isSelf){a=d.getInheritedConfig("defaultListenerScope")||c}else{if(b.isThis){a=c}}}}return a||null},lookupReferenceHolder:function(a){return this.getInheritedConfig("referenceHolder",a!==false)||null},getRefOwner:function(){return this.ownerCt||this.initOwnerCt||this.ownerCmp||this.floatParent},invalidateInheritedState:function(){var a=this.inheritedState;if(a){a.invalid=true;delete this.inheritedState}}},0,0,0,0,0,0,[Ext.mixin,"Inheritable"],function(){Ext.rootInheritedState={}}));(Ext.cmd.derive("Ext.mixin.Bindable",Ext.Base,{mixinId:"bindable",config:{bind:{$value:null,lazy:true},controller:null,defaultListenerScope:false,publishes:{$value:null,lazy:true,merge:function(b,a){return this.mergeSets(b,a)}},reference:null,session:{$value:null,lazy:true},twoWayBindable:{$value:null,lazy:true,merge:function(b,a){return this.mergeSets(b,a)}},viewModel:{$value:null,lazy:true}},defaultBindProperty:null,validRefRe:/^[a-z_][a-z0-9_]*$/i,initInheritedState:function(d){var e=this,a=e.getReference(),b=e.getController(),c=e.getConfig("viewModel",true),h=e.getConfig("session",true),g=e.getDefaultListenerScope();if(b){d.controller=b}if(g){d.defaultListenerScope=e}else{if(b){d.defaultListenerScope=b}}if(c){if(!c.isViewModel){c=e}d.viewModel=c}if(h){if(!h.isSession){h=e}d.session=h}if(a){e.referenceKey=(d.referencePath||"")+a;e.viewModelKey=(d.viewModelPath||"")+a}},lookupController:function(a){return this.getInheritedConfig("controller",a)||null},lookupSession:function(a){var b=a?null:this.getSession();if(!b){b=this.getInheritedConfig("session",a);if(b&&!b.isSession){b=b.getInherited().session=b.getSession()}}return b||null},lookupViewModel:function(a){var b=a?null:this.getViewModel();if(!b){b=this.getInheritedConfig("viewModel",a);if(b&&!b.isViewModel){b=b.getInherited().viewModel=b.getViewModel()}}return b||null},publishState:function(k,j){var i=this,l=i.viewModelKey,c=i.publishedState,e=i.getBind(),h=e&&k&&e[k],g=0,b,a,d;if(h&&!h.syncing&&!h.isReadOnly()){if(!(h.calls===0&&(j==null||j===i.getInitialConfig()[k]))){h.setValue(j)}}if(!l||!(a=i.getPublishes())){return}if(!(d=i.lookupViewModel())){return}if(k&&c){if(!a[k]){return}if(!(j&&j.constructor===Object)&&!(j instanceof Array)){if(c[k]===j){return}}l+=".";l+=k}else{c=c||(i.publishedState={});for(b in a){++g;if(b===k){c[b]=j}else{c[b]=i[b]}}if(!g){return}j=c}d.set(l,j)},privates:{addBindableUpdater:function(c){var b=this,d=b.self.$config.configs,a=d[c],e;if(a&&!b.hasOwnProperty(e=a.names.update)){b[e]=a.bindableUpdater||(a.root.bindableUpdater=b.makeBindableUpdater(a))}},applyBind:function(d,l){var g=this,j=g.lookupViewModel(),e=g.getTwoWayBindable(),a=g._getBindTemplateScope,h,k,c,i;if(!l||typeof l==="string"){l={}}if(Ext.isString(d)){h=d;d={};d[g.defaultBindProperty]=h}for(k in d){c=d[k];h=l[k];if(h&&typeof h!=="string"){h.destroy();h=null;i=true}if(c){h=j.bind(c,g.onBindNotify,g);h._config=Ext.Config.get(k);h.getTemplateScope=a}if(i){delete l[k]}else{l[k]=h}if(e&&e[k]){if(i){g.clearBindableUpdater(k)}else{if(!h.isReadOnly()){g.addBindableUpdater(k)}}}}return l},applyController:function(a){if(a){a=Ext.Factory.controller(a);a.setView(this)}return a},applyPublishes:function(a){if(this.lookupViewModel()){for(var b in a){this.addBindableUpdater(b)}}return a},applySession:function(c){if(!c){return null}if(!c.isSession){var b=this.lookupSession(true),a=(c===true)?{}:c;if(b){c=b.spawn(a)}else{c=new Ext.data.Session(a)}}return c},applyViewModel:function(b){var c=this,a,d;if(!(b&&b.isViewModel)){a={parent:c.lookupViewModel(true)};a.session=c.getSession();if(!d&&!a.parent){a.session=c.lookupSession()}if(b){if(b.constructor===Object){Ext.apply(a,b)}else{if(typeof b==="string"){a.type=b}}}b=Ext.Factory.viewModel(a)}return b},_getBindTemplateScope:function(){return this.scope.resolveListenerScope()},clearBindableUpdater:function(c){var b=this,d=b.self.$config.configs,a=d[c],e;if(a&&b.hasOwnProperty(e=a.names.update)){if(b[e].$bindableUpdater){delete b[e]}}},initBindable:function(){this.initBindable=Ext.emptyFn;this.getBind();this.getPublishes()},makeBindableUpdater:function(a){var c=a.names.update,b=function(g,d){var e=this,h=e.self.prototype[c];if(h){h.call(e,g,d)}e.publishState(a.name,g)};b.$bindableUpdater=true;return b},onBindNotify:function(b,a,c){c.syncing=(c.syncing+1)||1;this[c._config.names.set](b);--c.syncing},removeBindings:function(){var c=this.bind,a,b;if(c&&typeof c!=="string"){for(a in c){b=c[a];b.destroy();b._config=b.getTemplateScope=null}}this.bind=null},updateSession:function(b){var a=this.getInherited();if(b){a.session=b}else{delete a.session}},updateViewModel:function(b){var c=this.getInherited(),a=this.getController();if(b){c.viewModel=b;b.setView(this);if(a){a.initViewModel(b)}}else{delete c.viewModel}}}},0,0,0,0,0,0,[Ext.mixin,"Bindable"],0));(Ext.cmd.derive("Ext.Widget",Ext.Evented,{isWidget:true,element:{reference:"element"},observableType:"component",eventedConfig:{width:null,height:null},template:[],constructor:function(a){var b=this;b.initId(a);b.initElement();b.mixins.observable.constructor.call(b,a);Ext.ComponentManager.register(b)},afterCachedConfig:function(){var j=this,k=j.self.prototype,l=j.referenceList,c=j.renderElement.dom,g,d,e,h,b,a;k.renderTemplate=g=document.createDocumentFragment();g.appendChild(c.cloneNode(true));a=g.querySelectorAll("[id]");for(e=0,h=a.length;e<h;e++){d=a[e];d.removeAttribute("id")}for(e=0,h=l.length;e<h;e++){b=l[e];j[b].dom.removeAttribute("reference")}},applyWidth:function(a){return this.filterLengthValue(a)},applyHeight:function(a){return this.filterLengthValue(a)},destroy:function(){var e=this,b=e.referenceList,c,d,a;for(c=0,d=b.length;c<d;c++){a=b[c];if(e.hasOwnProperty(a)){e[a].destroy();e[a]=null}}Ext.Evented.prototype.destroy.call(this);Ext.ComponentManager.unregister(e)},doSetWidth:function(a){this.element.setWidth(a)},doSetHeight:function(a){this.element.setHeight(a)},getElementConfig:function(){var b=this,a=b.element;if(!("children" in a)){a=Ext.apply({children:b.getTemplate()},a)}return a},getItemId:function(){return this.itemId||this.id},getSize:function(){return{width:this.getWidth(),height:this.getHeight()}},getTemplate:function(){return this.template},initElement:function(){var m=this,n=m.self.prototype,a=m.getId(),o=m.referenceList=[],c=true,j,e,h,b,g,l,k,d;if(n.hasOwnProperty("renderTemplate")){j=m.renderTemplate.cloneNode(true);e=j.firstChild}else{c=false;j=document.createDocumentFragment();e=Ext.Element.create(m.processElementConfig.call(n),true);j.appendChild(e)}b=j.querySelectorAll("[reference]");for(g=0,l=b.length;g<l;g++){k=b[g];d=k.getAttribute("reference");if(c){k.removeAttribute("reference")}if(d==="element"){k.id=a;h=m.el=m.addElementReference(d,k)}else{m.addElementReferenceOnDemand(d,k)}o.push(d)}if(e===h.dom){m.renderElement=h}else{m.addElementReferenceOnDemand("renderElement",e)}},is:function(a){return Ext.ComponentQuery.is(this,a)},isXType:function(b,a){return a?(Ext.Array.indexOf(this.xtypes,b)!==-1):!!this.xtypesMap[b]},resolveListenerScope:function(a){return this.mixins.inheritable.resolveListenerScope.call(this,a)},setSize:function(b,a){if(b!==undefined){this.setWidth(b)}if(a!==undefined){this.setHeight(a)}},onFocus:Ext.emptyFn,onBlur:Ext.emptyFn,onFocusEnter:Ext.emptyFn,onFocusLeave:Ext.emptyFn,isAncestor:function(){return false},privates:{addElementReferenceOnDemand:function(a,b){if(this._elementListeners[a]){this.addElementReference(a,b)}else{Ext.Object.defineProperty(this,a,{get:function(){delete this[a];return this.addElementReference(a,b)},configurable:true})}},addElementReference:function(c,e){var g=this,b=g[c]=Ext.get(e),d=g._elementListeners[c],a,h;b.skipGarbageCollection=true;b.component=g;if(d){d=Ext.clone(d);d.scope=g;for(a in d){h=d[a];if(typeof h==="object"){h.scope=g}}b.on(d)}return b},detachFromBody:function(){Ext.getDetachedBody().appendChild(this.element);this.isDetached=true},doAddListener:function(d,h,g,c,a,b,e){if(c&&"element" in c){this[c.element].doAddListener(d,h,g||this,c,a)}Ext.Evented.prototype.doAddListener.call(this,d,h,g,c,a,b,e)},filterLengthValue:function(a){if(a==="auto"||(!a&&a!==0)){return null}return a},getFocusEl:function(){return this.element},initElementListeners:function(m){var l=this,d=l.self.superclass,c=d._elementListeners,e=m.reference,a=m.children,h,k,b,j,g;if(l.hasOwnProperty("_elementListeners")){h=l._elementListeners}else{h=l._elementListeners=(c?Ext.Object.chain(c):{})}if(e){k=m.listeners;if(k){if(c){b=c[e];if(b){k=Ext.Object.chain(b);Ext.apply(k,m.listeners)}}h[e]=k;m.listeners=null}}if(a){for(g=0,j=a.length;g<j;g++){l.initElementListeners(a[g])}}},initId:function(b){var c=this,a=c.config,d=(b&&b.id)||(a&&a.id);if(d){c.setId(d);c.id=d}else{c.getId()}},processElementConfig:function(){var a=this,c=a.self.superclass,b;if(a.hasOwnProperty("_elementConfig")){b=a._elementConfig}else{b=a._elementConfig=a.getElementConfig();if(c.isWidget){a.processElementConfig.call(c)}a.initElementListeners(b)}return b},reattachToBody:function(){this.isDetached=false}}},1,["widget"],["widget"],{widget:true},["widget.widget"],[[Ext.mixin.Inheritable.prototype.mixinId||Ext.mixin.Inheritable.$className,Ext.mixin.Inheritable],[Ext.mixin.Bindable.prototype.mixinId||Ext.mixin.Bindable.$className,Ext.mixin.Bindable]],[Ext,"Widget"],function(a){(a.prototype.$elementEventOptions=Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element=1}));Ext.define("Ext.overrides.Widget",{override:"Ext.Widget",$configStrict:false,isComponent:true,liquidLayout:true,rendered:true,rendering:true,config:{renderTo:null},cachedConfig:{baseCls:"x-widget"},constructor:function(a){var b=this,c;(arguments.callee.$previous||Ext.Evented.prototype.constructor).call(this,a);b.getComponentLayout();c=b.getRenderTo();if(c){b.render(c)}},addCls:function(a){this.el.addCls(a)},addClsWithUI:function(a){this.el.addCls(a)},afterComponentLayout:Ext.emptyFn,finishRender:function(){this.rendering=false;this.initBindable()},getComponentLayout:function(){var b=this,a=b.componentLayout;if(!a){a=b.componentLayout=new Ext.layout.component.Auto();a.setOwner(b)}return a},getTdCls:function(){return"x-"+this.getTdType()+"-"+(this.ui||"default")+"-cell"},getTdType:function(){return this.xtype},getItemId:function(){return this.itemId||this.id},getSizeModel:function(){return Ext.Component.prototype.getSizeModel.apply(this,arguments)},onAdded:function(b,e,a){var d=this,c=d.inheritedState;d.ownerCt=b;if(c&&a){d.invalidateInheritedState()}if(d.reference){Ext.ComponentManager.markReferencesDirty()}},onRemoved:function(b){var a=this,c;if(a.reference){c=a.lookupReferenceHolder();if(c){c.clearReference(a)}}if(!b){a.removeBindings()}if(a.inheritedState&&!b){a.invalidateInheritedState()}a.ownerCt=a.ownerLayout=null},parseBox:function(a){return Ext.Element.parseBox(a)},removeCls:function(a){this.el.removeCls(a)},removeClsWithUI:function(a){this.el.removeCls(a)},render:function(b,a){var e=this,c=e.element,d=Ext.Component.prototype,g;if(!e.ownerCt||e.floating){if(Ext.scopeCss){c.addCls(d.rootCls)}c.addCls(d.borderBoxCls)}if(a){g=b.childNodes[a];if(g){Ext.fly(b).insertBefore(c,g);return}}Ext.fly(b).appendChild(c)},setPosition:function(a,b){this.el.setLocalXY(a,b)},up:function(){return Ext.Component.prototype.up.apply(this,arguments)},isAncestor:function(){return Ext.Component.prototype.isAncestor.apply(this,arguments)},onFocusEnter:function(){return Ext.Component.prototype.onFocusEnter.apply(this,arguments)},onFocusLeave:function(){return Ext.Component.prototype.onFocusLeave.apply(this,arguments)},focus:Ext.emptyFn,isFocusable:Ext.emptyFn},function(b){var a=b.prototype;if(Ext.isIE8){a.addElementReferenceOnDemand=a.addElementReference}});(Ext.cmd.derive("Ext.util.XTemplateParser",Ext.Base,{constructor:function(a){Ext.apply(this,a)},doTpl:Ext.emptyFn,parse:function(n){var w=this,q=n.length,p={elseif:"elif"},r=w.topRe,c=w.actionsRe,e,d,j,o,h,k,i,v,u,b,g,a,l;w.level=0;w.stack=d=[];for(e=0;e<q;e=b){r.lastIndex=e;o=r.exec(n);if(!o){w.doText(n.substring(e,q));break}u=o.index;b=r.lastIndex;if(e<u){j=n.substring(e,u);if(!(l&&Ext.String.trim(j)==="")){w.doText(j)}}l=false;if(o[1]){b=n.indexOf("%}",u+2);w.doEval(n.substring(u+2,b));b+=2}else{if(o[2]){b=n.indexOf("]}",u+2);w.doExpr(n.substring(u+2,b));b+=2}else{if(o[3]){w.doTag(o[3])}else{if(o[4]){g=null;while((v=c.exec(o[4]))!==null){j=v[2]||v[3];if(j){j=Ext.String.htmlDecode(j);h=v[1];h=p[h]||h;g=g||{};k=g[h];if(typeof k=="string"){g[h]=[k,j]}else{if(k){g[h].push(j)}else{g[h]=j}}}}if(!g){if(w.elseRe.test(o[4])){w.doElse()}else{if(w.defaultRe.test(o[4])){w.doDefault()}else{w.doTpl();d.push({type:"tpl"})}}}else{if(g["if"]){w.doIf(g["if"],g);d.push({type:"if"})}else{if(g["switch"]){w.doSwitch(g["switch"],g);d.push({type:"switch"});l=true}else{if(g["case"]){w.doCase(g["case"],g)}else{if(g.elif){w.doElseIf(g.elif,g)}else{if(g["for"]){++w.level;if(a=w.propRe.exec(o[4])){g.propName=a[1]||a[2]}w.doFor(g["for"],g);d.push({type:"for",actions:g})}else{if(g.foreach){++w.level;if(a=w.propRe.exec(o[4])){g.propName=a[1]||a[2]}w.doForEach(g.foreach,g);d.push({type:"foreach",actions:g})}else{if(g.exec){w.doExec(g.exec,g);d.push({type:"exec",actions:g})}}}}}}}}}else{if(o[0].length===5){d.push({type:"tpl"})}else{i=d.pop();w.doEnd(i.type,i.actions);if(i.type=="for"||i.type=="foreach"){--w.level}}}}}}}},topRe:/(?:(\{\%)|(\{\[)|\{([^{}]+)\})|(?:<tpl([^>]*)\>)|(?:<\/tpl>)/g,actionsRe:/\s*(elif|elseif|if|for|foreach|exec|switch|case|eval|between)\s*\=\s*(?:(?:"([^"]*)")|(?:'([^']*)'))\s*/g,propRe:/prop=(?:(?:"([^"]*)")|(?:'([^']*)'))/,defaultRe:/^\s*default\s*$/,elseRe:/^\s*else\s*$/},1,0,0,0,0,0,[Ext.util,"XTemplateParser"],0));(Ext.cmd.derive("Ext.util.XTemplateCompiler",Ext.util.XTemplateParser,{useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:true,propNameRe:/^[\w\d\$]*$/,compile:function(a){var c=this,b=c.generate(a);return c.useEval?c.evalTpl(b):(new Function("Ext",b))(Ext)},generate:function(a){var d=this,b="var fm=Ext.util.Format,ts=Object.prototype.toString;",c;d.maxLevel=0;d.body=["var c0=values, a0="+d.createArrayTest(0)+", p0=parent, n0=xcount, i0=xindex, k0, v;\n"];if(d.definitions){if(typeof d.definitions==="string"){d.definitions=[d.definitions,b]}else{d.definitions.push(b)}}else{d.definitions=[b]}d.switches=[];d.parse(a);d.definitions.push((d.useEval?"$=":"return")+" function ("+d.fnArgs+") {",d.body.join(""),"}");c=d.definitions.join("\n");d.definitions.length=d.body.length=d.switches.length=0;delete d.definitions;delete d.body;delete d.switches;return c},doText:function(c){var b=this,a=b.body;c=c.replace(b.aposRe,"\\'").replace(b.newLineRe,"\\n");if(b.useIndex){a.push("out[out.length]='",c,"'\n")}else{a.push("out.push('",c,"')\n")}},doExpr:function(b){var a=this.body;a.push("if ((v="+b+") != null) out");if(this.useIndex){a.push("[out.length]=v+''\n")}else{a.push(".push(v+'')\n")}},doTag:function(a){var b=this.parseTag(a);if(b){this.doExpr(b)}else{this.doText("{"+a+"}")}},doElse:function(){this.body.push("} else {\n")},doEval:function(a){this.body.push(a,"\n")},doIf:function(b,c){var a=this;if(b==="."){a.body.push("if (values) {\n")}else{if(a.propNameRe.test(b)){a.body.push("if (",a.parseTag(b),") {\n")}else{a.body.push("if (",a.addFn(b),a.callFn,") {\n")}}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==="."){a.body.push("else if (values) {\n")}else{if(a.propNameRe.test(b)){a.body.push("} else if (",a.parseTag(b),") {\n")}else{a.body.push("} else if (",a.addFn(b),a.callFn,") {\n")}}if(c.exec){a.doExec(c.exec)}},doSwitch:function(c){var b=this,a;if(c==="."||c==="#"){a=c==="."?"values":"xindex";b.body.push("switch (",a,") {\n")}else{if(b.propNameRe.test(c)){b.body.push("switch (",b.parseTag(c),") {\n")}else{b.body.push("switch (",b.addFn(c),b.callFn,") {\n")}}b.switches.push(0)},doCase:function(e){var d=this,c=Ext.isArray(e)?e:[e],g=d.switches.length-1,a,b;if(d.switches[g]){d.body.push("break;\n")}else{d.switches[g]++}for(b=0,g=c.length;b<g;++b){a=d.intRe.exec(c[b]);c[b]=a?a[1]:("'"+c[b].replace(d.aposRe,"\\'")+"'")}d.body.push("case ",c.join(": case "),":\n")},doDefault:function(){var a=this,b=a.switches.length-1;if(a.switches[b]){a.body.push("break;\n")}else{a.switches[b]++}a.body.push("default:\n")},doEnd:function(b,d){var c=this,a=c.level-1;if(b=="for"||b=="foreach"){if(d.exec){c.doExec(d.exec)}c.body.push("}\n");c.body.push("parent=p",a,";values=r",a+1,";xcount=n"+a+";xindex=i",a,"+1;xkey=k",a,";\n")}else{if(b=="if"||b=="switch"){c.body.push("}\n")}}},doFor:function(e,h){var d=this,c,b=d.level,a=b-1,g;if(e==="."){c="values"}else{if(d.propNameRe.test(e)){c=d.parseTag(e)}else{c=d.addFn(e)+d.callFn}}if(d.maxLevel<b){d.maxLevel=b;d.body.push("var ")}if(e=="."){g="c"+b}else{g="a"+a+"?c"+a+"[i"+a+"]:c"+a}d.body.push("i",b,"=0,n",b,"=0,c",b,"=",c,",a",b,"=",d.createArrayTest(b),",r",b,"=values,p",b,",k",b,";\n","p",b,"=parent=",g,"\n","if (c",b,"){if(a",b,"){n",b,"=c",b,".length;}else if (c",b,".isMixedCollection){c",b,"=c",b,".items;n",b,"=c",b,".length;}else if(c",b,".isStore){c",b,"=c",b,".data.items;n",b,"=c",b,".length;}else{c",b,"=[c",b,"];n",b,"=1;}}\n","for (xcount=n",b,";i",b,"<n"+b+";++i",b,"){\n","values=c",b,"[i",b,"]");if(h.propName){d.body.push(".",h.propName)}d.body.push("\n","xindex=i",b,"+1\n");if(h.between){d.body.push('if(xindex>1){ out.push("',h.between,'"); } \n')}},doForEach:function(e,h){var d=this,c,b=d.level,a=b-1,g;if(e==="."){c="values"}else{if(d.propNameRe.test(e)){c=d.parseTag(e)}else{c=d.addFn(e)+d.callFn}}if(d.maxLevel<b){d.maxLevel=b;d.body.push("var ")}if(e=="."){g="c"+b}else{g="a"+a+"?c"+a+"[i"+a+"]:c"+a}d.body.push("i",b,"=-1,n",b,"=0,c",b,"=",c,",a",b,"=",d.createArrayTest(b),",r",b,"=values,p",b,",k",b,";\n","p",b,"=parent=",g,"\n","for(k",b," in c",b,"){\n","xindex=++i",b,"+1;\n","xkey=k",b,";\n","values=c",b,"[k",b,"];");if(h.propName){d.body.push(".",h.propName)}if(h.between){d.body.push('if(xindex>1){ out.push("',h.between,'"); } \n')}},createArrayTest:("isArray" in Array)?function(a){return"Array.isArray(c"+a+")"}:function(a){return"ts.call(c"+a+')==="[object Array]"'},doExec:function(d,e){var c=this,a="f"+c.definitions.length,b=c.guards[c.strict?0:1];c.definitions.push("function "+a+"("+c.fnArgs+") {",b.doTry," var $v = values; with($v) {","  "+d," }",b.doCatch,"}");c.body.push(a+c.callFn+"\n")},guards:[{doTry:"",doCatch:""},{doTry:"try { ",doCatch:" } catch(e) {\n}"}],addFn:function(a){var d=this,b="f"+d.definitions.length,c=d.guards[d.strict?0:1];if(a==="."){d.definitions.push("function "+b+"("+d.fnArgs+") {"," return values","}")}else{if(a===".."){d.definitions.push("function "+b+"("+d.fnArgs+") {"," return parent","}")}else{d.definitions.push("function "+b+"("+d.fnArgs+") {",c.doTry," var $v = values; with($v) {","  return("+a+")"," }",c.doCatch,"}")}}return b},parseTag:function(b){var h=this,a=h.tagRe.exec(b),e,i,d,g,c;if(!a){return null}e=a[1];i=a[2];d=a[3];g=a[4];if(e=="."){if(!h.validTypes){h.definitions.push("var validTypes={string:1,number:1,boolean:1};");h.validTypes=true}c='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else{if(e=="#"){c="xindex"}else{if(e=="$"){c="xkey"}else{if(e.substr(0,7)=="parent."){c=e}else{if(isNaN(e)&&e.indexOf("-")==-1&&e.indexOf(".")!=-1){c="values."+e}else{c="values['"+e+"']"}}}}}if(g){c="("+c+g+")"}if(i&&h.useFormat){d=d?","+d:"";if(i.substr(0,5)!="this."){i="fm."+i+"("}else{i+="("}}else{return c}return i+c+d+")"},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},0,0,0,0,0,0,[Ext.util,"XTemplateCompiler"],function(){var a=this.prototype;a.fnArgs="out,values,parent,xindex,xcount,xkey";a.callFn=".call(this,"+a.fnArgs+")"}));(Ext.cmd.derive("Ext.XTemplate",Ext.Template,{emptyObj:{},fn:null,strict:false,apply:function(a,b){return this.applyOut(a,[],b).join("")},applyOut:function(a,b,d){var g=this,c;if(!g.fn){c=new Ext.util.XTemplateCompiler({useFormat:g.disableFormats!==true,definitions:g.definitions,strict:g.strict});g.fn=c.compile(g.html)}if(g.strict){g.fn(b,a,d||g.emptyObj,1,1)}else{try{g.fn(b,a,d||g.emptyObj,1,1)}catch(h){}}return b},compile:function(){return this},statics:{getTpl:function(b,d){var c=b[d],a;if(c&&!c.isTemplate){c=Ext.ClassManager.dynInstantiate("Ext.XTemplate",c);if(b.hasOwnProperty(d)){a=b}else{for(a=b.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=c;c.owner=a}return c||null}}},0,0,0,0,0,0,[Ext,"XTemplate"],0));(Ext.cmd.derive("Ext.app.EventDomain",Ext.Base,{statics:{instances:{}},isEventDomain:true,isInstance:false,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(j,n,l){n=Ext.canonicalEventName(n);var m=this,k=m.bus,o=k[n],e,c,b,d,p,h,g,a;if(!o){return true}for(e in o){if(o.hasOwnProperty(e)&&m.match(j,e,m.controller)){c=o[e];for(b in c){if(c.hasOwnProperty(b)){d=c[b];if(d.controller.isActive()){p=d.list;h=p.length;for(g=0;g<h;g++){a=p[g];if(a.fire.apply(a,l)===false){return false}}}}}}}return true},listen:function(d,n){var w=this,m=w.bus,h=w.idProperty,j=w.monitoredClasses,e=j.length,l=n.getId(),v=(w.type==="component"),q=v?n.getRefMap():null,s,k,t,r,b,c,a,p,o,u,g;for(r in d){o=d[r];if(v){r=q[r]||r}if(o){if(h){r=r==="*"?r:r.substring(1)}for(u in o){b=null;c=o[u];a=n;u=Ext.canonicalEventName(u);p=new Ext.util.Event(n,u);if(Ext.isObject(c)){b=c;c=b.fn;a=b.scope||n;delete b.fn;delete b.scope}if(typeof c==="string"){c=a[c]}p.addListener(c,a,b);for(s=0;s<e;++s){g=j[s].hasListeners;if(g){g._incr_(u)}}k=m[u]||(m[u]={});k=k[r]||(k[r]={});t=k[l]||(k[l]={controller:n,list:[]});t.list.push(p)}}}},match:function(c,a){var b=this.idProperty;if(b){return a==="*"||c[b]===a}return false},monitor:function(c){var b=this,a=c.isInstance?c:c.prototype,d=a.doFireEvent;b.monitoredClasses.push(c);a.doFireEvent=function(h,g){var e=d.apply(this,arguments);if(e!==false&&!this.isSuspended(h)){e=b.dispatch(this,h,g)}return e}},unlisten:function(d){var n=this.bus,a=d,r=this.monitoredClasses,l=r.length,b,o,s,m,q,e,p,k,h,c,g;if(d.isController){a=d.getId()}for(o in n){o=Ext.canonicalEventName(o);if(n.hasOwnProperty(o)&&(p=n[o])){for(e in p){b=p[e];c=b[a];if(c){s=c.list;if(s){for(k=0,m=s.length;k<m;++k){q=s[k];q.clearListeners();for(h=0;h<l;++h){g=r[h].hasListeners;if(g){g._decr_(q.name)}}}delete b[a]}}}}}},destroy:function(){this.monitoredClasses=this.bus=null}},1,0,0,0,0,0,[Ext.app,"EventDomain"],0));(Ext.cmd.derive("Ext.app.domain.Component",Ext.app.EventDomain,{singleton:true,type:"component",constructor:function(){this.callParent();this.monitor(Ext.Widget)},dispatch:function(g,d,c){var b=g.lookupController(false),e,a;while(b){e=b.compDomain;if(e){if(e.dispatch(g,d,c)===false){return false}}a=b.getView();b=a?a.lookupController(true):null}return this.callParent(arguments)},match:function(b,a){return b.is(a)}},1,0,0,0,0,0,[Ext.app.domain,"Component"],0));(Ext.cmd.derive("Ext.util.ProtoElement",Ext.Base,function(){var b=Ext.String.splitWords,a=Ext.Array.toMap;return{isProtoEl:true,clsProp:"cls",styleProp:"style",removedProp:"removed",styleIsText:false,constructor:function(d){var g=this,c,e;if(d){Ext.apply(g,d);c=g.cls;e=g.style;delete g.cls}g.classList=c?b(c):[];g.classMap=c?a(g.classList):{};if(e){if(typeof e==="string"){g.style=Ext.Element.parseStyles(e)}else{if(Ext.isFunction(e)){g.styleFn=e;delete g.style}else{g.style=Ext.apply({},e)}}}},flush:function(){this.flushClassList=[];this.removedClasses={};delete this.style;delete this.unselectableAttr},addCls:function(n){if(!n){return this}var l=this,m=(typeof n==="string")?b(n):n,e=m.length,j=l.classList,d=l.classMap,g=l.flushClassList,h=0,k;for(;h<e;++h){k=m[h];if(!d[k]){d[k]=true;j.push(k);if(g){g.push(k);delete l.removedClasses[k]}}}return l},hasCls:function(c){return c in this.classMap},removeCls:function(o){var n=this,l=n.classList,g=(n.classList=[]),j=a(b(o)),e=l.length,d=n.classMap,k=n.removedClasses,h,m;for(h=0;h<e;++h){m=l[h];if(j[m]){if(k){if(d[m]){k[m]=true;Ext.Array.remove(n.flushClassList,m)}}delete d[m]}else{g.push(m)}}return n},setStyle:function(g,e){var d=this,c=d.style||(d.style={});if(typeof g==="string"){if(arguments.length===1){d.setStyle(Ext.Element.parseStyles(g))}else{c[g]=e}}else{Ext.apply(c,g)}return d},unselectable:function(){this.addCls(Ext.dom.Element.unselectableCls);if(Ext.isOpera){this.unselectableAttr=true}},writeTo:function(h){var e=this,g=e.flushClassList||e.classList,d=e.removedClasses,c;if(e.styleFn){c=Ext.apply({},e.styleFn());Ext.apply(c,e.style)}else{c=e.style}h[e.clsProp]=g.join(" ");if(c){h[e.styleProp]=e.styleIsText?Ext.DomHelper.generateStyles(c,null,true):c}if(d){d=Ext.Object.getKeys(d);if(d.length){h[e.removedProp]=d.join(" ")}}if(e.unselectableAttr){h.unselectable="on"}return h}}},1,0,0,0,0,0,[Ext.util,"ProtoElement"],0));(Ext.cmd.derive("Ext.dom.CompositeElement",Ext.dom.CompositeElementLite,{alternateClassName:"Ext.CompositeElement",isLite:false,getElement:function(a){return a},transformElement:function(a){return Ext.get(a)}},0,0,0,0,0,0,[Ext.dom,"CompositeElement",Ext,"CompositeElement"],0));Ext.Factory=function(a){var b=this;b.aliasPrefix=a+".";b.cache={};b.name=a.replace(b.fixNameRe,b.fixNameFn);b.type=a};Ext.Factory.prototype={defaultProperty:"type",instanceProp:"isInstance",create:function(c,e){var i=this,a=Ext.ClassManager,b=i.cache,d,h,g,j;if(c){if(c[i.instanceProp]){return c}if(typeof c==="string"){j=c;c={};c[i.defaultProperty]=j}h=c.xclass;j=c.type}if(h){if(!(g=a.get(h))){return a.instantiate(h,c)}}else{if(!(j=j||e||i.defaultType)){g=i.defaultClass}if(!g&&!(g=b[j])){d=i.aliasPrefix+j;h=a.getNameByAlias(d);if(!(g=h&&a.get(h))){return a.instantiateByAlias(d,c)}b[j]=g}}return g.isInstance?g:new g(c)},fixNameRe:/\.[a-z]/ig,fixNameFn:function(a){return a.substring(1).toUpperCase()},clearCache:function(){this.cache={}}};Ext.Factory.define=function(g,d){var a=Ext.Factory,b,c,e;if(g.constructor===Object){Ext.Object.each(g,a.define,a)}else{c=new Ext.Factory(g);if(d){if(d.constructor===Object){Ext.apply(c,d);if(typeof(b=c.xclass)==="string"){c.defaultClass=Ext.ClassManager.get(b)}}else{c.defaultType=d}}a[c.name]=e=c.create.bind(c);e.instance=c}return e};(Ext.cmd.derive("Ext.mixin.Factoryable",Ext.Base,{mixinId:"factoryable",onClassMixedIn:function(g){var e=g.prototype,h=e.factoryConfig,d=e.alias,c={},b,a;d=d&&d.length&&d[0];if(d&&(b=d.lastIndexOf("."))>0){c.type=d.substring(0,b);c.defaultType=d.substring(b+1)}if(h){delete e.factoryConfig;Ext.apply(c,h)}a=Ext.Factory.define(c.type,c);if(g.create===Ext.Base.create){g.create=a}}},0,0,0,0,0,0,[Ext.mixin,"Factoryable"],0));(Ext.cmd.derive("Ext.scroll.Scroller",Ext.Evented,{factoryConfig:{defaultType:"dom"},isScroller:true,_spacerCls:"x-domscroller-spacer",config:{direction:undefined,directionLock:false,disabled:null,element:undefined,indicators:null,maxPosition:null,maxUserPosition:null,minPosition:{x:0,y:0},minUserPosition:{x:0,y:0},momentumEasing:null,size:null,x:true,y:true,scrollElement:null,spacerXY:null},statics:{create:function(a){return Ext.Factory.scroller(a,Ext.supports.Touch?"touch":"dom")},getScrollingElement:function(){var e=document,a=this.$standardScrollElement,d=e.scrollingElement,c,b;if(d){return d}if(a===undefined){c=document.createElement("iframe");c.style.height="1px";document.body.appendChild(c);b=c.contentWindow.document;b.write('<!DOCTYPE html><div style="height:9999em">x</div>');b.close();a=b.documentElement.scrollHeight>b.body.scrollHeight;c.parentNode.removeChild(c);this.$standardScrollElement=a}return a?e.documentElement:e.body}},constructor:function(a){var b=this;b.position={x:0,y:0};Ext.Evented.prototype.constructor.call(this,a);b.onDomScrollEnd=Ext.Function.createBuffered(b.onDomScrollEnd,100,b)},destroy:function(){var a=this;a.setX(Ext.emptyString);a.setY(Ext.emptyString);a.setElement(null);a.setScrollElement(null);a.onDomScrollEnd=a._partners=a.component=null;Ext.Evented.prototype.destroy.call(this)},addPartner:function(d,b){var c=this,e=c._partners||(c._partners={}),a=d._partners||(d._partners={});e[d.getId()]={scroller:d,axis:b};a[c.getId()]={scroller:c,axis:b}},applyElement:function(b,a){var d=this,c,e,g;if(a){d.scrollListener.destroy()}if(b){if(b.isElement){c=b}else{c=Ext.get(b)}if(c.dom===document.documentElement){e=Ext.getWin();g=Ext.scroll.Scroller.getScrollingElement()}else{g=e=c}d.setScrollElement(Ext.get(g));d.scrollListener=e.on({scroll:d.onDomScroll,scope:d,destroyable:true});return c}},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,refresh:function(){this.fireEvent("refresh",this);return this},removePartner:function(b){var c=this._partners,a=b._partners;if(c){delete c[b.getId()]}if(a){delete (a[this.getId()])}},scrollBy:function(c,b,d){var a=this.getPosition();if(c){if(c.length){d=b;b=c[1];c=c[0]}else{if(typeof c!=="number"){d=b;b=c.y;c=c.x}}}c=(typeof c==="number")?c+a.x:null;b=(typeof b==="number")?b+a.y:null;return this.doScrollTo(c,b,d)},scrollIntoView:function(d,e,b,h){var j=this,i=j.getPosition(),g,a,k,c=j.getElement();if(d){g=Ext.fly(d).getScrollIntoViewXY(c,i.x,i.y);a=(e===false)?i.x:g.x;k=g.y;if(h){j.on({scrollend:"doHighlight",scope:j,single:true,args:[d,h]})}j.doScrollTo(a,k,b)}},isInView:function(c){var d=this,a={x:false,y:false},e,g=d.getElement(),b;if(c&&g.contains(c)){b=g.getRegion();e=Ext.fly(c).getRegion();a.x=e.right>b.left&&e.left<b.right;a.y=e.bottom>b.top&&e.top<b.bottom}return a},scrollTo:function(a,d,b){var c;if(a){if(a.length){b=d;d=a[1];a=a[0]}else{if(typeof a!=="number"){b=d;d=a.y;a=a.x}}}if(a<0||d<0){c=this.getMaxPosition();if(a<0){a+=c.x}if(d<0){d+=c.y}}this.doScrollTo(a,d,b)},updateDirection:function(c){var b=this,a,d;if(!c){a=b.getX();d=b.getY();if(a&&d){c=(d==="scroll"&&a==="scroll")?"both":"auto"}else{if(d){c="vertical"}else{if(a){c="horizontal"}}}b._direction=c}else{if(c==="auto"){a=true;d=true}else{if(c==="vertical"){a=false;d=true}else{if(c==="horizontal"){a=true;d=false}else{if(c==="both"){a="scroll";d="scroll"}}}}b.setX(a);b.setY(d)}},updateSize:function(d){var e=this,c=e.getElement(),b,a,g;if(c){e.positionDirty=true;b=e.getSpacer();if(d==null){b.hide()}else{if(typeof d==="number"){a=d;g=d}else{a=d.x||0;g=d.y||0}if(a>0){a-=1}if(g>0){g-=1}e.setSpacerXY({x:a,y:g});b.show()}}},deprecated:{"5":{methods:{getScroller:function(){return this}}},"5.1.0":{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}},privates:{getSpacer:function(){var c=this,a=c._spacer,b;if(!a){b=c.getElement();a=c._spacer=b.createChild({cls:c._spacerCls,role:"presentation"},b.dom.firstChild);a.setVisibilityMode(2);a.hide();b.position()}return a},applySpacerXY:function(b,a){if(a&&b.x===a.x&&b.y===a.y){b=undefined}return b},updateSpacerXY:function(e){var a=this.getSpacer(),d=a.dom.style,b=e.y,c;d.marginTop="";a.translate(e.x,this.constrainScrollRange(b));d.lineHeight=Number(!parseInt(d.lineHeight,10))+"px";c=b-this.getElement().dom.scrollHeight;if(c>0){d.marginTop=Math.min(c,this.maxSpacerMargin||0)+"px"}},constrainScrollRange:function(c){if(c<1000000){return c}if(!this.maxSpacerTranslate){var b=Math.pow(2,32),h=b,e=500,a=Ext.getBody().createChild({style:{position:"absolute",left:"-10000px",top:"0",width:"500px",height:"500px"},cn:{cls:"x-domscroller-spacer"}},null,true),d=Ext.get(a.firstChild),g=d.dom.style;d.translate(0,b-1);g.lineHeight=Number(!parseInt(g.lineHeight,10))+"px";while(h!==e+1){d.translate(0,(b=e+Math.floor((h-e)/2)));g.lineHeight=Number(!parseInt(g.lineHeight,10))+"px";if(a.scrollHeight<b){h=b}else{e=b}}d.translate(0,Ext.scroll.Scroller.prototype.maxSpacerTranslate=e);h=e*2;while(h!==e+1){d.dom.style.marginTop=((b=e+Math.floor((h-e)/2)))+"px";g.lineHeight=Number(!parseInt(g.lineHeight,10))+"px";if(a.scrollHeight<b){h=b}else{e=b}}Ext.fly(a).destroy();Ext.scroll.Scroller.prototype.maxSpacerMargin=e-Ext.scroll.Scroller.prototype.maxSpacerTranslate}return Math.min(c,this.maxSpacerTranslate)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==true){Ext.fly(b).highlight(a)}else{Ext.fly(b).highlight()}},fireScrollStart:function(a,d){var c=this,b=c.component;c.invokePartners("onPartnerScrollStart",a,d);if(c.hasListeners.scrollstart){c.fireEvent("scrollstart",c,a,d)}if(b&&b.onScrollStart){b.onScrollStart(a,d)}Ext.GlobalEvents.fireEvent("scrollstart",c,a,d)},fireScroll:function(a,d){var c=this,b=c.component;c.invokePartners("onPartnerScroll",a,d);if(c.hasListeners.scroll){c.fireEvent("scroll",c,a,d)}if(b&&b.onScrollMove){b.onScrollMove(a,d)}Ext.GlobalEvents.fireEvent("scroll",c,a,d)},fireScrollEnd:function(a,d){var c=this,b=c.component;c.invokePartners("onPartnerScrollEnd",a,d);if(c.hasListeners.scrollend){c.fireEvent("scrollend",c,a,d)}if(b&&b.onScrollEnd){b.onScrollEnd(a,d)}Ext.GlobalEvents.fireEvent("scrollend",c,a,d)},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(b.dom===document.body){b=Ext.get(document.documentElement)}if(!a){a="hidden"}else{if(a===true){a="auto"}}b.setStyle("overflow-x",a)}},initYStyle:function(){var a=this.getElement(),b=this.getY();if(a&&a.dom){if(a.dom===document.body){a=Ext.get(document.documentElement)}if(!b){b="hidden"}else{if(b===true){b="auto"}}a.setStyle("overflow-y",b)}},invokePartners:function(g,a,e){var c=this._partners,b,d;if(!this.suspendSync){for(d in c){b=c[d].scroller;b[g](this,a,e)}}},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(c){var b=this,a;if(b.suspendSync){b.suspendSync--}if(!b.suspendSync&&c){a=b.getPosition();b.invokePartners("onPartnerScroll",a.x,a.y)}},updateDomScrollPosition:function(){var d=this,c=d.getScrollElement(),b,a=d.position;if(c&&!c.destroyed){b=d.getElementScroll(c);a.x=b.left;a.y=b.top}d.positionDirty=false;return a},getElementScroll:function(a){return a.getScroll()},syncWithPartners:function(){var c=this,d=c._partners,e,b,a;c.isReflecting=true;for(e in d){b=d[e].scroller;a=b.getPosition();c.onPartnerScroll(b,a.x,a.y)}c.isReflecting=false},onDomScroll:function(){var c=this,b,a,d;b=c.updateDomScrollPosition();if(c.restoring){return}a=b.x;d=b.y;if(!c.isScrolling){c.isScrolling=true;c.fireScrollStart(a,d)}c.fireScroll(a,d);c.onDomScrollEnd()},onDomScrollEnd:function(){var c=this,b=c.getPosition(),a=b.x,d=b.y;c.isScrolling=false;c.trackingScrollLeft=a;c.trackingScrollTop=d;c.fireScrollEnd(a,d)},onPartnerScroll:function(c,a,d){var b=c._partners[this.getId()].axis;if(b){if(b==="x"){d=null}else{if(b==="y"){a=null}}}this.doScrollTo(a,d,false,true)},restoreState:function(){var b=this,a=b.getScrollElement(),c;if(a){c=a.dom;if(b.trackingScrollTop!==undefined){b.restoring=true;Ext.defer(function(){b.restoring=false},50);c.scrollTop=b.trackingScrollTop;c.scrollLeft=b.trackingScrollLeft}}},onPartnerScrollStart:function(){this.suspendPartnerSync()},onPartnerScrollEnd:function(){this.resumePartnerSync()}}},1,0,0,0,["scroller.scroller"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,"Scroller"],0));Ext.define("Ext.rtl.scroll.Scroller",{override:"Ext.scroll.Scroller",config:{rtl:null},updateRtl:Ext.emptyFn,privates:{updateSpacerXY:function(a){if(this.getRtl()){a.x=-a.x}this.callOverridden([a])},getElementScroll:function(a){return this.getRtl()?a.rtlGetScroll():a.getScroll()}}});(Ext.cmd.derive("Ext.fx.easing.Abstract",Ext.Base,{config:{startTime:0,startValue:0},isEasing:true,isEnded:false,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=false},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,"Abstract"],0));(Ext.cmd.derive("Ext.fx.easing.Momentum",Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-(b/10));this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,"Momentum"],0));(Ext.cmd.derive("Ext.fx.easing.Bounce",Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),c=(b/this.getAcceleration()),a=c*Math.pow(Math.E,-this.getSpringTension()*c);return this.getStartValue()+(this.getStartVelocity()*a)}},0,0,0,0,0,0,[Ext.fx.easing,"Bounce"],0));(Ext.cmd.derive("Ext.fx.easing.BoundMomentum",Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(a,b){return Ext.factory(a,Ext.fx.easing.Momentum,b)},applyBounce:function(a,b){return Ext.factory(a,Ext.fx.easing.Bounce,b)},updateStartTime:function(a){this.getMomentum().setStartTime(a);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=false;this.isOutOfBound=false;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var a=this.getMomentum(),k=this.getBounce(),e=a.getStartVelocity(),g=e>0?1:-1,h=this.getMinMomentumValue(),d=this.getMaxMomentumValue(),c=(g==1)?d:h,i=this.lastValue,j,b;if(e===0){return this.getStartValue()}if(!this.isOutOfBound){j=a.getValue();b=a.getVelocity();if(Math.abs(b)<this.getMinVelocity()){this.isEnded=true}if(j>=h&&j<=d){return j}this.isOutOfBound=true;k.setStartTime(Ext.Date.now()).setStartVelocity(b).setStartValue(c)}j=k.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(i!==null){if((g==1&&j<i)||(g==-1&&j>i)){this.isBouncingBack=true}}}else{if(Math.round(j)==c){this.isEnded=true}}}this.lastValue=j;return j}},0,0,0,0,0,0,[Ext.fx.easing,"BoundMomentum"],0));(Ext.cmd.derive("Ext.fx.easing.Linear",Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=true;return this.getEndValue()}else{return this.getStartValue()+((a/b)*this.distance)}}},0,0,0,0,["easing.linear"],0,[Ext.fx.easing,"Linear"],0));(Ext.cmd.derive("Ext.fx.easing.EaseOut",Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var g=Ext.Date.now()-this.getStartTime(),d=this.getDuration(),b=this.getStartValue(),i=this.getEndValue(),a=this.distance,c=g/d,h=1-c,e=1-Math.pow(h,this.getExponent()),j=b+(e*a);if(g>=d){this.isEnded=true;return i}return j}},0,0,0,0,["easing.ease-out"],0,[Ext.fx.easing,"EaseOut"],0));(Ext.cmd.derive("Ext.util.translatable.Abstract",Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:false,isTranslatable:true,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,"easing")},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},doTranslate:Ext.emptyFn,translate:function(a,c,b){if(b){return this.translateAnimated(a,c,b)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a=="number"){this.x=a}if(!isNaN(c)&&typeof c=="number"){this.y=c}this.doTranslate(a,c)},translateAxis:function(b,d,c){var a,e;if(b=="x"){a=d}else{e=d}return this.translate(a,e,c)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(b,a){this.activeEasingX=b;this.activeEasingY=a;this.isAnimating=true;this.lastX=null;this.lastY=null;Ext.AnimationQueue.start(this.doAnimationFrame,this);this.fireEvent("animationstart",this,this.x,this.y);return this},translateAnimated:function(b,i,g){var e=this;if(!Ext.isObject(g)){g={}}if(e.isAnimating){e.stopAnimation()}e.callback=g.callback;e.callbackScope=g.scope;var d=Ext.Date.now(),h=g.easing,c=(typeof b=="number")?(g.easingX||h||e.getEasingX()||true):null,a=(typeof i=="number")?(g.easingY||h||e.getEasingY()||true):null;if(c){c=e.factoryEasing(c);c.setStartTime(d);c.setStartValue(e.x);c.setEndValue(b);if("duration" in g){c.setDuration(g.duration)}}if(a){a=e.factoryEasing(a);a.setStartTime(d);a.setStartValue(e.y);a.setEndValue(i);if("duration" in g){a.setDuration(g.duration)}}return e.animate(c,a)},doAnimationFrame:function(){var e=this,c=e.activeEasingX,b=e.activeEasingY,d=Date.now(),a,g;if(!e.isAnimating){return}e.lastRun=d;if(c===null&&b===null){e.stopAnimation();return}if(c!==null){e.x=a=Math.round(c.getValue());if(c.isEnded){e.activeEasingX=null;e.fireEvent("axisanimationend",e,"x",a)}}else{a=e.x}if(b!==null){e.y=g=Math.round(b.getValue());if(b.isEnded){e.activeEasingY=null;e.fireEvent("axisanimationend",e,"y",g)}}else{g=e.y}if(e.lastX!==a||e.lastY!==g){e.doTranslate(a,g);e.lastX=a;e.lastY=g}e.fireEvent("animationframe",e,a,g)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=false;Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent("animationend",a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.apply(this,arguments)}},1,0,0,0,0,0,[Ext.util.translatable,"Abstract"],0));(Ext.cmd.derive("Ext.util.translatable.Dom",Ext.util.translatable.Abstract,{config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,"Dom"],0));(Ext.cmd.derive("Ext.util.translatable.CssTransform",Ext.util.translatable.Dom,{doTranslate:function(a,c){var b=this.getElement();if(!this.isDestroyed&&!b.isDestroyed){b.translate(a,c)}},destroy:function(){var a=this.getElement();if(a&&!a.isDestroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,"CssTransform"],0));(Ext.cmd.derive("Ext.util.translatable.ScrollPosition",Ext.util.translatable.Dom,{type:"scrollposition",config:{useWrapper:true},getWrapper:function(){var c=this.wrapper,b=this.getElement(),a;if(!c){a=b.getParent();if(!a){return null}if(a.hasCls("x-translatable-hboxfix")){a=a.getParent()}if(this.getUseWrapper()){c=b.wrap()}else{c=a}b.addCls("x-translatable");c.addCls("x-translatable-container");this.wrapper=c;c.on("painted",function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return c},doTranslate:function(a,d){var c=this.getWrapper(),b;if(c){b=c.dom;if(typeof a=="number"){b.scrollLeft=500000-a}if(typeof d=="number"){b.scrollTop=500000-d}}},destroy:function(){var a=this.getElement(),b=this.wrapper;if(b){if(!a.isDestroyed){if(this.getUseWrapper()){b.doReplaceWith(a)}a.removeCls("x-translatable")}if(!b.isDestroyed){b.removeCls("x-translatable-container");b.un("painted","refresh",this)}delete this.wrapper;delete this._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,"ScrollPosition"],0));(Ext.cmd.derive("Ext.util.translatable.ScrollParent",Ext.util.translatable.Dom,{isScrollParent:true,applyElement:function(a){var b=Ext.get(a);if(b){this.parent=b.parent()}return b},doTranslate:function(a,c){var b=this.parent;b.setScrollLeft(Math.round(-a));b.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},0,0,0,0,0,0,[Ext.util.translatable,"ScrollParent"],0));(Ext.cmd.derive("Ext.util.translatable.CssPosition",Ext.util.translatable.Dom,{doTranslate:function(a,c){var b=this.getElement().dom.style;if(typeof a=="number"){b.left=a+"px"}if(typeof c=="number"){b.top=c+"px"}},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.apply(this,arguments)}},0,0,0,0,0,0,[Ext.util.translatable,"CssPosition"],0));(Ext.cmd.derive("Ext.util.Translatable",Ext.Base,{constructor:function(a){var b=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(a)){case"scrollposition":return new b.ScrollPosition(a);case"scrollparent":return new b.ScrollParent(a);case"csstransform":return new b.CssTransform(a);case"cssposition":return new b.CssPosition(a)}}},1,0,0,0,0,0,[Ext.util,"Translatable"],0));(Ext.cmd.derive("Ext.scroll.Indicator",Ext.Widget,{config:{axis:null,hideAnimation:true,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:"l",getSize:"getHeight",setLength:"setWidth",translate:"translateX"},y:{side:"t",getSize:"getWidth",setLength:"setHeight",translate:"translateY"}},oppositeAxis:{x:"y",y:"x"},cls:"x-scroll-indicator",applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(a){var c=this,b;Ext.Widget.prototype.constructor.call(this,a);b=c.getAxis();c.names=c.names[b];c.element.addCls(c.cls+" "+c.cls+"-"+b)},hide:function(){var b=this,a=b.getHideDelay();if(a){b._hideTimer=Ext.defer(b.doHide,a,b)}else{b.doHide()}},setValue:function(n){var l=this,c=l.element,k=l.names,d=l.getAxis(),i=l.getScroller(),h=i.getMaxUserPosition()[d],o=i.getElementSize()[d],j=l.length,b=l.getMinLength(),a=j,g=o-j-l.sizeAdjust,p=Math.round,m=Math.max,e;if(n<0){a=p(m(j+(j*n/o),b));e=0}else{if(n>h){a=p(m(j-(j*(n-h)/o),b));e=g+j-a}else{e=p(n/h*g)}}l[k.translate](e);c[k.setLength](a)},show:function(){var b=this,a=b.element,c=a.getActiveAnimation();if(c){c.end()}if(a.stopAnimation){a.stopAnimation()}if(!b._inDom){b.getScroller().getElement().appendChild(a);b._inDom=true;if(!b.size){b.cacheStyles()}}b.refreshLength();clearTimeout(b._hideTimer);a.setStyle("opacity","")},privates:{cacheStyles:function(){var b=this,a=b.element,c=b.names;b.size=a[c.getSize]();b.margin=a.getMargin(c.side)},doHide:function(){var b=this.getHideAnimation(),a=this.element;if(b){a.animate(b)}else{a.setStyle("opacity",0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle("opacity","0")},refreshLength:function(){var j=this,i=j.names,d=j.getAxis(),g=j.getScroller(),a=g.getSize()[d],k=g.getElementSize()[d],h=k/a,c=j.margin*2,e=j.hasOpposite()?(c+j.size):c,b=Math.max(Math.round((k-e)*h),j.getMinLength());j.sizeAdjust=e;j.length=b;j.element[i.setLength](b)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}},1,["scrollindicator"],["widget","scrollindicator"],{widget:true,scrollindicator:true},["widget.scrollindicator"],0,[Ext.scroll,"Indicator"],0));Ext.define("Ext.rtl.scroll.Indicator",{override:"Ext.scroll.Indicator",privates:{translateX:function(a){if(this.getScroller().getRtl()){a=-a}arguments.callee.$previous.call(this,a)}}});(Ext.cmd.derive("Ext.scroll.TouchScroller",Ext.scroll.Scroller,{isTouchScroller:true,config:{autoRefresh:true,bounceEasing:{duration:400},elementSize:undefined,indicators:true,fps:"auto",maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapSize:{x:0,y:0},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:"auto",useWrapper:false},refreshOnIdle:true},cls:"x-scroll-container",scrollerCls:"x-scroll-scroller",dragStartTime:0,dragEndTime:0,isDragging:false,isAnimating:false,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:"onTouchStart",touchmove:"onTouchMove",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd"},refreshCounter:0,constructor:function(a){var b=this,c="onEvent";b.elementListeners={touchstart:c,touchmove:c,dragstart:c,drag:c,dragend:c,scope:b};b.minPosition={x:0,y:0};b.startPosition={x:0,y:0};b.position={x:0,y:0};b.velocity={x:0,y:0};b.isAxisEnabledFlags={x:false,y:false};b.flickStartPosition={x:0,y:0};b.flickStartTime={x:0,y:0};b.lastDragPosition={x:0,y:0};b.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,a);b.refreshAxes()},applyRefreshOnIdle:function(b,a){var c=this;if(b){Ext.GlobalEvents.on("idle",c.onIdle,c)}else{if(a){Ext.GlobalEvents.un("idle",c.onIdle,c)}}return b},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return{x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyElementSize:function(b){var c=this.getElement(),d,a,e;if(!c){return null}d=c.dom;if(!d){return}if(b==null){a=d.clientWidth;e=d.clientHeight}else{a=b.x;e=b.y}return{x:a,y:e}},applyIndicators:function(g,c){var e=this,b,d,a,h;if(g){if(g===true){b=d={}}else{a=g.x;h=g.y;if(a||h){b=(a==null||a===true)?{}:a;d=(a==null||h===true)?{}:h}else{b=d=g}}if(c){if(b){c.x.setConfig(b)}else{c.x.destroy();c.x=null}if(d){c.y.setConfig(d)}else{c.y.destroy();c.y=null}g=c}else{g={x:null,y:null};if(b){g.x=new Ext.scroll.Indicator(Ext.applyIf({axis:"x",scroller:e,hideDelay:100},b))}if(d){g.y=new Ext.scroll.Indicator(Ext.applyIf({axis:"y",scroller:e,hideDelay:100},d))}}}else{if(c){c.x=c.y=Ext.destroy(c.x,c.y)}}return g},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return{x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyInnerElement:function(a){if(a){if(!a.isElement){a=Ext.get(a)}}return a},applySize:function(b,d){var c,g,e,a,h;if(b==null){c=this.getElement();if(!c){return null}g=c.dom;e=this.getInnerElement().dom;a=Math.max(e.scrollWidth,g.clientWidth);h=Math.max(e.scrollHeight,g.clientHeight)}else{if(typeof b==="number"){a=b;h=b}else{a=b.x;h=b.y}}if(d&&d.x===a&&d.y===h){b=undefined}else{b={x:a,y:h}}return b},applySlotSnapOffset:function(a){if(typeof a==="number"){return{x:a,y:a}}return a},applySlotSnapSize:function(a){if(typeof a==="number"){return{x:a,y:a}}return a},applySlotSnapEasing:function(b){var a=Ext.fx.easing.EaseOut;return{x:Ext.factory(b,a),y:Ext.factory(b,a)}},applyTranslatable:function(b,a){return Ext.factory(b,Ext.util.Translatable,a)},destroy:function(){var c=this,b=c.getElement(),d=c.getInnerElement(),a=c.sizeMonitors;if(a){a.element.destroy();a.container.destroy()}if(b&&!b.isDestroyed){b.removeCls(c.cls)}if(d&&!d.isDestroyed){d.removeCls(c.scrollerCls)}if(c._isWrapped){if(!b.isDestroyed){c.unwrapContent()}d.destroy();if(c.FixedHBoxStretching){d.parent().destroy()}}c.setElement(null);c.setInnerElement(null);Ext.GlobalEvents.un("idle",c.onIdle,c);Ext.destroy(c.getTranslatable());Ext.scroll.Scroller.prototype.destroy.apply(this,arguments)},getPosition:function(){return this.position},refresh:function(a,b){++this.refreshCounter;if(a){this.doRefresh(b)}},setSize:function(a){this.passedSize=a;(arguments.callee.$previous||Ext.scroll.Scroller.prototype.setSize).call(this,a)},updateAutoRefresh:function(a){this.toggleResizeListeners(a)},updateBounceEasing:function(a){this.getTranslatable().setEasingX(a.x).setEasingY(a.y)},updateElementSize:function(){if(!this.isConfiguring){this.refreshAxes()}},updateDisabled:function(a){if(!this.isConfiguring){if(a){this.detachListeners()}else{this.attachListeners()}}},updateElement:function(b,a){var d=this,e=d.getInnerElement(),g=this.FixedHBoxStretching,c;if(!e){e=b.dom.firstChild;if(g&&e){e=e.dom.firstChild}if(!e||e.nodeType!==1||!Ext.fly(e).hasCls(d.scrollerCls)){e=d.wrapContent(b)}d.setInnerElement(e)}if(!g){b.addCls(d.cls)}if(d.isConfiguring){if(!d.getTranslatable().isScrollParent){b.dom.style.overflowX=b.dom.style.overflowY="";c=d.elementListeners;c.mousewheel="onMouseWheel";c.scroll={fn:"onElementScroll",delegated:false,scope:d}}}if(!d.getDisabled()){d.attachListeners()}if(!d.isConfiguring){if(d.getAutoRefresh()){d.toggleResizeListeners(true)}d.setSize(null);d.setElementSize(null)}},updateFps:function(a){if(a!=="auto"){this.getTranslatable().setFps(a)}},updateMaxUserPosition:function(){this.snapToBoundary()},updateMinUserPosition:function(){this.snapToBoundary()},updateInnerElement:function(a){if(a){a.addCls(this.scrollerCls)}this.getTranslatable().setElement(a)},updateSize:function(a,d){var c=this,b=c.passedSize;if(!c.isConfiguring){if(Ext.supports.touchScroll===1){if(b==null){a=b}Ext.scroll.Scroller.prototype.updateSize.call(this,a,d)}c.refreshAxes()}},updateTranslatable:function(a){a.setElement(this.getInnerElement());a.on({animationframe:"onAnimationFrame",animationend:"onAnimationEnd",scope:this})},updateX:function(){if(!this.isConfiguring){this.refreshAxes()}},updateY:function(){if(!this.isConfiguring){this.refreshAxes()}},privates:{attachListeners:function(){this.getElement().on(this.elementListeners)},constrainX:function(a){return Math.min(this.getMaxPosition().x,Math.max(a,0))},constrainY:function(a){return Math.min(this.getMaxPosition().y,Math.max(a,0))},convertEasingConfig:function(a){return a},detachListeners:function(){this.getElement().un(this.elementListeners)},doRefresh:function(b){var d=this,c,a;if(d.refreshCounter&&d.getElement()){d.stopAnimation();d.getTranslatable().refresh();if(b){c=b.size;a=b.elementSize;if(c){d.setSize(c)}if(a){d.setElementSize(a)}}else{d.setSize(null);d.setElementSize(null)}d.fireEvent("refresh",d);d.refreshCounter=0}},doScrollTo:function(k,j,b,g){var i=this,h=i.isDragging,a;if(i.isDestroyed||!i.getElement()){return i}g=g||i.isDragging;var l=i.getTranslatable(),c=i.position,m=false,e,d;if(!h||i.isAxisEnabled("x")){if(isNaN(k)||typeof k!=="number"){k=c.x}else{if(!g){k=i.constrainX(k)}if(c.x!==k){c.x=k;m=true}}e=i.convertX(-k)}if(!h||i.isAxisEnabled("y")){if(isNaN(j)||typeof j!=="number"){j=c.y}else{if(!g){j=i.constrainY(j)}if(c.y!==j){c.y=j;m=true}}d=-j}if(m){if(b){a=function(){i.onScroll()};if(b===true){b={callback:a}}else{if(b.callback){b.callback=Ext.Function.createSequence(b.callback,a)}else{b.callback=a}}l.translateAnimated(e,d,b)}else{l.translate(e,d);i.onScroll()}}return i},getAnimationEasing:function(i,l){if(!this.isAxisEnabled(i)){return null}var n=this,h=n.position[i],d=n.getMinUserPosition()[i],k=n.getMaxUserPosition()[i],b=n.getMaxAbsoluteVelocity(),g=null,c=n.dragEndTime,j=l.flick.velocity[i],o=i==="x",a,m;if(h<d){g=d}else{if(h>k){g=k}}if(o){h=n.convertX(h);g=n.convertX(g)}if(g!==null){m=n.getBounceEasing()[i];m.setConfig({startTime:c,startValue:-h,endValue:-g});return m}if(j===0){return null}if(j<-b){j=-b}else{if(j>b){j=b}}if(Ext.browser.is.IE){j*=2}m=n.getMomentumEasing()[i];a={startTime:c,startValue:-h,startVelocity:j*1.5,minMomentumValue:-k,maxMomentumValue:0};if(o){n.convertEasingConfig(a)}m.setConfig(a);return m},getSnapPosition:function(c){var d=this,i=d.getSlotSnapSize()[c],e=null,a,h,g,b;if(i!==0&&d.isAxisEnabled(c)){a=d.position[c];h=d.getSlotSnapOffset()[c];g=d.getMaxUserPosition()[c];b=Math.floor((a-h)%i);if(b!==0){if(a!==g){if(Math.abs(b)>i/2){e=Math.min(g,a+((b>0)?i-b:b-i))}else{e=a-b}}else{e=a-b}}}return e},hideIndicators:function(){var c=this,d=c.getIndicators(),a,b;if(d){if(c.isAxisEnabled("x")){a=d.x;if(a){a.hide()}}if(c.isAxisEnabled("y")){b=d.y;if(b){b.hide()}}}},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(c,b,d){var a=this.position;a.x=this.convertX(-b);a.y=-d;this.onScroll()},onAxisDrag:function(d,q){if(!this.isAxisEnabled(d)){return}var r=this,l=r.flickStartPosition,s=r.flickStartTime,j=r.lastDragPosition,n=r.dragDirection,a=r.position[d],o=r.getMinUserPosition()[d],p=r.getMaxUserPosition()[d],h=r.startPosition[d],k=j[d],m=h-q,i=n[d],g=r.getOutOfBoundRestrictFactor(),b=r.getStartMomentumResetTime(),c=Ext.Date.now(),e;if(m<o){m*=g}else{if(m>p){e=m-p;m=p+e*g}}if(m>k){n[d]=1}else{if(m<k){n[d]=-1}}if((i!==0&&(n[d]!==i))||(c-s[d])>b){l[d]=a;s[d]=c}j[d]=m},onDomScroll:function(){var b=this,c,a;if(b.getTranslatable().isScrollParent){c=b.getScrollElement().dom;a=b.position;a.x=c.scrollLeft;a.y=c.scrollTop}if(Ext.supports.touchScroll===2){c=c||b.getScrollElement().dom;c.scrollTop=c.scrollLeft=0;return}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}a.onAxisDrag("x",a.convertX(c.deltaX));a.onAxisDrag("y",c.deltaY);a.doScrollTo(b.x,b.y)},onDragEnd:function(d){var c=this,b,a;if(!c.isDragging){return}c.dragEndTime=Ext.Date.now();c.onDrag(d);c.isDragging=false;b=c.getAnimationEasing("x",d);a=c.getAnimationEasing("y",d);if(b||a){c.getTranslatable().animate(b,a)}else{c.onScrollEnd()}},onDragStart:function(n){var o=this,j=n.absDeltaX,h=n.absDeltaY,l=o.startPosition,g=o.flickStartPosition,m=o.flickStartTime,k=o.lastDragPosition,d=o.position,c=o.dragDirection,q=d.x,p=d.y,b=Ext.Date.now(),a=o.getX(),i=o.getY();if(o.getDirectionLock()&&!(a&&i)){if((a&&j>h)||(i&&h>j)){n.stopPropagation()}else{return}}k.x=q;k.y=p;g.x=q;g.y=p;l.x=q;l.y=p;m.x=b;m.y=b;c.x=0;c.y=0;o.dragStartTime=b;o.isDragging=true;o.onScrollStart()},onElementResize:function(a,b){this.refresh(true,{elementSize:{x:b.width,y:b.height}})},onElementScroll:function(a,b){b.scrollTop=b.scrollLeft=0},onEvent:function(b){var a=this,c=b.browserEvent;if((!a.self.isTouching||a.isTouching)&&((!a.getTranslatable().isScrollParent)||(!a.isMouseEvent[c.type]&&c.pointerType!=="mouse"))&&(a.getY()||a.getX())){a[a.listenerMap[b.type]](b)}},onIdle:function(){this.doRefresh()},onInnerElementResize:function(a,b){this.refresh(true,{size:{x:b.width,y:b.height}})},onMouseWheel:function(k){var l=this,n=k.getWheelDeltas(),d=-n.x,b=-n.y,h=l.position,g=l.getMaxUserPosition(),a=l.getMinUserPosition(),m=Math.max,c=Math.min,j=m(c(h.x+d,g.x),a.x),i=m(c(h.y+b,g.y),a.y);d=j-h.x;b=i-h.y;if(!d&&!b){return}k.stopEvent();l.onScrollStart();l.scrollBy(d,b);l.onScroll();l.onScrollEnd()},onPartnerScrollEnd:function(){this.hideIndicators()},onPartnerScrollStart:function(){this.showIndicators()},onScroll:function(){var e=this,c=e.position,b=c.x,h=c.y,g=e.getIndicators(),a,d;if(g){if(e.isAxisEnabled("x")){a=g.x;if(a){a.setValue(b)}}if(e.isAxisEnabled("y")){d=g.y;if(d){d.setValue(h)}}}e.fireScroll(b,h)},onScrollEnd:function(){var b=this,a=b.position;b.hideIndicators();if(!b.isTouching&&!b.snapToSlot()){b.fireScrollEnd(a.x,a.y)}b.isScrolling=Ext.isScrolling=false},onScrollStart:function(){var b=this,a=b.position;b.showIndicators();b.isScrolling=Ext.isScrolling=true;b.fireScrollStart(a.x,a.y)},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=false;if(!a.isDragging&&a.snapToSlot()){a.onScrollStart()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(){var a=this;Ext.getDoc().on({touchend:"onTouchEnd",scope:a,single:true});a.stopAnimation();a.isTouching=a.self.isTouching=true},refreshAxes:function(){var e=this,c=e.isAxisEnabledFlags,l=e.getSize(),k=e.getElementSize(),j=e.getIndicators(),b,a,i,h,d,g;if(!l||!k){return}b=Math.max(0,l.x-k.x);a=Math.max(0,l.y-k.y);i=e.getX();h=e.getY();e.setMaxPosition({x:b,y:a});if(i===true||i==="auto"){c.x=!!b}else{if(i===false){c.x=false;d=j&&j.x;if(d){d.hide()}}else{if(i==="scroll"){c.x=true}}}if(h===true||h==="auto"){c.y=!!a}else{if(h===false){c.y=false;g=j&&j.y;if(g){g.hide()}}else{if(h==="scroll"){c.y=true}}}e.setMaxUserPosition({x:c.x?b:0,y:c.y?a:0});if(Ext.supports.touchScroll===1){e.initXStyle();e.initYStyle()}},showIndicators:function(){var c=this,d=c.getIndicators(),a,b;if(d){if(c.isAxisEnabled("x")){a=d.x;if(a){a.show()}}if(c.isAxisEnabled("y")){b=d.y;if(b){b.show()}}}},snapToBoundary:function(){if(this.isConfiguring){return}var i=this,h=i.position,c=i.getMinUserPosition(),g=i.getMaxUserPosition(),e=c.x,d=c.y,b=g.x,a=g.y,k=Math.round(h.x),j=Math.round(h.y);if(k<e){k=e}else{if(k>b){k=b}}if(j<d){j=d}else{if(j>a){j=a}}i.doScrollTo(k,j)},snapToSlot:function(){var a=this,c=a.getSnapPosition("x"),b=a.getSnapPosition("y"),d=a.getSlotSnapEasing();if(c!==null||b!==null){a.doScrollTo(c,b,{easingX:d.x,easingY:d.y});return true}return false},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(a){var c=this,b=c.getElement(),d=a?"on":"un";if(b){b[d]("resize","onElementResize",c);c.getInnerElement()[d]("resize","onInnerElementResize",c)}},unwrapContent:function(){var a=this.getInnerElement().dom,b=this.getElement().dom,c;while((c=a.firstChild)){b.insertBefore(c,a)}},wrapContent:function(a){var b=document.createElement("div"),c=a.dom,d;while(d=c.lastChild){b.insertBefore(d,b.firstChild)}c.appendChild(b);this.setInnerElement(b);this._isWrapped=true;return this.getInnerElement()}}},1,0,0,0,["scroller.touch"],0,[Ext.scroll,"TouchScroller"],0));Ext.define("Ext.rtl.scroll.TouchScroller",{override:"Ext.scroll.TouchScroller",_rtlCls:"x-rtl",updateRtl:function(e){var d,a,b,c;if(e){d=this.getIndicators();if(d){c=this._rtlCls;a=d.x;b=d.y;if(a){a.element.addCls(c)}if(b){b.element.addCls(c)}}}},privates:{convertX:function(a){if(a&&this.getRtl()){a=-a}return a},convertEasingConfig:function(b){var a=b.minMomentumValue,c=b.maxMomentumValue;if(this.getRtl()){b.minMomentumValue=c;b.maxMomentumValue=-a}}}});(Ext.cmd.derive("Ext.scroll.DomScroller",Ext.scroll.Scroller,{isDomScroller:true,getMaxPosition:function(){var b=this.getElement(),a=0,d=0,c;if(b&&!b.isDestroyed){c=b.dom;a=c.scrollWidth-c.clientWidth;d=c.scrollHeight-c.clientHeight}return{x:a,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),a=0,e=0,d;if(b&&!b.isDestroyed){d=b.dom;if(c.getX()){a=d.scrollWidth-d.clientWidth}if(c.getY()){e=d.scrollHeight-d.clientHeight}}return{x:a,y:e}},getPosition:function(){var c=this.getScrollElement(),b=0,d=0,a;if(c&&!c.isDestroyed){a=this.getElementScroll(c);b=a.left;d=a.top}return{x:b,y:d}},getSize:function(){var b=this.getElement(),a,c;if(b&&!b.isDestroyed){c=b.dom;a={x:c.scrollWidth,y:c.scrollHeight}}else{a={x:0,y:0}}return a},updateElement:function(b,a){this.initXStyle();this.initYStyle()},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},privates:{doScrollTo:function(i,h,a){var g=this,c=g.getScrollElement(),d,b,j,k,e;if(c&&!c.isDestroyed){b=c.dom;k=(i===Infinity);e=(h===Infinity);if(k||e){d=g.getMaxPosition();if(k){i=d.x}if(e){h=d.y}}i=g.convertX(i);if(a){j={};if(h!=null){j.scrollTop=h}if(i!=null){j.scrollLeft=i}c.animate(Ext.mergeIf({to:{scrollTop:h,scrollLeft:i}},a))}else{if(h!=null){b.scrollTop=h}if(i!=null){b.scrollLeft=i}}}},getElementScroll:function(a){return a.getScroll()},stopAnimation:function(){var a=this.getElement().getActiveAnimation();if(a){a.end()}}}},0,0,0,0,["scroller.dom"],0,[Ext.scroll,"DomScroller"],function(a){Ext.onDocumentReady(function(){a.document=new a({x:true,y:true,element:document.documentElement})})}));Ext.define("Ext.rtl.scroll.DomScroller",{override:"Ext.scroll.DomScroller",privates:{convertX:function(a){var b;if(this.getRtl()){b=this.getElement();if(b){a=b.rtlNormalizeScrollLeft(a)}}return a},getElementScroll:function(a){return this.getRtl()?a.rtlGetScroll():a.getScroll()}}});(Ext.cmd.derive("Ext.util.Floating",Ext.Base,{mixinId:"floating",focusOnToFront:true,shadow:"sides",animateShadow:false,constrain:false,config:{activeCounter:0,alwaysOnTop:false},preventDefaultAlign:false,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var d=this,c=d.el,e=d.shadow,a,b;if(e){b={mode:(e===true)?"sides":e};a=d.shadowOffset;if(a){b.offset=a}b.animate=d.animateShadow;b.fixed=d.fixed;c.enableShadow(b,false)}if(d.shim||Ext.useShims){c.enableShim({fixed:d.fixed},false)}c.setVisibilityMode(d._visModeMap[d.hideMode]);if(d.modal&&!(Ext.enableFocusManager)){d.el.on("keydown",d.onKeyDown,d)}d.el.on({mousedown:d.onMouseDown,scope:d,capture:true});d.registerWithOwnerCt();d.initHierarchyEvents()},alignTo:function(c,a,e,b){var d=this;if(!d._lastAlignToEl){Ext.on("scroll",d.onAlignToScroll,d)}d._lastAlignToEl=c;d._lastAlignToPos=a;d.mixins.positionable.alignTo.call(d,c,a,e,b)},initFloatConstrain:function(){var a=this,b=a.floatParent;if((a.constrain||a.constrainHeader)&&!a.constrainTo){a.constrainTo=b?b.getTargetEl():a.container}},initHierarchyEvents:function(){var b=this,a=this.syncHidden;if(!b.hasHierarchyEventListeners){b.mon(Ext.GlobalEvents,{hide:a,collapse:a,show:a,expand:a,added:a,scope:b});b.hasHierarchyEventListeners=true}},registerWithOwnerCt:function(){var c=this,b=c.ownerCt,a=c.zIndexParent;if(a){a.unregisterFloatingItem(c)}a=c.zIndexParent=c.up("[floating]");c.floatParent=b||a;c.initFloatConstrain();delete c.ownerCt;if(a){a.registerFloatingItem(c)}else{Ext.WindowManager.register(c)}},onKeyDown:function(d){var c=this,a,h,g,b;if(d.getKey()===d.TAB){a=d.shiftKey;h=c.query(":focusable");if(h.length){g=h[0];b=h[h.length-1];if(!a&&b.hasFocus){d.stopEvent();g.focus()}else{if(a&&g.hasFocus){d.stopEvent();b.focus()}}}}},onMouseDown:function(h){var c=this,a=c.focusTask,b=h.parentEvent,d=b&&b.type==="touchstart",g,i,j;if(c.floating&&(!a||!a.id)){g=h.target;i=c.el.dom;while(!d&&g&&g!==i){if(Ext.fly(g).isFocusable()){d=true}g=g.parentNode}j=Ext.WindowManager.getActive()===c&&(g===i||d);if(!j){c.toFront(d)}}},onBeforeFloatLayout:function(){this.el.preventSync=true},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(true);a.syncUnderlays()}},syncHidden:function(){var c=this,d=c.hidden||!c.rendered,a=c.hierarchicallyHidden=c.isHierarchicallyHidden(),b=c.pendingShow;if(d!==a){if(a){c.hide();c.pendingShow=true}else{if(b){delete c.pendingShow;if(b.length){c.show.apply(c,b)}else{c.show()}}}}},setZIndex:function(a){var b=this;b.el.setZIndex(a);a+=10;if(b.floatingDescendants){a=Math.floor(b.floatingDescendants.setBase(a)/100)*100+10000}return a},doConstrain:function(a){var b=this,c=b.calculateConstrainedPosition(a,null,true);if(c){b.setPosition(c)}},updateActiveCounter:function(a){var b=this,c=b.zIndexParent;if(c&&c!==c.zIndexManager.front&&b.bringParentToFront!==false){c.setActiveCounter(++Ext.ZIndexManager.activeCounter)}c=b.zIndexManager;if(c){c.onComponentUpdate(b)}},updateAlwaysOnTop:function(a){var b=this.zIndexManager;if(b){b.onComponentUpdate(this)}},toFront:function(b){var a=this;if(a.zIndexManager.bringToFront(a,b||!a.focusOnToFront)){if(a.hasListeners.tofront){a.fireEvent("tofront",a,a.el.getZIndex())}}return a},setActive:function(d,b){var c=this,a;if(d){if(c.el.shadow&&!c.maximized){c.el.enableShadow(null,true)}if(b){a=Ext.ComponentManager.getActiveComponent();if(!a||!a.up(c)){c.focus()}}c.fireEvent("activate",c)}else{c.fireEvent("deactivate",c)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b;if(a.isVisible()){b=a.getAlignToXY(a.container,"c-c");a.setPagePosition(b)}else{a.needsCenter=true}return a},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(c){var g=this,e=g.floatParent,b=e?e.getTargetEl():g.container,a=b.getViewSize(),d=e||(b.dom!==document.body)?[0,0]:b.getXY();a.x=d[0];a.y=d[1];g.setBox(a,c)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var a=this;if(a._lastAlignToEl){Ext.un("scroll",a.onAlignToScroll,a);a._lastAlignPos=a._lastAlignToEl=null}},onAlignToScroll:function(a){var c=this,b=c._lastAlignToEl,d;if(b&&!a.getElement().contains(c.el)){d=b.isElement?b.dom:b;if(d&&!Ext.isGarbage(d)){c.alignTo(b,c._lastAlignToPos)}else{c.clearAlignEl()}}}}},1,0,0,0,0,0,[Ext.util,"Floating"],0));(Ext.cmd.derive("Ext.util.ElementContainer",Ext.Base,{mixinId:"elementCt",config:{childEls:{$value:{},cached:true,lazy:true,merge:function(g,a,e,d){var c=a?Ext.Object.chain(a):{},b,h;if(g instanceof Array){for(b=g.length;b--;){h=g[b];if(!d||!(h in c)){if(typeof h==="string"){c[h]={name:h,itemId:h}}else{c[h.name]=h}}}}else{if(g){if(g.constructor===Object){for(b in g){if(!d||!(b in c)){h=g[b];if(h===true){c[b]={itemId:b}}else{if(typeof h==="string"){c[b]={itemId:h}}else{c[b]=h;if(!("itemId" in h)){h.itemId=b}}}c[b].name=b}}}else{if(!d||!(g in c)){c[g]={name:g,itemId:g}}}}}return c}}},destroy:function(){var c=this,b=c.getChildEls(),d,a;for(a in b){d=c[a];if(d){if(d.destroy){d.component=null;d.destroy()}c[a]=null}}},privates:{afterClassMixedIn:function(c){var b=c.prototype,a=b.childEls;if(a){delete b.childEls;c.getConfigurator().add({childEls:a})}},attachChildEls:function(d,c){var i=this,j=i.getChildEls(),h=c||i,o=h.id+"-",n=!h.frame,p,a,m,g,e,l,b;for(p in j){m=j[p];if(n&&m.frame){continue}e=m.select;if(e){l=d.select(e,true)}else{if(!(e=m.selectNode)){if(!(b=m.id)){b=o+m.itemId;l=Ext.cache[b]}else{l=Ext.cache[b]||d.getById(b)}}else{l=d.selectNode(e,false)}}if(l){if(l.isElement){l.component=h}else{if(l.isComposite&&!l.isLite){a=l.elements;for(g=a.length;g--;){a[g].component=h}}}}i[p]=l||null}}}},0,0,0,0,0,0,[Ext.util,"ElementContainer"],0));(Ext.cmd.derive("Ext.util.Renderable",Ext.Base,{mixinId:"renderable",frameCls:"x-frame",frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:["TL","TC","TR","ML","MC","MR","BL","BC","BR","Table"],frameTpl:["{%this.renderDockedItems(out,values,0);%}",'<tpl if="top">','<tpl if="left"><div id="{fgid}TL" data-ref="frameTL" class="{frameCls}-tl {baseCls}-tl {baseCls}-{ui}-tl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tl</tpl>{frameElCls}" role="presentation"></tpl>','<tpl if="right"><div id="{fgid}TR" data-ref="frameTR" class="{frameCls}-tr {baseCls}-tr {baseCls}-{ui}-tr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tr</tpl>{frameElCls}" role="presentation"></tpl>','<div id="{fgid}TC" data-ref="frameTC" class="{frameCls}-tc {baseCls}-tc {baseCls}-{ui}-tc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tc</tpl>{frameElCls}" role="presentation"></div>','<tpl if="right"></div></tpl>','<tpl if="left"></div></tpl>',"</tpl>",'<tpl if="left"><div id="{fgid}ML" data-ref="frameML" class="{frameCls}-ml {baseCls}-ml {baseCls}-{ui}-ml<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-ml</tpl>{frameElCls}" role="presentation"></tpl>','<tpl if="right"><div id="{fgid}MR" data-ref="frameMR" class="{frameCls}-mr {baseCls}-mr {baseCls}-{ui}-mr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mr</tpl>{frameElCls}" role="presentation"></tpl>','<div id="{fgid}Body" data-ref="frameBody" class="{frameBodyCls} {frameCls}-mc {baseCls}-mc {baseCls}-{ui}-mc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mc</tpl>{frameElCls}" role="presentation">',"{%this.applyRenderTpl(out, values)%}","</div>",'<tpl if="right"></div></tpl>','<tpl if="left"></div></tpl>','<tpl if="bottom">','<tpl if="left"><div id="{fgid}BL" data-ref="frameBL" class="{frameCls}-bl {baseCls}-bl {baseCls}-{ui}-bl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bl</tpl>{frameElCls}" role="presentation"></tpl>','<tpl if="right"><div id="{fgid}BR" data-ref="frameBR" class="{frameCls}-br {baseCls}-br {baseCls}-{ui}-br<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-br</tpl>{frameElCls}" role="presentation"></tpl>','<div id="{fgid}BC" data-ref="frameBC" class="{frameCls}-bc {baseCls}-bc {baseCls}-{ui}-bc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bc</tpl>{frameElCls}" role="presentation"></div>','<tpl if="right"></div></tpl>','<tpl if="left"></div></tpl>',"</tpl>","{%this.renderDockedItems(out,values,1);%}"],frameTableTpl:["{%this.renderDockedItems(out,values,0);%}",'<table id="{fgid}Table" data-ref="frameTable" class="{frameCls} ','x-table-plain" cellpadding="0" role="presentation">','<tpl if="top">','<tr role="presentation">','<tpl if="left"><td id="{fgid}TL" data-ref="frameTL" class="{frameCls}-tl {baseCls}-tl {baseCls}-{ui}-tl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tl</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}TC" data-ref="frameTC" class="{frameCls}-tc {baseCls}-tc {baseCls}-{ui}-tc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tc</tpl>{frameElCls}" role="presentation"></td>','<tpl if="right"><td id="{fgid}TR" data-ref="frameTR" class="{frameCls}-tr {baseCls}-tr {baseCls}-{ui}-tr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tr</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>","</tpl>",'<tr role="presentation">','<tpl if="left"><td id="{fgid}ML" data-ref="frameML" class="{frameCls}-ml {baseCls}-ml {baseCls}-{ui}-ml<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-ml</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}Body" data-ref="frameBody" class="{frameBodyCls} {frameCls}-mc {baseCls}-mc {baseCls}-{ui}-mc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mc</tpl>{frameElCls}" style="{mcStyle}" role="presentation">',"{%this.applyRenderTpl(out, values)%}","</td>",'<tpl if="right"><td id="{fgid}MR" data-ref="frameMR" class="{frameCls}-mr {baseCls}-mr {baseCls}-{ui}-mr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mr</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>",'<tpl if="bottom">','<tr role="presentation">','<tpl if="left"><td id="{fgid}BL" data-ref="frameBL" class="{frameCls}-bl {baseCls}-bl {baseCls}-{ui}-bl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bl</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}BC" data-ref="frameBC" class="{frameCls}-bc {baseCls}-bc {baseCls}-{ui}-bc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bc</tpl>{frameElCls}" role="presentation"></td>','<tpl if="right"><td id="{fgid}BR" data-ref="frameBR" class="{frameCls}-br {baseCls}-br {baseCls}-{ui}-br<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-br</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>","</tpl>","</table>","{%this.renderDockedItems(out,values,1);%}"],_renderState:0,_layerCls:"x-layer",_fixedLayerCls:"x-fixed-layer",statics:{makeRenderSetter:function(a,c){var b=a.name;return function(e){var d=this,h=(d.renderConfigs||(d.renderConfigs={})),g=h[c];if(d._renderState>=c){(a.setter||a.getSetter()).call(d,e)}else{if(!g){h[c]=g={}}if(!(b in g)){g[b]=d[b]}d[b]=e}return d}},processRenderConfig:function(a,l,c){var h=this.prototype,e=this.getConfigurator(),m=Ext.util.Renderable,k=m.makeRenderSetter,d=a[l],i,j,b,g;for(b in d){j=Ext.Config.get(b);if(!h[g=j.names.set]){i=(j.renderSetter||(j.renderSetter={}));h[g]=i[c]||(i[c]=k(j,c))}}delete a[l];e.add(d)}},onClassMixedIn:function(c){var a=c.override,e=this.processRenderConfig,d=function(g){if(g.beforeRenderConfig){this.processRenderConfig(g,"beforeRenderConfig",1)}if(g.renderConfig){this.processRenderConfig(g,"renderConfig",3)}a.call(this,g)},b=function(h,g){h.override=d;h.processRenderConfig=e;if(g.beforeRenderConfig){h.processRenderConfig(g,"beforeRenderConfig",1)}if(g.renderConfig){h.processRenderConfig(g,"renderConfig",3)}};b(c,c.prototype);c.onExtended(b)},afterRender:function(){var i=this,d={},b=i.protoEl,h=i.el,e,j,c,g,a;i.finishRenderChildren();i._renderState=4;if(i.contentEl){c="x-";g=c+"hidden-";a=i.contentEl=Ext.get(i.contentEl);a.component=i;a.removeCls([c+"hidden",g+"display",g+"offsets"]);i.getContentTarget().appendChild(a.dom)}b.writeTo(d);j=d.removed;if(j){h.removeCls(j)}j=d.cls;if(j.length){h.addCls(j)}j=d.style;if(d.style){h.setStyle(j)}i.protoEl=null;if(!i.ownerCt){i.updateLayout()}if(!(i.x&&i.y)&&(i.pageX||i.pageY)){i.setPagePosition(i.pageX,i.pageY)}if(i.disableOnRender){i.onDisable()}if(Ext.enableAria){i.ariaApplyAfterRenderAttributes()}e=i.controller;if(e&&e.afterRender){e.afterRender(i)}},afterFirstLayout:function(d,l){var g=this,k=g.x,i=g.y,j=g.defaultAlign,b=g.alignOffset,e,c,a,h,m;if(!g.ownerLayout){c=k!==undefined;a=i!==undefined}if(g.floating&&!g.preventDefaultAlign&&(!c||!a)){if(g.floatParent){h=g.floatParent.getTargetEl().getViewRegion();m=g.el.getAlignToXY(g.alignTarget||g.floatParent.getTargetEl(),j,b);h.x=m[0]-h.x;h.y=m[1]-h.y}else{m=g.el.getAlignToXY(g.alignTarget||g.container,j,b);h=g.el.translateXY(m[0],m[1])}k=c?k:h.x;i=a?i:h.y;c=a=true}if(c||a){g.setPosition(k,i)}g.onBoxReady(d,l);e=g.controller;if(e&&e.boxReady){e.boxReady(g)}},beforeRender:function(){var d=this,e=d.floating,c=d.getComponentLayout(),b,a;d._renderState=1;a=d.controller;if(a&&a.beforeRender){a.beforeRender(d)}d.initBindable();if(d.renderConfigs){d.flushRenderConfigs()}if(d.reference){d.publishState()}if(e){d.addCls(d.fixed?d._fixedLayerCls:d._layerCls);b=e.cls;if(b){d.addCls(b)}}d.frame=d.frame||d.alwaysFramed;if(!c.initialized){c.initLayout()}d.initOverflow();d.setUI(d.ui)},doApplyRenderTpl:function(c,a){var d=a.$comp,b;if(!d.rendered){b=d.initRenderTpl();b.applyOut(a.renderData,c)}},getElConfig:function(){var d=this,g=d.autoEl,c=d.getFrameInfo(),a={tag:"div",tpl:c?d.initFramingTpl(c.table):d.initRenderTpl()},h=d.layoutTargetCls,e=d.protoEl,b;d.initStyles(e);if(h&&!c){e.addCls(h)}e.writeTo(a);e.flush();if(Ext.isString(g)){a.tag=g}else{Ext.apply(a,g)}if(Ext.enableAria&&d.ariaRenderAttributesToElement){Ext.apply(a,d.ariaGetRenderAttributes())}a.id=d.id;if(a.tpl){if(c){a.tplData=b=d.getFrameRenderData();b.renderData=d.initRenderData()}else{a.tplData=d.initRenderData()}}return a},getInsertPosition:function(a){if(a!==undefined){if(Ext.isNumber(a)){a=this.container.dom.childNodes[a]}else{a=Ext.getDom(a)}}return a},getRenderTree:function(){var b=this,a=null;if(!b.hasListeners.beforerender||b.fireEvent("beforerender",b)!==false){b._renderState=1;b.beforeRender();b.rendering=true;b._renderState=2;a=b.getElConfig();if(b.el){a.id=b.$pid=Ext.id(null,b.el.identifiablePrefix)}}return a},initRenderData:function(){var a=this;return Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,renderScroller:a.touchScroll,scrollerCls:a.scrollerCls,role:a.ariaRole,childElCls:""},a.renderData)},onRender:function(d,e){var g=this,i=g.x,h=g.y,c=null,b=g.el,a,j;g.applyRenderSelectors();g.rendering=null;g.rendered=true;g._renderState=3;if(g.renderConfigs){g.flushRenderConfigs()}if(i!=null){c={x:i}}if(h!=null){(c=c||{}).y=h}if(!g.getFrameInfo()){a=g.width;j=g.height;if(typeof a==="number"){c=c||{};c.width=a}if(typeof j==="number"){c=c||{};c.height=j}}if(g.touchScroll===1){g.getOverflowEl().disableTouchScroll()}g.lastBox=b.lastBox=c},render:function(c,b){var e=this,d=e.el,i=e.ownerLayout,h,a,g;if(d&&!d.isElement){e.wrapPrimaryEl(d);d=e.el}Ext.suspendLayouts();c=e.initContainer(c);g=e.getInsertPosition(b);if(!d){a=e.getRenderTree();if(i&&i.transformItemRenderTree){a=i.transformItemRenderTree(a)}if(a){if(g){d=Ext.DomHelper.insertBefore(g,a)}else{d=Ext.DomHelper.append(c,a)}e.wrapPrimaryEl(d);e.cacheRefEls(d)}}else{if(!e.hasListeners.beforerender||e.fireEvent("beforerender",e)!==false){e.beforeRender();e.needsRenderTpl=e.rendering=true;e._renderState=2;e.initStyles(d);if(e.allowDomMove!==false){if(g){c.dom.insertBefore(d.dom,g)}else{c.dom.appendChild(d.dom)}}}else{h=true}}if(d&&!h){e.finishRender(b)}Ext.resumeLayouts(!e.hidden&&!c.isDetachedBody)},ensureAttachedToBody:function(c){var b=this,a;while(b.ownerCt){b=b.ownerCt}if(b.container.isDetachedBody){b.container=a=Ext.getBody();a.appendChild(b.el.dom);if(c){b.updateLayout()}if(typeof b.x==="number"||typeof b.y==="number"){b.setPosition(b.x,b.y)}}},privates:{applyRenderSelectors:function(){var d=this,b=d.renderSelectors,c=d.el,e,a;d.attachChildEls(c);if(b){for(a in b){e=b[a];if(e){d[a]=c.selectNode(e,false)}}}},cacheRefEls:function(e){e=e||this.el;var c=Ext.cache,h=Ext.dom.Element,j=e.isElement?e.dom:e,b=j.querySelectorAll("[data-ref]"),a=b.length,g,d;for(d=0;d<a;d++){g=b[d];if(!c[g.id]){new h(g)}}},doAutoRender:function(){var a=this;if(!a.rendered){if(a.floating){a.render(a.renderTo||document.body)}else{a.render(Ext.isBoolean(a.autoRender)?Ext.getBody():a.autoRender)}}},doRenderContent:function(a,d){var b=d.$comp,c=b.data;if(b.html){Ext.DomHelper.generateMarkup(b.html,a);delete b.html}if(b.tpl){if(!b.tpl.isTemplate){b.tpl=new Ext.XTemplate(b.tpl)}if(c){b.data=c=c.isEntity?c.getData(true):c;b.tpl.applyOut(c,a)}}},doRenderFramingDockedItems:function(a,c,d){var b=c.$comp;if(!b.rendered&&b.doRenderDockedItems){c.renderData.$skipDockedItems=true;b.doRenderDockedItems.call(this,a,c,d)}},flushRenderConfigs:function(){var d=this,h=d.renderConfigs,g=d._renderState,j,c,b,a,e;if(h){for(c=0;c<=g;++c){j=h[c];if(j){h[c]=null;for(b in j){e=j[b];(a||(a={}))[b]=d[b];d[b]=e}}}if(a){d.setConfig(a)}}},finishRender:function(h){var k=this,a=Ext.cache,j,g,b,i,e,d,c;if(!k.el||k.$pid){if(k.container){c=a[k.id];d=c?c.dom:k.container.getById(k.id,true)}else{b=k.$pid||k.id;c=a[b];d=c?c.dom:Ext.getDom(b)}if(!k.el){k.wrapPrimaryEl(d)}else{delete k.$pid;if(!k.el.dom){k.wrapPrimaryEl(k.el)}d.parentNode.insertBefore(k.el.dom,d);j=d;d=k.el.dom;g=d.firstChild;while(j.firstChild){d.insertBefore(j.firstChild,g)}k.el.addCls(j.className);Ext.removeNode(j)}}else{if(k.needsRenderTpl){i=k.initRenderTpl();if(i){e=k.initRenderData();i.insertFirst(k.getTargetEl(),e)}k.cacheRefEls()}}k.el.component=k;if(!k.container){k.container=Ext.get(k.el.dom.parentNode)}if(k.ctCls){k.container.addCls(k.ctCls)}k.onRender(k.container,h);if(!k.overflowInited){k.initOverflow()}k.el.setVisibilityMode(Ext.Element[k.hideMode.toUpperCase()]);if(k.overCls){k.el.hover(k.addOverCls,k.removeOverCls,k)}if(k.hasListeners.render){k.fireEvent("render",k)}k.afterRender();if(k.hasListeners.afterrender){k.fireEvent("afterrender",k)}k.initEvents();if(k.hidden){k.el.hide()}},finishRenderChildren:function(){var a=this.getComponentLayout();a.finishRender()},getFrameRenderData:function(){var c=this,b=c.frameSize,a="";if(c._syncFrameHeight&&c.height){a="height:"+(c.height-b.height)+"px"}return{$comp:c,fgid:c.id+"-frame",ui:c.ui,uiCls:c.uiCls,frameCls:c.frameCls,frameBodyCls:c.layoutTargetCls||"",baseCls:c.baseCls,top:!!b.top,left:!!b.left,right:!!b.right,bottom:!!b.bottom,mcStyle:a,frameElCls:""}},getFrameInfo:function(){if(Ext.supports.CSS3BorderRadius||!this.frame){return false}var p=this,j=p.frameInfoCache,c=p.getFramingInfoCls()+"-frameInfo",q=j[c],i,l,h,r,d,e,k,s,o,b,m,a,g,n;if(q==null){i=Ext.fly(p.getStyleProxy(c),"frame-style-el");l=i.getStyle("font-family");if(l){l=l.split("-");h=parseInt(l[1],10);r=parseInt(l[2],10);d=parseInt(l[3],10);e=parseInt(l[4],10);k=parseInt(l[5],10);s=parseInt(l[6],10);o=parseInt(l[7],10);b=parseInt(l[8],10);m=parseInt(l[9],10);a=parseInt(l[10],10);g=parseInt(l[11],10);n=parseInt(l[12],10);q={table:l[0].charAt(0)==="t",vertical:l[0].charAt(1)==="v",top:h,right:r,bottom:d,left:e,width:e+r,height:h+d,border:{top:k,right:s,bottom:o,left:b,width:b+s,height:k+o},padding:{top:m,right:a,bottom:g,left:n,width:n+a,height:m+g}}}else{q=false}j[c]=q}p.frame=!!q;p.frameSize=q;return q},getFramingInfoCls:function(){return this.baseCls+"-"+this.ui},getStyleProxy:function(b){var a=this.styleProxyEl||(Ext.Component.prototype.styleProxyEl=Ext.getBody().createChild({role:"presentation",style:{position:"absolute",top:"-10000px"}},null,true));a.className=b;return a},getFrameTpl:function(a){return this.getTpl(a?"frameTableTpl":"frameTpl")},initContainer:function(a){var b=this;if(!a&&b.el){a=b.el.dom.parentNode;b.allowDomMove=false}b.container=a.dom?a:Ext.get(a);return b.container},initOverflow:function(){var d=this,a=d.getOverflowStyle(),g=d.scrollFlags,e=d.getOverflowEl(),c=(g.y||g.x),b=d.touchScroll=(c&&Ext.supports.touchScroll);if(!c||!e||!e.isElement){return}d.overflowInited=true;if(b===2){e.setStyle("overflow","hidden")}else{e.setStyle(a)}},doRenderPadding:function(a,c){var b=c.$comp;if(b.touchScroll){a.push("padding:",b.unitizeBox(b.padding))}},initFramingTpl:function(b){var a=this.getFrameTpl(b);if(a&&!a.applyRenderTpl){this.setupFramingTpl(a)}return a},initRenderTpl:function(){var a=this.getTpl("renderTpl");if(a&&!a.renderContent){this.setupRenderTpl(a)}return a},setupFramingTpl:function(a){a.applyRenderTpl=this.doApplyRenderTpl;a.renderDockedItems=this.doRenderFramingDockedItems},setupRenderTpl:function(a){a.renderBody=a.renderContent=this.doRenderContent;a.renderPadding=this.doRenderPadding},updateFrame:function(){if(Ext.supports.CSS3BorderRadius||!this.frame){return}var n=this,h=n.el.dom,m=n.frameTable,c=n.frameBody,p=c.dom,l=n.getFrameInfo(),q,g,b,e,k,r,s,d,j,a,o;b=document.createElement("div");r=n.getFrameRenderData();d=n.getFrameTpl(l.table);d.insertFirst(b,r);o=b.querySelectorAll("[data-ref]");a=b.querySelector('[data-ref="frameBody"]');for(k=p;k.parentNode!==h;){k=k.parentNode}while(b.firstChild){h.insertBefore(b.firstChild,k)}a.parentNode.replaceChild(p,a);p.className=a.className;c.setSize();q=n.getChildEls();if(m){m.destroy();n.frameTable=null}for(g in q){if(q[g].frame){e=n[g];if(e&&e!==c){e.destroy();n[g]=null}}}for(j=o.length;j--;){g=(s=o[j]).getAttribute("data-ref");if(g!=="frameBody"){n[g]=new Ext.dom.Element(s)}}},frameInfoCache:{}}},0,0,0,0,0,0,[Ext.util,"Renderable"],0));Ext.define("Ext.rtl.util.Renderable",{override:"Ext.util.Renderable",_rtlCls:"x-rtl",_ltrCls:"x-ltr",rtlFrameTableTpl:["{%this.renderDockedItems(out,values,0);%}",'<table id="{fgid}Table" data-ref="frameTable" class="{frameCls} ','x-table-plain" cellpadding="0" role="presentation">','<tpl if="top">','<tr role="presentation">','<tpl if="right"><td id="{fgid}TR" data-ref="frameTR" class="{frameCls}-tr {baseCls}-tr {baseCls}-{ui}-tr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tr</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}TC" data-ref="frameTC" class="{frameCls}-tc {baseCls}-tc {baseCls}-{ui}-tc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tc</tpl>{frameElCls}" role="presentation"></td>','<tpl if="left"><td id="{fgid}TL" data-ref="frameTL" class="{frameCls}-tl {baseCls}-tl {baseCls}-{ui}-tl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tl</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>","</tpl>",'<tr role="presentation">','<tpl if="right"><td id="{fgid}MR" data-ref="frameMR" class="{frameCls}-mr {baseCls}-mr {baseCls}-{ui}-mr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mr</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}Body" data-ref="frameBody" class="{frameBodyCls} {frameCls}-mc {baseCls}-mc {baseCls}-{ui}-mc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mc</tpl>{frameElCls}" style="{mcStyle}" role="presentation">',"{%this.applyRenderTpl(out, values)%}","</td>",'<tpl if="left"><td id="{fgid}ML" data-ref="frameML" class="{frameCls}-ml {baseCls}-ml {baseCls}-{ui}-ml<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-ml</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>",'<tpl if="bottom">','<tr role="presentation">','<tpl if="right"><td id="{fgid}BR" data-ref="frameBR" class="{frameCls}-br {baseCls}-br {baseCls}-{ui}-br<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-br</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}BC" data-ref="frameBC" class="{frameCls}-bc {baseCls}-bc {baseCls}-{ui}-bc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bc</tpl>{frameElCls}" role="presentation"></td>','<tpl if="left"><td id="{fgid}BL" data-ref="frameBL" class="{frameCls}-bl {baseCls}-bl {baseCls}-{ui}-bl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bl</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>","</tpl>","</table>","{%this.renderDockedItems(out,values,1);%}"],beforeRender:function(){var a=this.getInherited().rtl;if(a){this.addCls(this._rtlCls)}else{if(a===false){this.addCls(this._ltrCls)}}arguments.callee.$previous.call(this)},initRenderData:function(){var b=this,c=arguments.callee.$previous.call(this),a=b._rtlCls;if(a&&b.getInherited().rtl){c.childElCls=" "+a}return c},privates:{getFrameTpl:function(a){return(a&&this.getInherited().rtl)?this.getTpl("rtlFrameTableTpl"):arguments.callee.$previous.apply(this,arguments)},getFrameRenderData:function(){var b=this,c=arguments.callee.$previous.call(this),a=b._rtlCls;if(a&&b.getInherited().rtl){c.frameElCls=" "+a}return c}}});(Ext.cmd.derive("Ext.state.Provider",Ext.Base,{prefix:"ext-",constructor:function(a){var b=this;Ext.apply(b,a);b.state={};b.mixins.observable.constructor.call(b)},get:function(c,a){var b=this.state[c];return b===undefined?a:b},clear:function(a){var b=this;delete b.state[a];b.fireEvent("statechange",b,a,null)},set:function(a,c){var b=this;b.state[a]=c;b.fireEvent("statechange",b,a,c)},decodeValue:function(g){var c=this,k=/^(a|n|d|b|s|o|e)\:(.*)$/,b=k.exec(unescape(g)),h,d,a,j,e,i;if(!b||!b[1]){return}d=b[1];g=b[2];switch(d){case"e":return null;case"n":return parseFloat(g);case"d":return new Date(Date.parse(g));case"b":return(g==="1");case"a":h=[];if(g){j=g.split("^");e=j.length;for(i=0;i<e;i++){g=j[i];h.push(c.decodeValue(g))}}return h;case"o":h={};if(g){j=g.split("^");e=j.length;for(i=0;i<e;i++){g=j[i];a=g.split("=");h[a[0]]=c.decodeValue(a[1])}}return h;default:return g}},encodeValue:function(e){var g="",d=0,b,a,c;if(e==null){return"e:1"}else{if(typeof e==="number"){b="n:"+e}else{if(typeof e==="boolean"){b="b:"+(e?"1":"0")}else{if(Ext.isDate(e)){b="d:"+e.toUTCString()}else{if(Ext.isArray(e)){for(a=e.length;d<a;d++){g+=this.encodeValue(e[d]);if(d!==a-1){g+="^"}}b="a:"+g}else{if(typeof e==="object"){for(c in e){if(typeof e[c]!=="function"&&e[c]!==undefined){g+=c+"="+this.encodeValue(e[c])+"^"}}b="o:"+g.substring(0,g.length-1)}else{b="s:"+e}}}}}}return escape(b)}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.state,"Provider"],0));(Ext.cmd.derive("Ext.state.Manager",Ext.Base,{singleton:true,constructor:function(){this.provider=new Ext.state.Provider()},setProvider:function(a){this.provider=a},get:function(b,a){return this.provider.get(b,a)},set:function(a,b){this.provider.set(a,b)},clear:function(a){this.provider.clear(a)},getProvider:function(){return this.provider}},1,0,0,0,0,0,[Ext.state,"Manager"],0));(Ext.cmd.derive("Ext.state.Stateful",Ext.Base,{mixinId:"state",stateful:false,saveDelay:100,constructor:function(){var a=this;if(!a.stateEvents){a.stateEvents=[]}if(a.stateful!==false){a.addStateEvents(a.stateEvents);a.initState()}},addStateEvents:function(d){var g=this,c,e,b,a;if(g.stateful&&g.getStateId()){a=(typeof d==="string")?arguments:d;b=g.stateEventsByName||(g.stateEventsByName={});for(c=a.length;c--;){e=a[c];if(e&&!b[e]){b[e]=1;g.on(e,g.onStateChange,g)}}}},onStateChange:function(){var c=this,a=c.saveDelay,d,b;if(!c.stateful){return}if(a){if(!c.stateTask){d=Ext.state.Stateful;b=d.runner||(d.runner=new Ext.util.TaskRunner());c.stateTask=b.newTask({run:c.saveState,scope:c,interval:a,repeat:1,fireIdleEvent:false})}c.stateTask.start()}else{c.saveState()}},saveState:function(){var j=this,b=j.stateful&&j.getStateId(),h=j.hasListeners,c,e,d,g,a,k;if(b){a=j.getState()||{};c=j.getPlugins()||[];for(d=0,g=c.length;d<g;d++){e=c[d];if(e&&e.getState){k=e.getState(a);if(k&&!a[e.ptype]){a[e.ptype]=k}}}if(!h.beforestatesave||j.fireEvent("beforestatesave",j,a)!==false){Ext.state.Manager.set(b,a);if(h.statesave){j.fireEvent("statesave",j,a)}}}},getState:function(){return null},applyState:function(a){if(a){Ext.apply(this,a)}},getStateId:function(){var a=this;return a.stateId||(a.autoGenId?null:a.id)},initState:function(){var k=this,b=k.stateful&&k.getStateId(),j=k.hasListeners,a,l,e,h,d,g,c;if(b){l=Ext.state.Manager.get(b);if(l){a=Ext.apply({},l);if(!j.beforestaterestore||k.fireEvent("beforestaterestore",k,l)!==false){d=k.getPlugins()||[];for(e=0,h=d.length;e<h;e++){g=d[e];if(g){c=g.ptype;if(g.applyState){g.applyState(a[c],l)}delete a[c]}}k.applyState(a);if(j.staterestore){k.fireEvent("staterestore",k,l)}}}}},savePropToState:function(g,e,d){var b=this,c=b[g],a=b.initialConfig;if(b.hasOwnProperty(g)){if(!a||a[g]!==c){if(e){e[d||g]=c}return true}}return false},savePropsToState:function(e,c){var b=this,a,d;if(typeof e==="string"){b.savePropToState(e,c)}else{for(a=0,d=e.length;a<d;++a){b.savePropToState(e[a],c)}}return c},destroy:function(){var b=this,a=b.stateTask;if(a){a.destroy();b.stateTask=null}b.clearListeners()}},1,0,0,0,0,0,[Ext.state,"Stateful"],0));(Ext.cmd.derive("Ext.util.Focusable",Ext.Base,{mixinId:"focusable",hasFocus:false,focusable:false,focusCls:"focus",initFocusable:Ext.emptyFn,initFocusableEvents:function(){this.initFocusableElement()},getFocusClsEl:function(){return this.getFocusEl()},getFocusEl:function(){return this.element||this.el},destroyFocusable:function(){this.focusListeners=Ext.destroy(this.focusListeners);delete this.focusTask},enableFocusable:Ext.emptyFn,disableFocusable:function(){var d=this,b,c=d.focusCls,a;if(d.hasFocus){b=d.findFocusTarget();if(b){b.focus()}}a=d.getFocusClsEl();if(c&&a){a.removeCls(d.removeClsWithUI(c,true))}},isFocusable:function(a){var c=this,b;if(!c.focusable&&(!c.isContainer||!a)){return false}b=c.getFocusEl();if(b&&c.canFocus()){return b.isFocusable(a)}return false},canFocus:function(){var a=this;return(a.isContainer||a.focusable)&&a.rendered&&!a.destroying&&!a.isDestroyed&&!a.disabled&&a.isVisible(true)},focus:function(g,c,i,d){var e=this,a,h,b;if((!e.focusable&&!e.isContainer)||e.isDestroyed||e.destroying){return}if(c){e.getFocusTask().delay(Ext.isNumber(c)?c:10,e.focus,e,[g,false,i,d]);return e}e.cancelFocus();if(e.canFocus()){if(a=e.getFocusEl()){if(a.isComponent){return a.focus(g,c,i,d)}h=a.dom;if(h){if(a.needsTabIndex()){h.tabIndex=-1}if(e.floating){b=e.container.dom.scrollTop}a.focus();if(g){if(Ext.isArray(g)){if(e.selectText){e.selectText.apply(e,g)}}else{if(h.select){h.select()}else{if(e.selectText){e.selectText()}}}}Ext.callback(i,d)}if(e.floating){if(e!==e.zIndexManager.getActive()){e.toFront(true)}if(b!==undefined){e.container.dom.scrollTop=b}}}}else{a=e.findFocusTarget();if(a){return a.focus(g,c,i,d)}}return e},cancelFocus:function(){var a=this.getFocusTask();if(a){a.cancel()}},beforeBlur:Ext.emptyFn,onBlur:function(g){var d=this,b=d.focusableContainer,c=d.focusCls,a;if(!d.focusable||d.destroying){return}d.beforeBlur(g);if(b){b.beforeFocusableChildBlur(d,g)}a=d.getFocusClsEl();if(c&&a){a.removeCls(d.removeClsWithUI(c,true))}if(d.validateOnBlur){d.validate()}d.hasFocus=false;d.fireEvent("blur",d,g);d.postBlur(g);if(b){b.afterFocusableChildBlur(d,g)}},postBlur:Ext.emptyFn,beforeFocus:Ext.emptyFn,onFocus:function(g){var d=this,b=d.focusableContainer,c=d.focusCls,a;if(!d.focusable){return}if(d.canFocus()){d.beforeFocus(g);if(b){b.beforeFocusableChildFocus(d,g)}a=d.getFocusClsEl();if(c&&a){a.addCls(d.addClsWithUI(c,true))}if(!d.hasFocus){d.hasFocus=true;d.fireEvent("focus",d,g)}d.postFocus(g);if(b){b.afterFocusableChildFocus(d,g)}}},postFocus:Ext.emptyFn,getTabIndex:function(){var c=this,b,a;if(!c.focusable){return}b=c.getFocusEl();if(b){if(b.isComponent){a=b.getTabIndex()}else{if(b.isElement){a=b.getAttribute(Ext.Element.tabIndexAttributeName)}else{return}}c.tabIndex=a}else{a=c.tabIndex}return a-0},setTabIndex:function(c){var b=this,a;if(!b.focusable){return}b.tabIndex=c;a=b.getFocusEl();if(a){if(a.isComponent){a.setTabIndex(c)}else{if(a.isElement){a.set({tabindex:c})}}}},onFocusEnter:function(b){var a=this;a.previousFocus=b.fromComponent||b.relatedTarget;a.containsFocus=true;a.fireEvent("focusenter",a,b)},onFocusLeave:function(b){var a=this;a.previousFocus=null;a.containsFocus=false;a.fireEvent("focusleave",a,b)},privates:{revertFocus:function(){var b=this,a=b.previousFocus;b.previousFocus=null;if(a&&b.el.contains(Ext.Element.getActiveElement())){if(a.isComponent){a.focus()}else{a=Ext.fly(a);if(Ext.isIE8||(a.isFocusable&&a.isFocusable())){a.focus()}}}},findFocusTarget:function(){var b=this,a,c;for(a=b.up(":not([disabled])");a;a=a.up(":not([disabled])")){c=Ext.ComponentQuery.query(":focusable:not([hasFocus])",a);if(c.length){return c[0]}if(a.isFocusable&&a.isFocusable()){return a}}},initFocusableElement:function(){var d=this,a=d.tabIndex,c=d.getFocusEl(),b;if(c&&!c.isComponent){b=c.needsTabIndex();if(b||a!=null){a=a!=null?a:-1;c.dom.setAttribute("tabindex",a)}c.dom.setAttribute(Ext.Component.componentIdAttribute,d.id)}},getFocusTask:function(){if(!this.focusTask){this.focusTask=Ext.focusTask}return this.focusTask},blur:function(){var b=this,a;if(!b.focusable||!b.rendered){return}a=b.getFocusEl();if(a){b.blurring=true;a.blur();delete b.blurring}return b},disableTabbing:function(){var c=this,b=c.el,a;if(!c.focusable){return}a=c.getFocusEl();if(b){b.saveChildrenTabbableState()}if(a){a=a.isComponent?a.getFocusEl():a;a.saveTabbableState()}},enableTabbing:function(){var c=this,b=c.el,a;if(!c.focusable){return}a=c.getFocusEl();if(a){a=a.isComponent?a.getFocusEl():a;a.restoreTabbableState()}if(b){b.restoreChildrenTabbableState()}}}},0,0,0,0,0,0,[Ext.util,"Focusable"],function(){if(!Ext.focusTask){Ext.focusTask=new Ext.util.DelayedTask()}}));(Ext.cmd.derive("Ext.Component",Ext.Base,{alternateClassName:"Ext.AbstractComponent",statics:{AUTO_ID:1000,pendingLayouts:null,layoutSuspendCount:0,DIRECTION_TOP:"top",DIRECTION_RIGHT:"right",DIRECTION_BOTTOM:"bottom",DIRECTION_LEFT:"left",VERTICAL_DIRECTION_Re:/^(?:top|bottom)$/,INVALID_ID_CHARS_Re:/[\.,\s]/g,componentIdAttribute:"componentId",cancelLayout:function(a,c){var b=this.runningLayoutContext||this.pendingLayouts;if(b){b.cancelComponent(a,false,c)}},fromElement:function(d,b){var g=Ext.Component.componentIdAttribute,h=Ext.getDom(d),a=Ext.ComponentManager.all,e,c;if(b){b=Ext.getDom(b)}else{b=document.body.parentNode}while(h&&h.nodeType===1&&h!==b){e=h.getAttribute(g)||h.id;if(e){c=a[e];if(c){return c}}h=h.parentNode}return null},flushLayouts:function(){var b=this,a=b.pendingLayouts;if(a&&a.invalidQueue.length){b.pendingLayouts=null;b.runningLayoutContext=a;Ext.override(a,{runComplete:function(){b.runningLayoutContext=null;var e=Ext.scroll.DomScroller,d=Ext.GlobalEvents,c;if(e.document){e.document.restoreState()}c=this.callParent();if(d.hasListeners.afterlayout){d.fireEvent("afterlayout")}return c}});a.run()}},resumeLayouts:function(a){if(this.layoutSuspendCount&&!--this.layoutSuspendCount){if(a){this.flushLayouts()}if(Ext.GlobalEvents.hasListeners.resumelayouts){Ext.GlobalEvents.fireEvent("resumelayouts")}}},suspendLayouts:function(){++this.layoutSuspendCount},updateLayout:function(b,e){var c=this,a=c.runningLayoutContext,d;if(a){a.queueInvalidate(b)}else{d=c.pendingLayouts||(c.pendingLayouts=new Ext.layout.Context());d.queueInvalidate(b);if(!e&&!c.layoutSuspendCount&&!b.isLayoutSuspended()){c.flushLayouts()}}}},$configPrefixed:false,$configStrict:false,manageLayoutScroll:true,config:{data:null,maxHeight:null,maxWidth:null,minHeight:null,minWidth:null,scrollable:null},defaultBindProperty:"html",alignTarget:null,autoRender:false,autoShow:false,baseCls:"x-component",childEls:{frameTable:{frame:true},frameTL:{frame:"tl"},frameTC:{frame:"tc"},frameTR:{frame:"tr"},frameML:{frame:"ml"},frameBody:{frame:"mc"},frameMR:{frame:"mr"},frameBL:{frame:"bl"},frameBC:{frame:"bc"},frameBR:{frame:"br"}},componentLayout:"autocomponent",defaultAlign:"c-c",disabled:false,disabledRe:/^(?:button|input|select|textarea|optgroup|option|fieldset)$/i,nonMaskableRe:(function(){var a=["input","select","textarea","optgroup","option","table"];if(Ext.isIE9m&&!(Ext.isIE9&&!Ext.isIEQuirks)){a.push("p")}return new RegExp("^(?:"+a.join("|")+")$","i")}()),disabledCls:"x-item-disabled",draggable:false,floating:false,hidden:false,hideMode:"display",maskElement:null,renderTpl:['<tpl if="renderScroller">','<div class="{scrollerCls}" style="{%this.renderPadding(out, values)%}">',"</tpl>","{%this.renderContent(out,values)%}",'<tpl if="renderScroller"></div></tpl>'],resizeHandles:"all",shrinkWrap:2,toFrontOnShow:true,synthetic:false,tplWriteMode:"overwrite",ui:"default",uiCls:[],weight:null,allowDomMove:true,autoGenId:false,borderBoxCls:"x-border-box",componentLayoutCounter:0,contentPaddingProperty:"padding",deferLayouts:false,frameSize:null,horizontalPosProp:"left",isComponent:true,_isLayoutRoot:false,layoutSuspendCount:0,liquidLayout:false,maskOnDisable:true,offsetsCls:"x-hidden-offsets",rendered:false,rootCls:"x-body",scrollerCls:"x-scroll-scroller",scrollerSelector:".x-scroll-scroller",_scrollFlags:{auto:{auto:{overflowX:"auto",overflowY:"auto",x:true,y:true,both:true},"false":{overflowX:"auto",overflowY:"hidden",x:true,y:false,both:false},scroll:{overflowX:"auto",overflowY:"scroll",x:true,y:true,both:true}},"false":{auto:{overflowX:"hidden",overflowY:"auto",x:false,y:true,both:false},"false":{overflowX:"hidden",overflowY:"hidden",x:false,y:false,both:false},scroll:{overflowX:"hidden",overflowY:"scroll",x:false,y:true,both:false}},scroll:{auto:{overflowX:"scroll",overflowY:"auto",x:true,y:true,both:true},"false":{overflowX:"scroll",overflowY:"hidden",x:true,y:false,both:false},scroll:{overflowX:"scroll",overflowY:"scroll",x:true,y:true,both:true}},none:{overflowX:"",overflowY:"",x:false,y:false,both:false}},_scrollableCfg:{x:{x:true,y:false},y:{x:false,y:true},horizontal:{x:true,y:false},vertical:{x:false,y:true},both:{x:true,y:true},"true":{x:true,y:true}},validIdRe:Ext.validIdRe,constructor:function(a){var h=this,c,g,j,e,l,d,b,k;a=a||{};if(a.initialConfig){if(a.isAction){h.baseAction=a}a=a.initialConfig}else{if(a.tagName||a.dom||Ext.isString(a)){a={applyTo:a,id:a.id||a}}}h.initialConfig=a;h.getId();h.protoEl=new Ext.util.ProtoElement();h.initConfig(a);if(h.scrollable==null){l=h.autoScroll;if(l){k=!!l}else{d=h.overflowX;b=h.overflowY;if(d||b){k={x:(d&&d!=="hidden")?d:false,y:(b&&b!=="hidden")?b:false}}}if(k){h.setScrollable(k)}}j=h.xhooks;if(j){delete h.xhooks;Ext.override(h,j)}h.mixins.elementCt.constructor.call(h);h.setupProtoEl();if(h.cls){h.initialCls=h.cls;h.protoEl.addCls(h.cls)}if(h.style){h.initialStyle=h.style;h.protoEl.setStyle(h.style)}h.renderData=h.renderData||{};h.initComponent();if(!h.preventRegister){Ext.ComponentManager.register(h)}h.mixins.state.constructor.call(h);h.addStateEvents("resize");e=h.getController();if(e){e.init(h)}if(h.plugins){for(c=0,g=h.plugins.length;c<g;c++){h.plugins[c]=h.initPlugin(h.plugins[c])}}h.loader=h.getLoader();if(h.disabled){h.disabled=false;h.disable(true)}if(h.renderTo){h.render(h.renderTo)}if(h.autoShow&&!h.initOwnerCt){h.show()}if(h.baseAction){h.baseAction.addComponent(h)}},beforeInitConfig:function(){this.mixins.observable.constructor.call(this)},addCls:function(a){var c=this,b=c.rendered?c.el:c.protoEl;b.addCls.apply(b,arguments);return c},addClsWithUI:function(c,j){var h=this,g=[],e=0,d=h.uiCls=Ext.Array.clone(h.uiCls),b=h.activeUI,a,k;if(typeof c==="string"){c=(c.indexOf(" ")<0)?[c]:Ext.String.splitWords(c)}a=c.length;for(;e<a;e++){k=c[e];if(k&&!h.hasUICls(k)){d.push(k);if(b){g=g.concat(h.addUIClsToElement(k))}}}if(j!==true&&b){h.addCls(g)}return g},afterComponentLayout:function(d,b,c,g){var e=this,a=e.scrollable;if(++e.componentLayoutCounter===1){if(a){if(e.touchScroll&&a.isTouchScroller){a.setInnerElement(e.getScrollerEl())}a.setElement(e.getOverflowEl());if(Ext.isIE&&!e.showListenerIE){e.showListenerIE=Ext.on("show",e.onGlobalShow,e,{destroyable:true})}}e.afterFirstLayout(d,b)}else{if(e.manageLayoutScroll&&a){a.restoreState()}}if(d!==c||b!==g){e.refreshScroll();e.onResize(d,b,c,g)}if(e.floating){e.onAfterFloatLayout()}},addPlugin:function(b){var a=this;b=a.constructPlugin(b);if(a.plugins){a.plugins.push(b)}else{a.plugins=[b]}if(a.pluginsInitialized){a.initPlugin(b)}return b},addPropertyToState:function(e,d,c){var b=this,a=arguments.length;if(a===3||b.hasOwnProperty(d)){if(a<3){c=b[d]}if(c!==b.initialConfig[d]){(e||(e={}))[d]=c}}return e},addUIClsToElement:function(i){var e=this,b=e.baseCls+"-"+e.ui+"-"+i,a=["x-"+i,e.baseCls+"-"+i,b],d,h,c,g;if(e.rendered&&e.frame&&!Ext.supports.CSS3BorderRadius){b+="-";d=e.getChildEls();for(h in d){g=d[h].frame;if(g&&g!==true){c=e[h];if(c){c.addCls(b+g)}}}}return a},removeUIClsFromElement:function(i){var e=this,b=e.baseCls+"-"+e.ui+"-"+i,a=["x-"+i,e.baseCls+"-"+i,b],d,h,c,g;if(e.rendered&&e.frame&&!Ext.supports.CSS3BorderRadius){b+="-";d=e.getChildEls();for(h in d){g=d[h].frame;if(g&&g!==true){c=e[h];if(c){c.removeCls(b+g)}}}}return a},adjustPosition:function(a,d){var b=this,c;if(b.isContainedFloater()){c=b.floatParent.getTargetEl().getViewRegion();a+=c.left;d+=c.top}return{x:a,y:d}},afterHide:function(a,c){var d=this,b=d.focusableContainer;d.hiddenByLayout=null;if(this.ownerLayout){this.updateLayout({isRoot:false})}Ext.callback(a,c||d);d.fireHierarchyEvent("hide");d.fireEvent("hide",d);if(b){b.onFocusableChildHide(d)}},afterSetPosition:function(a,c){var b=this;b.onPosition(a,c);if(b.hasListeners.move){b.fireEvent("move",b,a,c)}},afterShow:function(h,b,e){var g=this,i=g.el,a,c,d;h=g.getAnimateTarget(h);if(!g.ghost){h=null}if(h){c={x:i.getX(),y:i.getY(),width:i.dom.offsetWidth,height:i.dom.offsetHeight};a={x:h.getX(),y:h.getY(),width:h.dom.offsetWidth,height:h.dom.offsetHeight};i.addCls(g.offsetsCls);d=g.ghost();d.el.stopAnimation();d.setX(-10000);g.ghostBox=c;d.el.animate({from:a,to:c,listeners:{afteranimate:function(){delete d.componentLayout.lastComponentSize;g.unghost();delete g.ghostBox;i.removeCls(g.offsetsCls);g.onShowComplete(b,e)}}})}else{g.onShowComplete(b,e)}g.fireHierarchyEvent("show")},animate:function(c){var t=this,g,l,k,a,d,b,s,p,m,e,q,n,i,o,r,j;c=c||{};d=c.to||{};if(Ext.fx.Manager.hasFxBlock(t.id)){return t}g=Ext.isDefined(d.width);if(g){a=Ext.Number.constrain(d.width,t.minWidth,t.maxWidth)}l=Ext.isDefined(d.height);if(l){k=Ext.Number.constrain(d.height,t.minHeight,t.maxHeight)}if(!c.dynamic&&(g||l)){p=(c.from?c.from.width:undefined)||t.getWidth();m=p;e=(c.from?c.from.height:undefined)||t.getHeight();q=e;n=false;if(l&&k>e){q=k;n=true}if(g&&a>p){m=a;n=true}if(l||g){j=t.el.getStyle("overflow");if(j!=="hidden"){t.el.setStyle("overflow","hidden")}}if(n){b=!Ext.isNumber(t.width);s=!Ext.isNumber(t.height);t.setSize(m,q);t.el.setSize(p,e);if(b){delete t.width}if(s){delete t.height}}if(g){d.width=a}if(l){d.height=k}}i=t.constrain;o=t.constrainHeader;if(i||o){t.constrain=t.constrainHeader=false;r=c.callback;c.callback=function(){t.constrain=i;t.constrainHeader=o;if(r){r.call(c.scope||t,arguments)}if(j!=="hidden"){t.el.setStyle("overflow",j)}}}return t.mixins.animate.animate.apply(t,arguments)},applyScrollable:function(b,d){var a=this,g=a.rendered,e,c;if(b){if(b===true||typeof b==="string"){e=a._scrollableCfg[b];b=e}if(d){d.setConfig(b);b=d}else{b=Ext.Object.chain(b);if(g){b.element=a.getOverflowEl();c=a.getScrollerEl();if(c){b.innerElement=c}}b.autoRefresh=false;if(Ext.supports.touchScroll===1){b.translatable={translationMethod:"scrollparent"};b.indicators=false}b=Ext.scroll.Scroller.create(b);b.component=a}}else{if(d){b=d;d.setConfig({x:false,y:false})}}if(a.rendered){if(b){a.getOverflowStyle()}else{a.scrollFlags=a._scrollFlags.none}a.updateLayout()}return b},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(j,h,b){var g=this,i=null,d,c,a,e;if(j){if(Ext.isNumber(d=j[0])){b=h;h=j[1];j=d}else{if((d=j.x)!==undefined){b=h;h=j.y;j=d}}}if(g.constrain||g.constrainHeader){i=g.calculateConstrainedPosition(null,[j,h],true);if(i){j=i[0];h=i[1]}}c=(j!==undefined);a=(h!==undefined);if(c||a){g.x=j;g.y=h;e=g.adjustPosition(j,h);i={x:e.x,y:e.y,anim:b,hasX:c,hasY:a}}return i},beforeShow:Ext.emptyFn,bubble:function(c,b,a){var d=this;while(d){if(c.apply(b||d,a||[d])===false){break}d=d.getBubbleTarget()}return this},cloneConfig:function(c){c=c||{};var d=c.id||Ext.id(),a=Ext.applyIf(c,this.initialConfig),b;a.id=d;b=Ext.getClass(this);return new b(a)},destroy:function(){var g=this,c=g.renderSelectors,b=g.getConfig("viewModel",true),h=g.getConfig("session",true),a,e,d;if(!g.isDestroyed){if(!g.hasListeners.beforedestroy||g.fireEvent("beforedestroy",g)!==false){g.destroying=true;e=g.floatParent||g.ownerCt;if(g.floating){delete g.floatParent;if(g.zIndexManager){g.zIndexManager.unregister(g);g.zIndexManager=null}}g.removeBindings();g.beforeDestroy();if(b&&b.isViewModel){b.destroy();g.viewModel=null}if(h&&h.isSession){if(h.getAutoDestroy()){h.destroy()}g.session=null}if(e&&e.remove){e.remove(g,false)}g.stopAnimation();g.onDestroy();Ext.destroy(g.plugins);g.componentLayout=null;if(g.hasListeners.destroy){g.fireEvent("destroy",g)}if(!g.preventRegister){Ext.ComponentManager.unregister(g)}g.mixins.state.destroy.call(g);if(g.floating){g.onFloatDestroy()}g.clearListeners();if(g.rendered){if(Ext.isIE&&g.showListenerIE){g.showListenerIE.destroy();g.showListenerIE=null}if(!g.preserveElOnDestroy){g.el.destroy()}g.el.component=null;g.mixins.elementCt.destroy.call(g);if(c){for(a in c){if(c.hasOwnProperty(a)){d=g[a];if(d){delete g[a];d.destroy()}}}}g.data=g.el=g.frameBody=g.rendered=null}g.destroying=false;g.isDestroyed=true}}},disable:function(c,e){var d=this,b=d.focusableContainer,a=d.getInherited();if(!e){a.disabled=true;d.savedDisabled=true}if(d.maskOnDisable){a.disableMask=true}if(!d.disabled){d.addCls(d.disabledCls);if(d.rendered){d.onDisable()}else{d.disableOnRender=true}d.disabled=true;if(c!==true){d.fireEvent("disable",d)}if(b){b.onFocusableChildDisable(d)}}return d},enable:function(c,e){var d=this,b=d.focusableContainer,a=d.getInherited();if(!e){delete d.getInherited().disabled;d.savedDisabled=false}if(d.maskOnDisable){delete a.disableMask}if(d.disabled){if(!(e&&a.hasOwnProperty("disabled"))){d.disableOnRender=false;d.removeCls(d.disabledCls);if(d.rendered){d.onEnable()}d.disabled=false;if(c!==true){d.fireEvent("enable",d)}if(b){b.onFocusableChildEnable(d)}}}return d},findParentBy:function(a){var b;for(b=this.getRefOwner();b&&!a(b,this);b=b.getRefOwner()){}return b||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.constructor===a}):this.up(a)},findPlugin:function(d){var b,a=this.plugins,c=a&&a.length;for(b=0;b<c;b++){if(a[b].ptype===d){return a[b]}}},getAnimateTarget:function(a){a=a||this.animateTarget;if(a){a=a.isComponent?a.getEl():Ext.get(a)}return a||null},getBubbleTarget:function(){return this.getRefOwner()},getComponentLayout:function(){var a=this;if(!a.componentLayout||!a.componentLayout.isLayout){a.setComponentLayout(Ext.layout.Layout.create(a.componentLayout,"autocomponent"))}return a.componentLayout},getEl:function(){return this.el},getHeight:function(){return this.el.getHeight()},initInheritedState:function(a){var c=this,b=c.componentLayout;if(c.hidden){a.hidden=true}if(c.collapseImmune){a.collapseImmune=true}if(c.modelValidation!==undefined){a.modelValidation=c.modelValidation}if(c.savedDisabled){a.disabled=true}c.mixins.bindable.initInheritedState.call(c,a);if(b&&b.initInheritedState){b.initInheritedState(a)}},getId:function(){var a=this,b;if(!(a.id||(a.id=a.initialConfig.id))){b=a.getXType();if(b){b=b.replace(Ext.Component.INVALID_ID_CHARS_Re,"-")}else{b=Ext.name.toLowerCase()+"-comp"}a.id=b+"-"+a.getAutoId()}return a.id},getItemId:function(){return this.itemId||this.id},getLoader:function(){var b=this,a=b.loader;if(a){if(!a.isLoader){b.loader=new Ext.ComponentLoader(Ext.apply({target:b},a))}else{a.setTarget(b)}return b.loader}return null},getMaskTarget:function(){return this.maskElement?this[this.maskElement]:null},getPlugin:function(b){var c,a=this.plugins,d=a&&a.length;for(c=0;c<d;c++){if(a[c].pluginId===b){return a[c]}}return null},getPosition:function(a){var b=this,d,c=b.isContainedFloater(),e;if((a===true)&&!c){return[b.getLocalX(),b.getLocalY()]}d=b.getXY();if((a===true)&&c){e=b.floatParent.getTargetEl().getViewRegion();d[0]-=e.left;d[1]-=e.top}return d},getScrollX:function(){var a=this.getScrollable();return a?a.getPosition().x:0},getScrollY:function(){var a=this.getScrollable();return a?a.getPosition().y:0},getSize:function(a){return this.el.getSize(a)},getSizeModel:function(k){var o=this,a=Ext.layout.SizeModel,d=o.componentLayout.ownerContext,b=o.width,q=o.height,r,c,h,g,i,p,m,n,l,j,e=o.floating||o.floated;if(d){j=d.widthModel;i=d.heightModel}if(!j||!i){h=((r=typeof b)==="number");g=((c=typeof q)==="number");l=e||!(p=o.ownerLayout);if(l){m=Ext.layout.Layout.prototype.autoSizePolicy;n=e?3:o.shrinkWrap;if(h){j=a.configured}if(g){i=a.configured}}else{m=p.getItemSizePolicy(o,k);n=p.isItemShrinkWrap(o)}if(d){d.ownerSizePolicy=m}n=(n===true)?3:(n||0);if(l&&n){if(b&&r==="string"){n&=2}if(q&&c==="string"){n&=1}}if(n!==3){if(!k){k=o.ownerCt&&o.ownerCt.getSizeModel()}if(k){n|=(k.width.shrinkWrap?1:0)|(k.height.shrinkWrap?2:0)}}if(!j){if(!m.setsWidth){if(h){j=a.configured}else{j=(n&1)?a.shrinkWrap:a.natural}}else{if(m.readsWidth){if(h){j=a.calculatedFromConfigured}else{j=(n&1)?a.calculatedFromShrinkWrap:a.calculatedFromNatural}}else{j=a.calculated}}}if(!i){if(!m.setsHeight){if(g){i=a.configured}else{i=(n&2)?a.shrinkWrap:a.natural}}else{if(m.readsHeight){if(g){i=a.calculatedFromConfigured}else{i=(n&2)?a.calculatedFromShrinkWrap:a.calculatedFromNatural}}else{i=a.calculated}}}}return j.pairsByHeightOrdinal[i.ordinal]},getState:function(){var b=this,c=null,a=b.getSizeModel();if(a.width.configured){c=b.addPropertyToState(c,"width")}if(a.height.configured){c=b.addPropertyToState(c,"height")}return c},getWidth:function(){return this.el.getWidth()},getXType:function(){return this.self.xtype},getXTypes:function(){var c=this.self,d,b,a;if(!c.xtypes){d=[];b=this;while(b){a=b.xtypes;if(a!==undefined){d.unshift.apply(d,a)}b=b.superclass}c.xtypeChain=d;c.xtypes=d.join("/")}return c.xtypes},hasCls:function(a){var b=this.rendered?this.el:this.protoEl;return b.hasCls.apply(b,arguments)},hasUICls:function(a){var b=this,c=b.uiCls||[];return Ext.Array.contains(c,a)},hide:function(d,a,b){var c=this;if(c.pendingShow){c.pendingShow=false}if(!(c.rendered&&!c.isVisible())){if(!c.hasListeners.beforehide||c.fireEvent("beforehide",c)!==false||c.hierarchicallyHidden){c.getInherited().hidden=c.hidden=true;if(c.rendered){c.onHide.apply(c,arguments)}}}return c},initComponent:function(){var c=this,b=c.width,a=c.height;if(c.plugins&&!c.plugins.processed){c.plugins=c.constructPlugins()}c.pluginsInitialized=true;if(b!=null||a!=null){c.setSize(b,a)}if(c.listeners){c.on(c.listeners);c.listeners=null}if(c.focusable){c.initFocusable()}},initEvents:function(){var e=this,h=e.afterRenderEvents,b,d,g,c,a;if(h){for(g in h){d=e[g];if(d&&d.on){b=h[g];for(c=0,a=b.length;c<a;++c){e.mon(d,b[c])}}}}if(e.focusable){e.initFocusableEvents()}},is:function(a){return Ext.ComponentQuery.is(this,a)},isDescendantOf:function(a){var b;for(b=this.getRefOwner();b&&b!==a;b=b.getRefOwner()){}return b||null},isAncestor:function(a){while(a){if(a.getRefOwner()===this){return true}a=a.getRefOwner()}},isDisabled:function(){return this.disabled},isDraggable:function(){return !!this.draggable},isDroppable:function(){return !!this.droppable},isFloating:function(){return this.floating},isHidden:function(){return this.hidden},isHierarchicallyHidden:function(){var d=this,c=false,a,b;for(;(a=d.ownerCt||d.floatParent);d=a){b=a.getInherited();if(b.hidden){c=true;break}if(d.getInherited().collapseImmune){if(a.collapsed&&!d.collapseImmune){c=true;break}}else{c=!!b.collapsed;break}}return c},isLayoutChild:function(a){return !this.floating&&!!this.up(a)},isLayoutRoot:function(){var a=this,b=a.ownerLayout;if(!b||a._isLayoutRoot||a.floating){return true}return b.isItemLayoutRoot(a)},isLayoutSuspended:function(){var a=this,b;while(a){if(a.layoutSuspendCount||a.suspendLayout){return true}b=a.ownerLayout;if(!b){break}a=b.owner}return false},isVisible:function(a){var b=this,c;if(b.hidden||!b.rendered||b.isDestroyed){c=true}else{if(a){c=b.isHierarchicallyHidden()}}return !c},isXType:function(b,a){return a?(Ext.Array.indexOf(this.xtypes,b)!==-1):!!this.xtypesMap[b]},isMasked:function(a){var b=this;return !!(b.masked||(b.loadMask&&b.loadMask.isVisible())||(a&&b.getInherited().masked))},setMasked:function(c){var b=this,a=b.focusableContainer;if(c){b.masked=true;b.getInherited().masked=c}else{b.masked=false;delete b.getInherited().masked}if(a){a.onFocusableChildMasked(b,c)}return b},mask:function(e,c,a){var b=this.lastBox,d=this.getMaskTarget()||this.el;if(b){a=b.height}d.mask(e,c,a);this.setMasked(true)},nextNode:function(d,j){var b=this,c=b.ownerCt,k,e,h,g,a;if(j&&b.is(d)){return b}if(c){for(e=c.items.items,g=Ext.Array.indexOf(e,b)+1,h=e.length;g<h;g++){a=e[g];if(a.is(d)){return a}if(a.down){k=a.down(d);if(k){return k}}}return c.nextNode(d)}return null},nextSibling:function(b){var g=this.ownerCt,d,e,a,h;if(g){d=g.items;a=d.indexOf(this)+1;if(a){if(b){for(e=d.getCount();a<e;a++){if((h=d.getAt(a)).is(b)){return h}}}else{if(a<d.getCount()){return d.getAt(a)}}}}return null},onAdded:function(b,e,a){var d=this,c=d.inheritedState;d.ownerCt=b;if(c&&a){d.invalidateInheritedState()}if(d.reference){Ext.ComponentManager.markReferencesDirty()}if(d.hasListeners&&d.hasListeners.added){d.fireEvent("added",d,b,e)}if(Ext.GlobalEvents.hasListeners.added){d.fireHierarchyEvent("added")}},onRemoved:function(b){var a=this,c;if(Ext.GlobalEvents.hasListeners.removed){a.fireHierarchyEvent("removed")}if(a.hasListeners.removed){a.fireEvent("removed",a,a.ownerCt)}if(a.reference){c=a.lookupReferenceHolder();if(c){c.clearReference(a)}}if(!b){a.removeBindings()}if(a.inheritedState&&!b){a.invalidateInheritedState()}a.ownerCt=a.ownerLayout=null},onBoxReady:function(b,a){var c=this;if(c.resizable){c.initResizable(c.resizable)}if(c.draggable){c.initDraggable()}if(c.hasListeners.boxready){c.fireEvent("boxready",c,b,a)}},onDestroy:function(){var c=this,b=c.controller,a=c.focusableContainer;if(c.bind){c.removeBindings()}if(b){b.destroy()}c.controller=null;if(c.rendered){Ext.destroy(c.dd,c.resizer,c.proxy,c.proxyWrap,c.resizerComponent,c.scrollable,c.contentEl)}if(a){a.onFocusableChildDestroy(c)}if(c.focusable){c.destroyFocusable()}Ext.destroy(c.componentLayout,c.loadMask,c.floatingDescendants)},onDisable:function(){var a=this,b,c;if(a.focusable){a.disableFocusable()}if(a.maskOnDisable&&!a.getInheritedConfig("disableMask",true)){b=a.el.dom;c=b.nodeName;if(a.disabledRe.test(c)){b.disabled=true}if(!a.nonMaskableRe.test(c)){a.mask()}}},onEnable:function(){var a=this,b,c;if(a.focusable){a.enableFocusable()}if(a.maskOnDisable&&a.getInherited().hasOwnProperty("masked")){b=a.el.dom;c=b.nodeName;if(a.disabledRe.test(c)){b.disabled=false}if(!a.nonMaskableRe.test(c)){a.unmask()}}},onGlobalShow:function(a){if(this.up(a)){this.getScrollable().restoreState()}},onHide:function(h,a,e){var g=this,c,d,b;g.revertFocus();h=g.getAnimateTarget(h);if(!g.ghost){h=null}if(h){b={x:h.getX(),y:h.getY(),width:h.dom.offsetWidth,height:h.dom.offsetHeight};c=g.ghost();c.el.stopAnimation();d=g.getSize();c.el.animate({to:b,listeners:{afteranimate:function(){delete c.componentLayout.lastComponentSize;c.el.hide();c.setHiddenState(true);c.el.setSize(d);g.afterHide(a,e)}}})}g.el.hide();if(!h){g.afterHide(a,e)}},onPosition:Ext.emptyFn,onResize:function(c,a,b,e){var d=this;if(d.floating&&d.constrain){d.doConstrain()}if(d.hasListeners.resize){d.fireEvent("resize",d,c,a,b,e)}},onShow:function(){var a=this;a.el.show();a.updateLayout({isRoot:false,context:a._showContext});if(a.floating){if(a.maximized){a.fitContainer()}else{if(a.constrain){a.doConstrain()}}}},_showContext:{show:true},onShowComplete:function(a,c){var d=this,b=d.focusableContainer;if(d.floating){d.onFloatShow()}Ext.callback(a,c||d);d.fireEvent("show",d);if(b){b.onFocusableChildShow(d)}delete d.hiddenByLayout},onShowVeto:Ext.emptyFn,previousNode:function(b,d){var j=this,h=j.ownerCt,a,g,e,c;if(d&&j.is(b)){return j}if(h){for(g=h.items.items,e=Ext.Array.indexOf(g,j)-1;e>-1;e--){c=g[e];if(c.query){a=c.query(b);a=a[a.length-1];if(a){return a}}if(c.is(b)){return c}}return h.previousNode(b,true)}return null},previousSibling:function(b){var e=this.ownerCt,d,a,g;if(e){d=e.items;a=d.indexOf(this);if(a!==-1){if(b){for(--a;a>=0;a--){if((g=d.getAt(a)).is(b)){return g}}}else{if(a){return d.getAt(--a)}}}}return null},registerFloatingItem:function(b){var a=this;if(!a.floatingDescendants){a.floatingDescendants=new Ext.ZIndexManager(a)}a.floatingDescendants.register(b)},removeCls:function(a){var c=this,b=c.rendered?c.el:c.protoEl;b.removeCls.apply(b,arguments);return c},removeClsWithUI:function(d,l){var k=this,j=[],g=0,a=Ext.Array,h=a.remove,e=k.uiCls=a.clone(k.uiCls),c=k.activeUI,b,m;if(typeof d==="string"){d=(d.indexOf(" ")<0)?[d]:Ext.String.splitWords(d)}b=d.length;for(g=0;g<b;g++){m=d[g];if(m&&k.hasUICls(m)){h(e,m);if(c){j=j.concat(k.removeUIClsFromElement(m))}}}if(l!==true&&c){k.removeCls(j)}return j},resumeLayouts:function(b){var a=this;if(!a.rendered){return}if(a.layoutSuspendCount&&!--a.layoutSuspendCount){a.suspendLayout=false;if(b&&!a.isLayoutSuspended()){a.updateLayout(b)}}},scrollBy:function(c,b,d){var a=this.getScrollable();if(a){a.scrollBy(c,b,d)}},scrollTo:function(b,d,c){var a=this.getScrollable();if(a){a.scrollTo(b,d,c)}},setAutoScroll:function(a){this.setScrollable(!!a);return this},setBorder:function(b,d){var c=this,a=!!d;if(c.rendered||a){if(!a){d=c.el}if(!b){b=0}else{if(b===true){b="1px"}else{b=this.unitizeBox(b)}}d.setStyle("border-width",b);if(!a){c.updateLayout()}}c.border=b},setDock:function(c){var b=this,a=b.ownerCt;if(c!==b.dock){if(a&&a.moveDocked){a.moveDocked(b,c)}else{b.dock=c}}return b},setDisabled:function(a){return this[a?"disable":"enable"]()},setFlex:function(a){this.flex=a},setHeight:function(a){return this.setSize(undefined,a)},setLoading:function(c,d){var b=this,a={target:b};if(b.rendered){if(c!==false){if(Ext.isString(c)){a.msg=c}else{Ext.apply(a,c)}if(!b.loadMask||!b.loadMask.isLoadMask){if(d&&a.useTargetEl==null){a.useTargetEl=true}b.loadMask=new Ext.LoadMask(a)}else{Ext.apply(b.loadMask,a)}if(b.loadMask.isVisible()){b.loadMask.afterShow()}else{b.loadMask.show()}}else{if(b.loadMask&&b.loadMask.isLoadMask){b.loadMask.hide()}}}return b.loadMask},setMargin:function(c,b){var a=this;if(a.rendered){if(!c&&c!==0){c=""}else{if(c===true){c=5}c=this.unitizeBox(c)}a.margin=c;a.margin$=null;a.getEl().setStyle("margin",c);if(!b){a.updateLayout(a._notAsLayoutRoot)}}else{a.margin=c}},setOverflowXY:function(b,a){this.setScrollable({x:(b&&b!=="hidden")?b:false,y:(a&&a!=="hidden")?a:false});return this},setPagePosition:function(a,g,b){var c=this,d,e;if(Ext.isArray(a)){g=a[1];a=a[0]}c.pageX=a;c.pageY=g;if(c.floating){if(c.isContainedFloater()){e=c.floatParent.getTargetEl().getViewRegion();if(Ext.isNumber(a)&&Ext.isNumber(e.left)){a-=e.left}if(Ext.isNumber(g)&&Ext.isNumber(e.top)){g-=e.top}}else{d=c.el.translateXY(a,g);a=d.x;g=d.y}c.setPosition(a,g,b)}else{d=c.el.translateXY(a,g);c.setPosition(d.x,d.y,b)}return c},setPosition:function(a,e,b){var c=this,d=c.beforeSetPosition.apply(c,arguments);if(d&&c.rendered){a=d.x;e=d.y;if(b){if(a!==c.getLocalX()||e!==c.getLocalY()){c.stopAnimation();c.animate(Ext.apply({duration:1000,listeners:{afteranimate:Ext.Function.bind(c.afterSetPosition,c,[a,e])},to:{left:a,top:e}},b))}}else{c.setLocalXY(a,e);c.afterSetPosition(a,e)}}return c},setScrollX:function(b,c){var a=this.getScrollable();if(a){a.scrollTo(b,null,c)}},setScrollY:function(c,b){var a=this.getScrollable();if(a){a.scrollTo(null,c,b)}},setSize:function(d,a){var e=this,g,c,b=e.width,h=e.height;if(d&&typeof d==="object"){a=d.height;d=d.width}if(typeof d==="number"){e.width=Ext.Number.constrain(d,e.minWidth,e.maxWidth)}else{if(d===null){delete e.width}else{if(typeof d==="string"){g=true;e.width=d}}}if(typeof a==="number"){e.height=Ext.Number.constrain(a,e.minHeight,e.maxHeight)}else{if(a===null){delete e.height}else{if(typeof a==="string"){c=true;e.height=a}}}if(e.rendered&&e.isVisible()){if(b!==e.width||h!==e.height){if(e.liquidLayout||g||c){e.el.setSize(e.width,e.height)}e.updateLayout(e._notAsLayoutRoot)}}return e},setStyle:function(c,b){var a=this.el||this.protoEl;a.setStyle(c,b);return this},setUI:function(c){var b=this,e=b.uiCls,d=b.activeUI,a;if(c===d){return}if(d){a=b.removeClsWithUI(e,true);if(a.length){b.removeCls(a)}b.removeUIFromElement()}else{b.uiCls=[]}b.ui=c;b.activeUI=c;b.addUIToElement();a=b.addClsWithUI(e,true);if(a.length){b.addCls(a)}if(b.rendered){b.updateLayout()}},setVisible:function(a){return this[a?"show":"hide"]()},setHidden:function(a){return this.setVisible(!a)},setWidth:function(a){return this.setSize(a)},show:function(d,a,b){var c=this,e=c.rendered;if(c.hierarchicallyHidden||(c.floating&&!e&&c.isHierarchicallyHidden())){if(!e){c.initHierarchyEvents()}if(arguments.length>1){arguments[0]=null;c.pendingShow=arguments}else{c.pendingShow=true}}else{if(e&&c.isVisible()){if(c.floating){c.onFloatShow()}}else{if(c.fireEvent("beforeshow",c)!==false){c.hidden=false;delete this.getInherited().hidden;Ext.suspendLayouts();if(!e&&(c.autoRender||c.floating)){c.doAutoRender();e=c.rendered}if(e){c.beforeShow();Ext.resumeLayouts();c.onShow.apply(c,arguments);c.afterShow.apply(c,arguments)}else{Ext.resumeLayouts(true)}}else{c.onShowVeto()}}}return c},showAt:function(a,d,b){var c=this;if(!c.rendered&&(c.autoRender||c.floating)){c.x=a;c.y=d;return c.show()}if(c.floating){c.setPosition(a,d,b)}else{c.setPagePosition(a,d,b)}return c.show()},showBy:function(b,d,c){var a=this;if(a.floating&&b){a.alignTarget=b;if(d){a.defaultAlign=d}if(c){a.alignOffset=c}a.show();if(!a.hidden){a.alignTo(b,d||a.defaultAlign,c||a.alignOffset)}}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=true}},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(false)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(d,e){var c=this.getRefOwner(),b=typeof e==="string",h=typeof e==="number",a=e&&e.isComponent,g=0;if(d){for(;c;c=c.getRefOwner()){g++;if(d.isComponent){if(c===d){return c}}else{if(Ext.ComponentQuery.is(c,d)){return c}}if(b&&c.is(e)){return}if(h&&g===e){return}if(a&&c===e){return}}}return c},update:function(d,h,k,b){var j=this,l=(j.tpl&&!Ext.isString(d)),i=j.getScrollable(),c=j.focusableContainer,g,a,e;if(l){j.data=(d&&d.isEntity)?d.getData(true):d}else{j.html=Ext.isObject(d)?Ext.DomHelper.markup(d):d}if(j.rendered){g=j.getSizeModel();a=g.width.shrinkWrap||g.height.shrinkWrap;if(j.isContainer){e=j.layout.getRenderTarget();a=a||j.items.items.length>0}else{e=j.touchScroll?j.getScrollerEl():j.getTargetEl()}if(l){j.tpl[j.tplWriteMode](e,j.data||{})}else{e.setHtml(j.html,h,k,b||j)}if(a){j.updateLayout()}if(i){i.refresh(true)}if(c){c.onFocusableChildUpdate(j)}}},setHtml:function(b,a,c){this.update(b,a,null,c)},applyData:function(a){this.update(a)},updateBox:function(a){this.setSize(a.width,a.height);this.setPagePosition(a.x,a.y);return this},_asLayoutRoot:{isRoot:true},_notAsLayoutRoot:{isRoot:false},updateLayout:function(c){var e=this,g,b=e.lastBox,a=c&&c.isRoot,d=c&&c.context;if(b){b.invalid=true}if(!e.rendered||e.layoutSuspendCount||e.suspendLayout){return}if(e.hidden){Ext.Component.cancelLayout(e)}else{if(typeof a!=="boolean"){a=e.isLayoutRoot()}}if(a||!e.ownerLayout||!e.ownerLayout.onContentChange(e,d)){if(!e.isLayoutSuspended()){g=(c&&c.hasOwnProperty("defer"))?c.defer:e.deferLayouts;Ext.Component.updateLayout(e,g)}}},updateMaxHeight:function(b,a){this.changeConstraint(b,a,"min","max-height","height")},updateMaxWidth:function(b,a){this.changeConstraint(b,a,"min","max-width","width")},updateMinHeight:function(b,a){this.changeConstraint(b,a,"max","min-height","height")},updateMinWidth:function(a,b){this.changeConstraint(a,b,"max","min-width","width")},getAnchorToXY:function(d,a,c,b){return d.getAnchorXY(a,c,b)},getBorderPadding:function(){return this.el.getBorderPadding()},getLocalX:function(){return this.el.getLocalX()},getLocalXY:function(){return this.el.getLocalXY()},getLocalY:function(){return this.el.getLocalY()},getX:function(){return this.el.getX()},getXY:function(){return this.el.getXY()},getY:function(){return this.el.getY()},setLocalX:function(a){this.el.setLocalX(a)},setLocalXY:function(a,b){this.el.setLocalXY(a,b)},setLocalY:function(a){this.el.setLocalY(a)},setX:function(a,b){this.el.setX(a,b)},setXY:function(b,a){this.el.setXY(b,a)},setY:function(b,a){this.el.setY(b,a)},privates:{addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},addUIToElement:function(){var d=this,a=d.baseCls+"-"+d.ui,c,g,b,e;d.addCls(a);if(d.rendered&&d.frame&&!Ext.supports.CSS3BorderRadius){a+="-";c=d.getChildEls();for(g in c){e=c[g].frame;if(e&&e!==true){b=d[g];if(b){b.addCls(a+e)}}}}},changeConstraint:function(h,c,a,e,b){var g=this,d=g[b];if(h!=null&&typeof d==="number"){g[b]=Math[a](d,h)}if(g.liquidLayout){if(h!=null){g.setStyle(e,h+"px")}else{if(c){g.setStyle(e,"")}}}if(g.rendered){g.updateLayout()}},constructPlugin:function(b){var a=this;if(typeof b==="string"){b=Ext.PluginManager.create({},b,a)}else{b=Ext.PluginManager.create(b,null,a)}return b},constructPlugins:function(){var e=this,c=e.plugins,b,d,a;if(c){b=[];b.processed=true;if(!Ext.isArray(c)){c=[c]}for(d=0,a=c.length;d<a;d++){b[d]=e.constructPlugin(c[d])}}e.pluginsInitialized=true;return b},detachFromBody:function(){Ext.getDetachedBody().appendChild(this.el);Ext.Component.cancelLayout(this);this.isDetached=true},doAddListener:function(d,k,l,n,b,a,e){var j=this,i,h,c,m,g;if(Ext.isObject(k)||(n&&n.element)){if(n.element){m=n.element;i={};i[d]=k;if(l){i.scope=l}c=j.$elementEventOptions;for(h in n){if(c[h]){i[h]=n[h]}}}else{i=k;m=d}g=j[m];if(g&&g.isObservable){j.mon(g,i)}else{j.afterRenderEvents=j.afterRenderEvents||{};if(!j.afterRenderEvents[m]){j.afterRenderEvents[m]=[]}j.afterRenderEvents[m].push(i)}return}j.mixins.observable.doAddListener.call(j,d,k,l,n,b,a,e)},fireHierarchyEvent:function(b){var a=Ext.GlobalEvents;if(a.hasListeners[b]){a.fireEvent(b,this)}},getActionEl:function(){return this.el},getAutoId:function(){this.autoGenId=true;return ++Ext.Component.AUTO_ID},getContentTarget:function(){return this.el},getDragEl:function(){return this.el},getOverflowEl:function(){return this.getTargetEl()},getOverflowStyle:function(){var d=this,b=d.getScrollable(),c=d._scrollFlags,a,g,e;if(b){a=b.getX();if(a===true){a="auto"}g=b.getY();if(g===true){g="auto"}e=c[a][g]}else{e=c.none}d.scrollFlags=e;return{overflowX:e.overflowX,overflowY:e.overflowY}},getPlugins:function(){var a=this.plugins;a=(a&&a.processed)?a:this.constructPlugins();return a||null},getProxy:function(){var a=this,b;if(!a.proxy){b=Ext.getBody();a.proxy=a.el.createProxy("x-proxy-el",b,true)}return a.proxy},getScrollerEl:function(){var a=this;return a.scrollerEl||(a.scrollerEl=a.componentLayout.getScrollerEl()||a.getOverflowEl().child(a.scrollerSelector))},getTargetEl:function(){return this.frameBody||this.el},getTdCls:function(){return"x-"+this.getTdType()+"-"+this.ui+"-cell"},getTdType:function(){return this.xtype},getTpl:function(a){return Ext.XTemplate.getTpl(this,a)},initCls:function(){var b=this,a=[b.baseCls],c=b.getComponentLayout().targetCls;if(c){a.push(c)}if(Ext.isDefined(b.cmpCls)){if(Ext.isDefined(Ext.global.console)){Ext.global.console.warn("Ext.Component: cmpCls has been deprecated. Please use componentCls.")}b.componentCls=b.cmpCls;delete b.cmpCls}if(b.componentCls){a.push(b.componentCls)}else{b.componentCls=b.baseCls}return a},initDraggable:function(){var c=this,a=(c.resizer&&c.resizer.el!==c.el)?c.resizerComponent=new Ext.Component({ariaRole:"presentation",el:c.resizer.el,rendered:true,container:c.container}):c,b=Ext.applyIf({el:a.getDragEl(),constrainTo:(c.constrain||c.draggable.constrain)?(c.constrainTo||(c.floatParent?c.floatParent.getTargetEl():c.container)):undefined},c.draggable);if(c.constrain||c.constrainDelegate){b.constrain=c.constrain;b.constrainDelegate=c.constrainDelegate}c.dd=new Ext.util.ComponentDragger(a,b)},initPadding:function(c){var a=this,b=a.padding;if(b!=null){if(a.touchScroll||(a.layout&&a.layout.managePadding&&a.contentPaddingProperty==="padding")){c.setStyle("padding",0)}else{c.setStyle("padding",this.unitizeBox((b===true)?5:b))}}},initPlugin:function(a){a.init(this);return a},initResizable:function(a){var b=this;a=Ext.apply({target:b,dynamic:false,constrainTo:(b.constrain||(a&&a.constrain))?(b.constrainTo||(b.floatParent?b.floatParent.getTargetEl():b.container)):undefined,handles:b.resizeHandles},a);a.target=b;b.resizer=new Ext.resizer.Resizer(a)},initStyles:function(k){var g=this,d=g.margin,e=g.border,l=g.cls,a=g.style,i=g.x,h=g.y,c=g.liquidLayout,b,j;g.initPadding(k);if(d!=null){k.setStyle("margin",this.unitizeBox((d===true)?5:d))}if(e!=null){g.setBorder(e,k)}if(l&&l!==g.initialCls){k.addCls(l);g.cls=g.initialCls=null}if(a&&a!==g.initialStyle){k.setStyle(a);g.style=g.initialStyle=null}if(i!=null){k.setStyle(g.horizontalPosProp,(typeof i==="number")?(i+"px"):i)}if(h!=null){k.setStyle("top",(typeof h==="number")?(h+"px"):h)}if(!g.ownerCt||g.floating){if(Ext.scopeCss){k.addCls(g.rootCls)}k.addCls(g.borderBoxCls)}if(c||!g.getFrameInfo()){b=g.width;j=g.height;if(b!=null){if(typeof b==="number"){k.setStyle("width",b+"px")}else{k.setStyle("width",b)}}if(j!=null){if(typeof j==="number"){k.setStyle("height",j+"px")}else{k.setStyle("height",j)}}}},isContainedFloater:function(){return(this.floating&&this.floatParent)},isDescendant:function(a){if(a.isContainer){for(var b=this.ownerCt;b;b=b.ownerCt){if(b===a){return true}}}return false},owns:function(b){var a=false,c;if(b.isEvent){b=b.target}else{if(b.isElement){b=b.dom}}c=Ext.Component.fromElement(b);if(c){a=(c===this)||(!!c.up(this))}return a},parseBox:function(a){return Ext.Element.parseBox(a)},reattachToBody:function(){this.isDetached=false},refreshScroll:function(){var a=this.getScrollable();if(a){a.refresh()}},removeManagedListenerItem:function(b,a,i,d,g,e){var h=this,c=a.options?a.options.element:null;if(c){c=h[c];if(c&&c.un){if(b||(a.item===i&&a.ename===d&&(!g||a.fn===g)&&(!e||a.scope===e))){c.un(a.ename,a.fn,a.scope);if(!b){Ext.Array.remove(h.managedListeners,a)}}}}else{return h.mixins.observable.removeManagedListenerItem.apply(h,arguments)}},removeOverCls:function(){this.el.removeCls(this.overCls)},removePlugin:function(a){Ext.Array.remove(this.plugins,a);a.destroy()},removeUIFromElement:function(){var d=this,a=d.baseCls+"-"+d.ui,c,g,b,e;d.removeCls(a);if(d.rendered&&d.frame&&!Ext.supports.CSS3BorderRadius){a+="-";c=d.getChildEls();for(g in c){e=c[g].frame;if(e&&e!==true){b=d[g];if(b){b.removeCls(a+e)}}}}},setComponentLayout:function(b){var a=this.componentLayout;if(a&&a.isLayout&&a!==b){a.setOwner(null)}this.componentLayout=b;b.setOwner(this)},setHiddenState:function(d){var c=this,b=c.getInherited(),a=c.zIndexManager;c.hidden=d;if(d){b.hidden=true}else{delete b.hidden}if(a){a.onComponentShowHide(c)}},setupProtoEl:function(){var a=this.initCls();this.protoEl.addCls(a)},wrapPrimaryEl:function(c){var b=this,a=b.el;if(!a||!a.isElement){b.el=Ext.get(c)}if(b.floating){this.mixins.floating.constructor.call(this)}}},deprecated:{5:{methods:{addClass:"addCls",doComponentLayout:function(){this.updateLayout();return this},removeClass:"removeCls",forceComponentLayout:"updateLayout",setDocked:"setDock"}}}},1,["component","box"],["component","box"],{component:true,box:true},["widget.box","widget.component"],[[Ext.mixin.Inheritable.prototype.mixinId||Ext.mixin.Inheritable.$className,Ext.mixin.Inheritable],[Ext.util.Floating.prototype.mixinId||Ext.util.Floating.$className,Ext.util.Floating],[Ext.util.Positionable.prototype.mixinId||Ext.util.Positionable.$className,Ext.util.Positionable],[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Bindable.prototype.mixinId||Ext.mixin.Bindable.$className,Ext.mixin.Bindable],[Ext.util.Animate.prototype.mixinId||Ext.util.Animate.$className,Ext.util.Animate],[Ext.util.ElementContainer.prototype.mixinId||Ext.util.ElementContainer.$className,Ext.util.ElementContainer],[Ext.util.Renderable.prototype.mixinId||Ext.util.Renderable.$className,Ext.util.Renderable],[Ext.state.Stateful.prototype.mixinId||Ext.state.Stateful.$className,Ext.state.Stateful],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext,"Component",Ext,"AbstractComponent"],function(a){(a.prototype.$elementEventOptions=Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element=1;a.createAlias({on:"addListener",prev:"previousSibling",next:"nextSibling"});Ext.resumeLayouts=function(b){a.resumeLayouts(b)};Ext.suspendLayouts=function(){a.suspendLayouts()};Ext.batchLayouts=function(c,b){a.suspendLayouts();c.call(b);a.resumeLayouts(true)};Ext.setGlyphFontFamily=function(b){Ext._glyphFontFamily=b};a.hierarchyEventSource=a.prototype.hierarchyEventSource=Ext.GlobalEvents}));Ext.define("Ext.layout.container.border.Region",{override:"Ext.Component",initBorderRegion:function(){var a=this;if(!a._borderRegionInited){a._borderRegionInited=true;a.addStateEvents(["changeregion","changeweight"]);Ext.override(a,{getState:function(){var b=a.callParent();b=a.addPropertyToState(b,"region");b=a.addPropertyToState(b,"weight");return b}})}},getOwningBorderContainer:function(){var a=this.getOwningBorderLayout();return a&&a.owner},getOwningBorderLayout:function(){var a=this.ownerLayout;return(a&&a.isBorderLayout)?a:null},setRegion:function(k){var j=this,c,d=j.region;if(k!==d){c=j.getOwningBorderLayout();if(c){var g=c.regionFlags[k],l=j.placeholder,a=j.splitter,b=c.owner,n=c.regionMeta,e=j.collapsed||j.floated,m,i,h;if(j.fireEventArgs("beforechangeregion",[j,k])===false){return d}Ext.suspendLayouts();j.region=k;Ext.apply(j,g);if(j.updateCollapseTool){j.updateCollapseTool()}if(a){Ext.apply(a,g);a.updateOrientation();i=b.items;h=i.indexOf(j);if(h>=0){m=n[k].splitterDelta;if(i.getAt(h+m)!==a){i.remove(a);h=i.indexOf(j);if(m>0){++h}i.insert(h,a)}}}if(l){if(e){j.expand(false)}b.remove(l);j.placeholder=null;if(e){j.collapse(null,false)}}b.updateLayout();Ext.resumeLayouts(true);j.fireEventArgs("changeregion",[j,d])}else{j.region=k}}return d},setWeight:function(d){var c=this,b=c.getOwningBorderContainer(),e=c.placeholder,a=c.weight;if(d!==a){if(c.fireEventArgs("beforechangeweight",[c,d])!==false){c.weight=d;if(e){e.weight=d}if(b){b.updateLayout()}c.fireEventArgs("changeweight",[c,a])}}return a}},function(a){var b=a.prototype;b.setBorderRegion=b.setRegion;b.setRegionWeight=b.setWeight});Ext.define("Ext.rtl.Component",{override:"Ext.Component",applyScrollable:function(b,c){var a=arguments.callee.$previous.call(this,b,c);if(a&&this.getInherited().rtl){a.setRtl(true)}return a},convertPositionSpec:function(a){if((Ext.rootInheritedState.rtl||false)!==(this.getInherited().rtl||false)){a=a.replace(/l/g,"tmp").replace(/r/g,"l").replace(/tmp/g,"r")}return a},getAnchorToXY:function(a,c,h,b){var j=document,g,i,e,d;if(a.dom===j.body||a.dom===j){i=Ext.rootInheritedState.rtl?a.rtlGetScroll():a.getScroll();e=i.left;d=i.top}else{g=a.getXY();e=h?0:g[0];d=h?0:g[1]}return a.calculateAnchorXY(c,e,d,b)},getBorderPadding:function(){var b=this.el.getBorderPadding(),a;if(this.isParentRtl()){a=b.xBegin;b.xBegin=b.xEnd;b.xEnd=a}return b},getLocalX:function(){return this.isLocalRtl()?this.el.rtlGetLocalX():this.el.getLocalX()},getLocalXY:function(){return this.isLocalRtl()?this.el.rtlGetLocalXY():this.el.getLocalXY()},unitizeBox:function(a){if(this.getInherited().rtl){return Ext.dom.Element.rtlUnitizeBox(a)}else{return arguments.callee.$previous.apply(this,arguments)}},initInheritedState:function(a){arguments.callee.$previous.apply(this,arguments);var b=this.rtl;if(b!==undefined){a.rtl=b}},isLocalRtl:function(){var b=this,c,a;if(b.floating){if(b._isOffsetParentRtl===undefined){a=this.el.dom.offsetParent||this.el.dom.parentNode;if(a){b._isOffsetParentRtl=Ext.fly(a,"_isLocalRtl").isStyle("direction","rtl")}}c=!!b._isOffsetParentRtl}else{c=this.isParentRtl()}return c},isParentRtl:function(){var c=this,b=c.getInherited(),a=false,d;if(b.hasOwnProperty("rtl")){d=b.rtl;delete b.rtl}if(b.rtl){a=true}if(d!==undefined){b.rtl=d}return a},setLocalX:function(a){return this.isLocalRtl()?this.el.rtlSetLocalX(a):this.el.setLocalX(a)},setLocalXY:function(a,b){return this.isLocalRtl()?this.el.rtlSetLocalXY(a,b):this.el.setLocalXY(a,b)},isOppositeRootDirection:function(){return !this.getInherited().rtl!==!Ext.rootInheritedState.rtl},privates:{initStyles:function(){if(this.getInherited().rtl){this.horizontalPosProp="right"}arguments.callee.$previous.apply(this,arguments)},parseBox:function(a){if(this.getInherited().rtl){return Ext.dom.Element.rtlParseBox(a)}else{return arguments.callee.$previous.apply(this,arguments)}}}},function(){Ext.onInternalReady(function(){if((Ext.fly(document.documentElement).isStyle("direction","rtl"))||(Ext.getBody().isStyle("direction","rtl"))){Ext.rootInheritedState.rtl=true}})});Ext.define("Ext.overrides.app.domain.Component",{override:"Ext.app.domain.Component"},function(a){a.monitor(Ext.Component)});(Ext.cmd.derive("Ext.app.EventBus",Ext.Base,{singleton:true,constructor:function(){var b=this,a=Ext.app.EventDomain.instances;b.callParent();b.domains=a;b.bus=a.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(d,b){var a=this.domains,c;for(c in d){if(d.hasOwnProperty(c)){a[c].listen(d[c],b)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}},1,0,0,0,0,0,[Ext.app,"EventBus"],0));(Ext.cmd.derive("Ext.app.domain.Global",Ext.app.EventDomain,{singleton:true,type:"global",constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue},1,0,0,0,0,0,[Ext.app.domain,"Global"],0));(Ext.cmd.derive("Ext.app.BaseController",Ext.Base,{isController:true,config:{id:null,control:null,listen:null,routes:null,before:null},constructor:function(a){var b=this;Ext.apply(b,a);delete b.control;delete b.listen;b.eventbus=Ext.app.EventBus;b.mixins.observable.constructor.call(b,a);b.ensureId()},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.ensureId();if(a){this.control(a)}},updateListen:function(a){this.ensureId();if(a){this.listen(a)}},updateRoutes:function(b){if(b){var e=this,g=e.getBefore()||{},a=Ext.app.route.Router,d,c,h;for(d in b){c=b[d];if(Ext.isString(c)){c={action:c}}h=c.action;if(!c.before){c.before=g[h]}a.connect(d,c,e)}}},isActive:function(){return true},control:function(b,c,a){var d=this,e=a,g;if(Ext.isString(b)){g={};g[b]=c}else{g=b;e=c}d.eventbus.control(g,e||d)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var b=this,a=b.eventbus;Ext.app.route.Router.disconnectAll(b);if(a){a.unlisten(b);b.eventbus=null}b.clearListeners();b.callParent()},redirectTo:function(c,d){if(c.isModel){c=c.toUrl()}var a=Ext.util.History.getToken()===c,b=false;if(!a){b=true;Ext.util.History.add(c)}else{if(d){b=true;Ext.app.route.Router.onStateChange(c)}}return b}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,"BaseController"],0));(Ext.cmd.derive("Ext.app.Util",Ext.Base,{},0,0,0,0,0,0,[Ext.app,"Util"],function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(c){var d=Ext.app.namespaces,b,a;if(!Ext.isArray(c)){c=[c]}for(b=0,a=c.length;b<a;b++){d[c[b]]=true}},clearNamespaces:function(){Ext.app.namespaces={}},getNamespace:function(b){var d=Ext.apply({},Ext.ClassManager.paths,Ext.app.namespaces),a="",c;for(c in d){if(d.hasOwnProperty(c)&&c.length>a.length&&(c+"."===b.substring(0,c.length+1))){a=c}}return a===""?undefined:a}});Ext.getNamespace=Ext.app.getNamespace}));(Ext.cmd.derive("Ext.util.CollectionKey",Ext.Base,{isCollectionKey:true,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:true},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(k,e){var a=this.map||this.getMap(),l=a[k],g=this.getCollection(),b=g.length,d,h,j,c;if(!l){return -1}if(e===undefined){e=-1}if(l instanceof Array){j=l;h=b;for(c=j.length;c-->0;){d=g.indexOf(j[c]);if(d<h&&d>e){h=d}}if(h===b){return -1}}else{h=g.indexOf(l)}return(h>e)?h:-1},updateKey:function(c,e){var b=this,d=b.map,g,a;if(d){g=d[e];if(g instanceof Array){a=Ext.Array.indexOf(g,c);if(a>=0){if(g.length>2){g.splice(a,1)}else{d[e]=g[1-a]}}}else{if(g){delete d[e]}}b.add([c])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(b,a){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(e,d){var h=this,a=h.map,g=d.items,b=g.length,c,k,j;if(a){if(h.getUnique()&&b<e.length/2){for(c=0;c<b;++c){j=h.getKey(k=g[c]);delete a[j]}}else{h.map=null}}},add:function(g){var h=this,a=h.map,b,e,k,j,c,d;c=g.length;d=h.getUnique();for(e=0;e<c;++e){j=h.getKey(k=g[e]);if(d||!(j in a)){a[j]=k}else{if(!((b=a[j]) instanceof Array)){a[j]=b=[b]}b.push(k)}}},applyKeyFn:function(a){if(Ext.isString(a)){this.getKey=function(b){return b[a]()}}else{this.getKey=a}},updateProperty:function(b){var a=this.getRootProperty();this.getKey=function(c){return(a?c[a]:c)[b]}},getMap:function(){var a=this,b=a.map;if(!b){a.map=b={};a.keysByItemKey={};++a.mapRebuilds;a.add(a.getCollection().items)}return b},updateCollection:function(a){a.addObserver(this)},clone:function(){return new Ext.util.CollectionKey(this.getCurrentConfig())}},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.util,"CollectionKey"],0));(Ext.cmd.derive("Ext.util.Grouper",Ext.util.Sorter,{isGrouper:true,config:{groupFn:null,sortProperty:null},constructor:function(a){Ext.util.Sorter.prototype.constructor.apply(this,arguments)},getGroupString:function(a){var b=this._groupFn(a);return(b!=null)?String(b):""},sortFn:function(d,c){var g=this,b=g._groupFn(d),e=g._groupFn(c),j=g._sortProperty,i=g._root,h=g._sorterFn,a=g._transform;if(b===e){return 0}if(j||h){if(h){return h.call(this,d,c)}if(i){d=d[i];c=c[i]}b=d[j];e=c[j];if(a){b=a(b);e=a(e)}}return(b>e)?1:(b<e?-1:0)},standardGroupFn:function(b){var a=this._root;return(a?b[a]:b)[this._property]},updateSorterFn:function(){},updateProperty:function(){if(!this.getGroupFn()){this.setGroupFn(this.standardGroupFn)}}},1,0,0,0,0,0,[Ext.util,"Grouper"],0));(Ext.cmd.derive("Ext.util.Collection",Ext.Base,{isCollection:true,config:{autoFilter:true,autoSort:true,autoGroup:true,decoder:null,extraKeys:null,filters:null,grouper:null,groups:null,rootProperty:null,sorters:null,multiSortLimit:3,defaultSortDirection:"ASC",source:null},generation:0,indices:null,indexRebuilds:0,updating:0,grouped:false,sorted:false,filtered:false,$endUpdatePriority:1001,manageSorters:true,constructor:function(a){var b=this;b.items=[];b.map={};b.length=0;if(a&&a.keyFn){b.getKey=a.keyFn}b.mixins.observable.constructor.call(b,a)},destroy:function(){var c=this,b=c._filters,d=c._sorters,a=c._groups;if(b){b.destroy();c._filters=null}if(d){c.grouped=c.sorted=false;c.setSorters(null);if(c.manageSorters){d.destroy()}}if(a){a.destroy();c._groups=null}c.setSource(null);c.observers=c.items=c.map=null;c.callParent()},add:function(d){var c=this,a=c.decodeItems(arguments,0),b=a;if(a.length){c.splice(c.length,0,a);b=(a.length===1)?a[0]:a}return b},replaceAll:function(){var c=this,b,a;a=c.decodeItems(arguments,0);b=a;if(a.length){c.splice(0,c.length,a);b=(a.length===1)?a[0]:a}else{c.removeAll()}return b},aggregate:function(h,b,e,a,d){var g=this,c=Ext.Array.slice(arguments);c.unshift(g.items);return g.aggregateItems.apply(g,c)},aggregateByGroup:function(d,b,c){var a=this.getGroups();return this.aggregateGroups(a,d,b,c)},aggregateItems:function(l,r,d,a,e,s){var m=this,k=Ext.Number.clipIndices(l.length,[a,e]),b=(a!==0&&e!==l.length),h,g,c,n,p,q,o;a=k[0];e=k[1];if(!Ext.isFunction(d)){d=m._aggregators[d];return d.call(m,l,a,e,r,m.getRootProperty())}n=m.getRootProperty();q=new Array(c);o=b?new Array(c):l;for(h=a,g=0;h<e;++h,g++){if(b){o[g]=p=l[h]}q[g]=(n?p[n]:p)[r]}return d.call(s||m,l,q,0)},aggregateGroups:function(a,k,c,l){var h=a.items,g=h.length,b=!Ext.isFunction(c),d={},e,j,m;for(e=0;e<g;++e){j=h[e];if(!b){m=this.aggregateItems(j.items,k,c,null,null,l)}else{m=j[c](k)}d[j.getGroupKey()]=m}return d},beginUpdate:function(){if(!this.updating++){this.notify("beginupdate")}},clear:function(){var c=this,d=c.generation,a=d?c.items:[],b,e;if(d){c.items=[];c.length=0;c.map={};c.indices={};c.generation++;b=c.getExtraKeys();if(b){for(e in b){b[e].clear()}}}return a},clone:function(){var a=this,b=new a.self(a.initialConfig);b.add(a.items);return b},collect:function(l,g,j){var e=this.items,b=e.length,a={},d=[],c,h,k;for(c=0;c<b;++c){k=e[c];k=(g?k[g]:k)[l];h=String(k);if((j||!Ext.isEmpty(k))&&!a[h]){a[h]=1;d.push(k)}}return d},contains:function(c){var a=false,b;if(c!=null){b=this.getKey(c);a=this.map[b]===c}return a},containsKey:function(a){return a in this.map},createFiltered:function(o,n,e,k,d){var j=this,g=new j.self(j.initialConfig),m=j.getRootProperty(),h=j.items,b,c,a,l,p;if(Ext.isFunction(o)){l=o;p=n}else{if(Ext.isString(o)){a=[new Ext.util.Filter({property:o,value:n,root:m,anyMatch:e,caseSensitive:k,exactMatch:d})]}else{if(o instanceof Ext.util.Filter){a=[o];o.setRoot(m)}else{if(Ext.isArray(o)){a=o.slice(0);for(c=0,b=a.length;c<b;++c){a[c].setRoot(m)}}}}l=Ext.util.Filter.createFilterFn(a)}p=p||j;for(c=0,b=h.length;c<b;c++){if(l.call(p,h[c])){g.add(h[c])}}return g},filterBy:function(b,a){return this.createFiltered(b,a)},each:function(g,e){var b=this.items,a=b.length,d,c;if(a){e=e||this;b=b.slice(0);for(d=0;d<a;d++){c=g.call(e,b[d],d,a);if(c===false){break}}}return c},eachKey:function(g,k){var e=this,d=e.items,b=d.length,a,j,h,c;if(b){k=k||e;d=d.slice(0);for(a=0;a<b;a++){h=e.getKey(j=d[a]);c=g.call(k,h,j,a,b);if(c===false){break}}}return c},endUpdate:function(){if(!--this.updating){this.notify("endupdate")}},find:function(h,g,i,d,c,b){if(Ext.isEmpty(g,false)){return null}var e=Ext.String.createRegex(g,d,c,b),a=this.getRootProperty();return this.findBy(function(j){return j&&e.test((a?j[a]:j)[h])},null,i)},findBy:function(g,k,a){var e=this,d=e.items,c=d.length,b,j,h;k=k||e;for(b=a||0;b<c;b++){h=e.getKey(j=d[b]);if(g.call(k,j,h)){return d[b]}}return null},findIndex:function(g,e,h,c,b,a){var d=this.find(g,e,h,c,b,a);return d?this.indexOf(d):-1},findIndexBy:function(b,a,d){var c=this.findBy(b,a,d);return c?this.indexOf(c):-1},first:function(b){var a=b?this.getGroups():undefined;return a?this.aggregateGroups(a,null,"first"):this.items[0]},last:function(b){var a=b?this.getGroups():undefined;return a?this.aggregateGroups(a,null,"last"):this.items[this.length-1]},get:function(a){return this.map[a]},getAt:function(a){return this.items[a]},getByKey:function(a){return this.map[a]},getCount:function(){return this.length},getKey:function(a){var b=a.id;return(b===0||b)?b:((b=a._id)===0||b)?b:a.getId()},getRange:function(d,a){var c=this.items,e=c.length,b;if(!e){b=[]}else{b=Ext.Number.clipIndices(e,[d,a]);b=c.slice(b[0],b[1])}return b},getValues:function(k,h,a,b){var g=this.items,d=Ext.Number.clipIndices(g.length,[a,b]),e=[],c,j;for(c=d[0],b=d[1];c<b;++c){j=g[c];j=(h?j[h]:j)[k];e.push(j)}return e},indexOf:function(b){if(!b){return -1}var a=this.getKey(b);return this.indexOfKey(a)},indexOfKey:function(a){var b=this,c=b.indices;if(a in b.map){if(!c){c=b.getIndices()}return c[a]}return -1},insert:function(c,e){var d=this,a=d.decodeItems(arguments,1),b=a;if(a.length){d.splice(c,0,a);b=(a.length===1)?a[0]:a}return b},itemChanged:function(u,i,m,n){var v=this,c=m===0||!!m,j=v.filtered&&v.getAutoFilter(),e=false,d=0,p=v.items,l=v.length-1,a=v.sorted&&l>0&&v.getAutoSort(),r=v.getSource(),q=0,k=false,o=false,t,s,g,w,h,b;if(r&&!r.updating){r.itemChanged(u,i,m,n)}else{s=v.getKey(u);if(j){h=v.indexOfKey(c?m:s);o=(h<0);k=v.isItemFiltered(u);e=(o!==k)}if(e){if(k){q=[u];b=-1}else{w=[u];b=v.length}}else{if(a&&!k){if(!j){h=v.indexOfKey(c?m:s)}g=v.getSortFn();if(h!==-1){if(h&&g(p[h-1],p[h])>0){d=-1;b=Ext.Array.binarySearch(p,u,0,h,g)}else{if(h<l&&g(p[h],p[h+1])>0){d=1;b=Ext.Array.binarySearch(p,u,h+1,g)}}if(d){w=[u]}}}}t={item:u,key:s,index:b,filterChanged:e,keyChanged:c,indexChanged:!!d,filtered:k,oldIndex:h,newIndex:b,wasFiltered:o,meta:n};if(c){t.oldKey=m}if(i){t.modified=i}v.beginUpdate();v.notify("beforeitemchange",[t]);if(c){v.updateKey(u,m)}if(w||q){v.splice(b,q,w)}if(d>0){t.newIndex--}else{if(d<0){t.oldIndex++}}v.notify(k?"filtereditemchange":"itemchange",[t]);v.endUpdate()}},remove:function(d){var c=this,a=c.decodeRemoveItems(arguments,0),b=c.length;c.splice(0,a);return b-c.length},removeAll:function(){var b=this,a=b.length;if(b.generation&&a){b.splice(0,a)}return b},removeAt:function(i,h){var j=this,b=j.length,e=Ext.Number,d=e.clipIndices(b,[i,(h===undefined)?1:h],e.Clip.COUNT),c=d[0],a=d[1]-c,k=(a===1)&&j.getAt(c),g;j.splice(c,a);g=j.length-b;return(k&&g)?k:g},removeByKey:function(a){var b=this.getByKey(a);if(!b||!this.remove(b)){return false}return b},replace:function(b){var a=this.indexOf(b);if(a===-1){this.add(b)}else{this.insert(a,b)}},splice:function(E,o,C){var m=this,d=m.sorted&&m.getAutoSort(),A=m.map,s=m.items,q=m.length,w=(o instanceof Array)?m.decodeRemoveItems(o):null,x=!w,F=Ext.Number,e=F.clipIndices(q,[E,x?o:0],F.Clip.COUNT),h=e[0],l=e[1],L=l-h,u=m.decodeItems(arguments,2),K=u?u.length:0,D,y,v,c=h,b=m.indices||((K||w)?m.getIndices():null),r=null,j=L?[h]:null,g=null,t=m.getSource(),a,H,I,N,B,G,M,p,z,J,P,O;if(t&&!t.updating){if(x){w=[];for(N=0;N<L;++N){w.push(s[h+N])}}if(h<q){N=t.indexOf(s[h])}else{N=t.length}m.requestedIndex=E;t.splice(N,w,u);delete m.requestedIndex;return m}if(K){D=u;g=[];y={};if(d){O=m.getSorters();if(K>1){if(!D.$cloned){u=D=D.slice(0)}m.sortData(D)}}for(N=0;N<K;++N){p=m.getKey(B=u[N]);if((M=y[p])!==undefined){(P||(P={}))[M]=1}else{G=b[p];if(G<h||l<=G){(j||(j=[])).push(G)}}y[p]=N;g.push(p)}if(P){z=g;D=[];g=[];D.$cloned=true;for(N=0;N<K;++N){if(!P[N]){B=u[N];D.push(B);g.push(z[N])}}K=D.length}r={items:D,keys:g}}for(N=w?w.length:0;N-->0;){p=m.getKey(w[N]);if((G=b[p])!==undefined){(j||(j=[])).push(G)}}if(!r&&!j){return m}m.beginUpdate();if(j){a=null;I=[];v={};if(j.length>1){j.sort(Ext.Array.numericSortFn)}for(N=0,J=j.length;N<J;++N){p=m.getKey(B=s[G=j[N]]);if(!(p in A)){continue}delete A[p];if(!a||G>(a.at+H.length)){I.push(a={at:G,items:(H=[]),keys:(z=[]),map:v,next:a,replacement:r});if(r){r.replaced=a}}H.push(v[p]=B);z.push(p);if(G<c-1){--c}if(L>1&&G===h){--L;j[N--]=++h}}if(r){r.at=c}for(M=I.length;M-->0;){a=I[M];N=a.at;J=a.items.length;if(N+J<q){m.indices=b=null}m.length=q-=J;s.splice(N,J);if(b){z=a.keys;for(N=0;N<J;++N){delete b[z[N]]}}++m.generation;m.notify("remove",[a])}}if(r){if(d&&K>1&&q){m.spliceMerge(D,g)}else{if(d){if(K>1){c=0;m.indices=b=null}else{c=O.findInsertionIndex(r.items[0],s,m.getSortFn())}}if(c===q){l=c;for(N=D.length-1;N>=0;--N){s[l+N]=D[N]}b=m.indices;if(b){for(N=0;N<K;++N){b[g[N]]=c+N}}}else{m.indices=null;Ext.Array.insert(s,c,D)}for(N=0;N<K;++N){A[g[N]]=D[N]}m.length+=K;r.at=c;r.atItem=c===0?null:s[c-1];++m.generation;m.notify("add",[r])}}m.endUpdate();return m},update:function(b,a){var c=this;c.beginUpdate();try{return b.call(a||c,c)}catch(d){throw d}finally{c.endUpdate()}},updateKey:function(b,e){var a=this,d=a.map,h=a.indices,c=a.getSource(),g;if(c&&!c.updating){c.updateKey(b,e)}else{if((g=a.getKey(b))!==e){if(d[e]===b&&!(g in d)){delete d[e];a.updating++;a.generation++;d[g]=b;if(h){h[g]=h[e];delete h[e]}a.notify("updatekey",[{item:b,newKey:g,oldKey:e}]);a.updating--}}}},findInsertIndex:function(d){var e=this.getSource(),g=e.items,b=e.indexOf(d)-1,c,a;while(b>-1){c=g[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(a,b){var l=this,o=b.atItem,k=b.items,g=l.requestedIndex,j,h,c,e,m,d;if(!l.sorted){if(g!==undefined){h=g}else{if(o){h=l.indexOf(o);if(h===-1){h=l.findInsertIndex(k[0])}else{++h}}else{h=0}}}if(l.getAutoFilter()&&l.filtered){for(e=0,d=k.length;e<d;++e){m=k[e];if(l.isItemFiltered(m)){if(!c){c=k.slice(0,e)}if(!j){j=[]}j.push(m)}else{if(c){c.push(m)}}}}l.splice((h<0)?l.length:h,0,c||k);if(j){l.notify("filteradd",[j])}},onCollectionBeforeItemChange:function(b,a){this.onCollectionUpdateKey=null},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){delete this.onCollectionUpdateKey;this.itemChanged(a.item,a.modified,a.oldKey,a.meta)},onCollectionFilteredItemChange:null,onCollectionRefresh:function(a){var g=this,b={},j={},d,k,e,h,c;e=a.items;e=g.filtered&&g.getAutoFilter()?Ext.Array.filter(e,g.getFilterFn()):e.slice(0);if(g.sorted){g.sortData(e)}g.items=e;g.length=c=e.length;g.map=b;g.indices=j;for(d=0;d<c;++d){h=g.getKey(k=e[d]);b[h]=k;j[h]=d}g.notify("refresh")},onCollectionRemove:function(b,a){this.splice(0,a.items)},onCollectionUpdateKey:function(b,a){this.updateKey(a.item,a.oldKey)},_aggregators:{average:function(c,d,b,e,a){var g=b-d;return g&&this._aggregators.sum.call(this,c,d,b,e,a)/g},bounds:function(e,a,b,k,g){for(var j,h,c,d=a;d<b;++d){j=e[d];j=(g?j[g]:j)[k];if(!(j<h)){h=j}if(!(j>c)){c=j}}return[c,h]},count:function(a){return a.length},extremes:function(g,a,c,m,k){var h=null,b=null,e,n,j,d,l;for(e=a;e<c;++e){n=g[e];l=(k?n[k]:n)[m];if(!(l<j)){j=l;h=n}if(!(l>d)){d=l;b=n}}return[b,h]},max:function(e,g,d,h,c){var a=this._aggregators.bounds.call(this,e,g,d,h,c);return a[1]},maxItem:function(e,g,d,h,c){var a=this._aggregators.extremes.call(this,e,g,d,h,c);return a[1]},min:function(e,g,d,h,c){var a=this._aggregators.bounds.call(this,e,g,d,h,c);return a[0]},minItem:function(e,g,d,h,c){var a=this._aggregators.extremes.call(this,e,g,d,h,c);return a[0]},sum:function(c,g,b,j,a){for(var h,e=0,d=g;d<b;++d){h=c[d];h=(a?h[a]:h)[j];e+=h}return e}},_eventToMethodMap:{add:"onCollectionAdd",beforeitemchange:"onCollectionBeforeItemChange",beginupdate:"onCollectionBeginUpdate",endupdate:"onCollectionEndUpdate",itemchange:"onCollectionItemChange",filtereditemchange:"onCollectionFilteredItemChange",refresh:"onCollectionRefresh",remove:"onCollectionRemove",beforesort:"beforeCollectionSort",sort:"onCollectionSort",filter:"onCollectionFilter",filteradd:"onCollectionFilterAdd",updatekey:"onCollectionUpdateKey"},addObserver:function(a){var b=this,c=b.observers;if(!c){b.observers=c=[]}if(b.notifying){b.observers=c=c.slice(0)}c.push(a);if(c.length>1){Ext.Array.sort(c,b.prioritySortFn)}},prioritySortFn:function(g,e){var d=g.observerPriority||0,c=e.observerPriority||0;return d-c},applyExtraKeys:function(e,a){var g=this,d=a||{},c,b,h;for(b in e){h=e[b];if(!h.isCollectionKey){c={collection:g};if(Ext.isString(h)){c.property=h}else{c=Ext.apply(c,h)}h=new Ext.util.CollectionKey(c)}else{h.setCollection(g)}d[b]=g[b]=h;h.name=b}return d},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,"Ext.util.Grouper")}return a},decodeItems:function(d,c){var g=this,b=(c===undefined)?d:d[c],a,h,e;if(!b||!b.$cloned){a=d.length>c+1||!Ext.isIterable(b);if(a){b=Ext.Array.slice(d,c);if(b.length===1&&b[0]===undefined){b.length=0}}h=g.getDecoder();if(h){if(!a){b=b.slice(0);a=true}for(e=b.length;e-->0;){if((b[e]=h.call(g,b[e]))===false){b.splice(e,1)}}}if(a){b.$cloned=true}}return b},getIndices:function(){var d=this,e=d.indices,a=d.items,g=a.length,c,b;if(!e){d.indices=e={};++d.indexRebuilds;for(c=0;c<g;++c){b=d.getKey(a[c]);e[b]=c}}return e},notify:function(d,h){var i=this,c=i.observers,k=i._eventToMethodMap[d],j=0,e,b,a,g;h=h||[];if(c&&k){i.notifying=true;for(e=0,b=c.length;e<b;++e){a=(g=c[e])[k];if(a){if(!j++){h.unshift(i)}a.apply(g,h)}}i.notifying=false}if(!i.hasListeners){return}if(i.hasListeners[d]){if(!j){h.unshift(i)}i.fireEventArgs(d,h)}},getFilterFn:function(){return this.getFilters().getFilterFn()},getFilters:function(b){var a=this._filters;if(!a&&b!==false){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},isItemFiltered:function(a){return !this.getFilters().filterFn(a)},onFilterChange:function(e){var d=this,g=d.getSource(),c,b,a;if(!g){c=d.getExtraKeys();if(c){b={};for(a in c){b[a]=c[a].clone(d)}}g=new Ext.util.Collection({keyFn:d.getKey,extraKeys:b,rootProperty:d.getRootProperty()});if(d.length){g.add(d.items)}d.setSource(g);d.autoSource=g}else{if(g.length||d.length){d.onCollectionRefresh(g)}}d.notify("filter")},applyFilters:function(a,b){if(!a||a.isFilterCollection){return a}if(a){if(!b){b=this.getFilters()}b.splice(0,b.length,a)}return b},updateFilters:function(a,b){var c=this;if(b){b.un("endupdate","onEndUpdateFilters",c)}if(a){a.on({endupdate:"onEndUpdateFilters",scope:c,priority:c.$endUpdatePriority});a.$filterable=c}c.onEndUpdateFilters(a)},onEndUpdateFilters:function(c){var b=this,d=b.filtered,a=!!c&&(c.length>0);if(d||a){b.filtered=a;b.onFilterChange(c)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==false){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(a,c,d){var b=this.getSorters();b.addSort.apply(b,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify("beforesort",[a.getSorters(false)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify("sort")},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(c,a,b){if(!a){a=this.items}if(!b){b=this.getSortFn()}return Ext.Array.binarySearch(a,c,b)},applySorters:function(a,b){if(!a||a.isSorterCollection){return a}if(a){if(!b){b=this.getSorters()}b.splice(0,b.length,a)}return b},createSortFn:function(){var c=this,a=c.getGrouper(),d=c.getSorters(false),b=d?d.getSortFn():null;if(!a){return b}return function(e,h){var g=a.sort(e,h);if(!g&&b){g=b(e,h)}return g}},updateGrouper:function(b){var c=this,a=c.getGroups(),e=c.getSorters(),d;c.onSorterChange();c.grouped=!!b;if(b){if(!a){a=new Ext.util.GroupCollection({itemRoot:c.getRootProperty()});a.$groupable=c;c.setGroups(a)}a.setGrouper(b);d=true}else{if(a){c.removeObserver(a);a.destroy()}c.setGroups(null)}if(!e.updating){c.onEndUpdateSorters(e)}if(d){a.onCollectionRefresh(c)}},updateSorters:function(a,b){var c=this;if(b){b.un("endupdate","onEndUpdateSorters",c)}if(a){a.on({endupdate:"onEndUpdateSorters",scope:c,priority:c.$endUpdatePriority});a.$sortable=c}c.onSorterChange();c.onEndUpdateSorters(a)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(c){var b=this,d=b.sorted,a=(b.grouped&&b.getAutoGroup())||(c&&c.length>0);if(d||a){b.sorted=!!a;b.onSortChange(c)}},removeObserver:function(a){var b=this.observers;if(b){Ext.Array.remove(b,a)}},spliceMerge:function(k,s){var r=this,q=r.map,g=k.length,c=0,l=r.items,t=l.length,j=[],h=0,n=[],d=r.getSortFn(),m,b,o,e,p,a;r.items=n;for(a=0;a<g;a=b){e=k[a];for(;c<t;++c){if(d(e,p=l[c])<0){break}n.push(p)}if(c===t){j[h++]={at:n.length,itemAt:n[n.length-1],items:(m=[])};if(h>1){j[h-2].next=j[h-1]}for(;a<g;++a){m.push(e=k[a]);n.push(e)}break}j[h++]={at:n.length,itemAt:n[n.length-1],items:(m=[e])};if(h>1){j[h-2].next=j[h-1]}n.push(e);for(b=a+1;b<g;++b){if(d(e=k[b],p)>=0){break}n.push(e);m.push(e)}}for(;c<t;++c){n.push(l[c])}for(o=0;o<g;++o){q[s[o]]=k[o]}r.length=n.length;++r.generation;r.indices=null;for(o=0;o<h;++o){r.notify("add",[j[o]])}},getGroups:function(){return(arguments.callee.$previous||Ext.Base.prototype.getGroups).call(this)||null},updateAutoGroup:function(b){var a=this.getGroups();if(a){a.setAutoGroup(b)}this.onEndUpdateSorters(this._sorters)},updateGroups:function(a,b){if(b){this.removeObserver(b)}if(a){this.addObserver(a)}},updateSource:function(b,a){var c=this.autoSource;if(a){a.removeObserver(this);if(a===c){c.destroy();this.autoSource=null}}if(b){b.addObserver(this);if(b.length||this.length){this.onCollectionRefresh(b)}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.util,"Collection"],function(){var a=this.prototype;a.removeAtKey=a.removeByKey;a.decodeRemoveItems=a.decodeItems;Ext.Object.each(a._aggregators,function(b){a[b]=function(e,d,c){return this.aggregate(e,b,d,c)};a[b+"ByGroup"]=function(c){return this.aggregateByGroup(c,b)}})}));(Ext.cmd.derive("Ext.util.ObjectTemplate",Ext.Base,{isObjectTemplate:true,excludeProperties:{},valueRe:/^[{][a-z\.]+[}]$/i,statics:{create:function(b,a){return b.isObjectTemplate?b:new Ext.util.ObjectTemplate(b,a)}},constructor:function(b,a){Ext.apply(this,a);this.template=b},apply:function(a){var b=this;delete b.apply;b.apply=b.compile(b.template);return b.apply(a)},privates:{compile:function(e){var g=this,b=g.excludeProperties,h,c,a,d;if(Ext.isString(e)){if(e.indexOf("{")<0){d=function(){return e}}else{if(g.valueRe.test(e)){e=e.substring(1,e.length-1).split(".");d=function(l){for(var j=l,k=0;j&&k<e.length;++k){j=j[e[k]]}return j}}else{e=new Ext.XTemplate(e);d=function(i){return e.apply(i)}}}}else{if(!e||Ext.isPrimitive(e)||Ext.isFunction(e)){d=function(){return e}}else{if(e instanceof Array){h=[];for(c=0,a=e.length;c<a;++c){h[c]=g.compile(e[c])}d=function(l){var j=[],k;for(k=0;k<a;++k){j[k]=h[k](l)}return j}}else{h={};for(c in e){if(!b[c]){h[c]=g.compile(e[c])}}d=function(m){var k={},l,j;for(l in e){j=b[l]?e[l]:h[l](m);if(j!==undefined){k[l]=j}}return k}}}}return d}}},1,0,0,0,0,0,[Ext.util,"ObjectTemplate"],0));(Ext.cmd.derive("Ext.data.schema.Role",Ext.Base,{isRole:true,left:true,owner:false,side:"left",isMany:false,defaultReaderType:"json",_internalReadOptions:{recordsOnly:true,asRoot:true},constructor:function(b,c){var d=this,a=c.extra;Ext.apply(d,c);if(a){delete a.type;Ext.apply(d,a);delete d.extra}d.association=b;if(b.owner===d.side){b.owner=d;d.owner=true}},processUpdate:function(){Ext.Error.raise('Only the "many" for an association may be processed. "'+this.role+'" is not valid.')},processLoad:function(b,c,a,d){return a},checkMembership:Ext.emptyFn,adoptAssociated:function(b,c){var a=this.getAssociatedItem(b);if(a){c.adopt(a)}},$roleFilterId:"$associationRoleFilter",createAssociationStore:function(g,l,e,m){var i=this,d=i.association,h=d.getFieldName(),j=d.isManyToMany,b=i.storeConfig,a=l.getId(),c={model:i.cls,role:i,session:g,associatedEntity:l,disableMetaChangeEvent:true,pageSize:null,remoteFilter:true,trackRemoved:!g},k;if(j){c.filters=[{id:i.$roleFilterId,property:i.inverse.field,value:a,exactMatch:true}]}else{if(h){c.filters=[{id:i.$roleFilterId,property:h,value:a,exactMatch:true}];c.foreignKeyName=h}}if(b){Ext.apply(c,b)}k=Ext.Factory.store(c);i.onStoreCreate(k,g,a);if(h||(j&&g)){k.on({scope:i,add:"onAddToMany",remove:"onRemoveFromMany",clear:"onRemoveFromMany"})}if(e){k.loadData(e)}k.complete=!!m;return k},onStoreCreate:Ext.emptyFn,getAssociatedStore:function(q,e,b,s,u){var w=this,o=w.getStoreName(),g=q[o],a=q.session,l=e&&e.reload,p=q.$source,h=false,m=false,k,c,r,t,n,j,d,v;if(!g){if(a){if(p){m=p.phantom}if(!s&&p){d=p[o];if(d&&!d.isLoading()){s=[];n=d.getData().items;for(r=0,t=n.length;r<t;++r){j=n[r];s.push(a.getRecord(j.self,j.id))}h=!!d.complete;k=true}}if(!k){v=!!s;s=w.findRecords(a,q,s,u);if(!v&&(!s||!s.length)){s=null}h=m||v}}else{h=!!s}g=w.createAssociationStore(a,q,s,h||q.phantom);g.$source=d;if(!s&&(w.autoLoad||e)){l=true}q[o]=g}if(e){if(l||g.isLoading()){g.on("load",function(y,x,z,i){c=[y,i];b=b||e.scope||q;if(z){Ext.callback(e.success,b,c)}else{Ext.callback(e.failure,b,c)}c.push(z);Ext.callback(e,b,c);Ext.callback(e.callback,b,c)},null,{single:true})}else{c=[g,null];b=b||e.scope||q;Ext.callback(e.success,b,c);c.push(true);Ext.callback(e,b,c);Ext.callback(e.callback,b,c)}}if(l&&!g.isLoading()){g.load()}return g},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,onIdChanged:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var c=this,a=c.reader,d=c.cls,e=!c.associationKey,b=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:b,useSimpleAccessors:e,type:c.defaultReaderType});a=c.reader=Ext.createByAlias("reader."+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName="$old"+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(e){var g=this,a=g.getReader(),h=g.cls,i=!g.associationKey,b=g.getReaderRoot(),c,d;if(!a){d=h.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(b)}else{a=new e.self({model:h,useSimpleAccessors:i,rootProperty:b})}g.reader=a}return a},read:function(c,g,d,e){var a=this.constructReader(d),b=a.getRoot(g);if(b){return a.readRecords(b,e,this._internalReadOptions)}},getCallbackOptions:function(a,b,c){if(typeof a==="function"){a={callback:a,scope:b||c}}else{if(a){a=Ext.apply({},a);a.scope=b||a.scope||c}}return a},doGetFK:function(b,n,l){var i=this,m=i.cls,e=i.association.getFieldName(),k=i.getInstanceName(),j=b[k],a=n&&n.reload,d=j!==undefined&&!a,h=b.session,c,g;if(!d){if(h){c=b.get(e);if(c||c===0){d=h.peekRecord(m,c,true)&&!a;j=h.getRecord(m,c,false)}else{d=true;b[k]=j=null}}else{if(e){c=b.get(e);if(!c&&c!==0){d=true;b[k]=j=null}else{if(!j){j=m.createWithId(c)}}}else{d=true}}}else{if(j){d=!j.isLoading()}}if(d){if(n){g=[j,null];l=l||n.scope||b;Ext.callback(n.success,l,g);g.push(true);Ext.callback(n,l,g);Ext.callback(n.callback,l,g)}}else{b[k]=j;n=i.getCallbackOptions(n,l,b);j.load(n)}return j},doSetFK:function(a,j,n,m){var i=this,g=i.association.getFieldName(),k=i.getInstanceName(),e=a[k],c=i.inverse,d=c.setterName,h=a.session,l,b;if(j&&j.isEntity){if(e!==j){b=i.getOldInstanceName();a[b]=e;a[k]=j;if(e&&e.isEntity){e[c.getInstanceName()]=undefined}if(g){a.set(g,j.getId())}delete a[b];a.onAssociatedRecordSet(j,i);if(d){j[d](a)}}}else{l=(a.changingKey&&!c.isMany)||a.set(g,j);if(l&&e&&e.isEntity&&!e.isEqual(e.getId(),j)){a[k]=undefined;if(!c.isMany){e[c.getInstanceName()]=undefined}}}if(n){if(Ext.isFunction(n)){n={callback:n,scope:m||a}}return a.save(n)}}},1,0,0,0,0,0,[Ext.data.schema,"Role"],0));(Ext.cmd.derive("Ext.data.schema.Association",Ext.Base,{isOneToOne:false,isManyToOne:false,isManyToMany:false,owner:null,field:null,constructor:function(a){var c=this,d,b;Ext.apply(c,a);c.left=d=new c.Left(c,c.left);c.right=b=new c.Right(c,c.right);d.inverse=b;b.inverse=d},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:""}},1,0,0,0,0,0,[Ext.data.schema,"Association"],0));(Ext.cmd.derive("Ext.data.schema.OneToOne",Ext.data.schema.Association,{isOneToOne:true,isToOne:true,kind:"one-to-one",Left:Ext.define(null,{extend:"Ext.data.schema.Role",onDrop:function(a,b){var c=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(c){c[this.inverse.getInstanceName()]=null}},onIdChanged:function(a,c,b){var e=this.getAssociatedItem(a),d=this.association.getFieldName();if(!a.session&&e&&d){e.set(d,b)}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var b=this.getInstanceName(),c=a[b],d=a.session;if(!c&&d){}return c||null},doSet:function(a,e){var b=this.getInstanceName(),d=a[b],c=this.inverse.setterName;if(d!==e){a[b]=e;if(c){e[c](a)}a.onAssociatedRecordSet(e,this)}return d},read:function(a,d,b,e){var c=this,g=c.callParent([a,d,b,e]),h;if(g){h=g[0];if(h){h[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=h;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:"Ext.data.schema.Role",left:false,side:"right",createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(g,d){var b=this,c=b.association.field,a=b.getAssociatedItem(g),e;if(b.inverse.owner){if(d){e=g.get(c.name);if(e||e===0){a=d.getEntry(b.cls,e).record;if(a){a.drop()}}}else{if(a){a.drop()}}}if(c){g.set(c.name,null)}g[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(i,h,g){var e=this,a=i[e.getOldInstanceName()]||e.getAssociatedItem(i),d=g||g===0,c=e.getInstanceName(),b=e.cls;i.changingKey=true;e.doSetFK(i,g);if(!d){i[c]=null}else{if(h&&b){i[c]=h.peekRecord(b,g)||undefined}}if(e.inverse.owner&&a){e.association.schema.queueKeyCheck(a,e)}i.changingKey=false},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(d,e,p,g){var j=this,n=j.callParent([d,e,p,g]),k,m,o,i,l,b,c,a,h;if(n){k=n[0];m=j.association.field;if(m){o=m.name}i=d.session;h=d.data;if(k){if(i){l=i.getRefs(k,this.inverse,true);a=(l&&l[d.id])||(h[o]===undefined)}else{a=true}if(a){if(m){c=h[o];b=k.id;if(c!==b){h[o]=b;if(i){i.updateReference(d,m,b,c)}}}k[j.inverse.getInstanceName()]=d;d[j.getInstanceName()]=k}delete h[j.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,"OneToOne"],0));(Ext.cmd.derive("Ext.data.schema.ManyToOne",Ext.data.schema.Association,{isManyToOne:true,isToOne:true,kind:"many-to-one",Left:Ext.define(null,{extend:"Ext.data.schema.Role",isMany:true,onDrop:function(h,e){var g=this,k=g.getAssociatedItem(h),b,d,c,j,a;if(k){b=k.removeAll();if(b&&g.inverse.owner){for(c=0,d=b.length;c<d;++c){b[c].drop()}}k.destroy();h[g.getStoreName()]=null}else{if(e){b=e.getRefs(h,g);if(b){for(a in b){b[a].drop()}}}}},onIdChanged:function(b,h,d){var j=this.association.getFieldName(),c=this.getAssociatedItem(b),g,e,a;if(c){c.getFilters().get(this.$roleFilterId).setValue(d);if(!b.session&&j){g=c.getDataSource().items;for(e=0,a=g.length;e<a;++e){g[e].set(j,d)}}}},processUpdate:function(g,b){var h=this,d=h.inverse.cls,e=b.R,a,i,j,c;if(e){for(a in e){i=g.peekRecord(d,a);if(i){c=g.getEntityList(h.cls,e[a]);j=h.getAssociatedItem(i);if(j){j.loadData(c);j.complete=true}else{i[h.getterName](null,null,c)}}else{g.onInvalidAssociationEntity(d,a)}}}},findRecords:function(j,k,d,o){var h=d,l=j.getRefs(k,this,true),m=this.association.field,n=m.name,c,b,e,g,a;if(l||o){h=[];if(d){a={};for(e=0,g=d.length;e<g;++e){c=d[e];b=c.id;if(l&&l[b]){h.push(c)}else{if(o&&c.data[n]===undefined){h.push(c);c.data[n]=k.id;j.updateReference(c,m,k.id,undefined)}}a[b]=true}}if(l){for(b in l){if(!a||!a[b]){h.push(l[b])}}}}return h},processLoad:function(b,a,e,d){var c=e;if(d){c=this.findRecords(d,a,e,true)}this.onLoadMany(a,c,d);return c},adoptAssociated:function(b,g){var c=this.getAssociatedItem(b),e,d,a;if(c){c.setSession(g);e=c.getData().items;for(d=0,a=e.length;d<a;++d){g.adopt(e[d])}}},createGetter:function(){var a=this;return function(b,c,d){return a.getAssociatedStore(this,b,c,d,true)}},createSetter:null,onAddToMany:function(a,b){this.syncFK(b,a.getAssociatedEntity(),false)},onLoadMany:function(l,e,k){var n=this.inverse.getInstanceName(),b=l.getId(),m=this.association.field,h,j,d,c,g,a;if(m){for(h=0,j=e.length;h<j;++h){d=e[h];d[n]=l;if(m){a=m.name;g=d.data;c=g[a];if(c!==b){g[a]=b;if(k){k.updateReference(d,m,b,c)}}}}}},onRemoveFromMany:function(a,b){this.syncFK(b,a.getAssociatedEntity(),true)},read:function(h,a,l,c){var g=this,k=g.inverse.getInstanceName(),b=g.callParent([h,a,l,c]),j,e,d;if(b){j=h[g.getterName](null,null,b);delete h.data[g.role];b=j.getData().items;for(d=0,e=b.length;d<e;++d){b[d][k]=h}}},syncFK:function(e,l,m){var k=this.association.getFieldName(),h=this.inverse,g=h.setterName,n=h.getInstanceName(),j=e.length,b=l.getId(),a,d,c;while(j-->0){d=e[j];a=!d.isEqual(b,d.get(k));c=m?null:l;if(a!==m){d.changingKey=true;d[g](c);d.changingKey=false}else{d[n]=c}}}}),Right:Ext.define(null,{extend:"Ext.data.schema.Role",left:false,side:"right",onDrop:function(c,b){var a=this.association.field;if(a){c.set(a.name,null)}c[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(c,d){var b=this.association.field,a;a=this.getSessionStore(c,d.get(b.name));if(a&&!a.contains(d)){a.add(d)}},onValueChange:function(d,h,b,a){var j=this,m=j.getInstanceName(),o=j.cls,c,n,l,e,k,g;if(!d.changingKey){c=b||b===0;if(!c){d[m]=null}if(h){l=j.getSessionStore(h,a);if(l){l.remove(d)}if(c){l=j.getSessionStore(h,b);if(l&&!l.isLoading()){l.add(d)}if(o){g=h.peekRecord(o,b)}d[m]=g||undefined}}else{n=d.joined;if(n){for(e=n.length-1;e>=0;e--){l=n[e];if(l.isStore){k=l.getAssociatedEntity();if(k&&k.self===j.cls&&k.getId()===a){l.remove(d)}}}}}}if(j.owner&&b===null){j.association.schema.queueKeyCheck(d,j)}},checkKeyForDrop:function(b){var a=this.association.field;if(b.get(a.name)===null){b.drop()}},getSessionStore:function(c,b){var a=this.cls,d;if(a){d=c.peekRecord(a,b);if(d){return this.inverse.getAssociatedItem(d)}}},read:function(g,c,b,e){var d=this.callParent([g,c,b,e]),a;if(d){a=d[0];if(a){g[this.getInstanceName()]=a;delete g.data[this.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,"ManyToOne"],0));(Ext.cmd.derive("Ext.data.schema.ManyToMany",Ext.data.schema.Association,{isManyToMany:true,isToMany:true,kind:"many-to-many",Left:Ext.define(null,{extend:"Ext.data.schema.Role",isMany:true,digitRe:/^\d+$/,findRecords:function(l,m,d){var n=l.getMatrixSlice(this.inverse,m.id),e=n.members,k=[],o=this.cls,a,h,j,b,g,c;if(d){a={};for(h=0,j=d.length;h<j;++h){c=d[h];b=c.id;g=e[b];if(!(g&&g[2]===-1)){k.push(c)}a[b]=true}}for(b in e){g=e[b];if(!a||!a[b]&&(g&&g[2]!==-1)){c=l.peekRecord(o,b);if(c){k.push(c)}}}return k},onIdChanged:function(a,d,c){var b=this.getAssociatedItem(a);if(b){b.getFilters().get(this.$roleFilterId).setValue(c)}},processLoad:function(b,a,e,d){var c=e;if(d){c=this.findRecords(d,a,e);this.onAddToMany(b,c,true)}return c},processUpdate:function(g,b){var h=this,d=h.inverse.cls,e=b.R,a,i,j,c;if(e){for(a in e){i=g.peekRecord(d,a);if(i){c=g.getEntityList(h.cls,e[a]);j=h.getAssociatedItem(i);if(j){j.loadData(c);j.complete=true}else{i[h.getterName](null,null,c)}}else{g.onInvalidAssociationEntity(d,a)}}}h.processMatrixBlock(g,b.C,1);h.processMatrixBlock(g,b.D,-1)},checkMembership:function(i,j){var k=i.getMatrix(this.association,true),h,d,e,m,n,a,c,g,b,l;if(!k){return}h=this.left?k.right:k.left;d=h.inverse.role.cls;e=this.inverse;n=h.slices;if(n){m=n[j.id];if(m){c=m.members;for(a in c){g=c[a];if(g[2]!==-1){b=i.peekRecord(d,a);if(b){l=e.getAssociatedItem(b);if(l){l.matrixUpdate=1;l.add(j);l.matrixUpdate=0}}}}}}},onStoreCreate:function(b,d,e){var c=this,a;if(d){a=d.getMatrixSlice(c.inverse,e);a.attach(b);a.notify=c.onMatrixUpdate;a.scope=c}},processMatrixBlock:function(e,d,c){var a=this.inverse,b=this.digitRe,g,h;if(d){for(h in d){if(b.test(h)){h=parseInt(h,10)}g=e.getMatrixSlice(a,h);g.update(d[h],c)}}},createGetter:function(){var a=this;return function(b,c,d){return a.getAssociatedStore(this,b,c,d,false)}},onAddToMany:function(a,c,b){if(!a.matrixUpdate){a.matrixUpdate=1;a.matrix.update(c,b===true?0:1);a.matrixUpdate=0}},onRemoveFromMany:function(b,a){if(!b.matrixUpdate){b.matrixUpdate=1;b.matrix.update(a,-1);b.matrixUpdate=0}},read:function(a,d,b,e){var c=this,g=c.callParent([a,d,b,e]);if(g){a[c.getterName](null,null,g);delete a.data[c.role]}},onMatrixUpdate:function(e,h,d){var a=e.store,b,g,c;if(a&&!a.loading&&!a.matrixUpdate){a.matrixUpdate=1;b=a.indexOfId(h);if(d<0){if(b>=0){a.remove([b])}}else{if(b<0){c=a.getSession().getEntry(this.type,h);g=c&&c.record;if(g){a.add(g)}}}a.matrixUpdate=0}},adoptAssociated:function(b,g){var d=this.getAssociatedItem(b),c,e,a;if(d){d.setSession(g);this.onStoreCreate(d,g,b.getId());c=d.getData().items;for(e=0,a=c.length;e<a;++e){g.adopt(c[e])}}}},function(){var a=this;Ext.ClassManager.onCreated(function(){Ext.data.schema.ManyToMany.prototype.Right=Ext.define(null,{extend:a,left:false,side:"right"})},null,"Ext.data.schema.ManyToMany")})},0,0,0,0,0,0,[Ext.data.schema,"ManyToMany"],0));(Ext.cmd.derive("Ext.util.Inflector",Ext.Base,{singleton:true,plurals:[[(/(quiz)$/i),"$1zes"],[(/^(ox)$/i),"$1en"],[(/([m|l])ouse$/i),"$1ice"],[(/(matr|vert|ind)ix|ex$/i),"$1ices"],[(/(x|ch|ss|sh)$/i),"$1es"],[(/([^aeiouy]|qu)y$/i),"$1ies"],[(/(hive)$/i),"$1s"],[(/(?:([^f])fe|([lr])f)$/i),"$1$2ves"],[(/sis$/i),"ses"],[(/([ti])um$/i),"$1a"],[(/(buffal|tomat|potat)o$/i),"$1oes"],[(/(bu)s$/i),"$1ses"],[(/(alias|status|sex)$/i),"$1es"],[(/(octop|vir)us$/i),"$1i"],[(/(ax|test)is$/i),"$1es"],[(/^(p)erson$/i),"$1eople"],[(/^(m)an$/i),"$1en"],[(/(.*)(child)(ren)?$/i),"$1$2ren"],[(/s$/i),"s"],[(/$/),"s"]],singulars:[[(/(address)$/i),"$1"],[(/(quiz)zes$/i),"$1"],[(/(matr)ices$/i),"$1ix"],[(/(vert|ind)ices$/i),"$1ex"],[(/^(ox)en/i),"$1"],[(/(alias|status)es$/i),"$1"],[(/(octop|vir)i$/i),"$1us"],[(/(cris|ax|test)es$/i),"$1is"],[(/(shoe)s$/i),"$1"],[(/(o)es$/i),"$1"],[(/(bus)es$/i),"$1"],[(/([m|l])ice$/i),"$1ouse"],[(/(x|ch|ss|sh)es$/i),"$1"],[(/(m)ovies$/i),"$1ovie"],[(/(s)eries$/i),"$1eries"],[(/([^aeiouy]|qu)ies$/i),"$1y"],[(/([lr])ves$/i),"$1f"],[(/(tive)s$/i),"$1"],[(/(hive)s$/i),"$1"],[(/([^f])ves$/i),"$1fe"],[(/(^analy)ses$/i),"$1sis"],[(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i),"$1$2sis"],[(/([ti])a$/i),"$1um"],[(/(n)ews$/i),"$1ews"],[(/(p)eople$/i),"$1erson"],[(/s$/i),""]],uncountable:["sheep","fish","series","species","money","rice","information","equipment","grass","mud","offspring","deer","means"],singular:function(b,a){this.singulars.unshift([b,a])},plural:function(b,a){this.plurals.unshift([b,a])},clearSingulars:function(){this.singulars=[]},clearPlurals:function(){this.plurals=[]},isTransnumeral:function(a){return Ext.Array.indexOf(this.uncountable,a)!=-1},pluralize:function(g){if(this.isTransnumeral(g)){return g}var e=this.plurals,d=e.length,a,c,b;for(b=0;b<d;b++){a=e[b];c=a[0];if(c==g||(c.test&&c.test(g))){return g.replace(c,a[1])}}return g},singularize:function(g){if(this.isTransnumeral(g)){return g}var e=this.singulars,d=e.length,a,c,b;for(b=0;b<d;b++){a=e[b];c=a[0];if(c==g||(c.test&&c.test(g))){return g.replace(c,a[1])}}return g},classify:function(a){return Ext.String.capitalize(this.singularize(a))},ordinalize:function(d){var b=parseInt(d,10),c=b%10,a=b%100;if(11<=a&&a<=13){return d+"th"}else{switch(c){case 1:return d+"st";case 2:return d+"nd";case 3:return d+"rd";default:return d+"th"}}}},0,0,0,0,0,0,[Ext.util,"Inflector"],function(){var b={alumnus:"alumni",cactus:"cacti",focus:"foci",nucleus:"nuclei",radius:"radii",stimulus:"stimuli",ellipsis:"ellipses",paralysis:"paralyses",oasis:"oases",appendix:"appendices",index:"indexes",beau:"beaux",bureau:"bureaux",tableau:"tableaux",woman:"women",child:"children",man:"men",corpus:"corpora",criterion:"criteria",curriculum:"curricula",genus:"genera",memorandum:"memoranda",phenomenon:"phenomena",foot:"feet",goose:"geese",tooth:"teeth",antenna:"antennae",formula:"formulae",nebula:"nebulae",vertebra:"vertebrae",vita:"vitae"},a;for(a in b){if(b.hasOwnProperty(a)){this.plural(a,b[a]);this.singular(b[a],a)}}}));(Ext.cmd.derive("Ext.data.schema.Namer",Ext.Base,{isNamer:true,capitalize:function(a){return Ext.String.capitalize(a)},fieldRole:function(b){var a=b.match(this.endsWithIdRe,"");if(a){b=b.substr(0,b.length-(a[1]||a[2]).length)}return this.apply("uncapitalize",b)},idField:function(a){return this.apply("uncapitalize,singularize",a)+"Id"},instanceName:function(a){return this.apply("underscore",a)},multiRole:function(a){return this.apply("undotted,uncapitalize,pluralize",a)},pluralize:function(a){return Ext.util.Inflector.pluralize(a)},readerRoot:function(a){return this.apply("uncapitalize",a)},singularize:function(a){return Ext.util.Inflector.singularize(a)},storeName:function(a){return this.apply("underscore",a)},uncapitalize:function(a){return Ext.String.uncapitalize(a)},underscore:function(a){return"_"+a},uniRole:function(a){return this.apply("undotted,uncapitalize,singularize",a)},undotted:function(b){if(b.indexOf(".")<0){return b}var c=b.split("."),a=c.length;while(a-->1){c[a]=this.apply("capitalize",c[a])}return c.join("")},getterName:function(b){var a=b.role;if(b&&b.isMany){return a}return"get"+this.apply("capitalize",a)},inverseFieldRole:function(h,i,e,b){var g=this,a=g.apply(i?"uniRole":"multiRole",h),d=g.apply("pluralize",e),c=g.apply("undotted,pluralize",b);if(d.toLowerCase()!==c.toLowerCase()){a=e+g.apply("capitalize",a)}return a},manyToMany:function(e,d,a){var c=this,b=c.apply("undotted,capitalize,singularize",d)+c.apply("undotted,capitalize,pluralize",a);if(e){b=c.apply("capitalize",e+b)}return b},manyToOne:function(d,b,a,c){return this.apply("capitalize,singularize",a)+this.apply("capitalize",b)},matrixRole:function(c,b){var a=this.apply(c?"multiRole,capitalize":"multiRole",b);return c?c+a:a},oneToOne:function(d,b,a,c){return this.apply("undotted,capitalize,singularize",a)+this.apply("capitalize",b)},setterName:function(a){return"set"+this.apply("capitalize",a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(e,c){var j=this,b=j.cache,k=b[c]||(b[c]={}),h=k[e],g,d,a;if(!h){if(e.indexOf(",")<0){h=j[e](c)}else{d=(a=e.split(",")).length;h=c;for(g=0;g<d;++g){h=j.apply(a[g],h)}}k[e]=h}return h}},0,0,0,0,["namer.default"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.schema,"Namer"],0));(Ext.cmd.derive("Ext.data.schema.Schema",Ext.Base,{aliasPrefix:"schema.",isSchema:true,type:"default",statics:{instances:{},get:function(d){var g=this,c=g.instances,h="default",b=d&&Ext.isString(d),a,e;if(d){if(d.isSchema){return d}h=b?d:(d.id||h)}if(!(a=c[h])){c[h]=a=g.create(d);a.id=h}else{if(d&&!b){e=Ext.merge({},a.config);Ext.merge(e,d);a.setConfig(e);a.config=e}}return a},lookupEntity:function(a){var d=null,g=this.instances,c,b,e;if(a){if(a.isEntity){d=a.self}else{if(Ext.isFunction(a)){d=a}else{if(Ext.isString(a)){d=Ext.ClassManager.get(a);if(d&&(!d.prototype||!d.prototype.isEntity)){d=null}if(!d){for(b in g){e=g[b];c=e.getEntity(a);if(c){if(d){Ext.Error.raise('Ambiguous entity name "'+a+'". Defined by schema "'+d.schema.type+'" and "'+b+'"')}d=c}}}if(!d){Ext.Error.raise('No such Entity "'+a+'".')}}}}}return d}},assocCount:0,entityCount:0,config:{defaultIdentifier:null,keyCheckDelay:10,namer:"default",namespace:null,proxy:{type:"ajax",url:"{prefix}/{entityName}"},urlPrefix:""},onClassExtended:function(a,c){var b=c.alias;if(b&&!c.type){if(!Ext.isString(b)){b=b[0]}a.prototype.type=b.substring(this.prototype.aliasPrefix.length)}},constructor:function(a){this.initConfig(a);this.clear()},applyDefaultIdentifier:function(a){return a&&Ext.Factory.dataIdentifier(a)},applyNamer:function(b){var a=Ext.data.schema.Namer.create(b);a.schema=this;return a},applyNamespace:function(b){if(b){var a=b.length-1;if(b.charAt(a)!=="."){b+="."}}return b},applyProxy:function(a){return Ext.util.ObjectTemplate.create(a)},eachAssociation:function(d,c){var b=this.associations,a;for(a in b){if(b.hasOwnProperty(a)){if(d.call(c,a,b[a])===false){break}}}},eachEntity:function(c,b){var d=this.entities,a;for(a in d){if(d.hasOwnProperty(a)){if(c.call(b,a,d[a].cls)===false){break}}}},getAssociation:function(a){var b=this.associations[a];return b||null},getEntity:function(a){var b=this.entityClasses[a]||this.entities[a];return(b&&b.cls)||null},getEntityName:function(a){var d=this.getNamespace(),c,b;if(typeof a==="string"){b=a}else{b=a.$className||null}if(b){if(d){c=d.length;if(b.substring(0,c)!==d){return b}}if(c){b=b.substring(c)}}return b},hasAssociations:function(a){a=a.entityName||a;return !!this.associationEntityMap[a]},hasEntity:function(a){var b=this.getEntityName(a);return !!(this.entities[b]||this.entityClasses[b])},addMatrix:function(n,h,d,c,r){var s=this,l=s.getNamer(),p=s.associations,a=s.entities,g=c.type,q=r.type,e=c.field||l.apply("idField",g),j=r.field||l.apply("idField",q),b=c.role||l.matrixRole(d,g),m=r.role||l.matrixRole(d,q),o,i,k;i=a[g]||(a[g]={cls:null,name:g,associations:{}});k=a[q]||(a[q]={cls:null,name:q,associations:{}});++s.assocCount;p[h]=o=new Ext.data.schema.ManyToMany({name:h,schema:s,definedBy:n,left:{cls:i.cls,type:g,role:b,field:e,associationKey:c.associationKey},right:{cls:k.cls,type:q,role:m,field:j,associationKey:r.associationKey}});i.associations[o.right.role]=o.right;k.associations[o.left.role]=o.left;if(i.cls){s.associationEntityMap[i.cls.entityName]=true}if(k.cls){s.associationEntityMap[k.cls.entityName]=true}s.decorateModel(o)},addReference:function(r,a,p,b){var u=this,n=u.getNamer(),d=u.entities,s=u.associations,m=r.entityName,e=p.association,q=!!p.legacy,j=p.child,l=p.parent,o=p.role,t=p.type||l||j,k=p.inverse,i=Ext.isString(k)?{role:k}:k,h=i&&i.role,c,g;if(!o){if(q){o=n.apply("uncapitalize",t)}else{o=n.apply("fieldRole",a.name)}}if(!h){h=n.inverseFieldRole(m,b,o,t)}if(!e){if(b){e=n.oneToOne(r,h,t,o)}else{e=n.manyToOne(r,h,t,o)}}c=d[t]||(d[t]={cls:null,name:t,associations:{}});g=b?Ext.data.schema.OneToOne:Ext.data.schema.ManyToOne;e=new g({name:e,owner:j?"left":(l?"right":null),definedBy:r,schema:u,field:a,nullable:a?!!a.allowBlank:true,legacy:p.legacy,left:{cls:r,type:m,role:h,extra:i},right:{cls:c.cls,type:t,role:o,extra:p}});r.associations[o]=e.right;c.associations[h]=e.left;if(a){a.reference=e.right;r.references.push(a)}++u.assocCount;u.associationEntityMap[m]=true;if(c.cls){u.associationEntityMap[c.cls.entityName]=true}s[e.name]=e;if(e.right.cls){u.decorateModel(e)}},privates:{addEntity:function(d){var j=this,h=j.entities,l=d.entityName,m=h[l],g=d.fields,c,k,e,b,a;if(!m){h[l]=m={name:l,associations:{}}}else{c=m.associations;for(a in c){c[a].inverse.cls=d;j.associationEntityMap[l]=true;j.decorateModel(c[a].association)}}m.cls=d;d.prototype.associations=d.associations=m.associations;j.entityClasses[d.$className]=m;++j.entityCount;for(e=0,b=g.length;e<b;++e){k=g[e];if(k.reference){j.addReferenceDescr(d,k)}}},addMatrices:function(g,a){var e=this,b,d,c;if(Ext.isString(a)){e.addMatrixDescr(g,null,a)}else{if(a[0]){for(b=0,d=a.length;b<d;++b){e.addMatrixDescr(g,null,a[b])}}else{for(c in a){e.addMatrixDescr(g,c,a[c])}}}},addMatrixDescr:function(e,a,g){var h=this,j=e.entityName,d=h.associations,i=h.getNamer(),c=g.left,l=g.right,k,b;if(Ext.isString(g)){if(g.charAt(0)==="#"){c={type:j};l={type:g.substring(1)}}else{if(g.charAt(k=g.length-1)==="#"){c={type:g.substring(0,k)};l={type:j}}else{if(i.apply("multiRole",j)<i.apply("multiRole",g)){c={type:j};l={type:g}}else{c={type:g};l={type:j}}}}}else{b=g.relation;if(c||(!l&&i.apply("multiRole",j)<i.apply("multiRole",g.type))){if(!c||c===true){c={type:j}}else{c=Ext.apply({type:j},c)}l=g}else{if(!l||l===true){l={type:j}}else{l=Ext.apply({type:j},l)}c=g}}if(!a){a=i.manyToMany(b,c.type,l.type)}if(!(a in d)){h.addMatrix(e,a,b,c,l)}},addReferenceDescr:function(b,d){var a=this,c=d.$reference;if(Ext.isString(c)){c={type:c}}else{c=Ext.apply({},c)}if(c.legacy){if(c.single){a.addLegacySingle(b,c)}else{a.addLegacyHasMany(b,c)}}else{a.addReference(b,d,c,d.unique)}},addPending:function(a,c,e,b){var d=this.pending;if(!d[a]){d[a]=[]}d[a].push([c,e,b])},addLegacyBelongsTo:function(a,b){this.addLegacySingle(a,b)},addLegacyHasOne:function(a,b){this.addLegacySingle(a,b)},addLegacySingle:function(c,e){var b,a,d;e=this.constructLegacyAssociation(c,e);e.single=true;a=e.type;b=e.foreignKey||(a.toLowerCase()+"_id");d=c.getField(b);if(d){d.$reference=e}this.addReference(c,d,e,true)},addLegacyHasMany:function(d,i){var j=this,e=j.entities,c=j.pending,a=i.associationKey,l,b,k,h,g;i=this.constructLegacyAssociation(d,i);b=i.type;h=e[b];if(h&&h.cls){i.type=d.entityName;g=i.foreignKey||(i.type.toLowerCase()+"_id");l=h.cls;k=l.getField(g);i.inverse=Ext.apply({},i);delete i.role;if(a){i.inverse.associationKey=a}if(k){k.$reference=i}j.addReference(l,k,i,false)}else{if(!c[b]){c[b]=[]}c[b].push([d,i])}},constructLegacyAssociation:function(b,c){if(Ext.isString(c)){c={model:c}}c.legacy=true;c.type=this.getEntityName(c.model);var a=c.associatedName||c.name;if(a){c.role=a}return c},afterLegacyAssociations:function(b){var g=this.pending,c=b.entityName,e=g[c],d,a;if(e){for(d=0,a=e.length;d<a;++d){this.addLegacyHasMany.apply(this,e[d])}delete g[c]}},clear:function(b){var a=this,c=a.timer;delete a.setConfig;if(c){window.clearTimeout(c);a.timer=null}a.associations={};a.associationEntityMap={};a.entities={};a.entityClasses={};a.pending={};a.assocCount=a.entityCount=0;if(b){a.setNamespace(null)}},constructProxy:function(d){var b=this,c=Ext.Object.chain(d),a=b.getProxy();c.schema=b;c.prefix=b.getUrlPrefix();return a.apply(c)},applyDecoration:function(h){var e=this,a=h.inverse.cls,g=e.getNamer(),c,b,d;if(a&&!h.decorated){h.decorated=true;d=a.prototype;if(!(c=h.getterName)){h.getterName=c=g.getterName(h)}d[c]=h.createGetter();if(h.createSetter){if(!(b=h.setterName)){h.setterName=b=g.setterName(h)}d[b]=h.createSetter()}}},decorateModel:function(a){this.applyDecoration(a.left);this.applyDecoration(a.right)},processKeyChecks:function(d){var g=this,b=g.keyCheckQueue,h=g.timer,a,c,e;if(h){window.clearTimeout(h);g.timer=null}if(!b){return}do{b=g.keyCheckQueue;g.keyCheckQueue=[];for(c=0,a=b.length;c<a;++c){e=b[c];e.role.checkKeyForDrop(e.record)}}while(d&&g.keyCheckQueue.length)},queueKeyCheck:function(a,e){var c=this,b=c.keyCheckQueue,d=c.timer;if(!b){c.keyCheckQueue=b=[]}b.push({record:a,role:e});if(!d){c.timer=d=Ext.Function.defer(c.processKeyChecks,c.getKeyCheckDelay(),c)}},rankEntities:function(){var e=this,g=e.entities,a=Ext.Object.getKeys(g),d=a.length,c,b;e.nextRank=1;a.sort();for(b=0;b<d;++b){c=g[a[b]].cls;if(!c.rank){e.rankEntity(c)}}},rankEntity:function(c){var b=c.associations,e,d,a;for(a in b){d=b[a];if(!d.left&&d.association.field){e=d.cls;if(!e.rank){this.rankEntity(e)}}}c.rank=this.nextRank++}}},1,0,0,0,["schema.default"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.schema,"Schema"],0));(Ext.cmd.derive("Ext.data.AbstractStore",Ext.Base,{factoryConfig:{defaultType:"store",type:"store"},$configPrefixed:false,$configStrict:false,config:{filters:null,autoDestroy:undefined,storeId:null,statefulFilters:false,sorters:null,remoteSort:{lazy:true,$value:false},remoteFilter:{lazy:true,$value:false},groupField:undefined,groupDir:"ASC",grouper:null,pageSize:25,autoSort:null},currentPage:1,loading:false,isDestroyed:false,isStore:true,updating:0,constructor:function(b){var c=this,a;c.isInitializing=true;c.mixins.observable.constructor.call(c,b);c.isInitializing=false;a=c.getStoreId();if(!a&&(b&&b.id)){c.setStoreId(a=b.id)}if(a){Ext.data.StoreManager.register(c)}},getCount:function(){return this.getData().getCount()},rangeCached:function(b,a){return this.getData().getCount()>=Math.max(b,a)},find:function(g,e,h,i,a,d){var c=!i,b=!!(c&&d);return this.getData().findIndex(g,e,h,c,b,!a)},findRecord:function(){var b=this,a=b.find.apply(b,arguments);return a!==-1?b.getAt(a):null},findExact:function(b,a,c){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(b),a)},this,c)},findBy:function(b,a,c){return this.getData().findIndexBy(b,a,c)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,c){var a=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(c&&c.callback){c.callback.call(c.scope||this,a,d,b,c)}return a},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==false){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(b,a){var c;if(!a){a=this.createFiltersCollection();c=true}a.add(b);if(c){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==false){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(b,a){var c;if(!a){a=this.createSortersCollection();c=true}a.add(b);if(c){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(b,c,a){if(Ext.isString(b)){b={property:b,value:c}}this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=false},removeFilter:function(a,d){var c=this,b=c.getFilters();c.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){b.remove(a)}else{b.removeByKey(a)}c.suppressNextFilter=false},updateAutoSort:function(a){this.getData().setAutoSort(a)},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(false),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(false),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=false},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(false);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=false},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(false);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(e){if(e.getTransform()){return}var d=e.getProperty(),c=this.getModel(),a,b;if(c){a=c.getField(d);b=a?a.getSortType():null}if(b&&b!==Ext.identityFn){e.setTransform(b)}},beginUpdate:function(){if(!this.updating++){this.fireEvent("beginupdate")}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent("endupdate");this.onEndUpdate()}},getState:function(){var e=this,g=[],d=e.getFilters(),b=e.getGrouper(),h,c,a;e.getSorters().each(function(i){g[g.length]=i.getState();c=true});if(e.statefulFilters&&e.saveStatefulFilters){c=true;h=[];d.each(function(i){h[h.length]=i.getState()})}if(b){c=true}if(c){a={};if(g.length){a.sorters=g}if(h){a.filters=h}if(b){a.grouper=b.getState()}}return a},applyState:function(e){var c=this,b=e.sorters,a=e.filters,d=e.grouper;if(b){c.getSorters().replaceAll(b)}if(a){c.saveStatefulFilters=true;c.getFilters().replaceAll(a)}if(d){c.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;a.clearListeners();if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.onDestroy();a.callParent()},sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.attemptLoad()}else{a.forceLocalSort()}}else{a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(a,b){if(b){this.fireEvent("beforesort",this,b.getRange())}},onSorterEndUpdate:function(){var a=this,b;b=a.getSorters(false);if(a.settingGroups||!b){return}b=b.getRange();if(b.length){if(a.getRemoteSort()){a.attemptLoad({callback:function(){a.fireEvent("sort",a,b)}})}else{a.fireEvent("datachanged",a);a.fireEvent("refresh",a);a.fireEvent("sort",a,b)}}else{a.fireEvent("sort",a,b)}},onFilterEndUpdate:function(){var b=this,a=b.suppressNextFilter;if(b.getRemoteFilter()){b.currentPage=1;if(!a){b.attemptLoad()}}else{if(!a){b.fireEvent("datachanged",b);b.fireEvent("refresh",b)}}if(b.trackStateChanges){b.saveStatefulFilters=true}b.fireEvent("filterchange",b,b.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else{this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(a,d){var b=this,c=b.getSorters(false),e=a||(c&&c.length);if(a&&typeof a==="string"){a={property:a,direction:d||b.getGroupDir()}}b.settingGroups=true;b.getData().setGrouper(a);delete b.settingGroups;if(e){if(b.getRemoteSort()){b.attemptLoad({scope:b,callback:b.fireGroupChange})}else{b.fireEvent("datachanged",b);b.fireEvent("refresh",b);b.fireGroupChange()}}else{b.fireGroupChange()}},fireGroupChange:function(){this.fireEvent("groupchange",this,this.getGrouper())},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b="";if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?"on":"un"]("endupdate",this.onFilterEndUpdate,this)}},onRemoteSortSet:function(b,c){var a=this;if(b){b[c?"on":"un"]("endupdate",a.onSorterEndUpdate,a);a.getData()[c?"un":"on"]("beforesort",a.onBeforeCollectionSort,a)}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data,"AbstractStore"],0));(Ext.cmd.derive("Ext.data.Error",Ext.Base,{isError:true,$configPrefixed:false,config:{field:null,message:""},constructor:function(a){this.initConfig(a);this.msg=this.message}},1,0,0,0,0,0,[Ext.data,"Error"],0));(Ext.cmd.derive("Ext.data.ErrorCollection",Ext.util.MixedCollection,{alternateClassName:"Ext.data.Errors",init:function(g){var k=this,h=g.fields,d=g.data,m,l,n,e,j,c,b,a;for(e=0,j=h.length;e<j;++e){l=h[e];a=l.name;b=d[a];if(l.validate&&!l.validate.$nullFn){m=k.length;c=l.validate(b,null,k,g);if(m===k.length&&c!==true){k.add(a,c)}}}return k},add:function(b,d){var c=this,a=Ext.data.field.Field.defaultInvalidMessage,g=b,e;if(Ext.isString(b)){g=new Ext.data.Error({field:b,message:d||a})}else{if(!(g.isError)){g=new Ext.data.Error({field:g.field||g.name,message:g.error||g.message||g.msg||a})}b=g.field}e=c.get(b);if(e){if(Ext.isArray(e)){e.push(g);return e}c.removeAtKey(b);g=[e,g];g.field=b;g=[g]}return Ext.util.MixedCollection.prototype.add.call(this,g)},getKey:function(a){return a.field},isValid:function(){return this.length===0},getByField:function(b){var a=this.get(b);if(a&&!Ext.isArray(a)){a=[a]}return a||[]}},0,0,0,0,0,0,[Ext.data,"ErrorCollection",Ext.data,"Errors"],0));(Ext.cmd.derive("Ext.data.operation.Operation",Ext.Base,{alternateClassName:"Ext.data.Operation",isOperation:true,config:{synchronous:false,url:"",params:undefined,callback:undefined,scope:undefined,resultSet:null,response:null,request:null,records:null,id:undefined,proxy:null,batch:null,recordCreator:null,internalCallback:null,internalScope:null},order:0,foreignKeyDirection:1,started:false,running:false,complete:false,success:undefined,exception:false,error:undefined,idPrefix:"ext-operation-",constructor:function(a){var b=a&&a.scope;this.initConfig(a);if(a){a.scope=b}if(b){this.setScope(b);this.initialConfig.scope=b}this._internalId=Ext.id(this,this.idPrefix)},getAction:function(){return this.action},execute:function(){var b=this,a;delete b.error;delete b.success;b.complete=b.exception=false;b.setStarted();b.request=a=b.doExecute();if(a){a.setOperation(b)}return a},doExecute:Ext.emptyFn,abort:function(){var b=this,a=b.request;if(b.running&&a){b.getProxy().abort(a);b.request=null}},process:function(b,d,a,e){var c=this;e=e!==false;c.setResponse(a);c.setResultSet(b);if(b.getSuccess()){c.doProcess(b,d,a);c.setSuccessful(e)}else{if(e){c.setException(b.getMessage())}}},_commitSetOptions:{convert:true,commit:true},doProcess:function(n,g,e){var l=this,d=l._commitSetOptions,a=l.getRecords(),c=a.length,o=a[0].clientIdProperty,p=n.getRecords(),k=p?p.length:0,m,j,b,h;if(k&&o){m=Ext.Array.toValueMap(a,"id");for(h=0;h<k;++h){j=p[h];b=m[j[o]];if(b){delete m[b.id];delete j[o];b.set(j,d)}}for(h in m){m[h].commit()}}else{for(h=0;h<c;++h){b=a[h];if(k===0||!(j=p[h])){b.commit()}else{b.set(j,d)}}}},setStarted:function(){this.started=this.running=true},setCompleted:function(){var b=this,a=b.getProxy();b.complete=true;b.running=false;b.triggerCallbacks();if(a){a.completeOperation(b)}},setSuccessful:function(a){this.success=true;if(a){this.setCompleted()}},setException:function(a){var b=this;b.exception=true;b.success=b.running=false;b.error=a;b.setCompleted()},triggerCallbacks:function(){var a=this,b=a.getInternalCallback();if(b){b.call(a.getInternalScope()||a,a);a.setInternalCallback(null);a.setInternalScope(null)}if(b=a.getCallback()){b.call(a.getScope()||a,a.getRecords(),a,a.wasSuccessful());a.setCallback(null);a.setScope(null)}},hasException:function(){return this.exception},getError:function(){return this.error},getRecords:function(){var a;return this._records||((a=this.getResultSet())?a.getRecords():null)},isStarted:function(){return this.started},isRunning:function(){return this.running},isComplete:function(){return this.complete},wasSuccessful:function(){return this.isComplete()&&this.success===true},allowWrite:function(){return true}},1,0,0,0,0,0,[Ext.data.operation,"Operation",Ext.data,"Operation"],0));(Ext.cmd.derive("Ext.data.operation.Create",Ext.data.operation.Operation,{action:"create",isCreateOperation:true,order:10,config:{recordCreator:Ext.identityFn},doExecute:function(){return this.getProxy().create(this)}},0,0,0,0,["data.operation.create"],0,[Ext.data.operation,"Create"],0));(Ext.cmd.derive("Ext.data.operation.Destroy",Ext.data.operation.Operation,{action:"destroy",isDestroyOperation:true,order:30,foreignKeyDirection:-1,doProcess:function(){var c=this.getRecords(),a=c.length,b;for(b=0;b<a;++b){c[b].setErased()}},doExecute:function(){return this.getProxy().erase(this)},getRecordData:function(a,c){var e={},d=a.idField,b=this.getNameProperty()||"name";e[d[b]]=a.id;return e}},0,0,0,0,["data.operation.destroy"],0,[Ext.data.operation,"Destroy"],0));(Ext.cmd.derive("Ext.data.operation.Read",Ext.data.operation.Operation,{action:"read",isReadOperation:true,config:{filters:undefined,sorters:undefined,grouper:undefined,start:undefined,limit:undefined,page:undefined,addRecords:false},doExecute:function(){return this.getProxy().read(this)},doProcess:Ext.emptyFn,allowWrite:function(){return false}},0,0,0,0,["data.operation.read"],0,[Ext.data.operation,"Read"],0));(Ext.cmd.derive("Ext.data.operation.Update",Ext.data.operation.Operation,{action:"update",isUpdateOperation:true,order:20,config:{recordCreator:Ext.identityFn},doExecute:function(){return this.getProxy().update(this)}},0,0,0,0,["data.operation.update"],0,[Ext.data.operation,"Update"],0));(Ext.cmd.derive("Ext.data.SortTypes",Ext.Base,{singleton:true,none:Ext.identityFn,stripCommasRe:/,/g,stripTagsRE:/<\/?[^>]+>/gi,asText:function(a){return(a!=null)?String(a).replace(this.stripTagsRe,""):"\x00"},asUCText:function(a){return(a!=null)?String(a).toUpperCase().replace(this.stripTagsRe,""):"\x00"},asUCString:function(a){return(a!=null)?String(a).toUpperCase():"\x00"},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(a){var b=parseFloat(String(a).replace(this.stripCommasRe,""));return isNaN(b)?0:b},asInt:function(a){var b=parseInt(String(a).replace(this.stripCommasRe,""),10);return isNaN(b)?0:b}},0,0,0,0,0,0,[Ext.data,"SortTypes"],0));(Ext.cmd.derive("Ext.data.validator.Validator",Ext.Base,{isValidator:true,type:"base",statics:{all:{},register:function(b,a){var c=this.all;c[b.toUpperCase()]=c[b.toLowerCase()]=c[b]=a.prototype}},onClassExtended:function(a,b){if(b.type){Ext.data.validator.Validator.register(b.type,a)}},constructor:function(a){if(typeof a==="function"){this.fnOnly=true;this.validate=a}else{this.initConfig(a)}},validate:function(){return true},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},1,0,0,0,["data.validator.base"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.validator,"Validator"],function(){this.register(this.prototype.type,this)}));(Ext.cmd.derive("Ext.data.field.Field",Ext.Base,{alternateClassName:"Ext.data.Field",aliasPrefix:"data.field.",type:"auto",factoryConfig:{defaultProperty:"name"},isDataField:true,isField:true,allowBlank:true,allowNull:false,critical:false,defaultInvalidMessage:"This field is invalid",defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,unique:false,rank:null,stripRe:/[\$,%]/g,calculated:false,evil:false,identifier:false,onClassExtended:function(c,e){var g=e.sortType,d=c.prototype,a=d.validators,b=e.validators;if(g&&Ext.isString(g)){d.sortType=Ext.data.SortTypes[g]}if(b){if(!Ext.isArray(b)){b=[b]}delete e.validators;if(a){b=a.concat(b)}d.validators=b}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var l=this,n=l.calculateRe,h,o,m,i,c,a,j,b,k,e,g;if(d){if(Ext.isString(d)){l.name=d}else{g=d.validators;if(g){delete d.validators;l.instanceValidators=g}Ext.apply(l,d)}}if(!l.allowNull){l.allowNull=!!l.reference}h=l.calculate;c=l.depends;if(h){l.convert=l.doCalculate;if(!c){if(!(c=h.$depends)){a={};k=h.toString();h.$depends=c=[];j=l.argumentNamesRe.exec(k);b=j?j[1]:"data";while((j=n.exec(k))){if(b===j[1]&&!a[e=j[2]]){a[e]=1;c.push(e)}}}l.depends=c}}m=l.defaultValue;if(l.convert){l.calculated=o=l.convert.length>1;l.evil=o&&!c}if(l.persist===null){l.persist=!h}i=l.sortType;if(!l.sortType){l.sortType=Ext.data.SortTypes.none}else{if(Ext.isString(i)){l.sortType=Ext.data.SortTypes[i]}}if(c&&typeof c==="string"){l.depends=[c]}l.cloneDefaultValue=m!==undefined&&(Ext.isDate(m)||Ext.isArray(m)||Ext.isObject(m))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},compileValidators:function(){var a=this;a._validators=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var e=a.length,c=this._validators,b,d;for(b=0;b<e;++b){d=a[b];if(d.fn){d=d.fn}c.push(Ext.Factory.dataValidator(d))}}},collate:function(c,b){var d=this,a=c,e=b;if(d.sortType){a=d.sortType(a);e=d.sortType(e)}return(a===e)?0:((a<e)?-1:1)},compare:function(b,a){return(b===a)?0:((b<a)?-1:1)},isEqual:function(b,a){return this.compare(b,a)===0},convert:null,serialize:null,validate:function(l,e,k,g){var j=this,h="",m,a,c,b,d;if(!j._validators){j.compileValidators()}c=j._validators;for(d=0,b=c.length;d<b;++d){a=c[d];m=a.validate(l,g);if(m!==true){m=m||j.defaultInvalidMessage;if(k){k.add(j.name,m);h=h||m}else{if(e){if(h){h+=e}h+=m}else{h=m;break}}}}return h||true},doCalculate:function(a,b){return b?this.calculate(b.data):a},getName:function(){return this.name},getAllowBlank:function(){return this.allowBlank},getAllowNull:function(){return this.allowNull},getConvert:function(){return this.convert},getDefaultValue:function(){return this.defaultValue},getDepends:function(){return this.depends},getMapping:function(){return this.mapping},hasMapping:function(){var a=this.mapping;return !!(a||a===0)},getPersist:function(){return this.persist},getSortType:function(){return this.sortType},getType:function(){return"auto"},deprecated:{5.1:{methods:{getSortDir:function(){return this.sortDir}}}}},1,0,0,0,["data.field.auto"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.field,"Field",Ext.data,"Field"],0));(Ext.cmd.derive("Ext.data.field.Boolean",Ext.data.field.Field,{isBooleanField:true,trueRe:/^\s*(?:true|yes|on|1)\s*$/i,convert:function(a){if(typeof a==="boolean"){return a}if(this.allowNull&&(a===undefined||a===null||a==="")){return null}return this.trueRe.test(String(a))},getType:function(){return"bool"}},0,0,0,0,["data.field.bool","data.field.boolean"],0,[Ext.data.field,"Boolean"],0));(Ext.cmd.derive("Ext.data.field.Date",Ext.data.field.Field,{sortType:"asDate",isDateField:true,dateFormat:null,dateReadFormat:null,dateWriteFormat:null,compare:function(b,e){var d=b instanceof Date,c=e instanceof Date,a;if(c&&d){a=b.getTime()-e.getTime();if(a===0){a=0}else{a=a<0?-1:1}}else{if(d===c){a=0}else{a=d?1:-1}}return a},convert:function(c){if(!c){return null}if(c instanceof Date){return c}var a=this.dateReadFormat||this.dateFormat,b;if(a){return Ext.Date.parse(c,a)}b=Date.parse(c);return b?new Date(b):null},serialize:function(b){var a=null,c;if(Ext.isDate(b)){c=this.getDateWriteFormat();a=c?Ext.Date.format(b,c):b}return a},getDateFormat:function(){return this.dateFormat},getDateReadFormat:function(){return this.dateReadFormat},getDateWriteFormat:function(){var a=this;if(a.hasOwnProperty("dateWriteFormat")){return a.dateWriteFormat}if(a.hasOwnProperty("dateFormat")){return a.dateFormat}return a.dateWriteFormat||a.dateFormat||"timestamp"},getType:function(){return"date"}},0,0,0,0,["data.field.date"],0,[Ext.data.field,"Date"],0));(Ext.cmd.derive("Ext.data.field.Integer",Ext.data.field.Field,{isNumeric:true,isIntegerField:true,numericType:"int",convert:function(b){if(typeof b==="number"){return this.getNumber(b)}var d=b===undefined||b===null||b==="",a=this.allowNull,c;if(d){c=a?null:0}else{c=this.parse(b);if(a&&isNaN(c)){c=null}}return c},getNumber:function(a){return parseInt(a,10)},getType:function(){return this.numericType},parse:function(a){return parseInt(String(a).replace(this.stripRe,""),10)},sortType:function(a){if(a==null){a=Infinity}return a}},0,0,0,0,["data.field.int","data.field.integer"],0,[Ext.data.field,"Integer"],0));(Ext.cmd.derive("Ext.data.field.Number",Ext.data.field.Integer,{isIntegerField:false,isNumberField:true,numericType:"float",getNumber:Ext.identityFn,parse:function(a){return parseFloat(String(a).replace(this.stripRe,""))}},0,0,0,0,["data.field.float","data.field.number"],0,[Ext.data.field,"Number"],0));(Ext.cmd.derive("Ext.data.field.String",Ext.data.field.Field,{sortType:"asUCString",isStringField:true,convert:function(b){var a=this.allowNull?null:"";return(b===undefined||b===null)?a:String(b)},getType:function(){return"string"}},0,0,0,0,["data.field.string"],0,[Ext.data.field,"String"],0));(Ext.cmd.derive("Ext.data.identifier.Generator",Ext.Base,{"abstract":true,factoryConfig:{defaultType:"sequential"},isGenerator:true,config:{id:null},constructor:function(a){var b=this,c;b.initConfig(a);c=b.getId();if(c){Ext.data.identifier.Generator.all[c]=b}},privates:{clone:function(b){var a=this.getInitialConfig();a=b?Ext.apply({},b,a):a;return new this.self(a)},statics:{all:{}}}},1,0,0,0,["data.identifier.default"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.identifier,"Generator"],function(){var c=this,a=Ext.Factory,b=a.dataIdentifier;a.dataIdentifier=function(d){var g=Ext.isString(d)?d:(d&&d.id),e=g&&c.all[g];return e||b(d)}}));(Ext.cmd.derive("Ext.data.identifier.Sequential",Ext.data.identifier.Generator,{config:{increment:1,prefix:null,seed:1},generate:function(){var b=this,a=b._seed,c=b._prefix;b._seed+=b._increment;return(c!==null)?c+a:a}},0,0,0,0,["data.identifier.sequential"],0,[Ext.data.identifier,"Sequential"],0));(Ext.cmd.derive("Ext.data.Model",Ext.Base,{alternateClassName:"Ext.data.Record",isEntity:true,isModel:true,validIdRe:null,erasing:false,observableType:"record",constructor:function(e,m){var n=this,q=n.self,l=q.identifier,c=Ext.data.Model,o=c.identifier,p=n.idField.name,k,a,b,j,h,d,g;n.data=n.data=e||(e={});n.session=m||null;n.internalId=j=o.generate();if((k=e) instanceof Array){n.data=e={};g=n.getFields();h=Math.min(g.length,k.length);for(d=0;d<h;++d){e[g[d].name]=k[d]}}if(!(b=q.initializeFn)){q.initializeFn=b=c.makeInitializeFn(q)}if(!b.$nullFn){q.initializeFn(n)}if(!(n.id=a=e[p])&&a!==0){if(m){l=m.getIdentifier(q);a=l.generate()}else{if(o===l){a=j}else{a=l.generate()}}e[p]=n.id=a;n.phantom=true}if(m){m.add(n)}if(n.init&&Ext.isFunction(n.init)){n.init()}},editing:false,dirty:false,session:null,dropped:false,erased:false,clientIdProperty:null,evented:false,phantom:false,idProperty:"id",manyToMany:null,identifier:null,previousValues:undefined,proxy:undefined,schema:"default",versionProperty:null,generation:1,validationSeparator:null,convertOnSet:true,beginEdit:function(){var c=this,b=c.modified,a=c.previousValues;if(!c.editing){c.editing=true;c.editMemento={dirty:c.dirty,data:Ext.apply({},c.data),generation:c.generation,modified:b&&Ext.apply({},b),previousValues:a&&Ext.apply({},a)}}},cancelEdit:function(){var b=this,a=b.editMemento;if(a){b.editing=false;Ext.apply(b,a);b.editMemento=null}},endEdit:function(b,d){var c=this,a=c.editMemento;if(a){c.editing=false;c.editMemento=null;c.previousValues=a.previousValues;if(!b){if(!d){d=c.getModifiedFieldNames(a.data)}if(c.dirty||(d&&d.length)){c.callJoined("afterEdit",[d])}}}},getField:function(a){return this.self.getField(a)},getFields:function(){return this.self.getFields()},getFieldsMap:function(){return this.fieldsMap},getIdProperty:function(){return this.idProperty},getId:function(){return this.id},getObservableId:function(){return this.internalId},setId:function(a){this.set(this.idProperty,a)},getPrevious:function(b){var a=this.previousValues;return a&&a[b]},isModified:function(b){var a=this.modified;return !!(a&&a.hasOwnProperty(b))},getModified:function(b){var a;if(this.isModified(b)){a=this.modified[b]}return a},get:function(a){return this.data[a]},_singleProp:{},_rejectOptions:{convert:false,silent:true},set:function(u,H,w){var n=this,c=n.self,L=n.data,q=n.modified,y=n.previousValues,A=n.session,z=Ext.isString(u),r=(z?w:H),C=r?r.convert!==false:n.convertOnSet,D=n.fieldsMap,e=r&&r.silent,m=r&&r.commit,E=!(r&&r.refs===false)&&A,s=!(r&&r.dirty===false&&!m),p=null,j=0,d=n.associations,h,g,b,o,l,x,v,k,J,K,G,B,I,a,F,M,t;if(z){M=n._singleProp;M[u]=H}else{M=u}if(!(I=c.rankedFields)){I=c.rankFields()}G=I.length;do{for(l in M){F=M[l];h=L[l];v=n;g=D[l];if(g){if(C&&g.convert){F=g.convert(F,n)}v=g;a=g.reference}else{a=null}if(v.isEqual(h,F)){continue}L[l]=F;(p||(p=[])).push(l);(y||(n.previousValues=y={}))[l]=h;if(a&&a.cls){if(E){A.updateReference(n,g,F,h)}a.onValueChange(n,A,F,h)}K=(J=g&&g.dependents)&&J.length;while(K-->0){(k=J[K]).dirty=true;j=j?Math.min(j,k.rank):k.rank}if(!g||g.persist){if(q&&q.hasOwnProperty(l)){if(!s||v.isEqual(q[l],F)){delete q[l];n.dirty=-1}}else{if(s){if(!q){n.modified=q={}}n.dirty=true;q[l]=h}}}if(l===n.idField.name){b=true;x=h;B=F}}if(!j){break}g=I[j-1];g.dirty=false;if(z){delete M[u]}else{M=n._singleProp;z=true}u=g.name;M[u]=L[u];C=true;for(;j<G;++j){if(I[j].dirty){break}}if(j<G){++j}else{j=0}}while(1);if(n.dirty<0){n.dirty=false;for(o in q){if(q.hasOwnProperty(o)){n.dirty=true;break}}}if(z){delete M[u]}++n.generation;if(b){n.id=B;n.callJoined("onIdChanged",[x,B]);if(d){for(t in d){d[t].onIdChanged(n,x,B)}}}if(m){n.commit(e,p)}else{if(!e&&!n.editing&&p){n.callJoined("afterEdit",[p])}}return p},reject:function(a){var c=this,b=c.modified;if(b){c.set(b,c._rejectOptions)}c.dropped=false;c.clearState();if(!a){c.callJoined("afterReject")}},commit:function(b,d){var c=this,g=c.versionProperty,e=c.data,a;c.clearState();if(g&&!c.phantom&&!isNaN(e[g])){++e[g]}c.phantom=false;if(c.dropped){c.erased=a=true}if(!b){if(a){c.callJoined("afterErase")}else{c.callJoined("afterCommit",[d])}}},clearState:function(){var a=this;a.dirty=a.editing=false;a.editMemento=a.modified=null},drop:function(b){var d=this,c=d.associations,e=d.session,a;if(d.erased||d.dropped){return}d.dropped=true;if(c&&b!==false){for(a in c){c[a].onDrop(d,e)}}d.callJoined("afterDrop");if(d.phantom){d.setErased()}},join:function(b){var a=this,c=a.joined;if(!c){c=a.joined=[b]}else{if(!c.length){c[0]=b}else{Ext.Array.include(c,b)}}if(b.isStore&&!a.store){a.store=b}},unjoin:function(e){var d=this,g=d.joined,a=g&&g.length,b=d.store,c;if(a===1&&g[0]===e){g.length=0}else{if(a){Ext.Array.remove(g,e)}}if(b===e){b=null;if(g){for(c=0,a=g.length;c<a;++c){e=g[c];if(e.isStore){b=e;break}}}d.store=b}},clone:function(d){var c=this,b=c.modified,a=c.copy(c.id,d);if(b){a.modified=Ext.apply({},b)}a.dirty=c.dirty;a.dropped=c.dropped;a.phantom=c.phantom;return a},copy:function(c,g){var d=this,e=Ext.apply({},d.data),b=d.idProperty,a=d.self;if(c||c===0){e[b]=c}else{if(c===null){delete e[b]}}return new a(e,g)},getProxy:function(){return this.self.getProxy()},getValidation:function(b){var c=this,a=c.validation;if(!a){c.validation=a=new Ext.data.Validation();a.attach(c)}if(b===true||(b!==false&&a.syncGeneration!==c.generation)){a.refresh(b)}return a},validate:function(){return new Ext.data.ErrorCollection().init(this)},isValid:function(){return this.getValidation().isValid()},toUrl:function(){var b=this.$className.split("."),a=b[b.length-1].toLowerCase();return a+"/"+this.getId()},erase:function(a){var b=this;b.erasing=true;b.drop();b.erasing=false;return b.save(a)},setErased:function(){this.erased=true;this.callJoined("afterErase")},getChanges:function(){return this.getData(this._getChangesOptions)},getCriticalFields:function(){var a=this.self,b=a.criticalFields;if(!b){a.rankFields();b=a.criticalFields}return b},getAssociatedData:function(r,q){var m=this,c=m.associations,o,h,p,l,d,b,k,g,e,a,j,n;r=r||{};m.$gathering=1;if(q){q=Ext.Object.chain(q)}for(e in c){g=c[e];p=g.getAssociatedItem(m);if(!p||p.$gathering){continue}if(p.isStore){p.$gathering=1;l=p.getData().items;b=l.length;d=[];for(h=0;h<b;++h){k=l[h];o=!k.$gathering;k.$gathering=1;if(q){n=q.associated;if(n===undefined){q.associated=o;j=true}else{if(!o){q.associated=false;j=true}}a=q}else{a=o?m._getAssociatedOptions:m._getNotAssociatedOptions}d.push(k.getData(a));if(j){q.associated=n;j=false}delete k.$gathering}delete p.$gathering}else{a=q||m._getAssociatedOptions;if(q&&q.associated===undefined){a.associated=true}d=p.getData(a)}r[e]=d}delete m.$gathering;return r},getData:function(s){var k=this,j={},a=(s===true)?k._getAssociatedOptions:(s||j),e=k.data,l=a.associated,p=a.changes,o=p&&a.critical,i=p?k.modified:e,h=k.fieldsMap,g=a.persist,r=a.serialize,c,m,d,b,q;if(i){for(b in i){q=e[b];m=h[b];if(m){if(g&&!m.persist){continue}if(r&&m.serialize){q=m.serialize(q,k)}}j[b]=q}}if(o){c=k.self.criticalFields||k.getCriticalFields();for(d=c.length;d-->0;){b=(m=c[d]).name;if(!(b in j)){q=e[b];if(r&&m.serialize){q=m.serialize(q,k)}j[b]=q}}}if(l){k.getAssociatedData(j,a)}return j},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(b){b=Ext.apply({},b);var g=this,e=b.scope||g,c=g.getProxy(),i=b.callback,a=g.loadOperation,h=g.getId(),d;if(a){d=a.extraCalls;if(!d){d=a.extraCalls=[]}d.push(b);return a}b.id=h;b.recordCreator=function(l,j,k){var m=g.session;if(k){k.recordCreator=m?m.recordCreator:null}g.set(l,g._commitOptions);return g};b.internalCallback=function(l){var p=l.wasSuccessful()&&l.getRecords().length>0,q=g.loadOperation,n=q.extraCalls,k=[g,l],o=[g,l,p],m,j;g.loadOperation=null;if(p){Ext.callback(b.success,e,k)}else{Ext.callback(b.failure,e,k)}Ext.callback(i,e,o);if(n){for(m=0,j=n.length;m<j;++m){b=n[m];if(p){Ext.callback(b.success,e,k)}else{Ext.callback(b.failure,e,k)}Ext.callback(b.callback,e,o)}}g.callJoined("afterLoad")};delete b.callback;g.loadOperation=a=c.createOperation("read",b);a.execute();return a},save:function(j){j=Ext.apply({},j);var g=this,d=g.phantom,a=g.dropped,c=a?"destroy":(d?"create":"update"),i=j.scope||g,h=j.callback,e=g.getProxy(),b;j.records=[g];j.internalCallback=function(k){var l=[g,k],m=k.wasSuccessful();if(m){Ext.callback(j.success,i,l)}else{Ext.callback(j.failure,i,l)}l.push(m);Ext.callback(h,i,l)};delete j.callback;b=e.createOperation(c,j);if(a&&d){b.setResultSet(Ext.data.reader.Reader.prototype.nullResultSet);g.setErased();b.setSuccessful(true)}else{b.execute()}return b},inheritableStatics:{addFields:function(a){this.replaceFields(a)},replaceFields:function(n,k){var o=this,e=o.prototype,j=Ext.data.field.Field,g=o.fields,m=o.fieldsMap,c=o.fieldOrdinals,p,d,b,h,a,l;if(k===true){g.length=0;o.fieldsMap=m={};o.fieldOrdinals=c={}}else{if(k){for(d=k.length;d-->0;){a=k[d];if(a in c){delete c[a];delete m[a]}}for(d=0,h=g.length;d<h;++d){a=(p=g[d]).name;if(a in c){c[a]=d}else{g.splice(d,1);--d;--h}}}}for(d=0,h=n?n.length:0;d<h;d++){a=(p=n[d]).name;if(!(a in c)){c[a]=l=g.length;g.push(p=j.create(p));m[a]=p;p.ordinal=l;p.definedBy=p.owner=this}}o.idField=e.idField=b=m[e.idProperty];b.allowNull=b.critical=b.identifier=true;b.defaultValue=null;o.initializeFn=o.rankedFields=o.transientFields=o.criticalFields=null},removeFields:function(a){this.replaceFields(null,a)},getIdFromData:function(c){var b=this,a=b.idField,d=a.calculated?(new b(c)).id:c[a.name];return d},createWithId:function(g,b,c){var e=b,a=this;if(g||g===0){e={};if(b){Ext.apply(e,b)}e[a.idField.name]=g}return new a(e,c)},getFields:function(){return this.fields},getFieldsMap:function(){return this.fieldsMap},getField:function(a){return this.fieldsMap[a]||null},getProxy:function(){var b=this,a=b.proxy,c;if(!a){a=b.proxyConfig;if(!a||!a.isProxy){if(typeof a==="string"){a={type:a}}c=b.schema.constructProxy(b);a=a?Ext.merge(c,a):c}a=b.setProxy(a)}return a},setProxy:function(b){var c=this,a;if(b){if(!b.isProxy){b=Ext.Factory.proxy(b)}else{a=b.getModel();if(a&&a!==c){b=b.clone()}}b.setModel(c)}return(c.prototype.proxy=c.proxy=b)},load:function(e,a,c){var b={},d;b[this.prototype.idProperty]=e;d=new this(b,c);d.load(a);return d}},deprecated:{5:{methods:{hasId:null,markDirty:null,setDirty:null,eachStore:function(g,d){var e=this,b=e.stores,a=b.length,c;for(c=0;c<a;++c){g.call(d,b[c])}},join:function(c){var b=this,a=b.stores,d=b.joined;if(!d){d=b.joined=[c]}else{d.push(c)}if(c.isStore){b.store=b.store||c;if(!a){a=b.stores=[]}a.push(c)}},unjoin:function(c){var b=this,a=b.stores,d=b.joined;if(d.length===1){d.length=0}else{Ext.Array.remove(d,c)}if(c.isStore){Ext.Array.remove(a,c);b.store=a[0]||null}}},properties:{persistenceProperty:null},inheritableStatics:{methods:{setFields:null}}}},privates:{_commitOptions:{commit:true},_getChangesOptions:{changes:true},_getAssociatedOptions:{associated:true},_getNotAssociatedOptions:{associated:false},copyFrom:function(j){var h=this,e=h.fields,m=e.length,b=[],k,c=0,g,d,n=h.idProperty,a,l;if(j){g=h.data;d=j.data;for(;c<m;c++){k=e[c];a=k.name;if(a!==n){l=d[a];if(l!==undefined&&!h.isEqual(g[a],l)){g[a]=l;b.push(a)}}}if(h.phantom&&!j.phantom){h.beginEdit();h.setId(j.getId());h.endEdit(true);h.commit(true)}}return b},callJoined:function(d,c){var g=this,j=g.joined,e=g.session,a,b,h,k;if(!j&&!e){return}if(c){c.unshift(g)}else{c=[g]}if(j){for(a=0,b=j.length;a<b;++a){k=j[a];if(k&&(h=k[d])){h.apply(k,c)}}}h=e&&e[d];if(h){h.apply(e,c)}},onAssociatedRecordSet:function(a,b){this.callJoined("afterAssociatedRecordSet",[a,b])},setSession:function(a){this.session=a;if(a){a.add(this)}},getModifiedFieldNames:function(a){var d=this,e=d.data,b=[],g=a||d.editMemento.data,c;for(c in e){if(e.hasOwnProperty(c)){if(!d.isEqual(e[c],g[c],c)){b.push(c)}}}return b},isEqual:function(a,d,c){var b;if(c){b=c.isField?c:this.fieldsMap[c];if(b){return b.isEqual(a,d)}}if(a instanceof Date&&d instanceof Date){return a.getTime()===d.getTime()}return a===d},statics:{EDIT:"edit",REJECT:"reject",COMMIT:"commit",rankFields:function(){var k=this,j=k.prototype,d=k.fields,b=d.length,g=[],a=[],e=[],l,h,c;k.rankedFields=j.rankedFields=g;k.criticalFields=j.criticalFields=a;k.transientFields=j.transientFields=e;for(c=0;c<b;++c){h=d[c];if(h.critical){a.push(h)}if(!h.persist){e.push(h)}if(h.evil){(l||(l=[])).push(h)}else{if(!h.depends){g.push(h);h.rank=g.length}}}for(c=0;c<b;++c){if(!(h=d[c]).rank&&!h.evil){k.topoAdd(h)}}if(l){for(c=0,b=l.length;c<b;++c){g.push(h=l[c]);h.rank=g.length}}return g},topoAdd:function(h){var b=this,g=h.depends,a=g?g.length:0,d=b.rankedFields,c,e;for(c=0;c<a;++c){e=b.fieldsMap[g[c]];(e.dependents||(e.dependents=[])).push(h);if(!e.rank){b.topoAdd(e)}}d.push(h);h.rank=d.length},initFields:function(w,b,p){var k=Ext.data.field.Field,d=w.fields,q=[],l={},g={},a=[],v=p.fields,m=w.versionProperty||p.versionProperty,n=b.idProperty,h,c,t,e,x,s,j,u,r,o;b.fields=p.fields=q;b.fieldOrdinals=p.fieldOrdinals=l;b.fieldsMap=p.fieldsMap=g;b.references=p.references=a;if(v){for(t=0,e=v.length;t<e;++t){q[t]=c=Ext.Object.chain(v[t]);c.dependents=null;c.owner=b;l[x=c.name]=t;g[x]=c;c.rank=null;if(c.generated){u=c;r=c.name}}}if(d){delete w.fields;for(t=0,e=d.length;t<e;++t){c=d[t];j=c.reference;if(j&&typeof j!=="string"){j=Ext.merge({},j)}c.$reference=j;c=k.create(d[t]);x=c.name;s=l[x];if(s===undefined){l[x]=s=q.length}g[x]=c;q[s]=c;c.definedBy=c.owner=b;c.ordinal=s;if(x===n){o=c}}}h=g[n];if(!h){if(u&&u.generated){s=u.ordinal}else{s=q.length}delete g[r];delete l[r];h=new k(n);q[s]=h;l[n]=s;g[n]=h;h.definedBy=b;h.ordinal=s;h.generated=true}else{if(o&&u&&u.generated){Ext.Array.remove(q,u);delete g[r];delete l[r];g[n]=o;for(t=0,e=q.length;t<e;++t){c=q[t];q.ordinal=t;l[c.name]=t}}}h.allowNull=h.critical=h.identifier=true;h.defaultValue=null;b.idField=p.idField=h;if(m){c=g[m];if(!c){s=q.length;c=new k({name:m,type:"int"});q[s]=c;l[m]=s;g[m]=c;c.definedBy=b;c.ordinal=s;c.generated=true}c.defaultValue=1;c.critical=true}},initValidators:function(h,p,k){var n=k.validators,e,m,c,l,g,d,j,b,a,o;if(n){e={};for(m in n){e[m]=Ext.Array.clone(n[m])}}l=h.validators||h.validations;if(l){delete h.validators;e=e||{};if(Ext.isArray(l)){c={};for(g=0,d=l.length;g<d;++g){o=l[g];b=o.field;if(!c[b]){c[b]=[]}o=o.fn||o;c[b].push(o)}l=c}for(b in l){j=l[b];if(!Ext.isArray(j)){j=[j]}a=e[b];if(e[b]){Ext.Array.push(a,j)}else{e[b]=j}}}if(e){for(b in e){m=p.getField(b);if(m){m.setModelValidators(e[b])}}}p.validators=k.validators=e},initAssociations:function(c,g,l){var b=g.associations,d=g.belongsTo,j=g.hasMany,m=g.hasOne,k=g.manyToMany,e,a,h;delete g.manyToMany;if(k){c.addMatrices(l,k)}delete g.associations;delete g.belongsTo;delete g.hasMany;delete g.hasOne;if(b){b=Ext.isArray(b)?b:[b];for(e=0,a=b.length;e<a;++e){h=b[e];switch(h.type){case"belongsTo":c.addLegacyBelongsTo(l,h);break;case"hasMany":c.addLegacyHasMany(l,h);break;case"hasOne":c.addLegacyHasOne(l,h);break}}}if(d){d=Ext.isArray(d)?d:[d];for(e=0,a=d.length;e<a;++e){c.addLegacyBelongsTo(l,d[e])}}if(j){j=Ext.isArray(j)?j:[j];for(e=0,a=j.length;e<a;++e){c.addLegacyHasMany(l,j[e])}}if(m){m=Ext.isArray(m)?m:[m];for(e=0,a=m.length;e<a;++e){c.addLegacyHasOne(l,m[e])}}c.afterLegacyAssociations(l)},initIdentifier:function(g,a,e){var b=g.identifier||g.idgen,d=e.identifier||a.schema._defaultIdentifier,c;if(b){delete g.identifier;delete g.idgen;b=Ext.Factory.dataIdentifier(b)}else{if(d){if(d.clone&&!d.getId()){b=d.clone()}else{if(d.isGenerator){b=d}else{b=Ext.Factory.dataIdentifier(d)}}}}a.identifier=e.identifier=b;if(!b){c=a.entityName;if(!c){c=Ext.id(null,"extModel")}a.identifier=Ext.Factory.dataIdentifier({type:"sequential",prefix:c+"-"})}},findValidator:function(c,d,b){var g=b.type||b,j=c[d],a,e,h;if(j){for(e=0,a=j.length;e<a;++e){h=j[e];if(h.type===g){return h}}}return null},makeInitializeFn:function(r){var a=["var "],j=["\nreturn function (e) {\n    var data = e.data, v;\n"],e=[],o=0,l,k,m,q,d,n,h,g,p,c,b;if(!(h=r.rankedFields)){h=r.rankFields()}for(c=0,b=h.length;c<b;++c){n=h[c];e[c]=g="f"+c;m=n.convert;if(c){a.push(",  \n    ")}a.push(g," = $fields["+c+"]");if((p=(n.defaultValue!==undefined))||m){q='data["'+n.name+'"]';++o;l=k="";if(n.cloneDefaultValue){l="Ext.clone(";k=")"}j.push("\n");if(m&&p){j.push("    v = ",q,";\n    if (v !== undefined) {\n        v = ",g,".convert(v, e);\n    }\n    if (v === undefined) {\n        v = ",l,g,".defaultValue",k,";\n    }\n    ",q," = v;")}else{if(m){j.push("    v = ",g,".convert(",q,",e);\n    if (v !== undefined) {\n        ",q," = v;\n    }\n")}else{if(p){j.push("    if (",q," === undefined) {\n        ",q," = ",l,g,".defaultValue",k,";\n    }\n")}}}}}if(!o){return Ext.emptyFn}a.push(";\n");a.push.apply(a,j);a.push("}");a=a.join("");d=new Function("$fields","Ext",a);return d(h,Ext)}}}},1,0,0,0,0,0,[Ext.data,"Model",Ext.data,"Record"],function(){var d=this,c=d.prototype,b=Ext.data.schema.Schema,a;d.proxyConfig=c.proxy;delete c.proxy;d.fields=[];d.fieldsMap=c.fieldsMap={};d.schema=c.schema=b.get(c.schema);c.idField=new Ext.data.field.Field(c.idProperty);d.identifier=new Ext.data.identifier.Sequential();d.onExtended(function(e,k){var j=e.prototype,m=k.schema,l=j.superclass.self,i,h,g;e.idProperty=k.idProperty||j.idProperty;if(m){delete k.schema;i=b.get(m)}else{if(!(i=j.schema)){i=a||(a=b.get("default"))}}e.rankFields=d.rankFields;e.topoAdd=d.topoAdd;j.schema=e.schema=i;if(!(h=k.entityName)){j.entityName=h=i.getEntityName(e)}e.entityName=h;e.fieldExtractors={};d.initIdentifier(k,e,j);d.initFields(k,e,j);d.initValidators(k,e,j);e.fields.items=e.fields;if(h){i.addEntity(e);d.initAssociations(i,k,e)}g=k.proxy;if(g){delete k.proxy}else{if(l!==d){g=l.proxyConfig||l.proxy}}e.proxyConfig=g})}));(Ext.cmd.derive("Ext.data.ResultSet",Ext.Base,{isResultSet:true,$configPrefixed:false,config:{loaded:true,count:null,total:null,success:false,records:null,message:null,metadata:null},constructor:function(a){this.initConfig(a)},getCount:function(){var b=(arguments.callee.$previous||Ext.Base.prototype.getCount).call(this),a;if(!b){a=this.getRecords();if(a){b=a.length}}return b}},1,0,0,0,0,0,[Ext.data,"ResultSet"],0));(Ext.cmd.derive("Ext.data.reader.Reader",Ext.Base,{alternateClassName:["Ext.data.Reader","Ext.data.DataReader"],factoryConfig:{defaultType:null},config:{totalProperty:"total",successProperty:"success",rootProperty:"",messageProperty:"",typeProperty:"",implicitIncludes:true,readRecordsOnFailure:true,model:null,proxy:null,transform:null,keepRawData:true},isReader:true,constructor:function(a){if(a&&a.hasOwnProperty("root")){a=Ext.apply({},a);a.rootProperty=a.root;delete a.root}var b=this;b.duringInit=1;b.mixins.observable.constructor.call(b,a);--b.duringInit;b.buildExtractors()},applyModel:function(a){return Ext.data.schema.Schema.lookupEntity(a)},applyTransform:function(a){if(a){if(Ext.isFunction(a)){a={fn:a}}return a.fn.bind(a.scope||this)}return a},forceBuildExtractors:function(){if(!this.duringInit){this.buildExtractors(true)}},updateTotalProperty:function(){this.forceBuildExtractors()},updateMessageProperty:function(){this.forceBuildExtractors()},updateSuccessProperty:function(){this.forceBuildExtractors()},read:function(b,e){var d,a,c;if(b){c=b.responseText;if(c){a=this.getResponseData(b);if(a&&a.__$isError){return new Ext.data.ResultSet({total:0,count:0,records:[],success:false,message:a.msg})}else{d=this.readRecords(a,e)}}else{if(c!==""){d=this.readRecords(b,e)}}}return d||this.nullResultSet},getNullResultSet:function(){return this.nullResultSet},createReadError:function(a){return{__$isError:true,msg:a}},readRecords:function(e,c,h){var i=this,g=h&&h.recordsOnly,m=h&&h.asRoot,n,d,b,k,j,l,p,a,o;o=i.getMeta?i.getMeta(e):e.metaData;if(o){i.onMetaChange(o)}a=i.getTransform();if(a){e=a(e)}i.buildExtractors();if(i.getKeepRawData()){i.rawData=e}if(i.hasListeners.rawdata){i.fireEventArgs("rawdata",[e])}e=i.getData(e);n=true;d=0;b=[];if(i.getSuccessProperty()){l=i.getSuccess(e);if(l===false||l==="false"){n=false}}if(i.getMessageProperty()){p=i.getMessage(e)}if(n||i.getReadRecordsOnFailure()){k=(m||Ext.isArray(e))?e:i.getRoot(e);if(k){j=k.length}if(i.getTotalProperty()){l=parseInt(i.getTotal(e),10);if(!isNaN(l)){j=l}}if(k){b=i.extractData(k,c);d=b.length}}return g?b:new Ext.data.ResultSet({total:j||d,metadata:o,count:d,records:b,success:n,message:p})},extractData:function(p,g){var n=this,h=g&&g.model?Ext.data.schema.Schema.lookupEntity(g.model):n.getModel(),d=h.schema,q=d.hasAssociations(h)&&n.getImplicitIncludes(),o=n.getFieldExtractorInfo(h.fieldExtractors),a=p.length,c=new Array(a),l=n.getTypeProperty(),m,b,e,k,j;if(!a&&Ext.isObject(p)){p=[p];a=1}for(j=0;j<a;j++){k=p[j];if(!k.isModel){b=k;if(l&&(e=n.getChildType(d,b,l))){m=e.getProxy().getReader();k=m.extractRecord(b,g,e,d.hasAssociations(e)&&m.getImplicitIncludes(),m.getFieldExtractorInfo(e.fieldExtractors))}else{k=n.extractRecord(b,g,h,q,o)}if(k.isModel&&k.isNode){k.raw=b}}if(k.onLoad){k.onLoad()}c[j]=k}return c},getChildType:function(b,c,d){var a;switch(typeof d){case"string":return b.getEntity(c[d]);case"object":a=d.namespace;return b.getEntity((a?a+".":"")+c[d.name]);case"function":return b.getEntity(d(c))}},extractRecordData:function(c,d){var b=d&&d.model?Ext.data.schema.Schema.lookupEntity(d.model):this.getModel(),a=this.getFieldExtractorInfo(b.fieldExtractors);return this.extractRecord(c,d,b,false,a)},extractRecord:function(a,b,c,j,h){var g=this,e=(b&&b.recordCreator)||g.defaultRecordCreator,i,d;i=g.extractModelData(a,h);d=e.call(g,i,c||g.getModel(),b);if(j&&d.isModel){g.readAssociated(d,a,b)}return d},getFieldExtractorInfo:function(c){if(!c){return}var a=this.$className,b=c[a];if(b===undefined){c[a]=b=this.buildFieldExtractors()}return b},buildFieldExtractors:function(){var h=this.getFields(),j=h.length,e=[],l=[],d=null,b=0,k,a,g,c;for(g=0;g<j;++g){k=h[g];c=this.createFieldAccessor(k);if(c){a=k.name;e.push("val = extractors["+b+"](raw); if (val !== undefined) { data['"+a+"'] = val; }");l.push(c);++b}}if(e.length){d={extractors:l,fn:new Function("raw","data","extractors","var val;"+e.join(""))}}return d},defaultRecordCreator:function(b,c){var a=new c(b);a.phantom=false;return a},getModelData:function(a){return{}},extractModelData:function(b,a){var d=this.getModelData(b),c;if(a){c=a.fn;c(b,d,a.extractors)}return d},readAssociated:function(a,e,d){var c=a.associations,b,g;for(b in c){if(c.hasOwnProperty(b)){g=c[b];if(g.cls){g.read(a,e,this,d)}}}},getFields:function(){return this.getModel().fields},getData:Ext.identityFn,getRoot:Ext.identityFn,getResponseData:function(a){},onMetaChange:function(h){var g=this,b=h.fields,c,e,a,d;g.metaData=h;if(h.root){g.setRootProperty(h.root)}if(h.totalProperty){g.setTotalProperty(h.totalProperty)}if(h.successProperty){g.setSuccessProperty(h.successProperty)}if(h.messageProperty){g.setMessageProperty(h.messageProperty)}a=h.clientIdProperty;if(b){e=Ext.define(null,{extend:"Ext.data.Model",fields:b,clientIdProperty:a});g.setModel(e);d=g.getProxy();if(d){d.setModel(e)}}else{if(a){c=g.getModel();if(c){c.self.prototype.clientIdProperty=a}}}},buildExtractors:function(d){var b=this,c,a,e;if(d||!b.hasExtractors){c=b.getTotalProperty();a=b.getSuccessProperty();e=b.getMessageProperty();if(c){b.getTotal=b.getAccessor(c)}if(a){b.getSuccess=b.getAccessor(a)}if(e){b.getMessage=b.getAccessor(e)}b.hasExtractors=true;return true}},getAccessor:function(e){var d=this,a=d.extractorCache,b,c;if(typeof e==="string"){c=d.getAccessorKey(e);b=a.get(c);if(!b){b=d.createAccessor(e);a.add(c,b)}}else{b=d.createAccessor(e)}return b},getAccessorKey:function(a){return this.$className+a},createAccessor:Ext.emptyFn,createFieldAccessor:Ext.emptyFn,destroy:function(){var a=this;a.model=a.getTotal=a.getSuccess=a.getMessage=a.rawData=null},privates:{copyFrom:function(a){var b=this;a.buildExtractors();b.getTotal=a.getTotal;b.getSuccess=a.getSuccess;b.getMessage=a.getMessage;++b.duringInit;b.setConfig(a.getConfig());--b.duringInit;b.hasExtractors=true}}},1,0,0,0,["reader.base"],[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.reader,"Reader",Ext.data,"Reader",Ext.data,"DataReader"],function(b){var a=b.prototype;Ext.apply(a,{nullResultSet:new Ext.data.ResultSet({total:0,count:0,records:[],success:true,message:""})});a.extractorCache=new Ext.util.LruCache()}));(Ext.cmd.derive("Ext.data.writer.Writer",Ext.Base,{factoryConfig:{defaultType:null},alternateClassName:["Ext.data.DataWriter","Ext.data.Writer"],config:{clientIdProperty:null,allDataOptions:{persist:true},partialDataOptions:{changes:true,critical:true},writeAllFields:false,dateFormat:null,nameProperty:"name",writeRecordId:true,transform:null},isWriter:true,constructor:function(a){this.initConfig(a)},applyTransform:function(a){if(a){if(Ext.isFunction(a)){a={fn:a}}return a.fn.bind(a.scope||this)}return a},write:function(e){var c=e.getOperation(),b=c.getRecords()||[],a=b.length,g=[],d;for(d=0;d<a;d++){g.push(this.getRecordData(b[d],c))}return this.writeRecords(e,g)},writeRecords:Ext.emptyFn,getRecordData:function(j,h){var m=this,e=m.getNameProperty(),a=e!=="name",c=j.self.idField,q=c[e]||c.name,p=j.id,d=m.getWriteAllFields(),l,b,g,r,o,k,i,n;if(c.serialize){p=c.serialize(p)}if(!d&&h&&h.isDestroyOperation){l={};l[q]=p}else{b=m.getDateFormat();g=j.phantom;r=(g||d)?m.getAllDataOptions():m.getPartialDataOptions();o=g&&m.getClientIdProperty();k=j.getFieldsMap();r.serialize=false;i=j.getData(r);l=a?{}:i;if(o){l[o]=p;delete i[q]}else{if(!m.getWriteRecordId()){delete i[q]}}for(q in i){p=i[q];if(!(n=k[q])){if(a){l[q]=p}}else{if(n.isDateField&&b&&Ext.isDate(p)){p=Ext.Date.format(p,b)}else{if(n.serialize){p=n.serialize(p,j)}}if(a){q=n[e]||q}l[q]=p}}}return l}},1,0,0,0,["writer.base"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.writer,"Writer",Ext.data,"DataWriter",Ext.data,"Writer"],0));(Ext.cmd.derive("Ext.data.proxy.Proxy",Ext.Base,{$configPrefixed:false,alternateClassName:["Ext.data.DataProxy","Ext.data.Proxy"],config:{batchOrder:"create,update,destroy",batchActions:true,model:undefined,reader:{type:"json"},writer:{type:"json"}},isProxy:true,isSynchronous:false,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.pendingOperations={}},applyModel:function(a){return Ext.data.schema.Schema.lookupEntity(a)},updateModel:function(b){if(b){var a=this.getReader();if(a){a.setModel(b)}}},applyReader:function(a){return Ext.Factory.reader(a)},updateReader:function(a){if(a){var c=this,b=c.getModel();if(!b){b=a.getModel();if(b){c.setModel(b)}}else{a.setModel(b)}}},applyWriter:function(b){var a=this.getReader();b=Ext.Factory.writer(b);if(b.getRecord&&!b.getRecord()&&a&&a.getRecord){a=a.getRecord();if(a){b.setRecord(a)}}return b},abort:Ext.emptyFn,onMetaChange:function(a){this.fireEvent("metachange",this,a)},create:Ext.emptyFn,read:Ext.emptyFn,update:Ext.emptyFn,erase:Ext.emptyFn,batch:function(o,l){var k=this,j=k.getBatchActions(),h,c,g,d,e,m,b,n,i;if(o.operations===undefined){o={operations:o,listeners:l}}if(o.batch){if(Ext.isDefined(o.batch.runOperation)){h=Ext.applyIf(o.batch,{proxy:k,listeners:{}})}}else{o.batch={proxy:k,listeners:o.listeners||{}}}if(!h){h=new Ext.data.Batch(o.batch)}h.on("complete",Ext.bind(k.onBatchComplete,k,[o],0));g=k.getBatchOrder().split(",");d=g.length;for(m=0;m<d;m++){e=g[m];c=o.operations[e];if(c){if(j){h.add(k.createOperation(e,{records:c,params:o.params}))}else{n=c.length;for(b=0;b<n;b++){i=c[b];h.add(k.createOperation(e,{records:[i],params:o.params}))}}}}h.start();return h},onBatchComplete:function(a,b){var c=a.scope||this;if(b.hasException()){if(Ext.isFunction(a.failure)){Ext.callback(a.failure,c,[b,a])}}else{if(Ext.isFunction(a.success)){Ext.callback(a.success,c,[b,a])}}if(Ext.isFunction(a.callback)){Ext.callback(a.callback,c,[b,a])}},createOperation:function(c,b){var a=Ext.createByAlias("data.operation."+c,b);a.setProxy(this);this.pendingOperations[a._internalId]=a;return a},completeOperation:function(a){delete this.pendingOperations[a._internalId]},clone:function(){return new this.self(this.getInitialConfig())},destroy:function(){var b=this.pendingOperations,a,c;for(a in b){c=b[a];if(c&&c.isRunning()){c.abort()}}this.pendingOperations=null;this.callParent()}},1,0,0,0,["proxy.proxy"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.data.proxy,"Proxy",Ext.data,"DataProxy",Ext.data,"Proxy"],0));(Ext.cmd.derive("Ext.data.proxy.Client",Ext.data.proxy.Proxy,{alternateClassName:"Ext.data.ClientProxy",isSynchronous:true,clear:function(){}},0,0,0,0,0,0,[Ext.data.proxy,"Client",Ext.data,"ClientProxy"],0));(Ext.cmd.derive("Ext.data.proxy.Memory",Ext.data.proxy.Client,{alternateClassName:"Ext.data.MemoryProxy",isMemoryProxy:true,config:{enablePaging:false,data:{$value:null,merge:function(d,a,c,b){if(Ext.isArray(d)){return Ext.Array.clone(d)}else{return Ext.clone(d)}}}},finishOperation:function(b){var c=0,d=b.getRecords(),a=d.length;for(c;c<a;c++){d[c].commit()}b.setSuccessful(true)},create:function(a){this.finishOperation(a)},update:function(a){this.finishOperation(a)},erase:function(a){this.finishOperation(a)},read:function(g){var i=this,j=i.getReader().read(i.getData()),d=j.getRecords(),h=g.getSorters(),a=g.getGrouper(),c=g.getFilters(),b=g.getStart(),e=g.getLimit(),k;if(g.process(j,null,null,false)!==false){if(c&&c.length){j.setRecords(d=Ext.Array.filter(d,Ext.util.Filter.createFilterFn(c)));j.setTotal(d.length)}if(a){h=h?h.concat(a):h}if(h&&h.length){j.setRecords(d=Ext.Array.sort(d,Ext.util.Sortable.createComparator(h)))}if(i.getEnablePaging()&&b!==undefined&&e!==undefined){if(b>=j.getTotal()){j.setConfig({success:false,records:[],total:0})}else{j.setRecords(Ext.Array.slice(d,b,b+e))}}g.setCompleted();if(k=j.getMetadata()){i.onMetaChange(k)}}},clear:Ext.emptyFn},0,0,0,0,["proxy.memory"],0,[Ext.data.proxy,"Memory",Ext.data,"MemoryProxy"],0));(Ext.cmd.derive("Ext.data.ProxyStore",Ext.data.AbstractStore,{config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:false,batchUpdateMode:"operation",sortOnLoad:true,trackRemoved:true,autoLoadDelay:1},onClassExtended:function(b,d,a){var c=d.model,e;if(typeof c==="string"){e=a.onBeforeCreated;a.onBeforeCreated=function(){var h=this,g=arguments;Ext.require(c,function(){e.apply(h,g)})}}},implicitModel:false,implicitModelSuperCls:"Ext.data.Model",blockLoadCounter:0,loadsWhileBlocked:0,autoSyncSuspended:0,constructor:function(a){var b=this;b.removed=[];b.blockLoad();Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);b.unblockLoad()},updateAutoLoad:function(b){var c=this,a;c.getData();if(b){a=c.loadTask||(c.loadTask=new Ext.util.DelayedTask(null,null,null,null,false));a.delay(c.autoLoadDelay,c.attemptLoad,c,Ext.isObject(b)?[b]:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){var d=this,b,c;if(a){d.implicitModel=true;d.setModel(b=Ext.define(null,{extend:d.implicitModelSuperCls,fields:a,proxy:(c=d.getProxy())}));if(c){c.setModel(b)}}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else{if(!this.destroying){this.getFields();a=this.getModel()}}return a},applyProxy:function(b){var a=this.getModel();if(b!==null){if(b){if(b.isProxy){b.setModel(a)}else{if(Ext.isString(b)){b={type:b,model:a}}else{if(!b.model){b=Ext.apply({model:a},b)}}b=Ext.createByAlias("proxy."+b.type,b);b.autoCreated=true}}else{if(a){b=a.getProxy()}}if(!b){b=Ext.createByAlias("proxy.memory");b.autoCreated=true}}return b},applyState:function(c){var b=this,a=b.getAutoLoad()||b.isLoaded();b.blockLoad();Ext.data.AbstractStore.prototype.applyState.call(this,c);b.unblockLoad(a)},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(a,b){this.fireEvent("metachange",this,b)},create:function(e,c){var d=this,g=d.getModel(),a=new g(e),b;c=Ext.apply({},c);if(!c.records){c.records=[a]}c.internalScope=d;c.internalCallback=d.onProxyWrite;b=d.createOperation("create",c);return b.execute()},read:function(){return this.load.apply(this,arguments)},update:function(b){var c=this,a;b=Ext.apply({},b);if(!b.records){b.records=c.getUpdatedRecords()}b.internalScope=c;b.internalCallback=c.onProxyWrite;a=c.createOperation("update",b);return a.execute()},onProxyWrite:function(b){var c=this,d=b.wasSuccessful(),a=b.getRecords();switch(b.getAction()){case"create":c.onCreateRecords(a,b,d);break;case"update":c.onUpdateRecords(a,b,d);break;case"destroy":c.onDestroyRecords(a,b,d);break}if(d){c.fireEvent("write",c,b);c.fireEvent("datachanged",c)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(b,a,c){if(c){this.cleanRemoved()}},erase:function(b){var c=this,a;b=Ext.apply({},b);if(!b.records){b.records=c.getRemovedRecords()}b.internalScope=c;b.internalCallback=c.onProxyWrite;a=c.createOperation("destroy",b);return a.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(c,a){var g=this,b=c.operations,e=b.length,d;if(g.batchUpdateMode!=="operation"){g.suspendEvents();for(d=0;d<e;d++){g.onProxyWrite(b[d])}g.resumeEvents()}g.isSyncing=false;g.fireEvent("datachanged",g)},onBatchException:function(b,a){},filterNew:function(a){return a.phantom===true&&a.isValid()},getNewRecords:function(){return[]},getUpdatedRecords:function(){return[]},getModifiedRecords:function(){return[].concat(this.getNewRecords(),this.getUpdatedRecords())},filterUpdated:function(a){return a.dirty===true&&a.phantom!==true&&a.isValid()},getRemovedRecords:function(){var a=this.getRawRemovedRecords();return a?Ext.Array.clone(a):[]},sync:function(c){var e=this,b={},g=e.getNewRecords(),d=e.getUpdatedRecords(),a=e.getRemovedRecords(),h=false;e.needsSync=false;if(g.length>0){b.create=g;h=true}if(d.length>0){b.update=d;h=true}if(a.length>0){b.destroy=a;h=true}if(h&&e.fireEvent("beforesync",b)!==false){e.isSyncing=true;c=c||{};e.proxy.batch(Ext.apply(c,{operations:b,listeners:e.getBatchListeners()}))}return e},getBatchListeners:function(){var b=this,a={scope:b,exception:b.onBatchException,complete:b.onBatchComplete};if(b.batchUpdateMode==="operation"){a.operationcomplete=b.onBatchOperationComplete}return a},save:function(){return this.sync.apply(this,arguments)},load:function(b){if(this.isLoadBlocked()){return}var d=this,a={internalScope:d,internalCallback:d.onProxyLoad},c,e;if(d.getRemoteFilter()){c=d.getFilters(false);if(c&&c.getCount()){a.filters=c.getRange()}}if(d.getRemoteSort()){e=d.getSorters(false);if(e&&e.getCount()){a.sorters=e.getRange()}d.fireEvent("beforesort",d,a.sorters)}Ext.apply(a,b);a.scope=a.scope||d;d.lastOptions=a;a=d.createOperation("read",a);if(d.fireEvent("beforeload",d,a)!==false){d.onBeforeLoad(a);d.loading=true;d.clearLoadTask();a.execute()}return d},reload:function(a){return this.load(Ext.apply({},a,this.lastOptions))},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(a){var b=this;if(b.contains(a)){b.onUpdate(a,Ext.data.Model.REJECT,null);b.fireEvent("update",b,a,Ext.data.Model.REJECT,null)}},afterCommit:function(a,c){var b=this;if(!c){c=null}if(b.contains(a)){b.onUpdate(a,Ext.data.Model.COMMIT,c);b.fireEvent("update",b,a,Ext.data.Model.COMMIT,c)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var b=this,a=b.getProxy();b.destroying=true;b.blockLoad();b.clearData();b.setProxy(null);if(a.autoCreated){a.destroy()}b.setModel(null);b.destroying=false},hasPendingLoad:function(){return !!this.loadTask||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},attemptLoad:function(a){if(this.isLoadBlocked()){++this.loadsWhileBlocked;return}this.load(a)},blockLoad:function(a){++this.blockLoadCounter},clearLoadTask:function(){var a=this.loadTask;if(a){a.cancel();this.loadTask=null}},cleanRemoved:function(){var c=this.getRawRemovedRecords(),a,b;if(c){for(b=0,a=c.length;b<a;++b){c[b].unjoin(this)}c.length=0}},createOperation:function(d,a){var e=this,b=e.getProxy(),c;if(!e.proxyListeners){c={scope:e,destroyable:true,beginprocessresponse:e.beginUpdate,endprocessresponse:e.endUpdate};if(!e.disableMetaChangeEvent){c.metachange=e.onMetaChange}e.proxyListeners=b.on(c)}return b.createOperation(d,a)},isLoadBlocked:function(){return !!this.blockLoadCounter},loadsSynchronously:function(){return this.getProxy().isSynchronous},onBeforeLoad:Ext.privateFn,removeFromRemoved:function(a){var b=this.getRawRemovedRecords();if(b){Ext.Array.remove(b,a);a.unjoin(this)}},unblockLoad:function(a){var c=this,b=c.loadsWhileBlocked;--c.blockLoadCounter;if(!c.blockLoadCounter){c.loadsWhileBlocked=0;if(a&&b){c.load()}}}}},1,0,0,0,0,0,[Ext.data,"ProxyStore"],0));(Ext.cmd.derive("Ext.data.LocalStore",Ext.Mixin,{mixinConfig:{id:"localstore"},config:{extraKeys:null},applyExtraKeys:function(a){var c,b=this.getData();b.setExtraKeys(a);a=b.getExtraKeys();for(c in a){this[c]=a[c]}},add:function(a){return this.insert(this.getCount(),arguments.length===1?a:arguments)},constructDataCollection:function(){return new Ext.util.Collection({rootProperty:"data"})},createModel:function(a){var b=this.getSession(),c;if(!a.isModel){c=this.getModel();a=new c(a,b)}return a},createFiltersCollection:function(){return this.getData().getFilters()},createSortersCollection:function(){var a=this.getData().getSorters();a.setSorterConfigure(this.addFieldTransform,this);return a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionSort:function(){this.onSorterEndUpdate()},onCollectionFilter:function(){this.onFilterEndUpdate()},notifySorterChange:function(){this.getData().onSorterChange()},forceLocalSort:function(){this.getData().onSortChange()},contains:function(a){return this.indexOf(a)>-1},each:function(e,d,h){var g=this.getData(),a,b,c;if(typeof h==="object"){h=h.filtered}if(h===true&&g.filtered){g=g.getSource()}g=g.items.slice(0);a=g.length;for(c=0;c<a;++c){b=g[c];if(e.call(d||b,b,c,a)===false){break}}},collect:function(b,a,e){var c=this,d=c.getData();if(typeof a==="object"){e=a.filtered;a=a.allowNull}if(e===true&&d.filtered){d=d.getSource()}return d.collect(b,"data",a)},getById:function(b){var a=this.getData();if(a.filtered){a=a.getSource()}return a.get(b)||null},getByInternalId:function(a){var c=this.getData(),b;if(c.filtered){if(!c.$hasExtraKeys){b=this.makeInternalKeyCfg();c.setExtraKeys(b);c.$hasExtraKeys=true}c=c.getSource()}if(!c.$hasExtraKeys){c.setExtraKeys(b||this.makeInternalKeyCfg());c.$hasExtraKeys=true}return c.byInternalId.get(a)||null},getDataSource:function(){var a=this.getData();return a.getSource()||a},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},insert:function(c,b){var e=this,a,d;if(b){if(!Ext.isIterable(b)){b=[b]}else{b=Ext.Array.clone(b)}a=b.length}if(!a){return[]}for(d=0;d<a;++d){b[d]=e.createModel(b[d])}e.getData().insert(c,b);return b},queryBy:function(b,a){var c=this.getData();return(c.getSource()||c).createFiltered(b,a)},query:function(e,d,g,a,b){var c=this.getData();return(c.getSource()||c).createFiltered(e,d,g,a,b)},first:function(a){return this.getData().first(a)||null},last:function(a){return this.getData().last(a)||null},sum:function(c,a){var b=this.getData();return(a&&this.isGrouped())?b.sumByGroup(c):b.sum(c)},count:function(a){var b=this.getData();return(a&&this.isGrouped())?b.countByGroup():b.count()},min:function(c,a){var b=this.getData();return(a&&this.isGrouped())?b.minByGroup(c):b.min(c)},max:function(c,a){var b=this.getData();return(a&&this.isGrouped())?b.maxByGroup(c):b.max(c)},average:function(c,a){var b=this.getData();return(a&&this.isGrouped())?b.averageByGroup(c):b.average(c)},aggregate:function(h,l,e,j){var g=this,a,d,b,k,c;if(e&&g.isGrouped()){a=g.getGroups().items;d=a.length;b={};for(c=0;c<d;++c){k=a[c];b[k.getGroupKey()]=g.getAggregate(h,l||g,k.items,j)}return b}else{return g.getAggregate(h,l,g.getData().items,j)}},getAggregate:function(g,e,c,h){var b=[],a=c.length,d;for(d=0;d<a;++d){b[d]=c[d].get(h)}return g.call(e||this,c,b)},addObserver:function(a){var b=this.observers;if(!b){this.observers=b=new Ext.util.Collection()}b.add(a)},removeObserver:function(a){var b=this.observers;if(b){b.remove(a)}},callObservers:function(h,d){var j=this.observers,a,c,e,b,g;if(j){c=j.items;if(d){d.unshift(this)}else{d=[this]}for(e=0,a=c.length;e<a;++e){g=c[e];b="onSource"+h;if(g[b]){g[b].apply(g,d)}}}},queryRecordsBy:function(e,d){var h=this.getData(),g=[],a,c,b;h=(h.getSource()||h).items;d=d||this;for(c=0,a=h.length;c<a;++c){b=h[c];if(e.call(d,b)===true){g.push(b)}}return g},queryRecords:function(h,g){var e=this.getData(),d=[],a,c,b;e=(e.getSource()||e).items;for(c=0,a=e.length;c<a;++c){b=e[c];if(b.get(h)===g){d.push(b)}}return d},privates:{isLast:function(a){return a===this.last()},makeInternalKeyCfg:function(){return{byInternalId:{property:"internalId",rootProperty:""}}}}},0,0,0,0,0,0,[Ext.data,"LocalStore"],0));(Ext.cmd.derive("Ext.data.proxy.Server",Ext.data.proxy.Proxy,{alternateClassName:"Ext.data.ServerProxy",isRemote:true,config:{url:"",pageParam:"page",startParam:"start",limitParam:"limit",groupParam:"group",groupDirectionParam:"groupDir",sortParam:"sort",filterParam:"filter",directionParam:"dir",idParam:"id",simpleSortMode:false,simpleGroupMode:false,noCache:true,cacheString:"_dc",timeout:30000,api:{create:undefined,read:undefined,update:undefined,destroy:undefined},extraParams:{}},create:function(){return this.doRequest.apply(this,arguments)},read:function(){return this.doRequest.apply(this,arguments)},update:function(){return this.doRequest.apply(this,arguments)},erase:function(){return this.doRequest.apply(this,arguments)},setExtraParam:function(a,b){this.getExtraParams()[a]=b},buildRequest:function(a){var g=this,b=Ext.apply({},a.getParams()),h=Ext.applyIf(b,g.getExtraParams()||{}),e,d,c;Ext.applyIf(h,g.getParams(a));d=a.getId();c=g.getIdParam();if(d!==undefined&&h[c]===undefined){h[c]=d}e=new Ext.data.Request({params:h,action:a.getAction(),records:a.getRecords(),url:a.getUrl(),operation:a,proxy:g});e.setUrl(g.buildUrl(e));a.setRequest(e);return e},processResponse:function(i,b,d,c){var g=this,a,e,h,j;g.fireEvent("beginprocessresponse",g,c,b);if(i===true){e=g.getReader();if(c.status===204){h=e.getNullResultSet()}else{h=e.read(g.extractResponseData(c),{recordCreator:b.getRecordCreator()})}b.process(h,d,c);a=!b.wasSuccessful()}else{g.setException(b,c);a=true}if(a){g.fireEvent("exception",g,c,b)}else{j=h.getMetadata();if(j){g.onMetaChange(j)}}g.afterRequest(d,i);g.fireEvent("endprocessresponse",g,c,b)},setException:function(b,a){b.setException({status:a.status,statusText:a.statusText,response:a})},extractResponseData:Ext.identityFn,applyEncoding:function(a){return Ext.encode(a)},encodeSorters:function(e,c){var a=[],d=e.length,b;for(b=0;b<d;b++){a[b]=e[b].serialize()}return this.applyEncoding(c?a[0]:a)},encodeFilters:function(e){var a=[],d=e.length,b,c;for(b=0;b<d;b++){c=e[b];c.getFilterFn();if(c.generatedFilterFn){a.push(c.serialize())}}return this.applyEncoding(a)},getParams:function(p){if(!p.isReadOperation){return{}}var v=this,u={},s=p.getGrouper(),a=p.getSorters(),n=p.getFilters(),i=p.getPage(),h=p.getStart(),t=p.getLimit(),l=v.getSimpleSortMode(),d=v.getSimpleGroupMode(),r=v.getPageParam(),e=v.getStartParam(),b=v.getLimitParam(),c=v.getGroupParam(),m=v.getGroupDirectionParam(),g=v.getSortParam(),q=v.getFilterParam(),o=v.getDirectionParam(),k,j;if(r&&i){u[r]=i}if(e&&(h||h===0)){u[e]=h}if(b&&t){u[b]=t}k=c&&s;if(k){if(d){u[c]=s.getProperty();u[m]=s.getDirection()}else{u[c]=v.encodeSorters([s],true)}}if(g&&a&&a.length>0){if(l){j=0;if(a.length>1&&k){j=1}u[g]=a[j].getProperty();u[o]=a[j].getDirection()}else{u[g]=v.encodeSorters(a)}}if(q&&n&&n.length>0){u[q]=v.encodeFilters(n)}return u},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format("{0}={1}",b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(b){var a;if(b){a=b.getUrl()||this.getApi()[b.getAction()]}return a?a:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},0,0,0,0,["proxy.server"],0,[Ext.data.proxy,"Server",Ext.data,"ServerProxy"],0));(Ext.cmd.derive("Ext.data.proxy.Ajax",Ext.data.proxy.Server,{alternateClassName:["Ext.data.HttpProxy","Ext.data.AjaxProxy"],defaultActionMethods:{create:"POST",read:"GET",update:"POST",destroy:"POST"},config:{binary:false,headers:undefined,paramsAsJson:false,withCredentials:false,useDefaultXhrHeader:true,username:null,password:null,actionMethods:{create:"POST",read:"GET",update:"POST",destroy:"POST"}},doRequest:function(a){var d=this,e=d.getWriter(),c=d.buildRequest(a),h=d.getMethod(c),b,g;if(e&&a.allowWrite()){c=e.write(c)}c.setConfig({binary:d.getBinary(),headers:d.getHeaders(),timeout:d.getTimeout(),scope:d,callback:d.createRequestCallback(c,a),method:h,useDefaultXhrHeader:d.getUseDefaultXhrHeader(),disableCaching:false});if(h.toUpperCase()!=="GET"&&d.getParamsAsJson()){g=c.getParams();if(g){b=c.getJsonData();if(b){b=Ext.Object.merge({},b,g)}else{b=g}c.setJsonData(b);c.setParams(undefined)}}if(d.getWithCredentials()){c.setWithCredentials(true);c.setUsername(d.getUsername());c.setPassword(d.getPassword())}return d.sendRequest(c)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(a){var c=this.getActionMethods(),b=a.getAction(),d;if(c){d=c[b]}return d||this.defaultActionMethods[b]},createRequestCallback:function(c,a){var b=this;return function(e,g,d){if(c===b.lastRequest){b.lastRequest=null}b.processResponse(g,a,c,d)}},destroy:function(){this.lastRequest=null;Ext.data.proxy.Server.prototype.destroy.call(this)}},0,0,0,0,["proxy.ajax"],0,[Ext.data.proxy,"Ajax",Ext.data,"HttpProxy",Ext.data,"AjaxProxy"],0));(Ext.cmd.derive("Ext.data.reader.Json",Ext.data.reader.Reader,{alternateClassName:"Ext.data.JsonReader",config:{record:null,metaProperty:"metaData",useSimpleAccessors:false,preserveRawData:false},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},getResponseData:function(a){var b;try{return Ext.decode(a.responseText)}catch(c){b=this.createReadError(c.message);Ext.Logger.warn("Unable to parse the JSON returned by the server");this.fireEvent("exception",this,a,b);return b}},buildExtractors:function(){var c=this,a,b;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){a=c.getMetaProperty();b=c.getRootProperty();if(b){c.getRoot=c.getAccessor(b)}else{c.getRoot=Ext.identityFn}if(a){c.getMeta=c.getAccessor(a)}}},extractData:function(a,e){var g=this.getRecord(),d=[],c,b;if(g){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b<c;b++){d[b]=a[b][g]}}else{d=a}return Ext.data.reader.Reader.prototype.extractData.call(this,d,e)},getModelData:function(a){return this.getPreserveRawData()?Ext.apply({},a):a},createAccessor:(function(){var a=/[\[\.]/;return function(r){var n=this,b=n.getUseSimpleAccessors(),e,u,k,g,d,q,t,p,o,l,m,h,s,j;if(!(r||r===0)){return}if(typeof r==="function"){return r}if(!b){e=String(r).search(a)}if(b===true||e<0){u=function(c){return c[r]}}else{k="raw";g=[];d="";q=0;j=r.length;for(h=0;h<=j;++h){m=r[h];t=m===".";p=m==="[";o=m==="]";l=t||p||o||!m;if(!l||q>1||(q&&!o)){d+=m}else{if(l){s=false;if(p){++q}else{if(o){--q;s=true}}if(d){if(s){d="["+d+"]"}else{d="."+d}k+=d;g.push(""+k);d=""}}}}u=g.join(" && ");u=Ext.functionFactory("raw","return "+u)}return u}}()),createFieldAccessor:function(e){var b=this,a=e.mapping,c=a||a===0,d=c?a:e.name;if(c){if(typeof d==="function"){return function(g){return e.mapping(g,b)}}else{return b.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?"simple":"";return this.$className+a+b},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot}}},0,0,0,0,["reader.json"],0,[Ext.data.reader,"Json",Ext.data,"JsonReader"],0));(Ext.cmd.derive("Ext.data.writer.Json",Ext.data.writer.Writer,{alternateClassName:"Ext.data.JsonWriter",config:{rootProperty:undefined,encode:false,allowSingle:true,expandData:false},getExpandedData:function(d){var b=d.length,e=0,k,a,g,c,h,l=function(i,j){var m={};m[i]=j;return m};for(;e<b;e++){k=d[e];for(a in k){if(k.hasOwnProperty(a)){g=a.split(".");c=g.length-1;if(c>0){h=k[a];for(;c>0;c--){h=l(g[c],h)}k[g[0]]=k[g[0]]||{};Ext.Object.merge(k[g[0]],h);delete k[a]}}}}return d},writeRecords:function(e,g){var d=this,a=d.getRootProperty(),c,h,b;if(d.getExpandData()){g=d.getExpandedData(g)}if(d.getAllowSingle()&&g.length===1){g=g[0];h=true}b=this.getTransform();if(b){g=b(g,e)}if(d.getEncode()){if(a){e.setParam(a,Ext.encode(g))}else{}}else{if(h||(g&&g.length)){c=e.getJsonData()||{};if(a){c[a]=g}else{c=g}e.setJsonData(c)}}return e}},0,0,0,0,["writer.json"],0,[Ext.data.writer,"Json",Ext.data,"JsonWriter"],0));(Ext.cmd.derive("Ext.util.Group",Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001,manageSorters:false},0,0,0,0,0,0,[Ext.util,"Group"],0));(Ext.cmd.derive("Ext.util.SorterCollection",Ext.util.Collection,{isSorterCollection:true,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(a){var b=this;b.sortFn=Ext.util.Sorter.createComparator(b);Ext.util.Collection.prototype.constructor.call(this,a);b.setDecoder(b.decodeSorter)},addSort:function(j,i,c){var h=this,d,e,b,l,a,k,g;if(!j){h.beginUpdate();h.endUpdate()}else{l=h.getOptions();if(j instanceof Array){g=j;c=i;i=null}else{if(Ext.isString(j)){if(!(k=h.get(j))){g=[{property:j,direction:i||l.getDefaultSortDirection()}]}else{g=[k]}}else{if(Ext.isFunction(j)){g=[{sorterFn:j,direction:i||l.getDefaultSortDirection()}]}else{g=[j];c=i;i=null}}}c=h._sortModes[c||"replace"];a=h.getAt(0);d=h.length;e=c.append?d:0;h.beginUpdate();h.splice(e,c.replace?d:0,g);if(c.multi){d=h.length;b=l.getMultiSortLimit();if(d>b){h.removeAt(b,d)}}if(k&&i){k.setDirection(i)}else{if(e===0&&a&&a===h.getAt(0)){a.toggle()}}h.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(e){var b=this.items,a=b.length,c,d;for(c=0;c<a;++c){d=b[c];if(d.getProperty()===e){return d}}return null},_sortModes:{append:{append:1},multi:{multi:1},prepend:{prepend:1},replace:{replace:1}},decodeSorter:function(i,a){var g=this,j=g.getOptions(),h=j.getRootProperty(),b=g.getSorterOptionsFn(),c,e,d;if(i.isSorter){if(!i.getRoot()){i.setRoot(h)}}else{e={direction:j.getDefaultSortDirection(),root:h};d=typeof i;if(d==="string"){c=g.get(i);if(c){return c}e.property=i}else{if(d==="function"){e.sorterFn=i}else{e=Ext.apply(e,i);if(e.fn){e.sorterFn=e.fn;delete e.fn}}}i=Ext.create(a||"Ext.util.Sorter",e)}if(b){b.call(g.getSorterOptionsScope()||g,i)}return i},setSorterConfigure:function(b,a){this.setSorterOptionsFn(b);this.setSorterOptionsScope(a)},decodeRemoveItems:function(h,d){var k=this,e=(d===undefined)?h:h[d];if(!e||!e.$cloned){if(h.length>d+1||!Ext.isIterable(e)){e=Ext.Array.slice(h,d)}var l=k.items,g=e.length,c=[],b,m,a,o,j;for(b=0;b<g;b++){o=e[b];if(o&&o.isSorter){c.push(o)}else{j=typeof o;if(j==="string"){o=k.get(o);if(o){c.push(o)}}else{if(j==="function"){for(a=l.length;a-->0;){m=l[a];if(m.getSorterFn()===o){c.push(m)}}}}}}e=c;e.$cloned=true}return e},getOptions:function(){return this.$sortable||this}},1,0,0,0,0,0,[Ext.util,"SorterCollection"],0));(Ext.cmd.derive("Ext.util.FilterCollection",Ext.util.Collection,{isFilterCollection:true,$filterable:null,filterFn:null,constructor:function(a){var b=this;b.filterFn=Ext.util.Filter.createFilterFn(b);Ext.util.Collection.prototype.constructor.call(this,a);b.setDecoder(b.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},decodeFilter:function(c){var b=this.getOptions(),a=b.getRootProperty(),d;if(c.isFilter){if(!c.getRoot()){c.setRoot(a)}}else{d={root:a};if(Ext.isFunction(c)){d.filterFn=c}else{d=Ext.apply(d,c);if(d.fn){d.filterFn=d.fn;delete d.fn}if(Ext.util.Filter.isInvalid(d)){return false}}c=new Ext.util.Filter(d)}return c},decodeRemoveItems:function(p,k){var r=this,l=(k===undefined)?p:p[k];if(!l.$cloned){if(p.length>k+1||!Ext.isIterable(l)){l=Ext.Array.slice(p,k)}var e=r.items,o=l.length,h=[],b,g,c,m,a,s,j,d,q;for(g=0;g<o;g++){b=l[g];if(b&&b.isFilter){h.push(b)}else{q=typeof b;c=q==="function";m=b.property!==undefined&&b.value!==undefined;a=q==="string";for(d=e.length;d-->0;){s=e[d];j=false;if(a){j=s.getProperty()===b}else{if(c){j=s.getFilterFn()===b}else{if(m){j=s.getProperty()===b.property&&s.getValue()===b.value}}}if(j){h.push(s)}}}}l=h;l.$cloned=true}return l},getOptions:function(){return this.$filterable||this}},1,0,0,0,0,0,[Ext.util,"FilterCollection"],0));(Ext.cmd.derive("Ext.util.GroupCollection",Ext.util.Collection,{isGroupCollection:true,config:{grouper:null,itemRoot:null},observerPriority:-100,constructor:function(a){Ext.util.Collection.prototype.constructor.call(this,a);this.on("remove","onGroupRemove",this)},onCollectionAdd:function(b,a){this.addItemsToGroups(b,a.items)},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(c,a){var b=a.item;if(!a.indexChanged){this.syncItemGrouping(c,b,c.getKey(b),a.oldKey,a.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(a){this.removeAll();this.addItemsToGroups(a,a.items)},onCollectionRemove:function(a,b){var h=this,l=h.changeDetails,g,j,k,e,c,d,m;if(l){m=l.item;k=h.findGroupForItem(m);g=[];if(k){g.push({group:k,items:[m]})}}else{g=h.groupItems(a,b.items,false)}for(e=0,c=g.length;e<c;++e){k=(j=g[e]).group;if(k){k.remove(j.items);if(!k.length){(d||(d=[])).push(k)}}}if(d){h.remove(d)}},onCollectionSort:function(e){var d=this,h=e.getSorters(false),a,c,b,g;if(h){a=d.items;c=d.length;for(b=0;b<c;++b){g=a[b];if(g.getSorters()!==h){g.setSorters(h)}}}},onCollectionUpdateKey:function(d,b){var a=b.index,c=b.item;if(!b.indexChanged){a=d.indexOf(c);this.syncItemGrouping(d,c,b.newKey,b.oldKey,a)}},addItemsToGroups:function(b,a){this.groupItems(b,a,true)},groupItems:function(b,l,d){var m=this,a={},j=[],c=b.getGrouper(),o=m.itemGroupKeys,n,p,r,h,q,e,k,g;for(h=0,k=l.length;h<k;++h){r=c.getGroupString(q=l[h]);e=b.getKey(q);if(d){(o||(m.itemGroupKeys=o={}))[e]=r}else{if(o){delete o[e]}}if(!(n=a[r])){if(!(p=m.getByKey(r))&&d){(g||(g=[])).push(p=m.createGroup(b,r))}j.push(a[r]=n={group:p,items:[]})}n.items.push(q)}for(h=0,k=j.length;h<k;++h){n=j[h];n.group.add(n.items)}if(g){m.add(g)}return j},syncItemGrouping:function(a,q,g,j,b){var n=this,k=n.itemGroupKeys||(n.itemGroupKeys={}),c=a.getGrouper(),r=c.getGroupString(q),h=0,m=-1,o=g,l,p,e,i,d;if(j||j===0){i=k[j];delete k[j];o=j}else{i=k[g]}k[g]=r;if(!(p=n.get(r))){p=n.createGroup(a,r);l=[p]}if(p.get(o)!==q){if(p.getCount()>0&&a.getSorters().getCount()===0){d=a.indexOf(p.items[0]);if(b<d){m=0}else{m=b-d}}if(m===-1){p.add(q)}else{p.insert(m,q)}}else{p.itemChanged(q,null,j)}if(r!==i&&(i===0||i)){e=n.get(i);if(e){e.remove(q);if(!e.length){h=[e]}}}if(l){n.splice(0,h,l)}else{if(h){n.splice(0,h)}}},createGroup:function(b,a){var c=new Ext.util.Group({groupKey:a,rootProperty:this.getItemRoot(),sorters:b.getSorters()});return c},getKey:function(a){return a.getGroupKey()},createSortFn:function(){var c=this,a=c.getGrouper(),b=c.getSorters().getSortFn();if(!a){return b}return function(d,e){return a.sort(d.items[0],e.items[0])||b(d,e)}},updateGrouper:function(a){var b=this;b.grouped=!!(a&&b.$groupable.getAutoGroup());b.onSorterChange();b.onEndUpdateSorters(b.getSorters())},destroy:function(){this.$groupable=null;this.destroyGroups(this.items);Ext.util.Collection.prototype.destroy.call(this)},privates:{destroyGroups:function(b){var a=b.length,c;for(c=0;c<a;++c){b[c].destroy()}},findGroupForItem:function(d){var b=this.items,a=b.length,c,e;for(c=0;c<a;++c){e=b[c];if(e.contains(d)){return e}}},onGroupRemove:function(b,a){this.destroyGroups(a.items)}}},1,0,0,0,0,0,[Ext.util,"GroupCollection"],0));(Ext.cmd.derive("Ext.data.Store",Ext.data.ProxyStore,{config:{data:0,clearRemovedOnLoad:true,clearOnPageLoad:true,associatedEntity:null,role:null,session:null},addRecordsOptions:{addRecords:true},loadCount:0,complete:false,moveMapCount:0,constructor:function(a){var b=this,c;if(a){if(a.buffered){return new Ext.data.BufferedStore(a)}}Ext.data.ProxyStore.prototype.constructor.call(this,a);b.getData().addObserver(b);c=b.inlineData;if(c){delete b.inlineData;b.loadInlineData(c)}},applyData:function(c,a){var b=this;b.getFields();b.getModel();if(c&&c.isCollection){a=c}else{if(!a){a=b.constructDataCollection()}if(c){if(b.isInitializing){b.inlineData=c}else{b.loadData(c)}}}return a},loadInlineData:function(d){var c=this,b=c.getProxy(),a;if(b&&b.isMemoryProxy){b.setData(d);a=c.blockLoadCounter;c.blockLoadCounter=0;c.suspendEvents();c.read();c.resumeEvents();c.blockLoadCounter=a}else{c.removeAll(true);c.suspendEvents();c.loadData(d);c.resumeEvents()}},onCollectionAdd:function(b,a){this.onCollectionAddItems(b,a.items,a)},onCollectionFilterAdd:function(b,a){this.onCollectionAddItems(b,a)},onCollectionAddItems:function(g,b,a){var l=this,j=b.length,n=a?!a.next:false,h=l.removed,e=l.ignoreCollectionAdd,k=l.getSession(),p=a&&a.replaced,c,m,d,o;for(c=0;c<j;++c){d=b[c];if(k){k.adopt(d)}if(!e){d.join(l);if(h&&h.length){Ext.Array.remove(h,d)}m=m||d.phantom||d.dirty}}if(e){return}if(p){o=[];do{Ext.Array.push(o,p.items);p=p.next}while(p);l.setMoving(o,true)}if(a){l.fireEvent("add",l,b,a.at);if(n){l.fireEvent("datachanged",l)}}if(o){l.setMoving(o,false)}l.needsSync=l.needsSync||m},onCollectionFilteredItemChange:function(){this.onCollectionItemChange.apply(this,arguments)},onCollectionItemChange:function(g,e){var d=this,a=e.item,c=e.modified||null,b=e.meta;if(d.fireChangeEvent(a)){d.onUpdate(a,b,c,e);d.fireEvent("update",d,a,b,c,e)}},fireChangeEvent:function(a){return this.getDataSource().contains(a)},afterChange:function(a,c,b){this.getData().itemChanged(a,c||null,undefined,b)},afterCommit:function(a,b){this.afterChange(a,b,Ext.data.Model.COMMIT)},afterEdit:function(a,b){this.needsSync=this.needsSync||a.dirty;this.afterChange(a,b,Ext.data.Model.EDIT)},afterReject:function(a){this.afterChange(a,null,Ext.data.Model.REJECT)},afterDrop:function(a){this.getData().remove(a)},afterErase:function(a){this.removeFromRemoved(a)},addSorted:function(a){var c=this,e=c.getRemoteSort(),d=c.getData(),b;if(e){d.setSorters(c.getSorters())}b=d.findInsertionIndex(a);if(e){d.setSorters(null)}return c.insert(b,a)},remove:function(b,k,h){var j=this,c=j.getDataSource(),g,d,a,e;if(b){if(b.isModel){if(c.indexOf(b)>-1){a=[b];g=1}else{g=0}}else{a=[];for(d=0,g=b.length;d<g;++d){e=b[d];if(e&&e.isEntity){if(!c.contains(e)){continue}}else{if(!(e=c.getAt(e))){continue}}a.push(e)}g=a.length}}if(!g){return[]}j.removeIsMove=k===true;j.removeIsSilent=h;c.remove(a);j.removeIsSilent=false;return a},onCollectionRemove:function(h,b){var n=this,j=n.removed,c=b.items,l=c.length,k=b.at,p=n.removeIsMove,m=n.removeIsSilent,o=!b.next,a=b.replacement,e=n.getDataSource(),d,g;if(n.ignoreCollectionRemove){return}if(a){n.setMoving(a.items,true)}for(d=0;d<l;++d){g=c[d];if(!e.contains(g)){if(j&&!p&&!g.phantom&&!g.erasing){g.removedFrom=k+d;j.push(g);n.needsSync=true}else{g.unjoin(n)}}}if(!m){n.fireEvent("remove",n,c,k,p);if(o){n.fireEvent("datachanged",n)}}if(a){n.setMoving(a.items,false)}},onFilterEndUpdate:function(){Ext.data.ProxyStore.prototype.onFilterEndUpdate.apply(this,arguments);this.callObservers("Filter")},removeAt:function(a,b){var c=this.getData();a=Math.max(a,0);if(a<c.length){if(arguments.length===1){b=1}else{if(!b){return}}c.removeAt(a,b)}},removeAll:function(b){var c=this,d=c.getData(),e=c.hasListeners.clear,a=d.getRange();if(d.length){c.removeIsSilent=true;c.callObservers("BeforeRemoveAll");d.removeAll();c.removeIsSilent=false;if(!b){c.fireEvent("clear",c,a);c.fireEvent("datachanged",c)}c.callObservers("AfterRemoveAll",[!!b])}return a},setRecords:function(a){var b=this.getCount();++this.loadCount;if(b){this.getData().splice(0,b,a)}else{this.add(a)}},splice:function(a,c,b){return this.getData().splice(a,c,b)},load:function(b){var c=this,a=c.getPageSize(),d;if(typeof b==="function"){b={callback:b}}else{b=Ext.apply({},b)}if(c.getRemoteSort()&&!b.grouper&&c.getGrouper()){b.grouper=c.getGrouper()}if(a||"start" in b||"limit" in b||"page" in b){b.page=b.page!=null?b.page:c.currentPage;b.start=(b.start!==undefined)?b.start:(b.page-1)*a;b.limit=b.limit!=null?b.limit:a;c.currentPage=b.page}b.addRecords=b.addRecords||false;if(!b.recordCreator){d=c.getSession();if(d){b.recordCreator=d.recordCreator}}return Ext.data.ProxyStore.prototype.load.call(this,b)},onProxyLoad:function(b){var d=this,c=b.getResultSet(),a=b.getRecords(),e=b.wasSuccessful();if(d.isDestroyed){return}if(c){d.totalCount=c.getTotal()}if(e){a=d.processAssociation(a);d.loadRecords(a,b.getAddRecords()?{addRecords:true}:undefined)}else{d.loading=false}if(d.hasListeners.load){d.fireEvent("load",d,a,e,b)}d.callObservers("AfterLoad",[a,e,b])},filterDataSource:function(e){var g=this.getDataSource(),b=g.items,a=b.length,c=[],d;for(d=0;d<a;d++){if(e.call(g,b[d])){c.push(b[d])}}return c},getNewRecords:function(){return this.filterDataSource(this.filterNew)},getRejectRecords:function(){return this.filterDataSource(this.filterRejects)},getUpdatedRecords:function(){return this.filterDataSource(this.filterUpdated)},loadData:function(g,a){var e=this,d=g.length,c=[],b;for(b=0;b<d;b++){c.push(e.createModel(g[b]))}c=e.processAssociation(c);e.loadRecords(c,a?e.addRecordsOptions:undefined)},loadRawData:function(e,b){var d=this,g=d.getSession(),a=d.getProxy().getReader().read(e,g?{recordCreator:g.recordCreator}:undefined),c=a.getRecords(),h=a.getSuccess();if(h){d.totalCount=a.getTotal();d.loadRecords(c,b?d.addRecordsOptions:undefined)}return h},loadRecords:function(a,c){var h=this,g=a.length,j=h.getData(),e,d,b;if(c){e=c.addRecords}if(!h.getRemoteSort()&&!h.getSortOnLoad()){b=true;j.setAutoSort(false)}if(!e){h.clearData(true)}h.loading=false;h.ignoreCollectionAdd=true;h.callObservers("BeforePopulate");j.add(a);h.ignoreCollectionAdd=false;if(b){j.setAutoSort(true)}for(d=0;d<g;d++){a[d].join(h)}++h.loadCount;h.complete=true;h.fireEvent("datachanged",h);h.fireEvent("refresh",h);h.callObservers("AfterPopulate")},loadPage:function(d,a){var c=this,b=c.getPageSize();c.currentPage=d;a=Ext.apply({page:d,start:(d-1)*b,limit:b,addRecords:!c.getClearOnPageLoad()},a);c.read(a)},nextPage:function(a){this.loadPage(this.currentPage+1,a)},previousPage:function(a){this.loadPage(this.currentPage-1,a)},clearData:function(c){var k=this,h=k.removed,d=k.getDataSource(),j=k.getClearRemovedOnLoad(),l=h&&c&&!j,a,e,b,g;if(d){a=d.items;for(b=0,g=a.length;b<g;++b){e=a[b];if(l&&Ext.Array.contains(h,e)){continue}e.unjoin(k)}k.ignoreCollectionRemove=true;k.callObservers("BeforeClear");d.removeAll();k.ignoreCollectionRemove=false;k.callObservers("AfterClear")}if(h&&(!c||j)){h.length=0}},onIdChanged:function(c,b,a){this.getData().updateKey(c,b);this.fireEvent("idchanged",this,c,b,a)},commitChanges:function(){var c=this,d=c.getModifiedRecords(),a=d.length,b=0;Ext.suspendLayouts();c.beginUpdate();for(;b<a;b++){d[b].commit()}c.cleanRemoved();c.endUpdate();Ext.resumeLayouts(true)},filterNewOnly:function(a){return a.phantom===true},filterRejects:function(a){return a.phantom||a.dirty},rejectChanges:function(){var j=this,k=j.getRejectRecords(),g=k.length,d,b,a,h,c,e;Ext.suspendLayouts();j.beginUpdate();for(d=0;d<g;d++){b=k[d];if(b.phantom){a=a||[];a.push(b)}else{b.reject()}}if(a){j.remove(a);for(d=0,g=a.length;d<g;++d){a[d].reject()}}k=j.getRawRemovedRecords();if(k){g=k.length;h=!j.getRemoteSort()&&j.isSorted();if(h){c=j.getData();e=c.getAutoSort();c.setAutoSort(false)}for(d=g-1;d>=0;d--){b=k[d];b.reject();if(!h){j.insert(b.removedFrom||0,b)}}if(h){c.setAutoSort(e);j.add(k)}k.length=0}j.endUpdate();Ext.resumeLayouts(true)},onDestroy:function(){var b=this,a=b.loadTask,d=b.getData(),c=d.getSource();Ext.data.ProxyStore.prototype.onDestroy.call(this);b.setSession(null);b.observers=null;if(a){a.cancel();b.loadTask=null}b.clearData();d.destroy();if(c){c.destroy()}b.setData(null)},privates:{onBeforeLoad:function(a){this.callObservers("BeforeLoad",[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,a,b)},onRemoteSortSet:function(b,c){var a=this.getData();if(b){a.setSorters(c?null:b)}a.setAutoGroup(!c);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,c)},isMoving:function(c,e){var g=this.moveMap,b=0,a,d;if(g){if(c){if(Ext.isArray(c)){for(d=0,a=c.length;d<a;++d){b+=g[c[d].id]?1:0}}else{if(g[c.id]){++b}}}else{b=e?g:this.moveMapCount}}return b},setMoving:function(b,g){var d=this,e=d.moveMap||(d.moveMap={}),a=b.length,c,h;for(c=0;c<a;++c){h=b[c].id;if(g){if(e[h]){++e[h]}else{e[h]=1;++d.moveMapCount}}else{if(--e[h]===0){delete e[h];--d.moveMapCount}}}if(d.moveMapCount===0){d.moveMap=null}},processAssociation:function(a){var c=this,b=c.getAssociatedEntity();if(b){a=c.getRole().processLoad(c,b,a,c.getSession())}return a}}},1,0,0,0,["store.store"],[[Ext.data.LocalStore.prototype.mixinId||Ext.data.LocalStore.$className,Ext.data.LocalStore]],[Ext.data,"Store"],0));(Ext.cmd.derive("Ext.data.reader.Array",Ext.data.reader.Json,{alternateClassName:"Ext.data.ArrayReader",config:{totalProperty:undefined,successProperty:undefined},createFieldAccessor:function(d){var b=d.mapping,c=d.hasMapping()?b:d.ordinal,a;d.mapping=c;a=Ext.data.reader.Json.prototype.createFieldAccessor.apply(this,arguments);d.mapping=b;return a},getModelData:function(a){return{}}},0,0,0,0,["reader.array"],0,[Ext.data.reader,"Array",Ext.data,"ArrayReader"],0));(Ext.cmd.derive("Ext.data.ArrayStore",Ext.data.Store,{alternateClassName:["Ext.data.SimpleStore"],config:{proxy:{type:"memory",reader:"array"}},loadData:function(e,a){if(this.expandData){var d=[],b=0,c=e.length;for(;b<c;b++){d[d.length]=[e[b]]}e=d}Ext.data.Store.prototype.loadData.call(this,e,a)}},0,0,0,0,["store.array"],0,[Ext.data,"ArrayStore",Ext.data,"SimpleStore"],0));(Ext.cmd.derive("Ext.data.StoreManager",Ext.util.MixedCollection,{alternateClassName:["Ext.StoreMgr","Ext.data.StoreMgr","Ext.StoreManager"],singleton:true,register:function(){for(var a=0,b;(b=arguments[a]);a++){this.add(b)}},unregister:function(){for(var a=0,b;(b=arguments[a]);a++){this.remove(this.lookup(b))}},lookup:function(c){if(Ext.isArray(c)){var b=["field1"],e=!Ext.isArray(c[0]),g=c,d,a;if(e){g=[];for(d=0,a=c.length;d<a;++d){g.push([c[d]])}}else{for(d=2,a=c[0].length;d<=a;++d){b.push("field"+d)}}return new Ext.data.ArrayStore({data:g,fields:b,autoDestroy:true,autoCreated:true,expanded:e})}if(Ext.isString(c)){return this.get(c)}else{return Ext.Factory.store(c)}},getKey:function(a){return a.storeId}},0,0,0,0,0,0,[Ext.data,"StoreManager",Ext,"StoreMgr",Ext.data,"StoreMgr",Ext,"StoreManager"],function(){Ext.regStore=function(d,c){var b;if(Ext.isObject(d)){c=d}else{if(Ext.data.StoreManager.containsKey(d)){return Ext.data.StoreManager.lookup(d)}c.storeId=d}if(c instanceof Ext.data.Store){b=c}else{b=new Ext.data.Store(c)}Ext.data.StoreManager.register(b);return b};Ext.getStore=function(b){return Ext.data.StoreManager.lookup(b)};var a=Ext.regStore("ext-empty-store",{proxy:"memory",useModelWarning:false});a.isEmptyStore=true}));(Ext.cmd.derive("Ext.app.domain.Store",Ext.app.EventDomain,{singleton:true,type:"store",prefix:"store.",idMatchRe:/^\#/,constructor:function(){var a=this;a.callParent();a.monitor(Ext.data.AbstractStore)},match:function(d,b){var a=false,c=d.alias;if(b==="*"){a=true}else{if(this.idMatchRe.test(b)){a=d.getStoreId()===b.substring(1)}else{if(c){a=Ext.Array.indexOf(c,this.prefix+b)>-1}}}return a}},1,0,0,0,0,0,[Ext.app.domain,"Store"],0));(Ext.cmd.derive("Ext.app.route.Queue",Ext.Base,{queue:null,token:null,constructor:function(a){Ext.apply(this,a);this.queue=new Ext.util.MixedCollection()},queueAction:function(a,b){this.queue.add({route:a,args:b})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var a=this.queue,c=a.removeAt(0),b;if(c){b=c&&c.route;b.execute(this.token,c.args,this.onActionExecute,this)}},onActionExecute:function(a){if(a){this.clearQueue()}else{this.runQueue()}}},1,0,0,0,0,0,[Ext.app.route,"Queue"],0));(Ext.cmd.derive("Ext.app.route.Route",Ext.Base,{action:null,conditions:null,controller:null,allowInactive:false,url:null,before:null,caseInsensitive:false,matcherRegex:null,paramMatchingRegex:null,paramsInMatchString:null,constructor:function(b){var c=this,a;Ext.apply(c,b,{conditions:{}});a=c.url;c.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);c.paramsInMatchString=a.match(c.paramMatchingRegex)||[];c.matcherRegex=c.createMatcherRegex(a)},recognize:function(c){var d=this,a=d.controller,e,b;if((d.allowInactive||a.isActive())&&d.recognizes(c)){e=d.matchesFor(c);b=c.match(d.matcherRegex);b.shift();return Ext.applyIf(e,{controller:a,action:d.action,historyUrl:c,args:b})}return false},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(c,h,i,d){var b=h.args||[],g=this.before,a=this.controller,e=this.createCallback(h,i,d);if(g){b.push(e);if(Ext.isString(g)){g=this.before=a[g]}if(g){g.apply(a,b)}}else{e.resume()}},matchesFor:function(c){var g={},e=this.paramsInMatchString,b=c.match(this.matcherRegex),d=0,a=e.length;b.shift();for(;d<a;d++){g[e[d].replace(":","")]=b[d]}return g},createMatcherRegex:function(a){var c=this.paramsInMatchString,j=this.conditions,d=0,g=c.length,k=Ext.util.Format.format,l=this.caseInsensitive?"i":"",b,h,e;for(;d<g;d++){b=c[d];h=j[b];e=k("{0}",h||"([%a-zA-Z0-9\\-\\_\\s,]+)");a=a.replace(new RegExp(b),e)}return new RegExp("^"+a+"$",l)},createCallback:function(a,d,b){var c=this;b=b||c;return{resume:function(){var e=c.controller,h=c.action,g;if(Ext.isString(h)){h=e[h]}a=a&&a.args?a.args:[];g=a.pop();if(g&&!Ext.isObject(g)){a.push(g)}if(h){c.action=h;h.apply(e,a)}if(d){d.call(b)}},stop:function(e){if(d){d.call(b,e)}}}}},1,0,0,0,0,0,[Ext.app.route,"Route"],0));(Ext.cmd.derive("Ext.util.History",Ext.Base,{singleton:true,alternateClassName:"Ext.History",useTopWindow:false,constructor:function(){var a=this;a.hiddenField=null;a.ready=false;a.currentToken=null;a.mixins.observable.constructor.call(a)},getHash:function(){return this.win.location.hash.substr(1)},setHash:function(b){try{this.win.location.hash=b;this.currentToken=b}catch(a){}},handleStateChange:function(a){this.currentToken=a;this.fireEvent("change",a)},startUp:function(){var a=this;a.currentToken=a.getHash();if(Ext.supports.Hashchange){Ext.get(a.win).on("hashchange",a.onHashChange,a)}else{Ext.TaskManager.start({fireIdleEvent:false,run:a.onHashChange,interval:50,scope:a})}a.ready=true;a.fireEvent("ready",a)},onHashChange:function(){var b=this,a=b.getHash();if(a!==b.hash){b.hash=a;b.handleStateChange(a)}},init:function(c,a){var b=this;if(b.ready){Ext.callback(c,a,[b]);return}if(!Ext.isReady){Ext.onInternalReady(function(){b.init(c,a)});return}b.win=b.useTopWindow?window.top:window;b.hash=b.getHash();if(c){b.on("ready",c,a,{single:true})}b.startUp()},add:function(a,b){var c=this,d=false;if(b===false||c.getToken()!==a){c.setHash(a);d=true}return d},back:function(){var a=this.useTopWindow?window.top:window;a.history.go(-1)},forward:function(){var a=this.useTopWindow?window.top:window;a.history.go(1)},getToken:function(){return this.ready?this.currentToken:this.getHash()}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.util,"History",Ext,"History"],0));(Ext.cmd.derive("Ext.app.route.Router",Ext.Base,{singleton:true,multipleToken:"|",queueRoutes:true,constructor:function(){var a=Ext.util.History;if(!a.ready){a.init()}a.on("change",this.onStateChange,this);this.clear()},onStateChange:function(d){var l=this,c=l.application,n=l.routes,h=n.length,p=l.queueRoutes,k=d.split(l.multipleToken),o=0,b=k.length,e,g,m,j,a;for(;o<b;o++){d=k[o];a=false;if(p){g=new Ext.app.route.Queue({token:d})}for(e=0;e<h;e++){m=n[e];j=m.recognize(d);if(j){a=true;if(p){g.queueAction(m,j)}else{m.execute(d,j)}}}if(p){g.runQueue()}if(!a&&c){c.fireEvent("unmatchedroute",d)}}},connect:function(c,d,a){var b={url:c,action:d,controller:a};if(Ext.isObject(d)){Ext.merge(b,d)}this.routes.push(new Ext.app.route.Route(b))},disconnectAll:function(c){var b=this.routes,a=b.length,e=[],g,d;for(g=0;g<a;++g){d=b[g];if(d.controller!==c){e.push(d)}}this.routes=e},recognize:function(e){var b=this.routes||[],g=0,a=b.length,c,d;for(;g<a;g++){c=b[g];d=c.recognize(e);if(d){return{route:c,args:d}}}return false},draw:function(a){a.call(this,this)},clear:function(){this.routes=[]}},1,0,0,0,0,0,[Ext.app.route,"Router"],0));(Ext.cmd.derive("Ext.app.Controller",Ext.app.BaseController,{statics:{strings:{model:{getter:"getModel",upper:"Model"},view:{getter:"getView",upper:"View"},controller:{getter:"getController",upper:"Controller"},store:{getter:"getStore",upper:"Store"},profile:{getter:"getProfile",upper:"Profiles"}},controllerRegex:/^(.*)\.controller\./,createGetter:function(a,b){return function(){return this[a](b)}},getGetterName:function(c,a){var d="get",e=c.split("."),g=e.length,b;for(b=0;b<g;b++){d+=Ext.String.capitalize(e[b])}d+=a;return d},resolveNamespace:function(a,g){var h=Ext.app.Controller,e=h.controllerRegex,d,c,b;d=Ext.getClassName(a);c=g.$namespace||g.namespace||Ext.app.getNamespace(d)||((b=e.exec(d))&&b[1]);return c},processDependencies:function(q,r,c,d,i){if(!i||!i.length){return}var k=this,p=k.strings[d],b,n,m,a,e,g,l,h;if(!Ext.isArray(i)){i=[i]}for(e=0,g=i.length;e<g;e++){a=i[e];b=k.getFullName(a,d,c);n=b.absoluteName;m=b.shortName;r.push(n);l=k.getGetterName(m,p.upper);q[l]=h=k.createGetter(p.getter,a);if(d!=="controller"){h["Ext.app.getter"]=true}}},getFullName:function(c,e,d){var a=c,b,g;if((b=c.indexOf("@"))>0){a=c.substring(0,b);g=c.substring(b+1)+"."+a}else{if(c.indexOf(".")>0&&(Ext.ClassManager.isCreated(c)||this.hasRegisteredPrefix(c))){g=c}else{if(d){g=d+"."+e+"."+c;a=c}else{g=c}}}return{absoluteName:g,shortName:a}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:true,moduleClassName:null},onClassExtended:function(b,c,a){var d=a.onBeforeCreated;a.onBeforeCreated=function(e,j){var k=Ext.app.Controller,h=[],g,i;i=e.prototype;g=k.resolveNamespace(e,j);if(g){i.$namespace=g}k.processDependencies(i,h,g,"model",j.models);k.processDependencies(i,h,g,"view",j.views);k.processDependencies(i,h,g,"store",j.stores);k.processDependencies(i,h,g,"controller",j.controllers);Ext.require(h,Ext.Function.pass(d,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(b){var c=this,a=[];if(b){if(Ext.isObject(b)){Ext.Object.each(b,function(d,e){if(Ext.isString(e)){e={selector:e}}e.ref=d;a.push(e)})}else{if(Ext.isArray(b)){a=Ext.Array.merge(a,b)}}}b=c.refs;if(b){c.refs=null;b=c.normalizeRefs(b);if(b){a=Ext.Array.merge(a,b)}}return a},getRefMap:function(){var g=this,c=g._refMap,a,e,d,b;if(!c){a=g.getRefs();c=g._refMap={};if(a){for(b=0,d=a.length;b<d;b++){e=a[b];c[e.ref]=e.selector}}}return c},applyRefs:function(a){return this.normalizeRefs(Ext.clone(a))},updateRefs:function(a){if(a){this.ref(a)}},initAutoGetters:function(){var b=this.self.prototype,c,a;for(c in b){a=b[c];if(a&&a["Ext.app.getter"]){a.call(this)}}},doInit:function(b){var a=this;if(!a._initialized){a.init(b);a._initialized=true}},finishInit:function(g){var d=this,e=d.controllers,b,c,a;if(d._initialized&&e&&e.length){for(c=0,a=e.length;c<a;c++){b=d.getController(e[c]);b.finishInit(g)}}},init:Ext.emptyFn,onLaunch:Ext.emptyFn,activate:function(){this.setActive(true)},deactivate:function(){this.setActive(false)},isActive:function(){return this.getActive()},ref:function(a){var g=this,b=0,e=a.length,h,d,c;a=Ext.Array.from(a);g.references=g.references||[];for(;b<e;b++){h=a[b];d=h.ref;c="get"+Ext.String.capitalize(d);if(!g[c]){g[c]=Ext.Function.pass(g.getRef,[d,h],g)}g.references.push(d.toLowerCase())}},addRef:function(a){this.ref(a)},getRef:function(d,g,a){var c=this,e=c.refCache||(c.refCache={}),b=e[d];g=g||{};a=a||{};Ext.apply(g,a);if(g.forceCreate){return Ext.ComponentManager.create(g,"component")}if(!b){if(g.selector){e[d]=b=Ext.ComponentQuery.query(g.selector)[0]}if(!b&&g.autoCreate){e[d]=b=Ext.ComponentManager.create(g,"component")}if(b){b.on("beforedestroy",function(){e[d]=null})}}return b},hasRef:function(b){var a=this.references;return a&&Ext.Array.indexOf(a,b.toLowerCase())!==-1},getController:function(b){var a=this.getApplication();if(b===this.getId()){return this}return a&&a.getController(b)},getStore:function(c){var a,b;a=(c.indexOf("@")===-1)?c:c.split("@")[0];b=Ext.StoreManager.get(a);if(!b){c=Ext.app.Controller.getFullName(c,"store",this.$namespace);if(c){b=Ext.create(c.absoluteName,{storeId:a})}}return b},getModel:function(c){var b=Ext.app.Controller.getFullName(c,"model",this.$namespace),a=Ext.ClassManager.get(b.absoluteName);if(!a){a=Ext.data.schema.Schema.lookupEntity(c)}return a},getProfile:function(a){a=Ext.app.Controller.getFullName(a,"profile",this.$namespace);return a},getView:function(a){var b=Ext.app.Controller.getFullName(a,"view",this.$namespace);return b&&Ext.ClassManager.get(b.absoluteName)},ensureId:function(){var a=this.getId();if(!a){this.setId(this.getModuleClassName(this.$className,"controller"))}},destroy:function(a,b){var d=this,g=d.application,e,c;if(!b&&g){g.unregister(d)}d.application=null;if(a){e=d.refCache;for(c in e){if(e.hasOwnProperty(c)){Ext.destroy(e[c])}}}Ext.app.BaseController.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.app,"Controller"],0));(Ext.cmd.derive("Ext.app.Application",Ext.app.Controller,{isApplication:true,scope:undefined,namespaces:[],paths:null,config:{name:"",appProperty:"app",profiles:[],currentProfile:null,mainView:{$value:null,lazy:true},defaultToken:null,glyphFontFamily:null},onClassExtended:function(i,c,h){var b=Ext.app.Controller,d=i.prototype,k=[],e,j,a,g;a=c.name||i.superclass.name;if(a){c.$namespace=a;Ext.app.addNamespaces(a)}if(c.namespaces){Ext.app.addNamespaces(c.namespaces)}if(c["paths processed"]){delete c["paths processed"]}else{Ext.app.setupPaths(a,("appFolder" in c)?c.appFolder:i.superclass.appFolder,c.paths)}b.processDependencies(d,k,a,"profile",c.profiles);d.getDependencies(i,c,k);if(k.length){e=h.onBeforeCreated;h.onBeforeCreated=function(l,n){var m=Ext.Array.clone(arguments);Ext.require(k,function(){return e.apply(this,m)})}}},getDependencies:Ext.emptyFn,constructor:function(b){var c=this;Ext.app.route.Router.application=c;Ext.app.Controller.prototype.constructor.apply(this,arguments);c.doInit(c);c.initNamespace();var a=this.getProfiles();if(a&&a.length){Ext.require(a,this.onProfilesLoaded,this)}else{this.onProfilesReady()}},onProfilesReady:function(){var a=this;a.initControllers();a.onBeforeLaunch();a.finishInitControllers()},initNamespace:function(){var c=this,a=c.getAppProperty(),b;b=Ext.namespace(c.getName());if(b){b.getApplication=function(){return c};if(a){if(!b[a]){b[a]=c}}}},initControllers:function(){var c=this,d=Ext.Array.from(c.controllers);c.controllers=new Ext.util.MixedCollection();for(var a=0,b=d.length;a<b;a++){c.getController(d[a])}},finishInitControllers:function(){var c=this,d,b,a;d=c.controllers.getRange();for(b=0,a=d.length;b<a;b++){d[b].finishInit(c)}},launch:Ext.emptyFn,onBeforeLaunch:function(){var j=this,e=Ext.util.History,a=j.getDefaultToken(),h=j.getCurrentProfile(),b,i,k,g,d;j.initMainView();if(h){h.launch()}j.launch.call(j.scope||j);j.launched=true;j.fireEvent("launch",j);b=j.controllers.items;k=b.length;for(i=0;i<k;i++){g=b[i];g.onLaunch(j)}if(!e.ready){e.init()}d=e.getToken();if(d||d===a){Ext.app.route.Router.onStateChange(d)}else{if(a){e.add(a)}}},getModuleClassName:function(a,b){return Ext.app.Controller.getFullName(a,b,this.getName()).absoluteName},initMainView:function(){var c=this,b=c.getCurrentProfile(),a;if(b){a=b.getMainView()}if(a){c.setMainView(a)}else{c.getMainView()}},applyMainView:function(b){var a;a=this.getView(b);return a.create()},createController:function(a){return this.getController(a)},destroyController:function(a){if(typeof a==="string"){a=this.getController(a,true)}Ext.destroy(a)},getController:function(b,a){var l=this,d=l.controllers,j,g,h,e,k,m;g=d.get(b);if(!g){m=d.items;for(e=0,h=m.length;e<h;++e){k=m[e];j=k.getModuleClassName();if(j&&j===b){g=k;break}}}if(!g&&!a){j=l.getModuleClassName(b,"controller");g=Ext.create(j,{application:l,moduleClassName:b});d.add(g);if(l._initialized){g.doInit(l)}}return g},unregister:function(a){this.controllers.remove(a)},getApplication:function(){return this},destroy:function(a){var c=this,e=c.controllers,b=Ext.namespace(c.getName()),d=c.getAppProperty();Ext.destroy(c.viewport);if(e){e.each(function(g){g.destroy(a,true)})}c.controllers=null;Ext.app.Controller.prototype.destroy.call(this,a,true);if(b&&b[d]===c){delete b[d]}},updateGlyphFontFamily:function(a){Ext.setGlyphFontFamily(a)},applyProfiles:function(a){var b=this;return Ext.Array.map(a,function(c){return b.getModuleClassName(c,"profile")})},onProfilesLoaded:function(){var l=this,n=l.getProfiles(),d=n.length,a=[],k,j,p,r,c,q,o,h,m,e,b,g;for(j=0;j<d;j++){a[j]=Ext.create(n[j],{application:l});if(a[j].isActive()&&!k){k=a[j];p=k.getDependencies();r=p.all;l.setCurrentProfile(k);q=p.controller;if(q.length){c=l.controllers=(l.controllers||[]);c.push.apply(c,q)}h=p.view;if(h.length){o=l.views=(l.views||[]);o.push.apply(o,h)}e=p.store;if(e.length){m=l.stores=(l.stores||[]);m.push.apply(m,e)}g=p.model;if(g.length){b=l.models=(l.models||[]);b.push.apply(b,g)}}}if(r){Ext.require(r,l.onProfilesReady,l)}else{l.onProfilesReady()}}},1,0,0,0,0,0,[Ext.app,"Application"],0));Ext.application=function(a){var c=function(e){Ext.onReady(function(){Ext.app.Application.instance=new e()})},d=a.paths,b;if(typeof a==="string"){Ext.require(a,function(){c(Ext.ClassManager.get(a))})}else{a=Ext.apply({extend:"Ext.app.Application"},a);Ext.app.setupPaths(a.name,a.appFolder,a.paths);a["paths processed"]=true;Ext.define(a.name+".$application",a,function(){c(this)})}};(Ext.app||(Ext.app={})).setupPaths=function(a,b,e){var d=Ext.manifest,c;if(a&&b!==null){d=d&&d.paths;if(!d||b!==undefined){Ext.Loader.setPath(a,(b===undefined)?"app":b)}}if(e){for(c in e){if(e.hasOwnProperty(c)){Ext.Loader.setPath(c,e[c])}}}};Ext.define("Ext.overrides.app.Application",{override:"Ext.app.Application",autoCreateViewport:false,config:{enableQuickTips:true},applyMainView:function(e){var b=this.getView(e),d=b.prototype,c,a;if(!d.isViewport){a=d.plugins;a=["viewport"].concat(a?Ext.Array.from(a,true):[]);c={plugins:a}}return b.create(c)},getDependencies:function(a,g,d){var h=Ext.app.Controller,e=a.prototype,c=g.$namespace,b=g.autoCreateViewport;if(b){if(b===true){b="Viewport"}else{d.push("Ext.plugin.Viewport")}h.processDependencies(e,d,c,"view",b)}},onBeforeLaunch:function(){var b=this,a=b.autoCreateViewport;if(b.getEnableQuickTips()){b.initQuickTips()}if(a){b.initViewport()}arguments.callee.$previous.apply(this,arguments)},getViewportName:function(){var a=null,b=this.autoCreateViewport;if(b){a=(b===true)?"Viewport":b}return a},initViewport:function(){this.setMainView(this.getViewportName())},initQuickTips:function(){Ext.tip.QuickTipManager.init()}});(Ext.cmd.derive("Ext.app.Profile",Ext.Base,{config:{namespace:"auto",name:"auto",mainView:{$value:null,lazy:true},application:null,controllers:[],models:[],views:[],stores:[]},constructor:function(a){this.initConfig(a);this.mixins.observable.constructor.apply(this,arguments)},isActive:function(){return false},launch:Ext.emptyFn,applyNamespace:function(a){if(a=="auto"){a=this.getName()}return a.toLowerCase()},applyName:function(a){if(a=="auto"){var b=this.$className.split(".");a=b[b.length-1]}return a},onClassExtended:function(b,c,a){var d=a.onBeforeCreated;a.onBeforeCreated=function(e,j){var k=Ext.app.Controller,h=[],i=e.prototype,g;g=k.resolveNamespace(e,j);k.processDependencies(i,h,g,"model",j.models);k.processDependencies(i,h,g,"view",j.views);k.processDependencies(i,h,g,"store",j.stores);k.processDependencies(i,h,g,"controller",j.controllers);Ext.require(h,Ext.Function.pass(d,arguments,this))}},getDependencies:function(){var b=[],a=this.getApplication().getName(),c=this.getNamespace(),e={model:this.getModels(),view:this.getViews(),controller:this.getControllers(),store:this.getStores()},d,g;for(d in e){g=[];Ext.each(e[d],function(h){if(Ext.isString(h)){if(Ext.isString(h)&&(Ext.ClassManager.getPrefix(h)===""||h===a)){h=a+"."+d+"."+c+"."+h}g.push(h);b.push(h)}},this);e[d]=g}e.all=b;return e}},1,0,0,0,0,[["observable",Ext.mixin.Observable]],[Ext.app,"Profile"],0));(Ext.cmd.derive("Ext.app.domain.View",Ext.app.EventDomain,{isInstance:true,constructor:function(a){Ext.app.EventDomain.prototype.constructor.apply(this,arguments);this.controller=a;this.monitoredClasses=[Ext.Component]},match:function(d,a,b){var c=false;if(a==="#"){c=b===d.getController()}else{c=d.is(a)}return c},destroy:function(){this.controller=null;Ext.app.EventDomain.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.app.domain,"View"],0));(Ext.cmd.derive("Ext.app.ViewController",Ext.app.BaseController,{isViewController:true,factoryConfig:{type:"controller"},config:{closeViewAction:"destroy"},constructor:function(){this.compDomain=new Ext.app.domain.View(this);Ext.app.BaseController.prototype.constructor.apply(this,arguments)},beforeInit:Ext.emptyFn,init:Ext.emptyFn,initViewModel:Ext.emptyFn,destroy:function(){var a=this,b=a.compDomain;if(b){b.unlisten(a);b.destroy()}a.compDomain=a.view=null;Ext.app.BaseController.prototype.destroy.call(this)},closeView:function(){var a=this.getView(),b;if(a){b=this.getCloseViewAction();a[b]()}},control:function(a,b){var c=a;if(Ext.isString(a)){c={};c[a]=b}this.compDomain.listen(c,this)},listen:function(c,a){var b=c.component;if(b){c=Ext.apply({},c);delete c.component;this.control(b)}this.callParent([c,a])},getReferences:function(){return this.view.getReferences()},getView:function(){return this.view},lookupReference:function(b){var a=this.view;return a&&a.lookupReference(b)},getSession:function(){var a=this.view;return a&&a.lookupSession()},getViewModel:function(){var a=this.view;return a&&a.lookupViewModel()},getStore:function(b){var a=this.getViewModel();return a?a.getStore(b):null},fireViewEvent:function(c){var b=this.view,a=false;if(b){a=b.fireEvent.apply(b,arguments)}return a},privates:{view:null,ensureId:function(){var a=this.getId();if(!a){this.setId(Ext.id(null,"controller-"))}},attachReference:function(b){var a=this.view;if(a){a.attachReference(b)}},clearReference:function(b){var a=this.view;if(a){a.clearReference(b)}},clearReferences:function(){var a=this.view;if(a){a.clearReferences()}},setView:function(a){this.view=a;if(!this.beforeInit.$nullFn){this.beforeInit(a)}}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.app,"ViewController"],0));(Ext.cmd.derive("Ext.util.Bag",Ext.Base,{isBag:true,constructor:function(){this.items=[];this.map={}},generation:0,length:0,add:function(e){var d=this,h=d.getKey(e),g=d.map,c=d.items,a=g[h],b;if(a===undefined){c.push(e);g[h]=d.length++;b=e}else{b=c[a];c[a]=e}++d.generation;return b},clear:function(){var c=this,b=c.generation||c.length,a=b?c.items:[];if(b){c.items=[];c.length=0;c.map={};++c.generation}return a},clone:function(){var c=this,b=new c.self(),a=c.length;if(a){Ext.apply(b.map,c.map);b.items=c.items.slice();b.length=c.length}return b},contains:function(c){var a=false,d=this.map,b;if(c!=null){b=this.getKey(c);if(b in d){a=this.items[d[b]]===c}}return a},containsKey:function(a){return a in this.map},destroy:function(){this.items=this.map=null;this.callParent()},getAt:function(b){var a=null;if(b<this.length){a=this.items[b]}return a},getByKey:function(b){var c=this.map,a=null;if(b in c){a=this.items[c[b]]}return a},getCount:function(){return this.length},getKey:function(a){return a.id||a.getId()},remove:function(g){var e=this,h=e.map,c=e.items,b=null,a,i,d;if(e.length){a=h[i=e.getKey(g)];if(a!==undefined){delete h[i];b=c[a];d=c.pop();if(a<--e.length){c[a]=d;h[e.getKey(d)]=a}++e.generation}}return b},removeByKey:function(a){var b=this.getByKey(a);if(b){this.remove(b)}return b||null},sort:function(b){var d=this,a=d.items,e=a.length,c;if(e){Ext.Array.sort(a,b);d.map={};while(e-->0){c=a[e];d.map[d.getKey(c)]=e}++d.generation}}},1,0,0,0,0,0,[Ext.util,"Bag"],0));(Ext.cmd.derive("Ext.util.Scheduler",Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:false,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.destroyed=true;a.items.destroy();a.items=a.orderedItems=null;a.destroy=Ext.emptyFn},add:function(c){var b=this,a=b.items;if(a===b.firing){b.items=a=a.clone()}c.id=c.id||++b.nextId;c.scheduler=b;a.add(c);if(!b.sortMap){b.orderedItems=null}},remove:function(c){var b=this,a=b.items;if(b.destroyed){return}if(a===b.firing){b.items=a=a.clone()}if(c.scheduled){b.unscheduleItem(c);c.scheduled=false}a.remove(c);b.orderedItems=null},sort:function(){var d=this,a=d.items,e={},g=d.getPreSort(),b,c;d.orderedItems=[];d.sortMap=e;if(g){a.sort(g)}a=a.items;for(b=0;b<a.length;++b){c=a[b];if(!e[c.id]){d.sortItem(c)}}d.sortMap=null},sortItem:function(c){var b=this,d=b.sortMap,a=b.orderedItems,e;if(!c.scheduler){b.add(c)}e=c.id;if(!(e in d)){d[e]=0;if(!c.sort.$nullFn){c.sort()}d[e]=1;c.order=b.orderedItems.length;a.push(c)}return b},sortItems:function(a){var b=this,c=b.sortItem;if(a){if(a instanceof Array){Ext.each(a,c,b)}else{Ext.Object.eachValue(a,c,b)}}return b},applyPreSort:function(h){if(typeof h==="function"){return h}var g=h.split(","),e=[],d=g.length,j,a,b;for(a=0;a<d;++a){e[a]=1;b=g[a];if((j=b.charAt(0))==="-"){e[a]=-1}else{if(j!=="+"){j=0}}if(j){g[a]=b.substring(1)}}return function(c,p){var k=0,l,o,n,m;for(l=0;!k&&l<d;++l){o=g[l];n=c[o];m=p[o];k=e[l]*((n<m)?-1:((m<n)?1:0))}return k}},notify:function(){var j=this,b=j.timer,d=j.getCycleLimit(),c=Ext.GlobalEvents,l,e,k,h,g,a;if(b){window.clearTimeout(b);j.timer=null}while(j.scheduledCount){if(d){--d}else{j.firing=null;break}if(!a){a=true;if(c.hasListeners.beforebindnotify){c.fireEvent("beforebindnotify",j)}}++j.passes;if(!(g=j.orderedItems)){j.sort();g=j.orderedItems}h=g.length;if(h){j.firing=j.items;for(e=0;e<h;++e){k=g[e];if(k.scheduled){k.scheduled=false;--j.scheduledCount;j.notifyIndex=e;k.react();if(!j.scheduledCount){break}}}}}j.firing=null;j.notifyIndex=-1;if((l=j.busyCounter)!==j.lastBusyCounter){if(!(j.lastBusyCounter=l)){j.fireEvent("idle",j)}}},onTick:function(){this.timer=null;this.notify()},scheduleItem:function(b){var a=this;++a.scheduledCount;if(!a.timer&&!a.firing){a.scheduleTick()}},scheduleTick:function(){var a=this;if(!a.destroyed&&!a.timer){a.timer=Ext.Function.defer(a.onTick,a.getTickDelay(),a)}},unscheduleItem:function(a){if(this.scheduledCount){--this.scheduledCount}},adjustBusy:function(a){var b=this,c=b.busyCounter+a;b.busyCounter=c;if(c){if(!b.lastBusyCounter){b.lastBusyCounter=c;b.fireEvent("busy",b)}}else{if(b.lastBusyCounter&&!b.timer){b.scheduleTick()}}},isBusy:function(){return !this.isIdle()},isIdle:function(){return !(this.busyCounter+this.lastBusyCounter)}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.util,"Scheduler"],0));(Ext.cmd.derive("Ext.data.Batch",Ext.Base,{config:{pauseOnException:false},current:-1,total:0,running:false,complete:false,exception:false,constructor:function(a){var b=this;b.mixins.observable.constructor.call(b,a);b.operations=[];b.exceptions=[]},add:function(b){var d=this,c,a;if(Ext.isArray(b)){for(c=0,a=b.length;c<a;++c){d.add(b[c])}}else{d.total++;b.setBatch(d);d.operations.push(b)}return d},sort:function(){this.operations.sort(this.sortFn)},sortFn:function(c,a){var b=c.order-a.order;if(b){return b}var g=c.entityType,d=a.entityType,e;if(!g||!d){return 0}if(!(e=g.rank)){g.schema.rankEntities();e=g.rank}return(e-d.rank)*c.foreignKeyDirection},start:function(a){var b=this;if(!b.operations.length||b.running){return b}b.exceptions.length=0;b.exception=false;b.running=true;return b.runOperation(Ext.isDefined(a)?a:b.current+1)},retry:function(){return this.start(this.current)},runNextOperation:function(){var a=this;if(a.running){a.runOperation(a.current+1)}return a},pause:function(){this.running=false;return this},getOperations:function(){return this.operations},getExceptions:function(){return this.exceptions},getCurrent:function(){var a=null,b=this.current;if(!(b===-1||this.complete)){a=this.operations[b]}return a},getTotal:function(){return this.total},isRunning:function(){return this.running},isComplete:function(){return this.complete},hasException:function(){return this.exception},runOperation:function(c){var d=this,b=d.operations,a=b[c];if(a===undefined){d.running=false;d.complete=true;d.fireEvent("complete",d,b[b.length-1])}else{d.current=c;a.setInternalCallback(d.onOperationComplete);a.setInternalScope(d);a.execute()}return d},onOperationComplete:function(a){var c=this,b=a.hasException();if(b){c.exception=true;c.exceptions.push(a);c.fireEvent("exception",c,a)}if(b&&c.getPauseOnException()){c.pause()}else{c.fireEvent("operationcomplete",c,a);c.runNextOperation()}}},1,0,0,0,0,[["observable",Ext.mixin.Observable]],[Ext.data,"Batch"],0));(Ext.cmd.derive("Ext.data.matrix.Slice",Ext.Base,{constructor:function(a,b){this.id=b;this.side=a;this.members={}},attach:function(a){var b=this;b.store=a;a.matrix=b;a.on("load",b.onStoreLoad,b,{single:true})},commit:function(){var a=this.members,b;for(b in a){a[b][2]=0}},onStoreLoad:function(a){this.update(a.getData().items,0)},update:function(n,g){var t=this,j=Ext.data.matrix.Slice,c=t.side,k=c.index,e=n.length,m=t.id,s=t.members,b=c.inverse,r=b.slices,h,p,o,q,a,l,d;for(o=0;o<e;++o){p=d=null;q=n[o];a=q.isEntity?(d=q).id:q;h=s[a];if(g<0&&h&&h[2]===1){delete s[a];l=r[a];if(l){delete l.members[m]}p=1}else{if(!h){h=[a,a,g];h[k]=m;s[a]=h;l=r[a];if(!l){r[a]=l=new j(b,a)}l.members[m]=h;p=1}else{if(g!==h[2]&&g!==0){h[2]=g;l=r[a];p=1}}}if(p){if(t.notify){t.notify.call(t.scope,t,a,g)}if(l&&l.notify){l.notify.call(l.scope,l,m,g)}}}},updateId:function(b){var j=this,a=j.id,i=j.side,m=i.slices,l=m[a],c=l.members,g=i.index,d=i.inverse.slices,h,e,k;j.id=b;m[b]=l;delete m[a];for(e in c){h=c[e];h[g]=b;k=d[e].members;k[b]=k[a];delete k[a]}},destroy:function(){var b=this,a=b.store;if(a){a.matrix=null;a.un("load",b.onStoreLoad,b)}b.notify=b.scope=b.store=b.side=b.members=null;b.callParent()}},1,0,0,0,0,0,[Ext.data.matrix,"Slice"],0));(Ext.cmd.derive("Ext.data.matrix.Side",Ext.Base,{constructor:function(a,b,d){var c=this;c.matrix=a;c.index=b;c.role=d;c.slices={}},commit:function(){var a=this.slices,b;for(b in a){a[b].commit()}},get:function(b,a){var c=this,e=c.slices,d=e[b]||(e[b]=new Ext.data.matrix.Slice(c,b));return(a||a===0)?d.members[a]:d},update:function(b,a,c){var d=this.get(b);return d.update(a,c)},updateId:function(c,a){var b=this.get(c);if(b){b.updateId(a)}},destroy:function(){var a=this,b=a.slices,c;for(c in b){b[c].destroy()}a.inverse=a.matrix=a.role=a.slices=null;a.callParent()}},1,0,0,0,0,0,[Ext.data.matrix,"Side"],0));(Ext.cmd.derive("Ext.data.matrix.Matrix",Ext.Base,{constructor:function(h,c){var e=this,b=c.isManyToMany?c:h.getSchema().getAssociation(c),a=Ext.data.matrix.Side,g=new a(e,0,b.left),d=new a(e,1,b.right);e.association=b;e.session=h;e.left=g;e.right=d;g.inverse=d;d.inverse=g},commit:function(){this.left.commit();this.right.commit()},update:function(b,a,c){return this.left.update(b,a,c)},updateId:function(a,h,c){var b=a.self,g=this.left,d=this.right,e;if(b===g.role.cls){e=g}if(b===d.role.cls){e=d}if(e){e.updateId(h,c)}},destroy:function(){var a=this;a.left.destroy();a.right.destroy();a.association=a.session=a.left=a.right=null;a.callParent()}},1,0,0,0,0,0,[Ext.data.matrix,"Matrix"],0));(Ext.cmd.derive("Ext.data.session.ChangesVisitor",Ext.Base,{constructor:function(c){var a=this,b;a.session=c;b=c.getCrudProperties();a.result=null;a.writerOptions={};a.createKey=b.create;a.readKey=b.read;a.updateKey=b.update;a.dropKey=b.drop},onDirtyRecord:function(g){var j=this,m=j.crud,e=g.phantom,c=g.dropped,h=!e&&!c,k=g.$className,b=(e||c)?"allDataOptions":"partialDataOptions",i=j.writerOptions,a=g.entityName,o,d,l,n;if(e&&c){return false}m=e?j.createKey:(c?j.dropKey:j.updateKey);i=i[k]||(i[k]={});if(c){if(!(o=i.drop)){i.drop=o={all:g.getProxy().getWriter().getWriteAllFields()}}if(!o.all){l=g.id}}if(!l){if(!(o=i[b])){o=g.getProxy().getWriter().getConfig(b);i[b]=o=Ext.Object.chain(o);j.setupOptions(o)}l=g.getData(o)}n=j.result||(j.result={});d=n[a]||(n[a]={});d=d[m]||(d[m]=[]);d.push(l)},setupOptions:function(a){a.serialize=true},onMatrixChange:function(d,j,i,a){var h=this,b=d.left.type,g=d.right.role,e=a<0?h.dropKey:h.createKey,c,k;k=h.result||(h.result={});c=k[b]||(k[b]={});c=c[g]||(c[g]={});c=c[e]||(c[e]={});c=c[j]||(c[j]=[]);c.push(i)}},1,0,0,0,0,0,[Ext.data.session,"ChangesVisitor"],0));(Ext.cmd.derive("Ext.data.session.ChildChangesVisitor",Ext.data.session.ChangesVisitor,{constructor:function(){this.seen={};Ext.data.session.ChangesVisitor.prototype.constructor.apply(this,arguments)},setupOptions:function(a){Ext.data.session.ChangesVisitor.prototype.setupOptions.call(this,a);a.serialize=false},onDirtyRecord:function(a){if(Ext.data.session.ChangesVisitor.prototype.onDirtyRecord.apply(this,arguments)!==false){if(!a.$source&&(a.dropped||!a.phantom)){this.readEntity(a)}}},readEntity:function(g){var h=this,e=h.readKey,b=g.entityName,c=g.id,a=h.seen,i=b+c,j,d;if(a[i]){return}a[i]=true;j=h.result||(h.result={});d=j[b]||(j[b]={});d=d[e]||(d[e]=[]);d.push(Ext.apply({},g.modified,g.data))}},1,0,0,0,0,0,[Ext.data.session,"ChildChangesVisitor"],0));(Ext.cmd.derive("Ext.data.session.BatchVisitor",Ext.Base,{map:null,constructor:function(a){this.batch=a},getBatch:function(g){var h=this.map,d=this.batch,i,b,c,a,e;if(h){if(!d){d=new Ext.data.Batch()}for(c in h){i=h[c];b=i.entity;e=b.getProxy();delete i.entity;for(a in i){a=e.createOperation(a,{records:i[a]});a.entityType=b;d.add(a)}}}if(d&&g!==false){d.sort()}return d},onDirtyRecord:function(a){var d=this,b=a.phantom?"create":(a.dropped?"destroy":"update"),c=a.$className,e=(d.map||(d.map={})),g=(e[c]||(e[c]={entity:a.self}));g=g[b]||(g[b]=[]);g.push(a)}},1,0,0,0,0,0,[Ext.data.session,"BatchVisitor"],0));(Ext.cmd.derive("Ext.data.Session",Ext.Base,{isSession:true,config:{schema:"default",parent:null,autoDestroy:true,crudProperties:{create:"C",read:"R",update:"U",drop:"D"}},destroyed:false,crudOperations:[{type:"R",entityMethod:"readEntities"},{type:"C",entityMethod:"createEntities"},{type:"U",entityMethod:"updateEntities"},{type:"D",entityMethod:"dropEntities"}],crudKeys:{C:1,R:1,U:1,D:1},constructor:function(a){var b=this;b.data={};b.matrices={};b.identifierCache={};b.recordCreator=b.recordCreator.bind(b);b.initConfig(a)},destroy:function(){var d=this,b=d.matrices,e=d.data,c,g,a,h;for(h in b){b[h].destroy()}for(c in e){g=e[c];for(h in g){a=g[h].record;if(a){a.$source=a.session=null}}}d.identifierCache=d.recordCreator=d.matrices=d.data=null;d.setSchema(null);d.callParent()},adopt:function(b){var d=this,c=b.associations,a;if(b.session!==d){b.session=d;d.add(b);if(c){for(a in c){c[a].adoptAssociated(b,d)}}}},commit:function(){var d=this.data,b=this.matrices,c,e,g,a;for(c in d){e=d[c];for(g in e){a=e[g].record;if(a){a.commit()}}}for(g in b){b[g].commit()}},createRecord:function(b,c){var d=b.$isClass?b:this.getSchema().getEntity(b),a=this.getParent(),e;if(c&&a){e=d.getIdFromData(c);if(a.peekRecord(d,e)){Ext.Error.raise("A parent session already contains an entry for "+d.entityName+": "+e)}}return new d(c,this)},getChanges:function(){var a=new Ext.data.session.ChangesVisitor(this);this.visitData(a);return a.result},getChangesForParent:function(){var a=new Ext.data.session.ChildChangesVisitor(this);this.visitData(a);return a.result},getRecord:function(i,a,c){var h=this,b=i.isModel,g,d,j,e;if(b){b=i;a=i.id;i=i.self}g=h.peekRecord(i,a);if(!g){d=i.$isClass?i:h.getSchema().getEntity(i);j=h.getParent();if(j){e=j.peekRecord(d,a)}if(e){if(e.isLoading()){b=false}else{g=e.copy(undefined,h);g.$source=e}}if(!g){if(b){g=b;h.adopt(g)}else{g=d.createWithId(a,null,h);if(c!==false){g.load(Ext.isObject(c)?c:undefined)}}}}return g},getSaveBatch:function(a){var b=new Ext.data.session.BatchVisitor();this.visitData(b);return b.getBatch(a)},onInvalidAssociationEntity:function(a,b){Ext.Error.raise("Unable to read association entity: "+this.getModelIdentifier(a,b))},onInvalidEntityCreate:function(a,b){Ext.Error.raise("Cannot create, record already not exists: "+this.getModelIdentifier(a,b))},onInvalidEntityDrop:function(a,b){Ext.Error.raise("Cannot drop, record does not exist: "+this.getModelIdentifier(a,b))},onInvalidEntityRead:function(a,b){Ext.Error.raise("Cannot read, record already not exists: "+this.getModelIdentifier(a,b))},onInvalidEntityUpdate:function(a,c,b){if(b){Ext.Error.raise("Cannot update, record dropped: "+this.getModelIdentifier(a,c))}else{Ext.Error.raise("Cannot update, record does not exist: "+this.getModelIdentifier(a,c))}},peekRecord:function(e,i,a){var h=e.$isClass?e:this.getSchema().getEntity(e),c=h.entityName,g=this.data[c],b,d;g=g&&g[i];b=g&&g.record;if(!b&&a){d=this.getParent();b=d&&d.peekRecord(e,i,a)}return b||null},save:function(){var a=new Ext.data.session.ChildChangesVisitor(this);this.visitData(a);this.getParent().update(a.result)},spawn:function(){return new this.self({schema:this.getSchema(),parent:this})},update:function(k){var m=this,e=m.getSchema(),a=m.crudOperations,l=a.length,n=m.crudKeys,o,g,q,j,d,r,c,p,h,b;m.getSchema().processKeyChecks(true);for(o in k){g=e.getEntity(o);q=k[o];for(j=0;j<l;++j){d=a[j];r=q[d.type];if(r){m[d.entityMethod](g,r)}}}for(o in k){g=e.getEntity(o);c=g.associations;q=k[o];for(p in q){if(n[p]){continue}h=c[p];b=q[h.role];h.processUpdate(m,b)}}},privates:{add:function(b){var e=this,g=b.id,d=e.getEntry(b.self,g),c,a;d.record=b;e.registerReferences(b);c=b.associations;for(a in c){c[a].checkMembership(e,b)}},afterErase:function(a){this.evict(a)},applySchema:function(a){return Ext.data.schema.Schema.get(a)},createEntities:function(d,b){var a=b.length,c,e,g,h;for(c=0;c<a;++c){e=b[c];h=d.getIdFromData(e);g=this.peekRecord(d,h);if(!g){g=this.createRecord(d,e)}else{this.onInvalidEntityCreate(d,h)}g.phantom=true}},dropEntities:function(e,d){var b=d.length,c,g,h,a;if(b){a=Ext.isObject(d[0])}for(c=0;c<b;++c){h=d[c];if(a){h=e.getIdFromData(h)}g=this.peekRecord(e,h);if(g){g.drop()}else{this.onInvalidEntityDrop(e,h)}}},evict:function(a){var b=a.entityName,d=this.data[b],e=a.id,c;if(d){delete d[e]}},getEntityList:function(d,c){var a=c.length,b,h,g,e;for(b=0;b<a;++b){h=c[b];g=this.peekRecord(d,h);if(g){c[b]=g}else{e=true;c[b]=null;this.onInvalidAssociationEntity(d,h)}}if(e){c=Ext.Array.clean(c)}return c},getEntry:function(b,g){if(b.isModel){g=b.getId();b=b.self}var d=b.$isClass?b:this.getSchema().getEntity(b),a=d.entityName,e=this.data,c;c=e[a]||(e[a]={});c=c[g]||(c[g]={});return c},getRefs:function(d,c,i){var g=this.getEntry(d),e=g&&g.refs&&g.refs[c.role],h=i&&this.getParent(),j,a,b;if(h){j=h.getRefs(d,c);if(j){for(a in j){b=j[a];if((!e||!e[a])){this.getRecord(b.self,b.id)}}e=g&&g.refs&&g.refs[c.role]}}return e||null},getIdentifier:function(g){var e=this.getParent(),a,c,d,b;if(e){b=e.getIdentifier(g)}else{a=this.identifierCache;c=g.identifier;d=c.getId()||g.entityName;b=a[d];if(!b){if(c.clone){b=c.clone({id:null})}else{b=c}a[d]=b}}return b},getMatrix:function(a,e){var d=a.isManyToMany?a.name:a,c=this.matrices,b;b=c[d];if(!b&&!e){b=c[d]=new Ext.data.matrix.Matrix(this,a)}return b||null},getMatrixSlice:function(d,c){var a=this.getMatrix(d.association),b=a[d.side];return b.get(c)},getModelIdentifier:function(a,b){return b+"@"+a.entityName},onIdChanged:function(g,m,i){var r=this,b=r.matrices,j=g.entityName,n=g.id,u=r.data[j],c=u[m],q=g.associations,d=c.refs,a=r._setNoRefs,h,e,p,k,t,l,o,s;delete u[m];u[i]=c;for(s in b){b[s].updateId(g,m,i)}if(d){for(l in d){o=d[l];t=q[l];h=t.association;if(!h.isManyToMany){e=h.field.name;for(k in o){o[k].set(e,n,a)}}}}r.registerReferences(g,m)},processManyBlock:function(d,e,h,b){var i=this,a,g,c,j;if(h){for(a in h){g=i.peekRecord(d,a);if(g){c=i.getEntityList(e.cls,h[a]);j=e.getAssociatedItem(g);i[b](e,j,g,c)}else{i.onInvalidAssociationEntity(d,a)}}}},processManyCreate:function(d,c,a,b){if(c){c.add(b)}else{a[d.getterName](null,null,b)}},processManyDrop:function(d,c,a,b){if(c){c.remove(b)}},processManyRead:function(d,c,a,b){if(c){c.setRecords(b)}else{a[d.getterName](null,null,b)}},readEntities:function(d,b){var a=b.length,c,e,g,h;for(c=0;c<a;++c){e=b[c];h=d.getIdFromData(e);g=this.peekRecord(d,h);if(!g){g=this.createRecord(d,e)}else{this.onInvalidEntityRead(d,h)}g.phantom=false}},recordCreator:function(c,d){var b=this,e=d.getIdFromData(c),a=b.peekRecord(d,e,true);if(!a){a=new d(c,b)}else{a=b.getRecord(d,e)}return a},registerReferences:function(j,c){var m=j.entityName,b=j.id,a=j.data,h=c||c===0,n,g,p,k,d,o,l,e;k=(o=j.references).length;for(g=0;g<k;++g){d=o[g];p=a[d.name];if(p||p===0){d=d.reference;m=d.type;e=d.inverse.role;n=this.getEntry(d.cls,p);l=n.refs||(n.refs={});l=l[e]||(l[e]={});l[b]=j;if(h){delete l[c]}}}},updateEntities:function(e,b){var a=b.length,d,g,h,j,c;if(Ext.isArray(b)){for(d=0;d<a;++d){g=b[d];j=e.getIdFromData(g);h=this.peekRecord(e,j);if(h){h.set(g)}else{this.onInvalidEntityUpdate(e,j)}}}else{for(j in b){g=b[j];h=this.peekRecord(e,j);if(h&&!h.dropped){c=h.set(g)}else{this.onInvalidEntityUpdate(e,j,!!h)}}}},updateReference:function(g,i,c,a){var d=i.reference,j=d.type,e=d.inverse.role,b=g.id,k,h;if(a||a===0){h=this.getEntry(j,a).refs[e];delete h[b]}if(c||c===0){k=this.getEntry(j,c);h=k.refs||(k.refs={});h=h[e]||(h[e]={});h[b]=g}},visitData:function(h){var j=this,e=j.data,n=j.matrices,m,i,c,p,k,d,b,g,l,o,a;j.getSchema().processKeyChecks(true);for(b in e){m=e[b];for(c in m){g=m[c].record;if(g){if(g.phantom||g.dirty||g.dropped){if(h.onDirtyRecord){h.onDirtyRecord(g)}}else{if(h.onCleanRecord){h.onCleanRecord(g)}}}}}if(h.onMatrixChange){for(b in n){k=n[b].left;o=k.slices;i=k.role.association;for(c in o){l=o[c];d=l.members;for(p in d){a=(g=d[p])[2];if(a){h.onMatrixChange(i,g[0],g[1],a)}}}}}return h},_setNoRefs:{refs:false}}},1,0,0,0,0,0,[Ext.data,"Session"],0));(Ext.cmd.derive("Ext.util.Schedulable",Ext.Base,{"abstract":true,isSchedulable:true,scheduled:false,constructor:function(){this.getScheduler().add(this)},destroy:function(){var b=this,a=b.getScheduler();if(a){a.remove(b)}b.destroyed=true;b.scheduler=null;b.schedule=b.destroy=b.react=Ext.emptyFn},getFullName:function(){return this.name||this.id},privates:{getScheduler:function(){return this.scheduler},schedule:function(){var b=this,a;if(!b.scheduled){a=b.getScheduler();if(a){b.scheduled=true;if(b.onSchedule){b.onSchedule()}a.scheduleItem(b)}}},unschedule:function(){var b=this,a;if(b.scheduled){a=b.getScheduler();if(a){a.unscheduleItem(b)}b.scheduled=false}},sort:function(){}}},1,0,0,0,0,0,[Ext.util,"Schedulable"],0));(Ext.cmd.derive("Ext.app.bind.BaseBinding",Ext.util.Schedulable,{calls:0,kind:20,defaultOptions:{},lastValue:undefined,constructor:function(a,e,c,b){var d=this;d.options=b;d.owner=a;d.scope=c;d.callback=e;d.lateBound=Ext.isString(e);if(b&&b.deep){d.deep=true}Ext.util.Schedulable.prototype.constructor.call(this)},isReadOnly:function(){return true},destroy:function(){var b=this,a=b.owner;Ext.util.Schedulable.prototype.destroy.call(this);if(a){a.onBindDestroy(b)}b.scope=b.callback=b.owner=null},privates:{getScheduler:function(){var a=this.owner;return a&&a.getScheduler()},getSession:function(){var a=this.owner;return a.isSession?a:a.getSession()},notify:function(d){var c=this,a=c.options||c.defaultOptions,b=c.lastValue;if(!c.calls||c.deep||c.valueChanged(d,b)){++c.calls;c.lastValue=d;if(c.lateBound){c.scope[c.callback](d,b,c)}else{c.callback.call(c.scope,d,b,c)}if(a.single){c.destroy()}}},valueChanged:function(c,b){var a=true;if(b!==c){if(c&&b&&c instanceof Date&&b instanceof Date){a=c.getTime()!==b.getTime()}}else{a=Ext.isArray(c)}return a}}},1,0,0,0,0,0,[Ext.app.bind,"BaseBinding"],0));(Ext.cmd.derive("Ext.app.bind.Binding",Ext.app.bind.BaseBinding,{constructor:function(d,e,b,a){var c=this;Ext.app.bind.BaseBinding.prototype.constructor.call(this,d.owner,e,b,a);c.stub=d;c.depth=d.depth;if(!d.isLoading()&&!d.scheduled){c.schedule()}},destroy:function(c){var a=this,b=a.stub;if(b&&!c){b.unbind(a);a.stub=null}Ext.app.bind.BaseBinding.prototype.destroy.call(this)},bindValidation:function(c,a){var b=this.stub;return b&&b.bindValidation(c,a)},bindValidationField:function(c,a){var b=this.stub;return b&&b.bindValidationField(c,a)},getFullName:function(){return this.fullName||(this.fullName="@("+this.stub.getFullName()+")")},getValue:function(){var b=this,c=b.stub,a=c&&c.getValue();if(b.transform){a=b.transform(a)}return a},isLoading:function(){var a=this.stub;return a&&a.isLoading()},isReadOnly:function(){var c=this.stub,b=this.options,a=true;if(!(b&&b.twoWay===false)){if(c){a=c.isReadOnly()}}return a},refresh:function(){},setValue:function(a){this.stub.set(a)},privates:{getDataObject:function(){var a=this.stub;return a&&a.getDataObject()},getRawValue:function(){var b=this,c=b.stub,a=c&&c.getRawValue();if(b.transform){a=b.transform(a)}return a},isDescendantOf:function(a){var b=this.stub;return b?(a===b)||b.isDescendantOf(a):false},react:function(){this.notify(this.getValue())},schedule:function(){if(!this.stub.scheduled){Ext.app.bind.BaseBinding.prototype.schedule.call(this)}},sort:function(){var a=this.stub;a.scheduler.sortItem(a)}}},1,0,0,0,0,0,[Ext.app.bind,"Binding"],0));(Ext.cmd.derive("Ext.app.bind.AbstractStub",Ext.util.Schedulable,{children:null,depth:0,generation:1,kind:10,parent:null,constructor:function(a,b){var c=this;c.owner=a;c.name=b;Ext.util.Schedulable.prototype.constructor.call(this)},destroy:function(){var e=this,d=e.children,g=e.bindings,a,c,b;if(g){for(c=0,a=g.length;c<a;++c){g[c].destroy(true)}}for(b in d){d[b].destroy()}Ext.util.Schedulable.prototype.destroy.call(this);e.bindings=e.children=e.owner=null},add:function(b){var a=this;(a.children||(a.children={}))[b.name]=b;b.depth=a.depth+1;b.parent=a},getChild:function(b){var a=Ext.isString(b)?b.split("."):b;if(a&&a.length){return this.descend(a,0)}return this},getFullName:function(){var d=this,a=d.fullName,c=d.parent,b;if(!a){a=d.name||d.id;if(c&&(b=c.getFullName())){a=((b.charAt(b.length-1)!==":")?b+".":b)+a}d.fullName=a}return a},getSession:function(){var a=this.owner;return a.isSession?a:a.getSession()},bind:function(g,b,a){var c=this,d=new Ext.app.bind.Binding(c,g,b,a),e=(c.bindings||(c.bindings=[]));d.depth=c.depth;e.push(d);return d},getValue:function(){return this.isLoading()?null:this.getRawValue()},graft:function(c){var d=this,e=d.bindings,a=d.name,b;d.parent=d.bindings=null;d.destroy();c.depth=d.depth;c.bindings=e;c.generation=d.generation+1;c.name=a;c.id=d.id;c.path=d.path;if(e){for(b=e.length;b-->0;){e[b].stub=c}}return c},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return true}}return false},onSchedule:function(){for(var b,a,d,e,c=this.parent;c;c=c.parent){e=c.bindings;if(e){for(b=0,a=e.length;b<a;++b){d=e[b];if(d.deep&&!d.scheduled){d.schedule()}}}}},react:function(){var d=this.bindings,c,b,a;if(d){for(b=0,a=d.length;b<a;++b){c=d[b];if(!c.scheduled){c.schedule()}}}},unbind:function(a){var b=this.bindings;if(b&&b.length){Ext.Array.remove(b,a)}},privates:{collect:function(){var c=this.children,g=this.bindings,a=0,d=0,e,b;if(c){for(b in c){e=c[b];d=e.collect();if(d===0){e.destroy();delete c[b]}a+=d}}if(g){a+=g.length}return a},getScheduler:function(){var a=this.owner;return a&&a.getScheduler()},sort:function(){var a=this.parent;if(a){this.scheduler.sortItem(a)}}}},1,0,0,0,0,0,[Ext.app.bind,"AbstractStub"],0));(Ext.cmd.derive("Ext.app.bind.Stub",Ext.app.bind.AbstractStub,{isStub:true,dirty:true,formula:null,validationKey:"validation",constructor:function(a,b,c){var d=this,e=b;Ext.app.bind.AbstractStub.prototype.constructor.call(this,a,b);d.boundValue=null;if(c){c.add(d);if(!c.isRootStub){e=c.path+"."+b}d.checkHadValue()}d.path=e},destroy:function(){var c=this,d=c.formula,a=c.parent,b=c.storeBinding;if(d){d.destroy()}if(b){b.destroy()}c.detachBound();c.parentValue=c.formula=c.storeBinding=null;Ext.app.bind.AbstractStub.prototype.destroy.call(this)},bindValidation:function(c,b){var a=this.parent;return a&&a.descend([this.validationKey,this.name]).bind(c,b)},bindValidationField:function(g,d){var c=this.parent,b=this.name,e=typeof g==="string",a;if(c){a=c.bind(function(h){var i=null;if(h&&h.isModel){i=h.getField(b)}if(e){d[g](i,h,this)}else{g.call(d,i,h,this)}})}return a||null},descend:function(g,c){var e=this,d=e.children||(e.children={}),h=c||0,b=g[h++],a;if(!(a=d[b])){a=new Ext.app.bind.Stub(e.owner,b,e)}if(h<g.length){a=a.descend(g,h)}return a},getChildValue:function(a){var d=this,c=d.name,b;if(!a&&!Ext.isString(a)){b=d.hadValue?null:undefined}else{b=d.inspectValue(a);if(!b){if(a.isEntity){b=a.data[c]}else{b=a[c]}}}return b},getDataObject:function(){var g=this,b=g.parent.getDataObject(),d=g.name,c=b?b[d]:null,e,a;if(!c&&b&&b.isEntity){e=b.associations;if(e&&d in e){c=b[e[d].getterName]()}}if(!c||!(c.$className||Ext.isObject(c))){b[d]=c={};g.hadValue=true;g.invalidate(true,true)}return c},getRawValue:function(){return this.getChildValue(this.getParentValue())},graft:function(e){var g=this,d=g.parent,c=g.children,a=g.name,b;e.parent=d;e.children=c;if(d){d.children[a]=e}if(c){for(b in c){c[b].parent=e}}g.children=null;e.checkHadValue();return Ext.app.bind.AbstractStub.prototype.graft.call(this,e)},isLoading:function(){var d=this,c=d.parent,h=false,b,g,e,a;if(c&&!(h=c.isLoading())){g=d.getParentValue();e=d.inspectValue(g);if(e){h=e.isLoading()}else{if(g&&g.isModel){b=g.associations;if(!(b&&d.name in b)){h=false;a=true}}if(!a){h=!d.hadValue&&d.getRawValue()===undefined}}}return h},invalidate:function(b,a){var e=this,d=e.children,c;e.checkHadValue();e.dirty=true;if(!a&&!e.isLoading()){if(!e.scheduled){e.schedule()}}if(b&&d){for(c in d){d[c].invalidate(b,a)}}},isReadOnly:function(){var a=this.formula;return !!(a&&!a.set)},set:function(i){var h=this,j=h.parent,a=h.name,e=h.formula,g,c,b,d;if(e&&!e.settingValue&&e.set){e.setValue(i);return}else{if(h.isLinkStub){d=h.getLinkFormulaStub();e=d?d.formula:null;if(e){e.setValue(i);return}}}g=j.getDataObject();if(g.isEntity){c=g.associations;if(c&&(a in c)){b=c[a];g[b.setterName](i);h.invalidate(true)}else{g.set(a,i)}}else{if((i&&i.constructor===Object)||i!==g[a]){if(!h.setByLink(i)){if(i===undefined){delete g[a]}else{g[a]=i}h.inspectValue(g);h.invalidate(true)}}}},onStoreLoad:function(){this.invalidate(true)},afterLoad:function(a){this.invalidate(true)},afterCommit:function(a){this.afterEdit(a,null)},afterEdit:function(h,e){var c=this.children,j=e&&e.length,d=h.associations,k,g,b,a;if(c){if(j){for(g=0;g<j;++g){b=c[e[g]];if(b){b.invalidate()}}}else{for(k in c){if(!(d&&k in d)){c[k].invalidate()}}}}this.invalidate()},afterReject:function(a){this.afterEdit(a,null)},afterAssociatedRecordSet:function(a,d,e){var c=this.children,b=e.role;if(c&&b in c){c[b].invalidate(true)}},setByLink:function(d){var c=this,h=0,a,b,g,e;for(e=c;e;e=e.parent){if(e.isLinkStub){b=e;if(h){for(g=[],a=0,e=c;e!==b;e=e.parent){++a;g[h-a]=e.name}}break}++h}if(!b||!(e=b.getTargetStub())){return false}if(g){e=e.descend(g)}e.set(d);return true},setFormula:function(c){var a=this,b=a.formula;if(b){b.destroy()}a.formula=new Ext.app.bind.Formula(a,c)},react:function(){var c=this,b=this.boundValue,a=c.children,d;if(b){if(b.isValidation){b.refresh();d=b.generation;if(c.lastValidationGeneration===d){return}c.lastValidationGeneration=d}else{if(b.isModel){if(a&&a[c.validationKey]){b.isValid()}}else{if(b.isStore){if(b.isLoading()&&!b.loadCount){return}}}}}Ext.app.bind.AbstractStub.prototype.react.call(this)},privates:{checkHadValue:function(){if(!this.hadValue){this.hadValue=this.getRawValue()!==undefined}},collect:function(){var c=this,a=Ext.app.bind.AbstractStub.prototype.collect.call(this),b=c.storeBinding?1:0,d=c.formula?1:0;return a+b+d},getLinkFormulaStub:function(){var a=this;while(a.isLinkStub){a=a.binding.stub}return a.formula?a:null},getParentValue:function(){var a=this;if(a.dirty){a.parentValue=a.parent.getValue();a.dirty=false}return a.parentValue},setStore:function(a){this.storeBinding=a},inspectValue:function(h){var i=this,a=i.name,e=i.boundValue,b=null,c,j,d,g;if(h&&h.isEntity){c=h.associations;if(c&&(a in c)){b=h[c[a].getterName]();if(b&&b.isStore){b.$associatedStore=true}}else{if(a===i.validationKey){b=h.getValidation();i.lastValidationGeneration=null}}}else{if(h){j=h[a];if(j&&(j.isModel||j.isStore)){b=j}}}d=e!==b;if(d){if(e){i.detachBound()}if(b){if(b.isModel){b.join(i)}else{g=b.associatedEntity;if(g&&!b.complete&&!b.hasPendingLoad()){b.load()}b.on("load",i.onStoreLoad,i,{single:true})}}i.boundValue=b}return b},detachBound:function(){var a=this,b=a.boundValue;if(b){if(b.isModel){b.unjoin(a)}else{b.un("load",a.onStoreLoad,a)}}},sort:function(){var c=this,d=c.formula,a=c.scheduler,b=c.storeBinding;Ext.app.bind.AbstractStub.prototype.sort.call(this);if(b){a.sortItem(b)}if(d){a.sortItem(d)}}}},1,0,0,0,0,0,[Ext.app.bind,"Stub"],0));(Ext.cmd.derive("Ext.app.bind.LinkStub",Ext.app.bind.Stub,{isLinkStub:true,binding:null,destroy:function(){var b=this,c=b.binding,a=b.owner;if(c){b.binding=null;c.destroy();if(a){delete a.linkData[b.name]}}b.target=null;Ext.app.bind.Stub.prototype.destroy.call(this)},getFullName:function(){var a=this;return a.fullName||(a.fullName="("+Ext.app.bind.Stub.prototype.getFullName.call(this)+" -> "+a.binding.getFullName()+")")},getDataObject:function(){var a=this.binding;return a&&a.getDataObject()},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isLoading:function(){var a=this.binding;return a?a.isLoading():false},link:function(d,b){var a=this,c=a.binding;if(c){c.destroy()}b=a.target=b||a.owner;a.linkDescriptor=d;a.binding=b.bind(d,a.onChange,a);a.binding.deep=true},onChange:function(){this.invalidate(true)},react:function(){var b=this,a=b.owner.linkData;a[b.name]=b.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var b=this,a=Ext.app.bind.Stub.prototype.collect.call(this),c=b.binding?1:0;return a+c},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}},0,0,0,0,0,0,[Ext.app.bind,"LinkStub"],0));(Ext.cmd.derive("Ext.app.bind.RootStub",Ext.app.bind.AbstractStub,{isRootStub:true,depth:0,createRootChild:function(a,e){var j=this,b=j.owner,g=b.getData(),c=j.children,i=c&&c[a],h=i?null:j,k,d;if(e||g.hasOwnProperty(a)||!(k=b.getParent())){d=new Ext.app.bind.Stub(b,a,h)}else{d=new Ext.app.bind.LinkStub(b,a,i?null:h);d.link("{"+a+"}",k)}if(i){i.graft(d)}return d},createStubChild:function(a){return this.createRootChild(a,true)},descend:function(g,c){var e=this,d=e.children,h=c||0,b=g[h++],a=(d&&d[b])||e.createRootChild(b);if(h<g.length){a=a.descend(g,h)}return a},getFullName:function(){return this.fullName||(this.fullName=this.owner.id+":")},getDataObject:function(){return this.owner.data},getRawValue:function(){return this.owner.data},getValue:function(){return this.owner.data},isDescendantOf:function(){return false},isLoading:function(){return false},set:function(h){var g=this,b=g.children||(g.children={}),a=g.owner,d=a.data,k=a.getParent(),e,c,j,i;for(i in h){if((j=h[i])!==undefined){if(!(c=b[i])){c=new Ext.app.bind.Stub(a,i,g)}else{if(c.isLinkStub){if(!c.getLinkFormulaStub()){e=c;c=new Ext.app.bind.Stub(a,i);e.graft(c)}}}c.set(j)}else{if(d.hasOwnProperty(i)){delete d[i];c=b[i];if(c&&!c.isLinkStub&&k){c=g.createRootChild(i)}c.invalidate(true)}}}},schedule:Ext.emptyFn,unschedule:Ext.emptyFn},0,0,0,0,0,0,[Ext.app.bind,"RootStub"],0));(Ext.cmd.derive("Ext.app.bind.Multi",Ext.app.bind.BaseBinding,{isMultiBinding:true,missing:1,deep:true,constructor:function(e,a,h,c,b){var d=this,g=b&&b.trackStatics;Ext.app.bind.BaseBinding.prototype.constructor.call(this,a,h,c,b);d.bindings=[];d.literal=e.$literal;if(e.constructor===Object){if(g){d.staticKeys=[]}d.addObject(e,d.lastValue={},d.staticKeys)}else{d.addArray(e,d.lastValue=[])}if(!--d.missing&&!d.scheduled){d.schedule()}},destroy:function(){var a=this;a.bindings=Ext.destroy(a.bindings);Ext.app.bind.BaseBinding.prototype.destroy.call(this)},add:function(b,g,j){var i=this,d=i.owner,c=i.bindings,a=i.literal?(b.reference?"bindEntity":"bindExpression"):"bind",h,e;++i.missing;h=d[a](b,function(k){g[j]=k;if(h.calls===1){--i.missing}if(!i.missing&&!i.scheduled){i.schedule()}},i,null);e=h.depth;if(!c.length||e<i.depth){i.depth=e}c.push(h);return !this.isBindingStatic(h)},addArray:function(c,k){var g=this,j=c.length,d=false,h,a,e;for(e=0;e<j;++e){a=c[e];if(a&&(a.reference||Ext.isString(a))){h=g.add(a,k,e)}else{if(Ext.isArray(a)){h=g.addArray(a,k[e]=[])}else{if(a&&a.constructor===Object){h=g.addObject(a,k[e]={})}else{k[e]=a;h=false}}}d=d||h}return d},addObject:function(c,g,i){var h=this,e=false,j,a,d;for(d in c){a=c[d];if(a&&(a.reference||Ext.isString(a))){j=h.add(a,g,d)}else{if(Ext.isArray(a)){j=h.addArray(a,g[d]=[])}else{if(a&&a.constructor===Object){j=h.addObject(a,g[d]={})}else{g[d]=a;j=false}}}if(i&&!j){i.push(d)}e=e||j}return e},getFullName:function(){var c=this,d=c.fullName,e=c.bindings,b=e.length,a;if(!d){d="@[";for(a=0;a<b;++a){if(a){d+=","}d+=e[a].getFullName()}d+="]";c.fullName=d}return d},getRawValue:function(){return this.lastValue},isDescendantOf:function(){return false},isLoading:function(){for(var b=this.bindings,a=b.length;a-->0;){if(b[a].isLoading()){return true}}return false},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var d=this.bindings,a=d.length,b,c;for(b=0;b<a;++b){c=d[b];if(!this.isBindingStatic(c)){return false}}return true},pruneStaticKeys:function(){var d=Ext.apply({},this.lastValue),c=this.staticKeys,a=c.length,b;for(b=0;b<a;++b){delete d[c[b]]}return d},react:function(){this.notify(this.lastValue)},refresh:function(){},privates:{sort:function(){this.scheduler.sortItems(this.bindings)}}},1,0,0,0,0,0,[Ext.app.bind,"Multi"],0));(Ext.cmd.derive("Ext.app.bind.Formula",Ext.util.Schedulable,{statics:{getFormulaParser:function(b){var a=this.formulaCache,d,c;if(!a){a=this.formulaCache=new Ext.util.LruCache({maxSize:20})}d=a.get(b);if(!d){c="[^\\.a-z0-9_]"+b+"\\(\\s*(['\"])(.*?)\\1\\s*\\)";d=new RegExp(c,"gi");a.add(b,d)}return d}},isFormula:true,calculation:null,explicit:false,set:null,single:false,argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,constructor:function(h,i){var g=this,b=h.owner,d,e,a,c;g.owner=b;g.stub=h;Ext.util.Schedulable.prototype.constructor.call(this);if(i instanceof Function){g.get=a=i}else{g.get=a=i.get;g.set=i.set;e=i.bind;if(i.single){g.single=i.single}if(e){d=e.bindTo;if(d){c=Ext.apply({},e);delete c.bindTo;e=d}}}if(e){g.explicit=true}else{e=a.$expressions||g.parseFormula(a)}g.binding=b.bind(e,g.onChange,g,c)},destroy:function(){var a=this,c=a.binding,b=a.stub;if(c){c.destroy();a.binding=null}if(b){b.formula=null}Ext.util.Schedulable.prototype.destroy.call(this);a.getterFn=a.owner=null},getFullName:function(){return this.fullName||(this.fullName=this.stub.getFullName()+"="+Ext.util.Schedulable.prototype.getFullName.call(this)+")")},getRawValue:function(){return this.calculation},onChange:function(){if(!this.scheduled){this.schedule()}},parseFormula:function(h){var g=h.toString(),d={$literal:true},c,b,a,e;c=this.argumentNamesRe.exec(g);b=c?c[1]:"get";a=Ext.app.bind.Formula.getFormulaParser(b);while((c=a.exec(g))){e=c[2];d[e]=e}d.$literal=true;h.$expressions=d;return d},react:function(){var c=this,b=c.owner,d=c.binding.lastValue,e=c.getterFn,a;if(c.explicit){a=d}else{a=b.getFormulaFn(d)}c.settingValue=true;c.stub.set(c.calculation=c.get.call(b,a));c.settingValue=false;if(c.single){c.destroy()}},setValue:function(a){this.set.call(this.stub.owner,a)},privates:{getScheduler:function(){var a=this.owner;return a&&a.getScheduler()},sort:function(){var a=this,b=a.binding;if(!b.destroyed){a.scheduler.sortItem(b)}}}},1,0,0,0,0,0,[Ext.app.bind,"Formula"],0));(Ext.cmd.derive("Ext.app.bind.Template",Ext.Base,{numberRe:/^(?:\d+(?:\.\d*)?)$/,stringRe:/^(?:["][^"]*["])$/,tokenRe:/\{[!]?(?:(?:(\d+)|([a-z_][\w\-\.]*))(?::([a-z_\.]+)(?:\(([^\)]*?)?\))?)?)\}/gi,formatRe:/^([a-z_]+)(?:\(([^\)]*?)?\))?$/i,buffer:null,slots:null,tokens:null,constructor:function(d){var c=this,b=c._initters,a;c.text=d;for(a in b){c[a]=b[a]}},_initters:{apply:function(a,b){return this.parse().apply(a,b)},getTokens:function(){return this.parse().getTokens()}},apply:function(j,k){var e=this,d=e.slots,b=e.buffer,a=d.length,c,h,g;for(c=0;c<a;++c){h=d[c];if(h){if((g=j[h.pos])==null){g=""}if(h.not){g=!g}if(h.format){g=h.format(g,k)}b[c]=g}}return b.join("")},getTokens:function(){return this.tokens},parse:function(){var l=this,q=l.text,e=[],j=[],k=[],p={},o=0,d=l.tokenRe,m=0,b,g,a,h,r,n,c;for(g in l._initters){delete l[g]}l.buffer=e;l.slots=j;l.tokens=k;while((h=d.exec(q))){a=h.index-o;if(a){e[m++]=q.substring(o,o+a);o+=a}o+=(r=h[0]).length;n={fmt:(b=h[3]||null),index:h[1]?parseInt(h[1],10):null,not:r.charAt(1)==="!",token:h[2]||null};c=n.token||String(n.index);if(c in p){n.pos=p[c]}else{p[c]=n.pos=k.length;k.push(c)}if(b){if(b.substring(0,5)==="this."){n.fmt=b.substring(5)}else{n.scope=Ext.util.Format}l.parseArgs(h[4],n)}j[m++]=n}if(o<q.length){e[m++]=q.substring(o)}return l},parseArgs:function(g,h){var e=this,b=e.numberRe,j=e.stringRe,k,d,c,a;if(!g){d=[]}else{if(g.indexOf(",")<0){d=[g]}else{d=g.split(",")}}h=h||{};a=d.length;h.args=d;for(c=0;c<a;++c){k=d[c];if(k==="true"){d[c]=true}else{if(k==="false"){d[c]=false}else{if(k==="null"){d[c]=null}else{if(b.test(k)){d[c]=parseFloat(k)}else{if(j.test(k)){d[c]=k.substring(1,k.length-1)}else{h.fn=Ext.functionFactory("return ["+g+"];");h.format=e._formatEval;break}}}}}}if(!h.format){d.unshift(0);h.format=e._formatArgs}return h},parseFormat:function(a){var d=this,c=d.formatRe.exec(a),e={fmt:a,scope:Ext.util.Format},b;b=c[2];if(b){e.fmt=c[1];d.parseArgs(b,e)}else{e.args=[0];e.format=d._formatArgs}return e},_formatArgs:function(b,a){a=this.scope||a;this.args[0]=b;return a[this.fmt].apply(a,this.args)},_formatEval:function(c,b){var a=this.fn();a.unshift(c);b=this.scope||b;return b[this.fmt].apply(b,a)}},1,0,0,0,0,0,[Ext.app.bind,"Template"],0));(Ext.cmd.derive("Ext.app.bind.TemplateBinding",Ext.app.bind.BaseBinding,{isTemplateBinding:true,lastValue:undefined,value:undefined,constructor:function(e,a,i,d,c){var g=this,b=new Ext.app.bind.Template(e),h=b.getTokens();Ext.app.bind.BaseBinding.prototype.constructor.call(this,a,i,d,c);g.tpl=b;g.tokens=h;h.$literal=true;if(h.length){g.multiBinding=new Ext.app.bind.Multi(h,a,g.onBindData,g)}else{g.isStatic=true;g.onData(b.text)}},destroy:function(){var a=this;Ext.destroy(a.multiBinding);a.tpl=a.multiBinding=null;Ext.app.bind.BaseBinding.prototype.destroy.call(this)},getFullName:function(){var a=this.multiBinding;return this.fullName||(this.fullName="$"+(a?a.getFullName():Ext.app.bind.BaseBinding.prototype.getFullName.call(this)))},getRawValue:function(){return this.value},getTemplateScope:function(){return null},isDescendantOf:function(){return false},isLoading:function(){var a=this.multiBinding;return a?a.isLoading():false},onBindData:function(a){this.onData(this.tpl.apply(a,this.getTemplateScope()))},onData:function(c){var b=this,a=b.value;if(a!==(b.value=c)){b.lastValue=a;b.schedule()}},react:function(){this.notify(this.value)},refresh:function(){var a=this.multiBinding;if(a){a.refresh()}},privates:{sort:function(){var a=this.multiBinding;if(a){this.scheduler.sortItem(a)}}}},1,0,0,0,0,0,[Ext.app.bind,"TemplateBinding"],0));(Ext.cmd.derive("Ext.data.ChainedStore",Ext.data.AbstractStore,{config:{source:null,remoteFilter:false,remoteSort:false},constructor:function(){Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);this.getData().addObserver(this)},blockLoad:Ext.emptyFn,unblockLoad:Ext.emptyFn,remove:function(){var a=this.getSource();return a.remove.apply(a,arguments)},removeAll:function(){var a=this.getSource();return a.removeAll()},getData:function(){var a=this,b=a.data;if(!b){a.data=b=a.constructDataCollection()}return b},getSession:function(){return this.getSource().getSession()},applySource:function(a){if(a){a=Ext.data.StoreManager.lookup(a)}return a},updateSource:function(d,b){var a=this,c;if(b){b.removeObserver(a)}if(d){c=a.getData();c.setSource(d.getData());if(!a.isInitializing){a.fireEvent("refresh",a);a.fireEvent("datachanged",a)}d.addObserver(a)}},getModel:function(){return this.getSource().getModel()},getProxy:function(){return null},onCollectionAdd:function(d,c){var b=this,a=c.items,e=!c.next;if(b.ignoreCollectionAdd){return}b.fireEvent("add",b,a,c.at);if(e){b.fireEvent("datachanged",b)}},onCollectionItemChange:function(g,e){var d=this,a=e.item,c=e.modified||null,b=e.meta;d.onUpdate(a,b,c,e);d.fireEvent("update",d,a,b,c,e)},onCollectionUpdateKey:function(b,a){this.fireEvent("idchanged",this,a.item,a.oldKey,a.newKey)},onUpdate:Ext.emptyFn,onCollectionRemove:function(d,c){var b=this,a=c.items,e=!c.next;if(b.ignoreCollectionRemove){return}b.fireEvent("remove",b,a,c.at,false);if(e){b.fireEvent("datachanged",b)}},onSourceBeforeLoad:function(b,a){this.fireEvent("beforeload",this,a)},onSourceAfterLoad:function(c,b,d,a){this.fireEvent("load",this,b,d,a)},onFilterEndUpdate:function(){Ext.data.AbstractStore.prototype.onFilterEndUpdate.apply(this,arguments);this.callObservers("Filter")},onSourceBeforePopulate:function(){this.ignoreCollectionAdd=true;this.callObservers("BeforePopulate")},onSourceAfterPopulate:function(){var a=this;a.ignoreCollectionAdd=false;a.fireEvent("datachanged",a);a.fireEvent("refresh",a);this.callObservers("AfterPopulate")},onSourceBeforeClear:function(){this.ignoreCollectionRemove=true;this.callObservers("BeforeClear")},onSourceAfterClear:function(){this.ignoreCollectionRemove=false;this.callObservers("AfterClear")},onSourceBeforeRemoveAll:function(){this.ignoreCollectionRemove=true;this.callObservers("BeforeRemoveAll")},onSourceAfterRemoveAll:function(c,a){var b=this;b.ignoreCollectionRemove=false;if(!a){b.fireEvent("clear",b);b.fireEvent("datachanged",b)}this.callObservers("AfterRemoveAll",[a])},onSourceFilter:function(){var a=this;a.fireEvent("refresh",a);a.fireEvent("datachanged",a)},hasPendingLoad:function(){return this.getSource().hasPendingLoad()},isLoaded:function(){return this.getSource().isLoaded()},isLoading:function(){return this.getSource().isLoading()},onDestroy:function(){var a=this;a.observers=null;a.setSource(null);a.getData().destroy(true);a.data=null},privates:{isMoving:function(){var a=this.getSource();return a.isMoving?a.isMoving.apply(a,arguments):false},loadsSynchronously:function(){return this.getSource().loadsSynchronously()}}},1,0,0,0,["store.chained"],[[Ext.data.LocalStore.prototype.mixinId||Ext.data.LocalStore.$className,Ext.data.LocalStore]],[Ext.data,"ChainedStore"],0));(Ext.cmd.derive("Ext.app.ViewModel",Ext.Base,{isViewModel:true,factoryConfig:{name:"viewModel"},destroyed:false,collectTimeout:100,expressionRe:/^(?:\{[!]?(?:(\d+)|([a-z_][\w\-\.]*))\})$/i,$configStrict:false,config:{data:true,formulas:{$value:null,merge:function(d,a,c,b){return this.mergeNew(d,a,c,b)}},links:null,parent:null,root:true,scheduler:null,schema:"default",session:null,stores:null,view:null},constructor:function(a){this.bindings={};this.initConfig(a)},destroy:function(){var g=this,d=g._scheduler,k=g.storeInfo,i=g.getParent(),c=g.collectTask,b=g.children,a=g.bindings,j,h,e;g.destroying=true;if(c){c.cancel();g.collectTask=null}if(b){for(j in b){b[j].destroy()}}if(k){for(j in k){h=k[j];e=h.autoDestroy;if(e||(!h.$wasInstance&&e!==false)){h.destroy()}Ext.destroy(h.$binding)}}if(i){i.unregisterChild(g)}g.getRoot().destroy();for(j in a){a[j].destroy()}if(d&&d.$owner===g){d.$owner=null;d.destroy()}g.children=g.storeInfo=g._session=g._view=g._scheduler=g.bindings=g._root=g._parent=g.formulaFn=g.$formulaData=null;g.callParent()},bind:function(e,h,c,b){var d=this,g,a;c=c||d;if(!b&&e.bindTo!==undefined&&!Ext.isString(e)){b=e;e=b.bindTo}if(!Ext.isString(e)){g=new Ext.app.bind.Multi(e,d,h,c,b);a=true}else{if(d.expressionRe.test(e)){e=e.substring(1,e.length-1);g=d.bindExpression(e,h,c,b)}else{g=new Ext.app.bind.TemplateBinding(e,d,h,c,b);a=true}}if(a){d.bindings[g.id]=g}return g},getSession:function(){var b=this,c=b._session,a;if(!c&&(a=b.getParent())){b.setSession(c=a.getSession())}return c||null},getStore:function(b){var c=this.storeInfo,a;if(c){a=c[b]}return a||null},linkTo:function(j,d){var i=this,c,g,a,b,h,e;if(d.isModel){d={type:d.entityName,id:d.id}}b=d.type||d.reference;g=d.create;if(b){a=d.id;if(g){a=undefined}e=i.getRecord(b,a);if(Ext.isObject(g)){e.set(g);e.commit();e.phantom=true}c=i.getRoot().createStubChild(j);c.set(e)}else{c=i.getStub(j);if(!c.isLinkStub){h=new Ext.app.bind.LinkStub(i,c.name);c.graft(h);c=h}c.link(d)}},notify:function(){this.getScheduler().notify()},get:function(a){return this.getStub(a).getValue()},set:function(e,b){var a=this,d,c;a.getData();if(b===undefined&&e&&e.constructor===Object){c=a.getRoot();b=e}else{if(e&&e.indexOf(".")<0){d={};d[e]=b;b=d;c=a.getRoot()}else{c=a.getStub(e)}}c.set(b)},privates:{registerChild:function(b){var a=this.children;if(!a){this.children=a={}}a[b.getId()]=b},unregisterChild:function(b){var a=this.children;if(!this.destroying&&a){delete a[b.getId()]}},getRecord:function(b,g){var d=this.getSession(),e=b,c=g!==undefined,a;if(d){if(c){a=d.getRecord(b,g)}else{a=d.createRecord(b)}}else{if(!e.$isClass){e=this.getSchema().getEntity(e)}if(c){a=e.createWithId(g);a.load()}else{a=new e()}}return a},notFn:function(a){return !a},bindExpression:function(b,g,h,j){var a=b.charAt(0),d=(a==="!"),i=d?b.substring(1):b,c=this.getStub(i),e;e=c.bind(g,h,j);if(d){e.transform=this.notFn}return e},applyScheduler:function(a){if(a&&!a.isInstance){a=new Ext.util.Scheduler(a);a.$owner=this}return a},getScheduler:function(){var c=this,a=c._scheduler,b,d;if(!a){if(!(b=c.getParent())){a=new Ext.util.Scheduler({preSort:"kind,-depth"});a.$owner=c}else{a=b.getScheduler()}c.setScheduler(a)}return a},getStub:function(b){var a=this.getRoot();return b?a.getChild(b):a},collect:function(){var c=this,b=c.getParent(),a=c.collectTask;if(b){b.collect();return}if(!a){a=c.collectTask=new Ext.util.DelayedTask(c.doCollect,c)}if(c.collectTimeout===0){c.doCollect()}else{a.delay(c.collectTimeout)}},doCollect:function(){var b=this.children,a;if(b){for(a in b){b[a].doCollect()}}this.getRoot().collect()},onBindDestroy:function(d,a){var c=this,b;if(c.destroying){return}if(!a){delete c.bindings[d.id]}b=c.getParent();if(b){b.onBindDestroy(c,true)}else{c.collect()}},applyData:function(c,e){var d=this,a,b;d.getSession();if(!e){b=d.getParent();d.linkData=a=b?Ext.Object.chain(b.getData()):{};d.data=d._data=Ext.Object.chain(a)}if(c&&c.constructor===Object){d.getRoot().set(c)}},applyParent:function(a){if(a){a.registerChild(this)}return a},applyStores:function(j){var d=this,g=d.getRoot(),i,c,a,b,e,h;d.storeInfo={};d.listenerScopeFn=function(){return d.getView().getInheritedConfig("defaultListenerScope")};for(i in j){c=j[i];if(c.isStore){c.$wasInstance=true;d.setupStore(c,i);continue}else{if(Ext.isString(c)){c={source:c}}else{c=Ext.apply({},c)}}e=c.listeners;delete c.listeners;a=d.bind(c,d.onStoreBind,d,{trackStatics:true});if(a.isStatic()){a.destroy();d.createStore(i,c,e)}else{a.$storeKey=i;a.$listeners=e;b=g.createStubChild(i);b.setStore(a)}}},onStoreBind:function(a,c,h){var g=this.storeInfo,e=h.$storeKey,b=g[e],d;if(!b){this.createStore(e,a,h.$listeners,h)}else{a=Ext.merge({},h.pruneStaticKeys());d=a.proxy;delete a.type;delete a.model;delete a.fields;delete a.proxy;delete a.listeners;if(d){delete d.reader;delete d.writer;b.getProxy().setConfig(d)}b.blockLoad();b.setConfig(a);b.unblockLoad(true)}},createStore:function(c,a,d,g){var e=this.getSession(),b;a=Ext.apply({},a);if(a.session){a.session=e}if(a.source){a.type=a.type||"chained"}a.listeners=d;b=Ext.Factory.store(a);b.$binding=g;this.setupStore(b,c)},setupStore:function(a,b){a.resolveListenerScope=this.listenerScopeFn;this.storeInfo[b]=a;this.set(b,a)},applyFormulas:function(c){var d=this,a=d.getRoot(),b,e;d.getData();for(b in c){a.createStubChild(b);e=d.getStub(b);e.setFormula(c[b])}return c},applyLinks:function(a){for(var b in a){this.linkTo(b,a[b])}},applySchema:function(a){return Ext.data.schema.Schema.get(a)},applyRoot:function(){var a=new Ext.app.bind.RootStub(this),b=this.getParent();if(b){a.depth=b.getRoot().depth-1000}return a},getFormulaFn:function(c){var b=this,a=b.formulaFn;if(!a){a=b.formulaFn=function(d){return b.$formulaData[d]}}b.$formulaData=c;return a}}},1,0,0,0,["viewmodel.default"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.app,"ViewModel"],0));(Ext.cmd.derive("Ext.app.domain.Controller",Ext.app.EventDomain,{singleton:true,type:"controller",prefix:"controller.",idMatchRe:/^\#/,constructor:function(){var a=this;a.callParent();a.monitor(Ext.app.BaseController)},match:function(d,b){var a=false,c=d.alias;if(b==="*"){a=true}else{if(b==="#"){a=!!d.isApplication}else{if(this.idMatchRe.test(b)){a=d.getId()===b.substring(1)}else{if(c){a=Ext.Array.indexOf(c,this.prefix+b)>-1}}}}return a}},1,0,0,0,0,0,[Ext.app.domain,"Controller"],0));(Ext.cmd.derive("Ext.direct.Manager",Ext.Base,{singleton:true,exceptions:{TRANSPORT:"xhr",PARSE:"parse",DATA:"data",LOGIN:"login",SERVER:"exception"},providerClasses:{},remotingMethods:{},config:{varName:"Ext.app.REMOTING_API"},apiNotFoundError:"Ext Direct API was not found at {0}",constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.transactions=new Ext.util.MixedCollection();a.providers=new Ext.util.MixedCollection()},addProvider:function(g){var d=this,b=arguments,e=d.relayers||(d.relayers={}),c,a;if(b.length>1){for(c=0,a=b.length;c<a;++c){d.addProvider(b[c])}return}if(!g.isProvider){g=Ext.create("direct."+g.type+"provider",g)}d.providers.add(g);g.on("data",d.onProviderData,d);if(g.relayedEvents){e[g.id]=d.relayEvents(g,g.relayedEvents)}if(!g.isConnected()){g.connect()}return g},loadProvider:function(b,l,m){var h=this,c=h.providerClasses,j,a,d,k,e,g;if(Ext.isArray(b)){for(e=0,g=b.length;e<g;e++){h.loadProvider(b[e],l,m)}return}j=b.type;a=b.url;if(c[j]&&c[j].checkConfig(b)){k=h.addProvider(b);h.fireEventArgs("providerload",[a,k]);Ext.callback(l,m,[a,k]);return}d=b.varName||h.getVarName();delete b.varName;delete b.url;Ext.Loader.loadScript({url:a,scope:h,onLoad:function(){this.onApiLoadSuccess({url:a,varName:d,config:b,callback:l,scope:m})},onError:function(){this.onApiLoadFailure({url:a,callback:l,scope:m})}})},getProvider:function(a){return a.isProvider?a:this.providers.get(a)},removeProvider:function(d){var b=this,a=b.providers,c=b.relayers,e;d=d.isProvider?d:a.get(d);if(d){d.un("data",b.onProviderData,b);e=d.id;if(c[e]){c[e].destroy();delete c[e]}a.remove(d);return d}return null},addTransaction:function(a){this.transactions.add(a);return a},removeTransaction:function(b){var a=this;b=a.getTransaction(b);a.transactions.remove(b);return b},getTransaction:function(a){return typeof a==="object"?a:this.transactions.get(a)},onProviderData:function(e,d){var c=this,b,a;if(Ext.isArray(d)){for(b=0,a=d.length;b<a;++b){c.onProviderData(e,d[b])}return}if(d.name&&d.name!=="event"&&d.name!=="exception"){c.fireEvent(d.name,d)}else{if(d.status===false){c.fireEvent("exception",d)}}c.fireEvent("event",d,e)},parseMethod:function(d){var g=Ext.global,c=0,b,e,a;if(Ext.isFunction(d)){b=d}else{if(Ext.isString(d)){b=this.remotingMethods[d];if(!b){e=d.split(".");a=e.length;while(g&&c<a){g=g[e[c]];++c}b=Ext.isFunction(g)?g:null}}}return b||null},privates:{addProviderClass:function(b,a){this.providerClasses[b]=a},onApiLoadSuccess:function(options){var me=this,url=options.url,varName=options.varName,api,provider,error;try{api=Ext.apply(options.config,eval(varName));provider=me.addProvider(api)}catch(e){error=e+""}if(error){me.fireEventArgs("providerloaderror",[url,error]);Ext.callback(options.callback,options.scope,[url,error])}else{me.fireEventArgs("providerload",[url,provider]);Ext.callback(options.callback,options.scope,[url,provider])}},onApiLoadFailure:function(c){var b=c.url,a;a=Ext.String.format(this.apiNotFoundError,b);this.fireEventArgs("providerloaderror",[b,a]);Ext.callback(c.callback,c.scope,[b,a])},registerMethod:function(a,b){this.remotingMethods[a]=b},clearAllMethods:function(){this.remotingMethods={}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.direct,"Manager"],function(){Ext.Direct=Ext.direct.Manager}));(Ext.cmd.derive("Ext.direct.Provider",Ext.Base,{isProvider:true,subscribers:0,constructor:function(a){var b=this;Ext.apply(b,a);Ext.applyIf(b,{id:Ext.id(null,"provider-")});b.mixins.observable.constructor.call(b,a)},destroy:function(){var a=this;a.disconnect(true);a.mixins.observable.destroy.call(a)},isConnected:function(){return this.subscribers>0},connect:function(){var a=this;if(a.subscribers===0){a.doConnect();a.fireEventArgs("connect",[a])}a.subscribers++},doConnect:Ext.emptyFn,disconnect:function(b){var a=this;if(a.subscribers>0){if(b){a.subscribers=0}else{a.subscribers--}if(a.subscribers===0){a.doDisconnect();a.fireEventArgs("disconnect",[a])}}},doDisconnect:Ext.emptyFn,inheritableStatics:{checkConfig:Ext.returnFalse},onClassExtended:function(b,c,a){if(c.type){Ext.direct.Manager.addProviderClass(c.type,b)}}},1,0,0,0,["direct.provider"],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext.direct,"Provider"],0));(Ext.cmd.derive("Ext.app.domain.Direct",Ext.app.EventDomain,{singleton:true,type:"direct",idProperty:"id",constructor:function(){var a=this;a.callParent();a.monitor(Ext.direct.Provider)}},1,0,0,0,0,0,[Ext.app.domain,"Direct"],0));(Ext.cmd.derive("Ext.data.PageMap",Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:""},clear:function(a){var b=this;b.pageMapGeneration=(b.pageMapGeneration||0)+1;b.indexMap={};Ext.util.LruCache.prototype.clear.call(this,a)},forEach:function(l,n){var h=this,d=Ext.Object.getKeys(h.map),a=d.length,k=h.getPageSize(),c,b,m,g,e;for(c=0;c<a;c++){d[c]=+d[c]}Ext.Array.sort(d,Ext.Array.numericSortFn);n=n||h;for(c=0;c<a;c++){m=d[c];g=h.getPage(m);e=g.length;for(b=0;b<e;b++){if(l.call(n,g[b],(m-1)*k+b)===false){return}}}},findBy:function(c,b){var d=this,a=null;b=b||d;d.forEach(function(g,e){if(c.call(b,g,e)){a=g;return false}});return a},findIndexBy:function(c,b){var d=this,a=-1;b=b||d;d.forEach(function(g,e){if(c.call(b,g)){a=e;return false}});return a},find:function(h,g,i,d,c,b){if(Ext.isEmpty(g,false)){return null}var e=Ext.String.createRegex(g,d,c,b),a=this.getRootProperty();return this.findBy(function(j){return j&&e.test((a?j[a]:j)[h])},null,i)},findIndex:function(h,g,i,d,c,b){if(Ext.isEmpty(g,false)){return null}var e=Ext.String.createRegex(g,d,c,b),a=this.getRootProperty();return this.findIndexBy(function(j){return j&&e.test((a?j[a]:j)[h])},null,i)},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},addAll:function(a){this.addPage(1,a)},addPage:function(m,a){var k=this,l=k.getPageSize(),c=m+Math.floor((a.length-1)/l),j=(m-1)*l,g=k.indexMap,e,b,d,h;for(h=0;m<=c;m++,h+=l){e=Ext.Array.slice(a,h,h+l);for(b=0,d=e.length;b<d;b++){g[e[b].internalId]=j++}k.add(m,e);k.fireEvent("pageadd",k,m,e)}},getCount:function(){var a=Ext.util.LruCache.prototype.getCount.call(this);if(a){a=(a-1)*this.getPageSize()+this.last.value.length}return a},getByInternalId:function(a){var b=this.indexMap[a];if(b!=null){return this.getAt(b)}},indexOf:function(b){var a=-1;if(b){a=this.indexMap[b.internalId];if(a==null){a=-1}}return a},insert:function(){},remove:function(){},removeAt:function(){},removeAtKey:function(g){var e=this,c=e.getPage(g),b,d,a;if(c){if(e.fireEvent("beforepageremove",e,g,c)!==false){b=c.length;for(d=0;d<b;d++){delete e.indexMap[c[d].internalId]}a=Ext.util.LruCache.prototype.removeAtKey.apply(this,arguments);e.fireEvent("pageremove",e,g,c);c.length=0}}return a},getPage:function(a){return this.get(a)},hasRange:function(e,b){var c=this,a=c.getPageFromRecordIndex(e),d=c.getPageFromRecordIndex(b);for(;a<=d;a++){if(!c.hasPage(a)){return false}}return(d-1)*c._pageSize+c.getPage(d).length>b},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(a,b){b--;if(!this.hasRange(a,b)){Ext.Error.raise("PageMap asked for range which it does not have")}var h=this,d=Ext.Array,i=h.getPageSize(),l=h.getPageFromRecordIndex(a),e=h.getPageFromRecordIndex(b),c=(l-1)*i,n=(e*i)-1,j=l,o=[],m,g,k;for(;j<=e;j++){if(j===l){m=a-c;k=m>0}else{m=0;k=false}if(j===e){g=i-(n-b);k=k||g<i}if(k){d.push(o,d.slice(h.getPage(j),m,g))}else{d.push(o,h.getPage(j))}}return o},destroy:function(){Ext.util.LruCache.prototype.destroy.call(this);this.indexMap={}}},0,0,0,0,0,0,[Ext.data,"PageMap"],0));(Ext.cmd.derive("Ext.data.BufferedStore",Ext.data.ProxyStore,{isBufferedStore:true,buffered:true,config:{data:0,pageSize:25,remoteSort:true,remoteFilter:true,sortOnLoad:false,purgePageCount:5,trailingBufferZone:25,leadingBufferZone:200,defaultViewSize:100,viewSize:0,trackRemoved:false},applyData:function(b){var a=this.data||(this.data=this.createDataCollection());return a},applyProxy:function(a){a=Ext.data.ProxyStore.prototype.applyProxy.call(this,a);if(a&&a.setEnablePaging){a.setEnablePaging(true)}return a},applyAutoSort:function(){},createFiltersCollection:function(){return new Ext.util.FilterCollection()},createSortersCollection:function(){return new Ext.util.SorterCollection()},updateGroupField:function(b){var a=this;if(a.isInitializing){a.blockLoad()}a.group(b);if(a.isInitializing){a.unblockLoad()}},getGrouper:function(){return this.grouper},isGrouped:function(){return !!this.grouper},createDataCollection:function(){var b=this,a=new Ext.data.PageMap({store:b,rootProperty:"data",pageSize:b.getPageSize(),maxSize:b.getPurgePageCount(),listeners:{clear:b.onPageMapClear,scope:b}});b.relayEvents(a,["beforepageremove","pageadd","pageremove"]);b.pageRequests={};return a},removeAll:function(a){var b=this,c=b.getData();if(c){if(a){b.suspendEvent("clear")}c.clear();if(a){b.resumeEvent("clear")}}},load:function(a){var b=this;if(b.loading){return}a=a||{};b.getData().clear();a.page=1;a.start=0;a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;delete a.callback;return b.loadToPrefetch(a)},reload:function(n){var h=this,e=h.getData(),k=Number.MAX_VALUE,j,b,g,m,d,a,l,c;if(!n){n={}}if(h.loading||h.fireEvent("beforeload",h,n)===false){return}a=function(){var o=h.totalCount,i=b-j;if(b>=o){b=o-1;j=Math.max(b-i,0)}if(h.rangeCached(j,Math.min(b,h.totalCount))){h.loadCount=(h.loadCount||0)+1;h.loading=false;e.un("pageadd",a);c=e.getRange(j,b+1);h.fireEvent("load",h,c,true);h.fireEvent("refresh",h)}};l=Math.ceil((h.getLeadingBufferZone()+h.getTrailingBufferZone())/2);if(h.lastRequestStart&&h.preserveScrollOnReload){j=h.lastRequestStart;b=h.lastRequestEnd;k=h.getTotalCount()}else{j=n.start||0;b=j+(n.count||h.getPageSize())-1}e.clear(true);delete h.totalCount;j=Math.max(j-l,0);b=Math.min(b+l,k);j=j===0?0:j-1;b=b===k?b:b+1;g=h.getPageFromRecordIndex(j);m=h.getPageFromRecordIndex(b);h.loading=true;n.waitForReload=a;e.on("pageadd",a);for(d=g;d<=m;d++){h.prefetchPage(d,n)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;delete a.callback;return b.loadToPrefetch(a)},clearData:function(c){var a=this,b=a.getData();if(b){b.clear()}},getCount:function(){return this.totalCount||0},getRange:function(d,h,m){var l=this,e=l.totalCount-1,g=l.lastRequestStart,n=[],i=l.getData(),c,k,b,a,j;m=Ext.apply({prefetchStart:d,prefetchEnd:h},m);h=(h>=l.totalCount)?e:h;k=d===0?0:d-1;b=h===e?h:h+1;l.lastRequestStart=d;l.lastRequestEnd=h;if(l.rangeCached(d,h)){l.onRangeAvailable(m);n=i.getRange(d,h+1)}else{l.fireEvent("cachemiss",l,d,h);a=l.getPageFromRecordIndex(k);j=l.getPageFromRecordIndex(b);c=function(o,q,p){if(q>=a&&q<=j&&l.rangeCached(d,h)){l.fireEvent("cachefilled",l,d,h);i.un("pageadd",c);l.onRangeAvailable(m)}};i.on("pageadd",c);l.prefetchRange(d,h)}l.primeCache(d,h,d<g?-1:1);return n},getById:function(b){var a=this.data.findBy(function(c){return c.getId()===b});return a},getAt:function(a){var b=this.getData();if(b.hasRange(a,a)){return b.getAt(a)}},getByInternalId:function(a){return this.data.getByInternalId(a)},contains:function(a){return this.indexOf(a)>-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var c=this,a;if(b&&typeof b==="string"){a=c.grouper;if(a&&d!==undefined){a.setDirection(d)}else{c.grouper=new Ext.util.Grouper({property:b,direction:d||"ASC",root:"data"})}}else{c.grouper=b?c.getSorters().decodeSorter(b,"Ext.util.Grouper"):null}c.getData().clear();c.loadPage(1,{callback:function(){c.fireEvent("groupchange",c,c.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(a){var c=this,b=c.getPurgePageCount();return b?Math.max(c.getData().getMaxSize()||0,Math.ceil((a+c.getTrailingBufferZone()+c.getLeadingBufferZone())/c.getPageSize())*2+b):0},loadToPrefetch:function(s){var m=this,c=s,h,b,o,n=s.start,a=s.start+s.limit-1,r=(m.getViewSize()||s.limit),j=Math.min(a,s.start+r-1),k=m.getPageFromRecordIndex(Math.max(n-m.getTrailingBufferZone(),0)),q=m.getPageFromRecordIndex(a+m.getLeadingBufferZone()),g=m.getData(),l=function(){b=b||[];if(s.loadCallback){s.loadCallback.call(s.scope||m,b,e,true)}if(s.callback){s.callback.call(s.scope||m,b,n||0,a||0,s)}},p=function(){m.loadCount=(m.loadCount||0)+1;m.fireEvent("datachanged",m);m.fireEvent("refresh",m);m.fireEvent("load",m,b,true)},d=function(){if(m.rangeCached(n,j)){m.loading=false;b=g.getRange(n,j+1);g.un("pageadd",d);if(m.hasListeners.guaranteedrange){m.guaranteeRange(n,j,s.callback,s.scope)}l();p()}},e;g.setMaxSize(m.calculatePageCacheSize(r));if(m.fireEvent("beforeload",m,s)!==false){delete m.totalCount;m.loading=true;if(s.callback){c=Ext.apply({},s);delete c.callback}m.on("prefetch",function(t,i,v,u){e=u;if(v){if((o=m.getTotalCount())){g.on("pageadd",d);j=Math.min(j,o-1);q=m.getPageFromRecordIndex(Math.min(j+m.getLeadingBufferZone(),o-1));for(h=k+1;h<=q;++h){m.prefetchPage(h,c)}}else{l();p()}}else{m.loading=false;l();m.fireEvent("load",m,i,false)}},null,{single:true});m.prefetchPage(k,c)}},prefetch:function(d){var e=this,b=e.getPageSize(),g=e.getData(),c,a;if(b){if(e.lastPageSize&&b!=e.lastPageSize){Ext.Error.raise("pageSize cannot be dynamically altered")}if(!g.getPageSize()){g.setPageSize(b)}}else{e.pageSize=g.setPageSize(b=d.limit)}e.lastPageSize=b;if(!d.page){d.page=e.getPageFromRecordIndex(d.start);d.start=(d.page-1)*b;d.limit=Math.ceil(d.limit/b)*b}a=e.pageRequests[d.page];if(!a||a.getOperation().pageMapGeneration!==g.pageMapGeneration){d=Ext.apply({action:"read",filters:e.getFilters().items,sorters:e.getSorters().items,grouper:e.getGrouper(),internalCallback:e.onProxyPrefetch,internalScope:e},d);c=e.createOperation("read",d);c.pageMapGeneration=g.pageMapGeneration;if(e.fireEvent("beforeprefetch",e,c)!==false){e.pageRequests[d.page]=c.execute();if(e.getProxy().isSynchronous){delete e.pageRequests[d.page]}}}return e},onPageMapClear:function(){var c=this,b=c.wasLoading,a=c.pageRequests,e=c.getData(),d;e.clearListeners();e.on("clear",c.onPageMapClear,c);c.relayEvents(e,["beforepageremove","pageadd","pageremove"]);c.loading=true;c.totalCount=0;for(d in a){if(a.hasOwnProperty(d)){a[d].getOperation().abort()}}c.fireEvent("clear",c);c.loading=b},prefetchPage:function(e,b){var d=this,a=d.getPageSize(),g=(e-1)*a,c=d.totalCount;if(c!==undefined&&d.data.getCount()===c){return}d.prefetch(Ext.applyIf({page:e,start:g,limit:a},b))},onProxyPrefetch:function(d){if(this.destroyed){return}var i=this,j=d.getResultSet(),c=d.getRecords(),g=d.wasSuccessful(),h=d.getPage(),b=d.waitForReload,l=i.totalCount,a=i.pageRequests,k,e;if(d.pageMapGeneration===i.getData().pageMapGeneration){if(j){i.totalCount=j.getTotal();if(i.totalCount!==l){i.fireEvent("totalcountchange",i.totalCount)}}if(h!==undefined){delete i.pageRequests[h]}i.loading=false;i.fireEvent("prefetch",i,c,g,d);if(g){if(i.totalCount===0){if(b){for(k in a){e=a[k].getOperation();if(e.waitForReload===b){delete e.waitForReload}}i.getData().un("pageadd",b);i.fireEvent("load",i,[],true);i.fireEvent("refresh",i)}}else{i.cachePage(c,d.getPage())}}Ext.callback(d.getCallback(),d.getScope()||i,[c,d,g])}},cachePage:function(b,e){var d=this,a=b.length,c;if(!Ext.isDefined(d.totalCount)){d.totalCount=b.length;d.fireEvent("totalcountchange",d.totalCount)}for(c=0;c<a;c++){b[c].join(d)}d.getData().addPage(e,b)},rangeCached:function(d,a){var c=d===0?0:d-1,b=a===this.totalCount-1?a:a+1;return this.getData().hasRange(c,b)},pageCached:function(a){return this.getData().hasPage(a)},pagePending:function(a){return !!this.pageRequests[a]},rangeSatisfied:function(b,a){return this.rangeCached(b,a)},onRangeAvailable:function(d){var e=this,b=e.getTotalCount(),g=d.prefetchStart,a=(d.prefetchEnd>b-1)?b-1:d.prefetchEnd,c;a=Math.max(0,a);c=e.getData().getRange(g,a+1);if(d.fireEvent!==false){e.fireEvent("guaranteedrange",c,g,a,d)}if(d.callback){d.callback.call(d.scope||e,c,g,a,d)}},guaranteeRange:function(e,a,d,c,b){b=Ext.apply({callback:d,scope:c},b);this.getRange(e,a+1,b)},prefetchRange:function(h,b){var d=this,c,a,g,e=d.getData();if(!d.rangeCached(h,b)){c=d.getPageFromRecordIndex(h);a=d.getPageFromRecordIndex(b);e.setMaxSize(d.calculatePageCacheSize(b-h+1));for(g=c;g<=a;g++){if(!d.pageCached(g)){d.prefetchPage(g)}}}},primeCache:function(i,c,h){var g=this,e=g.getLeadingBufferZone(),d=g.getTrailingBufferZone(),b=g.getPageSize(),a=g.totalCount;if(h===-1){i=Math.max(i-e,0);c=Math.min(c+d,a-1)}else{if(h===1){i=Math.max(Math.min(i-d,a-b),0);c=Math.min(c+e,a-1)}else{i=Math.min(Math.max(Math.floor(i-((e+d)/2)),0),a-g.pageSize);c=Math.min(Math.max(Math.ceil(c+((e+d)/2)),0),a-1)}}g.prefetchRange(i,c)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else{this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent("beforesort",a,b);a.clearAndLoad({callback:function(){a.fireEvent("sort",a,b)}})}else{a.fireEvent("sort",a,b)}},clearAndLoad:function(a){var b=this;if(b.isLoadBlocked()){return}b.clearing=true;b.getData().clear();b.clearing=false;b.loadPage(1,a)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return false}}},0,0,0,0,["store.buffered"],0,[Ext.data,"BufferedStore"],0));(Ext.cmd.derive("Ext.data.proxy.Direct",Ext.data.proxy.Server,{alternateClassName:"Ext.data.DirectProxy",config:{paramOrder:undefined,paramsAsHash:true,directFn:undefined,api:undefined,metadata:undefined},paramOrderRe:/[\s,|]/,constructor:function(a){Ext.data.proxy.Server.prototype.constructor.call(this,a);this.canceledOperations={}},applyParamOrder:function(a){if(Ext.isString(a)){a=a.split(this.paramOrderRe)}return a},updateApi:function(){this.methodsResolved=false},updateDirectFn:function(){this.methodsResolved=false},resolveMethods:function(){var d=this,c=d.getDirectFn(),b=d.getApi(),a=Ext.direct.Manager,e;if(c){d.setDirectFn(e=a.parseMethod(c));if(!Ext.isFunction(e)){Ext.Error.raise("Cannot resolve directFn "+c)}}if(b){for(c in b){if(b.hasOwnProperty(c)){e=b[c];b[c]=a.parseMethod(e);if(!Ext.isFunction(b[c])){Ext.Error.raise("Cannot resolve Direct api "+c+" method "+e)}}}}d.methodsResolved=true},doRequest:function(d){var i=this,a,e,c,b,h,g,j,k;if(!i.methodsResolved){i.resolveMethods()}e=i.buildRequest(d);c=e.getAction();g=i.getApi();if(g){j=g[c]}j=j||i.getDirectFn();a=i.getWriter();if(a&&d.allowWrite()){e=a.write(e)}if(c==="read"){b=e.getParams()}else{b=e.getJsonData()}h=j.directCfg.method.getArgs({params:b,paramOrder:i.getParamOrder(),paramsAsHash:i.getParamsAsHash(),metadata:i.getMetadata(),callback:i.createRequestCallback(e,d),scope:i});e.setConfig({args:h,directFn:j});j.apply(window,h);return e},abort:function(a){var b;if(!a){return}if(a.isOperation){b=a.id}else{if(a.operation.isOperation){b=a.operation.id}}if(b!=null){this.canceledOperations[b]=true}},applyEncoding:Ext.identityFn,createRequestCallback:function(c,a){var b=this;return function(e,d){if(!b.canceledOperations[a.id]){b.processResponse(d.status,a,c,d)}delete b.canceledOperations[a.id]}},extractResponseData:function(a){return Ext.isDefined(a.result)?a.result:a.data},setException:function(b,a){b.setException(a.message)},buildUrl:function(){return""}},1,0,0,0,["proxy.direct"],0,[Ext.data.proxy,"Direct",Ext.data,"DirectProxy"],0));(Ext.cmd.derive("Ext.data.DirectStore",Ext.data.Store,{constructor:function(a){a=Ext.apply({},a);if(!a.proxy){var b={type:"direct",reader:{type:"json"}};Ext.copyTo(b,a,"paramOrder,paramsAsHash,directFn,api,simpleSortMode,extraParams");Ext.copyTo(b.reader,a,"totalProperty,root,rootProperty,idProperty");a.proxy=b}Ext.data.Store.prototype.constructor.call(this,a)}},1,0,0,0,["store.direct"],0,[Ext.data,"DirectStore"],0));(Ext.cmd.derive("Ext.data.JsonP",Ext.Base,{singleton:true,requestCount:0,requests:{},timeout:30000,disableCaching:true,disableCachingParam:"_dc",callbackKey:"callback",request:function(n){n=Ext.apply({},n);var j=this,d=Ext.isDefined(n.disableCaching)?n.disableCaching:j.disableCaching,h=n.disableCachingParam||j.disableCachingParam,c=++j.requestCount,l=n.callbackName||"callback"+c,i=n.callbackKey||j.callbackKey,m=Ext.isDefined(n.timeout)?n.timeout:j.timeout,e=Ext.apply({},n.params),b=n.url,a=Ext.name,g,k;if(d&&!e[h]){e[h]=Ext.Date.now()}n.params=e;e[i]=a+".data.JsonP."+l;k=j.createScript(b,e,n);j.requests[c]=g={url:b,params:e,script:k,id:c,scope:n.scope,success:n.success,failure:n.failure,callback:n.callback,callbackKey:i,callbackName:l};if(m>0){g.timeout=Ext.defer(j.handleTimeout,m,j,[g])}j.setupErrorHandling(g);j[l]=Ext.bind(j.handleResponse,j,[g],true);j.loadScript(g);return g},abort:function(c){var b=this,d=b.requests,a;if(c){if(!c.id){c=d[c]}b.handleAbort(c)}else{for(a in d){if(d.hasOwnProperty(a)){b.abort(d[a])}}}},setupErrorHandling:function(a){a.script.onerror=Ext.bind(this.handleError,this,[a])},handleAbort:function(a){a.errorType="abort";this.handleResponse(null,a)},handleError:function(a){a.errorType="error";this.handleResponse(null,a)},cleanupErrorHandling:function(a){a.script.onerror=null},handleTimeout:function(a){a.errorType="timeout";this.handleResponse(null,a)},handleResponse:function(b,c){var d=true,a=Ext.GlobalEvents;if(c.timeout){clearTimeout(c.timeout)}delete this[c.callbackName];delete this.requests[c.id];this.cleanupErrorHandling(c);Ext.fly(c.script).destroy();if(c.errorType){d=false;Ext.callback(c.failure,c.scope,[c.errorType])}else{Ext.callback(c.success,c.scope,[b])}Ext.callback(c.callback,c.scope,[d,b,c.errorType]);if(a.hasListeners.idle){a.fireEvent("idle")}},createScript:function(c,d,b){var a=document.createElement("script");a.setAttribute("src",Ext.urlAppend(c,Ext.Object.toQueryString(d)));a.setAttribute("async",true);a.setAttribute("type","text/javascript");return a},loadScript:function(a){Ext.getHead().appendChild(a.script)}},0,0,0,0,0,0,[Ext.data,"JsonP"],0));(Ext.cmd.derive("Ext.data.proxy.JsonP",Ext.data.proxy.Server,{alternateClassName:"Ext.data.ScriptTagProxy",config:{callbackKey:"callback",recordParam:"records",autoAppendParams:true},doRequest:function(a){var c=this,b=c.buildRequest(a),d=b.getParams();b.setConfig({callbackKey:c.callbackKey,timeout:c.timeout,scope:c,disableCaching:false,callback:c.createRequestCallback(b,a)});if(c.getAutoAppendParams()){b.setParams({})}b.setRawRequest(Ext.data.JsonP.request(b.getCurrentConfig()));b.setParams(d);c.lastRequest=b;return b},createRequestCallback:function(c,a){var b=this;return function(g,d,e){if(c===b.lastRequest){b.lastRequest=null}b.processResponse(g,a,c,d)}},setException:function(b,a){b.setException(b.getRequest().getRawRequest().errorType)},buildUrl:function(h){var k=this,a=Ext.data.proxy.Server.prototype.buildUrl.apply(this,arguments),d=h.getRecords(),e=k.getWriter(),g,c,b,j,l;if(e&&h.getOperation().allowWrite()){h=e.write(h)}g=h.getParams();c=g.filters;delete g.filters;if(c&&c.length){for(j=0;j<c.length;j++){b=c[j];l=b.getValue();if(l){g[b.getProperty()]=l}}}if(Ext.isArray(d)&&d.length>0&&(!e||!e.getEncode())){g[k.getRecordParam()]=k.encodeRecords(d)}if(k.getAutoAppendParams()){a=Ext.urlAppend(a,Ext.Object.toQueryString(g))}return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.data.JsonP.abort(a.getRawRequest())}},encodeRecords:function(b){var d=[],c=0,a=b.length;for(;c<a;c++){d.push(Ext.encode(b[c].getData()))}return d}},0,0,0,0,["proxy.jsonp","proxy.scripttag"],0,[Ext.data.proxy,"JsonP",Ext.data,"ScriptTagProxy"],0));(Ext.cmd.derive("Ext.data.JsonPStore",Ext.data.Store,{constructor:function(a){a=Ext.apply({proxy:{type:"jsonp",reader:"json"}},a);Ext.data.Store.prototype.constructor.call(this,a)}},1,0,0,0,["store.jsonp"],0,[Ext.data,"JsonPStore"],0));(Ext.cmd.derive("Ext.data.JsonStore",Ext.data.Store,{constructor:function(a){a=Ext.apply({proxy:{type:"ajax",reader:"json",writer:"json"}},a);Ext.data.Store.prototype.constructor.call(this,a)}},1,0,0,0,["store.json"],0,[Ext.data,"JsonStore"],0));(Ext.cmd.derive("Ext.data.ModelManager",Ext.Base,{alternateClassName:"Ext.ModelMgr",singleton:true,deprecated:{5:{methods:{clear:null,create:function(c,b,d){var a=b;if(!a.isEntity){a=this.getModel(b||c.name)}return a.createWithId(d,c)},each:function(b,a){Ext.data.Model.schema.eachEntity(b,a)},get:function(a){return this.getModel(a)},getCount:function(){return Ext.data.Model.schema.entityCount},getModel:function(a){return Ext.data.schema.Schema.lookupEntity(a)},isRegistered:function(a){return !!this.getModel(a)}}}}},0,0,0,0,0,0,[Ext.data,"ModelManager",Ext,"ModelMgr"],0));(Ext.cmd.derive("Ext.data.NodeInterface",Ext.Base,{statics:{decorate:function(b){var d=Ext.data.schema.Schema.lookupEntity(b),g=d.prototype,a,c,e;if(!d.prototype.isObservable){d.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(g.isNode){return}a=g.idProperty;c=d.getField(a);e=c.type;d.override(this.getPrototypeBody());d.addFields([{name:"parentId",type:e,defaultValue:null,allowNull:c.allowNull},{name:"index",type:"int",defaultValue:-1,persist:false,convert:null},{name:"depth",type:"int",defaultValue:0,persist:false,convert:null},{name:"expanded",type:"bool",defaultValue:false,persist:false,convert:null},{name:"expandable",type:"bool",defaultValue:true,persist:false,convert:null},{name:"checked",type:"auto",defaultValue:null,persist:false,convert:null},{name:"leaf",type:"bool",defaultValue:false},{name:"cls",type:"string",defaultValue:"",persist:false,convert:null},{name:"iconCls",type:"string",defaultValue:"",persist:false,convert:null},{name:"icon",type:"string",defaultValue:"",persist:false,convert:null},{name:"root",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"isLast",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"isFirst",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"allowDrop",type:"boolean",defaultValue:true,persist:false,convert:null},{name:"allowDrag",type:"boolean",defaultValue:true,persist:false,convert:null},{name:"loaded",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"loading",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"href",type:"string",defaultValue:"",persist:false,convert:null},{name:"hrefTarget",type:"string",defaultValue:"",persist:false,convert:null},{name:"qtip",type:"string",defaultValue:"",persist:false,convert:null},{name:"qtitle",type:"string",defaultValue:"",persist:false,convert:null},{name:"qshowDelay",type:"int",defaultValue:0,persist:false,convert:null},{name:"children",type:"auto",defaultValue:null,persist:false,convert:null},{name:"visible",type:"boolean",defaultValue:true,persist:false},{name:"text",type:"string",persist:false}])},getPrototypeBody:function(){var a={idchanged:true,append:true,remove:true,move:true,insert:true,beforeappend:true,beforeremove:true,beforemove:true,beforeinsert:true,expand:true,collapse:true,beforeexpand:true,beforecollapse:true,sort:true},b={silent:true};return{isNode:true,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var c=this;c.mixins.observable.constructor.call(c);c.callParent(arguments);c.childNodes=[];return c},createNode:function(c){var j=this,h=j.childType,m,k,e,l,i,g,d=j.self;if(!c.isModel){if(h){d=j.schema.getEntity(h)}else{m=j.getTreeStore();k=m&&m.getProxy().getReader();e=j.getProxy();l=e?e.getReader():null;i=!k||(l&&l.initialConfig.typeProperty)?l:k;if(i){g=i.getTypeProperty();if(g){d=i.getChildType(j.schema,c,g)}}}c=new d(c)}if(!c.childNodes){c.firstChild=c.lastChild=c.parentNode=c.previousSibling=c.nextSibling=null;c.childNodes=[]}return c},isLeaf:function(){return this.get("leaf")===true},setFirstChild:function(c){this.firstChild=c},setLastChild:function(c){this.lastChild=c},updateInfo:function(j,u){var w=this,d=w.data,v=d.depth,g={},e=w.childNodes,t=e.length,k=w.phantom,r=w.fields,h=w.modified||(w.modified={}),p,o,c,l,x,m=u.parentId,n,q,s;for(p in u){c=r[w.fieldOrdinals[p]];o=u[p];q=c&&c.persist;l=d[p];n=q&&(p==="index")&&(l!==-1)&&(m&&m!==h.parentId);if(!n&&w.isEqual(l,o)){continue}d[p]=o;if(q){if(!n&&h.hasOwnProperty(p)){if(w.isEqual(h[p],o)){delete h[p];w.dirty=false;for(x in h){if(h.hasOwnProperty(x)){w.dirty=true;break}}}}else{w.dirty=true;h[p]=l}}}if(j){w.commit();w.phantom=k}if(w.data.depth!==v){g={depth:w.data.depth+1};for(s=0;s<t;s++){e[s].updateInfo(j,g)}}},isLast:function(){return this.get("isLast")},isFirst:function(){return this.get("isFirst")},hasChildNodes:function(){return !this.isLeaf()&&this.childNodes.length>0},isExpandable:function(){var c=this;if(c.get("expandable")){return !(c.isLeaf()||(c.isLoaded()&&!c.phantom&&!c.hasChildNodes()))}return false},triggerUIUpdate:function(){this.callJoined("afterEdit",[])},appendChild:function(g,o,h){var m=this,j,l,k,n,c,q={isLast:true,parentId:m.getId(),depth:(m.data.depth||0)+1},p,e=m.getTreeStore(),d=e&&e.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(g)){l=g.length;p=new Array(l);m.callTreeStore("beginFill");for(j=0;j<l;j++){p[j]=m.appendChild(g[j],o,h)}m.callTreeStore("endFill",[p])}else{g=m.createNode(g);if(o!==true&&m.fireEventArgs("beforeappend",[m,g])===false){Ext.resumeLayouts(true);return false}k=m.childNodes.length;n=g.parentNode;if(n){if(o!==true&&g.fireEventArgs("beforemove",[g,n,m,k])===false){Ext.resumeLayouts(true);return false}if(n.removeChild(g,false,o,n.getTreeStore()===e)===false){Ext.resumeLayouts(true);return false}}e&&e.beginUpdate();k=m.childNodes.length;if(k===0){m.setFirstChild(g)}m.childNodes[k]=g;g.parentNode=m;g.nextSibling=null;m.setLastChild(g);c=m.childNodes[k-1];if(c){g.previousSibling=c;c.nextSibling=g;c.updateInfo(h,{isLast:false});if(!d){c.triggerUIUpdate()}}else{g.previousSibling=null}q.isFirst=k===0;q.index=k;g.updateInfo(h,q);if(m.isLeaf()){m.set("leaf",false)}if(!m.isLoaded()){if(d){m.data.loaded=true}else{m.set("loaded",true)}}else{if(m.childNodes.length===1&&!d){m.triggerUIUpdate()}}if(k&&m.childNodes[k-1].isExpanded()&&!d){m.childNodes[k-1].cascadeBy(m.triggerUIUpdate)}if(e){e.registerNode(m,!d);if(d){e.registerNode(g)}}if(o!==true){m.fireEventArgs("append",[m,g,k]);if(n){g.fireEventArgs("move",[g,n,m,k])}}m.callTreeStore("onNodeAppend",[g,k]);p=g;if(e){e.endUpdate()}}Ext.resumeLayouts(true);return p},getOwnerTree:function(){var c=this.getTreeStore();if(c){return c.ownerTree}},getTreeStore:function(){var c=this;while(c&&!c.treeStore){c=c.parentNode}return c&&c.treeStore},removeChild:function(h,e,p,o){var n=this,m=n.indexOf(h),k,j,c,g=n.getTreeStore(),d=g&&g.bulkUpdate,l;if(m===-1||(p!==true&&n.fireEventArgs("beforeremove",[n,h,!!o])===false)){return false}Ext.suspendLayouts();g&&g.beginUpdate();Ext.Array.erase(n.childNodes,m,1);if(n.firstChild===h){n.setFirstChild(h.nextSibling)}if(n.lastChild===h){n.setLastChild(h.previousSibling)}c=h.previousSibling;if(c){h.previousSibling.nextSibling=h.nextSibling}if(h.nextSibling){h.nextSibling.previousSibling=h.previousSibling;if(m===0){h.nextSibling.updateInfo(false,{isFirst:true})}for(k=m,j=n.childNodes.length;k<j;k++){n.childNodes[k].updateInfo(false,{index:k})}}else{if(c){c.updateInfo(false,{isLast:true});if(!d){if(c.isExpanded()){c.cascadeBy(n.triggerUIUpdate)}else{c.triggerUIUpdate()}}}}if(!n.childNodes.length&&!d){n.triggerUIUpdate()}Ext.resumeLayouts(true);if(p!==true){l={parentNode:h.parentNode,previousSibling:h.previousSibling,nextSibling:h.nextSibling};n.callTreeStore("beforeNodeRemove",[[h],!!o]);h.previousSibling=h.nextSibling=h.parentNode=null;n.fireEventArgs("remove",[n,h,!!o,l]);n.callTreeStore("onNodeRemove",[[h],!!o])}if(e){h.erase(true)}else{h.clear()}if(!o){h.set({parentId:null,lastParentId:n.getId()},b)}if(g){g.endUpdate()}return h},copy:function(g,e){var j=this,d=j.callParent([g]),c=j.childNodes?j.childNodes.length:0,h;if(e){for(h=0;h<c;h++){d.appendChild(j.childNodes[h].copy(undefined,true))}}return d},clear:function(d,c){var e=this,g;e.parentNode=e.previousSibling=e.nextSibling=null;if(d){e.firstChild=e.lastChild=e.childNodes=null}if(c){e.firstChild=e.lastChild=null;e.childNodes.length=0;if(e.data){e.data.children=null}}},drop:function(){var h=this,k=h.childNodes,d=h.parentNode,c=k?k.length:0,e,g,j;h.callParent();if(d){j=h.getTreeStore();d.removeChild(h)}else{if(h.get("root")){j=h.getTreeStore();j.setRoot(null)}}j&&j.beginUpdate();for(e=0;e<c;e++){g=k[e];g.clear();g.drop()}j&&j.endUpdate()},erase:function(d){var h=this,j=h.childNodes,c=j&&j.length,e,g;h.remove();h.clear(true);h.callParent([d]);for(e=0;e<c;e++){g=j[e];g.parentNode=null;g.erase(d)}},insertBefore:function(g,l,p){var m=this,k=m.indexOf(l),n=g.parentNode,o=k,h,c,j,e=m.getTreeStore(),d=e&&e.bulkUpdate;if(!l){return m.appendChild(g)}if(g===l){return false}g=m.createNode(g);if(p!==true&&m.fireEventArgs("beforeinsert",[m,g,l])===false){return false}if(n===m&&m.indexOf(g)<k){o--}if(n){if(p!==true&&g.fireEventArgs("beforemove",[g,n,m,k,l])===false){return false}if(n.removeChild(g,false,p,n.getTreeStore()===e)===false){return false}}e&&e.beginUpdate();if(o===0){m.setFirstChild(g)}Ext.Array.splice(m.childNodes,o,0,g);g.parentNode=m;g.nextSibling=l;l.previousSibling=g;c=m.childNodes[o-1];if(c){g.previousSibling=c;c.nextSibling=g}else{g.previousSibling=null}g.updateInfo(false,{parentId:m.getId(),index:o,isFirst:o===0,isLast:false,depth:(m.data.depth||0)+1});for(j=o+1,h=m.childNodes.length;j<h;j++){m.childNodes[j].updateInfo(false,{index:j})}if(!m.isLoaded()){if(d){m.data.loaded=true}else{m.set("loaded",true)}}else{if(m.childNodes.length===1&&!d){m.triggerUIUpdate()}}if(e){e.registerNode(m,!d)}if(p!==true){m.fireEventArgs("insert",[m,g,l]);if(n){g.fireEventArgs("move",[g,n,m,o,l])}}m.callTreeStore("onNodeInsert",[g,o]);if(e){e.endUpdate()}return g},insertChild:function(c,e){var d=this.childNodes[c];if(d){return this.insertBefore(e,d)}else{return this.appendChild(e)}},isLastVisible:function(){var e=this,c=e.data.isLast,d=e.nextSibling;if(!c&&e.getTreeStore().isFiltered()){while(d){if(d.data.visible){return false}d=d.nextSibling}return true}return c},remove:function(d,e){var g=this,c=g.parentNode;if(c){c.removeChild(g,d,e)}else{if(d){g.erase(true)}}return g},removeAll:function(c,m,g){var k=this,l=k.childNodes,j=l.length,e,d,h;if(!j){return}if(!g){d=k.getTreeStore();if(d){d.beginUpdate();d.suspendEvent("remove");k.callTreeStore("beforeNodeRemove",[l,false])}}for(h=0;h<j;++h){e=l[h];e.previousSibling=e.nextSibling=e.parentNode=null;k.fireEventArgs("remove",[k,e,false]);if(c){e.erase(true)}else{e.removeAll(false,m,true)}}if(!g&&d){d.resumeEvent("remove");k.callTreeStore("onNodeRemove",[l,false]);d.endUpdate()}k.firstChild=k.lastChild=null;l.length=0;if(!g){k.triggerUIUpdate()}return k},getChildAt:function(c){return this.childNodes[c]},replaceChild:function(c,g,e){var d=g?g.nextSibling:null;this.removeChild(g,false,e);this.insertBefore(c,d,e);return g},indexOf:function(c){return Ext.Array.indexOf(this.childNodes,c)},indexOfId:function(g){var e=this.childNodes,c=e.length,d=0;for(;d<c;++d){if(e[d].getId()===g){return d}}return -1},getPath:function(g,e){g=g||this.idProperty;e=e||"/";var d=[this.get(g)],c=this.parentNode;while(c){d.unshift(c.get(g));c=c.parentNode}return e+d.join(e)},getDepth:function(){return this.get("depth")},bubble:function(e,d,c){var g=this;while(g){if(e.apply(d||g,c||[g])===false){break}g=g.parentNode}},cascade:function(){if(Ext.isDefined(Ext.global.console)){Ext.global.console.warn("Ext.data.Node: cascade has been deprecated. Please use cascadeBy instead.")}return this.cascadeBy.apply(this,arguments)},cascadeBy:function(j,e,c,l){var h=this;if(arguments.length===1&&!Ext.isFunction(j)){l=j.after;e=j.scope;c=j.args;j=j.before}if(!j||j.apply(e||h,c||[h])!==false){var k=h.childNodes,g=k.length,d;for(d=0;d<g;d++){k[d].cascadeBy.call(k[d],j,e,c,l)}if(l){l.apply(e||h,c||[h])}}},eachChild:function(g,e,c){var j=this.childNodes,h=j.length,d;for(d=0;d<h;d++){if(g.apply(e||this,c||[j[d]])===false){break}}},findChild:function(d,e,c){return this.findChildBy(function(){return this.get(d)==e},null,c)},findChildBy:function(k,j,d){var h=this.childNodes,c=h.length,g=0,l,e;for(;g<c;g++){l=h[g];if(k.call(j||l,l)===true){return l}else{if(d){e=l.findChildBy(k,j,d);if(e!==null){return e}}}}return null},contains:function(c){return c.isAncestor(this)},isAncestor:function(c){var d=this.parentNode;while(d){if(d===c){return true}d=d.parentNode}return false},sort:function(m,e,l){var j=this,k=j.childNodes,h=k.length,g,d,c={isFirst:true};if(h>0){if(!m){m=j.getTreeStore().getSortFn()}Ext.Array.sort(k,m);j.setFirstChild(k[0]);j.setLastChild(k[h-1]);for(g=0;g<h;g++){d=k[g];d.previousSibling=k[g-1];d.nextSibling=k[g+1];c.isLast=(g===h-1);c.index=g;d.updateInfo(false,c);c.isFirst=false;if(e&&!d.isLeaf()){d.sort(m,true,true)}}if(l!==true){j.fireEventArgs("sort",[j,k]);j.callTreeStore("onNodeSort",[k])}}},isExpanded:function(){return this.get("expanded")},isLoaded:function(){return this.get("loaded")},isBranchLoaded:function(){var c=!this.isLeaf()&&this.isLoaded();if(c){this.cascadeBy(function(d){if(!d.isLeaf()){c=c||d.isBranchLoaded()}return c})}return c},isLoading:function(){return this.get("loading")},isRoot:function(){return !this.parentNode},isVisible:function(){var c=this.parentNode;while(c){if(!c.isExpanded()){return false}c=c.parentNode}return true},expand:function(c,i,d){var e=this,g,h;if(!e.isLeaf()){if(e.isLoading()){e.on("expand",function(){e.expand(c,i,d)},e,{single:true})}else{if(!e.isExpanded()){if(e.fireEventArgs("beforeexpand",[e])!==false){if(c){if(e.parentNode&&e.parentNode.isSynchronousRecursiveExpand){e.isSynchronousRecursiveExpand=true}else{g=e.getTreeStore();if(g.getProxy().isSynchronous||e.isBranchLoaded()){e.isSynchronousRecursiveExpand=true;g.suspendEvent("add");h=true}}}e.callTreeStore("onBeforeNodeExpand",[e.onChildNodesAvailable,e,[c,i,d]]);if(h){g.resumeEvent("add");g.fireEvent("refresh",g)}e.isSynchronousRecursiveExpand=false}}else{if(c){e.expandChildren(true,i,d)}else{Ext.callback(i,d||e,[e.childNodes])}}}}else{Ext.callback(i,d||e)}},onChildNodesAvailable:function(g,e,m,n){var k=this,d=k.getTreeStore(),c=d&&d.bulkUpdate,j,h,l;Ext.suspendLayouts();for(j=k.parentNode;j;j=j.parentNode){if(!j.isExpanded()){(l||(l=[])).unshift(j)}}if(c){k.data.expanded=true}else{k.set("expanded",true)}if(l){for(h=1;h<l.length;h++){j=l[h];if(c){j.data.expanded=true}else{j.set("expanded",true)}}l[0].expand();for(h=1;h<l.length;h++){j=l[h];j.fireEventArgs("expand",[j,j.childNodes])}}else{k.callTreeStore("onNodeExpand",[g,false])}k.fireEventArgs("expand",[k,g]);if(e){k.expandChildren(true,m,n)}else{Ext.callback(m,n||k,[k.childNodes])}Ext.resumeLayouts(true)},expandChildren:function(h,o,p,j){var m=this,n,k,d,c,l,g,e;if(Ext.isBoolean(o)){n=o;o=p;p=j;j=n}if(j===undefined){e=m.getTreeStore();j=e&&e.singleExpand}d=m.childNodes;c=[];l=j?Math.min(d.length,1):d.length;for(k=0;k<l;++k){g=d[k];if(!g.isLeaf()){c[c.length]=g}}l=c.length;for(k=0;k<l;++k){c[k].expand(h)}if(o){Ext.callback(o,p||m,[m.childNodes])}},collapse:function(e,m,n){var l=this,j=l.isExpanded(),d=l.getTreeStore(),c=d&&d.bulkUpdate,k=l.childNodes.length,g,h;if(!l.isLeaf()&&((!j&&e)||l.fireEventArgs("beforecollapse",[l])!==false)){Ext.suspendLayouts();if(l.isExpanded()){if(e){h=function(){for(g=0;g<k;g++){l.childNodes[g].setCollapsed(true)}};if(m){m=Ext.Function.createSequence(h,Ext.Function.bind(m,n,[l.childNodes]))}else{m=h}}else{if(m){m=Ext.Function.bind(m,n,[l.childNodes])}}if(c){l.data.expanded=false}else{l.set("expanded",false)}l.callTreeStore("onNodeCollapse",[l.childNodes,m,n]);l.fireEventArgs("collapse",[l,l.childNodes]);m=null}else{if(e){for(g=0;g<k;g++){l.childNodes[g].setCollapsed(true)}}}Ext.resumeLayouts(true)}Ext.callback(m,n||l,[l.childNodes])},setCollapsed:function(d){var g=this,c=g.childNodes.length,e;if(!g.isLeaf()&&g.fireEventArgs("beforecollapse",[g])!==false){g.data.expanded=false;g.fireEventArgs("collapse",[g,g.childNodes]);if(d){for(e=0;e<c;e++){g.childNodes[e].setCollapsed(true)}}}},collapseChildren:function(e,l,m){var k=this,h,c=k.childNodes,j=c.length,g=[],d;for(h=0;h<j;++h){d=c[h];if(!d.isLeaf()&&d.isLoaded()&&d.isExpanded()){g.push(d)}}j=g.length;if(j){for(h=0;h<j;++h){d=g[h];if(h===j-1){d.collapse(e,l,m)}else{d.collapse(e)}}}else{Ext.callback(l,m)}},fireEvent:function(c){return this.fireEventArgs(c,Ext.Array.slice(arguments,1))},fireEventArgs:function(d,g){var i=Ext.mixin.Observable.prototype.fireEventArgs,c,h,e;if(a[d]){for(h=this;c!==false&&h;h=(e=h).parentNode){if(h.hasListeners&&h.hasListeners[d]){c=i.call(h,d,g)}}if(c!==false){h=e.getTreeStore();if(h&&h.hasListeners&&h.hasListeners[d="node"+d]){c=h.fireEventArgs(d,g)}}return c}else{return i.apply(this,arguments)}},serialize:function(e){var j=e||new Ext.data.writer.Json({writeAllFields:true}),d=j.getRecordData(this),k=this.childNodes,c=k.length,h,g;if(c>0){d.children=h=[];for(g=0;g<c;g++){h.push(k[g].serialize(j))}}return d},callTreeStore:function(h,c){var e=this,g=e.getTreeStore(),d=g&&g[h];if(g&&d){c=c||[];if(c[0]!==e){c.unshift(e)}d.apply(g,c)}},privates:{join:function(c){if(c.isTreeStore){if(this.isRoot()){this.treeStore=this.store=c}}else{this.callParent([c])}},callJoined:function(d,c){this.callParent([d,c]);this.callTreeStore(d,c)}}}}}},0,0,0,0,0,0,[Ext.data,"NodeInterface"],0));(Ext.cmd.derive("Ext.data.NodeStore",Ext.data.Store,{isNodeStore:true,config:{node:null,recursive:false,rootVisible:false,folderSort:false},isExpandingOrCollapsing:0,getTotalCount:function(){return this.getCount()},afterEdit:function(a,b){if(this.getNode()&&b){if(Ext.Array.indexOf(b,"loaded")!==-1){return this.add(this.retrieveChildNodes(a))}if(Ext.Array.indexOf(b,"expanded")!==-1){return this.filter()}if(Ext.Array.indexOf(b,"sorted")!==-1){return this.sort()}}Ext.data.Store.prototype.afterEdit.apply(this,arguments)},afterReject:function(a){var b=this;if(b.contains(a)){b.onUpdate(a,Ext.data.Model.REJECT,null);b.fireEvent("update",b,a,Ext.data.Model.REJECT,null)}},afterCommit:function(a,c){var b=this;if(!c){c=null}if(b.contains(a)){b.onUpdate(a,Ext.data.Model.COMMIT,c);b.fireEvent("update",b,a,Ext.data.Model.COMMIT,c)}},onNodeAppend:function(a,b){this.add([b].concat(this.retrieveChildNodes(b)))},onNodeInsert:function(a,b){this.add([b].concat(this.retrieveChildNodes(b)))},onNodeRemove:function(a,b){this.remove([b].concat(this.retrieveChildNodes(b)))},onNodeExpand:function(b,a){this.loadRecords(a)},applyNode:function(a){if(a){Ext.data.NodeInterface.decorate(a)}return a},updateNode:function(b,d){var a=this,c;if(d&&!d.isDestroyed){d.un({append:"onNodeAppend",insert:"onNodeInsert",remove:"onNodeRemove",load:"onNodeLoad",scope:a});d.unjoin(a)}if(b){b.on({scope:a,append:"onNodeAppend",insert:"onNodeInsert",remove:"onNodeRemove",load:"onNodeLoad"});b.join(a);c=[];if(b.childNodes.length){c=c.concat(a.retrieveChildNodes(b))}if(a.getRootVisible()){c.push(b)}else{if(b.isLoaded()||b.isLoading()){b.set("expanded",true)}}a.getData().clear();a.fireEvent("clear",a);a.suspendEvents();a.add(c);a.resumeEvents();if(c.length===0){a.loaded=b.loaded=true}a.fireEvent("refresh",a,a.data)}},retrieveChildNodes:function(a){var d=this.getNode(),b=this.getRecursive(),c=[],e=a;if(!a.childNodes.length||(!b&&a!==d)){return c}if(!b){return a.childNodes}while(e){if(e._added){delete e._added;if(e===a){break}else{e=e.nextSibling||e.parentNode}}else{if(e!==a){c.push(e)}if(e.firstChild){e._added=true;e=e.firstChild}else{e=e.nextSibling||e.parentNode}}}return c},isVisible:function(b){var a=b.parentNode;if(!this.getRecursive()&&a!==this.getNode()){return false}while(a){if(!a.isExpanded()){return false}if(a===this.getNode()){break}a=a.parentNode}return true}},0,0,0,0,["store.node"],0,[Ext.data,"NodeStore"],0));(Ext.cmd.derive("Ext.data.Request",Ext.Base,{config:{action:undefined,params:undefined,method:"GET",url:null,operation:null,proxy:null,disableCaching:false,headers:{},callbackKey:null,rawRequest:null,jsonData:undefined,xmlData:undefined,withCredentials:false,username:null,password:null,binary:false,callback:null,scope:null,timeout:30000,records:null,directFn:null,args:null,useDefaultXhrHeader:null},constructor:function(a){this.initConfig(a)},getParam:function(a){var c=this.getParams(),b;if(c){return c[a]}return b},setParam:function(a,b){var c=this.getParams()||{};c[a]=b;this.setParams(c)}},1,0,0,0,0,0,[Ext.data,"Request"],0));(Ext.cmd.derive("Ext.mixin.Queryable",Ext.Base,{mixinId:"queryable",isQueryable:true,query:function(a){a=a||"*";return Ext.ComponentQuery.query(a,this.getQueryRoot())},queryBy:function(g,e){var c=[],b=this.getQueryRoot().getRefItems(true),d=0,a=b.length,h;for(;d<a;++d){h=b[d];if(g.call(e||h,h)!==false){c.push(h)}}return c},queryById:function(a){return this.down(Ext.makeIdSelector(a))},child:function(a){var b=this.getQueryRoot().getRefItems();if(a&&a.isComponent){return this.matchById(b,a.getItemId())}if(a){b=Ext.ComponentQuery.query(a,b)}if(b.length){return b[0]}return null},down:function(a){if(a&&a.isComponent){return this.matchById(this.getRefItems(true),a.getItemId())}a=a||"";return this.query(a)[0]||null},visitPreOrder:function(a,d,c,b){Ext.ComponentQuery._visit(true,a,this.getQueryRoot(),d,c,b)},visitPostOrder:function(a,d,c,b){Ext.ComponentQuery._visit(false,a,this.getQueryRoot(),d,c,b)},getRefItems:function(){return[]},getQueryRoot:function(){return this},privates:{matchById:function(b,e){var a=b.length,c,d;for(c=0;c<a;++c){d=b[c];if(d.getItemId()===e){return d}}return null}}},0,0,0,0,0,0,[Ext.mixin,"Queryable"],0));(Ext.cmd.derive("Ext.data.TreeModel",Ext.data.Model,{getRefItems:function(){return this.childNodes},getRefOwner:function(){return this.parentNode}},0,0,0,0,0,[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.data,"TreeModel"],function(){Ext.data.NodeInterface.decorate(this)}));(Ext.cmd.derive("Ext.data.TreeStore",Ext.data.NodeStore,{isTreeStore:true,config:{root:null,rootVisible:false,recursive:true,defaultRootProperty:"children",parentIdProperty:null,clearOnLoad:true,clearRemovedOnLoad:true,nodeParam:"node",defaultRootId:"root",defaultRootText:"Root",folderSort:false},filterer:"topdown",lazyFill:false,implicitModelSuperCls:"Ext.data.TreeModel",fillCount:0,bulkUpdate:0,_silentOptions:{silent:true},constructor:function(a){var b=this;b.byIdMap={};Ext.data.NodeStore.prototype.constructor.call(this,a)},applyFields:function(c,a){var b=this.getDefaultRootProperty();if(c){if(b!==this.self.prototype.config.defaultRootProperty){c=c.concat({name:b,type:"auto",defaultValue:null,persist:false})}}Ext.data.NodeStore.prototype.applyFields.call(this,c,a)},onSorterEndUpdate:function(){var c=this,a=c.getSorters(),d=a.getRange(),b=c.getRoot(),e=c.getFolderSort();c.fireEvent("beforesort",c,d);if(b&&(e||d.length)){if(c.getRemoteSort()){if(d.length){c.attemptLoad({callback:function(){c.fireEvent("sort",c,d)}})}}else{b.sort(this.getSortFn(),true);c.fireEvent("datachanged",c);c.fireEvent("refresh",c);c.fireEvent("sort",c,d)}}else{c.fireEvent("sort",c,d)}},updateFolderSort:function(a){this.needsFolderSort=a;this.onSorterEndUpdate()},getSortFn:function(){return this._sortFn||(this._sortFn=this.createSortFn())},createSortFn:function(){var a=this,b=this.sorters.getSortFn();return function(e,d){var g,h,c=0;if(a.needsFolderSort){g=e.data.leaf?1:0;h=d.data.leaf?1:0;c=g-h}if(a.needsIndexSort&&c===0){c=e.data.index-d.data.index}return c||b(e,d)}},afterEdit:function(c,b){var a=this;if(a.getRoot()&&a.needsLocalFilter()){a.onFilterEndUpdate(a.getFilters())}Ext.data.NodeStore.prototype.afterEdit.call(this,c,b)},fireChangeEvent:function(a){return !!this.byIdMap[a.id]},updateRootVisible:function(b){var a=this.getRoot(),c;if(a){c=this.getData();if(b){c.insert(0,a)}else{c.remove(a)}}},updateTrackRemoved:function(a){Ext.data.NodeStore.prototype.updateTrackRemoved.apply(this,arguments);this.removedNodes=this.removed;this.removed=null},onDestroyRecords:function(b,a,c){if(c){this.removedNodes.length=0}},updateProxy:function(c,b){var a;if(c){if(c.setIdParam){c.setIdParam(this.getNodeParam())}a=c.getReader();if(Ext.isEmpty(a.getRootProperty())){a.setRootProperty(this.getDefaultRootProperty())}}Ext.data.NodeStore.prototype.updateProxy.call(this,c,b)},setProxy:function(a){this.changingProxy=true;(arguments.callee.$previous||Ext.data.NodeStore.prototype.setProxy).call(this,a);this.changingProxy=false},applyModel:function(a,b){a=Ext.data.NodeStore.prototype.applyModel.call(this,a,b);if(!a&&!this.destroying){a=Ext.data.TreeModel}return a},updateModel:function(a){if(a){var b=a.prototype.isNode;Ext.data.NodeInterface.decorate(a);if(!b&&!this.changingProxy){this.getProxy().getReader().buildExtractors(true)}}},onFilterEndUpdate:function(g){var e=this,d=g.length,a=e.getRoot(),j,c,h,b;if(!e.getRemoteFilter()){if(d){e.doFilter(a)}else{a.cascadeBy({after:function(i){i.set("visible",true,e._silentOptions)}})}if(d){h=[];j=a.childNodes;for(b=0,d=j.length;b<d;b++){c=j[b];if(c.get("visible")){h.push(c)}}}else{h=a.childNodes}e.onNodeFilter(a,h);a.fireEvent("filterchange",a,h);e.fireEvent("filterchange",e,g);e.suppressNextFilter=true;Ext.data.NodeStore.prototype.onFilterEndUpdate.call(this,g);e.suppressNextFilter=false}else{Ext.data.NodeStore.prototype.onFilterEndUpdate.call(this,g)}},onNodeFilter:function(a,e){var c=this,d=c.getData(),b=[];if(c.getRootVisible()&&a.get("visible")){b.push(a)}c.handleNodeExpand(a,e,b);c.suspendEvents();d.splice(0,d.getCount(),b);c.resumeEvents();if(!c.suppressNextFilter){c.fireEvent("datachanged",c);c.fireEvent("refresh",c)}},onBeforeNodeExpand:function(b,k,l,g){var h=this,i,d,j,e,a,c;if(b.isLoaded()){c=[b.childNodes];if(g){c.push.apply(c,g)}Ext.callback(k,l||b,c)}else{if(b.isLoading()){h.on("load",function(){c=[b.childNodes];if(g){c.push.apply(c,g)}Ext.callback(k,l||b,c)},h,{single:true,priority:1001})}else{i=h.getProxy().getReader();d=b.getProxy();j=d?d.getReader():null;e=j&&j.initialConfig.rootProperty?j:i;a=e.getRoot(b.raw||b.data);if(a||(b.phantom&&!b.isRoot())){if(a){h.fillNode(b,e.extractData(a,{model:b.childType,recordCreator:h.recordCreator}))}c=[b.childNodes];if(g){c.push.apply(c,g)}Ext.callback(k,l||b,c)}else{if(b.isRoot()){h.clearLoadTask()}h.read({node:b,onChildNodesAvailable:function(){delete h.lastOptions.onChildNodesAvailable;c=[b.childNodes];if(g){c.push.apply(c,g)}Ext.callback(k,l||b,c)}})}}}},onNodeExpand:function(d,b){var e=this,a=e.indexOf(d)+1,c=[];e.handleNodeExpand(d,b,c);if(!e.refreshCounter&&d.isRoot()&&!d.get("visible")){e.loadRecords(c)}else{e.insert(a,c)}},handleNodeExpand:function(e,b,d){var h=this,g=b?b.length:0,c,a;if(e!==this.getRoot()&&!h.isVisible(e)){return}if(g){for(c=0;c<g;c++){a=b[c];if(a.get("visible")){d.push(a);if(a.isExpanded()){if(a.isLoaded()){h.handleNodeExpand(a,a.childNodes,d)}else{a.set("expanded",false);a.expand()}}}}}},onNodeCollapse:function(d,a,h,c){var e=this,b=e.indexOf(d)+1,g;if(!e.recursive&&d!==e.getRoot()){return}if(e.needsLocalFilter()){a=Ext.Array.filter(a,e.filterVisible)}if(a.length&&e.data.contains(a[0])){g=e.indexOfNextVisibleNode(d);e.removeAt(b,g-b)}Ext.callback(h,c)},indexOfNextVisibleNode:function(b){var a;while(b.parentNode){for(a=b.nextSibling;a&&!a.get("visible");a=a.nextSibling){}if(a){return this.indexOf(a)}b=b.parentNode}return this.getCount()},indexOfPreviousVisibleNode:function(b){var a;for(a=b;a&&!a.get("visible");a=a.previousSibling){}if(a){if(a.isExpanded()&&a.lastChild){return this.indexOfPreviousVisibleNode(a.lastChild)}}else{a=b.parentNode}return this.indexOf(a)},filterNew:function(a){return !a.get("root")&&Ext.data.NodeStore.prototype.filterNew.call(this,a)},filterRejects:function(a){return !a.get("root")&&Ext.data.NodeStore.prototype.filterRejects.call(this,a)},getNewRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterNew,this)},getUpdatedRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterUpdated)},beforeNodeRemove:function(b,g){if(!Ext.isArray(g)){g=[g]}var e=this,a=g.length,d,c;for(d=0;!c&&d<a;d++){if(g[d].get("visible")){c=g[d]}}if(c){e.startRemoveIndex=e.indexOf(g[0]);e.lastRemoveIndexPlusOne=e.indexOfNextVisibleNode(g[g.length-1])}else{e.startRemoveIndex=-1;e.lastRemoveIndexPlusOne=0}},afterDrop:Ext.emptyFn,onNodeRemove:function(d,k,j){var h=this,e=h.removedNodes,g=k.length,a=h.startRemoveIndex,b=h.lastRemoveIndexPlusOne,c;h.suspendAutoSync();if(a!==-1){h.removeIsMove=j;h.removeAt(a,b-a);h.removeIsMove=false}for(c=0;c<g;c++){k[c].cascadeBy(function(i){h.unregisterNode(i);if(e&&!j){if(!i.phantom&&!i.erasing&&!h.loading){i.removedFrom=h.indexOf(i);e.push(i);h.needsSync=true}}})}h.resumeAutoSync()},onNodeAppend:function(b,c,a){this.onNodeInsert(b,c,a)},onNodeInsert:function(m,a,g){var h=this,c=a.raw||a.data,e=h.removedNodes,i,b,j,d,l,k;if(m&&h.needsLocalFilter()){h.doFilter(m)}h.beginUpdate();if(h.isVisible(a)){if(g===0||!a.previousSibling){k=h.indexOf(m)}else{k=h.indexOfPreviousVisibleNode(a.previousSibling)}h.insert(k+1,a);if(!a.isLeaf()&&a.isExpanded()){if(a.isLoaded()){h.onNodeExpand(a,a.childNodes)}else{if(!h.fillCount){a.set("expanded",false);a.expand()}}}}Ext.Array.remove(e,a);h.needsSync=h.needsSync||a.phantom||a.dirty;if(!a.isLeaf()&&!a.isLoaded()&&!h.lazyFill){i=h.getProxy().getReader();b=a.getProxy();j=b?b.getReader():null;d=j&&j.initialConfig.rootProperty?j:i;l=d.getRoot(c);if(l){h.fillNode(a,d.extractData(l,{model:a.childType,recordCreator:h.recordCreator}))}}h.endUpdate()},registerNode:function(g,a){var e=this,c,d,b;e.byIdMap[g.id]=g;if(a===true){c=g.childNodes;d=c.length;for(b=0;b<d;b++){e.registerNode(c[b],true)}}},unregisterNode:function(g,a){var e=this,c,d,b;delete e.byIdMap[g.id];if(a===true){c=g.childNodes;d=c.length;for(b=0;b<d;b++){e.unregisterNode(c[b],true)}}},onNodeSort:function(b,c){var a=this;a.suspendAutoSync();if((a.indexOf(b)!==-1&&b.isExpanded())||(b===a.getRoot()&&!a.getRootVisible())){Ext.suspendLayouts();a.onNodeCollapse(b,c);a.onNodeExpand(b,c);Ext.resumeLayouts(true)}a.resumeAutoSync(a.autoSync)},applyRoot:function(e){var b=this,d=b.getModel(),a=d.prototype.idProperty,c=b.getDefaultRootId();if(e&&!e.isNode){e=Ext.apply({text:b.getDefaultRootText(),root:true,isFirst:true,isLast:true,depth:0,index:0,parentId:null,allowDrag:false},e);if(c&&e[a]===undefined){e[a]=c}e=new d(e)}return e},updateRoot:function(g,b){var d=this,e,a=!b,c;d.byIdMap={};d.getTrackRemoved();d.suspendEvent("add","remove");if(b&&b.isModel){if(d.rootVisible){c=[b]}else{c=b.childNodes}d.beforeNodeRemove(null,c);b.set("root",false);d.onNodeRemove(null,c);b.fireEvent("remove",null,b,false);b.fireEvent("rootchange",null);b.clearListeners();b.store=b.treeStore=null}d.getData().clear();if(g){if(g.fireEventArgs("beforeappend",[null,g])===false){g=null}else{e=g.parentNode;if(e){if(!e.removeChild(g,false,false,e.getTreeStore()===d)){return}}else{if((e=g.getTreeStore())&&e!==d&&g===e.getRoot()){e.setRoot(null)}}g.store=g.treeStore=d;g.set("root",true);g.updateInfo(true,{isFirst:true,isLast:true,depth:0,index:0,parentId:null});d.registerNode(g,true);g.fireEvent("append",null,g,false);g.fireEvent("rootchange",g);d.onNodeAppend(null,g,0);g.phantom=true}}d.fireEvent("rootchange",g,b);if(g&&(d.getAutoLoad()||g.isExpanded())){if(g.isLoaded()){d.onNodeExpand(g,g.childNodes);d.fireEvent("datachanged",d);d.fireEvent("refresh",d)}else{g.data.expanded=false;g.expand(false);if(g.isLoaded&&!d.getProxy().isSynchronous){d.fireEvent("datachanged",d);d.fireEvent("refresh",d)}}}else{if(!a){d.fireEvent("datachanged",d);d.fireEvent("refresh",d)}}d.resumeEvent("add","remove")},each:function(d,c,e){var a,b=0;if(e&&typeof e==="object"){a=e.collapsed;e=e.filtered}if(a){this.getRoot().cascadeBy(function(g){if(e===true||g.get("visible")){return d.call(c||g,g,b++)}})}else{return Ext.data.NodeStore.prototype.each.call(this,d,c,e)}},collect:function(d,b,g){var c,h={},a=[],i,e;if(b&&typeof b==="object"){c=b.collapsed;g=b.filtered;b=b.allowNull}if(c||g){this.getRoot().cascadeBy(function(j){if(g===true||j.get("visible")){e=j.get(d);i=String(e);if((b||!Ext.isEmpty(e))&&!h[i]){h[i]=1;a.push(e)}}if(!c&&!j.isExpanded()){return false}})}else{a=Ext.data.NodeStore.prototype.collect.call(this,d,b,g)}return a},getNodeById:function(a){return this.byIdMap[a]||null},findNode:function(h,g,d,c,b){if(Ext.isEmpty(g,false)){return null}if(g===this.model.idProperty&&arguments.length<3){return this.byIdMap[g]}var e=Ext.String.createRegex(g,d,c,b),a=null;Ext.Object.eachValue(this.byIdMap,function(i){if(i&&e.test(i.get(h))){a=i;return false}});return a},load:function(j){j=j||{};j.params=j.params||{};var g=this,a=j.node||g.getRoot(),h=j.callback,i=j.scope,d=g.getClearOnLoad(),e=a&&a.isRoot(),b,c;if(!a){g.setRoot({expanded:true});return}if(a.data.expanded&&!e){a.data.loaded=false;if(d){a.data.expanded=false}j.callback=function(l,k,m){if(!d){a.collapse()}a.expand();Ext.callback(h,i,[l,k,m])}}j.id=a.getId();if(g.getRemoteFilter()){filters=g.getFilters(false);if(filters&&filters.getCount()){j.filters=filters.getRange()}}if(g.getRemoteSort()){sorters=g.getSorters(false);if(sorters&&sorters.getCount()){j.sorters=sorters.getRange()}g.fireEvent("beforesort",g,j.sorters)}j=Ext.apply({node:j.node||a,internalScope:g,internalCallback:g.onProxyLoad},j);g.lastOptions=Ext.apply({},j);j.isRootLoad=e;b=g.createOperation("read",j);if(g.fireEvent("beforeload",g,b)!==false){g.loading=true;g.clearLoadTask();if(e){if(g.getClearRemovedOnLoad()){g.removedNodes.length=0}if(d){g.unregisterNode(a,true);a.clear(false,true);g.registerNode(a);c=true}}else{if(g.getTrackRemoved()&&g.getClearRemovedOnLoad()){g.clearRemoved(a)}if(d){a.removeAll(false)}}if(g.loading&&a){a.set("loading",true)}if(c){g.clearData(true);if(g.getRootVisible()){g.suspendEvents();g.add(a);g.resumeEvents()}}b.execute()}return g},reload:function(a){var b=Ext.apply({},a,this.lastOptions);b.node=this.getRoot();return this.load(b)},onProxyLoad:function(c){var h=this,j=c.initialConfig,d=c.wasSuccessful(),b=c.getRecords(),a=j.node,e=j.isRootLoad,i=c.getScope()||h,g=[b,c,d];if(h.isDestroyed){return}h.loading=false;a.set("loading",false);if(d){++h.loadCount;if(!h.getClearOnLoad()){b=h.cleanRecords(a,b)}if(h.getParentIdProperty()){b=h.treeify(a,b)}if(e){h.suspendEvent("add","update")}b=h.fillNode(a,b)}Ext.callback(j.onChildNodesAvailable,i,g);if(e){h.resumeEvent("add","update");h.callObservers("BeforePopulate");h.fireEvent("datachanged",h);h.fireEvent("refresh",h);h.callObservers("AfterPopulate")}h.fireEvent("load",h,b,d,c,a)},clearRemoved:function(b){var k=this,e=k.removedNodes,a=b.getId(),d=e.length,c=d,n={},h=[],m={},j,g,l;if(b===k.getRoot()){k.removedNodes.length=0;return}for(;c--;){j=e[c];m[j.getId()]=j}for(c=d;c--;){j=e[c];g=j;while(g&&g.getId()!==a){l=g.get("parentId")||g.get("lastParentId");g=g.parentNode||k.getNodeById(l)||m[l]}if(g){n[j.getId()]=j}}for(c=0;c<d;c++){j=e[c];if(!n[j.getId()]){h.push(j)}}k.removedNodes=h},fillNode:function(c,a){var b=this,d=a?a.length:0;++b.bulkUpdate;if(d){b.setupNodes(a)}if(b.bulkUpdate===1){c.set("loaded",true)}else{c.data.loaded=true}if(a.length){c.appendChild(a,undefined,true)}--b.bulkUpdate;return a},setupNodes:function(d){var h=this,g=h.getSorters(),j=false,b=d.length,a=h.sortOnLoad&&b>1&&!h.getRemoteSort()&&h.getFolderSort()||g.length,c=h.needsLocalFilter(),l,k,e;if(c){h.doFilter(d[0])}for(e=1;e<b;e++){l=d[e];k=d[e-1];if(c){h.doFilter(l)}j=l.data.index!==k.data.index}if(a){h.needsIndexSort=true;Ext.Array.sort(d,h.getSortFn());h.needsIndexSort=false}else{if(j){Ext.Array.sort(d,h.sortByIndex)}}},beginFill:function(){var a=this;if(!a.fillCount++){a.beginUpdate();a.suspendEvent("add","update");a.suspendAutoSync();a.fillArray=[]}},endFill:function(e,b){var g=this,h=g.fillArray,d,a,c;h.push(b);if(!--g.fillCount){g.resumeAutoSync();g.resumeEvent("add","update");for(d=0,a=h.length;d<a;d++){c=g.indexOf(h[d][0]);if(c!==-1){g.fireEvent("add",g,h[d],c)}}g.fillArray=null;g.endUpdate()}},sortByIndex:function(b,a){return b.data.index-a.data.index},onIdChanged:function(d,g,b){var e=d.childNodes,a=e&&e.length,c;Ext.data.NodeStore.prototype.onIdChanged.apply(this,arguments);delete this.byIdMap[g];this.byIdMap[b]=d;for(c=0;c<a;c++){e[c].set("parentId",b)}},treeify:function(j,e){var m=this,o=j.getId(),c=m.getParentIdProperty(),k=e.length,p=[],l={},g,d,h,n,a,b;for(g=0;g<k;g++){d=e[g];l[d.id]=d}for(g=0;g<k;g++){d=e[g];h=d.data[c];if(!(h||h===0)||h===o){p.push(d)}else{n=l[h];n.$children=n.$children||[];n.$children.push(d)}}for(a in l){d=l[a];b=d.$children;if(b){delete d.$children;m.setupNodes(b);d.appendChild(b)}m.registerNode(d)}m.setupNodes(p);return p},cleanRecords:function(g,b){var e={},j=g.childNodes,d=0,a=j.length,c=[],h;for(;d<a;++d){e[j[d].getId()]=true}for(d=0,a=b.length;d<a;++d){h=b[d];if(!e[h.getId()]){c.push(h)}}return c},removeAll:function(){this.suspendEvents();this.setRoot(null);this.resumeEvents();Ext.data.NodeStore.prototype.removeAll.call(this)},doSort:function(a){var b=this;if(b.getRemoteSort()){b.load()}else{b.tree.sort(a,true);b.fireEvent("datachanged",b);b.fireEvent("refresh",b)}b.fireEvent("sort",b,b.sorters.getRange())},filterVisible:function(a){return a.get("visible")},isVisible:function(c){var a=c.parentNode,d=c.data.visible,b=this.getRoot();while(d&&a){d=a.data.expanded&&a.data.visible;a=a.parentNode}return d&&!(c===b&&!this.getRootVisible())},commitChanges:function(){var a=this.removedNodes;if(a){a.length=0}Ext.data.NodeStore.prototype.commitChanges.call(this)},getRootNode:function(){return this.getRoot()},setRootNode:function(a){this.setRoot(a);return this.getRoot()},privates:{getRawRemovedRecords:function(){return this.removedNodes},recordCreator:function(a,b){return new b(a)},doFilter:function(a){this.filterNodes(a,this.getFilters().getFilterFn(),true)},filterNodes:function(b,l,g){var h=this,a=h.filterer==="bottomup",d=l(b)&&g||(b.isRoot()&&!h.getRootVisible()),k=b.childNodes,e=k&&k.length,c,j;if(e){for(c=0;c<e;++c){j=h.filterNodes(k[c],l,d||a)||j}if(a){d=j||d}}b.set("visible",d,h._silentOptions);return d},needsLocalFilter:function(){return !this.getRemoteFilter()&&this.getFilters().length},onRemoteFilterSet:function(a,c){var b=this.getData();b.setFilters(null);if(a){a.on("endupdate",this.onFilterEndUpdate,this)}},onRemoteSortSet:function(b,c){var a=this.getData();a.setSorters(null);if(b){b.on("endupdate",this.onSorterEndUpdate,this)}}},deprecated:{5:{properties:{tree:null}}}},1,0,0,0,["store.tree"],0,[Ext.data,"TreeStore"],0));(Ext.cmd.derive("Ext.data.Types",Ext.Base,{singleton:true},0,0,0,0,0,0,[Ext.data,"Types"],function(b){var a=Ext.data.SortTypes;Ext.apply(b,{stripRe:/[\$,%]/g,AUTO:{sortType:a.none,type:"auto"},STRING:{convert:function(d){var c=this.getAllowNull()?null:"";return(d===undefined||d===null)?c:String(d)},sortType:a.asUCString,type:"string"},INT:{convert:function(c){if(typeof c==="number"){return parseInt(c,10)}return c!==undefined&&c!==null&&c!==""?parseInt(String(c).replace(b.stripRe,""),10):(this.getAllowNull()?null:0)},sortType:a.none,type:"int"},FLOAT:{convert:function(c){if(typeof c==="number"){return c}return c!==undefined&&c!==null&&c!==""?parseFloat(String(c).replace(b.stripRe,""),10):(this.getAllowNull()?null:0)},sortType:a.none,type:"float"},BOOL:{convert:function(c){if(typeof c==="boolean"){return c}if(this.getAllowNull()&&(c===undefined||c===null||c==="")){return null}return c==="true"||c==1},sortType:a.none,type:"bool"},DATE:{convert:function(d){var e=this.getDateReadFormat()||this.getDateFormat(),c;if(!d){return null}if(d instanceof Date){return d}if(e){return Ext.Date.parse(d,e)}c=Date.parse(d);return c?new Date(c):null},sortType:a.asDate,type:"date"}});b.BOOLEAN=b.BOOL;b.INTEGER=b.INT;b.NUMBER=b.FLOAT}));(Ext.cmd.derive("Ext.data.Validation",Ext.data.Model,{isValidation:true,syncGeneration:0,attach:function(a){this.record=a;this.isBase=a.self===Ext.data.Model;delete this.data.id},getValidation:function(){return null},isValid:function(){var a=this;if(a.syncGeneration!==a.record.generation){a.refresh()}return !a.dirty},refresh:function(b){if(this.isBase){return}var u=this,v=u.data,d=u.record,l=d.fields,o=d.generation,t=d.data,k=d.validationSeparator,c=null,e,h,m,a,r,p,n,s,q,g,x,w;if(b||u.syncGeneration!==o){u.syncGeneration=o;for(p=0,q=l.length;p<q;++p){a=l[p];w=a.name;x=t[w];e=a.defaultInvalidMessage;m=0;if(!(w in v)){v[w]=h=true}else{h=v[w]}if(a.validate!==Ext.emptyFn){g=a.validate(x,k,null,d);if(g!==true){m=g||e}}if(!m){m=true}if(m!==h){(c||(c={}))[w]=m}}if(c){u.set(c)}}}},0,0,0,0,0,0,[Ext.data,"Validation"],0));(Ext.cmd.derive("Ext.dom.Helper",Ext.Base,function(){var a="afterbegin",g="afterend",h="beforebegin",d="beforeend",i=["BeforeBegin","previousSibling"],e=["AfterEnd","nextSibling"],c={beforebegin:i,afterend:e},b={beforebegin:i,afterend:e,afterbegin:["AfterBegin","firstChild"],beforeend:["BeforeEnd","lastChild"]};return{singleton:true,alternateClassName:["Ext.DomHelper","Ext.core.DomHelper"],emptyTags:/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,confRe:/^(?:tag|children|cn|html|tpl|tplData)$/i,endRe:/end/i,attributeTransform:{cls:"class",htmlFor:"for"},closeTags:{},detachedDiv:document.createElement("div"),decamelizeName:function(){var l=/([a-z])([A-Z])/g,k={};function j(m,o,n){return o+"-"+n.toLowerCase()}return function(m){return k[m]||(k[m]=m.replace(l,j))}}(),generateMarkup:function(q,k){var p=this,o=typeof q,n,j,r,m,l;if(o==="string"||o==="number"){k.push(q)}else{if(Ext.isArray(q)){for(m=0;m<q.length;m++){if(q[m]){p.generateMarkup(q[m],k)}}}else{r=q.tag||"div";k.push("<",r);for(n in q){if(q.hasOwnProperty(n)){j=q[n];if(j!==undefined&&!p.confRe.test(n)){if(typeof j==="object"){k.push(" ",n,'="');p.generateStyles(j,k,true).push('"')}else{k.push(" ",p.attributeTransform[n]||n,'="',j,'"')}}}}if(p.emptyTags.test(r)){k.push("/>")}else{k.push(">");if((j=q.tpl)){j.applyOut(q.tplData,k)}if((j=q.html)){k.push(j)}if((j=q.cn||q.children)){p.generateMarkup(j,k)}l=p.closeTags;k.push(l[r]||(l[r]="</"+r+">"))}}}return k},generateStyles:function(n,k,m){var j=k||[],l,o;for(l in n){if(n.hasOwnProperty(l)){o=n[l];l=this.decamelizeName(l);if(m&&Ext.String.hasHtmlCharacters(o)){o=Ext.String.htmlEncode(o)}j.push(l,":",o,";")}}return k||j.join("")},markup:function(j){if(typeof j==="string"){return j}var k=this.generateMarkup(j,[]);return k.join("")},applyStyles:function(j,k){Ext.fly(j).applyStyles(k)},createContextualFragment:function(k){var n=this.detachedDiv,j=document.createDocumentFragment(),l,m;n.innerHTML=k;m=n.childNodes;l=m.length;while(l--){j.appendChild(m[0])}return j},createDom:function(m,j){var l=this,k=l.markup(m),p=l.detachedDiv,n;p.innerHTML=k;n=p.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?n.cloneNode(true):n},insertHtml:function(m,j,n){var r=this,k,o,l,q,s;m=m.toLowerCase();if(j.insertAdjacentHTML){if(r.ieInsertHtml){s=r.ieInsertHtml(m,j,n);if(s){return s}}k=b[m];if(k){j.insertAdjacentHTML(k[0],n);return j[k[1]]}}else{if(j.nodeType===3){m=m===a?h:m;m=m===d?g:m}o=Ext.supports.CreateContextualFragment?j.ownerDocument.createRange():undefined;q="setStart"+(this.endRe.test(m)?"After":"Before");if(c[m]){if(o){o[q](j);s=o.createContextualFragment(n)}else{s=this.createContextualFragment(n)}j.parentNode.insertBefore(s,m===h?j:j.nextSibling);return j[(m===h?"previous":"next")+"Sibling"]}else{l=(m===a?"first":"last")+"Child";if(j.firstChild){if(o){try{o[q](j[l]);s=o.createContextualFragment(n)}catch(p){s=this.createContextualFragment(n)}}else{s=this.createContextualFragment(n)}if(m===a){j.insertBefore(s,j.firstChild)}else{j.appendChild(s)}}else{j.innerHTML=n}return j[l]}}},insertBefore:function(j,l,k){return this.doInsert(j,l,k,h)},insertAfter:function(j,l,k){return this.doInsert(j,l,k,g)},insertFirst:function(j,l,k){return this.doInsert(j,l,k,a)},append:function(j,l,k){return this.doInsert(j,l,k,d)},overwrite:function(l,k,n){var m=this,j;l=Ext.getDom(l);k=m.markup(k);if(m.ieOverwrite){j=m.ieOverwrite(l,k)}if(!j){l.innerHTML=k;j=l.firstChild}return n?Ext.get(j):j},doInsert:function(l,p,n,j){var m=this,k;l=l.dom||Ext.getDom(l);if("innerHTML" in l){k=m.insertHtml(j,l,m.markup(p))}else{k=m.createDom(p,null);if(l.nodeType===3){j=j===a?h:j;j=j===d?g:j}if(c[j]){l.parentNode.insertBefore(k,j===h?l:l.nextSibling)}else{if(l.firstChild&&j===a){l.insertBefore(k,l.firstChild)}else{l.appendChild(k)}}}return n?Ext.get(k):k},createTemplate:function(k){var j=this.markup(k);return new Ext.Template(j)},createHtml:function(j){return this.markup(j)}}},0,0,0,0,0,0,[Ext.dom,"Helper",Ext,"DomHelper",Ext.core,"DomHelper"],0));Ext.define("Ext.overrides.dom.Helper",(function(){var c=/^(?:table|thead|tbody|tr|td)$/i,h=/td|tr|tbody|thead/i,g="<table>",i="</table>",b=g+"<tbody>",e="</tbody>"+i,a=b+"<tr>",d="</tr>"+e;return{override:"Ext.dom.Helper",ieInsertHtml:function(j,l,k){var m=null;if(Ext.isIE9m&&c.test(l.tagName)){m=this.insertIntoTable(l.tagName.toLowerCase(),j,l,k)}return m},ieOverwrite:function(k,j){if(Ext.isIE9m&&c.test(k.tagName)){while(k.firstChild){k.removeChild(k.firstChild)}if(j){return this.insertHtml("afterbegin",k,j)}}},ieTable:function(p,k,q,o){var l=-1,n=this.detachedDiv,m,j;n.innerHTML=[k,q,o].join("");while(++l<p){n=n.firstChild}m=n.nextSibling;if(m){m=n;n=document.createDocumentFragment();while(m){j=m.nextSibling;n.appendChild(m);m=j}}return n},insertIntoTable:function(s,l,k,m){var j,p,o=l==="beforebegin",r=l==="afterbegin",n=l==="beforeend",q=l==="afterend";if(s==="td"&&(r||n)||!h.test(s)&&(o||q)){return null}p=o?k:q?k.nextSibling:r?k.firstChild:null;if(o||q){k=k.parentNode}if(s==="td"||(s==="tr"&&(n||r))){j=this.ieTable(4,a,m,d)}else{if(((s==="tbody"||s==="thead")&&(n||r))||(s==="tr"&&(o||q))){j=this.ieTable(3,b,m,e)}else{j=this.ieTable(2,g,m,i)}}k.insertBefore(j,p);return j}}})());(Ext.cmd.derive("Ext.dom.Query",Ext.Base,function(){var DQ,doc=document,cache,simpleCache,valueCache,useClassList=!!doc.documentElement.classList,useElementPointer=!!doc.documentElement.firstElementChild,useChildrenCollection=(function(){var d=doc.createElement("div");d.innerHTML="<!-- -->text<!-- -->";return d.children&&(d.children.length===0)})(),nonSpace=/\S/,trimRe=/^\s+|\s+$/g,tplRe=/\{(\d+)\}/g,modeRe=/^(\s?[\/>+~]\s?|\s|$)/,tagTokenRe=/^(#)?([\w\-\*\|\\]+)/,nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/,startIdRe=/^\s*#/,isIE=window.ActiveXObject?true:false,key=30803,longHex=/\\([0-9a-fA-F]{6})/g,shortHex=/\\([0-9a-fA-F]{1,6})\s{0,1}/g,nonHex=/\\([^0-9a-fA-F]{1})/g,escapes=/\\/g,num,hasEscapes,supportsColonNsSeparator=(function(){var xmlDoc,xmlString='<r><a:b xmlns:a="n"></a:b></r>';if(window.DOMParser){xmlDoc=(new DOMParser()).parseFromString(xmlString,"application/xml")}else{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.loadXML(xmlString)}return !!xmlDoc.getElementsByTagName("a:b").length})(),longHexToChar=function($0,$1){return String.fromCharCode(parseInt($1,16))},shortToLongHex=function($0,$1){while($1.length<6){$1="0"+$1}return"\\"+$1},charToLongHex=function($0,$1){num=$1.charCodeAt(0).toString(16);if(num.length===1){num="0"+num}return"\\0000"+num},unescapeCssSelector=function(selector){return(hasEscapes)?selector.replace(longHex,longHexToChar):selector},setupEscapes=function(path){hasEscapes=(path.indexOf("\\")>-1);if(hasEscapes){path=path.replace(shortHex,shortToLongHex).replace(nonHex,charToLongHex).replace(escapes,"\\\\")}return path};eval("var batch = 30803, child, next, prev, byClassName;");child=useChildrenCollection?function child(parent,index){return parent.children[index]}:function child(parent,index){var i=0,n=parent.firstChild;while(n){if(n.nodeType==1){if(++i==index){return n}}n=n.nextSibling}return null};next=useElementPointer?function(n){return n.nextElementSibling}:function(n){while((n=n.nextSibling)&&n.nodeType!=1){}return n};prev=useElementPointer?function(n){return n.previousElementSibling}:function(n){while((n=n.previousSibling)&&n.nodeType!=1){}return n};function children(parent){var n=parent.firstChild,nodeIndex=-1,nextNode;while(n){nextNode=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){parent.removeChild(n)}else{n.nodeIndex=++nodeIndex}n=nextNode}return this}byClassName=useClassList?function(nodeSet,cls){cls=unescapeCssSelector(cls);if(!cls){return nodeSet}var result=[],ri=-1,i,ci,classList;for(i=0;ci=nodeSet[i];i++){classList=ci.classList;if(classList){if(classList.contains(cls)){result[++ri]=ci}}else{if((" "+ci.className+" ").indexOf(cls)!==-1){result[++ri]=ci}}}return result}:function(nodeSet,cls){cls=unescapeCssSelector(cls);if(!cls){return nodeSet}var result=[],ri=-1,i,ci;for(i=0;ci=nodeSet[i];i++){if((" "+ci.className+" ").indexOf(cls)!==-1){result[++ri]=ci}}return result};function attrValue(n,attr){if(!n.tagName&&typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]}function getNodes(ns,mode,tagName){var result=[],ri=-1,cs,i,ni,j,ci,cn,utag,n,cj;if(!ns){return result}tagName=tagName.replace("|",":")||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!mode){tagName=unescapeCssSelector(tagName);if(!supportsColonNsSeparator&&DQ.isXml(ns[0])&&tagName.indexOf(":")!==-1){for(i=0;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName.split(":").pop());for(j=0;ci=cs[j];j++){if(ci.tagName===tagName){result[++ri]=ci}}}}else{for(i=0;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(j=0;ci=cs[j];j++){result[++ri]=ci}}}}else{if(mode=="/"||mode==">"){utag=tagName.toUpperCase();for(i=0;ni=ns[i];i++){cn=ni.childNodes;for(j=0;cj=cn[j];j++){if(cj.nodeName==utag||cj.nodeName==tagName||tagName=="*"){result[++ri]=cj}}}}else{if(mode=="+"){utag=tagName.toUpperCase();for(i=0;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=="*")){result[++ri]=n}}}else{if(mode=="~"){utag=tagName.toUpperCase();for(i=0;n=ns[i];i++){while((n=n.nextSibling)){if(n.nodeName==utag||n.nodeName==tagName||tagName=="*"){result[++ri]=n}}}}}}}return result}function concat(a,b){a.push.apply(a,b);return a}function byTag(cs,tagName){if(cs.tagName||cs===doc){cs=[cs]}if(!tagName){return cs}var result=[],ri=-1,i,ci;tagName=tagName.toLowerCase();for(i=0;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){result[++ri]=ci}}return result}function byId(cs,id){id=unescapeCssSelector(id);if(cs.tagName||cs===doc){cs=[cs]}if(!id){return cs}var result=[],ri=-1,i,ci;for(i=0;ci=cs[i];i++){if(ci&&ci.id==id){result[++ri]=ci;return result}}return result}function byAttribute(cs,attr,value,op,custom){var result=[],ri=-1,useGetStyle=custom=="{",fn=DQ.operators[op],a,xml,hasXml,i,ci;value=unescapeCssSelector(value);for(i=0;ci=cs[i];i++){if(ci.nodeType===1){if(!hasXml){xml=DQ.isXml(ci);hasXml=true}if(!xml){if(useGetStyle){a=DQ.getStyle(ci,attr)}else{if(attr=="class"||attr=="className"){a=ci.className}else{if(attr=="for"){a=ci.htmlFor}else{if(attr=="href"){a=ci.getAttribute("href",2)}else{a=ci.getAttribute(attr)}}}}}else{a=ci.getAttribute(attr)}if((fn&&fn(a,value))||(!fn&&a)){result[++ri]=ci}}}return result}function byPseudo(cs,name,value){value=unescapeCssSelector(value);return DQ.pseudos[name](cs,value)}function nodupIEXml(cs){var d=++key,r,i,len,c;cs[0].setAttribute("_nodup",d);r=[cs[0]];for(i=1,len=cs.length;i<len;i++){c=cs[i];if(!c.getAttribute("_nodup")!=d){c.setAttribute("_nodup",d);r[r.length]=c}}for(i=0,len=cs.length;i<len;i++){cs[i].removeAttribute("_nodup")}return r}function nodup(cs){if(!cs){return[]}var len=cs.length,c,i,r=cs,cj,ri=-1,d,j;if(!len||typeof cs.nodeType!="undefined"||len==1){return cs}if(isIE&&typeof cs[0].selectSingleNode!="undefined"){return nodupIEXml(cs)}d=++key;cs[0]._nodup=d;for(i=1;c=cs[i];i++){if(c._nodup!=d){c._nodup=d}else{r=[];for(j=0;j<i;j++){r[++ri]=cs[j]}for(j=i+1;cj=cs[j];j++){if(cj._nodup!=d){cj._nodup=d;r[++ri]=cj}}return r}}return r}function quickDiffIEXml(c1,c2){var d=++key,r=[],i,len;for(i=0,len=c1.length;i<len;i++){c1[i].setAttribute("_qdiff",d)}for(i=0,len=c2.length;i<len;i++){if(c2[i].getAttribute("_qdiff")!=d){r[r.length]=c2[i]}}for(i=0,len=c1.length;i<len;i++){c1[i].removeAttribute("_qdiff")}return r}function quickDiff(c1,c2){var len1=c1.length,d=++key,r=[],i,len;if(!len1){return c2}if(isIE&&typeof c1[0].selectSingleNode!="undefined"){return quickDiffIEXml(c1,c2)}for(i=0;i<len1;i++){c1[i]._qdiff=d}for(i=0,len=c2.length;i<len;i++){if(c2[i]._qdiff!=d){r[r.length]=c2[i]}}return r}function quickId(ns,mode,root,id){if(ns==root){id=unescapeCssSelector(id);var d=root.ownerDocument||root;return d.getElementById(id)}ns=getNodes(ns,mode,"*");return byId(ns,id)}return{singleton:true,alternateClassName:["Ext.core.DomQuery","Ext.DomQuery"],_init:function(){DQ=this;DQ.operators=Ext.Object.chain(Ext.util.Operators);DQ._cache=cache=new Ext.util.LruCache({maxSize:200});DQ._valueCache=valueCache=new Ext.util.LruCache({maxSize:200});DQ._simpleCache=simpleCache=new Ext.util.LruCache({maxSize:200})},clearCache:function(){cache.clear();valueCache.clear();simpleCache.clear()},getStyle:function(el,name){return Ext.fly(el,"_DomQuery").getStyle(name)},compile:function(path,type){type=type||"select";var fn=["var f = function(root) {\n var mode; ++batch; var n = root || document;\n"],lastPath,matchers=DQ.matchers,matchersLn=matchers.length,modeMatch,lmode=path.match(modeRe),tokenMatch,matched,j,t,m;path=setupEscapes(path);if(lmode&&lmode[1]){fn[fn.length]='mode="'+lmode[1].replace(trimRe,"")+'";';path=path.replace(lmode[1],"")}while(path.substr(0,1)=="/"){path=path.substr(1)}while(path&&lastPath!=path){lastPath=path;tokenMatch=path.match(tagTokenRe);if(type=="select"){if(tokenMatch){if(tokenMatch[1]=="#"){fn[fn.length]='n = quickId(n, mode, root, "'+tokenMatch[2]+'");'}else{fn[fn.length]='n = getNodes(n, mode, "'+tokenMatch[2]+'");'}path=path.replace(tokenMatch[0],"")}else{if(path.substr(0,1)!="@"){fn[fn.length]='n = getNodes(n, mode, "*");'}}}else{if(tokenMatch){if(tokenMatch[1]=="#"){fn[fn.length]='n = byId(n, "'+tokenMatch[2]+'");'}else{fn[fn.length]='n = byTag(n, "'+tokenMatch[2]+'");'}path=path.replace(tokenMatch[0],"")}}while(!(modeMatch=path.match(modeRe))){matched=false;for(j=0;j<matchersLn;j++){t=matchers[j];m=path.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(x,i){return m[i]});path=path.replace(m[0],"");matched=true;break}}if(!matched){Ext.Error.raise({sourceClass:"Ext.DomQuery",sourceMethod:"compile",msg:'Error parsing selector. Parsing failed at "'+path+'"'})}}if(modeMatch[1]){fn[fn.length]='mode="'+modeMatch[1].replace(trimRe,"")+'";';path=path.replace(modeMatch[1],"")}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f},jsSelect:function(path,root,type){root=root||doc;if(typeof root=="string"){root=doc.getElementById(root)}var paths=Ext.splitAndUnescape(path,","),results=[],query,i,len,subPath,result;for(i=0,len=paths.length;i<len;i++){subPath=paths[i].replace(trimRe,"");query=cache.get(subPath);if(!query){query=DQ.compile(subPath,type);if(!query){Ext.Error.raise({sourceClass:"Ext.DomQuery",sourceMethod:"jsSelect",msg:subPath+" is not a valid selector"})}cache.add(subPath,query)}else{setupEscapes(subPath)}result=query(root);if(result&&result!==doc){results=results.concat(result)}}if(paths.length>1){return nodup(results)}return results},isXml:function(el){var docEl=(el?el.ownerDocument||el:0).documentElement;return docEl?docEl.nodeName!=="HTML":false},select:doc.querySelectorAll?function(path,root,type,single){root=root||doc;if(!DQ.isXml(root)){try{if(root.parentNode&&(root.nodeType!==9)&&path.indexOf(",")===-1&&!startIdRe.test(path)){path=Ext.makeIdSelector(Ext.id(root))+" "+path;root=root.parentNode}return single?[root.querySelector(path)]:Ext.Array.toArray(root.querySelectorAll(path))}catch(e){}}return DQ.jsSelect.call(this,path,root,type)}:function(path,root,type){return DQ.jsSelect.call(this,path,root,type)},selectNode:function(path,root){return Ext.DomQuery.select(path,root,null,true)[0]},selectValue:function(path,root,defaultValue){path=path.replace(trimRe,"");var query=valueCache.get(path),n,v;if(!query){query=DQ.compile(path,"select");valueCache.add(path,query)}else{setupEscapes(path)}n=query(root);return DQ.getNodeValue(n[0]?n[0]:n)||defaultValue},getNodeValue:function(node,defaultValue){if(typeof node.normalize=="function"){node.normalize()}var v=(node&&node.firstChild?node.firstChild.nodeValue:null);return((v===null||v===undefined||v==="")?defaultValue:v)},selectNumber:function(path,root,defaultValue){var v=DQ.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function(el,ss){if(typeof el=="string"){el=doc.getElementById(el)}var isArray=Ext.isArray(el),result=DQ.filter(isArray?el:[el],ss);return isArray?(result.length==el.length):(result.length>0)},filter:function(els,ss,nonMatches){ss=ss.replace(trimRe,"");var query=simpleCache.get(ss),result;if(!query){query=DQ.compile(ss,"simple");simpleCache.add(ss,query)}else{setupEscapes(ss)}result=query(els);return nonMatches?quickDiff(result,els):result},matchers:[{re:/^\.([\w\-\\]+)/,select:useClassList?'n = byClassName(n, "{1}");':'n = byClassName(n, " {1} ");'},{re:/^\:([\w\-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w\-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w\-\\]+)/,select:'n = byId(n, "{1}");'},{re:/^@([\w\-\.]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],pseudos:{"first-child":function(c){var r=[],ri=-1,n,i,ci;for(i=0;(ci=n=c[i]);i++){while((n=n.previousSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"last-child":function(c){var r=[],ri=-1,n,i,ci;for(i=0;(ci=n=c[i]);i++){while((n=n.nextSibling)&&n.nodeType!=1){}if(!n){r[++ri]=ci}}return r},"nth-child":function(c,a){var r=[],ri=-1,m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"||!nthRe2.test(a)&&"n+"+a||a),f=(m[1]||1)-0,l=m[2]-0,i,n,j,cn,pn;for(i=0;n=c[i];i++){pn=n.parentNode;if(batch!=pn._batch){j=0;for(cn=pn.firstChild;cn;cn=cn.nextSibling){if(cn.nodeType==1){cn.nodeIndex=++j}}pn._batch=batch}if(f==1){if(l===0||n.nodeIndex==l){r[++ri]=n}}else{if((n.nodeIndex+l)%f===0){r[++ri]=n}}}return r},"only-child":function(c){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(!prev(ci)&&!next(ci)){r[++ri]=ci}}return r},empty:function(c){var r=[],ri=-1,i,ci,cns,j,cn,empty;for(i=0;ci=c[i];i++){cns=ci.childNodes;j=0;empty=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){empty=false;break}}if(empty){r[++ri]=ci}}return r},contains:function(c,v){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if((ci.textContent||ci.innerText||ci.text||"").indexOf(v)!=-1){r[++ri]=ci}}return r},nodeValue:function(c,v){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(ci.firstChild&&ci.firstChild.nodeValue==v){r[++ri]=ci}}return r},checked:function(c){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(ci.checked===true){r[++ri]=ci}}return r},not:function(c,ss){return DQ.filter(c,ss,true)},any:function(c,selectors){var ss=selectors.split("|"),r=[],ri=-1,s,i,ci,j;for(i=0;ci=c[i];i++){for(j=0;s=ss[j];j++){if(DQ.is(ci,s)){r[++ri]=ci;break}}}return r},odd:function(c){return this["nth-child"](c,"odd")},even:function(c){return this["nth-child"](c,"even")},nth:function(c,a){return c[a-1]||[]},first:function(c){return c[0]||[]},last:function(c){return c[c.length-1]||[]},has:function(c,ss){var s=DQ.select,r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(s(ss,ci).length>0){r[++ri]=ci}}return r},next:function(c,ss){var is=DQ.is,r=[],ri=-1,i,ci,n;for(i=0;ci=c[i];i++){n=next(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},prev:function(c,ss){var is=DQ.is,r=[],ri=-1,i,ci,n;for(i=0;ci=c[i];i++){n=prev(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},focusable:function(candidates){var len=candidates.length,results=[],i=0,c;for(;i<len;i++){c=candidates[i];if(Ext.fly(c,"_DomQuery").isFocusable()){results.push(c)}}return results},visible:function(candidates,deep){var len=candidates.length,results=[],i=0,c;for(;i<len;i++){c=candidates[i];if(Ext.fly(c,"_DomQuery").isVisible(deep)){results.push(c)}}return results},isScrolled:function(c){var r=[],ri=-1,i,ci,s;for(i=0;ci=c[i];i++){s=Ext.fly(ci,"_DomQuery").getScroll();if(s.top>0||s.left>0){r[++ri]=ci}}return r}}}},0,0,0,0,0,0,[Ext.dom,"Query",Ext.core,"DomQuery",Ext,"DomQuery"],function(){this._init()}));(Ext.cmd.derive("Ext.data.reader.Xml",Ext.data.reader.Reader,{alternateClassName:"Ext.data.XmlReader",config:{record:"",namespace:""},createAccessor:function(b){var a=this;if(Ext.isEmpty(b)){return Ext.emptyFn}if(Ext.isFunction(b)){return b}return function(c){return a.getNodeValue(Ext.DomQuery.selectNode(b,c))}},getNodeValue:function(a){if(a){if(typeof a.normalize==="function"){a.normalize()}a=a.firstChild;if(a){return a.nodeValue}}return undefined},getResponseData:function(a){var c=a.responseXML,b="XML data not found in the response";if(!c){Ext.Logger.warn(b);return this.createReadError(b)}return c},getData:function(a){return a.documentElement||a},getRoot:function(b){var c=b.nodeName,a=this.getRootProperty();if(!a||(c&&c==a)){return b}else{if(Ext.DomQuery.isXml(b)){return Ext.DomQuery.selectNode(a,b)}}},extractData:function(a,b){var c=this.getRecord();if(c!==a.nodeName){a=Ext.DomQuery.select(c,a)}else{a=[a]}return Ext.data.reader.Reader.prototype.extractData.call(this,a,b)},readRecords:function(c,b,a){if(Ext.isArray(c)){c=c[0]}return Ext.data.reader.Reader.prototype.readRecords.call(this,c,b,a)},createFieldAccessor:function(e){var d=this,c=d.getNamespace(),b,a;b=e.mapping||((c?c+"|":"")+e.name);if(typeof b==="function"){a=function(g){return e.mapping(g,d)}}else{a=function(g){return d.getNodeValue(Ext.DomQuery.selectNode(b,g))}}return a},deprecated:{"5.1.1":{properties:{xmlData:null}}}},0,0,0,0,["reader.xml"],0,[Ext.data.reader,"Xml",Ext.data,"XmlReader"],0));(Ext.cmd.derive("Ext.data.writer.Xml",Ext.data.writer.Writer,{alternateClassName:"Ext.data.XmlWriter",config:{documentRoot:"xmlData",defaultDocumentRoot:"xmlData",header:"",record:"record"},selectorRe:/[^>\s]+/g,writeRecords:function(b,c){var j=this,g=[],d=0,h=c.length,l=j.getDocumentRoot(),k=j.getRecord(),e=k.match(this.selectorRe),m=e.length,n=c.length!==1&&m===1,a;a=this.getTransform();if(a){c=a(c,b)}g.push(j.getHeader()||"");if(!l&&n){l=j.getDefaultDocumentRoot()}if(l){g.push("<",l,">")}for(d=0;d<m-1;d++){g.push("<",e[d],">")}k=e[d];for(d=0;d<h;++d){this.objectToElement(k,c[d],g)}for(d=m-2;d>-1;d--){g.push("</",e[d],">")}if(l){g.push("</",l,">")}b.setXmlData(g.join(""));return b},objectToElement:function(b,e,g){var p,m,h=[],d,c,k,j,l,a,n;if(!g){g=[]}g.push("<",b);for(p in e){m=e[p];if(p[0]==="@"){g.push(" ",p.substr(1),'="',m,'"')}else{if(typeof m==="object"){this.objectToElement(p,m,h)}else{d=p.match(this.selectorRe);if((c=d.length)>1){l=l||{};for(j=l,k=0;k<c;k++){a=j;n=d[k];j=j[n]||(j[n]={})}a[n]=m}else{h.push("<",p,">",m,"</",p,">")}}}}g.push(">");g.push.apply(g,h);if(l){for(p in l){m=l[p];this.objectToElement(p,m,g)}}g.push("</",b,">");return g}},0,0,0,0,["writer.xml"],0,[Ext.data.writer,"Xml",Ext.data,"XmlWriter"],0));(Ext.cmd.derive("Ext.data.XmlStore",Ext.data.Store,{constructor:function(a){a=Ext.apply({proxy:{type:"ajax",reader:"xml",writer:"xml"}},a);Ext.data.Store.prototype.constructor.call(this,a)}},1,0,0,0,["store.xml"],0,[Ext.data,"XmlStore"],0));(Ext.cmd.derive("Ext.data.identifier.Negative",Ext.data.identifier.Sequential,{config:{increment:-1,seed:-1}},0,0,0,0,["data.identifier.negative"],0,[Ext.data.identifier,"Negative"],0));(Ext.cmd.derive("Ext.data.identifier.Uuid",Ext.data.identifier.Generator,{isUnique:true,config:{id:null},constructor:function(a){Ext.data.identifier.Generator.prototype.constructor.call(this,a);this.reconfigure(a)},reconfigure:function(b){var a=this.self;this.generate=(b&&b.version===1)?a.createSequential(b.salt,b.timestamp,b.clockSeq):a.createRandom()},clone:null,statics:{createRandom:function(){var c="xxxxxxxx-xxxx-4xxx-Rxxx-xMxxxxxxxxxx".split(""),b="0123456789abcdef".split(""),a=c.length,d=[];return function(){for(var g,h,e=0;e<a;++e){h=c[e];if(h!=="-"&&h!=="4"){g=Math.random()*16;g=(h==="R")?(g&3|8):(g|((h==="M")?1:0));h=b[g]}d[e]=h}return d.join("")}},createSequential:function(h,b,e){var g=[],k=Math.pow(2,32),i=h.lo,c=h.hi,j=b.lo,d=b.hi,a=function(n,m){var l=n.toString(16).toLowerCase();if(l.length>m){l=l.substring(l.length-m)}else{if(l.length<m){l=Ext.String.leftPad(l,m,"0")}}return l};if(typeof h==="number"){c=Math.floor(h/k);i=Math.floor(h-c*k)}if(typeof b==="number"){d=Math.floor(b/k);j=Math.floor(b-d*k)}c|=256;g[3]=a(128|((e>>>8)&63),2)+a(e&255,2);g[4]=a(c,4)+a(i,8);return function(){g[0]=a(j,8);g[1]=a(d&65535,4);g[2]=a(((d>>>16)&4095)|(1<<12),4);++j;if(j>=k){j=0;++d}return g.join("-")}}}},1,0,0,0,["data.identifier.uuid"],0,[Ext.data.identifier,"Uuid"],function(){this.Global=new this({id:"uuid"})}));(Ext.cmd.derive("Ext.data.proxy.WebStorage",Ext.data.proxy.Client,{alternateClassName:"Ext.data.WebStorageProxy",config:{id:undefined},constructor:function(a){Ext.data.proxy.Client.prototype.constructor.apply(this,arguments);this.cache={};this.initialize()},create:function(e){var k=this,d=e.getRecords(),c=d.length,a=k.getIds(),b,h,g,j;if(k.isHierarchical===undefined){k.isHierarchical=!!d[0].isNode;if(k.isHierarchical){k.getStorageObject().setItem(k.getTreeKey(),true)}}for(g=0;g<c;g++){h=d[g];if(h.phantom){h.phantom=false;j=h.identifier;if(j&&j.isUnique){b=h.getId()}else{b=k.getNextId()}}else{b=h.getId()}k.setRecord(h,b);h.commit();a.push(b)}k.setIds(a);e.setSuccessful(true)},read:function(k){var v=this,u,r=[],d=true,h=v.getModel(),e=0,t=k.getRecordCreator(),g,a,s,n,m,b,o,c,w,l,q,p;if(v.isHierarchical){r=v.getTreeData()}else{o=v.getIds();c=o.length;l=k.getId();if(l){w=v.getRecord(l);if(w!==null){b=t?t(w,h):new h(w)}if(b){r.push(b)}else{d=false}}else{a=k.getSorters();g=k.getFilters();s=k.getLimit();u=[];for(q=0;q<c;q++){w=v.getRecord(o[q]);b=t?t(w,h):new h(w);u.push(b)}if(a){Ext.Array.sort(u,Ext.util.Sorter.createComparator(a))}for(q=k.getStart()||0;q<c;q++){b=u[q];m=true;if(g){for(p=0,n=g.length;p<n;p++){m=g[p].filter(b)}}if(m){r.push(b);e++}if(s&&e===s){break}}}}if(d){k.setResultSet(new Ext.data.ResultSet({records:r,total:r.length,loaded:true}));k.setSuccessful(true)}else{k.setException("Unable to load records")}},update:function(c){var b=c.getRecords(),g=b.length,e=this.getIds(),a,h,d;for(d=0;d<g;d++){a=b[d];this.setRecord(a);a.commit();h=a.getId();if(h!==undefined&&Ext.Array.indexOf(e,h)===-1){e.push(h)}}this.setIds(e);c.setSuccessful(true)},erase:function(d){var g=this,c=d.getRecords(),a=g.getIds(),h=a.length,k=[],j={},e=c.length,b;for(;e--;){Ext.apply(j,g.removeRecord(c[e]))}for(e=0;e<h;e++){b=a[e];if(!j[b]){k.push(b)}}g.setIds(k);d.setSuccessful(true)},getRecord:function(d){var b=this,a=b.cache,c=!a[d]?Ext.decode(b.getStorageObject().getItem(b.getRecordKey(d))):a[d];if(!c){return null}a[d]=c;c[b.getModel().prototype.idProperty]=d;return Ext.merge({},c)},setRecord:function(k,c){if(c){k.set("id",c,{commit:true})}else{c=k.getId()}var m=this,a=k.getData(),h={},j=m.getModel(),l=j.getFields(),d=l.length,g=0,n,b,e,p,o;for(;g<d;g++){n=l[g];b=n.name;if(n.persist){o=a[b];if(n.isDateField&&n.dateFormat&&Ext.isDate(o)){o=Ext.Date.format(o,n.dateFormat)}else{if(n.serialize){o=n.serialize(o,k)}}h[b]=o}}delete h[j.prototype.idProperty];if(k.isNode&&k.get("depth")===1){delete h.parentId}e=m.getStorageObject();p=m.getRecordKey(c);m.cache[c]=h;e.removeItem(p);e.setItem(p,Ext.encode(h))},removeRecord:function(a){var d=this,g=a.getId(),b={},c,e;b[g]=a;d.getStorageObject().removeItem(d.getRecordKey(g));delete d.cache[g];if(a.childNodes){e=a.childNodes;for(c=e.length;c--;){Ext.apply(b,d.removeRecord(e[c]))}}return b},getRecordKey:function(a){if(a.isModel){a=a.getId()}return Ext.String.format("{0}-{1}",this.getId(),a)},getRecordCounterKey:function(){return Ext.String.format("{0}-counter",this.getId())},getTreeKey:function(){return Ext.String.format("{0}-tree",this.getId())},getIds:function(){var e=this,c=(e.getStorageObject().getItem(e.getId())||"").split(","),d=c.length,a=this.getIdField().isStringField,b;if(d===1&&c[0]===""){c=[]}else{for(b=0;b<d;b++){c[b]=a?c[b]:+c[b]}}return c},getIdField:function(){return this.getModel().prototype.idField},setIds:function(a){var b=this.getStorageObject(),c=a.join(","),d=this.getId();b.removeItem(d);if(!Ext.isEmpty(c)){b.setItem(d,c)}},getNextId:function(){var c=this,d=c.getStorageObject(),b=c.getRecordCounterKey(),a=c.getIdField().isStringField,e;e=c.idGenerator.generate();d.setItem(b,e);if(a){e=e+""}return e},getTreeData:function(){var n=this,a=n.getIds(),e=a.length,j=[],b={},o=[],k=0,h=n.getModel(),q=h.prototype.idProperty,g,m,p,l,d,c;for(;k<e;k++){c=a[k];m=n.getRecord(c);j.push(m);b[c]=m;if(!m.parentId){o.push(m)}}g=o.length;Ext.Array.sort(j,n.sortByParentId);for(k=g;k<e;k++){m=j[k];l=m.parentId;if(!p||p[q]!==l){p=b[l];p.children=d=[]}d.push(m)}for(k=e;k--;){m=j[k];if(!m.children&&!m.leaf){m.loaded=true}}for(k=g;k--;){m=o[k];o[k]=new h(m)}return o},sortByParentId:function(b,a){return(b.parentId||0)-(a.parentId||0)},initialize:function(){var b=this,a=b.getStorageObject(),c=+a.getItem(b.getRecordCounterKey()),d=b.getId();a.setItem(d,a.getItem(d)||"");if(a.getItem(b.getTreeKey())){b.isHierarchical=true}b.idGenerator=new Ext.data.identifier.Sequential({seed:c?c+1:1})},clear:function(){var d=this,e=d.getStorageObject(),c=d.getIds(),a=c.length,b;for(b=0;b<a;b++){e.removeItem(d.getRecordKey(c[b]))}e.removeItem(d.getRecordCounterKey());e.removeItem(d.getTreeKey());e.removeItem(d.getId());d.cache={}},getStorageObject:function(){}},1,0,0,0,0,0,[Ext.data.proxy,"WebStorage",Ext.data,"WebStorageProxy"],0));(Ext.cmd.derive("Ext.data.proxy.LocalStorage",Ext.data.proxy.WebStorage,{alternateClassName:"Ext.data.LocalStorageProxy",getStorageObject:function(){return window.localStorage}},0,0,0,0,["proxy.localstorage"],0,[Ext.data.proxy,"LocalStorage",Ext.data,"LocalStorageProxy"],0));(Ext.cmd.derive("Ext.data.proxy.Rest",Ext.data.proxy.Ajax,{alternateClassName:"Ext.data.RestProxy",defaultActionMethods:{create:"POST",read:"GET",update:"PUT",destroy:"DELETE"},slashRe:/\/$/,periodRe:/\.$/,config:{appendId:true,format:null,batchActions:false,actionMethods:{create:"POST",read:"GET",update:"PUT",destroy:"DELETE"}},buildUrl:function(g){var i=this,e=g.getOperation(),c=e.getRecords(),h=c?c[0]:null,j=i.getFormat(),a=i.getUrl(g),b,d;if(h&&!h.phantom){b=h.getId()}else{b=e.getId()}if(i.getAppendId()&&i.isValidId(b)){if(!a.match(i.slashRe)){a+="/"}a+=encodeURIComponent(b);d=g.getParams();if(d){delete d[i.getIdParam()]}}if(j){if(!a.match(i.periodRe)){a+="."}a+=j}g.setUrl(a);return Ext.data.proxy.Ajax.prototype.buildUrl.call(this,g)},isValidId:function(a){return a||a===0}},0,0,0,0,["proxy.rest"],0,[Ext.data.proxy,"Rest",Ext.data,"RestProxy"],0));(Ext.cmd.derive("Ext.data.proxy.SessionStorage",Ext.data.proxy.WebStorage,{alternateClassName:"Ext.data.SessionStorageProxy",getStorageObject:function(){return window.sessionStorage}},0,0,0,0,["proxy.sessionstorage"],0,[Ext.data.proxy,"SessionStorage",Ext.data,"SessionStorageProxy"],0));(Ext.cmd.derive("Ext.data.validator.Bound",Ext.data.validator.Validator,{type:"bound",config:{min:undefined,max:undefined,emptyMessage:"Must be present",minOnlyMessage:null,maxOnlyMessage:null,bothOnlyMessage:null},constructor:function(){var a=this;a.preventConfigure=true;Ext.data.validator.Validator.prototype.constructor.apply(this,arguments);delete a.preventConfigure;a.configure()},setConfig:function(){var a=this;a.preventConfigure=true;a.callParent(arguments);delete a.preventConfigure;a.configure()},configure:function(){var d=this,b,e,c,a;if(d.preventConfigure){return}c=d.getMin();a=d.getMax();b=d.hasMin=c!==undefined;e=d.hasMax=a!==undefined;if(b&&e){d._bothMsg=Ext.String.format(d.getBothMessage(),c,a)}else{if(b){d._minMsg=Ext.String.format(d.getMinOnlyMessage(),c)}else{if(e){d._maxMsg=Ext.String.format(d.getMaxOnlyMessage(),a)}}}},updateMin:function(){this.configure()},updateMax:function(){this.configure()},updateMinOnlyMessage:function(a){this.configure()},updateMaxOnlyMessage:function(){this.configure()},updateBothMessage:function(){this.configure()},validate:function(g){var e=this,c=e.hasMin,i=e.hasMax,d=e.getMin(),b=e.getMax(),h=this.validateValue(g),a;if(h!==true){return h}g=e.getValue(g);if(c&&i){if(g<d||g>b){h=e._bothMsg}}else{if(c){if(g<d){h=e._minMsg}}else{if(i){if(g>b){h=e._maxMsg}}}}return h},validateValue:function(a){if(a===undefined||a===null){return this.getEmptyMessage()}return true},getValue:Ext.identityFn},1,0,0,0,["data.validator.bound"],0,[Ext.data.validator,"Bound"],0));(Ext.cmd.derive("Ext.data.validator.Format",Ext.data.validator.Validator,{type:"format",config:{message:"Is in the wrong format",matcher:undefined},validate:function(b){var c=this.getMatcher(),a=c&&c.test(b);return a?a:this.getMessage()}},0,0,0,0,["data.validator.format"],0,[Ext.data.validator,"Format"],0));(Ext.cmd.derive("Ext.data.validator.Email",Ext.data.validator.Format,{type:"email",config:{message:"Is not a valid email address",matcher:/^(")?(?:[^\."])(?:(?:[\.])?(?:[\w\-!#$%&'*+\/=?\^_`{|}~]))*\1@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/}},0,0,0,0,["data.validator.email"],0,[Ext.data.validator,"Email"],0));(Ext.cmd.derive("Ext.data.validator.List",Ext.data.validator.Validator,{type:"list",config:{list:null},inclusion:null,validate:function(c){var b=Ext.Array.contains(this.getList(),c),e=this.inclusion,d=!e,a;a=(e&&b)||(d&&!b);return a||this.getMessage()}},0,0,0,0,["data.validator.list"],0,[Ext.data.validator,"List"],0));(Ext.cmd.derive("Ext.data.validator.Exclusion",Ext.data.validator.List,{type:"exclusion",config:{message:"Is a value that has been excluded"},inclusion:false},0,0,0,0,["data.validator.exclusion"],0,[Ext.data.validator,"Exclusion"],0));(Ext.cmd.derive("Ext.data.validator.Inclusion",Ext.data.validator.List,{type:"inclusion",config:{message:"Is not in the list of acceptable values"},inclusion:true},0,0,0,0,["data.validator.inclusion"],0,[Ext.data.validator,"Inclusion"],0));(Ext.cmd.derive("Ext.data.validator.Length",Ext.data.validator.Bound,{type:"length",config:{minOnlyMessage:"Length must be at least {0}",maxOnlyMessage:"Length must be no more than {0}",bothMessage:"Length must be between {0} and {1}"},getValue:function(a){return String(a).length}},0,0,0,0,["data.validator.length"],0,[Ext.data.validator,"Length"],0));(Ext.cmd.derive("Ext.data.validator.Presence",Ext.data.validator.Validator,{type:"presence",config:{message:"Must be present",allowEmpty:false},validate:function(b){var a=!(b===undefined||b===null);if(a&&!this.getAllowEmpty()){a=!(b==="")}return a?true:this.getMessage()}},0,0,0,0,["data.validator.presence"],0,[Ext.data.validator,"Presence"],0));(Ext.cmd.derive("Ext.data.validator.Range",Ext.data.validator.Bound,{type:"range",config:{minOnlyMessage:"Must be must be at least {0}",maxOnlyMessage:"Must be no more than than {0}",bothMessage:"Must be between {0} and {1}",nanMessage:"Must be numeric"},validateValue:function(a){var b=Ext.data.validator.Bound.prototype.validateValue.call(this,a);if(b===true&&isNaN(a)){b=this.getNanMessage()}return b}},0,0,0,0,["data.validator.range"],0,[Ext.data.validator,"Range"],0));(Ext.cmd.derive("Ext.direct.Event",Ext.Base,{status:true,constructor:function(a){Ext.apply(this,a)},getName:function(){return this.name},getData:function(){return this.data}},1,0,0,0,["direct.event"],0,[Ext.direct,"Event"],0));(Ext.cmd.derive("Ext.direct.RemotingEvent",Ext.direct.Event,{getTransaction:function(){var a=this;return a.transaction||Ext.direct.Manager.getTransaction(a.tid)}},0,0,0,0,["direct.rpc"],0,[Ext.direct,"RemotingEvent"],0));(Ext.cmd.derive("Ext.direct.ExceptionEvent",Ext.direct.RemotingEvent,{status:false},0,0,0,0,["direct.exception"],0,[Ext.direct,"ExceptionEvent"],0));(Ext.cmd.derive("Ext.direct.JsonProvider",Ext.direct.Provider,{parseResponse:function(a){var b=a&&a.responseText;if(b){if(Ext.isObject(b)||Ext.isArray(b)){return b}return Ext.decode(b)}return null},createEvents:function(b){var h=this,j=null,d=[],g,c,a;try{j=h.parseResponse(b)}catch(k){g=new Ext.direct.ExceptionEvent({data:k,xhr:b,code:Ext.direct.Manager.exceptions.PARSE,message:"Error parsing json response: \n\n "+k});return[g]}if(Ext.isArray(j)){for(c=0,a=j.length;c<a;++c){d.push(h.createEvent(j[c]))}}else{if(Ext.isObject(j)){d.push(h.createEvent(j))}}return d},createEvent:function(a){if(typeof a!=="object"||!("type" in a)){return new Ext.direct.ExceptionEvent({data:a,code:Ext.direct.Manager.exceptions.DATA,message:"Invalid data: event type is not specified"})}return Ext.create("direct."+a.type,a)}},0,0,0,0,["direct.jsonprovider"],0,[Ext.direct,"JsonProvider"],0));(Ext.cmd.derive("Ext.direct.PollingProvider",Ext.direct.JsonProvider,{type:"polling",interval:3000,constructor:function(a){var b=this;Ext.direct.JsonProvider.prototype.constructor.call(this,a);b.pollTask=Ext.TaskManager.newTask({run:b.runPoll,interval:b.interval,scope:b})},destroy:function(){this.pollTask=null;Ext.direct.JsonProvider.prototype.destroy.call(this)},doConnect:function(){var c=this,a=c.url,b=c.pollFn;if(b&&Ext.isString(b)){c.pollFn=b=Ext.direct.Manager.parseMethod(b)}else{if(Ext.isFunction(a)){c.pollFn=b=a;c.url=a=null}}if(a||b){c.setInterval(c.interval);c.pollTask.start()}},doDisconnect:function(){this.pollTask.stop()},getInterval:function(){return this.pollTask.interval},setInterval:function(a){var b=this,c=b.pollTask;b.interval=c.interval=a;if(b.isConnected()){c.restart(a)}},runPoll:function(){var d=this,b=d.url,c=d.pollFn,e=d.baseParams,a;if(d.fireEvent("beforepoll",d)!==false){if(c){a=c.directCfg.method.getArgs({params:e!==undefined?e:{},callback:d.onPollFn,scope:d});c.apply(window,a)}else{Ext.Ajax.request({url:b,callback:d.onData,scope:d,params:e})}d.fireEvent("poll",d)}},onData:function(e,h,b){var g=this,d,a,c;if(h){c=g.createEvents(b);for(d=0,a=c.length;d<a;++d){g.fireEvent("data",g,c[d])}}else{c=new Ext.direct.ExceptionEvent({data:null,code:Ext.direct.Manager.exceptions.TRANSPORT,message:"Unable to connect to the server.",xhr:b});g.fireEvent("data",g,c)}},onPollFn:function(a,c,d,b){this.onData(null,d,{responseText:a})},inheritableStatics:{checkConfig:function(a){return a&&a.type==="polling"&&(a.url||a.pollFn)}}},1,0,0,0,["direct.pollingprovider"],0,[Ext.direct,"PollingProvider"],0));(Ext.cmd.derive("Ext.direct.RemotingMethod",Ext.Base,{constructor:function(c){var i=this,e=c.params,h=c.len,k=c.metadata,j={},a,g,b,d;i.name=c.name;if(c.formHandler){i.formHandler=c.formHandler}else{if(Ext.isNumeric(h)){i.len=h;i.ordered=true}else{i.named=true;i.strict=c.strict!==undefined?c.strict:true;i.params={};g=e&&e.length;for(b=0;b<g;b++){d=e[b];a=Ext.isObject(d)?d.name:d;i.params[a]=true}}}if(k){e=k.params;h=k.len;if(Ext.isNumeric(h)){j.ordered=true;j.len=h}else{if(Ext.isArray(e)){j.named=true;j.params={};for(b=0,g=e.length;b<g;b++){d=e[b];j.params[d]=true}j.strict=k.strict!==undefined?k.strict:true}}i.metadata=j}},getArgs:function(b){var h=this,c=b.params,j=b.paramOrder,a=b.paramsAsHash,k=b.metadata,l=b.options,g=[],d,e;if(h.ordered){if(h.len>0){if(j){for(d=0,e=j.length;d<e;d++){g.push(c[j[d]])}}else{if(a){g.push(c)}}}}else{g.push(c)}g.push(b.callback,b.scope||window);if(l||k){l=Ext.apply({},l);if(k){l.metadata=k}g.push(l)}return g},getCallData:function(g){var h=this,d=null,e=h.len,c=h.params,j=h.strict,b,k,l,a,m,i;if(h.ordered){k=g[e];l=g[e+1];m=g[e+2];if(e!==0){d=g.slice(0,e)}}else{if(h.formHandler){b=g[0];k=g[1];l=g[2];m=g[3]}else{d=Ext.apply({},g[0]);k=g[1];l=g[2];m=g[3];if(j){for(a in d){if(d.hasOwnProperty(a)&&!c[a]){delete d[a]}}}}}if(h.metadata&&m&&m.metadata){if(h.metadata.ordered){i=m.metadata.slice(0,h.metadata.len)}else{i=Ext.apply({},m.metadata);if(h.metadata.strict){for(a in i){if(i.hasOwnProperty(a)&&!h.metadata.params[a]){delete i[a]}}}}delete m.metadata}return{form:b,data:d,metadata:i,callback:k,scope:l,options:m}}},1,0,0,0,0,0,[Ext.direct,"RemotingMethod"],0));(Ext.cmd.derive("Ext.direct.Transaction",Ext.Base,{alternateClassName:"Ext.Direct.Transaction",statics:{TRANSACTION_ID:0},constructor:function(a){var b=this;Ext.apply(b,a);b.id=b.tid=++b.self.TRANSACTION_ID;b.retryCount=0},send:function(){var a=this;a.provider.queueTransaction(a)},retry:function(){var a=this;a.retryCount++;a.send()},getProvider:function(){return this.provider}},1,0,0,0,["direct.transaction"],0,[Ext.direct,"Transaction",Ext.Direct,"Transaction"],0));(Ext.cmd.derive("Ext.direct.RemotingProvider",Ext.direct.JsonProvider,{type:"remoting",enableBuffer:10,maxRetries:1,constructor:function(a){var b=this;Ext.direct.JsonProvider.prototype.constructor.apply(this,arguments);b.namespace=(Ext.isString(b.namespace))?Ext.ns(b.namespace):b.namespace||Ext.global;b.transactions=new Ext.util.MixedCollection();b.callBuffer=[]},doConnect:function(){if(!this.apiCreated){this.initAPI();this.apiCreated=true}},getNamespace:function(b,e){var g,d,c,a;b=b||Ext.global;g=e.toString().split(".");for(c=0,a=g.length;c<a;c++){d=g[c];b=b[d];if(typeof b==="undefined"){return b}}return b},createNamespaces:function(b,e){var g,d,c,a;b=b||Ext.global;g=e.toString().split(".");for(c=0,a=g.length;c<a;c++){d=g[c];b[d]=b[d]||{};b=b[d]}return b},initAPI:function(){var k=this,g=k.actions,d=k.namespace,b=Ext.direct.Manager,e,m,c,h,j,a,l;for(e in g){if(g.hasOwnProperty(e)){if(k.disableNestedActions){m=d[e];if(!m){m=d[e]={}}}else{m=k.getNamespace(d,e);if(!m){m=k.createNamespaces(d,e)}}c=g[e];for(h=0,j=c.length;h<j;++h){a=new Ext.direct.RemotingMethod(c[h]);m[a.name]=l=k.createHandler(e,a);b.registerMethod(l.$name,l)}}}},createHandler:function(c,e){var b=this,d=Array.prototype.slice,a;if(!e.formHandler){a=function(){b.configureRequest(c,e,d.call(arguments,0))}}else{a=function(){b.configureFormRequest(c,e,d.call(arguments,0))}}a.name=a.$name=c+"."+e.name;a.$directFn=true;a.directCfg=a.$directCfg={action:c,method:e};return a},connect:function(){var a=this;Ext.direct.JsonProvider.prototype.connect.call(this)},runCallback:function(g,c){var e=!!c.status,d=e?"success":"failure",h,b,a;if(g&&g.callback){h=g.callback;b=g.callbackOptions;a=typeof c.result!=="undefined"?c.result:c.data;if(Ext.isFunction(h)){h(a,c,e,b)}else{Ext.callback(h[d],h.scope,[a,c,e,b]);Ext.callback(h.callback,h.scope,[a,c,e,b])}}},onData:function(l,j,c){var g=this,d,e,k,a,b,h;if(j){k=g.createEvents(c);for(d=0,e=k.length;d<e;++d){a=k[d];b=g.getTransaction(a);g.fireEvent("data",g,a);if(b&&g.fireEvent("beforecallback",g,a,b)!==false){g.runCallback(b,a,true);Ext.direct.Manager.removeTransaction(b)}}}else{h=[].concat(l.transaction);for(d=0,e=h.length;d<e;++d){b=g.getTransaction(h[d]);if(b&&b.retryCount<g.maxRetries){b.retry()}else{a=new Ext.direct.ExceptionEvent({data:null,transaction:b,code:Ext.direct.Manager.exceptions.TRANSPORT,message:"Unable to connect to the server.",xhr:c});g.fireEvent("data",g,a);if(b&&g.fireEvent("beforecallback",g,a,b)!==false){g.runCallback(b,a,false);Ext.direct.Manager.removeTransaction(b)}}}}},getTransaction:function(a){return a&&a.tid?Ext.direct.Manager.getTransaction(a.tid):null},getPayload:function(b){var a={action:b.action,method:b.method,data:b.data,type:"rpc",tid:b.id};if(b.metadata){a.metadata=b.metadata}return a},sendRequest:function(a){var h=this,d,b,c,k=h.enableUrlEncode,j,e,g;d={url:h.url,callback:h.onData,scope:h,transaction:a,timeout:h.timeout};if(a.timeout){d.timeout=a.timeout}if(Ext.isArray(a)){b=[];for(e=0,g=a.length;e<g;++e){j=h.getPayload(a[e]);b.push(j)}}else{b=h.getPayload(a)}if(k){c={};c[Ext.isString(k)?k:"data"]=Ext.encode(b);d.params=c}else{d.jsonData=b}Ext.Ajax.request(d)},queueTransaction:function(c){var b=this,a=b.enableBuffer;if(c.form){b.sendFormRequest(c);return}if(a===false||typeof c.timeout!=="undefined"){b.sendRequest(c);return}b.callBuffer.push(c);if(a){if(!b.callTask){b.callTask=new Ext.util.DelayedTask(b.combineAndSend,b)}b.callTask.delay(Ext.isNumber(a)?a:10)}else{b.combineAndSend()}},combineAndSend:function(){var c=this,b=c.callBuffer,a=b.length;if(a>0){c.sendRequest(a===1?b[0]:b);c.callBuffer=[]}},configureTransaction:function(d,a,g,h){var e,b,i,j,c;e=a.getCallData(g);b=e.callback;i=e.scope;j=e.options;b=b&&i?Ext.Function.bind(b,i):b;c=Ext.apply({},{provider:this,args:g,action:d,method:a.name,form:e.form,data:e.data,metadata:e.metadata,callbackOptions:j,callback:b,isForm:h});if(j&&j.timeout!=null){c.timeout=j.timeout}return new Ext.direct.Transaction(c)},configureRequest:function(c,e,a){var b=this,d;d=b.configureTransaction(c,e,a);if(b.fireEvent("beforecall",b,d,e)!==false){Ext.direct.Manager.addTransaction(d);b.queueTransaction(d);b.fireEvent("call",b,d,e)}},configureFormRequest:function(e,i,b){var d=this,g,c,a,h;g=d.configureTransaction(e,i,b,true);if(d.fireEvent("beforecall",d,g,i)!==false){Ext.direct.Manager.addTransaction(g);c=g.form;a=String(c.getAttribute("enctype")).toLowerCase()==="multipart/form-data";h={extTID:g.id,extAction:e,extMethod:i.name,extType:"rpc",extUpload:String(a)};if(g.metadata){h.extMetadata=Ext.JSON.encode(g.metadata)}Ext.apply(g,{form:c,isUpload:a,params:h});d.sendFormRequest(g);d.fireEvent("call",d,g,i)}},sendFormRequest:function(b){var a=this;Ext.Ajax.request({url:a.url,params:b.params,callback:a.onData,scope:a,form:b.form,isUpload:b.isUpload,transaction:b})},inheritableStatics:{checkConfig:function(a){return a&&a.type==="remoting"&&a.url&&Ext.isArray(a.actions)}}},1,0,0,0,["direct.remotingprovider"],0,[Ext.direct,"RemotingProvider"],0));(Ext.cmd.derive("Ext.dom.GarbageCollector",Ext.Base,{singleton:true,interval:30000,constructor:function(){var a=this;a.collect=Ext.Function.bind(a.collect,a);a.lastTime=Ext.now();a.resume()},collect:function(){var j=this,a=Ext.cache,b,g,c,k,h,d;for(b in a){if(!a.hasOwnProperty(b)){continue}c=a[b];if(c.skipGarbageCollection){continue}g=c.dom;try{h=Ext.isGarbage(g)}catch(i){delete a[b];continue}if(h){if(c&&c.dom){c.collect()}}}if(Ext.isIE9m){k={};for(b in a){if(a.hasOwnProperty(b)){k[b]=a[b]}}Ext.cache=Ext.dom.Element.cache=k}j.lastTime=Ext.now()},pause:function(){clearTimeout(this.timerId)},resume:function(){var a=this,b=a.lastTime;if(Ext.enableGarbageCollector&&(Ext.now()-b>a.interval)){a.collect()}a.timerId=Ext.interval(a.collect,a.interval)}},1,0,0,0,0,0,[Ext.dom,"GarbageCollector"],0));(Ext.cmd.derive("Ext.event.gesture.Recognizer",Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return false},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,"Recognizer"],0));(Ext.cmd.derive("Ext.event.gesture.SingleTouch",Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:"Not Single Touch",TOUCH_MOVED:"Touch Moved",EVENT_CANCELED:"Event Canceled"},onTouchStart:function(a){if(a.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return false}},0,0,0,0,0,0,[Ext.event.gesture,"SingleTouch"],0));(Ext.cmd.derive("Ext.event.gesture.DoubleTap",Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:"Different Target"},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:["singletap","doubletap"],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(c){var b=this,a;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===false){return false}a=b.lastStartPoint=c.changedTouches[0].point;b.startPoint=b.startPoint||a;b.startTime=c.time;clearTimeout(b.singleTapTimer)},onTouchMove:function(c){var b=this,a=c.changedTouches[0].point;if(Math.abs(a.getDistanceTo(b.lastStartPoint))>=b.getMoveDistance()){b.startPoint=null;return b.fail(b.self.TOUCH_MOVED)}},onTouchEnd:function(g){var i=this,d=i.getMaxDuration(),a=g.time,h=g.target,j=i.lastTapTime,b=i.lastTarget,k=g.changedTouches[0].point,c;i.lastTapTime=a;i.lastTarget=h;if(j){c=a-j;if(c<=d&&Math.abs(k.getDistanceTo(i.startPoint))<=i.getTapDistance()){if(h!==b){return i.fail(i.self.DIFFERENT_TARGET)}i.lastTarget=null;i.lastTapTime=0;i.fire("doubletap",g,{touch:g.changedTouches[0],duration:c});i.startPoint=null;return}}if(a-i.startTime>d){i.fireSingleTap(g)}else{i.setSingleTapTimer(g)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fireSingleTap(b)},a.getMaxDuration())},fireSingleTap:function(a,b){this.fire("singletap",a,{touch:b});this.startPoint=null},reset:function(){var a=this;a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,"DoubleTap"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)}));(Ext.cmd.derive("Ext.event.gesture.Drag",Ext.event.gesture.SingleTouch,{priority:100,isStarted:false,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:["dragstart","drag","dragend","dragcancel"],config:{minDistance:8},constructor:function(){Ext.event.gesture.SingleTouch.prototype.constructor.apply(this,arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0}}},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===false){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=false;this.onTouchEnd(this.lastMoveEvent)}return false}this.startTime=a.time;this.startPoint=a.changedTouches[0].point},tryDragStart:function(d){var b=this.startPoint,h=d.changedTouches[0],a=h.point,g=this.getMinDistance(),c=this.info;if(Math.abs(a.getDistanceTo(b))>=g){this.isStarted=true;this.previousPoint=this.lastPoint=a;this.resetInfo("x",d,h);this.resetInfo("y",d,h);c.time=d.time;this.fire("dragstart",d,c)}},onTouchMove:function(b){if(!this.isStarted){this.tryDragStart(b)}if(!this.isStarted){return}var c=b.changedTouches[0],a=c.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=a;this.lastMoveEvent=b;this.updateInfo("x",b,c);this.updateInfo("y",b,c);this.info.time=b.time;this.fire("drag",b,this.info)},onAxisDragEnd:function(a,c){var b=c.time-c.previousTime[a];if(b>0){c.flick.velocity[a]=(c[a]-c.previous[a])/b}},resetInfo:function(c,h,j){var d=this.lastPoint[c],b=this.startPoint[c],i=d-b,a=c.toUpperCase(),g=this.info;g.touch=j;g.delta[c]=i;g.absDelta[c]=Math.abs(i);g.previousTime[c]=this.startTime;g.previous[c]=b;g[c]=d;g.direction[c]=0;g["start"+a]=this.startPoint[c];g["previous"+a]=g.previous[c];g["page"+a]=g[c];g["delta"+a]=g.delta[c];g["absDelta"+a]=g.absDelta[c];g["previousDelta"+a]=0;g.startTime=this.startTime},updateInfo:function(d,j,i){var k=this,m=k.lastPoint[d],g=k.previousPoint[d],a=k.startPoint[d],n=m-a,c=k.info,l=c.direction,h=d.toUpperCase(),b=c.previous[d];c.touch=i;c.delta[d]=n;c.absDelta[d]=Math.abs(n);if(m!==b&&m!==c[d]){c.previous[d]=c[d];c.previousTime[d]=c.time}c[d]=m;if(m>g){l[d]=1}else{if(m<g){l[d]=-1}}c["start"+h]=a;c["previous"+h]=c.previous[d];c["page"+h]=c[d];c["delta"+h]=c.delta[d];c["absDelta"+h]=c.absDelta[d];c["previousDelta"+h]=c.previous[d]-a;c.startTime=k.startTime},onTouchEnd:function(a){this.doEnd(a)},onTouchCancel:function(a){this.doEnd(a,true);return false},doEnd:function(d,b){if(!this.isStarted){this.tryDragStart(d)}if(this.isStarted){var g=d.changedTouches[0],a=g.point,c=this.info;this.isStarted=false;this.lastPoint=a;this.updateInfo("x",d,g);this.updateInfo("y",d,g);c.time=d.time;this.onAxisDragEnd("x",c);this.onAxisDragEnd("y",c);this.fire(b?"dragcancel":"dragend",d,c);this.startPoint=null;this.previousPoint=null;this.lastPoint=null;this.lastMoveEvent=null}},reset:function(){var a=this;a.isStarted=a.lastPoint=a.startPoint=a.previousPoint=a.lastPoint=a.lastMoveEvent=null;a.initInfo()}},1,0,0,0,0,0,[Ext.event.gesture,"Drag"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.drag)}));(Ext.cmd.derive("Ext.event.gesture.Swipe",Ext.event.gesture.SingleTouch,{priority:500,handledEvents:["swipestart","swipe","swipecancel"],inheritableStatics:{MAX_OFFSET_EXCEEDED:"Max Offset Exceeded",MAX_DURATION_EXCEEDED:"Max Duration Exceeded",DISTANCE_NOT_ENOUGH:"Distance Not Enough"},config:{minDistance:80,maxOffset:35,maxDuration:1000},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===false){return false}var b=a.changedTouches[0];this.startTime=a.time;this.isHorizontal=true;this.isVertical=true;this.startX=b.pageX;this.startY=b.pageY},onTouchMove:function(k){var j=k.changedTouches[0],n=j.pageX,l=j.pageY,i=n-this.startX,h=l-this.startY,d=Math.abs(n-this.startX),c=Math.abs(l-this.startY),g=k.time-this.startTime,o=this.getMinDistance(),b=k.time,m,a;if(b-this.startTime>this.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&c>this.getMaxOffset()){this.isHorizontal=false}if(this.isVertical&&d>this.getMaxOffset()){this.isVertical=false}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&d<o){m=(i<0)?"left":"right";a=d}else{if(this.isVertical&&c<o){m=(h<0)?"up":"down";a=c}}}if(m&&!this.started){this.started=true;this.fire("swipestart",k,{touch:j,direction:m,distance:a,duration:g})}if(!this.isHorizontal&&!this.isVertical){return this.fail(this.self.MAX_OFFSET_EXCEEDED)}},onTouchEnd:function(j){if(this.onTouchMove(j)===false){return false}var i=j.changedTouches[0],m=i.pageX,k=i.pageY,h=m-this.startX,g=k-this.startY,c=Math.abs(h),b=Math.abs(g),n=this.getMinDistance(),d=j.time-this.startTime,l,a;if(this.isVertical&&b<n){this.isVertical=false}if(this.isHorizontal&&c<n){this.isHorizontal=false}if(this.isHorizontal){l=(h<0)?"left":"right";a=c}else{if(this.isVertical){l=(g<0)?"up":"down";a=b}else{return this.fail(this.self.DISTANCE_NOT_ENOUGH)}}this.started=false;this.fire("swipe",j,{touch:i,direction:l,distance:a,duration:d})},onTouchCancel:function(a){this.fire("swipecancel",a);return false},reset:function(){var a=this;a.startTime=a.isHorizontal=a.isVertical=a.startX=a.startY=null}},0,0,0,0,0,0,[Ext.event.gesture,"Swipe"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.swipe)}));(Ext.cmd.derive("Ext.event.gesture.EdgeSwipe",Ext.event.gesture.Swipe,{priority:800,handledEvents:["edgeswipe","edgeswipestart","edgeswipeend","edgeswipecancel"],inheritableStatics:{NOT_NEAR_EDGE:"Not Near Edge"},config:{minDistance:60},onTouchStart:function(a){if(Ext.event.gesture.Swipe.prototype.onTouchStart.apply(this,arguments)===false){return false}var b=a.changedTouches[0];this.started=false;this.direction=null;this.isHorizontal=true;this.isVertical=true;this.startX=b.pageX;this.startY=b.pageY},onTouchMove:function(l){var j=l.changedTouches[0],p=j.pageX,m=j.pageY,i=p-this.startX,h=m-this.startY,b=Math.abs(m-this.startY),c=Math.abs(p-this.startX),q=this.getMinDistance(),g=this.getMaxOffset(),d=l.time-this.startTime,o=Ext.Viewport&&Ext.Element.getViewportWidth(),k=Ext.Viewport&&Ext.Element.getViewportHeight(),n,a;if(this.isVertical&&c>g){this.isVertical=false}if(this.isHorizontal&&b>g){this.isHorizontal=false}if(this.isVertical&&this.isHorizontal){if(b>c){this.isHorizontal=false}else{this.isVertical=false}}if(this.isHorizontal){n=(i<0)?"left":"right";a=i}else{if(this.isVertical){n=(h<0)?"up":"down";a=h}}n=this.direction||(this.direction=n);if(n==="up"){a=h*-1}else{if(n==="left"){a=i*-1}}this.distance=a;if(!a){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(n==="right"&&this.startX>q){return this.fail(this.self.NOT_NEAR_EDGE)}else{if(n==="down"&&this.startY>q){return this.fail(this.self.NOT_NEAR_EDGE)}else{if(n==="left"&&(o-this.startX)>q){return this.fail(this.self.NOT_NEAR_EDGE)}else{if(n==="up"&&(k-this.startY)>q){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=true;this.startTime=l.time;this.fire("edgeswipestart",l,{touch:j,direction:n,distance:a,duration:d})}else{this.fire("edgeswipe",l,{touch:j,direction:n,distance:a,duration:d})}},onTouchEnd:function(b){var a;if(this.onTouchMove(b)!==false){a=b.time-this.startTime;this.fire("edgeswipeend",b,{touch:b.changedTouches[0],direction:this.direction,distance:this.distance,duration:a})}},onTouchCancel:function(a){this.fire("edgeswipecancel",a,{touch:a.changedTouches[0]});return false},reset:function(){var a=this;a.started=a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,"EdgeSwipe"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)}));(Ext.cmd.derive("Ext.event.gesture.LongPress",Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:"Duration Not Enough"},config:{moveDistance:8,minDuration:1000},handledEvents:["longpress","taphold"],fireLongPress:function(a){this.fire("longpress",a,{touch:a.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=true},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===false){return false}this.startPoint=a.changedTouches[0].point;this.isLongPress=false;this.setLongPressTimer(a)},setLongPressTimer:function(b){var a=this;a.timer=Ext.defer(function(){a.fireLongPress(b)},a.getMinDuration())},onTouchMove:function(b){var a=b.changedTouches[0].point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(a){if(a==="longpress"){var b=Array.prototype.slice.call(arguments);b[0]="taphold";this.fire.apply(this,b)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,"LongPress"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)}));(Ext.cmd.derive("Ext.event.gesture.MultiTouch",Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:false,isStarted:false,onTouchStart:function(d){var a=this.requiredTouchesCount,c=d.touches,b=c.length;if(b===a){this.start(d)}else{if(b>a){this.end(d)}}},onTouchEnd:function(a){this.end(a)},onTouchCancel:function(a){this.end(a,true);return false},start:function(){if(!this.isTracking){this.isTracking=true;this.isStarted=false}},end:function(b,a){if(this.isTracking){this.isTracking=false;if(this.isStarted){this.isStarted=false;this[a?"fireCancel":"fireEnd"](b)}}},reset:function(){this.isTracking=this.isStarted=false}},0,0,0,0,0,0,[Ext.event.gesture,"MultiTouch"],0));(Ext.cmd.derive("Ext.event.gesture.Pinch",Ext.event.gesture.MultiTouch,{priority:600,handledEvents:["pinchstart","pinch","pinchend","pinchcancel"],startDistance:0,lastTouches:null,onTouchMove:function(c){if(!this.isTracking){return}var b=c.touches,d,a,g;d=b[0].point;a=b[1].point;g=d.getDistanceTo(a);if(g===0){return}if(!this.isStarted){this.isStarted=true;this.startDistance=g;this.fire("pinchstart",c,{touches:b,distance:g,scale:1})}else{this.fire("pinch",c,{touches:b,distance:g,scale:g/this.startDistance})}},fireEnd:function(a){this.fire("pinchend",a)},fireCancel:function(a){this.fire("pinchcancel",a)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"Pinch"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.pinch)}));(Ext.cmd.derive("Ext.event.gesture.Rotate",Ext.event.gesture.MultiTouch,{priority:700,handledEvents:["rotatestart","rotate","rotateend","rotatecancel"],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(i){if(!this.isTracking){return}var h=i.touches,b=this.lastAngle,d,g,c,a,j,k;d=h[0].point;g=h[1].point;c=d.getAngleTo(g);if(b!==null){k=Math.abs(b-c);a=c+360;j=c-360;if(Math.abs(a-b)<k){c=a}else{if(Math.abs(j-b)<k){c=j}}}this.lastAngle=c;if(!this.isStarted){this.isStarted=true;this.startAngle=c;this.fire("rotatestart",i,{touches:h,angle:c,rotation:0})}else{this.fire("rotate",i,{touches:h,angle:c,rotation:c-this.startAngle})}this.lastTouches=Ext.Array.clone(h)},fireEnd:function(a){this.lastAngle=null;this.fire("rotateend",a)},fireCancel:function(a){this.lastAngle=null;this.fire("rotatecancel",a)},reset:function(){var a=this;a.lastTouches=a.lastAngle=a.startAngle=null;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"Rotate"],function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.rotate)}));(Ext.cmd.derive("Ext.event.gesture.Tap",Ext.event.gesture.SingleTouch,{priority:200,handledEvents:["tap","tapcancel"],config:{moveDistance:8},onTouchStart:function(a){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,a)===false){return false}this.startPoint=a.changedTouches[0].point},onTouchMove:function(b){var c=b.changedTouches[0],a=c.point;if(Math.abs(a.getDistanceTo(this.startPoint))>=this.getMoveDistance()){this.fire("tapcancel",b,{touch:c});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(a){this.fire("tap",a,{touch:a.changedTouches[0]})},onTouchCancel:function(a){this.fire("tapcancel",a,{touch:a.changedTouches[0]});return false},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,"Tap"],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)}));(Ext.cmd.derive("Ext.fx.State",Ext.Base,{isAnimatable:{"background-color":true,"background-image":true,"background-position":true,"border-bottom-color":true,"border-bottom-width":true,"border-color":true,"border-left-color":true,"border-left-width":true,"border-right-color":true,"border-right-width":true,"border-spacing":true,"border-top-color":true,"border-top-width":true,"border-width":true,bottom:true,color:true,crop:true,"font-size":true,"font-weight":true,height:true,left:true,"letter-spacing":true,"line-height":true,"margin-bottom":true,"margin-left":true,"margin-right":true,"margin-top":true,"max-height":true,"max-width":true,"min-height":true,"min-width":true,opacity:true,"outline-color":true,"outline-offset":true,"outline-width":true,"padding-bottom":true,"padding-left":true,"padding-right":true,"padding-top":true,right:true,"text-indent":true,"text-shadow":true,top:true,"vertical-align":true,visibility:true,width:true,"word-spacing":true,"z-index":true,zoom:true,transform:true},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(c,h){var g=this.data,a=Ext.isArray(h),b=g.transform,e,d;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof c=="string"){switch(c){case"translate":if(a){e=h.length;if(e==0){break}b.translateX=h[0];if(e==1){break}b.translateY=h[1];if(e==2){break}b.translateZ=h[2]}else{b.translateX=h}break;case"rotate":if(a){e=h.length;if(e==0){break}b.rotateX=h[0];if(e==1){break}b.rotateY=h[1];if(e==2){break}b.rotateZ=h[2]}else{b.rotate=h}break;case"scale":if(a){e=h.length;if(e==0){break}b.scaleX=h[0];if(e==1){break}b.scaleY=h[1];if(e==2){break}b.scaleZ=h[2]}else{b.scaleX=h;b.scaleY=h}break;case"skew":if(a){e=h.length;if(e==0){break}b.skewX=h[0];if(e==1){break}b.skewY=h[1]}else{b.skewX=h}break;default:b[c]=h}}else{for(d in c){if(c.hasOwnProperty(d)){h=c[d];this.setTransform(d,h)}}}},set:function(a,d){var c=this.data,b;if(typeof a!="string"){for(b in a){d=a[b];if(b==="transform"){this.setTransform(d)}else{c[b]=d}}}else{if(a==="transform"){this.setTransform(d)}else{c[a]=d}}return this},unset:function(a){var b=this.data;if(b.hasOwnProperty(a)){delete b[a]}return this},getData:function(){return this.data}},1,0,0,0,0,0,[Ext.fx,"State"],0));(Ext.cmd.derive("Ext.fx.animation.Abstract",Ext.Evented,{isAnimation:true,config:{name:"",element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:"linear",iteration:1,direction:"normal",delay:0,onBeforeStart:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:false,replacePrevious:true},STATE_FROM:"0%",STATE_TO:"100%",DIRECTION_UP:"up",DIRECTION_DOWN:"down",DIRECTION_LEFT:"left",DIRECTION_RIGHT:"right",stateNameRegex:/^(?:[\d\.]+)%$/,constructor:function(){this.states={};Ext.Evented.prototype.constructor.apply(this,arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(b,a){if(b){return Ext.factory(b,Ext.fx.State,a)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(a){var c=this.stateNameRegex,b;for(b in a){if(c.test(b)){this.setState(b,a[b])}}return this},getStates:function(){return this.states},end:function(){this.stop()},stop:function(){this.fireEvent("stop",this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(b,d){var a=this.getStates(),c;c=Ext.factory(d,Ext.fx.State,a[b]);if(c){a[b]=c}return this},getState:function(a){return this.getStates()[a]},getData:function(){var l=this.getStates(),e={},h=this.getBefore(),c=this.getAfter(),i=l[this.STATE_FROM],j=l[this.STATE_TO],k=i.getData(),g=j.getData(),d,b,a;for(b in l){if(l.hasOwnProperty(b)){a=l[b];d=a.getData();e[b]=d}}if(Ext.browser.is.AndroidStock2){e["0.0001%"]=k}return{before:h?h.getData():{},after:c?c.getData():{},states:e,from:k,to:g,duration:this.getDuration(),iteration:this.getIteration(),direction:this.getDirection(),easing:this.getEasing(),delay:this.getDelay(),onEnd:this.getOnEnd(),onBeforeEnd:this.getOnBeforeEnd(),onBeforeStart:this.getOnBeforeStart(),scope:this.getScope(),preserveEndState:this.getPreserveEndState(),replacePrevious:this.getReplacePrevious()}}},1,0,0,0,0,0,[Ext.fx.animation,"Abstract"],0));(Ext.cmd.derive("Ext.fx.animation.Slide",Ext.fx.animation.Abstract,{alternateClassName:"Ext.fx.animation.SlideIn",config:{direction:"left",out:false,offset:0,easing:"auto",containerBox:"auto",elementBox:"auto",isElementBoxFit:true,useCssTransform:true},reverseDirectionMap:{up:"down",down:"up",left:"right",right:"left"},applyEasing:function(a){if(a==="auto"){return"ease-"+((this.getOut())?"in":"out")}return a},getContainerBox:function(){var a=this._containerBox;if(a==="auto"){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==="auto"){a=this.getElement().getBox()}return a},getData:function(){var q=this.getElementBox(),c=this.getContainerBox(),h=q?q:c,o=this.getFrom(),p=this.getTo(),g=this.getOut(),e=this.getOffset(),n=this.getDirection(),b=this.getUseCssTransform(),i=this.getReverse(),d=0,a=0,m,k,l,j;if(i){n=this.reverseDirectionMap[n]}switch(n){case this.DIRECTION_UP:if(g){a=c.top-h.top-h.height-e}else{a=c.bottom-h.bottom+h.height+e}break;case this.DIRECTION_DOWN:if(g){a=c.bottom-h.bottom+h.height+e}else{a=c.top-h.height-h.top-e}break;case this.DIRECTION_RIGHT:if(g){d=c.right-h.right+h.width+e}else{d=c.left-h.left-h.width-e}break;case this.DIRECTION_LEFT:if(g){d=c.left-h.left-h.width-e}else{d=c.right-h.right+h.width+e}break}m=(g)?0:d;k=(g)?0:a;if(b){o.setTransform({translateX:m,translateY:k})}else{o.set("left",m);o.set("top",k)}l=(g)?d:0;j=(g)?a:0;if(b){p.setTransform({translateX:l,translateY:j})}else{p.set("left",l);p.set("top",j)}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,["animation.slide","animation.slideIn"],0,[Ext.fx.animation,"Slide",Ext.fx.animation,"SlideIn"],0));(Ext.cmd.derive("Ext.fx.animation.SlideOut",Ext.fx.animation.Slide,{config:{out:true}},0,0,0,0,["animation.slideOut"],0,[Ext.fx.animation,"SlideOut"],0));(Ext.cmd.derive("Ext.fx.animation.Fade",Ext.fx.animation.Abstract,{alternateClassName:"Ext.fx.animation.FadeIn",config:{out:false,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(a){var c=this.getTo(),b=this.getFrom();if(a){b.set("opacity",1);c.set("opacity",0)}else{b.set("opacity",0);c.set("opacity",1)}}},0,0,0,0,["animation.fade","animation.fadeIn"],0,[Ext.fx.animation,"Fade",Ext.fx.animation,"FadeIn"],0));(Ext.cmd.derive("Ext.fx.animation.FadeOut",Ext.fx.animation.Fade,{config:{out:true,before:{}}},0,0,0,0,["animation.fadeOut"],0,[Ext.fx.animation,"FadeOut"],0));(Ext.cmd.derive("Ext.fx.animation.Flip",Ext.fx.animation.Abstract,{config:{easing:"ease-in",direction:"right",half:false,out:null},getData:function(){var i=this.getFrom(),j=this.getTo(),h=this.getDirection(),b=this.getOut(),m=this.getHalf(),c=(m)?90:180,e=1,a=1,l=0,k=0,g=0,d=0;if(b){a=0.8}else{e=0.8}switch(h){case this.DIRECTION_UP:if(b){g=c}else{l=-c}break;case this.DIRECTION_DOWN:if(b){g=-c}else{l=c}break;case this.DIRECTION_RIGHT:if(b){d=c}else{k=-c}break;case this.DIRECTION_LEFT:if(b){d=-c}else{k=c}break}i.setTransform({rotateX:l,rotateY:k,scale:e});j.setTransform({rotateX:g,rotateY:d,scale:a});return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,["animation.flip"],0,[Ext.fx.animation,"Flip"],0));(Ext.cmd.derive("Ext.fx.animation.Pop",Ext.fx.animation.Abstract,{alternateClassName:"Ext.fx.animation.PopIn",config:{out:false,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var c=this.getTo(),b=this.getFrom(),a=this.getOut();if(a){b.set("opacity",1);b.setTransform({scale:1});c.set("opacity",0);c.setTransform({scale:0})}else{b.set("opacity",0);b.setTransform({scale:0});c.set("opacity",1);c.setTransform({scale:1})}return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,["animation.pop","animation.popIn"],0,[Ext.fx.animation,"Pop",Ext.fx.animation,"PopIn"],0));(Ext.cmd.derive("Ext.fx.animation.PopOut",Ext.fx.animation.Pop,{config:{out:true,before:{}}},0,0,0,0,["animation.popOut"],0,[Ext.fx.animation,"PopOut"],0));(Ext.cmd.derive("Ext.fx.Animation",Ext.Base,{constructor:function(b){var a=Ext.fx.animation.Abstract,c;if(typeof b=="string"){c=b;b={}}else{if(b&&b.type){c=b.type}}if(c){if(Ext.browser.is.AndroidStock2){if(c=="pop"){c="fade"}if(c=="popIn"){c="fadeIn"}if(c=="popOut"){c="fadeOut"}}a=Ext.ClassManager.getByAlias("animation."+c)}return Ext.factory(b,a)}},1,0,0,0,0,0,[Ext.fx,"Animation"],0));(Ext.cmd.derive("Ext.fx.runner.Css",Ext.Evented,{prefixedProperties:{transform:true,"transform-origin":true,perspective:true,"transform-style":true,transition:true,"transition-property":true,"transition-duration":true,"transition-timing-function":true,"transition-delay":true,animation:true,"animation-name":true,"animation-duration":true,"animation-iteration-count":true,"animation-direction":true,"animation-timing-function":true,"animation-delay":true},lengthProperties:{top:true,right:true,bottom:true,left:true,width:true,height:true,"max-height":true,"max-width":true,"min-height":true,"min-width":true,"margin-bottom":true,"margin-left":true,"margin-right":true,"margin-top":true,"padding-bottom":true,"padding-left":true,"padding-right":true,"padding-top":true,"border-bottom-width":true,"border-left-width":true,"border-right-width":true,"border-spacing":true,"border-top-width":true,"border-width":true,"outline-width":true,"letter-spacing":true,"line-height":true,"text-indent":true,"word-spacing":true,"font-size":true,translate:true,translateX:true,translateY:true,translateZ:true,translate3d:true},durationProperties:{"transition-duration":true,"transition-delay":true,"animation-duration":true,"animation-delay":true},angleProperties:{rotate:true,rotateX:true,rotateY:true,rotateZ:true,skew:true,skewX:true,skewY:true},lengthUnitRegex:/([a-z%]*)$/,DEFAULT_UNIT_LENGTH:"px",DEFAULT_UNIT_ANGLE:"deg",DEFAULT_UNIT_DURATION:"ms",formattedNameCache:{},constructor:function(){var a=Ext.feature.has.Css3dTransforms;if(a){this.transformMethods=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","scaleX","scaleY","scaleZ"]}else{this.transformMethods=["translateX","translateY","rotate","skewX","skewY","scaleX","scaleY"]}this.vendorPrefix=Ext.browser.getStyleDashPrefix();this.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement("style");a.type="text/css";(document.head||document.getElementsByTagName("head")[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var h=this.getStyleSheet(),l=this.ruleStylesCache,k=h.cssRules,c,e,i,b,d,a,g;for(c in j){e=j[c];i=l[c];if(i===undefined){d=k.length;h.insertRule(c+"{}",d);i=l[c]=k.item(d).style}b=i.$cache;if(!b){b=i.$cache={}}for(a in e){g=this.formatValue(e[a],a);a=this.formatName(a);if(b[a]!==g){b[a]=g;if(g===null){i.removeProperty(a)}else{i.setProperty(a,g,"important")}}}}return this},applyStyles:function(d){var h,c,g,b,a,e;for(h in d){if(d.hasOwnProperty(h)){c=document.getElementById(h);if(!c){return this}g=c.style;b=d[h];for(a in b){if(b.hasOwnProperty(a)){e=this.formatValue(b[a],a);a=this.formatName(a);if(e===null){g.removeProperty(a)}else{g.setProperty(a,e,"important")}}}}}return this},formatName:function(b){var a=this.formattedNameCache,c=a[b];if(!c){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){c=this.vendorPrefix+b}else{c=b}a[b]=c}return c},formatValue:function(k,b){var h=typeof k,m=this.DEFAULT_UNIT_LENGTH,e,a,d,g,c,l,j;if(k===null){return""}if(h=="string"){if(this.lengthProperties[b]){j=k.match(this.lengthUnitRegex)[1];if(j.length>0){}else{return k+m}}return k}else{if(h=="number"){if(k==0){return"0"}if(this.lengthProperties[b]){return k+m}if(this.angleProperties[b]){return k+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[b]){return k+this.DEFAULT_UNIT_DURATION}}else{if(b==="transform"){e=this.transformMethods;c=[];for(d=0,g=e.length;d<g;d++){a=e[d];c.push(a+"("+this.formatValue(k[a],a)+")")}return c.join(" ")}else{if(Ext.isArray(k)){l=[];for(d=0,g=k.length;d<g;d++){l.push(this.formatValue(k[d],b))}return(l.length>0)?l.join(", "):"none"}}}}return k}},1,0,0,0,0,0,[Ext.fx.runner,"Css"],0));(Ext.cmd.derive("Ext.fx.runner.CssTransition",Ext.fx.runner.Css,{alternateClassName:"Ext.Animator",singleton:true,listenersAttached:false,constructor:function(){this.runningAnimationsData={};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=true;Ext.getWin().on("transitionend","onTransitionEnd",this)},onTransitionEnd:function(b){var a=b.target,c=a.id;if(c&&this.runningAnimationsData.hasOwnProperty(c)){this.refreshRunningAnimationsData(Ext.get(a),[b.browserEvent.propertyName])}},onAnimationEnd:function(h,g,d,k,o){var c=h.getId(),l=this.runningAnimationsData[c],p={},n={},b,j,e,m,a;d.un("stop","onAnimationStop",this);if(l){b=l.nameMap}p[c]=n;if(g.onBeforeEnd){g.onBeforeEnd.call(g.scope||this,h,k)}d.fireEvent("animationbeforeend",d,h,k);this.fireEvent("animationbeforeend",this,d,h,k);if(o||(!k&&!g.preserveEndState)){j=g.toPropertyNames;for(e=0,m=j.length;e<m;e++){a=j[e];if(b&&!b.hasOwnProperty(a)){n[a]=null}}}if(g.after){Ext.merge(n,g.after)}this.applyStyles(p);if(g.onEnd){g.onEnd.call(g.scope||this,h,k)}d.fireEvent("animationend",d,h,k);this.fireEvent("animationend",this,d,h,k);Ext.AnimationQueue.stop(Ext.emptyFn,d)},onAllAnimationsEnd:function(b){var c=b.getId(),a={};delete this.runningAnimationsData[c];a[c]={"transition-property":null,"transition-duration":null,"transition-timing-function":null,"transition-delay":null};this.applyStyles(a);this.fireEvent("animationallend",this,b)},hasRunningAnimations:function(a){var c=a.getId(),b=this.runningAnimationsData;return b.hasOwnProperty(c)&&b[c].sessions.length>0},refreshRunningAnimationsData:function(d,l,u,q){var h=d.getId(),r=this.runningAnimationsData,a=r[h];if(!a){return}var n=a.nameMap,t=a.nameList,b=a.sessions,g,k,e,v,m,c,s,p,o=false;u=Boolean(u);q=Boolean(q);if(!b){return this}g=b.length;if(g===0){return this}if(q){a.nameMap={};t.length=0;for(m=0;m<g;m++){c=b[m];this.onAnimationEnd(d,c.data,c.animation,u,q)}b.length=0}else{for(m=0;m<g;m++){c=b[m];s=c.map;p=c.list;for(k=0,e=l.length;k<e;k++){v=l[k];if(s[v]){delete s[v];Ext.Array.remove(p,v);c.length--;if(--n[v]==0){delete n[v];Ext.Array.remove(t,v)}}}if(c.length==0){b.splice(m,1);m--;g--;o=true;this.onAnimationEnd(d,c.data,c.animation,u)}}}if(!q&&!u&&b.length==0&&o){this.onAllAnimationsEnd(d)}},getRunningData:function(b){var a=this.runningAnimationsData;if(!a.hasOwnProperty(b)){a[b]={nameMap:{},nameList:[],sessions:[]}}return a[b]},getTestElement:function(){var c=this.testElement,b,d,a;if(!c){b=document.createElement("iframe");b.setAttribute("tabindex",-1);a=b.style;a.setProperty("visibility","hidden","important");a.setProperty("width","0px","important");a.setProperty("height","0px","important");a.setProperty("position","absolute","important");a.setProperty("border","0px","important");a.setProperty("zIndex","-1000","important");document.body.appendChild(b);d=b.contentDocument;d.open();d.writeln("</body>");d.close();this.testElement=c=d.createElement("div");c.style.setProperty("position","absolute","important");d.body.appendChild(c);this.testElementComputedStyle=window.getComputedStyle(c)}return c},getCssStyleValue:function(b,e){var d=this.getTestElement(),a=this.testElementComputedStyle,c=d.style;c.setProperty(b,e);if(Ext.browser.is.Firefox){d.offsetHeight}e=a.getPropertyValue(b);c.removeProperty(b);return e},run:function(r){var H=this,k=this.lengthProperties,z={},G={},I={},d,u,A,e,w,K,x,s,t,a,o,C,B,q,D,m,v,h,E,J,l,g,y,p,c,F,b,n;if(!this.listenersAttached){this.attachListeners()}r=Ext.Array.from(r);for(C=0,q=r.length;C<q;C++){D=r[C];D=Ext.factory(D,Ext.fx.Animation);d=D.getElement();Ext.AnimationQueue.start(Ext.emptyFn,D);h=window.getComputedStyle(d.dom);u=d.getId();I=Ext.merge({},D.getData());if(D.onBeforeStart){D.onBeforeStart.call(D.scope||this,d)}D.fireEvent("animationstart",D);this.fireEvent("animationstart",this,D);I[u]=I;w=I.before;A=I.from;e=I.to;I.fromPropertyNames=K=[];I.toPropertyNames=x=[];for(J in e){if(e.hasOwnProperty(J)){e[J]=l=this.formatValue(e[J],J);E=this.formatName(J);p=k.hasOwnProperty(J);if(!p){l=this.getCssStyleValue(E,l)}if(A.hasOwnProperty(J)){A[J]=y=this.formatValue(A[J],J);if(!p){y=this.getCssStyleValue(E,y)}if(l!==y){K.push(E);x.push(E)}}else{g=h.getPropertyValue(E);if(l!==g){x.push(E)}}}}m=x.length;if(m===0){this.onAnimationEnd(d,I,D);continue}a=this.getRunningData(u);b=a.sessions;if(b.length>0){this.refreshRunningAnimationsData(d,Ext.Array.merge(K,x),true,I.replacePrevious)}c=a.nameMap;F=a.nameList;v={};for(B=0;B<m;B++){J=x[B];v[J]=true;if(!c.hasOwnProperty(J)){c[J]=1;F.push(J)}else{c[J]++}}n={element:d,map:v,list:x.slice(),length:m,data:I,animation:D};b.push(n);D.on("stop","onAnimationStop",this);o=Ext.apply({},w);Ext.apply(o,A);if(F.length>0){K=Ext.Array.difference(F,K);x=Ext.Array.merge(K,x);o["transition-property"]=K}z[u]=o;G[u]=Ext.apply({},e);G[u]["transition-property"]=x;G[u]["transition-duration"]=I.duration;G[u]["transition-timing-function"]=I.easing;G[u]["transition-delay"]=I.delay;D.startTime=Date.now()}t=this.$className;this.applyStyles(z);s=function(i){if(i.data===t&&i.source===window){window.removeEventListener("message",s,false);H.applyStyles(G)}};if(Ext.browser.is.IE){Ext.Function.requestAnimationFrame(function(){window.addEventListener("message",s,false);window.postMessage(t,"*")})}else{window.addEventListener("message",s,false);window.postMessage(t,"*")}},onAnimationStop:function(d){var g=this.runningAnimationsData,j,a,h,b,c,e;for(j in g){if(g.hasOwnProperty(j)){a=g[j];h=a.sessions;for(b=0,c=h.length;b<c;b++){e=h[b];if(e.animation===d){this.refreshRunningAnimationsData(e.element,e.list.slice(),false)}}}}}},1,0,0,0,0,0,[Ext.fx.runner,"CssTransition",Ext,"Animator"],0));(Ext.cmd.derive("Ext.fx.Runner",Ext.Base,{constructor:function(){return new Ext.fx.runner.CssTransition()}},1,0,0,0,0,0,[Ext.fx,"Runner"],0));(Ext.cmd.derive("Ext.fx.animation.Cube",Ext.fx.animation.Abstract,{config:{before:{},after:{},direction:"right",out:false},getData:function(){var n=this.getTo(),o=this.getFrom(),l=this.getBefore(),a=this.getAfter(),e=this.getOut(),k=this.getDirection(),b=this.getElement(),h=b.getWidth(),c=b.getHeight(),m=e?"100% 100%":"0% 0%",j=1,d=1,g={rotateY:0,translateZ:0},i={rotateY:0,translateZ:0};if(k=="left"||k=="right"){if(e){d=0.5;i.translateZ=h;i.rotateY=-90}else{j=0.5;g.translateZ=h;g.rotateY=90}}l["transform-origin"]=m;a["transform-origin"]=null;n.set("transform",i);o.set("transform",g);o.set("opacity",j);n.set("opacity",d);return Ext.fx.animation.Abstract.prototype.getData.apply(this,arguments)}},0,0,0,0,["animation.cube"],0,[Ext.fx.animation,"Cube"],0));(Ext.cmd.derive("Ext.fx.animation.Wipe",Ext.fx.Animation,{alternateClassName:"Ext.fx.animation.WipeIn",config:{easing:"ease-out",direction:"right",out:false},refresh:function(){var i=this,a=i.getElement(),h=a.dom.getBoundingClientRect(),o=h.width,g=h.height,m=i.getFrom(),n=i.getTo(),d=i.getOut(),k=i.getDirection(),c=0,b=0,l=0,j=0,p,e;switch(k){case"up":if(d){p="-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))";b=g*3+"px";j=g+"px"}else{p="-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))";b=-g*2+"px";j=0}break;case"down":if(d){p="-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))";b=-g*2+"px";j=0}else{p="-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))";b=g*3+"px";j=g+"px"}break;case"right":if(d){p="-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))";c=-o*2+"px";l=0}else{p="-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))";l=-o*2+"px"}break;case"left":if(d){p="-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))";l=-o*2+"px"}else{p="-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))";c=-o*2+"px";l=0}break}if(!d){e=b;b=j;j=e;e=c;c=l;l=e}m.set("mask-image",p);m.set("mask-size",o*3+"px "+g*3+"px");m.set("mask-position-x",c);m.set("mask-position-y",b);n.set("mask-position-x",l);n.set("mask-position-y",j)}},0,0,0,0,0,0,[Ext.fx.animation,"Wipe",Ext.fx.animation,"WipeIn"],0));(Ext.cmd.derive("Ext.fx.animation.WipeOut",Ext.fx.animation.Wipe,{config:{out:true}},0,0,0,0,0,0,[Ext.fx.animation,"WipeOut"],0));(Ext.cmd.derive("Ext.fx.easing.EaseIn",Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var c=Ext.Date.now()-this.getStartTime(),h=this.getDuration(),b=this.getStartValue(),a=this.getEndValue(),i=this.distance,e=c/h,d=Math.pow(e,this.getExponent()),g=b+(d*i);if(c>=h){this.isEnded=true;return a}return g}},0,0,0,0,["easing.ease-in"],0,[Ext.fx.easing,"EaseIn"],0));(Ext.cmd.derive("Ext.fx.easing.Easing",Ext.Base,{constructor:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,"easing")}},1,0,0,0,0,0,[Ext.fx.easing,"Easing"],0));(Ext.cmd.derive("Ext.fx.layout.card.Abstract",Ext.Evented,{isAnimation:true,config:{direction:"left",duration:null,reverse:null,layout:null},updateLayout:function(){this.enable()},enable:function(){var a=this.getLayout();if(a){a.onBefore("activeitemchange","onActiveItemChange",this)}},disable:function(){var a=this.getLayout();if(this.isAnimating){this.stopAnimation()}if(a){a.unBefore("activeitemchange","onActiveItemChange",this)}},onActiveItemChange:Ext.emptyFn,destroy:function(){var a=this.getLayout();if(this.isAnimating){this.stopAnimation()}if(a){a.unBefore("activeitemchange","onActiveItemChange",this)}this.setLayout(null);if(this.observableId){this.fireEvent("destroy",this);this.clearListeners();this.clearManagedListeners()}}},0,0,0,0,0,0,[Ext.fx.layout.card,"Abstract"],0));(Ext.cmd.derive("Ext.fx.layout.card.Style",Ext.fx.layout.card.Abstract,{config:{inAnimation:{before:{visibility:null},preserveEndState:false,replacePrevious:true},outAnimation:{preserveEndState:false,replacePrevious:true}},constructor:function(b){var c,a;Ext.fx.layout.card.Abstract.prototype.constructor.call(this,b);this.endAnimationCounter=0;c=this.getInAnimation();a=this.getOutAnimation();c.on("animationend","incrementEnd",this);a.on("animationend","incrementEnd",this)},updateDirection:function(a){this.getInAnimation().setDirection(a);this.getOutAnimation().setDirection(a)},updateDuration:function(a){this.getInAnimation().setDuration(a);this.getOutAnimation().setDuration(a)},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)},incrementEnd:function(){this.endAnimationCounter++;if(this.endAnimationCounter>1){this.endAnimationCounter=0;this.fireEvent("animationend",this)}},applyInAnimation:function(b,a){return Ext.factory(b,Ext.fx.Animation,a)},applyOutAnimation:function(b,a){return Ext.factory(b,Ext.fx.Animation,a)},updateInAnimation:function(a){a.setScope(this)},updateOutAnimation:function(a){a.setScope(this)},onActiveItemChange:function(a,e,i,j,d){var b=this.getInAnimation(),h=this.getOutAnimation(),g,c;if(e&&i&&i.isPainted()){g=e.renderElement;c=i.renderElement;b.setElement(g);h.setElement(c);h.setOnBeforeEnd(function(k,l){if(l||Ext.Animator.hasRunningAnimations(k)){d.firingArguments[1]=null;d.firingArguments[2]=null}});h.setOnEnd(function(){d.resume()});g.dom.style.setProperty("visibility","hidden","important");e.show();Ext.Animator.run([h,b]);d.pause()}},destroy:function(){Ext.destroy(this.getInAnimation(),this.getOutAnimation());Ext.fx.layout.card.Abstract.prototype.destroy.apply(this,arguments)}},1,0,0,0,0,0,[Ext.fx.layout.card,"Style"],0));(Ext.cmd.derive("Ext.fx.layout.card.Slide",Ext.fx.layout.card.Style,{config:{inAnimation:{type:"slide",easing:"ease-out"},outAnimation:{type:"slide",easing:"ease-out",out:true}},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)}},0,0,0,0,["fx.layout.card.slide"],0,[Ext.fx.layout.card,"Slide"],0));(Ext.cmd.derive("Ext.fx.layout.card.Cover",Ext.fx.layout.card.Style,{config:{reverse:null,inAnimation:{before:{"z-index":100},after:{"z-index":0},type:"slide",easing:"ease-out"},outAnimation:{easing:"ease-out",from:{opacity:0.99},to:{opacity:1},out:true}},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)}},0,0,0,0,["fx.layout.card.cover"],0,[Ext.fx.layout.card,"Cover"],0));(Ext.cmd.derive("Ext.fx.layout.card.Reveal",Ext.fx.layout.card.Style,{config:{inAnimation:{easing:"ease-out",from:{opacity:0.99},to:{opacity:1}},outAnimation:{before:{"z-index":100},after:{"z-index":0},type:"slide",easing:"ease-out",out:true}},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)}},0,0,0,0,["fx.layout.card.reveal"],0,[Ext.fx.layout.card,"Reveal"],0));(Ext.cmd.derive("Ext.fx.layout.card.Fade",Ext.fx.layout.card.Style,{config:{reverse:null,inAnimation:{type:"fade",easing:"ease-out"},outAnimation:{type:"fade",easing:"ease-out",out:true}}},0,0,0,0,["fx.layout.card.fade"],0,[Ext.fx.layout.card,"Fade"],0));(Ext.cmd.derive("Ext.fx.layout.card.Flip",Ext.fx.layout.card.Style,{config:{duration:500,inAnimation:{type:"flip",half:true,easing:"ease-out",before:{"backface-visibility":"hidden"},after:{"backface-visibility":null}},outAnimation:{type:"flip",half:true,easing:"ease-in",before:{"backface-visibility":"hidden"},after:{"backface-visibility":null},out:true}},onActiveItemChange:function(e,c,g,b,a){var d=c.element.getParent();d.addCls("x-layout-card-perspective");this.on("animationend",function(){d.removeCls("x-layout-card-perspective")},this,{single:true});Ext.fx.layout.card.Style.prototype.onActiveItemChange.apply(this,arguments)},updateDuration:function(d){var c=d/2,b=this.getInAnimation(),a=this.getOutAnimation();b.setDelay(c);b.setDuration(c);a.setDuration(c)}},0,0,0,0,["fx.layout.card.flip"],0,[Ext.fx.layout.card,"Flip"],0));(Ext.cmd.derive("Ext.fx.layout.card.Pop",Ext.fx.layout.card.Style,{config:{duration:500,inAnimation:{type:"pop",easing:"ease-out"},outAnimation:{type:"pop",easing:"ease-in",out:true}},updateDuration:function(d){var c=d/2,b=this.getInAnimation(),a=this.getOutAnimation();b.setDelay(c);b.setDuration(c);a.setDuration(c)}},0,0,0,0,["fx.layout.card.pop"],0,[Ext.fx.layout.card,"Pop"],0));(Ext.cmd.derive("Ext.fx.layout.card.Scroll",Ext.fx.layout.card.Abstract,{config:{duration:150},constructor:function(a){this.initConfig(a)},getEasing:function(){var a=this.easing;if(!a){this.easing=a=new Ext.fx.easing.Linear()}return a},updateDuration:function(a){this.getEasing().setDuration(a)},onActiveItemChange:function(a,d,m,n,c){var j=this.getDirection(),h=this.getEasing(),l,e,b,i,k,g;if(d&&m){if(this.isAnimating){this.stopAnimation()}d.setWidth("100%");d.setHeight("100%");l=this.getLayout().container.innerElement;i=l.getWidth();k=l.getHeight();e=d.renderElement;b=m.renderElement;this.oldItem=m;this.newItem=d;this.currentEventController=c;this.containerElement=l;this.isReverse=g=this.getReverse();d.show();if(j=="right"){j="left";this.isReverse=g=!g}else{if(j=="down"){j="up";this.isReverse=g=!g}}if(j=="left"){if(g){h.setConfig({startValue:i,endValue:0});l.dom.scrollLeft=i;b.setLeft(i)}else{h.setConfig({startValue:0,endValue:i});e.setLeft(i)}}else{if(g){h.setConfig({startValue:k,endValue:0});l.dom.scrollTop=k;b.setTop(k)}else{h.setConfig({startValue:0,endValue:k});e.setTop(k)}}this.startAnimation();c.pause()}},startAnimation:function(){this.isAnimating=true;this.getEasing().setStartTime(Date.now());Ext.AnimationQueue.start(this.doAnimationFrame,this)},doAnimationFrame:function(){var d=this.getEasing(),c=this.getDirection(),a="scrollTop",b;if(c=="left"||c=="right"){a="scrollLeft"}if(d.isEnded){this.stopAnimation()}else{b=d.getValue();this.containerElement.dom[a]=b}},stopAnimation:function(){var c=this,e=c.getDirection(),a="setTop",d=c.oldItem,b=c.newItem;if(e=="left"||e=="right"){a="setLeft"}c.currentEventController.resume();if(c.isReverse&&d&&d.renderElement&&d.renderElement.dom){d.renderElement[a](null)}else{if(b&&b.renderElement&&b.renderElement.dom){b.renderElement[a](null)}}Ext.AnimationQueue.stop(this.doAnimationFrame,this);c.isAnimating=false;c.fireEvent("animationend",c)}},1,0,0,0,["fx.layout.card.scroll"],0,[Ext.fx.layout.card,"Scroll"],0));(Ext.cmd.derive("Ext.fx.layout.Card",Ext.Base,{constructor:function(b){var a=Ext.fx.layout.card.Abstract,c;if(!b){return null}if(typeof b=="string"){c=b;b={}}else{if(b.type){c=b.type}}b.elementBox=false;if(c){if(Ext.browser.is.AndroidStock2){if(c!="fade"){c="scroll"}}a=Ext.ClassManager.getByAlias("fx.layout.card."+c)}return Ext.factory(b,a)}},1,0,0,0,0,0,[Ext.fx.layout,"Card"],0));(Ext.cmd.derive("Ext.fx.layout.card.Cube",Ext.fx.layout.card.Style,{config:{reverse:null,inAnimation:{type:"cube"},outAnimation:{type:"cube",out:true}}},0,0,0,0,["fx.layout.card.cube"],0,[Ext.fx.layout.card,"Cube"],0));(Ext.cmd.derive("Ext.fx.layout.card.ScrollCover",Ext.fx.layout.card.Scroll,{onActiveItemChange:function(c,h,d,l,e){var j,a,k,i,b,g;this.lastController=e;this.inItem=h;if(h&&d){j=this.getLayout().container.innerElement;a=j.getSize();k=this.calculateXY(a);i={easing:this.getEasing(),duration:this.getDuration()};h.renderElement.dom.style.setProperty("visibility","hidden","important");b=h.setTranslatable(true).getTranslatable();g=d.setTranslatable(true).getTranslatable();g.translate({x:0,y:0});b.translate({x:k.left,y:k.top});b.getWrapper().dom.style.setProperty("z-index","100","important");h.show();b.on({animationstart:"onInAnimationStart",animationend:"onInAnimationEnd",scope:this});b.translateAnimated({x:0,y:0},i);e.pause()}},onInAnimationStart:function(){this.inItem.renderElement.dom.style.removeProperty("visibility")},onInAnimationEnd:function(){this.inItem.getTranslatable().getWrapper().dom.style.removeProperty("z-index");this.lastController.resume()}},0,0,0,0,["fx.layout.card.scrollcover"],0,[Ext.fx.layout.card,"ScrollCover"],0));(Ext.cmd.derive("Ext.fx.layout.card.ScrollReveal",Ext.fx.layout.card.Scroll,{onActiveItemChange:function(c,h,d,l,e){var j,a,k,i,g,b;this.lastController=e;this.outItem=d;this.inItem=h;if(h&&d){j=this.getLayout().container.innerElement;a=j.getSize();k=this.calculateXY(a);i={easing:this.getEasing(),duration:this.getDuration()};g=d.setTranslatable(true).getTranslatable();b=h.setTranslatable(true).getTranslatable();g.getWrapper().dom.style.setProperty("z-index","100","important");g.translate({x:0,y:0});b.translate({x:0,y:0});h.show();g.on({animationend:"onOutAnimationEnd",scope:this});g.translateAnimated({x:k.x,y:k.y},i);e.pause()}},onOutAnimationEnd:function(){this.outItem.getTranslatable().getWrapper().dom.style.removeProperty("z-index");this.lastController.resume()}},0,0,0,0,["fx.layout.card.scrollreveal"],0,[Ext.fx.layout.card,"ScrollReveal"],0));(Ext.cmd.derive("Ext.fx.runner.CssAnimation",Ext.fx.runner.Css,{constructor:function(){this.runningAnimationsMap={};this.elementEndStates={};this.animationElementMap={};this.keyframesRulesCache={};this.uniqueId=0;return Ext.fx.runner.Css.prototype.constructor.apply(this,arguments)},attachListeners:function(){this.listenersAttached=true;Ext.getWin().on({animationstart:"onAnimationStart",animationend:"onAnimationEnd",scope:this})},onAnimationStart:function(h){var b=h.browserEvent.animationName,a=this.animationElementMap[b],g=this.runningAnimationsMap[a][b],i=this.elementEndStates,c=i[a],d={};if(c){delete i[a];d[a]=c;this.applyStyles(d)}if(g.before){d[a]=g.before;this.applyStyles(d)}},onAnimationEnd:function(j){var c=j.target,b=j.browserEvent.animationName,d=this.animationElementMap,a=d[b],g=this.runningAnimationsMap,i=g[a],h=i[b];if(h.onBeforeEnd){h.onBeforeEnd.call(h.scope||this,c)}if(h.onEnd){h.onEnd.call(h.scope||this,c)}delete d[b];delete i[b];this.removeKeyframesRule(b)},generateAnimationId:function(){return"animation-"+(++this.uniqueId)},run:function(g){var t={},u=this.elementEndStates,p=this.animationElementMap,s=this.runningAnimationsMap,b,d,j,l,q,h,r,v,n,m,c,e,a,k,o;if(!this.listenersAttached){this.attachListeners()}g=Ext.Array.from(g);for(q=0,h=g.length;q<h;q++){r=g[q];r=Ext.factory(r,Ext.fx.Animation);j=r.getElement().getId();l=r.getName()||this.generateAnimationId();p[l]=j;r=r.getData();d=r.states;this.addKeyframesRule(l,d);b=s[j];if(!b){b=s[j]={}}b[l]=r;m=[];c=[];e=[];a=[];k=[];o=[];for(v in b){if(b.hasOwnProperty(v)){n=b[v];m.push(v);c.push(n.duration);e.push(n.easing);a.push(n.delay);k.push(n.direction);o.push(n.iteration)}}t[j]={"animation-name":m,"animation-duration":c,"animation-timing-function":e,"animation-delay":a,"animation-direction":k,"animation-iteration-count":o};if(r.preserveEndState){u[j]=d["100%"]}}this.applyStyles(t)},addKeyframesRule:function(a,c){var l,e,b,h,j,k,d,i,g;h=this.getStyleSheet();j=h.cssRules;d=j.length;h.insertRule("@"+this.vendorPrefix+"keyframes "+a+"{}",d);b=j[d];for(l in c){e=c[l];j=b.cssRules;d=j.length;k=[];for(i in e){g=this.formatValue(e[i],i);i=this.formatName(i);k.push(i+":"+g)}b.insertRule(l+"{"+k.join(";")+"}",d)}return this},removeKeyframesRule:function(a){var g=this.getStyleSheet(),e=g.cssRules,b,c,d;for(b=0,c=e.length;b<c;b++){d=e[b];if(d.name===a){g.removeRule(b);break}}return this}},1,0,0,0,0,0,[Ext.fx.runner,"CssAnimation"],0));(Ext.cmd.derive("Ext.mixin.Hookable",Ext.Mixin,{mixinConfig:{id:"hookable"},bind:function(a,d,i,c,b){if(!i){i=d}var g=a[d],e,h;if(g&&g.hasOwnProperty("$binding")){h=g.$binding;if(h.bindingMethod===i&&h.bindingScope===this){return this}}a[d]=e=function(){var l=e.$binding,k=l.bindingScope,j=Array.prototype.slice.call(arguments);j.push(arguments);if(b){j.push.apply(j,b)}if(!l.preventDefault&&k[l.bindingMethod].apply(k,j)!==false){return l.boundFn.apply(this,arguments)}};e.$binding={preventDefault:!!c,boundFn:g,bindingMethod:i,bindingScope:this};return this},unbind:function(a,b,h){if(!h){h=b}var d=a[b],e=d.$binding,c,g;while(e){c=e.boundFn;if(e.bindingMethod===h&&e.bindingScope===this){if(g){g.boundFn=c}else{a[b]=c}return this}g=e;e=c.$binding}return this}},0,0,0,0,0,0,[Ext.mixin,"Hookable"],0));Ext.define("Ext.mixin.Mashup",function(a){return{extend:"Ext.Mixin",mixinConfig:{id:"mashup",extended:function(c,b){a.process(b)}},statics:{process:function(e){var c=e.prototype,g=c.requiredScripts,b=e._classHooks,d=b.onCreated;if(g){delete c.requiredScripts;b.onCreated=function(){var i=this,h=Ext.Array.slice(arguments);Ext.Loader.loadScripts({url:g,cache:true,onLoad:function(){b.onCreated=d;b.onCreated.call(i,h)}})}}}},onClassMixedIn:function(b){a.process(b)}}});(Ext.cmd.derive("Ext.mixin.Responsive",Ext.Mixin,function(a){return{mixinConfig:{id:"responsive",after:{destroy:"destroy"}},config:{responsiveConfig:{$value:undefined,merge:function(h,c,g,e){if(!h){return c}var b=c?Ext.Object.chain(c):{},d;for(d in h){if(!e||!(d in b)){b[d]={fn:null,config:h[d]}}}return b}},responsiveFormulas:{$value:0,merge:function(e,b,d,c){return this.mergeNew(e,b,d,c)}}},destroy:function(){a.unregister(this);this.callParent()},privates:{statics:{active:false,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=true;a.updateContext();Ext.on("resize",a.onResize,a)},deactivate:function(){a.active=false;Ext.un("resize",a.onResize,a)},notify:function(){var d=a.all,c=a.context,b=Ext.GlobalEvents,g=a.timer,e;if(g){a.timer=null;Ext.Function.cancelAnimationFrame(g)}a.updateContext();Ext.suspendLayouts();b.fireEvent("beforeresponsiveupdate",c);for(e in d){d[e].setupResponsiveContext()}b.fireEvent("beginresponsiveupdate",c);for(e in d){d[e].updateResponsiveState()}b.fireEvent("responsiveupdate",c);Ext.resumeLayouts(true)},onResize:function(){if(!a.timer){a.timer=Ext.Function.requestAnimationFrame(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(b,i,g){var h=i&&i[g],e=b.config,c,d;if(h){d=b.getConfigurator();c=d.configs[g];e[g]=c.merge(h,e[g],b)}},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),b=e.getViewportHeight(),c=a.context;c.width=d;c.height=b;c.tall=d<b;c.wide=!c.tall;c.landscape=c.portrait=false;if(!c.platform){c.platform=Ext.platformTags}c[Ext.dom.Element.getOrientation()]=true}},afterClassMixedIn:function(g){var e=g.prototype,b=e.responsiveConfig,d=e.responsiveFormulas,c;if(b||d){c={};if(b){delete e.responsiveConfig;c.responsiveConfig=b}if(d){delete e.responsiveFormulas;c.responsiveFormulas=d}g.getConfigurator().add(c)}},applyResponsiveConfig:function(c){for(var b in c){c[b].fn=Ext.createRuleFn(b)}return c},applyResponsiveFormulas:function(d){var c={},e,b;if(d){for(b in d){if(Ext.isString(e=d[b])){e=Ext.createRuleFn(e)}c[b]=e}}return c},getResponsiveState:function(){var c=a.context,g=this.getResponsiveConfig(),b={},d,e;if(g){for(e in g){d=g[e];if(d.fn.call(this,c)){Ext.merge(b,d.config)}}}return b},setupResponsiveContext:function(){var c=this.getResponsiveFormulas(),d=a.context,b;if(c){for(b in c){d[b]=c[b].call(this,d)}}},transformInstanceConfig:function(d){var c=this,b;a.register(c);if(d){a.processConfig(c,d,"responsiveConfig");a.processConfig(c,d,"responsiveFormulas")}c.setupResponsiveContext();b=c.getResponsiveState();if(d){b=Ext.merge({},d,b);delete b.responsiveConfig;delete b.responsiveFormulas}return b},updateResponsiveState:function(){var b=this.getResponsiveState();this.setConfig(b)}}}},0,0,0,0,0,0,[Ext.mixin,"Responsive"],0));(Ext.cmd.derive("Ext.mixin.Selectable",Ext.Mixin,{mixinConfig:{id:"selectable",after:{updateStore:"updateStore"}},config:{disableSelection:null,mode:"SINGLE",allowDeselect:false,lastSelected:null,lastFocused:null,deselectOnContainerClick:true},modes:{SINGLE:true,SIMPLE:true,MULTI:true},selectableEventHooks:{addrecords:"onSelectionStoreAdd",removerecords:"onSelectionStoreRemove",updaterecord:"onSelectionStoreUpdate",load:"refreshSelection",refresh:"refreshSelection"},constructor:function(){this.selected=new Ext.util.MixedCollection();this.callParent(arguments)},applyMode:function(a){a=a?a.toUpperCase():"SINGLE";return this.modes[a]?a:"SINGLE"},updateStore:function(a,c){var b=this,d=Ext.apply({},b.selectableEventHooks,{scope:b});if(c&&Ext.isObject(c)&&c.isStore){if(c.autoDestroy){c.destroy()}else{c.un(d);if(a){a.un("clear","onSelectionStoreClear",this)}}}if(a){a.on(d);a.onBefore("clear","onSelectionStoreClear",this);b.refreshSelection()}},selectAll:function(a){var c=this,b=c.getStore().getRange();c.select(b,true,a)},deselectAll:function(c){var b=this,a=b.getStore().getRange();b.deselect(a,c);b.selected.clear();b.setLastSelected(null);b.setLastFocused(null)},selectWithEvent:function(a){var c=this,b=c.isSelected(a);switch(c.getMode()){case"MULTI":case"SIMPLE":if(b){c.deselect(a)}else{c.select(a,true)}break;case"SINGLE":if(c.getAllowDeselect()&&b){c.deselect(a)}else{c.select(a,false)}break}},selectRange:function(c,h,j){var g=this,b=g.getStore(),a=[],e,d;if(g.getDisableSelection()){return}if(c>h){e=h;h=c;c=e}for(d=c;d<=h;d++){a.push(b.getAt(d))}this.doMultiSelect(a,j)},select:function(c,e,b){var d=this,a;if(d.getDisableSelection()){return}if(typeof c==="number"){c=[d.getStore().getAt(c)]}if(!c){return}if(d.getMode()=="SINGLE"&&c){a=c.length?c[0]:c;d.doSingleSelect(a,b)}else{d.doMultiSelect(c,e,b)}},doSingleSelect:function(a,b){var d=this,c=d.selected;if(d.getDisableSelection()){return}if(d.isSelected(a)){return}if(c.getCount()>0){d.deselect(d.getLastSelected(),b)}c.add(a);d.setLastSelected(a);d.onItemSelect(a,b);d.setLastFocused(a);if(!b){d.fireSelectionChange([a])}},doMultiSelect:function(a,k,j){if(a===null||this.getDisableSelection()){return}a=!Ext.isArray(a)?[a]:a;var g=this,b=g.selected,e=a.length,h=false,c=0,d;if(!k&&b.getCount()>0){h=true;g.deselect(g.getSelection(),true)}for(;c<e;c++){d=a[c];if(k&&g.isSelected(d)){continue}h=true;g.setLastSelected(d);b.add(d);if(!j){g.setLastFocused(d)}g.onItemSelect(d,j)}if(h&&!j){this.fireSelectionChange(a)}},deselect:function(a,k){var g=this;if(g.getDisableSelection()){return}a=Ext.isArray(a)?a:[a];var b=g.selected,h=false,c=0,j=g.getStore(),e=a.length,d;for(;c<e;c++){d=a[c];if(typeof d==="number"){d=j.getAt(d)}if(b.remove(d)){if(g.getLastSelected()==d){g.setLastSelected(b.last())}h=true}if(d){g.onItemDeselect(d,k)}}if(h&&!k){g.fireSelectionChange(a)}},updateLastFocused:function(b,a){this.onLastFocusChanged(a,b)},fireSelectionChange:function(a){var b=this;b.fireAction("beforeselectionchange",[b],function(){b.fireAction("selectionchange",[b,a],"getSelection")})},getSelection:function(){return this.selected.getRange()},isSelected:function(a){a=Ext.isNumber(a)?this.getStore().getAt(a):a;return this.selected.indexOf(a)!==-1},hasSelection:function(){return this.selected.getCount()>0},refreshSelection:function(){var b=this,a=b.getSelection();b.deselectAll(true);if(a.length){b.select(a,false,true)}},onSelectionStoreRemove:function(c,b){var h=this,e=h.selected,g=b.length,a,d;if(h.getDisableSelection()){return}for(d=0;d<g;d++){a=b[d];if(e.remove(a)){if(h.getLastSelected()==a){h.setLastSelected(null)}if(h.getLastFocused()==a){h.setLastFocused(null)}h.fireSelectionChange([a])}}},onSelectionStoreClear:function(b){var a=b.getData().items;this.onSelectionStoreRemove(b,a)},getSelectionCount:function(){return this.selected.getCount()},onSelectionStoreAdd:Ext.emptyFn,onSelectionStoreUpdate:Ext.emptyFn,onItemSelect:Ext.emptyFn,onItemDeselect:Ext.emptyFn,onLastFocusChanged:Ext.emptyFn,onEditorKey:Ext.emptyFn},1,0,0,0,0,0,[Ext.mixin,"Selectable"],function(){}));(Ext.cmd.derive("Ext.mixin.Traversable",Ext.Mixin,{mixinConfig:{id:"traversable"},setParent:function(a){this.parent=a;return this},hasParent:function(){return Boolean(this.parent)},getParent:function(){return this.parent},getAncestors:function(){var b=[],a=this.getParent();while(a){b.push(a);a=a.getParent()}return b},getAncestorIds:function(){var b=[],a=this.getParent();while(a){b.push(a.getId());a=a.getParent()}return b}},0,0,0,0,0,0,[Ext.mixin,"Traversable"],0));(Ext.cmd.derive("Ext.perf.Accumulator",Ext.Base,function(){var c=null,h=Ext.global.chrome,d,b=function(){b=Ext.now;var k,l;if(Ext.isChrome&&h&&h.Interval){k=new h.Interval();k.start();b=function(){return k.microseconds()/1000}}else{if(window.ActiveXObject){try{l=new ActiveXObject("SenchaToolbox.Toolbox");Ext.senchaToolbox=l;b=function(){return l.milliseconds}}catch(m){}}}Ext.perf.getTimestamp=Ext.perf.Accumulator.getTimestamp=b;return b()};function i(l,k){l.sum+=k;l.min=Math.min(l.min,k);l.max=Math.max(l.max,k)}function e(n){var l=n?n:(b()-this.time),m=this,k=m.accum;++k.count;if(!--k.depth){i(k.total,l)}i(k.pure,l-m.childTime);c=m.parent;if(c){++c.accum.childCount;c.childTime+=l}}function a(){return{min:Number.MAX_VALUE,max:0,sum:0}}function j(l,k){return function(){var n=l.enter(),m=k.apply(this,arguments);n.leave();return m}}function g(m,l,k,o){var n={avg:0,min:o.min,max:o.max,sum:0};if(m){k=k||0;n.sum=o.sum-l*k;n.avg=n.sum/m}return n}return{constructor:function(k){var l=this;l.count=l.childCount=l.depth=l.maxDepth=0;l.pure=a();l.total=a();l.name=k},statics:{getTimestamp:b},format:function(k){if(!d){d=new Ext.XTemplate(["{name} - {count} call(s)",'<tpl if="count">','<tpl if="childCount">'," ({childCount} children)","</tpl>",'<tpl if="depth - 1">'," ({depth} deep)","</tpl>",'<tpl for="times">',", {type}: {[this.time(values.sum)]} msec (","avg={[this.time(values.sum / parent.count)]}",")","</tpl>","</tpl>"].join(""),{time:function(m){return Math.round(m*100)/100}})}var l=this.getData(k);l.name=this.name;l.pure.type="Pure";l.total.type="Total";l.times=[l.pure,l.total];return d.apply(l)},getData:function(k){var l=this;return{count:l.count,childCount:l.childCount,depth:l.maxDepth,pure:g(l.count,l.childCount,k,l.pure),total:g(l.count,l.childCount,k,l.total)}},enter:function(){var k=this,l={accum:k,leave:e,childTime:0,parent:c};++k.depth;if(k.maxDepth<k.depth){k.maxDepth=k.depth}c=l;l.time=b();return l},monitor:function(m,l,k){var n=this.enter();if(k){m.apply(l,k)}else{m.call(l)}n.leave()},report:function(){Ext.log(this.format())},tap:function(s,u){var t=this,n=typeof u==="string"?[u]:u,r,v,p,o,m,l,k,q;q=function(){if(typeof s==="string"){r=Ext.global;o=s.split(".");for(p=0,m=o.length;p<m;++p){r=r[o[p]]}}else{r=s}for(p=0,m=n.length;p<m;++p){l=n[p];v=l.charAt(0)==="!";if(v){l=l.substring(1)}else{v=!(l in r.prototype)}k=v?r:r.prototype;k[l]=j(t,k[l])}};Ext.ClassManager.onCreated(q,t,s);return t}}},1,0,0,0,0,0,[Ext.perf,"Accumulator"],function(){Ext.perf.getTimestamp=this.getTimestamp}));(Ext.cmd.derive("Ext.perf.Monitor",Ext.Base,{singleton:true,alternateClassName:"Ext.Perf",constructor:function(){this.accumulators=[];this.accumulatorsByName={}},calibrate:function(){var b=new Ext.perf.Accumulator("$"),g=b.total,c=Ext.perf.Accumulator.getTimestamp,e=0,h,a,d;d=c();do{h=b.enter();h.leave();++e}while(g.sum<100);a=c();return(a-d)/e},get:function(b){var c=this,a=c.accumulatorsByName[b];if(!a){c.accumulatorsByName[b]=a=new Ext.perf.Accumulator(b);c.accumulators.push(a)}return a},enter:function(a){return this.get(a).enter()},monitor:function(a,c,b){this.get(a).monitor(c,b)},report:function(){var c=this,b=c.accumulators,a=c.calibrate();b.sort(function(e,d){return(e.name<d.name)?-1:((d.name<e.name)?1:0)});c.updateGC();Ext.log("Calibration: "+Math.round(a*100)/100+" msec/sample");Ext.each(b,function(d){Ext.log(d.format(a))})},getData:function(c){var b={},a=this.accumulators;Ext.each(a,function(d){if(c||d.count){b[d.name]=d.getData()}});return b},reset:function(){Ext.each(this.accumulators,function(a){var b=a;b.count=b.childCount=b.depth=b.maxDepth=0;b.pure={min:Number.MAX_VALUE,max:0,sum:0};b.total={min:Number.MAX_VALUE,max:0,sum:0}})},updateGC:function(){var a=this.accumulatorsByName.GC,b=Ext.senchaToolbox,c;if(a){a.count=b.garbageCollectionCounter||0;if(a.count){c=a.pure;a.total.sum=c.sum=b.garbageCollectionMilliseconds;c.min=c.max=c.sum/a.count;c=a.total;c.min=c.max=c.sum/a.count}}},watchGC:function(){Ext.perf.getTimestamp();var a=Ext.senchaToolbox;if(a){this.get("GC");a.watchGarbageCollector(false)}},setup:function(c){if(!c){c={render:{"Ext.Component":"render"},layout:{"Ext.layout.Context":"run"}}}this.currentConfig=c;var d,g,b,e,a;for(d in c){if(c.hasOwnProperty(d)){g=c[d];b=Ext.Perf.get(d);for(e in g){if(g.hasOwnProperty(e)){a=g[e];b.tap(e,a)}}}}this.watchGC()},setupLog:function(c){var e,a,b,g,d;for(e in c){if(c.hasOwnProperty(e)){a=Ext.ClassManager.get(e);if(a){b=c[e];d={};for(g in b){d[g]=(function(h,i){return function(){var l,m,n,k,j;l=+Date.now();j=this.callParent(arguments);m=+Date.now()-l;if(window.console&&m>0){k=i==="this"?this:typeof i==="string"?this[i]:typeof i==="number"?arguments[i]:null;if(k){n=k.id}if(n!=null){console.log(h+" for "+n+": "+m+"ms")}else{console.log(h+" for unknown: "+m+"ms")}if(console.trace){console.trace()}}return j}})(g,b[g])}Ext.override(a,d)}}}}},1,0,0,0,0,0,[Ext.perf,"Monitor",Ext,"Perf"],0));(Ext.cmd.derive("Ext.plugin.Abstract",Ext.Base,{alternateClassName:"Ext.AbstractPlugin",isPlugin:true,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},setCmp:function(a){this.cmp=a},getCmp:function(){return this.cmp},init:Ext.emptyFn,onClassExtended:function(b,d,a){var c=d.alias;if(c&&!d.ptype){if(Ext.isArray(c)){c=c[0]}b.prototype.ptype=c.split("plugin.")[1]}},resolveListenerScope:function(d){var c=this,b=c.getCmp(),a;if(b){a=b.resolveSatelliteListenerScope(c,d)}return a||c.mixins.observable.resolveListenerScope.call(c,d)}},1,0,0,0,0,0,[Ext.plugin,"Abstract",Ext,"AbstractPlugin"],0));Ext.define("Ext.overrides.plugin.Abstract",{override:"Ext.plugin.Abstract",$configStrict:false,$configPrefixed:false,disabled:false,getState:null,applyState:null,enable:function(){this.disabled=false},disable:function(){this.disabled=true}});(Ext.cmd.derive("Ext.plugin.LazyItems",Ext.plugin.Abstract,{init:function(a){Ext.plugin.Abstract.prototype.init.apply(this,arguments);if(this.items){if(this.eagerInstantiation){this.items=a.prepareItems(this.items)}}a.beforeRender=Ext.Function.createInterceptor(a.beforeRender,this.beforeComponentRender,this)},beforeComponentRender:function(){this.cmp.add(this.items);delete this.cmp.beforeComponentRender}},0,0,0,0,["plugin.lazyitems"],0,[Ext.plugin,"LazyItems"],0));(Ext.cmd.derive("Ext.util.Base64",Ext.Base,{singleton:true,_str:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var d=this;var a="",n,l,j,m,k,h,g,b=0;e=d._utf8_encode(e);var c=e.length;while(b<c){n=e.charCodeAt(b++);l=e.charCodeAt(b++);j=e.charCodeAt(b++);m=n>>2;k=((n&3)<<4)|(l>>4);h=((l&15)<<2)|(j>>6);g=j&63;if(isNaN(l)){h=g=64}else{if(isNaN(j)){g=64}}a=a+d._str.charAt(m)+d._str.charAt(k)+d._str.charAt(h)+d._str.charAt(g)}return a},decode:function(e){var d=this;var a="",n,l,j,m,k,h,g,b=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var c=e.length;while(b<c){m=d._str.indexOf(e.charAt(b++));k=d._str.indexOf(e.charAt(b++));h=d._str.indexOf(e.charAt(b++));g=d._str.indexOf(e.charAt(b++));n=(m<<2)|(k>>4);l=((k&15)<<4)|(h>>2);j=((h&3)<<6)|g;a=a+String.fromCharCode(n);if(h!==64){a=a+String.fromCharCode(l)}if(g!==64){a=a+String.fromCharCode(j)}}a=d._utf8_decode(a);return a},_utf8_encode:function(d){d=d.replace(/\r\n/g,"\n");var b="",g=0,a=d.length;for(;g<a;g++){var e=d.charCodeAt(g);if(e<128){b+=String.fromCharCode(e)}else{if((e>127)&&(e<2048)){b+=String.fromCharCode((e>>6)|192);b+=String.fromCharCode((e&63)|128)}else{b+=String.fromCharCode((e>>12)|224);b+=String.fromCharCode(((e>>6)&63)|128);b+=String.fromCharCode((e&63)|128)}}}return b},_utf8_decode:function(b){var e="",h=0,j=0,d=0,g=0,a=b.length;while(h<a){j=b.charCodeAt(h);if(j<128){e+=String.fromCharCode(j);h++}else{if((j>191)&&(j<224)){g=b.charCodeAt(h+1);e+=String.fromCharCode(((j&31)<<6)|(g&63));h+=2}else{g=b.charCodeAt(h+1);d=b.charCodeAt(h+2);e+=String.fromCharCode(((j&15)<<12)|((g&63)<<6)|(d&63));h+=3}}}return e}},0,0,0,0,0,0,[Ext.util,"Base64"],0));(Ext.cmd.derive("Ext.util.DelimitedValue",Ext.Base,{dateFormat:"C",delimiter:"\t",lineBreak:"\n",quote:'"',parseREs:{},quoteREs:{},lineBreakRe:/\r?\n/g,lastLineBreakRe:/(\r?\n|\r)$/,constructor:function(a){if(a){Ext.apply(this,a)}},decode:function(k,b){if(!k){return[]}var i=this,c=(b||i.delimiter),n=[],o=[n],a=i.quote,g=i.quoteREs,l=i.parseREs,k=k.replace(i.lastLineBreakRe,""),m=l[c]||(l[c]=new RegExp("(\\"+c+"|\\r?\\n|\\r|^)(?:\\"+a+"([^\\"+a+"]*(?:\\"+a+"\\"+a+"[^\\"+a+"]*)*)\\"+a+'|([^"\\'+c+"\\r\\n]*))","gi")),e=g[a]||(g[a]=new RegExp("\\"+a+"\\"+a,"g")),h,d,j;while(h=m.exec(k)){d=h[1];if(d.length&&d!==c){o.push(n=[])}if(h[2]){j=h[2].replace(e,'"')}else{j=h[3]}n.push(j)}return o},encode:function(m,c){var j=this,e=c||j.delimiter,d=j.dateFormat,b=j.quote,k=b+b,l=m.length,h=j.lineBreakRe,o=[],a=[],g,i,n;while(l-->0){n=m[l];a.length=i=n.length;while(i-->0){g=n[i];if(g==null){g=""}else{if(typeof g==="string"){if(g){if(g.indexOf(b)>-1){g=b+g.split(b).join(k)+b}else{if(g.indexOf(e)>-1||h.test(g)){g=b+g+b}}}}else{if(Ext.isDate(g)){g=Ext.Date.format(g,d)}}}a[i]=g}o[l]=a.join(e)}return o.join(j.lineBreak)}},1,0,0,0,0,0,[Ext.util,"DelimitedValue"],0));(Ext.cmd.derive("Ext.util.CSV",Ext.util.DelimitedValue,{singleton:true,delimiter:","},0,0,0,0,0,0,[Ext.util,"CSV"],0));(Ext.cmd.derive("Ext.util.LocalStorage",Ext.Base,{id:null,destroyed:false,lazyKeys:true,prefix:"",session:false,_keys:null,_store:null,_users:0,statics:{cache:{},get:function(e){var d=this,b=d.cache,c={_users:1},a;if(Ext.isString(e)){c.id=e}else{Ext.apply(c,e)}if(!(a=b[c.id])){a=new d(c)}else{++a._users}return a},supported:true},constructor:function(a){var b=this;Ext.apply(b,a);if(b._users){Ext.util.LocalStorage.cache[b.id]=b}b.init()},init:function(){var a=this,b=a.id;if(!a.prefix&&b){a.prefix=b+"-"}a._store=(a.session?window.sessionStorage:window.localStorage)},destroy:function(){var a=this;delete Ext.util.LocalStorage.cache[a.id];a._store=a._keys=null;a.destroyed=true;a.destroy=Ext.emptyFn},getKeys:function(){var e=this,a=e._store,g=e.prefix,d=e._keys,h=g.length,c,b;if(!d){e._keys=d=[];for(c=a.length;c--;){b=a.key(c);if(b.length>h){if(g===b.substring(0,h)){d.push(b.substring(h))}}}}return d},release:function(){if(!--this._users){this.destroy()}},save:Ext.emptyFn,clear:function(){var d=this,a=d._store,e=d.prefix,c=d._keys||d.getKeys(),b;for(b=c.length;b--;){a.removeItem(e+c[b])}c.length=0},key:function(a){var b=this._keys||this.getKeys();return(0<=a&&a<b.length)?b[a]:null},getItem:function(b){var a=this.prefix+b;return this._store.getItem(a)},removeItem:function(c){var g=this,b=g.prefix+c,a=g._store,e=g._keys,d=a.length;a.removeItem(b);if(e&&d!==a.length){if(g.lazyKeys){g._keys=null}else{Ext.Array.remove(e,c)}}},setItem:function(c,h){var g=this,b=g.prefix+c,a=g._store,e=a.length,d=g._keys;a.setItem(b,h);if(d&&e!==a.length){d.push(c)}}},1,0,0,0,0,0,[Ext.util,"LocalStorage"],function(){var a=this;if("localStorage" in window){return}if(!Ext.isIE){a.supported=false;return}a.override({data:null,flushDelay:1,init:function(){var c=this,d=c.data,b;c.el=b=document.createElement("div");b.id=(c.id||(c.id="extjs-localstore"));b.addBehavior("#default#userdata");Ext.getHead().dom.appendChild(b);b.load(c.id);d=b.getAttribute("xdata");c.data=d=(d?Ext.decode(d):{});c._flushFn=function(){c._timer=null;c.save(0)}},destroy:function(){var c=this,b=c.el;if(b){if(c._timer){c.save()}b.parentNode.removeChild(b);c.data=c.el=null;c.callParent()}},getKeys:function(){var c=this,b=c._keys;if(!b){c._keys=b=Ext.Object.getKeys(c.data)}return b},save:function(b){var c=this;if(!b){if(c._timer){clearTimeout(c._timer);c._timer=null}c.el.setAttribute("xdata",Ext.encode(c.data));c.el.save(c.id)}else{if(!c._timer){c._timer=Ext.defer(c._flushFn,b)}}},clear:function(){var b=this;b.data={};b._keys=null;b.save(b.flushDelay)},getItem:function(b){var c=this.data;return(b in c)?c[b]:null},removeItem:function(b){var d=this,c=d._keys,e=d.data;if(b in e){delete e[b];if(c){if(d.lazyKeys){d._keys=null}else{Ext.Array.remove(c,b)}}d.save(d.flushDelay)}},setItem:function(b,g){var d=this,e=d.data,c=d._keys;if(c&&!(b in e)){c.push(b)}e[b]=g;d.save(d.flushDelay)}})}));(Ext.cmd.derive("Ext.util.TSV",Ext.util.DelimitedValue,{singleton:true,delimiter:"\t"},0,0,0,0,0,0,[Ext.util,"TSV"],0));(Ext.cmd.derive("Ext.util.TaskManager",Ext.util.TaskRunner,{alternateClassName:["Ext.TaskManager"],singleton:true},0,0,0,0,0,0,[Ext.util,"TaskManager",Ext,"TaskManager"],0));(Ext.cmd.derive("Ext.util.TextMetrics",Ext.Base,{statics:{shared:null,measure:function(a,d,e){var b=this,c=b.shared;if(!c){c=b.shared=new b(a,e)}c.bind(a);c.setFixedWidth(e||"auto");return c.getSize(d)},destroy:function(){var a=this;Ext.destroy(a.shared);a.shared=null}},constructor:function(a,d){var c=this,b=Ext.getBody().createChild({role:"presentation",cls:"x-textmetrics"});c.measure=b;if(a){c.bind(a)}b.position("absolute");b.setLocalXY(-1000,-1000);b.hide();if(d){b.setWidth(d)}},getSize:function(c){var b=this.measure,a;b.setHtml(c);a=b.getSize();b.setHtml("");return a},bind:function(a){var b=this;b.el=Ext.get(a);b.measure.setStyle(b.el.getStyle(["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing","word-break"]))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width="auto";return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.measure.destroy();delete a.el;delete a.measure}},1,0,0,0,0,0,[Ext.util,"TextMetrics"],function(){Ext.Element.override({getTextWidth:function(c,b,a){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(c,this.dom.innerHTML,true)).width,b||0,a||1000000)}})}));(Ext.cmd.derive("Ext.Action",Ext.Base,{constructor:function(a){this.initialConfig=a;this.itemId=a.itemId=(a.itemId||a.id||Ext.id());this.items=[]},isAction:true,setText:function(a){this.initialConfig.text=a;this.callEach("setText",[a])},getText:function(){return this.initialConfig.text},setIconCls:function(a){this.initialConfig.iconCls=a;this.callEach("setIconCls",[a])},getIconCls:function(){return this.initialConfig.iconCls},setDisabled:function(a){this.initialConfig.disabled=a;this.callEach("setDisabled",[a])},enable:function(){this.setDisabled(false)},disable:function(){this.setDisabled(true)},isDisabled:function(){return this.initialConfig.disabled},setHidden:function(a){this.initialConfig.hidden=a;this.callEach("setVisible",[!a])},show:function(){this.setHidden(false)},hide:function(){this.setHidden(true)},isHidden:function(){return this.initialConfig.hidden},setHandler:function(b,a){this.initialConfig.handler=b;this.initialConfig.scope=a;this.callEach("setHandler",[b,a])},each:function(b,a){Ext.each(this.items,b,a)},callEach:function(g,c){var b=this.items,d=0,a=b.length,e;Ext.suspendLayouts();for(;d<a;d++){e=b[d];e[g].apply(e,c)}Ext.resumeLayouts(true)},addComponent:function(a){this.items.push(a);a.on("destroy",this.removeComponent,this)},removeComponent:function(a){Ext.Array.remove(this.items,a)},execute:function(){this.initialConfig.handler.apply(this.initialConfig.scope||Ext.global,arguments)}},1,0,0,0,0,0,[Ext,"Action"],0));(Ext.cmd.derive("Ext.ElementLoader",Ext.Base,{statics:{Renderer:{Html:function(a,b,c){a.getTarget().setHtml(b.responseText,c.scripts===true,c.rendererScope);return true}}},url:null,params:null,baseParams:null,autoLoad:false,target:null,loadMask:false,ajaxOptions:null,scripts:false,isLoader:true,constructor:function(b){var c=this,a;b=b||{};Ext.apply(c,b);c.mixins.observable.constructor.call(c);c.setTarget(c.target);if(c.autoLoad){a=c.autoLoad;if(a===true){a=null}c.load(a)}},setTarget:function(b){var a=this;b=Ext.get(b);if(a.target&&a.target!==b){a.abort()}a.target=b},getTarget:function(){return this.target||null},abort:function(){var a=this.active;if(a!==undefined){Ext.Ajax.abort(a.request);if(a.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(a){this.target.mask(a===true?null:a)},load:function(c){c=Ext.apply({},c);var e=this,a=Ext.isDefined(c.loadMask)?c.loadMask:e.loadMask,g=Ext.apply({},c.params),b=Ext.apply({},c.ajaxOptions),h=c.callback||e.callback,d=c.scope||e.scope||e;Ext.applyIf(b,e.ajaxOptions);Ext.applyIf(c,b);Ext.applyIf(g,e.params);Ext.apply(g,e.baseParams);Ext.applyIf(c,{url:e.url});Ext.apply(c,{scope:e,params:g,callback:e.onComplete});if(e.fireEvent("beforeload",e,c)===false){return}if(a){e.addMask(a)}e.active={options:c,mask:a,scope:d,callback:h,success:c.success||e.success,failure:c.failure||e.failure,renderer:c.renderer||e.renderer,scripts:Ext.isDefined(c.scripts)?c.scripts:e.scripts};e.active.request=Ext.Ajax.request(c);e.setOptions(e.active,c)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(b,g,a){var d=this,e=d.active,h,c;if(e){c=e.scope;h=e.rendererScope;if(g){g=d.getRenderer(e.renderer).call(h,d,a,e)!==false}if(g){Ext.callback(e.success,c,[d,a,b]);d.fireEvent("load",d,a,b)}else{Ext.callback(e.failure,c,[d,a,b]);d.fireEvent("exception",d,a,b)}Ext.callback(e.callback,c,[d,g,a,b]);if(e.mask){d.removeMask()}}delete d.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(a,b){var c=this;c.stopAutoRefresh();c.autoRefresh=Ext.interval(function(){c.load(b)},a)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var a=this;a.stopAutoRefresh();delete a.target;a.abort();a.clearListeners()}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext,"ElementLoader"],0));(Ext.cmd.derive("Ext.ComponentLoader",Ext.ElementLoader,{statics:{Renderer:{Data:function(a,b,d){var g=true;try{a.getTarget().update(Ext.decode(b.responseText))}catch(c){g=false}return g},Component:function(a,c,h){var i=true,g=a.getTarget(),b=[];try{b=Ext.decode(c.responseText)}catch(d){i=false}if(i){g.suspendLayouts();if(h.removeAll){g.removeAll()}g.add(b);g.resumeLayouts(true)}return i}}},target:null,loadOnRender:false,loadMask:false,renderer:"html",setTarget:function(b){var a=this;if(Ext.isString(b)){b=Ext.getCmp(b)}if(a.target&&a.target!==b){a.abort()}a.target=b;if(b&&a.loadOnRender){if(b.rendered){a.doLoadOnRender()}else{a.mon(b,"render",a.doLoadOnRender,a)}}},doLoadOnRender:function(){var a=this.loadOnRender;this.load(Ext.isObject(a)?a:null)},removeMask:function(){this.target.setLoading(false)},addMask:function(a){this.target.setLoading(a)},setOptions:function(b,a){b.removeAll=Ext.isDefined(a.removeAll)?a.removeAll:this.removeAll;b.rendererScope=a.rendererScope||this.rendererScope||this.target},getRenderer:function(b){if(Ext.isFunction(b)){return b}var a=this.statics().Renderer;switch(b){case"component":return a.Component;case"data":return a.Data;default:return Ext.ElementLoader.Renderer.Html}}},0,0,0,0,0,0,[Ext,"ComponentLoader"],0));(Ext.cmd.derive("Ext.layout.SizeModel",Ext.Base,{constructor:function(c){var e=this,d=e.self,a=d.sizeModelsArray,b;Ext.apply(e,c);e[b=e.name]=true;e.fixed=!(e.auto=e.natural||e.shrinkWrap);a[e.ordinal=a.length]=d[b]=d.sizeModels[b]=e},statics:{sizeModelsArray:[],sizeModels:{}},calculated:false,configured:false,constrainedMax:false,constrainedMin:false,natural:false,shrinkWrap:false,calculatedFromConfigured:false,calculatedFromNatural:false,calculatedFromShrinkWrap:false,names:null},1,0,0,0,0,0,[Ext.layout,"SizeModel"],function(){var e=this,a=e.sizeModelsArray,c,b,h,g,d;new e({name:"calculated"});new e({name:"configured",names:{width:"width",height:"height"}});new e({name:"natural"});new e({name:"shrinkWrap"});new e({name:"calculatedFromConfigured",configured:true,calculatedFrom:true,names:{width:"width",height:"height"}});new e({name:"calculatedFromNatural",natural:true,calculatedFrom:true});new e({name:"calculatedFromShrinkWrap",shrinkWrap:true,calculatedFrom:true});new e({name:"constrainedMax",configured:true,constrained:true,names:{width:"maxWidth",height:"maxHeight"}});new e({name:"constrainedMin",configured:true,constrained:true,names:{width:"minWidth",height:"minHeight"}});new e({name:"constrainedDock",configured:true,constrained:true,constrainedByMin:true,names:{width:"dockConstrainedWidth",height:"dockConstrainedHeight"}});for(c=0,h=a.length;c<h;++c){d=a[c];d.pairsByHeightOrdinal=g=[];for(b=0;b<h;++b){g.push({width:d,height:a[b]})}}}));(Ext.cmd.derive("Ext.layout.Layout",Ext.Base,{factoryConfig:{type:"layout"},isLayout:true,initialized:false,running:false,needsItemSize:true,setsItemSize:true,autoSizePolicy:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},$configPrefixed:false,$configStrict:false,constructor:function(a){var b=this;b.id=Ext.id(null,b.type+"-");b.initConfig(a);delete b.type;b.layoutCount=0},beginLayout:Ext.emptyFn,beginLayoutCycle:function(c){var b=this,a=b.context,d;if(b.lastWidthModel!==c.widthModel){if(b.lastWidthModel){d=true}b.lastWidthModel=c.widthModel}if(b.lastHeightModel!==c.heightModel){if(b.lastWidthModel){d=true}b.lastHeightModel=c.heightModel}if(d){(a=c.context).clearTriggers(b,false);a.clearTriggers(b,true);b.triggerCount=0}},finishedLayout:function(a){this.lastWidthModel=a.widthModel;this.lastHeightModel=a.heightModel;this.ownerContext=null},redoLayout:Ext.emptyFn,undoLayout:Ext.emptyFn,getAnimatePolicy:function(){return this.animatePolicy},getItemSizePolicy:function(a){return this.autoSizePolicy},getScrollerEl:Ext.emptyFn,isItemBoxParent:function(a){return false},isItemLayoutRoot:function(d){var c=d.getSizeModel(),b=c.width,a=c.height;if(!d.componentLayout.lastComponentSize&&(b.calculated||a.calculated)){return false}return !b.shrinkWrap&&!a.shrinkWrap},isItemShrinkWrap:function(a){return a.shrinkWrap},isRunning:function(){return !!this.ownerContext},getItemsRenderTree:function(d,b){var h=d.length,e,g,c,a;if(h){a=[];for(e=0;e<h;++e){g=d[e];if(!g.rendered){if(b&&(b[g.id]!==undefined)){c=b[g.id]}else{this.configureItem(g);c=g.getRenderTree();if(b){b[g.id]=c}}if(c){a.push(c)}}}}return a},finishRender:Ext.emptyFn,finishRenderItems:function(e,a){var d=a.length,b,c;for(b=0;b<d;b++){c=a[b];if(c.rendering){c.finishRender(b)}}},renderChildren:function(){var b=this,a=b.getLayoutItems(),c=b.getRenderTarget();b.renderItems(a,c)},renderItems:function(a,g){var e=this,d=a.length,b=0,c;if(d){Ext.suspendLayouts();for(;b<d;b++){c=a[b];if(c&&!c.rendered){e.renderItem(c,g,b)}else{if(!e.isValidParent(c,g,b)){e.moveItem(c,g,b)}else{e.configureItem(c)}}}Ext.resumeLayouts(true)}},isValidParent:function(d,e,a){var c=(e&&e.dom)||e,b=this.getItemLayoutEl(d);if(b&&c){if(typeof a==="number"){a=this.getPositionOffset(a);return b===c.childNodes[a]}return b.parentNode===c}return false},getItemLayoutEl:function(c){var d=c.el?c.el.dom:Ext.getDom(c),a=d.parentNode,b;if(a){b=a.className;if(b&&b.indexOf("x-resizable-wrap")!==-1){d=d.parentNode}}return d},getPositionOffset:function(a){return a},configureItem:function(a){a.ownerLayout=this},renderItem:function(c,d,a){var b=this;if(!c.rendered){b.configureItem(c);c.render(d,a)}},moveItem:function(b,c,a){c=c.dom||c;if(typeof a==="number"){a=c.childNodes[a]}c.insertBefore(b.el.dom,a||null);b.container=Ext.get(c);this.configureItem(b)},onContentChange:function(){this.owner.updateLayout();return true},initLayout:function(){this.initialized=true},setOwner:function(a){this.owner=a},getLayoutItems:function(){return[]},onAdd:function(a){a.ownerLayout=this},onRemove:Ext.emptyFn,onDestroy:Ext.emptyFn,afterRemove:function(e){var d=this,c=e.el,b=d.owner,a;if(e.rendered){a=[].concat(d.itemCls||[]);if(b.itemCls){a=Ext.Array.push(a,b.itemCls)}if(a.length){c.removeCls(a)}}delete e.ownerLayout},afterCollapse:function(a,b){if(b){this.onContentChange(a)}},afterExpand:function(a,b){if(b){this.onContentChange(a)}},destroy:function(){var a=this,b;if(a.targetCls){b=a.getTarget();if(b&&b.dom){b.removeCls(a.targetCls)}}a.onDestroy()},sortWeightedItems:function(a,d){for(var b=0,c=a.length;b<c;++b){a[b].$i=b}Ext.Array.sort(a,function(g,e){var h=e.weight-g.weight;if(!h){h=g.$i-e.$i;if(g[d]){h=-h}}return h});for(b=0;b<c;++b){delete a[b].$i}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout,"Layout"],function(){var a=this;a.prototype.sizeModels=a.sizeModels=Ext.layout.SizeModel.sizeModels}));(Ext.cmd.derive("Ext.layout.container.Container",Ext.layout.Layout,{alternateClassName:"Ext.layout.ContainerLayout",type:"container",beginCollapse:Ext.emptyFn,beginExpand:Ext.emptyFn,animatePolicy:null,activeItemCount:0,renderTpl:["{%this.renderBody(out,values)%}"],usesContainerHeight:true,usesContainerWidth:true,usesHeight:true,usesWidth:true,constructor:function(){Ext.layout.Layout.prototype.constructor.apply(this,arguments);this.mixins.elementCt.constructor.call(this)},destroy:function(){Ext.layout.Layout.prototype.destroy.call(this);this.mixins.elementCt.destroy.call(this)},beginLayout:function(a){Ext.layout.Layout.prototype.beginLayout.apply(this,arguments);a.targetContext=a.paddingContext=a.getEl("getTarget",this);this.cacheChildItems(a)},beginLayoutCycle:function(c,a){var b=this;Ext.layout.Layout.prototype.beginLayoutCycle.apply(this,arguments);if(a){if(b.usesContainerHeight){++c.consumersContainerHeight}if(b.usesContainerWidth){++c.consumersContainerWidth}}},cacheChildItems:function(g){var e=this,c,h,a,d,b;if(e.needsItemSize||e.setsItemSize){c=g.context;h=g.childItems=[];a=g.visibleItems=e.getVisibleItems();d=a.length;for(b=0;b<d;++b){h.push(c.getCmp(a[b]))}}},cacheElements:function(){var a=this.owner;this.attachChildEls(a.el,a)},calculate:function(c){var b=c.props,a=c.el;if(c.widthModel.shrinkWrap&&isNaN(b.width)){c.setContentWidth(a.getWidth())}if(c.heightModel.shrinkWrap&&isNaN(b.height)){c.setContentHeight(a.getHeight())}},configureItem:function(d){var c=this,e=c.itemCls,b=c.owner.itemCls,a,g;d.ownerLayout=c;if(e){if(typeof e==="string"){g=[e]}else{g=e;a=!!g}}if(b){if(a){g=Ext.Array.clone(g)}g=Ext.Array.push(g||[],b)}if(g){d.addCls(g)}},doRenderBody:function(a,b){this.renderItems(a,b);this.renderContent(a,b)},doRenderContainer:function(b,e){var c=e.$comp.layout,a=c.getRenderTpl(),d=c.getRenderData();a.applyOut(d,b)},doRenderItems:function(b,d){var c=d.$layout,a=c.getRenderTree();if(a){Ext.DomHelper.generateMarkup(a,b)}},finishRender:function(){var b=this,c,a;Ext.layout.Layout.prototype.finishRender.call(this);b.cacheElements();c=b.getRenderTarget();a=b.getLayoutItems();b.finishRenderItems(c,a)},notifyOwner:function(){this.owner.afterLayout(this)},getContainerSize:function(b,g){var c=b.targetContext,e=c.getFrameInfo(),j=b.paddingContext.getPaddingInfo(),i=0,k=0,d,h,a,l;if(!b.widthModel.shrinkWrap){++k;a=g?c.getDomProp("width"):c.getProp("width");d=(typeof a==="number");if(d){++i;a-=e.width+j.width;if(a<0){a=0}}}if(!b.heightModel.shrinkWrap){++k;l=g?c.getDomProp("height"):c.getProp("height");h=(typeof l==="number");if(h){++i;l-=e.height+j.height;if(l<0){l=0}}}return{width:a,height:l,needed:k,got:i,gotAll:i===k,gotWidth:d,gotHeight:h}},getPositionOffset:function(a){if(!this.createsInnerCt){var b=this.owner.itemNodeOffset;if(b){a+=b}}return a},getLayoutItems:function(){var a=this.owner,b=a&&a.items;return(b&&b.items)||[]},getRenderData:function(){var a=this.owner;return{$comp:a,$layout:this,ownerId:a.id}},getRenderedItems:function(){var e=this,h=e.getRenderTarget(),a=e.getLayoutItems(),d=a.length,g=[],b,c;for(b=0;b<d;b++){c=a[b];if(c.rendered&&e.isValidParent(c,h,b)){g.push(c)}}return g},getRenderTarget:function(){return this.owner.getTargetEl()},getElementTarget:function(){return this.getRenderTarget()},getRenderTpl:function(){var a=this,b=Ext.XTemplate.getTpl(this,"renderTpl");if(!b.renderContent){a.owner.setupRenderTpl(b)}return b},getRenderTree:function(){var a,c=this.owner.items,d,b={};do{d=c.generation;a=this.getItemsRenderTree(this.getLayoutItems(),b)}while(c.generation!==d);return a},renderChildren:function(){var b=this,c=b.owner.items,e=b.getRenderTarget(),d,a;do{d=c.generation;a=b.getLayoutItems();b.renderItems(a,e)}while(c.generation!==d)},getScrollbarsNeeded:function(c,i,b,h){var a=Ext.getScrollbarSize(),e=typeof c==="number",j=typeof i==="number",g=0,d=0;if(!a.width){return 0}if(j&&i<h){d=2;c-=a.width}if(e&&c<b){g=1;if(!d&&j){i-=a.height;if(i<h){d=2}}}return d+g},getTarget:function(){return this.owner.getTargetEl()},getVisibleItems:function(){var g=this.getRenderTarget(),b=this.getLayoutItems(),e=b.length,a=[],c,d;for(c=0;c<e;c++){d=b[c];if(d.rendered&&this.isValidParent(d,g,c)&&d.hidden!==true&&!d.floated){a.push(d)}}return a},getMoveAfterIndex:function(a){return this.owner.items.indexOf(a)+1},moveItemBefore:function(d,e){var a=this.owner,b=a.items,c=b.indexOf(d),g;if(d===e){return d}if(e){g=b.indexOf(e);if(c>-1&&c<g){--g}}else{g=b.length}return a.insert(g,d)},setupRenderTpl:function(a){a.renderBody=this.doRenderBody;a.renderContainer=this.doRenderContainer;a.renderItems=this.doRenderItems},getContentTarget:function(){return this.owner.getDefaultContentTarget()},onAdd:function(a){if(!a.liquidLayout){++this.activeItemCount}Ext.layout.Layout.prototype.onAdd.call(this,a)},onRemove:function(a){if(!a.liquidLayout){--this.activeItemCount}Ext.layout.Layout.prototype.onRemove.call(this,a)}},1,0,0,0,["layout.container"],[[Ext.util.ElementContainer.prototype.mixinId||Ext.util.ElementContainer.$className,Ext.util.ElementContainer]],[Ext.layout.container,"Container",Ext.layout,"ContainerLayout"],0));(Ext.cmd.derive("Ext.layout.container.Auto",Ext.layout.container.Container,{type:"autocontainer",childEls:["outerCt","innerCt"],reserveScrollbar:false,managePadding:true,manageOverflow:false,needsItemSize:false,setsItemSize:false,lastOverflowAdjust:{width:0,height:0},outerCtCls:"x-autocontainer-outerCt",innerCtCls:"x-autocontainer-innerCt",renderTpl:['<div id="{ownerId}-outerCt" data-ref="outerCt" class="{outerCtCls}" role="presentation">','<div id="{ownerId}-innerCt" data-ref="innerCt" style="{%this.renderPadding(out, values)%}" ','class="{innerCtCls}" role="presentation">',"{%this.renderBody(out,values)%}","</div>","</div>"],beginLayout:function(a){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(a)},beforeLayoutCycle:function(d){var b=this.owner,c=b.inheritedState,a=b.inheritedStateInner;if(!c||c.invalid){c=b.getInherited();a=b.inheritedStateInner}if(d.widthModel.shrinkWrap){a.inShrinkWrapTable=true}else{delete a.inShrinkWrapTable}},beginLayoutCycle:function(d){var j=this,b=j.outerCt,h=j.lastOuterCtWidth||"",g=j.lastOuterCtHeight||"",k=j.lastOuterCtTableLayout||"",a=d.state,l,e,m,c,i;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);e=m=c="";if(!d.widthModel.shrinkWrap){e="100%";i=j.owner.inheritedStateInner;l=j.getOverflowXStyle(d);c=(i.inShrinkWrapTable||l==="auto"||l==="scroll")?"":"fixed"}if(!d.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){m="100%"}if((e!==h)||j.hasOuterCtPxWidth){b.setStyle("width",e);j.lastOuterCtWidth=e;j.hasOuterCtPxWidth=false}if(c!==k){b.setStyle("table-layout",c);j.lastOuterCtTableLayout=c}if((m!==g)||j.hasOuterCtPxHeight){b.setStyle("height",m);j.lastOuterCtHeight=m;j.hasOuterCtPxHeight=false}if(j.hasInnerCtPxHeight){j.innerCt.setStyle("height","");j.hasInnerCtPxHeight=false}a.overflowAdjust=a.overflowAdjust||j.lastOverflowAdjust},calculate:function(c){var a=this,b=c.state,e=a.getContainerSize(c,true),d=b.calculatedItems||(b.calculatedItems=a.calculateItems?a.calculateItems(c,e):true);a.setCtSizeIfNeeded(c,e);if(d&&c.hasDomProp("containerChildrenSizeDone")){a.calculateContentSize(c);if(e.gotAll){if(a.manageOverflow&&!c.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(c,e)}return}}a.done=false},calculateContentSize:function(g){var e=this,a=((g.widthModel.shrinkWrap?1:0)|(g.heightModel.shrinkWrap?2:0)),c=(a&1)||undefined,h=(a&2)||undefined,d=0,b=g.props;if(c){if(isNaN(b.contentWidth)){++d}else{c=undefined}}if(h){if(isNaN(b.contentHeight)){++d}else{h=undefined}}if(d){if(c&&!g.setContentWidth(e.measureContentWidth(g))){e.done=false}if(h&&!g.setContentHeight(e.measureContentHeight(g))){e.done=false}}},calculateOverflow:function(c){var h=this,b,j,a,g,e,d,i;e=(h.getOverflowXStyle(c)==="auto");d=(h.getOverflowYStyle(c)==="auto");if(e||d){a=Ext.getScrollbarSize();i=c.overflowContext.el.dom;g=0;if(i.scrollWidth>i.clientWidth){g|=1}if(i.scrollHeight>i.clientHeight){g|=2}b=(d&&(g&2))?a.width:0;j=(e&&(g&1))?a.height:0;if(b!==h.lastOverflowAdjust.width||j!==h.lastOverflowAdjust.height){h.done=false;c.invalidate({state:{overflowAdjust:{width:b,height:j},overflowState:g,secondPass:true}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(c,e){var d=e.$layout,a=Ext.XTemplate,g=d.beforeBodyTpl,b=d.afterBodyTpl;if(g){a.getTpl(d,"beforeBodyTpl").applyOut(e,c)}this.renderItems(c,e);this.renderContent(c,e);if(b){a.getTpl(d,"afterBodyTpl").applyOut(e,c)}},doRenderPadding:function(b,d){var c=d.$layout,a=d.$layout.owner,e=a[a.contentPaddingProperty];if(c.managePadding&&e){b.push("padding:",a.unitizeBox(e))}},finishedLayout:function(b){var a=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){a.repaint()}if(Ext.isOpera){a.setStyle("position","relative");a.dom.scrollWidth;a.setStyle("position","")}},getContainerSize:function(b,c){var a=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),d=b.state.overflowAdjust;if(d){a.width-=d.width;a.height-=d.height}return a},getRenderData:function(){var a=this,b=Ext.layout.container.Container.prototype.getRenderData.call(this);b.innerCtCls=a.innerCtCls;b.outerCtCls=a.outerCtCls;return b},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(a){return a.overflowXStyle||(a.overflowXStyle=this.owner.scrollFlags.overflowX||a.overflowContext.getStyle("overflow-x"))},getOverflowYStyle:function(a){return a.overflowYStyle||(a.overflowYStyle=this.owner.scrollFlags.overflowY||a.overflowContext.getStyle("overflow-y"))},initContextItems:function(b){var a=this,d=b.target,c=a.owner.getOverflowEl();b.outerCtContext=b.getEl("outerCt",a);b.innerCtContext=b.getEl("innerCt",a);b.overflowContext=(c===b.el)?b:b.getEl(c);if(d[d.contentPaddingProperty]!==undefined){b.paddingContext=b.innerCtContext}},initLayout:function(){var c=this,b=Ext.getScrollbarSize().width,a=c.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&c.manageOverflow&&!c.hasOwnProperty("lastOverflowAdjust")){if(a.scrollable||c.reserveScrollbar){c.lastOverflowAdjust={width:b,height:0}}}},measureContentHeight:function(b){var a=this.outerCt.getHeight(),c=b.target;if(this.managePadding&&(c[c.contentPaddingProperty]===undefined)){a+=b.targetContext.getPaddingInfo().height}return a},measureContentWidth:function(d){var g,c,b,a,e;if(this.chromeCellMeasureBug){g=this.innerCt.dom;c=g.style;b=c.display;if(b==="table-cell"){c.display="";g.offsetWidth;c.display=b}}if(Ext.isSafari){g=this.outerCt.dom;c=g.style;c.display="table-cell";g.offsetWidth;g.style.display=""}a=this.outerCt.getWidth();e=d.target;if(this.managePadding&&(e[e.contentPaddingProperty]===undefined)){a+=d.targetContext.getPaddingInfo().width}return a},setCtSizeIfNeeded:function(d,b){var e=this,l=b.height,h=d.paddingContext.getPaddingInfo(),j=e.getTarget(),k=e.getOverflowXStyle(d),c=(k==="auto"||k==="scroll"),a=Ext.getScrollbarSize(),g,i;if(l&&!d.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){g=true}if(Ext.isIE8){i=true}if((g||i)&&c&&(j.dom.scrollWidth>j.dom.clientWidth)){l=Math.max(l-a.height,0)}if(g){d.outerCtContext.setProp("height",l+h.height);e.hasOuterCtPxHeight=true}if(i){d.innerCtContext.setProp("height",l);e.hasInnerCtPxHeight=true}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,["layout.auto","layout.autocontainer"],0,[Ext.layout.container,"Auto"],function(b){var a=Ext.chromeVersion;b.prototype.chromeCellMeasureBug=Ext.isChrome&&a>=26&&a<=34}));(Ext.cmd.derive("Ext.ZIndexManager",Ext.Base,{alternateClassName:"Ext.WindowGroup",statics:{zBase:9000,activeCounter:0},constructor:function(a){var b=this;b.id=Ext.id(null,"zindex-mgr-");b.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(e,d){var c=(e.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!c){c=e.getActiveCounter()-d.getActiveCounter()}return c}},filters:{filterFn:function(c){return c.isVisible()}}});b.zIndexStack.addObserver(b);b.front=null;b.globalListeners=Ext.GlobalEvents.on({hide:b.onComponentShowHide,show:b.onComponentShowHide,scope:b,destroyable:true});if(a){if(a.isContainer){a.on("resize",b.onContainerResize,b);b.zseed=Ext.Number.from(b.rendered?a.getEl().getStyle("zIndex"):undefined,b.getNextZSeed());b.targetEl=a.getTargetEl();b.container=a}else{Ext.on("resize",b.onContainerResize,b);b.zseed=b.getNextZSeed();b.targetEl=Ext.get(a)}}else{b.zseed=b.getNextZSeed();Ext.onInternalReady(function(){Ext.on("resize",b.scheduleContainerResize,b,{priority:-10000});b.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return(Ext.ZIndexManager.zBase+=10000)},setBase:function(a){this.zseed=a;return this.onCollectionSort()},onCollectionSort:function(){var j=this,e=j.front,k=j.zseed,l=j.zIndexStack.getRange(),h=l.length,d,g,c,b,m=false;for(d=0;d<h;d++){g=l[d];k=g.setZIndex(k);if(!g.hidden){b=g;if(g.modal){c=g}}}if(b!==e){if(e&&!e.destroying){e.setActive(false)}if(b){m=b.modal||((!e||e.isVisible())&&((b.focusOnToFront&&!b.preventFocusOnActivate)))&&b.isFocusable(true);b.setActive(true,m)}}j.front=b||null;if(c){if(c===e){j.syncModalMask(c)}else{j.showModalMask(c)}}else{j.hideModalMask()}return k},onComponentUpdate:function(a){if(this.zIndexStack.contains(a)){this.zIndexStack.sort()}},onComponentRender:function(a){this.zIndexStack.itemChanged(a,"hidden")},onComponentShowHide:function(a){var b=this.zIndexStack;if(a.isFloating()&&!this.hidingAll&&(b.getSource()||b).contains(a)){b.itemChanged(a,"hidden");b.sort()}},register:function(a){var b=this;if(a.zIndexManager){a.zIndexManager.unregister(a)}a.zIndexManager=b;if(!a.rendered){a.on("render",b.onComponentRender,b,{single:true})}b.zIndexStack.add(a)},unregister:function(a){var b=this;delete a.zIndexManager;a.un("render",b.onComponentRender,b);b.zIndexStack.remove(a);b.onCollectionSort()},get:function(a){return a.isComponent?a:this.zIndexStack.get(a)},bringToFront:function(b,e){var c=this,h=c.zIndexStack,a=h.last(),d,g;b=c.get(b);if(!b||h.find("alwaysOnTop",true)){return false}g=b.preventFocusOnActivate;b.preventFocusOnActivate=e;b.setActiveCounter(++Ext.ZIndexManager.activeCounter);b.preventFocusOnActivate=g;d=h.last();return(d===b&&d!==a)},sendToBack:function(a){a=this.get(a);if(a){a.setActiveCounter(0)}return a||null},hideAll:function(){var d=this,c=d.zIndexStack.getRange(),a=c.length,b;d.hidingAll=true;for(b=0;b<a;b++){c[b].hide()}d.hidingAll=false;d.hideModalMask();d.front=null},hide:function(){var g=this,e=Ext.Element.getActiveElement(),d=g.tempHidden=g.zIndexStack.getRange(),a=d.length,c,b;g.focusRestoreElement=null;for(c=0;c<a;c++){b=d[c];if(b.el.contains(e)){g.focusRestoreElement=e}b.el.hide();b.hidden=true}},show:function(){var d=this,c,e=d.tempHidden,a=e?e.length:0,b;for(c=0;c<a;c++){b=e[c];b.el.show();b.hidden=false;b.setPosition(b.x,b.y)}d.tempHidden=null;if(d.focusRestoreElement){d.focusRestoreElement.focus()}},getActive:function(){return this.zIndexStack.last()},getBy:function(b,a){return this.zIndexStack.filterBy(b,a).getRange()},each:function(b,a){this.zIndexStack.each(b,a)},eachBottomUp:function(g,e){var b=this.zIndexStack.getRange(),d,a=b.length,c;for(d=0;d<a;d++){c=b[d];if(c.isComponent&&g.call(e||c,c)===false){return}}},eachTopDown:function(e,d){var a=this.zIndexStack.getRange(),c,b;for(c=a.length;c-->0;){b=a[c];if(b.isComponent&&e.call(d||b,b)===false){return}}},destroy:function(){var d=this,b=d.zIndexStack.getRange(),a=b.length,c;for(c=0;c<a;c++){Ext.destroy(b[c])}Ext.destroy(d.mask,d.maskShim,d.zIndexStack,d.globalListeners);d.zIndexStack=d.container=d.targetEl=d.globalListeners=null},privates:{getMaskBox:function(){var a=this.mask.maskTarget;if(a.dom===document.body){return{height:Math.max(document.body.scrollHeight,Ext.dom.Element.getDocumentHeight()),width:Math.max(document.body.scrollWidth,document.documentElement.clientWidth),x:0,y:0}}else{return a.getBox()}},scheduleContainerResize:function(){if(!this.containerResizeTimer){this.containerResizeTimer=Ext.Function.requestAnimationFrame(this.onContainerResize,this)}},onContainerResize:function(){var c=this,b=c.mask,a=c.maskShim,d;c.containerResizeTimer=null;if(b&&b.isVisible()){b.hide();if(a){a.hide()}d=c.getMaskBox();if(a){a.setSize(d);a.show()}b.setSize(d);b.show()}},onMaskClick:function(){if(this.front){this.front.focus()}},showModalMask:function(e){var g=this,k=e.el,h=k.getStyle("zIndex")-4,a=e.floatParent?e.floatParent.getEl():e.container,l=g.mask,d=g.maskShim,i,b,j,c;if(!l){g.mask=l=Ext.getBody().createChild({role:"presentation",cls:"x-mask x-border-box",style:"height:0;width:0"});l.setVisibilityMode(Ext.Element.DISPLAY);l.on("click",g.onMaskClick,g)}else{g.hideModalMask()}l.maskTarget=a;i=g.getMaskBox();if(d){d.setStyle("zIndex",h);d.show();d.setBox(i)}l.setStyle("zIndex",h);b="data-savedtabindex-"+a.getId();j=b+"-temp";c=k.findTabbableElements();if(c.length){k.saveTabbableState(j);k.saveChildrenTabbableState(j)}a.saveTabbableState(b);a.saveChildrenTabbableState(b);if(c.length){k.restoreChildrenTabbableState(j);k.restoreTabbableState(j)}l.show();l.setBox(i)},syncModalMask:function(b){var c=this,g=b.el.getZIndex()-4,a=c.mask,e=c.maskShim,d=c.getMaskBox();if(e){e.setZIndex(g);e.show();e.setBox(d)}a.setZIndex(g);a.show();a.setBox(d)},hideModalMask:function(){var c=this.mask,a=this.maskShim,d,b;if(c&&c.isVisible()){d=c.maskTarget;b="data-savedtabindex-"+d.getId();d.restoreChildrenTabbableState(b);d.restoreTabbableState(b);c.maskTarget=undefined;c.hide();if(a){a.hide()}}}}},1,0,0,0,0,0,[Ext,"ZIndexManager",Ext,"WindowGroup"],function(){Ext.WindowManager=Ext.WindowMgr=new this()}));(Ext.cmd.derive("Ext.container.Container",Ext.Component,{alternateClassName:["Ext.Container","Ext.AbstractContainer"],renderTpl:"{%this.renderContainer(out,values)%}",isContainer:true,autoDestroy:true,defaultType:"panel",detachOnRemove:true,items:undefined,layout:"auto",suspendLayout:false,_applyDefaultsOptions:{defaults:true,strict:false},ariaRole:"presentation",baseCls:"x-container",layoutCounter:0,add:function(){var l=this,h=Ext.Array.slice(arguments),e=(typeof h[0]==="number")?h.shift():-1,c=l.getLayout(),d=false,n,j,b,a,o,m,g,k;if(h.length===1&&Ext.isArray(h[0])){j=h[0];n=true}else{j=h}if(l.rendered){Ext.suspendLayouts()}g=j=l.prepareItems(j,true);a=j.length;if(!n&&a===1){g=j[0]}for(b=0;b<a;b++){o=j[b];m=(e<0)?l.items.length:(e+b);k=!!o.instancedCmp;delete o.instancedCmp;if(o.floating){l.floatingItems.add(o);o.onAdded(l,m,k);delete o.initOwnerCt;if(l.hasListeners.add){l.fireEvent("add",l,o,m)}}else{if((!l.hasListeners.beforeadd||l.fireEvent("beforeadd",l,o,m)!==false)&&l.onBeforeAdd(o)!==false){l.items.insert(m,o);o.onAdded(l,m,k);delete o.initOwnerCt;l.onAdd(o,m);c.onAdd(o,m);d=true;if(l.hasListeners.add){l.fireEvent("add",l,o,m)}}}}if(d){l.updateLayout()}if(l.rendered){Ext.resumeLayouts(true)}return g},onAdded:function(b,c,a){Ext.Component.prototype.onAdded.call(this,b,c,a);if(a){Ext.ComponentManager.markReferencesDirty()}},onRemoved:function(a){var b;if(!a){b=this.lookupReferenceHolder();if(b){Ext.ComponentManager.markReferencesDirty();b.clearReferences()}}Ext.Component.prototype.onRemoved.call(this,a)},afterComponentLayout:function(){var b=this.floatingItems.items,a=b.length,d,c;Ext.Component.prototype.afterComponentLayout.apply(this,arguments);for(d=0;d<a;d++){c=b[d];if(!c.rendered&&c.autoShow){c.show()}}},afterLayout:function(c){var b=this,a=b.getScrollable();++b.layoutCounter;if(a&&b.layoutCounter>1){a.refresh()}if(b.hasListeners.afterlayout){b.fireEvent("afterlayout",b,c)}},onDestroy:function(){Ext.Component.prototype.onDestroy.call(this);this.refs=null},beforeDestroy:function(){var b=this,a=b.items,d=b.floatingItems,e;if(a){while((e=a.first())){b.doRemove(e,true)}}if(d){while((e=d.first())){b.doRemove(e,true)}}Ext.destroy(b.layout);Ext.Component.prototype.beforeDestroy.call(this)},beforeRender:function(){var b=this,a=b.getLayout(),c;b.preventChildDisable=true;Ext.Component.prototype.beforeRender.call(this);b.preventChildDisable=false;if(!a.initialized){a.initLayout()}c=a.targetCls;if(c){b.applyTargetCls(c)}},cascade:function(l,m,a){var k=this,e=k.items?k.items.items:[],g=e.length,d=0,j,h=a?a.concat(k):[k],b=h.length-1;if(l.apply(m||k,h)!==false){for(;d<g;d++){j=e[d];if(j.cascade){j.cascade(l,m,a)}else{h[b]=j;l.apply(m||j,h)}}}return this},contains:function(c,b){var a=false;if(b){this.cascade(function(d){if(d.contains&&d.contains(c)){a=true;return false}});return a}else{return this.items.contains(c)||this.floatingItems.contains(c)}},disable:function(b,h){var e=this,d=e.disabled,g,a,c;Ext.Component.prototype.disable.call(this,b,h);if(!h&&!e.preventChildDisable&&!d){g=e.getChildItemsToDisable();a=g.length;for(c=0;c<a;c++){g[c].disable(b,true)}}return e},doLayout:function(){this.updateLayout();return this},enable:function(b,h){var e=this,d=e.disabled,g,a,c;Ext.Component.prototype.enable.call(this,b,h);if(d){g=e.getChildItemsToDisable();a=g.length;for(c=0;c<a;c++){g[c].enable(b,true)}}return e},getChildByElement:function(e,a){var h,c,b=0,d=this.getRefItems(),g=d.length;e=Ext.getDom(e);for(;b<g;b++){h=d[b];c=h.getEl();if(c&&((c.dom===e)||c.contains(e))){return(a&&h.getChildByElement)?h.getChildByElement(e,a):h}}return null},getComponent:function(a){if(Ext.isObject(a)){a=a.getItemId()}var b=this.items.get(a);if(!b&&typeof a!=="number"){b=this.floatingItems.get(a)}return b},getFocusEl:function(){var a=this.getDefaultFocus();if(a){return a}else{if(this.focusable){return this.getTargetEl()}}return undefined},getLayout:function(){var b=this,a=b.layout;if(!a||!a.isLayout){b.setLayout(a)}return b.layout},getRefItems:function(c){var h=this,d=h.items.items,b=d.length,e=0,g,a=[];for(;e<b;e++){g=d[e];a[a.length]=g;if(c&&g.getRefItems){a.push.apply(a,g.getRefItems(true))}}d=h.floatingItems.items;b=d.length;for(e=0;e<b;e++){g=d[e];a[a.length]=g;if(c&&g.getRefItems){a.push.apply(a,g.getRefItems(true))}}return a},getDefaultFocus:function(){var b=this.defaultFocus,a;if(b){a=this.down(b)}return a},initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.getLayout();a.constructing=true;a.initItems();if(a.disabled){a.disabled=false;a.disable(true)}delete a.constructing},getReferences:function(){Ext.ComponentManager.fixReferences();return this.refs||null},lookupReference:function(b){var a=this.getReferences();return(a&&a[b])||null},initItems:function(){var b=this,a=b.items;if(!a||!a.isMixedCollection){b.items=new Ext.util.AbstractMixedCollection(false,b.getComponentId);b.floatingItems=new Ext.util.MixedCollection(false,b.getComponentId);if(a){if(!Ext.isArray(a)){a=[a]}b.add(a)}}},initInheritedState:function(i,c){var h=this,d=h.controller,e=h.layout,g=h.session,j=h.viewModel,b=h.reference,a=h.referenceHolder;Ext.Component.prototype.initInheritedState.call(this,i,c);if(h.collapsed){i.collapsed=true}if(d){i.referenceHolder=d;a=true}else{if(a){i.referenceHolder=h}}if(a){i.referencePath=""}else{if(b&&h.isParentReference){i.referencePath=h.referenceKey+"."}}if(g){i.session=g}if(j){i.viewModelPath=""}else{if(b&&h.isParentReference){i.viewModelPath=h.viewModelKey+"."}}if(e&&e.initInheritedState){e.initInheritedState(i,c)}},insert:function(c,b){var a;if(b&&b.isComponent){a=this.items.indexOf(b);if(a!==-1){return this.move(a,c)}}return this.add(c,b)},lookupComponent:function(a){if(!a.isComponent){if(typeof a==="string"){a=Ext.ComponentManager.get(a)}else{a=Ext.ComponentManager.create(a,this.defaultType)}}return a},move:function(b,e){var d=this,a=d.items,c;if(b.isComponent){b=a.indexOf(b)}c=a.getAt(b);if(b!==e){c=a.removeAt(b);if(c===false){return false}e=Math.min(e,a.getCount());a.insert(e,c);d.onMove(c,b,e);if(d.hasListeners.childmove){d.fireEvent("childmove",d,c,b,e)}d.updateLayout()}return c},moveBefore:function(a,b){if(a!==b){a=this.layout.moveItemBefore(a,b)}return a},moveAfter:function(c,d){var b=this.layout,a;if(c!==d){a=d?b.getMoveAfterIndex(d):0;c=b.moveItemBefore(c,this.items.getAt(a))}return c},nextChild:function(j,c){var g=this,d=g.items,h=d.indexOf(j),e=0,b=d.length,a;if(h!==-1){if(c){for(;e<b;e++){a=d.getAt(h+e);if(!a||Ext.ComponentQuery.is(a,c)){break}}}else{a=d.getAt(h+1)}}return a||null},onAdd:Ext.emptyFn,onBeforeAdd:function(b){var a=b.ownerCt;if(a&&a!==this){a.remove(b,false)}},onMove:Ext.emptyFn,onRemove:Ext.emptyFn,onPosition:function(){Ext.Component.prototype.onPosition.apply(this,arguments);this.repositionFloatingItems()},onResize:function(){Ext.Component.prototype.onResize.apply(this,arguments);this.repositionFloatingItems()},prevChild:function(j,c){var g=this,d=g.items,h=d.indexOf(j),e=0,b=d.length,a;if(h!==-1){if(c){for(;e<b;e++){a=d.getAt(h-e);if(!a||Ext.ComponentQuery.is(a,c)){break}}}else{a=d.getAt(h-1)}}return a||null},remove:function(b,a){var d=this,e=d.getComponent(b);if(e&&(!d.hasListeners.beforeremove||d.fireEvent("beforeremove",d,e)!==false)){d.doRemove(e,a);if(d.hasListeners.remove){d.fireEvent("remove",d,e)}if(!d.destroying&&!e.floating){d.updateLayout()}}return e},removeAll:function(c){var h=this,e=h.items.items.slice().concat(h.floatingItems.items),b=[],d=0,a=e.length,g;Ext.suspendLayouts();h.removingAll=true;for(;d<a;d++){g=e[d];h.remove(g,c);if(g.ownerCt!==h){b.push(g)}}h.removingAll=false;Ext.resumeLayouts(!!a);return b},setLayout:function(e){var d=this,b=d.layout,g=b&&b.isLayout,a,c;if(typeof e==="string"){e={type:e}}c=e.type;if(g&&(!c||(c===b.type))){delete e.type;b.setConfig(e)}else{if(g){b.setOwner(null)}a=d.self.prototype.layout;if(typeof a==="string"){e.type=c||a}else{Ext.merge(Ext.merge({},a),e)}e=this.layout=Ext.Factory.layout(e);e.setOwner(this)}if(d.rendered){d.updateLayout()}},setActiveItem:function(a){return this.getLayout().setActiveItem(a)},privates:{applyDefaults:function(a){var b=this,c=b.defaults;if(c){if(Ext.isFunction(c)){c=c.call(b,a)}if(Ext.isString(a)){a=Ext.ComponentManager.get(a)}if(a.isComponent){a.setConfig(c,null,b._applyDefaultsOptions)}else{a=b.getConfigurator().merge(b,Ext.Object.fork(c),a)}}return a},applyReference:function(b){var a;if(b&&b.charAt(a=b.length-1)===">"){this.isParentReference=true;b=b.substring(0,a)}return b},applyTargetCls:function(a){this.layoutTargetCls=a},attachReference:function(b){var d=this,c,a;if(d.destroying||d.isDestroyed){return}a=d.refs||(d.refs={});c=b.referenceKey;a[c]=b},clearReference:function(b){var a=this.refs,c=b.referenceKey;if(a&&c){b.viewModelKey=b.referenceKey=a[c]=null}},clearReferences:function(){this.refs=null},detachComponent:function(a){Ext.getDetachedBody().appendChild(a.getEl())},doRemove:function(c,b){b=b===true||(b!==false&&this.autoDestroy);var g=this,e=g.layout,a=e&&g.rendered,d=c.destroying||b,h=c.floating;if(h){g.floatingItems.remove(c)}else{g.items.remove(c)}if(a&&!h){if(e.running){Ext.Component.cancelLayout(c,d)}e.onRemove(c,d)}c.onRemoved(d);g.onRemove(c,d);if(b){c.destroy()}else{if(a&&!h){e.afterRemove(c)}if(g.detachOnRemove&&c.rendered){g.detachComponent(c)}}},finishRenderChildren:function(){Ext.Component.prototype.finishRenderChildren.call(this);var a=this.getLayout();if(a){a.finishRender()}},getChildItemsToDisable:function(){return this.query("[isFormField],[isFocusableContainer],button")},getComponentId:function(a){return a.getItemId&&a.getItemId()},getContentTarget:function(){return this.getLayout().getContentTarget()},getDefaultContentTarget:function(){return this.el},getScrollerEl:function(){return this.layout.getScrollerEl()||Ext.Component.prototype.getScrollerEl.call(this)},prepareItems:function(b,d){if(Ext.isArray(b)){b=b.slice()}else{b=[b]}var g=this,c=0,a=b.length,e;for(;c<a;c++){e=b[c];if(e==null){Ext.Array.erase(b,c,1);--c;--a}else{if(d){e=this.applyDefaults(e)}e.initOwnerCt=g;if(e.isComponent){e.instancedCmp=true}b[c]=g.lookupComponent(e);delete e.initOwnerCt}}return b},repositionFloatingItems:function(){var b=this.floatingItems.items,a=b.length,d,c;for(d=0;d<a;d++){c=b[d];if(c.el&&!c.hidden){c.setPosition(c.x,c.y)}}},_noMargin:{"margin-top":"","margin-right":"","margin-bottom":"","margin-left":""},resetItemMargins:function(){var a=this.items.items,c=a.length,b=this._noMargin,d;while(c--){d=a[c];d.margin$=null;d.el.setStyle(b)}},setupRenderTpl:function(a){Ext.Component.prototype.setupRenderTpl.apply(this,arguments);this.getLayout().setupRenderTpl(a)}}},0,["container"],["component","box","container"],{component:true,box:true,container:true},["widget.container"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.container,"Container",Ext,"Container",Ext,"AbstractContainer"],0));(Ext.cmd.derive("Ext.layout.container.Editor",Ext.layout.container.Container,{autoSizeDefault:{width:"field",height:"field"},sizePolicies:{$:{$:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},boundEl:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1}},boundEl:{$:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},boundEl:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}}},getItemSizePolicy:function(d){var c=this,a=c.owner.autoSize,b=a&&a.width,e=c.sizePolicies;e=e[b]||e.$;b=a&&a.height;e=e[b]||e.$;return e},calculate:function(g){var e=this,b=e.owner,a=b.autoSize,d,c;if(a===true){a=e.autoSizeDefault}if(a){d=e.getDimension(b,a.width,"getWidth",b.width);c=e.getDimension(b,a.height,"getHeight",b.height)}g.childItems[0].setSize(d,c);g.setWidth(d);g.setHeight(c);g.setContentSize(d||b.field.getWidth(),c||b.field.getHeight())},getDimension:function(a,b,d,c){switch(b){case"boundEl":return a.boundEl[d]();case"field":return undefined;default:return c}}},0,0,0,0,["layout.editor"],0,[Ext.layout.container,"Editor"],0));(Ext.cmd.derive("Ext.Editor",Ext.container.Container,{layout:"editor",allowBlur:true,revertInvalid:true,value:"",alignment:"c-c?",offsets:[0,0],shadow:"frame",constrain:false,swallowKeys:true,completeOnEnter:true,cancelOnEsc:true,updateEl:false,focusOnToFront:false,baseCls:"x-editor",editing:false,preventDefaultAlign:true,useBoundValue:true,specialKeyDelay:1,initComponent:function(){var a=this,b=a.field=Ext.ComponentManager.create(a.field||{},"textfield");b.msgTarget=b.msgTarget||"qtip";a.mon(b,{scope:a,specialkey:a.onSpecialKey});if(b.grow){a.mon(b,"autosize",a.onFieldAutosize,a,{delay:1})}a.floating={constrain:a.constrain};a.items=b;Ext.container.Container.prototype.initComponent.call(this)},onAdded:function(a){this.ownerCmp=a},onFieldAutosize:function(){this.updateLayout()},afterRender:function(b,a){var c=this,e=c.field,d=e.inputEl;Ext.container.Container.prototype.afterRender.apply(this,arguments);if(d){d.dom.name="";if(c.swallowKeys){d.swallowEvent(["keypress","keydown"])}}},onSpecialKey:function(h,g){var e=this,c=g.getKey(),a=e.completeOnEnter&&c===g.ENTER,d=e.cancelOnEsc&&c===g.ESC,b=e.specialKeyTask;if(a||d){g.stopEvent();if(!b){e.specialKeyTask=b=new Ext.util.DelayedTask()}b.delay(e.specialKeyDelay,a?e.completeEdit:e.cancelEdit,e)}e.fireEvent("specialkey",e,h,g)},startEdit:function(b,d){var c=this,e=c.field,h,a=c.ownerCt,g=Ext.get(c.renderTo)||(a&&a.getEl())||Ext.getBody();c.completeEdit();c.boundEl=Ext.get(b);h=c.boundEl.dom;if(c.useBoundValue&&!Ext.isDefined(d)){d=Ext.String.trim(h.textContent||h.innerText||h.innerHTML)}if(c.fireEvent("beforestartedit",c,c.boundEl,d)!==false){Ext.suspendLayouts();g.position();if(c.rendered){if(c.el.dom.parentNode!==g.dom){g.dom.appendChild(c.el.dom);c.container=g}c.el.setY(0)}else{a=c.ownerCt;c.renderTo=g}c.startValue=d;c.show();c.realign(true);e.suspendEvents();e.setValue(d);e.resetOriginalValue();e.resumeEvents();e.focus(e.selectOnFocus?true:[Number.MAX_VALUE]);if(e.autoSize){e.autoSize()}Ext.resumeLayouts(true);c.toggleBoundEl(false);c.editing=true}},realign:function(a){var b=this;if(a===true){b.updateLayout()}b.alignTo(b.boundEl,b.alignment,b.offsets)},completeEdit:function(a){var d=this,g=d.field,b=d.startValue,c=d.context&&d.context.cancel,e;if(!d.editing){return}if(g.assertValue){g.assertValue()}e=d.getValue();if(!g.isValid()){if(d.revertInvalid!==false){d.cancelEdit(a)}return}if(d.ignoreNoChange&&!g.didValueChange(e,b)){d.onEditComplete(a);return}if(d.fireEvent("beforecomplete",d,e,b)!==false){e=d.getValue();if(d.updateEl&&d.boundEl){d.boundEl.setHtml(e)}d.onEditComplete(a,c);d.fireEvent("complete",d,e,b)}},onShow:function(){var a=this;Ext.container.Container.prototype.onShow.apply(this,arguments);a.fireEvent("startedit",a,a.boundEl,a.startValue)},cancelEdit:function(a){var c=this,b=c.startValue,e=c.field,d;if(c.editing){if(e){d=c.editedValue=c.getValue();e.suspendEvents();c.setValue(b);e.resumeEvents()}c.onEditComplete(a);c.fireEvent("canceledit",c,d,b);delete c.editedValue}},onEditComplete:function(a){this.editing=false;if(a!==true){this.hide();this.toggleBoundEl(true)}},onFocusLeave:function(b){var a=this;if(a.allowBlur===true&&a.editing&&a.selectSameEditor!==true){this.completeEdit()}Ext.container.Container.prototype.onFocusLeave.call(this,b)},onHide:function(){var a=this,b=a.field;if(a.editing){a.completeEdit()}else{if(b.collapse){b.collapse()}}Ext.container.Container.prototype.onHide.apply(this,arguments)},getValue:function(){return this.field.getValue()},setValue:function(a){this.field.setValue(a)},toggleBoundEl:function(a){if(this.hideEl!==false){this.boundEl.setVisible(a)}},beforeDestroy:function(){var b=this,a=b.specialKeyTask;if(a){a.cancel()}b.specialKeyTask=b.field=b.boundEl=Ext.destroy(b.field);Ext.container.Container.prototype.beforeDestroy.apply(this,arguments)}},0,["editor"],["component","box","container","editor"],{component:true,box:true,container:true,editor:true},["widget.editor"],0,[Ext,"Editor"],0));(Ext.cmd.derive("Ext.EventManager",Ext.Base,{singleton:true,mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,addListener:function(c,a,e,d,b){Ext.get(c).addListener(a,e,d,b)},onWindowResize:function(c,b,a){Ext.GlobalEvents.on("resize",c,b,a)},onWindowUnload:function(c,b,a){Ext.getWin().on("unload",c,b,a)},purgeElement:function(b,a){Ext.get(b).clearListeners()},removeAll:function(a){Ext.get(a).clearListeners()},removeListener:function(c,a,e,d,b){Ext.get(c).removeListener(a,e,d,b)},removeResizeListener:function(b,a){Ext.GlobalEvents.un("resize",b,a)},removeUnloadListener:function(b,a){Ext.getWin().un("unload",b,a)},stopEvent:function(a){this.stopPropagation(a);this.preventDefault(a)},stopPropagation:function(a){a=a.browserEvent||a;if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}},preventDefault:function(a){a=a.browserEvent||a;if(a.preventDefault){a.preventDefault()}else{a.returnValue=false;try{if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}catch(b){}}},getId:function(a){a=Ext.get(a);return a.id},getRelatedTarget:function(a){a=a.browserEvent||a;var b=a.relatedTarget;if(!b){if(this.mouseLeaveRe.test(a.type)){b=a.toElement}else{if(this.mouseEnterRe.test(a.type)){b=a.fromElement}}}return this.resolveTextNode(b)},getPageX:function(a){return this.getPageXY(a)[0]},getPageXY:function(c){c=c.browserEvent||c;var b=c.pageX,e=c.pageY,d=document.documentElement,a=document.body;if(!b&&b!==0){b=c.clientX+(d&&d.scrollLeft||a&&a.scrollLeft||0)-(d&&d.clientLeft||a&&a.clientLeft||0);e=c.clientY+(d&&d.scrollTop||a&&a.scrollTop||0)-(d&&d.clientTop||a&&a.clientTop||0)}return[b,e]},getPageY:function(a){return this.getPageXY(a)[1]},getTarget:function(a){a=a.browserEvent||a;return Ext.EventManager.resolveTextNode(a.target||a.srcElement)},resolveTextNode:Ext.isGecko?function(b){if(b){var a=HTMLElement.prototype.toString.call(b);if(a!=="[xpconnect wrapped native prototype]"&&a!=="[object XULElement]"){return b.nodeType===3?b.parentNode:b}}}:function(a){return a&&a.nodeType===3?a.parentNode:a}},0,0,0,0,0,0,[Ext,"EventManager"],function(a){a.on=a.addListener;a.un=a.removeListener}));(Ext.cmd.derive("Ext.FocusManager",Ext.Base,{singleton:true,alternateClassName:["Ext.FocusMgr"],enabled:true,enable:Ext.emptyFn,disable:Ext.emptyFn},0,0,0,0,0,0,[Ext,"FocusManager",Ext,"FocusMgr"],0));(Ext.cmd.derive("Ext.Img",Ext.Component,{autoEl:"img",baseCls:"x-img",src:"",alt:"",title:"",imgCls:"",ariaRole:"img",maskOnDisable:false,initComponent:function(){if(this.glyph){this.autoEl="div"}Ext.Component.prototype.initComponent.call(this)},getElConfig:function(){var e=this,h=e.autoEl,b=Ext.Component.prototype.getElConfig.call(this),g=Ext._glyphFontFamily,d=e.glyph,a,c;if(h==="img"||(Ext.isObject(h)&&h.tag==="img")){a=b}else{if(e.glyph){if(typeof d==="string"){c=d.split("@");d=c[0];g=c[1]||g}b.html="&#"+d+";";if(g){b.style=b.style||{};b.style.fontFamily=g}}else{b.cn=[a={tag:"img",role:e.ariaRole,id:e.id+"-img"}]}}if(a){if(e.imgCls){a.cls=(a.cls?a.cls+" ":"")+e.imgCls}a.src=e.src||Ext.BLANK_IMAGE_URL}if(e.alt){(a||b).alt=e.alt}if(e.title){(a||b).title=e.title}return b},onRender:function(){var b=this,c=b.autoEl,a;Ext.Component.prototype.onRender.apply(this,arguments);a=b.el;if(c==="img"||(Ext.isObject(c)&&c.tag==="img")){b.imgEl=a}else{b.imgEl=a.getById(b.id+"-img")}},onDestroy:function(){var a=this,b=a.imgEl;if(b&&a.el!==b){b.destroy()}this.imgEl=null;Ext.Component.prototype.onDestroy.call(this)},setSrc:function(c){var a=this,b=a.imgEl;a.src=c;if(b){b.dom.src=c||Ext.BLANK_IMAGE_URL}},setGlyph:function(e){var d=this,g=Ext._glyphFontFamily,a=d.glyph,b=d.el,c;d.glyph=e;if(d.rendered&&e!==a){if(typeof e==="string"){c=e.split("@");e=c[0];g=c[1]||g}b.dom.innerHTML="&#"+e+";";if(g){b.setStyle("font-family",g)}}}},0,["image","imagecomponent"],["component","box","image","imagecomponent"],{component:true,box:true,image:true,imagecomponent:true},["widget.image","widget.imagecomponent"],0,[Ext,"Img"],0));(Ext.cmd.derive("Ext.util.StoreHolder",Ext.Base,{mixinId:"storeholder",bindStore:function(b,c,a){a=a||"store";var d=this,e=c?null:d[a];if(b!==e){if(e){d.onUnbindStore(e,c,a);if(d.isComponent&&a==="store"&&e.autoDestroy){e.destroy()}else{d.unbindStoreListeners(e)}}if(b){d[a]=b=Ext.data.StoreManager.lookup(b);d.bindStoreListeners(b);d.onBindStore(b,e,c)}else{d[a]=null}}return d},getStore:function(){return this.store},setStore:function(a){this.bindStore(a)},unbindStoreListeners:function(a){var b=this.storeListeners;if(b){a.un(b)}},bindStoreListeners:function(a){var b=this.getStoreListeners(a);if(b){b=Ext.apply({},b);if(!b.scope){b.scope=this}this.storeListeners=b;a.on(b)}},getStoreListeners:Ext.emptyFn,onUnbindStore:Ext.emptyFn,onBindStore:Ext.emptyFn},0,0,0,0,0,0,[Ext.util,"StoreHolder"],0));(Ext.cmd.derive("Ext.LoadMask",Ext.Component,{isLoadMask:true,msg:"Loading...",msgCls:"x-mask-loading",msgWrapCls:"x-mask-msg",useMsg:true,useTargetEl:false,cls:"x-mask",componentCls:"x-border-box",ariaRole:"status",focusable:true,tabIndex:0,autoEl:{tag:"div",role:"status"},childEls:["msgWrapEl","msgEl","msgTextEl"],renderTpl:['<div id="{id}-msgWrapEl" data-ref="msgWrapEl" class="{[values.$comp.msgWrapCls]}">','<div id="{id}-msgEl" data-ref="msgEl" class="{[values.$comp.msgCls]} ',"x-",'mask-msg-inner {childElCls}">','<div id="{id}-msgTextEl" data-ref="msgTextEl" class="',"x-","mask-msg-text",'{childElCls}">{msg}</div>',"</div>","</div>"],maskOnDisable:false,constructor:function(b){var c=this,a;if(arguments.length===2){a=c.target=b;b=arguments[1]}else{a=b.target}Ext.Component.prototype.constructor.call(this,b);if(a.isComponent){c.ownerCt=a;c.hidden=true;c.renderTo=c.getMaskTarget();c.external=c.renderTo===Ext.getBody();c.bindComponent(a)}else{a=Ext.get(a);c.isElement=true;c.renderTo=c.target}c.render(c.renderTo);if(c.store){c.bindStore(c.store,true)}},initRenderData:function(){var a=Ext.Component.prototype.initRenderData.apply(this,arguments);a.msg=this.msg||"";return a},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(a){var c=this,b={scope:this,resize:c.sizeMask};if(c.external){b.added=c.onComponentAdded;b.removed=c.onComponentRemoved;if(a.floating){b.move=c.sizeMask;c.activeOwner=a}else{if(a.ownerCt){c.onComponentAdded(a.ownerCt)}}}c.mon(a,b);if(c.external){c.mon(Ext.GlobalEvents,{show:c.onContainerShow,hide:c.onContainerHide,expand:c.onContainerExpand,collapse:c.onContainerCollapse,scope:c})}},onComponentAdded:function(a){var b=this;delete b.activeOwner;b.floatParent=a;if(!a.floating){a=a.up("[floating]")}if(a){b.activeOwner=a;b.mon(a,"move",b.sizeMask,b);b.mon(a,"tofront",b.onOwnerToFront,b)}else{b.preventBringToFront=true}a=b.floatParent.ownerCt;if(b.rendered&&b.isVisible()&&a){b.floatOwner=a;b.mon(a,"afterlayout",b.sizeMask,b,{single:true})}},onComponentRemoved:function(a){var c=this,d=c.activeOwner,b=c.floatOwner;if(d){c.mun(d,"move",c.sizeMask,c);c.mun(d,"tofront",c.onOwnerToFront,c)}if(b){c.mun(b,"afterlayout",c.sizeMask,c)}delete c.activeOwner;delete c.floatOwner},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){a.el.on("mousedown",a.onMouseDown,a)}this.el.skipGarbageCollection=true},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(a,b){this.el.setStyle("zIndex",b+1)},onContainerShow:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(a){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(a){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var a=this;if(a.rendered&&a.isVisible()){a.hide();a.showNext=true}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var b=this,c=b.activeOwner||b.target,a=b.external?b.getOwner().el:b.getMaskTarget(),d;if(b.rendered&&b.isVisible()){if(b.external){if(!b.isElement&&c.floating){d=c.el.getZIndex();if(!isNaN(d)){b.onOwnerToFront(c,d)}}b.el.setSize(a.getSize()).alignTo(a,"tl-tl")}b.msgWrapEl.center(b.el)}},bindStore:function(a,b){var c=this;c.mixins.storeholder.bindStore.apply(c,arguments);a=c.store;if(a&&a.isLoading()){c.onBeforeLoad()}},getStoreListeners:function(b){var d=this.onLoad,c=this.onBeforeLoad,a={cachemiss:c,cachefilled:{fn:d,buffer:100}};if(!b.loadsSynchronously()){a.beforeload=c;a.load=d}return a},onDisable:function(){Ext.Component.prototype.onDisable.apply(this,arguments);if(this.loading){this.onLoad()}},getOwner:function(){return this.ownerCt||this.ownerCmp||this.floatParent},getMaskTarget:function(){var a=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?a.getTargetEl():(a.getMaskTarget()||Ext.getBody())},onBeforeLoad:function(){var c=this,a=c.getOwner(),b;if(!c.disabled){c.loading=true;if(a.componentLayoutCounter){c.maybeShow()}else{b=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=b;b.apply(a,arguments);c.maybeShow()}}}},maybeShow:function(){var c=this,a=c.getOwner(),b;b=a.isVisible(true)&&(!c.isComponent||a.el.isVisible(true));if(!b){c.showNext=true}else{if(c.loading&&a.rendered){c.show()}}},hide:function(){var b=this,a=b.ownerCt;if(b.isElement){a.unmask();b.fireEvent("hide",this);return}a.enableTabbing();a.setMasked(false);delete b.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;if(a.isElement){a.ownerCt.mask(this.useMsg?this.msg:"",this.msgCls);a.fireEvent("show",this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var c=this,b=c.ownerCt,a=c.el;c.loading=true;Ext.Component.prototype.afterShow.apply(this,arguments);if(c.hasOwnProperty("msgWrapCls")){a.dom.className=c.msgWrapCls}if(c.useMsg){c.msgTextEl.setHtml(c.msg)}else{c.msgWrapEl.hide()}if(c.shim||Ext.useShims){a.enableShim(null,true)}else{a.disableShim()}b.disableTabbing();b.setMasked(true);a.restoreTabbableState();c.syncMaskState()},syncMaskState:function(){var c=this,b=c.ownerCt,a=c.el;if(c.isVisible()){if(c.hasOwnProperty("msgWrapCls")){a.dom.className=c.msgWrapCls}if(c.useMsg){c.msgTextEl.setHtml(c.msg)}else{c.msgWrapEl.hide()}if(c.shim||Ext.useShims){a.enableShim(null,true)}else{a.disableShim()}if(b.el.contains(Ext.Element.getActiveElement())){c.focus()}c.sizeMask()}c.sizeMask()},onLoad:function(){this.loading=false;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.onDestroy.call(this)},privates:{getFocusEl:function(){return this.el}}},1,["loadmask"],["component","box","loadmask"],{component:true,box:true,loadmask:true},["widget.loadmask"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext,"LoadMask"],0));(Ext.cmd.derive("Ext.layout.component.Component",Ext.layout.Layout,{type:"component",isComponentLayout:true,nullBox:{},usesContentHeight:true,usesContentWidth:true,usesHeight:true,usesWidth:true,widthCache:{},heightCache:{},beginLayoutCycle:function(d,q){var l=this,c=l.owner,h=d.ownerCtContext,i=d.heightModel,j=d.widthModel,k=c.el.dom===document.body,g=c.lastBox||l.nullBox,n=c.el.lastBox||l.nullBox,a=!k,e=d.isTopLevel,m,o,b,p;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,d,q);if(q){if(l.usesContentWidth){++d.consumersContentWidth}if(l.usesContentHeight){++d.consumersContentHeight}if(l.usesWidth){++d.consumersWidth}if(l.usesHeight){++d.consumersHeight}if(h&&!h.hasRawContent){m=c.ownerLayout;if(m){if(m.usesWidth){++d.consumersWidth}if(m.usesHeight){++d.consumersHeight}}}}if(j.configured){b=c[j.names.width];if(e&&j.calculatedFrom){b=g.width}if(!k){a=l.setWidthInDom||(q?b!==n.width:j.constrained)}d.setWidth(b,a)}else{if(e){if(j.calculated){o=g.width;d.setWidth(o,o!==n.width)}o=g.x;d.setProp("x",o,o!==n.x)}}if(i.configured){p=c[i.names.height];if(e&&i.calculatedFrom){p=g.height}if(!k){a=q?p!==n.height:i.constrained}d.setHeight(p,a)}else{if(e){if(i.calculated){o=g.height;d.setHeight(o,o!==n.height)}o=g.y;d.setProp("y",o,o!==n.y)}}},finishedLayout:function(b){var h=this,k=b.children,a=h.owner,e,c,j,d,g;if(k){e=k.length;for(c=0;c<e;c++){j=k[c];j.el.lastBox=j.props}}b.previousSize=h.lastComponentSize;h.lastComponentSize=a.el.lastBox=g=b.props;d=a.lastBox||(a.lastBox={});d.x=g.x;d.y=g.y;d.width=g.width;d.height=g.height;d.invalid=false;Ext.layout.Layout.prototype.finishedLayout.call(this,b)},notifyOwner:function(d){var c=this,a=c.lastComponentSize,e=d.previousSize,b=[a.width,a.height,undefined,undefined];if(e){b[2]=e.width;b[3]=e.height}c.owner.afterComponentLayout.apply(c.owner,b)},getTarget:function(){return this.owner.el},getRenderTarget:function(){return this.owner.el},cacheTargetInfo:function(b){var a=this,d=a.targetInfo,c;if(!d){c=b.getEl("getTarget",a);a.targetInfo=d={padding:c.getPaddingInfo(),border:c.getBorderInfo()}}return d},measureAutoDimensions:function(m,i){var u=this,a=u.owner,r=a.layout,d=m.heightModel,h=m.widthModel,c=m.boxParent,o=m.isBoxParent,v=m.target,b=m.props,j,w={gotWidth:false,gotHeight:false,isContainer:(j=!m.hasRawContent)},t=i||3,q,e,k=0,g=0,l,p,s,x,n;if(h.shrinkWrap&&m.consumersContentWidth){++k;q=!(t&1);if(j){if(q){w.contentWidth=0;w.gotWidth=true;++g}else{if((w.contentWidth=m.getProp("contentWidth"))!==undefined){w.gotWidth=true;++g}}}else{p=b.contentWidth;if(typeof p==="number"){w.contentWidth=p;w.gotWidth=true;++g}else{if(q){l=true}else{if(!m.hasDomProp("containerChildrenSizeDone")){l=false}else{if(o||!c||c.widthModel.shrinkWrap){l=true}else{l=c.hasDomProp("width")}}}if(l){if(q){s=0}else{if(r&&r.measureContentWidth){s=r.measureContentWidth(m)}else{if(v.cacheWidth){x=v.xtype+"-"+v.ui;n=u.widthCache;s=n[x]||(n[x]=u.measureContentWidth(m))}else{s=u.measureContentWidth(m)}}}if(!isNaN(w.contentWidth=s)){m.setContentWidth(s,true);w.gotWidth=true;++g}}}}}else{if(h.natural&&m.consumersWidth){++k;p=b.width;if(typeof p==="number"){w.width=p;w.gotWidth=true;++g}else{if(o||!c){l=true}else{l=c.hasDomProp("width")}if(l){if(!isNaN(w.width=u.measureOwnerWidth(m))){m.setWidth(w.width,false);w.gotWidth=true;++g}}}}}if(d.shrinkWrap&&m.consumersContentHeight){++k;e=!(t&2);if(j){if(e){w.contentHeight=0;w.gotHeight=true;++g}else{if((w.contentHeight=m.getProp("contentHeight"))!==undefined){w.gotHeight=true;++g}}}else{p=b.contentHeight;if(typeof p==="number"){w.contentHeight=p;w.gotHeight=true;++g}else{if(e){l=true}else{if(!m.hasDomProp("containerChildrenSizeDone")){l=false}else{if(a.noWrap){l=true}else{if(!h.shrinkWrap){l=(m.bodyContext||m).hasDomProp("width")}else{if(o||!c||c.widthModel.shrinkWrap){l=true}else{l=c.hasDomProp("width")}}}}}if(l){if(e){s=0}else{if(r&&r.measureContentHeight){s=r.measureContentHeight(m)}else{if(v.cacheHeight){x=v.xtype+"-"+v.ui;n=u.heightCache;s=n[x]||(n[x]=u.measureContentHeight(m))}else{s=u.measureContentHeight(m)}}}if(!isNaN(w.contentHeight=s)){m.setContentHeight(s,true);w.gotHeight=true;++g}}}}}else{if(d.natural&&m.consumersHeight){++k;p=b.height;if(typeof p==="number"){w.height=p;w.gotHeight=true;++g}else{if(o||!c){l=true}else{l=c.hasDomProp("width")}if(l){if(!isNaN(w.height=u.measureOwnerHeight(m))){m.setHeight(w.height,false);w.gotHeight=true;++g}}}}}if(c){m.onBoxMeasured()}w.gotAll=g===k;return w},measureContentWidth:function(a){return a.el.getWidth()-a.getFrameInfo().width},measureContentHeight:function(a){return a.el.getHeight()-a.getFrameInfo().height},measureOwnerHeight:function(a){return a.el.getHeight()},measureOwnerWidth:function(a){return a.el.getWidth()}},0,0,0,0,0,0,[Ext.layout.component,"Component"],0));(Ext.cmd.derive("Ext.layout.component.Auto",Ext.layout.component.Component,{type:"autocomponent",setHeightInDom:false,setWidthInDom:false,waitForOuterHeightInDom:false,waitForOuterWidthInDom:false,beginLayoutCycle:function(d,a){var c=this,g=c.lastWidthModel,e=c.lastHeightModel,b=c.owner.el;Ext.layout.component.Component.prototype.beginLayoutCycle.apply(this,arguments);if(g&&g.fixed&&d.widthModel.shrinkWrap){b.setWidth(null)}if(e&&e.fixed&&d.heightModel.shrinkWrap){b.setHeight(null)}},calculate:function(h){var g=this,e=g.measureAutoDimensions(h),b=h.heightModel,c=h.widthModel,d,a;if(e.gotWidth){if(c.shrinkWrap){g.publishOwnerWidth(h,e.contentWidth)}else{if(g.publishInnerWidth){g.publishInnerWidth(h,e.width)}}}else{if(!c.auto&&g.publishInnerWidth){d=g.waitForOuterWidthInDom?h.getDomProp("width"):h.getProp("width");if(d===undefined){g.done=false}else{g.publishInnerWidth(h,d)}}}if(e.gotHeight){if(b.shrinkWrap){g.publishOwnerHeight(h,e.contentHeight)}else{if(g.publishInnerHeight){g.publishInnerHeight(h,e.height)}}}else{if(!b.auto&&g.publishInnerHeight){a=g.waitForOuterHeightInDom?h.getDomProp("height"):h.getProp("height");if(a===undefined){g.done=false}else{g.publishInnerHeight(h,a)}}}if(!e.gotAll){g.done=false}},calculateOwnerHeightFromContentHeight:function(b,a){return a+b.getFrameInfo().height},calculateOwnerWidthFromContentWidth:function(b,a){return a+b.getFrameInfo().width},publishOwnerHeight:function(i,g){var e=this,b=e.owner,a=e.calculateOwnerHeightFromContentHeight(i,g),h,d,c;if(isNaN(a)){e.done=false}else{h=Ext.Number.constrain(a,b.minHeight,b.maxHeight);if(h===a){d=e.setHeightInDom}else{c=e.sizeModels[(h<a)?"constrainedMax":"constrainedMin"];a=h;if(i.heightModel.calculatedFromShrinkWrap){i.heightModel=c}else{i.invalidate({heightModel:c})}}i.setHeight(a,d)}},publishOwnerWidth:function(h,b){var g=this,a=g.owner,e=g.calculateOwnerWidthFromContentWidth(h,b),i,d,c;if(isNaN(e)){g.done=false}else{i=Ext.Number.constrain(e,a.minWidth,a.maxWidth);if(i===e){d=g.setWidthInDom}else{c=g.sizeModels[(i<e)?"constrainedMax":"constrainedMin"];e=i;if(h.widthModel.calculatedFromShrinkWrap){h.widthModel=c}else{h.invalidate({widthModel:c})}}h.setWidth(e,d)}}},0,0,0,0,["layout.autocomponent"],0,[Ext.layout.component,"Auto"],0));(Ext.cmd.derive("Ext.layout.component.ProgressBar",Ext.layout.component.Auto,{type:"progressbar",beginLayout:function(d){var b=this,a,c;Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);if(!d.textEls){c=b.owner.textEl;if(c.isComposite){d.textEls=[];c=c.elements;for(a=c.length;a--;){d.textEls[a]=d.getEl(Ext.get(c[a]))}}else{d.textEls=[d.getEl("textEl")]}}},calculate:function(e){var c=this,a,d,b;Ext.layout.component.Auto.prototype.calculate.apply(this,arguments);if(Ext.isNumber(b=e.getProp("width"))){b-=e.getBorderInfo().width;d=e.textEls;for(a=d.length;a--;){d[a].setWidth(b)}}else{c.done=false}}},0,0,0,0,["layout.progressbar"],0,[Ext.layout.component,"ProgressBar"],0));(Ext.cmd.derive("Ext.ProgressBar",Ext.Component,{config:{value:0,textTpl:null},baseCls:"x-progress",animate:false,text:"",waitTimer:null,childEls:["bar"],defaultBindProperty:"value",renderTpl:['<tpl if="internalText">','<div class="{baseCls}-text {baseCls}-text-back">{text}</div>',"</tpl>",'<div id="{id}-bar" data-ref="bar" class="{baseCls}-bar {baseCls}-bar-{ui}" role="presentation" style="width:{percentage}%">','<tpl if="internalText">','<div class="{baseCls}-text">',"<div>{text}</div>","</div>","</tpl>","</div>"],componentLayout:"progressbar",ariaRole:"progressbar",initRenderData:function(){var a=this,b=a.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!a.hasOwnProperty("textEl"),text:a.text||"&#160;",percentage:b*100})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.textEl){a.textEl=Ext.get(a.textEl);a.updateText(a.text)}else{a.textEl=a.el.select("."+a.baseCls+"-text")}},applyValue:function(a){return a||0},updateValue:function(a){this.updateProgress(a,Math.round(a*100)+"%")},updateProgress:function(e,g,a){e=e||0;var d=this,b=d.value,c=d.getTextTpl();d.value=e||(e=0);if(g!=null){d.updateText(g)}else{if(c){d.updateText(c.apply({value:e,percent:e*100}))}}if(d.rendered&&!d.isDestroyed){if(a===true||(a!==false&&d.animate)){d.bar.stopAnimation();d.bar.animate(Ext.apply({from:{width:(b*100)+"%"},to:{width:(e*100)+"%"}},d.animate))}else{d.bar.setStyle("width",(e*100)+"%")}}d.fireEvent("update",d,e,g);return d},updateText:function(b){var a=this;a.text=b;if(a.rendered){a.textEl.setHtml(a.text)}return a},applyTextTpl:function(a){if(!a.isTemplate){a=new Ext.XTemplate(a)}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(c){var b=this,a;if(!b.waitTimer){a=b;c=c||{};b.updateText(c.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var e=c.increment||10;d-=1;b.updateProgress(((((d+e)%e)+1)*(100/e))*0.01,null,c.animate)},interval:c.interval||1000,duration:c.duration,onStop:function(){if(c.fn){c.fn.apply(c.scope||b)}b.reset()},scope:a})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(a){var b=this;b.updateProgress(0);b.clearTimer();if(a===true){b.hide()}return b},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},onDestroy:function(){var b=this,a=b.bar;b.clearTimer();if(b.rendered){if(b.textEl.isComposite){b.textEl.clear()}Ext.destroyMembers(b,"textEl","progressBar");if(a&&b.animate){a.stopAnimation()}}Ext.Component.prototype.onDestroy.call(this)}},0,["progressbar"],["component","box","progressbar"],{component:true,box:true,progressbar:true},["widget.progressbar"],0,[Ext,"ProgressBar"],0));(Ext.cmd.derive("Ext.ProgressBarWidget",Ext.Widget,{config:{text:null,value:0,animate:false,textTpl:null},cachedConfig:{baseCls:"x-progress",textCls:"x-progress-text",ui:"default"},template:[{reference:"backgroundEl"},{reference:"barEl",children:[{reference:"textEl"}]}],defaultBindProperty:"value",doSetWidth:function(a){var b=this;Ext.Widget.prototype.doSetWidth.call(this,a);a-=b.element.getBorderWidth("lr");b.backgroundEl.setWidth(a);b.textEl.setWidth(a)},updateUi:function(e,d){var c=this.element,a=this.barEl,b=this.getBaseCls()+"-";if(d){c.removeCls(b+d);a.removeCls(b+"bar-"+d)}c.addCls(b+e);a.addCls(b+"bar-"+e)},updateBaseCls:function(b,a){this.element.addCls(b);this.barEl.addCls(b+"-bar")},updateTextCls:function(a){this.backgroundEl.addCls(a+" "+a+"-back");this.textEl.addCls(a)},applyValue:function(a){return a||0},updateValue:function(e,b){var d=this,a=d.barEl,c=d.getTextTpl();if(c){d.setText(c.apply({value:e,percent:Math.round(e*100)}))}if(d.getAnimate()){a.stopAnimation();a.animate(Ext.apply({from:{width:(b*100)+"%"},to:{width:(e*100)+"%"}},d.animate))}else{a.setStyle("width",(e*100)+"%")}},updateText:function(a){this.backgroundEl.setHtml(a);this.textEl.setHtml(a)},applyTextTpl:function(a){if(!a.isTemplate){a=new Ext.XTemplate(a)}return a}},0,["progressbarwidget"],["widget","progressbarwidget"],{widget:true,progressbarwidget:true},["widget.progressbarwidget"],0,[Ext,"ProgressBarWidget"],0));(Ext.cmd.derive("Ext.dom.ButtonElement",Ext.dom.Element,{setSize:function(d,a,b){var e=this,c=e.component;Ext.dom.Element.prototype.setSize.call(this,d,a,b);c.btnWrap.setStyle("table-layout",(!d||d==="auto")?"":"fixed");c.btnEl.setStyle("height",(!a||a==="auto")?"":"auto");return e},setStyle:function(g,e){var d=this,b=d.component,c,a;Ext.dom.Element.prototype.setStyle.call(this,g,e);if(g){if(g==="width"||(typeof g!=="string"&&"width" in g)){c=e||g.width;b.btnWrap.setStyle("table-layout",(!c||c==="auto")?"":"fixed")}if(g==="height"||(typeof g!=="string"&&"height" in g)){a=e||g.height;b.btnEl.setStyle("height",(!a||a==="auto")?"":"auto")}}return d},setHeight:function(a,b){Ext.dom.Element.prototype.setHeight.call(this,a,b);this.component.btnEl.setStyle("height",(!a||a==="auto")?"":"auto");return this},setWidth:function(b,a){Ext.dom.Element.prototype.setWidth.call(this,b,a);this.component.btnWrap.setStyle("table-layout",(!b||b==="auto")?"":"fixed");return this}},0,0,0,0,0,0,[Ext.dom,"ButtonElement"],0));(Ext.cmd.derive("Ext.button.Manager",Ext.Base,{singleton:true,alternateClassName:"Ext.ButtonToggleManager",groups:{},pressedButton:null,buttonSelector:".x-btn",init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({keydown:a.onDocumentKeyDown,mouseup:a.onDocumentMouseUp,scope:a});a.initialized=true}},onDocumentKeyDown:function(c){var a=c.getKey(),b;if(a===c.SPACE||a===c.ENTER){b=c.getTarget(this.buttonSelector);if(b){Ext.getCmp(b.id).onClick(c)}}},onButtonMousedown:function(a,c){var b=this.pressedButton;if(b){b.onMouseUp(c)}this.pressedButton=a},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(b,e){if(e){var d=this.groups[b.toggleGroup],c=d.length,a;for(a=0;a<c;a++){if(d[a]!==b){d[a].toggle(false)}}}},register:function(b){var c=this,a=this.groups,d=a[b.toggleGroup];c.init();if(!b.toggleGroup){return}if(!d){d=a[b.toggleGroup]=[]}d.push(b);b.on("toggle",c.toggleGroup,c)},unregister:function(a){if(!a.toggleGroup){return}var b=this,c=b.groups[a.toggleGroup];if(c){Ext.Array.remove(c,a);a.un("toggle",b.toggleGroup,b)}},getPressed:function(d){var c=this.groups[d],b=0,a;if(c){for(a=c.length;b<a;b++){if(c[b].pressed===true){return c[b]}}}return null}},0,0,0,0,0,0,[Ext.button,"Manager",Ext,"ButtonToggleManager"],0));(Ext.cmd.derive("Ext.menu.Manager",Ext.Base,{singleton:true,alternateClassName:"Ext.menu.MenuMgr",groups:{},visible:[],constructor:function(){var a=this;a.onShow=function(){delete a.onShow;Ext.on("mousedown",a.checkActiveMenus,a);return a.onShow.apply(a,arguments)}},checkActiveMenus:function(d){var h=this.visible,a=h.length,b,g,c=Ext.Component.fromElement(d.target);if(a){h=h.slice();for(b=0;b<a;++b){g=h[b];if(!(g.owns(d)||(c&&c.isMenuItem&&c.menu===g))){g.hide()}}}},onShow:function(a){if(a.floating){Ext.Array.include(this.visible,a)}},onHide:function(a){if(a.floating){Ext.Array.remove(this.visible,a)}},hideAll:function(){var d=this.visible,b=d.length,a=false,c;if(b){d=d.slice();for(c=0;c<b;c++){d[c].hide();a=true}}return a},get:function(c,b){var a;if(typeof c==="string"){a=Ext.getCmp(c);if(a instanceof Ext.menu.Menu){c=a}}else{if(Ext.isArray(c)){b=Ext.apply({items:c},b);c=new Ext.menu.Menu(b)}else{if(!c.isComponent){b=Ext.apply({},c,b);c=Ext.ComponentManager.create(b,"menu")}}}return c},registerCheckable:function(c){var a=this.groups,b=c.group;if(b){if(!a[b]){a[b]=[]}a[b].push(c)}},unregisterCheckable:function(c){var a=this.groups,b=c.group;if(b){Ext.Array.remove(a[b],c)}},onCheckChange:function(d,g){var a=this.groups,c=d.group,b=0,j,e,h;if(c&&g){j=a[c];e=j.length;for(;b<e;b++){h=j[b];if(h!==d){h.setChecked(false)}}}}},1,0,0,0,0,0,[Ext.menu,"Manager",Ext.menu,"MenuMgr"],0));(Ext.cmd.derive("Ext.util.ClickRepeater",Ext.util.Observable,{constructor:function(b,a){var c=this;c.el=Ext.get(b);c.el.unselectable();Ext.apply(c,a);Ext.util.Observable.prototype.constructor.call(this);if(!c.disabled){c.disabled=true;c.enable()}if(c.handler){c.on("click",c.handler,c.scope||c)}},interval:20,delay:250,preventDefault:true,stopDefault:false,timer:0,enable:function(){if(this.disabled){this.el.on("mousedown",this.handleMouseDown,this);if(Ext.isIE8){this.el.on("dblclick",this.handleDblClick,this)}if(this.preventDefault||this.stopDefault){this.el.on("click",this.eventOptions,this)}}this.disabled=false},disable:function(a){if(a||!this.disabled){clearTimeout(this.timer);if(this.pressedCls){this.el.removeCls(this.pressedCls)}Ext.getDoc().un("mouseup",this.handleMouseUp,this);this.el.clearListeners()}this.disabled=true},setDisabled:function(a){this[a?"disable":"enable"]()},eventOptions:function(a){if(this.preventDefault){a.preventDefault()}if(this.stopDefault){a.stopEvent()}},destroy:function(){this.disable(true);this.clearListeners()},handleDblClick:function(a){clearTimeout(this.timer);this.fireEvent("mousedown",this,a);this.fireEvent("click",this,a)},handleMouseDown:function(a){clearTimeout(this.timer);if(this.pressedCls){this.el.addCls(this.pressedCls)}this.mousedownTime=new Date();Ext.getDoc().on("mouseup",this.handleMouseUp,this);this.el.on("mouseout",this.handleMouseOut,this);this.fireEvent("mousedown",this,a);this.fireEvent("click",this,a);if(this.accelerate){this.delay=400}this.timer=Ext.defer(this.click,this.delay||this.interval,this,[a])},click:function(a){this.fireEvent("click",this,a);this.timer=Ext.defer(this.click,this.accelerate?this.easeOutExpo(Ext.Date.getElapsed(this.mousedownTime),400,-390,12000):this.interval,this,[a])},easeOutExpo:function(e,a,h,g){return(e===g)?a+h:h*(-Math.pow(2,-10*e/g)+1)+a},handleMouseOut:function(){clearTimeout(this.timer);if(this.pressedCls){this.el.removeCls(this.pressedCls)}this.el.on("mouseover",this.handleMouseReturn,this)},handleMouseReturn:function(a){this.el.un("mouseover",this.handleMouseReturn,this);if(this.pressedCls){this.el.addCls(this.pressedCls)}this.click(a)},handleMouseUp:function(a){clearTimeout(this.timer);this.el.un("mouseover",this.handleMouseReturn,this);this.el.un("mouseout",this.handleMouseOut,this);Ext.getDoc().un("mouseup",this.handleMouseUp,this);if(this.pressedCls){this.el.removeCls(this.pressedCls)}this.fireEvent("mouseup",this,a)}},1,0,0,0,0,0,[Ext.util,"ClickRepeater"],0));(Ext.cmd.derive("Ext.util.KeyMap",Ext.Base,{alternateClassName:"Ext.KeyMap",eventName:"keydown",constructor:function(a){var b=this;if((arguments.length!==1)||(typeof a==="string")||a.dom||a.tagName||a===document||a.isComponent){b.legacyConstructor.apply(b,arguments);return}Ext.apply(b,a);b.bindings=[];if(!b.target.isComponent){b.target=Ext.get(b.target)}if(b.binding){b.addBinding(b.binding)}else{if(a.key){b.addBinding(a)}}b.enable()},legacyConstructor:function(b,d,a){var c=this;Ext.apply(c,{target:Ext.get(b),eventName:a||c.eventName,bindings:[]});if(d){c.addBinding(d)}c.enable()},addBinding:function(e){var c=this,d=e.key,b,a;if(c.processing){c.bindings=c.bindings.slice(0)}if(Ext.isArray(e)){for(b=0,a=e.length;b<a;b++){c.addBinding(e[b])}return}c.bindings.push(Ext.apply({keyCode:c.processKeys(d)},e))},removeBinding:function(g){var e=this,h=e.bindings,a=h.length,b,d,c;if(e.processing){e.bindings=h.slice(0)}c=e.processKeys(g.key);for(b=0;b<a;++b){d=h[b];if((d.fn||d.handler)===(g.fn||g.handler)&&d.scope===g.scope){if(g.alt===d.alt&&g.crtl===d.crtl&&g.shift===d.shift){if(Ext.Array.equals(d.keyCode,c)){Ext.Array.erase(e.bindings,b,1);return}}}}},processKeys:function(g){var h=false,d,e,b,a,c;if(g.test){return g}if(Ext.isString(g)){e=[];b=g.toUpperCase();for(c=0,a=b.length;c<a;++c){e.push(b.charCodeAt(c))}g=e;h=true}if(!Ext.isArray(g)){g=[g]}if(!h){for(c=0,a=g.length;c<a;++c){d=g[c];if(Ext.isString(d)){g[c]=d.toUpperCase().charCodeAt(0)}}}return g},handleTargetEvent:function(d){var c=this,e,b,a;if(c.enabled){e=c.bindings;b=0;a=e.length;d=c.processEvent.apply(c.processEventScope||c,arguments);if(d){c.lastKeyEvent=d;if(c.ignoreInputFields&&Ext.fly(d.target).isInputField()){return}if(!d.getKey){return d}c.processing=true;for(;b<a;++b){c.processBinding(e[b],d)}c.processing=false}}},processEvent:Ext.identityFn,processBinding:function(e,a){if(this.checkModifiers(e,a)){var g=a.getKey(),j=e.fn||e.handler,k=e.scope||this,h=e.keyCode,b=e.defaultEventAction,c,d;if(h.test){if(h.test(String.fromCharCode(a.getCharCode()))){if(j.call(k,g,a)!==true&&b){a[b]()}}}else{if(h.length){for(c=0,d=h.length;c<d;++c){if(g===h[c]){if(j.call(k,g,a)!==true&&b){a[b]()}break}}}}}},checkModifiers:function(h,e){var d=["shift","ctrl","alt"],c=0,a=d.length,g,b;for(;c<a;++c){b=d[c];g=h[b];if(!(g===undefined||(g===e[b+"Key"]))){return false}}return true},on:function(b,d,c){var h,a,e,g;if(Ext.isObject(b)&&!Ext.isArray(b)){h=b.key;a=b.shift;e=b.ctrl;g=b.alt}else{h=b}this.addBinding({key:h,shift:a,ctrl:e,alt:g,fn:d,scope:c})},un:function(b,d,c){var h,a,e,g;if(Ext.isObject(b)&&!Ext.isArray(b)){h=b.key;a=b.shift;e=b.ctrl;g=b.alt}else{h=b}this.removeBinding({key:h,shift:a,ctrl:e,alt:g,fn:d,scope:c})},isEnabled:function(){return this.enabled},enable:function(){var a=this;if(!a.enabled){a.target.on(a.eventName,a.handleTargetEvent,a,{capture:a.capture});a.enabled=true}},disable:function(){var a=this;if(a.enabled){a.target.removeListener(a.eventName,a.handleTargetEvent,a);a.enabled=false}},setDisabled:function(a){if(a){this.disable()}else{this.enable()}},destroy:function(c){var a=this,b=a.target;a.bindings=[];a.disable();if(c){b.destroy()}delete a.target}},1,0,0,0,0,0,[Ext.util,"KeyMap",Ext,"KeyMap"],0));(Ext.cmd.derive("Ext.button.Button",Ext.Component,{alternateClassName:"Ext.Button",config:{iconAlign:"left",text:null,textAlign:"center",arrowVisible:true},isButton:true,_syncFrameHeight:true,liquidLayout:true,hidden:false,disabled:false,pressed:false,tabIndex:0,enableToggle:false,menuAlign:"tl-bl?",showEmptyMenu:false,clickEvent:"click",preventDefault:true,handleMouseEvents:true,tooltipType:"qtip",baseCls:"x-btn",hrefTarget:"_blank",destroyMenu:true,focusable:true,ariaRole:"button",defaultBindProperty:"text",childEls:["btnEl","btnWrap","btnInnerEl","btnIconEl"],publishes:{pressed:1},_btnWrapCls:"x-btn-wrap",_btnCls:"x-btn-button",_baseIconCls:"x-btn-icon-el",_glyphCls:"x-btn-glyph",_innerCls:"x-btn-inner",_textCls:"x-btn-text",_noTextCls:"x-btn-no-text",_hasIconCls:"x-btn-icon",_pressedCls:"x-btn-pressed",overCls:"x-btn-over",_disabledCls:"x-btn-disabled",_menuActiveCls:"x-btn-menu-active",_operaArrowCls:"x-opera12m-btn-arrow",renderTpl:'<span id="{id}-btnWrap" data-ref="btnWrap" role="presentation" unselectable="on" style="{btnWrapStyle}" class="{btnWrapCls} {btnWrapCls}-{ui} {splitCls}{childElCls}"><span id="{id}-btnEl" data-ref="btnEl" role="presentation" unselectable="on" style="{btnElStyle}" class="{btnCls} {btnCls}-{ui} {textCls} {noTextCls} {hasIconCls} {iconAlignCls} {textAlignCls} {btnElAutoHeightCls}{childElCls}"><tpl if="iconBeforeText">{[values.$comp.renderIcon(values)]}</tpl><span id="{id}-btnInnerEl" data-ref="btnInnerEl" unselectable="on" class="{innerCls} {innerCls}-{ui}{childElCls}">{text}</span><tpl if="!iconBeforeText">{[values.$comp.renderIcon(values)]}</tpl></span></span>{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]}<tpl if="closable"><span id="{id}-closeEl" data-ref="closeEl" class="{baseCls}-close-btn"><tpl if="closeText"> {closeText}</tpl></span></tpl>',iconTpl:'<span id="{id}-btnIconEl" data-ref="btnIconEl" role="presentation" unselectable="on" class="{baseIconCls} {baseIconCls}-{ui} {iconCls} {glyphCls}{childElCls}" style="<tpl if="iconUrl">background-image:url({iconUrl});</tpl><tpl if="glyph && glyphFontFamily">font-family:{glyphFontFamily};</tpl>"><tpl if="glyph">&#{glyph};</tpl><tpl if="iconCls || iconUrl">&#160;</tpl></span>',scale:"small",allowedScales:["small","medium","large"],arrowAlign:"right",arrowCls:"arrow",maskOnDisable:false,shrinkWrap:3,frame:true,autoEl:{tag:"a",hidefocus:"on",unselectable:"on"},hasFrameTable:function(){return this.href&&this.frameTable},frameTableListener:function(){if(!this.disabled){this.doNavigate()}},doNavigate:function(){if(this.hrefTarget==="_blank"){window.open(this.getHref(),this.hrefTarget)}else{location.href=this.getHref()}},_triggerRegion:{},initComponent:function(){var a=this;a.addCls("x-unselectable");if(Ext.isOpera12m&&(a.split||a.menu)&&a.getArrowVisible()){a.addCls(a._operaArrowCls+"-"+a.arrowAlign)}Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=true;a.setMenu(a.menu,false,true)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty("preventDefault");if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=false}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==""){a.enableToggle=true}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var c=this,b=Ext.Component.prototype.getElConfig.call(this),a=c.getHref(),d=c.hrefTarget;if(b.tag==="a"){if(!c.disabled){b.tabIndex=c.tabIndex}if(a){if(!c.disabled){b.href=a;if(d){b.target=d}}}}return b},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);if(this.pressed){this.addCls(this._pressedCls)}},initRenderData:function(){return Ext.apply(Ext.Component.prototype.initRenderData.call(this),this.getTemplateArgs())},getMenu:function(){return this.menu||null},setMenu:function(g,e,c){var d=this,a=d.menu,b;if(a&&!c){if(e!==false&&d.destroyMenu){a.destroy()}a.ownerCmp=null}if(g){b=g.isMenu;g=Ext.menu.Manager.get(g,{ownerCmp:d});g.setOwnerCmp(d,b);g.menuClickBuffer=250;d.mon(g,{scope:d,show:d.onMenuShow,hide:d.onMenuHide});if(!a&&d.getArrowVisible()){d.split=true;if(d.rendered){d._addSplitCls();d.updateLayout()}}d.menu=g}else{if(d.rendered){d._removeSplitCls();d.updateLayout()}d.split=false;d.menu=null}},onRender:function(){var c=this,d,a,b;Ext.Component.prototype.onRender.apply(this,arguments);a=c.el;if(c.tooltip){c.setTooltip(c.tooltip,true)}if(c.handleMouseEvents){b={scope:c,mouseover:c.onMouseOver,mouseout:c.onMouseOut,mousedown:c.onMouseDown};if(c.split){b.mousemove=c.onMouseMove}}else{b={scope:c}}if(Ext.supports.Touch){b.touchstart=c.onTouchStart}if(c.menu){c.keyMap=new Ext.util.KeyMap({target:c.el,key:Ext.event.Event.prototype.DOWN,handler:c.onDownKey,scope:c})}if(c.repeat){c.mon(new Ext.util.ClickRepeater(a,Ext.isObject(c.repeat)?c.repeat:{}),"click",c.onRepeatClick,c)}else{if(b[c.clickEvent]){d=true}else{b[c.clickEvent]=c.onClick}}c.mon(a,b);if(c.hasFrameTable()){c.mon(c.frameTable,"click",c.frameTableListener,c)}if(d){c.mon(a,c.clickEvent,c.onClick,c)}Ext.button.Manager.register(c)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var i=this,c=i._btnCls,e=i._baseIconCls,a=i.getIconAlign(),j=i.glyph,h=Ext._glyphFontFamily,k=i.text,d=i._hasIcon(),g=i._hasIconCls,b;if(typeof j==="string"){b=j.split("@");j=b[0];h=b[1]}return{innerCls:i._innerCls,splitCls:i.getArrowVisible()?i.getSplitCls():"",iconUrl:i.icon,iconCls:i.iconCls,glyph:j,glyphCls:j?i._glyphCls:"",glyphFontFamily:h,text:k||"&#160;",closeText:i.closeText,textCls:k?i._textCls:"",noTextCls:k?"":i._noTextCls,hasIconCls:d?g:"",btnWrapCls:i._btnWrapCls,btnWrapStyle:i.width?"table-layout:fixed;":"",btnElStyle:i.height?"height:auto;":"",btnCls:c,baseIconCls:e,iconBeforeText:a==="left"||a==="top",iconAlignCls:d?(g+"-"+a):"",textAlignCls:c+"-"+i.getTextAlign()}},renderIcon:function(a){return this.getTpl("iconTpl").apply(a)},setHref:function(a){var b=this,d=b.hrefTarget,c;b.href=a;if(!b.configuredWithPreventDefault){b.preventDefault=!a}if(b.rendered){c=b.el.dom;if(!a||b.disabled){c.removeAttribute("href");c.removeAttribute("hrefTarget")}else{c.href=b.getHref();if(d){c.target=d}}}},getHref:function(){var b=this,a=b.href;return a?Ext.urlAppend(a,Ext.Object.toQueryString(Ext.apply({},b.params,b.baseParams))):false},setParams:function(c){var a=this,b;a.params=c;if(a.rendered){b=a.el.dom;if(a.disabled){b.removeAttribute("href")}else{b.href=a.getHref()||""}}},getSplitCls:function(){var a=this;return a.split?(a.baseCls+"-"+a.arrowCls)+" "+(a.baseCls+"-"+a.arrowCls+"-"+a.arrowAlign):""},setIcon:function(b){b=b||"";var c=this,a=c.btnIconEl,d=c.icon||"";c.icon=b;if(b!==d){if(a){a.setStyle("background-image",b?"url("+b+")":"");c._syncHasIconCls();if(c.didIconStateChange(d,b)){c.updateLayout()}}c.fireEvent("iconchange",c,d,b)}return c},setIconCls:function(b){b=b||"";var d=this,a=d.btnIconEl,c=d.iconCls||"";d.iconCls=b;if(c!==b){if(a){a.removeCls(c);a.addCls(b);d._syncHasIconCls();if(d.didIconStateChange(c,b)){d.updateLayout()}}d.fireEvent("iconchange",d,c,b)}return d},setGlyph:function(g){g=g||0;var e=this,b=e.btnIconEl,c=e.glyph,h=e._glyphCls,a,d;e.glyph=g;if(b){if(typeof g==="string"){d=g.split("@");g=d[0];a=d[1]||Ext._glyphFontFamily}if(!g){b.dom.innerHTML="";b.removeCls(h)}else{if(c!==g){b.dom.innerHTML="&#"+g+";";b.addCls(h)}}if(a){b.setStyle("font-family",a)}e._syncHasIconCls();if(e.didIconStateChange(c,g)){e.updateLayout()}}e.fireEvent("glyphchange",e,e.glyph,c);return e},setTooltip:function(c,a){var b=this;if(b.rendered){if(!a||!c){b.clearTip()}if(c){if(Ext.quickTipsActive&&Ext.isObject(c)){Ext.tip.QuickTipManager.register(Ext.apply({target:b.el.id},c));b.tooltip=c}else{b.el.dom.setAttribute(b.getTipAttr(),c)}}}else{b.tooltip=c}return b},updateIconAlign:function(g,d){var c=this,b,a,e;if(c.rendered){b=c.btnEl;a=c.btnIconEl;e=c._hasIconCls;if(d){b.removeCls(e+"-"+d)}b.addCls(e+"-"+g);if(g==="top"||g==="left"){b.insertFirst(a)}else{b.appendChild(a)}c.updateLayout()}},updateTextAlign:function(e,d){var c=this,b=c.btnEl,a=c._btnCls;if(c.rendered){b.removeCls(a+"-"+d);b.addCls(a+"-"+e)}},getTipAttr:function(){return this.tooltipType==="qtip"?"data-qtip":"title"},getRefItems:function(a){var c=this.menu,b;if(c){b=c.getRefItems(a);b.unshift(c)}return b||[]},clearTip:function(){var b=this,a=b.el;if(Ext.quickTipsActive&&Ext.isObject(b.tooltip)){Ext.tip.QuickTipManager.unregister(a)}else{a.dom.removeAttribute(b.getTipAttr())}},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this,b=a.menu;if(a.rendered){Ext.destroy(a.keyMap);delete a.keyMap}if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(b,a){this.handler=b;if(arguments.length>1){this.scope=a}return this},updateText:function(d,a){d=d==null?"":String(d);a=a||"";var c=this,e=c.btnInnerEl,b=c.btnEl;if(c.rendered){e.setHtml(d||"&#160;");b[d?"addCls":"removeCls"](c._textCls);b[d?"removeCls":"addCls"](c._noTextCls);c.updateLayout()}c.fireEvent("textchange",c,a,d)},didIconStateChange:function(a,c){var b=Ext.isEmpty(c);return Ext.isEmpty(a)?!b:b},setPressed:function(a){return this.toggle(a!==false)},toggle:function(c,a){var b=this;if(!b.enableToggle){return b}c=c===undefined?!b.pressed:!!c;if(c!==b.pressed){b[c?"addCls":"removeCls"](b._pressedCls);b.pressed=c;if(!a){b.fireEvent("toggle",b,c);Ext.callback(b.toggleHandler,b.scope,[b,c],0,b);if(b.publishState){b.publishState("pressed",c)}}}return b},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(a){var c=this,d=c.menu,b=!a||a.pointerType;if(d&&c.rendered){if(c.tooltip&&Ext.quickTipsActive&&c.getTipAttr()!=="title"){Ext.tip.QuickTipManager.getQuickTip().cancelShow(c.el)}if(d.isVisible()){if(b){d.hide()}else{d.focus()}}else{if(!a||c.showEmptyMenu||d.items.getCount()>0){d.autoFocus=!b;d.showBy(c.el,c.menuAlign)}}}return c},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(a,b){this.onClick(b)},onTouchStart:function(a){this.doPreventDefault(a)},onClick:function(b){var a=this;a.doPreventDefault(b);if(b.type!=="keydown"&&b.button){return}if(!a.disabled){a.doToggle();a.maybeShowMenu(b);a.fireHandler(b)}},doToggle:function(){var a=this;if(a.allowDepress!==false||!a.pressed){a.toggle()}},doPreventDefault:function(a){if(a&&(this.preventDefault||(this.disabled&&this.getHref()))){a.preventDefault()}},fireHandler:function(b){var a=this;if(a.fireEvent("click",a,b)!==false&&!a.isDestroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,true,true)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,true,true)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(c){var a=this,b=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(c)){if(!b){a.onMenuTriggerOver(c)}}else{if(b){a.onMenuTriggerOut(c)}}}},isWithinTrigger:function(d){var c=this,b=c.el,g,a;g=(c.arrowAlign==="right")?d.getX()-c.getX():d.getY()-b.getY();a=c.getTriggerRegion();return g>a.begin&&g<a.end},getTriggerRegion:function(){var d=this,e=d._triggerRegion,c=d.arrowAlign==="right",b=c?"getRight":"getBottom",a=c?d.getWidth():d.getHeight();e.begin=a-(d.el[b]()-d.btnEl[b]());e.end=a;return e},onMouseEnter:function(a){this.fireEvent("mouseover",this,a)},onMouseLeave:function(a){this.fireEvent("mouseout",this,a)},onMenuTriggerOver:function(c){var b=this,a=b.arrowTooltip;b.overMenuTrigger=true;if(b.split&&a){b.btnWrap.dom.setAttribute(b.getTipAttr(),a)}b.fireEvent("menutriggerover",b,b.menu,c)},onMenuTriggerOut:function(b){var a=this;delete a.overMenuTrigger;if(a.split&&a.arrowTooltip){a.btnWrap.dom.setAttribute(a.getTipAttr(),"")}a.fireEvent("menutriggerout",a,a.menu,b)},onEnable:function(){var b=this,a=b.href,d=b.hrefTarget,c=b.el.dom;Ext.Component.prototype.onEnable.call(this);b.removeCls(b._disabledCls);c.setAttribute("tabindex",b.tabIndex);if(a){c.href=a}if(d){c.target=d}},onDisable:function(){var a=this,b=a.el.dom;Ext.Component.prototype.onDisable.call(this);a.addCls(a._disabledCls);a.removeCls(a.overCls);b.removeAttribute("tabindex");if(a.href){b.removeAttribute("href")}if(a.hrefTarget){b.removeAttribute("target")}},setScale:function(c){var a=this,b=a.ui.replace("-"+a.scale,"");if(!Ext.Array.contains(a.allowedScales,c)){throw ("#setScale: scale must be an allowed scale ("+a.allowedScales.join(", ")+")")}a.scale=c;a.setUI(b)},setUI:function(b){var a=this;if(a.scale&&!b.match(a.scale)){b=b+"-"+a.scale}Ext.Component.prototype.setUI.call(this,b)},onMouseDown:function(b){var a=this;if(Ext.isIE||b.pointerType==="touch"){Ext.defer(function(){if(!b.defaultPrevented){var c=a.getFocusEl();if(c){c.focus()}}},1)}if(!a.disabled&&b.button===0){Ext.button.Manager.onButtonMousedown(a,b);a.addCls(a._pressedCls)}},onMouseUp:function(b){var a=this;if(!a.isDestroyed&&b.button===0){if(!a.pressed){a.removeCls(a._pressedCls)}}},onMenuShow:function(){var a=this;a.addCls(a._menuActiveCls);a.fireEvent("menushow",a,a.menu)},onMenuHide:function(b){var a=this;a.removeCls(a._menuActiveCls);a.fireEvent("menuhide",a,a.menu)},onDownKey:function(a,c){var b=this;if(b.menu&&!b.disabled){b.showMenu(c);c.stopEvent();return false}},updateArrowVisible:function(b){var a=this;if(a.rendered){if(b){if(a.menu||a.isSplitButton){a.split=true;a._addSplitCls()}}else{a._removeSplitCls();a.split=false}}return b},privates:{addOverCls:function(){if(!this.disabled){this.addCls(this.overCls)}},_addSplitCls:function(){var a=this;a.btnWrap.addCls(a.getSplitCls());if(Ext.isOpera12m){a.addCls(a._operaArrowCls+"-"+a.arrowAlign)}},getFocusEl:function(){return this.el},getTdCls:function(){return"x-button-"+this.ui+"-"+this.scale+"-cell"},removeOverCls:function(){this.removeCls(this.overCls)},_removeSplitCls:function(){var a=this;a.btnWrap.removeCls(a.getSplitCls());if(Ext.isOpera12m){a.removeCls(a._operaArrowCls+"-"+a.arrowAlign)}},_syncHasIconCls:function(){var b=this,a=b.btnEl,c=b._hasIconCls;if(a){a[b._hasIcon()?"addCls":"removeCls"]([c,c+"-"+b.iconAlign])}},_hasIcon:function(){return !!(this.icon||this.iconCls||this.glyph)},wrapPrimaryEl:function(a){this.el=new Ext.dom.ButtonElement(a);Ext.Component.prototype.wrapPrimaryEl.call(this,a)}}},0,["button"],["component","box","button"],{component:true,box:true,button:true},["widget.button"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.button,"Button",Ext,"Button"],0));Ext.define("Ext.rtl.button.Button",{override:"Ext.button.Button",getTriggerRegion:function(){var a=this,b=a._triggerRegion;if(!Ext.rootInheritedState.rtl!==!this.getInherited().rtl&&a.arrowAlign==="right"){b.begin=0;b.end=a.btnEl.getX()-a.el.getX()}else{b=arguments.callee.$previous.call(this)}return b}});(Ext.cmd.derive("Ext.button.Split",Ext.button.Button,{alternateClassName:"Ext.SplitButton",isSplitButton:true,arrowCls:"split",split:true,setArrowHandler:function(b,a){this.arrowHandler=b;this.scope=a},onClick:function(b){var a=this;a.doPreventDefault(b);if(!a.disabled){if(a.isWithinTrigger(b)){b.preventDefault();a.maybeShowMenu(b);a.fireEvent("arrowclick",a,b);if(a.arrowHandler){a.arrowHandler.call(a.scope||a,a,b)}}else{a.doToggle();a.fireHandler(b)}}}},0,["splitbutton"],["component","box","button","splitbutton"],{component:true,box:true,button:true,splitbutton:true},["widget.splitbutton"],0,[Ext.button,"Split",Ext,"SplitButton"],0));(Ext.cmd.derive("Ext.button.Cycle",Ext.button.Split,{alternateClassName:"Ext.CycleButton",getButtonText:function(b){var a=this,c="";if(b&&a.showText===true){if(a.prependText){c+=a.prependText}c+=b.text;return c}return a.text},setActiveItem:function(g,a){var e=this,b=e.changeHandler,d=e.forceIcon,c=e.forceGlyph;e.settingActive=true;if(!Ext.isObject(g)){g=e.menu.getComponent(g)}if(g){e.setText(e.getButtonText(g));e.setIconCls(d?d:g.iconCls);e.setGlyph(c?c:g.glyph);e.activeItem=g;if(!g.checked){g.setChecked(true,false)}if(!a){if(b){Ext.callback(b,e.scope,[e,g],0,e)}e.fireEvent("change",e,g)}}e.settingActive=false},getActiveItem:function(){return this.activeItem},initComponent:function(){var g=this,e=0,b,c,a,d;b=(g.menu.items||[]).concat(g.items||[]);g.menu=Ext.applyIf({cls:"x-cycle-menu",items:[]},g.menu);a=b.length;for(c=0;c<a;c++){d=b[c];d=Ext.applyIf({group:g.id,itemIndex:c,checkHandler:g.checkHandler,scope:g,checked:d.checked||false},d);g.menu.items.push(d);if(d.checked){e=c}}g.itemCount=g.menu.items.length;Ext.button.Split.prototype.initComponent.apply(this,arguments);g.on("click",g.toggleSelected,g);g.setActiveItem(e,true)},checkHandler:function(a,b){if(b&&!this.settingActive){this.setActiveItem(a)}},toggleSelected:function(){var c=this,a=c.menu,b;b=c.activeItem.next(":not([disabled])")||a.items.getAt(0);b.setChecked(true)}},0,["cycle"],["component","box","button","splitbutton","cycle"],{component:true,box:true,button:true,splitbutton:true,cycle:true},["widget.cycle"],0,[Ext.button,"Cycle",Ext,"CycleButton"],0));(Ext.cmd.derive("Ext.layout.container.SegmentedButton",Ext.layout.container.Container,{needsItemSize:false,setsItemSize:false,_btnRowCls:"x-segmented-button-row",getRenderTree:function(){var d=this,a=Ext.layout.container.Container.prototype.getRenderTree.call(this),b,c;if(d.owner.getVertical()){for(b=0,c=a.length;b<c;b++){a[b]={cls:d._btnRowCls,cn:a[b]}}}return a},getItemLayoutEl:function(a){var b=a.el.dom;return this.owner.getVertical()?b.parentNode:b},onDestroy:function(){if(this.rendered){var b=this.getRenderTarget(),a;while((a=b.last())){a.destroy()}}}},0,0,0,0,["layout.segmentedbutton"],0,[Ext.layout.container,"SegmentedButton"],0));(Ext.cmd.derive("Ext.button.Segmented",Ext.container.Container,{config:{allowDepress:false,allowMultiple:false,allowToggle:true,vertical:false,defaultUI:"default"},beforeRenderConfig:{value:undefined},defaultBindProperty:"value",publishes:["value"],twoWayBindable:["value"],layout:"segmentedbutton",defaultType:"button",maskOnDisable:false,isSegmentedButton:true,baseCls:"x-segmented-button",itemCls:"x-segmented-button-item",_firstCls:"x-segmented-button-first",_lastCls:"x-segmented-button-last",_middleCls:"x-segmented-button-middle",applyValue:function(j,a){var h=this,m=h.getAllowMultiple(),c,d,k,l,g,b,e;k=(j instanceof Array)?j:(j==null)?[]:[j];l=(a instanceof Array)?a:(a==null)?[]:[a];h._isApplyingValue=true;if(!h.rendered){g=h.items.items;for(b=0,e=g.length;b<e;b++){d=g[b];if(d.pressed){c=d.value;if(c==null){c=h.items.indexOf(d)}if(!Ext.Array.contains(k,c)){k.push(c)}}}}e=k.length;for(b=0;b<e;b++){j=k[b];d=h._lookupButtonByValue(j);if(d){c=d.value;if((c!=null)&&c!==j){k[b]=c}if(!d.pressed){d.setPressed(true)}}}j=m?k:e?k[0]:null;for(b=0,e=l.length;b<e;b++){a=l[b];if(!Ext.Array.contains(k,a)){h._lookupButtonByValue(a).setPressed(false)}}h._isApplyingValue=false;return j},beforeRender:function(){var a=this;a.addCls(a.baseCls+a._getClsSuffix());a._syncItemClasses(true);Ext.container.Container.prototype.beforeRender.call(this)},onAdd:function(c){var b=this,a="_syncItemClasses";b.mon(c,{hide:a,show:a,toggle:"_onItemToggle",scope:b});if(b.getAllowToggle()){c.enableToggle=true;if(!b.getAllowMultiple()){c.toggleGroup=b.getId();c.allowDepress=b.getAllowDepress()}}c.addCls(b.itemCls+b._getClsSuffix());b._syncItemClasses();Ext.container.Container.prototype.onAdd.call(this,c)},onRemove:function(b){var a=this;b.removeCls(a.itemCls+a._getClsSuffix());a._syncItemClasses();Ext.container.Container.prototype.onRemove.call(this,b)},beforeLayout:function(){if(Ext.isChrome){this.el.dom.offsetWidth}Ext.container.Container.prototype.beforeLayout.call(this)},updateDefaultUI:function(e){var a=this.items,d,b,c;if(this.rendered){Ext.Error.raise("Changing the ui config of a segmented button after render is not supported.")}else{if(a){if(a.items){a=a.items}for(b=0,c=a.length;b<c;b++){d=a[b];if(d.ui==="default"&&e!=="default"&&!d.hasOwnProperty("ui")){a[b].ui=e}}}}},privates:{_getClsSuffix:function(){return this.getVertical()?"-vertical":"-horizontal"},_getFirstCls:function(){return this._firstCls},_getLastCls:function(){return this._lastCls},_lookupButtonByValue:function(h){var b=this.items.items,g=b.length,e=0,d=null,a,c;for(;e<g;e++){c=b[e];a=c.value;if((a!=null)&&a===h){d=c;break}}if(!d&&typeof h==="number"){d=b[h]}return d},_onItemToggle:function(c,h){if(this._isApplyingValue){return}var e=this,d=Ext.Array,b=e.allowMultiple,a=(c.value!=null)?c.value:e.items.indexOf(c),g=e.getValue(),i;if(b){i=d.indexOf(g,a)}if(h){if(b){if(i===-1){g=d.slice(g);g.push(a)}}else{g=a}}else{if(b){if(i>-1){g=d.slice(g);g.splice(i,1)}}else{if(g===a){g=null}}}e.setValue(g);e.fireEvent("toggle",e,c,h)},_syncItemClasses:function(a){var h=this,b,d,k,g,e,l,j,c;if(!a&&!h.rendered){return}b=h._getFirstCls();d=h._middleCls;k=h._getLastCls();g=h.items.items;e=g.length;l=[];for(c=0;c<e;c++){j=g[c];if(!j.hidden){l.push(j)}}e=l.length;for(c=0;c<e;c++){l[c].removeCls([b,d,k])}if(e>1){l[0].addCls(b);for(c=1;c<e-1;c++){l[c].addCls(d)}l[e-1].addCls(k)}}}},0,["segmentedbutton"],["component","box","container","segmentedbutton"],{component:true,box:true,container:true,segmentedbutton:true},["widget.segmentedbutton"],0,[Ext.button,"Segmented"],0));Ext.define("Ext.rtl.button.Segmented",{override:"Ext.button.Segmented",privates:{_getFirstCls:function(){var a=this._firstCls;if(!this.getVertical()&&this.getInherited().rtl){a=this._lastCls}return a},_getLastCls:function(){var a=this._lastCls;if(!this.getVertical()&&this.getInherited().rtl){a=this._firstCls}return a}}});(Ext.cmd.derive("Ext.panel.Bar",Ext.container.Container,{vertical:false,_verticalSides:{left:1,right:1},initComponent:function(){var b=this,a=b.vertical;b.dock=b.dock||(a?"left":"top");b.layout=Ext.apply(a?{type:"vbox",align:"middle",alignRoundingMethod:"ceil"}:{type:"hbox",align:"middle",alignRoundingMethod:"floor"},b.layout);Ext.container.Container.prototype.initComponent.call(this)},onAdded:function(b,c,a){this.initOrientation();Ext.container.Container.prototype.onAdded.call(this,b,c,a)},onRemoved:function(a){this.removeClsWithUI(this.uiCls);Ext.container.Container.prototype.onRemoved.call(this,a)},beforeRender:function(){var a=this;if(a.forceOrientation||!a.ownerCt){a.initOrientation()}Ext.container.Container.prototype.beforeRender.call(this)},setDock:function(d){var c=this,b,a;if(d!==c.dock){Ext.suspendLayouts();c.clearOrientation();Ext.container.Container.prototype.setDock.call(this,d);c.initOrientation();a=c.vertical;b=c.layout;b.setVertical(a);b.setAlignRoundingMethod(a?"ceil":"floor");Ext.resumeLayouts(true)}},privates:{clearOrientation:function(){this.removeClsWithUI([this.vertical?"vertical":"horizontal",this.getDockName()])},getDockName:function(){return this.dock},initOrientation:function(){var c=this,b=c.dock,a=(c.vertical=(b?b in c._verticalSides:c.vertical));c.addClsWithUI([a?"vertical":"horizontal",c.getDockName()])}}},0,0,["component","box","container"],{component:true,box:true,container:true},0,0,[Ext.panel,"Bar"],0));Ext.define("Ext.rtl.panel.Bar",{override:"Ext.panel.Bar",rtlPositions:{top:"top",right:"left",bottom:"bottom",left:"right"},_rtlRotationClasses:{1:"x-title-rotate-left",2:"x-title-rotate-right"},_rtlRotationAngles:{1:270,2:90},onAdded:function(b,d,a){var c=this;if(c.isParentRtl()){c._rotationClasses=c._rtlRotationClasses;c._rotationAngles=c._rtlRotationAngles}(arguments.callee.$previous||Ext.container.Container.prototype.onAdded).call(this,b,d,a)},privates:{getDockName:function(){var b=this,a=b.dock;return b.isParentRtl()?b.rtlPositions[a]:a}}});(Ext.cmd.derive("Ext.panel.Title",Ext.Component,{isTitle:true,noWrap:true,textAlign:"left",iconAlign:"left",rotation:0,text:"&#160;",beforeRenderConfig:{textAlign:null,text:null,glyph:null,icon:null,iconAlign:null,iconCls:null,rotation:null},autoEl:{unselectable:"on"},childEls:["textEl","iconEl","iconWrapEl"],renderTpl:'<tpl if="iconMarkup && iconBeforeTitle">{iconMarkup}</tpl><div id="{id}-textEl" data-ref="textEl" class="{textCls} {textCls}-{ui} {itemCls}{childElCls}" unselectable="on"<tpl if="headerRole"> role="{headerRole}"</tpl>>{text}</div><tpl if="iconMarkup && !iconBeforeTitle">{iconMarkup}</tpl>',iconTpl:'<div id="{id}-iconWrapEl" data-ref="iconWrapEl" role="presentation" class="{iconWrapCls} {iconWrapCls}-{ui} {iconAlignCls} {itemCls}{childElCls}"<tpl if="iconWrapStyle"> style="{iconWrapStyle}"</tpl>><div id="{id}-iconEl" data-ref="iconEl" role="presentation" unselectable="on" class="{baseIconCls} {baseIconCls}-{ui} {iconCls} {glyphCls}" style="<tpl if="iconUrl">background-image:url({iconUrl});</tpl><tpl if="glyph && glyphFontFamily">font-family:{glyphFontFamily};</tpl>"><tpl if="glyph">&#{glyph};</tpl><tpl if="iconCls || iconUrl">&#160;</tpl></div></div>',_textAlignClasses:{left:"x-title-align-left",center:"x-title-align-center",right:"x-title-align-right"},_iconAlignClasses:{top:"x-title-icon-top",right:"x-title-icon-right",bottom:"x-title-icon-bottom",left:"x-title-icon-left"},_rotationClasses:{0:"x-title-rotate-none",1:"x-title-rotate-right",2:"x-title-rotate-left"},_rotationAngles:{1:90,2:270},baseCls:"x-title",_titleSuffix:"-title",_glyphCls:"x-title-glyph",_iconWrapCls:"x-title-icon-wrap",_baseIconCls:"x-title-icon",_itemCls:"x-title-item",_textCls:"x-title-text",afterComponentLayout:function(){var d=this,b=d.getRotation(),a,e,c;if(b&&!Ext.isIE8){c=d.el;a=d.lastBox;e=a.x;c.setStyle(d._getVerticalAdjustDirection(),(e+((b===1)?a.width:-a.height))+"px")}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var c=this,a=c.getRotation(),b=c.el;Ext.Component.prototype.onRender.call(this);if(a){b.setVertical(c._rotationAngles[a])}if(Ext.supports.FixedTableWidthBug){b._needsTableWidthFix=true}},applyText:function(a){if(!a){a="&#160;"}return a},beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.addCls(a._rotationClasses[a.getRotation()]);a.addCls(a._textAlignClasses[a.getTextAlign()])},getIconMarkup:function(){return this.getTpl("iconTpl").apply(this.getIconRenderData())},getIconRenderData:function(){var g=this,c=g.getIcon(),b=g.getIconCls(),e=g.getGlyph(),h=Ext._glyphFontFamily,a=g.getIconAlign(),d;if(typeof e==="string"){d=e.split("@");e=d[0];h=d[1]}return{id:g.id,ui:g.ui,itemCls:g._itemCls,iconUrl:c,iconCls:b,iconWrapCls:g._iconWrapCls,baseIconCls:g._baseIconCls,iconAlignCls:g._iconAlignClasses[a],glyph:e,glyphCls:e?g._glyphCls:"",glyphFontFamily:h}},initRenderData:function(){var b=this,a,c;c=Ext.apply({text:b.getText(),headerRole:b.headerRole,id:b.id,ui:b.ui,itemCls:b._itemCls,textCls:b._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(b._hasIcon()){a=b.getIconAlign();c.iconMarkup=b.getIconMarkup();c.iconBeforeTitle=(a==="top"||a==="left")}return c},onAdded:function(b,g,a){var d=this,e=d._titleSuffix,c=b.baseCls;d.addCls([c+e,c+e+"-"+b.ui]);Ext.Component.prototype.onAdded.call(this,b,g,a)},updateGlyph:function(g,c){g=g||0;var e=this,h=e._glyphCls,b,a,d;e.glyph=g;if(e.rendered){e._syncIconVisibility();b=e.iconEl;if(typeof g==="string"){d=g.split("@");g=d[0];a=d[1]||Ext._glyphFontFamily}if(!g){b.dom.innerHTML="";b.removeCls(h)}else{if(c!==g){b.dom.innerHTML="&#"+g+";";b.addCls(h)}}if(a){b.setStyle("font-family",a)}if(e._didIconStateChange(c,g)){e.updateLayout()}}},updateIcon:function(b,d){b=b||"";var c=this,a;if(c.rendered&&b!==d){c._syncIconVisibility();a=c.iconEl;a.setStyle("background-image",b?"url("+b+")":"");if(c._didIconStateChange(d,b)){c.updateLayout()}}},updateIconAlign:function(g,c){var b=this,e=b.iconWrapEl,a,d;if(b.iconWrapEl){a=b.el;d=b._iconAlignClasses;if(c){e.removeCls(d[c])}e.addCls(d[g]);if(g==="top"||g==="left"){a.insertFirst(e)}else{a.appendChild(e)}b.updateLayout()}},updateIconCls:function(b,c){b=b||"";var d=this,a;if(d.rendered&&c!==b){d._syncIconVisibility();a=d.iconEl;if(c){a.removeCls(c)}a.addCls(b);if(d._didIconStateChange(c,b)){d.updateLayout()}}},updateRotation:function(b,a){var d=this,c,e;if(d.rendered){c=d.el;e=d._rotationClasses;d.removeCls(e[a]);d.addCls(e[b]);c.setHorizontal();if(b){c.setVertical(d._rotationAngles[b])}c.setStyle({right:"",left:"",top:"",height:"",width:""});d.lastBox=null;d.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,b){var a=this,c=a._textAlignClasses;if(a.rendered){if(b){a.removeCls(c[b])}a.addCls(c[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return"left"},_didIconStateChange:function(a,c){var b=Ext.isEmpty(c);return Ext.isEmpty(a)?!b:b},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var e=this,d=e.el,a=e._hasIcon(),g=e.iconWrapEl,c,b;if(a&&!g){b=e.iconAlign;c=(b==="left"||b==="top");d.dom.insertAdjacentHTML(c?"afterbegin":"beforeend",e.getIconMarkup());g=e.iconWrapEl=d[c?"first":"last"]();e.iconEl=g.first()}if(g){g.setDisplayed(a)}}}},0,["title"],["component","box","title"],{component:true,box:true,title:true},["widget.title"],0,[Ext.panel,"Title"],0));Ext.define("Ext.rtl.panel.Title",{override:"Ext.panel.Title",getIconRenderData:function(){var a=this,b=arguments.callee.$previous.call(this),c=a.ownerCt;if(c&&c.isParentRtl()){b.childElCls=" "+a._rtlCls}return b},privates:{_getVerticalAdjustDirection:function(){var a=this.ownerCt;return(a&&a.isParentRtl())?"right":"left"}}});(Ext.cmd.derive("Ext.panel.Tool",Ext.Component,{isTool:true,focusable:true,baseCls:"x-tool",disabledCls:"x-tool-disabled",toolPressedCls:"x-tool-pressed",toolOverCls:"x-tool-over",ariaRole:"button",childEls:["toolEl"],renderTpl:['<img id="{id}-toolEl" data-ref="toolEl" src="{blank}" class="{baseCls}-img {baseCls}-{type}{childElCls}" role="presentation"/>'],toolOwner:null,tooltipType:"qtip",stopEvent:true,cacheHeight:true,cacheWidth:true,initComponent:function(){var a=this;a.type=a.type||a.id;Ext.applyIf(a.renderData,{baseCls:a.baseCls,blank:Ext.BLANK_IMAGE_URL,type:a.type});a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.call(this);if(a.setTypeAfterRender){a.setTypeAfterRender=false;a.setType(a.type)}a.el.on({click:a.onClick,mousedown:a.onMouseDown,mouseover:a.onMouseOver,mouseout:a.onMouseOut,scope:a});b=a.tooltip;if(b){a.setTooltip(b)}},tipAttrs:{qtip:"data-qtip"},setTooltip:function(h,d){var e=this,b=e.tooltip,g=e.tooltipType,i=e.id,c=e.el,a;if(b&&Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.unregister(i)}e.tooltip=h;if(d){e.tooltipType=d}if(h){if(Ext.quickTipsActive&&Ext.isObject(h)){Ext.tip.QuickTipManager.register(Ext.apply({target:i},h))}else{if(c){if(d&&g&&d!==g){a=e.tipAttrs[g]||"title";c.dom.removeAttribute(a)}a=e.tipAttrs[d||g]||"title";c.dom.setAttribute(a,h)}}}},setType:function(a){var b=this,c=b.type;b.type=a;if(b.rendered){if(c){b.toolEl.removeCls(b.baseCls+"-"+c)}b.toolEl.addCls(b.baseCls+"-"+a)}else{if(b.rendering){b.setTypeAfterRender=true}else{b.renderData.type=a}}return b},onDestroy:function(){var a=this,b=a.keyMap;a.setTooltip(null);if(b){b.destroy();a.keyMap=null}delete a.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{getFocusEl:function(){return this.el},onClick:function(c,b){var a=this;if(a.disabled){return false}a.el.removeCls(a.toolPressedCls+" "+a.toolOverCls);if(a.stopEvent!==false){c.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[c,b,a.ownerCt,a],0,a)}else{if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,c],0,a)}}a.fireEvent("click",a,c,a.toolOwner||a.ownerCt);return true},onMouseDown:function(){if(this.disabled){return false}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return false}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)}}},0,["tool"],["component","box","tool"],{component:true,box:true,tool:true},["widget.tool"],0,[Ext.panel,"Tool"],0));(Ext.cmd.derive("Ext.panel.Header",Ext.panel.Bar,{isHeader:true,defaultType:"tool",indicateDrag:false,weight:-1,shrinkWrap:3,iconAlign:"left",titleAlign:"left",titlePosition:0,titleRotation:"default",beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{ariaRole:"presentation",xtype:"title",flex:1},merge:function(b,a){if(typeof b!=="object"){b={text:b}}return Ext.merge(a?Ext.Object.chain(a):{},b)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:"x-header",initComponent:function(){var d=this,c=d.items,b=d.itemPosition,a=[d.headerCls];d.tools=d.tools||[];d.items=c=(c?c.slice():[]);if(b!==undefined){d._userItems=c.slice();d.items=c=[]}d.indicateDragCls=d.headerCls+"-draggable";if(d.indicateDrag){a.push(d.indicateDragCls)}d.addCls(a);d.syncNoBorderCls();Ext.Array.push(c,d.tools);d.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);d.on({dblclick:d.onDblClick,click:d.onClick,element:"el",scope:d})},addTool:function(a){this.add(Ext.ComponentManager.create(a,"tool"))},afterLayout:function(){var b=this,e,a,c,d;if(b.vertical){a=b.frameTR;if(a){e=b.frameBR;c=b.frameTL;d=(b.getWidth()-a.getPadding("r")-((c)?c.getPadding("l"):b.el.getBorderWidth("l")))+"px";e.setStyle("background-position-x",d);a.setStyle("background-position-x",d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(e,c){var d=this,a,b;e=e||"";a=Ext.isString(e);if(!Ext.isObject(e)){e={text:e.toString()}}if(c){Ext.suspendLayouts();c.setConfig(e);Ext.resumeLayouts(true);e=c}else{if(a){e.xtype="title"}e.ui=d.ui;e.headerRole=d.headerRole;b=("rotation" in e);e=Ext.create(e);if(!b&&d.vertical&&d.titleRotation==="default"){e.rotation=1}}return e},applyTitlePosition:function(b){var a=this.items.getCount();if(this._titleInItems){--a}return Math.max(Math.min(b,a),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var b=this,a=b.itemPosition;b.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(a!==undefined){b.insert(a,b._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(b,a){var c=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,b,a);if(b.isTool){c.push(b);c[b.type]=b}},onAdded:function(b,c,a){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,b,c,a)},onRemoved:function(b,c,a){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,b,c,a)},setDock:function(c){var b=this,e=b.getTitle(),a=b.getTitleRotation(),d=e.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,c);if(a==="default"){a=(b.vertical?1:0);if(a!==d){e.setRotation(a)}if(b.rendered){b.resetItemMargins()}}Ext.resumeLayouts(true)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(b,a){this.getTitle().setIconAlign(b)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(b,a){if(!a){this.insert(this.getTitlePosition(),b);this._titleInItems=true}this.titleCmp=b},updateTitleAlign:function(b,a){this.getTitle().setTextAlign(b)},updateTitlePosition:function(a){this.insert(a,this.getTitle())},updateTitleRotation:function(a){if(a==="default"){a=(this.vertical?1:0)}this.getTitle().setRotation(a)},privates:{fireClickEvent:function(a,c){var b="."+Ext.panel.Tool.prototype.baseCls;if(!c.getTarget(b)){this.fireEvent(a,this,c)}},getFocusEl:function(){return this.el},getFramingInfoCls:function(){var c=this,b=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),a=c.ownerCt;if(!c.expanding&&a&&(a.collapsed||c.isCollapsedExpander)){b+="-"+a.collapsedCls}return b+"-"+c.dock},onClick:function(a){this.fireClickEvent("click",a)},onDblClick:function(a){this.fireClickEvent("dblclick",a)},syncBeforeAfterTitleClasses:function(c){var k=this,j=k.items,g=j.items,b=k.getTitlePosition(),a=g.length,h=j.generation,l=k.syncBeforeAfterGen,n,e,d,m;if(!c&&(l===h)){return}k.syncBeforeAfterGen=h;for(d=0;d<a;++d){m=g[d];n=m.afterTitleCls||(m.afterTitleCls=m.baseCls+"-after-title");e=m.beforeTitleCls||(m.beforeTitleCls=m.baseCls+"-before-title");if(!k.title||d<b){if(l){m.removeCls(n)}m.addCls(e)}else{if(d>b){if(l){m.removeCls(e)}m.addCls(n)}}}},syncNoBorderCls:function(){var b=this,a=this.ownerCt,c=b.headerCls+"-noborder";if(a?(a.border===false&&!a.frame):b.border===false){b.addCls(c)}else{b.removeCls(c)}}}},0,["header"],["component","box","container","header"],{component:true,box:true,container:true,header:true},["widget.header"],0,[Ext.panel,"Header"],0));(Ext.cmd.derive("Ext.layout.container.boxOverflow.None",Ext.Base,{alternateClassName:"Ext.layout.boxOverflow.None",factoryConfig:{defaultType:"none"},isBoxOverflowHandler:true,$configPrefixed:false,$configStrict:false,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var a=this,c=b.state.boxPlan,d;if(c&&c.tooNarrow){d=a.handleOverflow(b);if(d){if(d.reservedSpace){a.layout.publishInnerCtSize(b,d.reservedSpace)}}}else{a.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(d){var c=this,a=c.layout.owner,b,e;if(a.hasListeners.overflowchange){b=a.query(">[hidden]");e=b.length;if(e!==c.lastHiddenCount){a.fireEvent("overflowchange",c.lastHiddenCount,e,b);c.lastHiddenCount=e}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(a){var b;if(a.isToolbar){b="toolbar"}else{if(a.isTabBar){b="tab-bar"}else{if(a.isMenu){b="menu"}else{if(a.isBreadcrumb){b="breadcrumb"}else{b=a.getXType()}}}}return b},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return""},setVertical:function(){var b=this,a=b.layout,c=a.innerCt;c.removeCls(b.getOverflowCls(a.oppositeDirection));c.addCls(b.getOverflowCls(a.direction))}},1,0,0,0,["box.overflow.None","box.overflow.none"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout.container.boxOverflow,"None",Ext.layout.boxOverflow,"None"],0));(Ext.cmd.derive("Ext.layout.container.boxOverflow.Scroller",Ext.layout.container.boxOverflow.None,{alternateClassName:"Ext.layout.boxOverflow.Scroller",animateScroll:false,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:"x-box-scroller",beforeSuffix:"-before-scroller",afterSuffix:"-after-scroller",constructor:function(a){var b=this;b.mixins.observable.constructor.call(b,a);b.scrollPosition=0;b.scrollSize=0},getPrefixConfig:function(){return{role:"presentation",id:this.layout.owner.id+this.beforeSuffix,cls:this.createScrollerCls("beforeX"),style:"display:none"}},getSuffixConfig:function(){return{role:"presentation",id:this.layout.owner.id+this.afterSuffix,cls:this.createScrollerCls("afterX"),style:"display:none"}},createScrollerCls:function(e){var h=this,g=h.layout,b=g.owner,d=h.getOwnerType(b),a=h.scrollerCls,c=a+" "+a+"-"+g.names[e]+" "+a+"-"+d+" "+a+"-"+d+"-"+b.ui;if(b.plain){c+=" "+a+"-plain"}return c},getOverflowCls:function(a){return this.scrollerCls+"-body-"+a},beginLayout:function(a){a.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(d){var c=this,g=d.state.boxPlan,b=c.layout,e=b.names,h=Math.min(c.getMaxScrollPosition(),d.innerCtScrollPos),a;if(g&&g.tooNarrow){a=d.childItems[d.childItems.length-1].props;c.scrollSize=a[e.x]+a[e.width];c.updateScrollButtons()}b.innerCt[e.setScrollLeft](h);Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,d)},handleOverflow:function(b){var h=this,g=h.layout.names,i=g.getWidth,j=g.parallelMargins,c,e,d,a;h.showScrollers();d=h.getBeforeScroller();a=h.getAfterScroller();c=d[i]()+a[i]()+d.getMargin(j)+a.getMargin(j);e=b.targetContext.getPaddingInfo()[g.width];return{reservedSpace:Math.max(c-e,0)}},getBeforeScroller:function(){var a=this;return a._beforeScroller||(a._beforeScroller=a.createScroller(a.beforeSuffix,"beforeRepeater","scrollLeft"))},getAfterScroller:function(){var a=this;return a._afterScroller||(a._afterScroller=a.createScroller(a.afterSuffix,"afterRepeater","scrollRight"))},createScroller:function(g,d,h){var e=this,c=e.layout.owner,b=e.scrollerCls,a;a=c.el.getById(c.id+g);a.addClsOnOver(b+"-hover");a.addClsOnClick(b+"-pressed");a.setVisibilityMode(Ext.Element.DISPLAY);e[d]=new Ext.util.ClickRepeater(a,{interval:e.scrollRepeatInterval,handler:h,scope:e});return a},createWheelListener:function(){var a=this;a.wheelListener=a.layout.innerCt.on("mousewheel",a.onMouseWheel,a,{destroyable:true})},onMouseWheel:function(a){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,false)},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;if(!a.wheelListener){a.createWheelListener()}a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==="vertical"?"vertical-scroller":"scroller")},hideScrollers:function(){var b=this,c=b.getBeforeScroller(),a=b.getAfterScroller();if(c){c.hide();a.hide();b.layout.owner.removeClsWithUI(b.layout.direction==="vertical"?"vertical-scroller":"scroller")}},destroy:function(){Ext.destroyMembers(this,"beforeRepeater","afterRepeater","_beforeScroller","_afterScroller","wheelListener")},scrollBy:function(b,a){this.scrollTo(this.getScrollPosition()+b,a)},getScrollAnim:function(){return{duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var b=this,d=b.getBeforeScroller(),a=b.getAfterScroller(),c;if(!d||!a){return}c=b.scrollerCls+"-disabled";d[b.atExtremeBefore()?"addCls":"removeCls"](c);a[b.atExtremeAfter()?"addCls":"removeCls"](c);b.scrolling=false},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,false)},scrollRight:function(){this.scrollBy(this.scrollIncrement,false)},getScrollPosition:function(){var c=this,b=c.layout,a;if(isNaN(c.scrollPosition)){a=b.innerCt[b.names.getScrollLeft]()}else{a=c.scrollPosition}return a},getMaxScrollPosition:function(){var b=this,a=b.layout,c=b.scrollSize-a.innerCt[a.names.getWidth]();return(c<0)?0:c},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var c=this,d=c.getBeforeScroller(),b=c.getAfterScroller(),e=c.layout.names,a=c.scrollerCls;d.removeCls(a+"-"+e.beforeY);b.removeCls(a+"-"+e.afterY);d.addCls(a+"-"+e.beforeX);b.addCls(a+"-"+e.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(a,b){var g=this,e=g.layout,h=e.names,d=g.getScrollPosition(),c=Ext.Number.constrain(a,0,g.getMaxScrollPosition());if(c!==d&&!g.scrolling){g.scrollPosition=NaN;if(b===undefined){b=g.animateScroll}e.innerCt[h.scrollTo](h.beforeScrollX,c,b?g.getScrollAnim():false);if(b){g.scrolling=true}else{g.updateScrollButtons()}g.fireEvent("scroll",g,c,b?g.getScrollAnim():false)}},scrollToItem:function(k,c){var j=this,g=j.layout,d=g.owner,i=g.names,b=g.innerCt,a,e,h;k=j.getItem(k);if(k!==undefined){if(k===d.items.first()){h=0}else{if(k===d.items.last()){h=j.getMaxScrollPosition()}else{a=j.getItemVisibility(k);if(!a.fullyVisible){e=k.getBox(false,true);h=e[i.x];if(a.hiddenEnd){h-=(b[i.getWidth]()-e[i.width])}}}}if(h!==undefined){j.scrollTo(h,c)}}},getItemVisibility:function(j){var h=this,b=h.getItem(j).getBox(true,true),c=h.layout,g=c.names,e=b[g.x],d=e+b[g.width],a=h.getScrollPosition(),i=a+c.innerCt[g.getWidth]();return{hiddenStart:e<a,hiddenEnd:d>i,fullyVisible:e>=a&&d<=i}}},1,0,0,0,["box.overflow.Scroller","box.overflow.scroller"],[["observable",Ext.mixin.Observable]],[Ext.layout.container.boxOverflow,"Scroller",Ext.layout.boxOverflow,"Scroller"],0));Ext.define("Ext.rtl.layout.container.boxOverflow.Scroller",{override:"Ext.layout.container.boxOverflow.Scroller",getWheelDelta:function(b){var a=this.layout,c=b.getWheelDelta();if(a.direction==="horizontal"&&a.owner.getInherited().rtl){c=-c}return c}});(Ext.cmd.derive("Ext.dd.DragDropManager",Ext.Base,{singleton:true,alternateClassName:["Ext.dd.DragDropMgr","Ext.dd.DDM"],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,init:function(){this.initialized=true},POINT:0,INTERSECT:1,mode:0,notifyOccluded:false,dragCls:"x-dd-drag-current",_execOnAll:function(c,b){var e=this.ids,d,a,h,g;for(d in e){if(e.hasOwnProperty(d)){g=e[d];for(a in g){if(g.hasOwnProperty(a)){h=g[a];if(!this.isTypeOfDD(h)){continue}h[c].apply(h,b)}}}}},addListeners:function(){var a=this;a.init();Ext.getDoc().on({mouseup:{fn:a.handleMouseUp,capture:false,priority:-1000},mousemove:{fn:a.handleMouseMove,capture:false},dragstart:a.preventDrag,drag:a.preventDrag,dragend:a.preventDrag,capture:true,scope:a});Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},preventDrag:function(a){if(this.isMouseDown){a.stopPropagation()}},_onResize:function(a){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:8,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(b,a){if(!this.initialized){this.init()}if(!this.ids[a]){this.ids[a]={}}this.ids[a][b.id]=b},removeDDFromGroup:function(c,a){if(!this.ids[a]){this.ids[a]={}}var b=this.ids[a];if(b&&b[c.id]){delete b[c.id]}},_remove:function(h,b){var e=this,c=e.ids,a=h.groups,d;if(e.clearingAll){return}if(e.dragCurrent===h){e.dragCurrent=null}for(d in a){if(a.hasOwnProperty(d)){if(b){delete c[d]}else{if(c[d]){delete c[d][h.id]}}}}delete e.handleIds[h.id]},regHandle:function(b,a){if(!this.handleIds[b]){this.handleIds[b]={}}this.handleIds[b][a]=a},isDragDrop:function(a){return(this.getDDById(a))?true:false},getRelated:function(g,b){var e=[],d,c,a;for(d in g.groups){for(c in this.ids[d]){a=this.ids[d][c];if(!this.isTypeOfDD(a)){continue}if(!b||a.isTarget){e[e.length]=a}}}return e},isLegalTarget:function(e,d){var b=this.getRelated(e,true),c,a;for(c=0,a=b.length;c<a;++c){if(b[c].id===d.id){return true}}return false},isTypeOfDD:function(a){return(a&&a.__ygDragDrop)},isHandle:function(b,a){return(this.handleIds[b]&&this.handleIds[b][a])},getDDById:function(d,c){var b,a;for(b in this.ids){a=this.ids[b][d];if(a instanceof Ext.dd.DDTarget||c){return a}}return null},handleMouseDown:function(g,d){var b=this,c,a;b.isMouseDown=true;if(Ext.quickTipsActive){Ext.tip.QuickTipManager.ddDisable()}b.currentPoint=g.getPoint();if(b.dragCurrent){b.handleMouseUp(g)}b.mousedownEvent=g;b.currentTarget=g.getTarget();b.dragCurrent=d;a=d.getEl();Ext.fly(a).setCapture();c=g.getXY();b.startX=c[0];b.startY=c[1];b.offsetX=b.offsetY=0;b.deltaX=b.startX-a.offsetLeft;b.deltaY=b.startY-a.offsetTop;b.dragThreshMet=false},startDrag:function(b,e){var c=this,d=c.dragCurrent,a;clearTimeout(c.clickTimeout);if(d){d.b4StartDrag(b,e);d.startDrag(b,e);a=Ext.fly(d.getDragEl());if(a){a.addCls(c.dragCls);if(a.shim){a.shim.el.addCls(c.dragCls)}}}c.dragThreshMet=true},handleMouseUp:function(b){var a=this;a.isMouseDown=false;if(Ext.quickTipsActive){Ext.tip.QuickTipManager.ddEnable()}if(!a.dragCurrent){return}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}clearTimeout(a.clickTimeout);if(a.dragThreshMet){a.fireEvents(b,true)}a.stopDrag(b);a.stopEvent(b)},stopEvent:function(a){if(this.stopPropagation){a.stopPropagation()}if(this.preventDefault){a.preventDefault()}},stopDrag:function(d){var b=this,c=b.dragCurrent,a;if(c){if(b.dragThreshMet){a=Ext.fly(c.getDragEl());if(a){a.removeCls(b.dragCls);if(a.shim){a.shim.el.removeCls(b.dragCls)}}c.b4EndDrag(d);c.endDrag(d)}b.dragCurrent.onMouseUp(d)}b.dragCurrent=null;b.dragOvers={}},handleMouseMove:function(j){var h=this,i=h.dragCurrent,a=h.currentPoint=j.getPoint(),d=a.x,b=a.y,g,c;h.offsetX=d-h.startX;h.offsetY=b-h.startY;if(!i){return true}if(!h.dragThreshMet){g=Math.abs(h.offsetX);c=Math.abs(h.offsetY);if(g>h.clickPixelThresh||c>h.clickPixelThresh){h.startDrag(h.startX,h.startY)}}if(h.dragThreshMet){i.b4Drag(j);i.onDrag(j);if(!i.moveOnly){h.fireEvents(j,false)}}h.stopEvent(j);return true},fireEvents:function(w,m){var y=this,n=Ext.supports.Touch,g=y.dragCurrent,u=y.currentPoint,q=u.x,p=u.y,o=[],h=[],k=[],a=[],x=[],v=[],c,d,l,b,s,t,r,j;if(!g||g.isLocked()){return}j=!(g.deltaX<0||g.deltaY<0);if(n||(!y.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&j)){c=g.getDragEl();if(j){c.style.visibility="hidden"}w.target=y.elementFromPoint(q,p)||document.documentElement;if(j){c.style.visibility="visible"}}for(s in y.dragOvers){d=y.dragOvers[s];delete y.dragOvers[s];if(!y.isTypeOfDD(d)||d.isDestroyed){continue}if(y.notifyOccluded){if(!this.isOverTarget(u,d,y.mode)){k.push(d)}}else{if(!w.within(d.getEl())){k.push(d)}}h[s]=true}for(r in g.groups){if("string"!==typeof r){continue}for(s in y.ids[r]){d=y.ids[r][s];if(y.isTypeOfDD(d)&&(l=d.getEl())&&(d.isTarget)&&(!d.isLocked())&&(Ext.fly(l).isVisible(true))&&((d!==g)||(g.ignoreSelf===false))){if(y.notifyOccluded){if((d.zIndex=y.getZIndex(l))!==-1){b=true}o.push(d)}else{if(w.within(d.getEl())){o.push(d);break}}}}}if(b){Ext.Array.sort(o,y.byZIndex)}for(s=0,t=o.length;s<t;s++){d=o[s];if(y.isOverTarget(u,d,y.mode)){if(m){x.push(d)}else{if(!h[d.id]){v.push(d)}else{a.push(d)}y.dragOvers[d.id]=d}if(!y.notifyOccluded){break}}}if(y.mode){if(k.length){g.b4DragOut(w,k);g.onDragOut(w,k)}if(v.length){g.onDragEnter(w,v)}if(a.length){g.b4DragOver(w,a);g.onDragOver(w,a)}if(x.length){g.b4DragDrop(w,x);g.onDragDrop(w,x)}}else{for(s=0,t=k.length;s<t;++s){g.b4DragOut(w,k[s].id);g.onDragOut(w,k[s].id)}for(s=0,t=v.length;s<t;++s){g.onDragEnter(w,v[s].id)}for(s=0,t=a.length;s<t;++s){g.b4DragOver(w,a[s].id);g.onDragOver(w,a[s].id)}for(s=0,t=x.length;s<t;++s){g.b4DragDrop(w,x[s].id);g.onDragDrop(w,x[s].id)}}if(m&&!x.length){g.onInvalidDrop(w)}},elementFromPoint:function(a,b){if(Ext.rootInheritedState.rtl){a=Ext.Element.getViewportWidth()-a}return Ext.Element.fromPagePoint(a,b,true)},getZIndex:function(b){var a=document.body,c,d=-1;b=Ext.getDom(b);while(b!==a){if(!isNaN(c=Number(Ext.fly(b).getStyle("zIndex")))){d=c}b=b.parentNode}return d},byZIndex:function(b,a){return b.zIndex<a.zIndex},getBestMatch:function(c){var e=null,b=c.length,d,a;if(b===1){e=c[0]}else{for(d=0;d<b;++d){a=c[d];if(a.cursorIsOver){e=a;break}else{if(!e||e.overlap.getArea()<a.overlap.getArea()){e=a}}}}return e},refreshCache:function(b){var a,c,d,e;for(a in b){if("string"!==typeof a){continue}for(c in this.ids[a]){d=this.ids[a][c];if(this.isTypeOfDD(d)){e=this.getLocation(d);if(e){this.locationCache[d.id]=e}else{delete this.locationCache[d.id]}}}}},verifyEl:function(b){if(b){var a;if(Ext.isIE){try{a=b.offsetParent}catch(c){}}else{a=b.offsetParent}if(a){return true}}return false},getLocation:function(i){if(!this.isTypeOfDD(i)){return null}if(i.getRegion){return i.getRegion()}var g=i.getEl(),m,d,c,o,n,p,a,k,h;try{m=Ext.fly(g).getXY()}catch(j){}if(!m){return null}d=m[0];c=d+g.offsetWidth;o=m[1];n=o+g.offsetHeight;p=o-i.padding[0];a=c+i.padding[1];k=n+i.padding[2];h=d-i.padding[3];return new Ext.util.Region(p,a,k,h)},isOverTarget:function(j,a,c){var e=this.locationCache[a.id],i,g,b,d,h;if(!e||!this.useCache){e=this.getLocation(a);this.locationCache[a.id]=e}if(!e){return false}a.cursorIsOver=e.contains(j);i=this.dragCurrent;if(!i||!i.getTargetCoord||(!c&&!i.constrainX&&!i.constrainY)){return a.cursorIsOver}a.overlap=null;g=i.getTargetCoord(j.x,j.y);b=i.getDragEl();d=new Ext.util.Region(g.y,g.x+b.offsetWidth,g.y+b.offsetHeight,g.x);h=d.intersect(e);if(h){a.overlap=h;return(c)?true:a.cursorIsOver}else{return false}},_onUnload:function(b,a){Ext.dd.DragDropManager.unregAll()},unregAll:function(){var c=this,a=c.elementCache,b;if(c.dragCurrent){c.stopDrag();c.dragCurrent=null}c.clearingAll=true;c._execOnAll("unreg",[]);delete c.clearingAll;for(b in a){delete a[b]}c.elementCache={};c.ids={};c.handleIds={}},elementCache:{},getElWrapper:function(b){var a=this.elementCache[b];if(!a||!a.el){a=this.elementCache[b]=new this.ElementWrapper(Ext.getDom(b))}return a},getElement:function(a){return Ext.getDom(a)},getCss:function(b){var a=Ext.getDom(b);return(a)?a.style:null},ElementWrapper:function(a){this.el=a||null;this.id=this.el&&a.id;this.css=this.el&&a.style},getPosX:function(a){return Ext.fly(a).getX()},getPosY:function(a){return Ext.fly(a).getY()},swapNode:function(c,a){if(c.swapNode){c.swapNode(a)}else{var d=a.parentNode,b=a.nextSibling;if(b===c){d.insertBefore(c,a)}else{if(a===c.nextSibling){d.insertBefore(a,c)}else{c.parentNode.replaceChild(a,c);d.insertBefore(c,b)}}}},getScroll:function(){var d=window.document,e=d.documentElement,a=d.body,c=0,b=0;if(e&&(e.scrollTop||e.scrollLeft)){c=e.scrollTop;b=e.scrollLeft}else{if(a){c=a.scrollTop;b=a.scrollLeft}}return{top:c,left:b}},getStyle:function(b,a){return Ext.fly(b).getStyle(a)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(a,c){var b=Ext.fly(c).getXY();Ext.fly(a).setXY(b)},numericSort:function(d,c){return(d-c)},handleWasClicked:function(a,c){if(this.isHandle(c,a.id)){return true}else{var b=a.parentNode;while(b){if(this.isHandle(c,b.id)){return true}else{b=b.parentNode}}}return false}},0,0,0,0,0,0,[Ext.dd,"DragDropManager",Ext.dd,"DragDropMgr",Ext.dd,"DDM"],function(a){Ext.onInternalReady(function(){a.addListeners()})}));(Ext.cmd.derive("Ext.resizer.Splitter",Ext.Component,{childEls:["collapseEl"],renderTpl:['<tpl if="collapsible===true">','<div id="{id}-collapseEl" data-ref="collapseEl" role="presentation" class="',"x-","collapse-el ","x-",'layout-split-{collapseDir}{childElCls}">&#160;',"</div>","</tpl>"],isSplitter:true,baseCls:"x-splitter",collapsedClsInternal:"x-splitter-collapsed",canResize:true,collapsible:null,collapseOnDblClick:true,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:"next",horizontal:false,vertical:false,size:5,tracker:null,ariaRole:"separator",focusable:true,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:"Ext.resizer.SplitterTracker",el:this.el,splitter:this},this.tracker)},beforeRender:function(){var b=this,c=b.getCollapseTarget(),a=b.collapsible;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){b.addCls(b.collapsedClsInternal)}if(!b.canResize){b.addCls(b.baseCls+"-noresize")}Ext.applyIf(b.renderData,{collapseDir:b.getCollapseDirection(),collapsible:(a!==null)?a:c.collapsible});b.protoEl.unselectable()},onRender:function(){var b=this,c,a;Ext.Component.prototype.onRender.apply(this,arguments);if(b.performCollapse!==false){if(b.renderData.collapsible){b.mon(b.collapseEl,"click",b.toggleTargetCmp,b)}if(b.collapseOnDblClick){b.mon(b.el,"dblclick",b.toggleTargetCmp,b)}}c=b.getCollapseTarget();if(c&&c.isPanel){c.on({collapse:b.onTargetCollapse,expand:b.onTargetExpand,beforeexpand:b.onBeforeTargetExpand,beforecollapse:b.onBeforeTargetCollapse,scope:b})}if(b.canResize){b.tracker=Ext.create(b.getTrackerConfig());b.relayEvents(b.tracker,["beforedragstart","dragstart","dragend"])}a=b.collapseEl;if(a){a.lastCollapseDirCls=b.collapseDirProps[b.collapseDirection].cls}},getCollapseDirection:function(){var g=this,c=g.collapseDirection,e,a,b,d;if(!c){e=g.collapseTarget;if(e.isComponent){c=e.collapseDirection}if(!c){d=g.ownerCt.layout.type;if(e.isComponent){b=g.ownerCt.items;a=Number(b.indexOf(e)===b.indexOf(g)-1)<<1|Number(d==="hbox")}else{a=Number(g.collapseTarget==="prev")<<1|Number(d==="hbox")}c=["bottom","right","top","left"][a]}g.collapseDirection=c}g.setOrientation((c==="top"||c==="bottom")?"horizontal":"vertical");return c},getCollapseTarget:function(){var a=this;return a.collapseTarget.isComponent?a.collapseTarget:a.collapseTarget==="prev"?a.previousSibling():a.nextSibling()},setCollapseEl:function(b){var a=this.collapseEl;if(a){a.setDisplayed(b)}},onBeforeTargetExpand:function(a){this.setCollapseEl("none")},onBeforeTargetCollapse:function(){this.setCollapseEl("none")},onTargetCollapse:function(b){var a=this;if(b===a.getCollapseTarget()&&b[a.orientation==="vertical"?"collapsedHorizontal":"collapsedVertical"]()){a.el.addCls(a.collapsedClsInternal+" "+(a.collapsedCls||""))}a.setCollapseEl("")},onTargetExpand:function(b){var a=this;a.el.removeCls(a.collapsedClsInternal+" "+(a.collapsedCls||""));a.setCollapseEl("")},collapseDirProps:{top:{cls:"x-layout-split-top"},right:{cls:"x-layout-split-right"},bottom:{cls:"x-layout-split-bottom"},left:{cls:"x-layout-split-left"}},orientationProps:{horizontal:{opposite:"vertical",fixedAxis:"height",stretchedAxis:"width"},vertical:{opposite:"horizontal",fixedAxis:"width",stretchedAxis:"height"}},applyCollapseDirection:function(){var c=this,b=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],a;if(b){a=b.lastCollapseDirCls;if(a){b.removeCls(a)}b.addCls(b.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var e=this,c=e.orientation,d=e.orientationProps[c],g=e.size,b=d.fixedAxis,h=d.stretchedAxis,a=e.baseCls+"-";e[c]=true;e[d.opposite]=false;if(!e.hasOwnProperty(b)||e[b]==="100%"){e[b]=g}if(!e.hasOwnProperty(h)||e[h]===g){e[h]="100%"}e.removeCls(a+d.opposite);e.addCls(a+c)},setOrientation:function(a){var b=this;if(b.orientation!==a){b.orientation=a;b.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,b){var c=this.getCollapseTarget(),g=c.placeholder,a;if(Ext.isFunction(c.expand)&&Ext.isFunction(c.collapse)){if(g&&!g.hidden){a=true}else{a=!c.hidden}if(a){if(c.collapsed){c.expand()}else{if(c.collapseDirection){c.collapse()}else{c.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,["splitter"],["component","box","splitter"],{component:true,box:true,splitter:true},["widget.splitter"],0,[Ext.resizer,"Splitter"],0));(Ext.cmd.derive("Ext.layout.container.Box",Ext.layout.container.Container,{alternateClassName:"Ext.layout.BoxLayout",type:"box",config:{align:"begin",constrainAlign:false,enableSplitters:true,overflowHandler:{$value:null,merge:function(b,a){if(typeof b==="string"){b={type:b}}return Ext.merge(a?Ext.Object.chain(a):{},b)}},padding:0,pack:"start",stretchMaxPartner:undefined,vertical:false,alignRoundingMethod:"round"},itemCls:"x-box-item",targetCls:"x-box-layout-ct",targetElCls:"x-box-target",innerCls:"x-box-inner",manageMargins:true,createsInnerCt:true,childEls:["innerCt","targetEl"],renderTpl:['{%var oc,l=values.$comp.layout,oh=l.overflowHandler;if (oh && oh.getPrefixConfig!==Ext.emptyFn) {if(oc=oh.getPrefixConfig())dh.generateMarkup(oc, out)}%}<div id="{ownerId}-innerCt" data-ref="innerCt" role="presentation" class="{[l.innerCls]}{[oh ? (" " + oh.getOverflowCls(l.direction)) : ""]}"><div id="{ownerId}-targetEl" data-ref="targetEl" class="{targetElCls}" role="presentation">{%this.renderBody(out, values)%}</div></div>{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:true,definitions:"var dh=Ext.DomHelper;"}],constructor:function(a){var c=this,b;Ext.layout.container.Container.prototype.constructor.call(this,a);c.setVertical(c.vertical);c.flexSortFn=c.flexSort.bind(c);b=typeof c.padding;if(b==="string"||b==="number"){c.padding=Ext.util.Format.parseBox(c.padding);c.padding.height=c.padding.top+c.padding.bottom;c.padding.width=c.padding.left+c.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(q,r){var l=this,j=l.sizePolicy,h=l.align,g=q.flex,o=h,k=l.names,i=k.height,n=k.width,b=q[n],p=q[i],d=l._percentageRe,c=d.test(b),e=(h==="stretch"),a=(h==="stretchmax"),m=l.constrainAlign;if(!r&&(e||g||c||(m&&!a))){r=l.owner.getSizeModel()}if(e){if(!d.test(p)&&r[i].shrinkWrap){o="stretchmax"}}else{if(!a){if(d.test(p)){o="stretch"}else{if(m&&!r[i].shrinkWrap){o="stretchmax"}else{o=""}}}}if(g||c){if(!r[n].shrinkWrap){j=j.flex}}return j[o]},flexSort:function(o,n){var l=this.names.maxWidth,e=this.names.minWidth,m=Infinity,k=o.target,r=n.target,i=k.flex,h=r.flex,s=0,c,p,j,d,q,g;j=k[l]||m;d=r[l]||m;c=k[e]||0;p=r[e]||0;q=isFinite(c)||isFinite(p);g=isFinite(j)||isFinite(d);if(q||g){if(g){s=j-d}if(s===0&&q){s=p-c}if(s===0){if(g){s=h-i}else{s=i-h}}}return s},isItemBoxParent:function(a){return true},isItemShrinkWrap:function(a){return true},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(b){var a=this;if(a.direction==="vertical"&&b.collapsedVertical()){b.collapseMemento.capture(["flex"]);delete b.flex}else{if(a.direction==="horizontal"&&b.collapsedHorizontal()){b.collapseMemento.capture(["flex"]);delete b.flex}}},beginExpand:function(a){a.collapseMemento.restore(["flex"])},beginLayout:function(e){var d=this,a=d.owner,h=a.stretchMaxPartner,c=d.innerCt.dom.style,g=d.names,b=d.overflowHandler,i;e.boxNames=g;if(b){b.beginLayout(e)}if(typeof h==="string"){h=Ext.getCmp(h)||a.query(h)[0]}e.stretchMaxPartner=h&&e.context.getCmp(h);Ext.layout.container.Container.prototype.beginLayout.call(this,e);e.innerCtContext=e.getEl("innerCt",d);e.targetElContext=e.getEl("targetEl",d);e.ownerScrollable=a.getScrollable();c.width=c.height=""},beginLayoutCycle:function(d,n){var k=this,a=d.state,l=d.ownerScrollable,i=k.align,j=d.boxNames,m=k.pack,c=k._centerRe,e=k.overflowHandler,b=d.state.canScroll,h,g;if(e){e.beginLayoutCycle(d,n)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d.parallelSizeModel=h=d[j.widthModel];d.perpendicularSizeModel=g=d[j.heightModel];d.boxOptions={align:i={stretch:i==="stretch",stretchmax:i==="stretchmax",center:c.test(i),bottom:k._endRe.test(i)},pack:m={center:c.test(m),end:m==="end"}};if(l){if(!b){a.canScroll={parallel:!h.shrinkWrap&&l[j.getX](),perpendicular:!g.shrinkWrap&&l[j.getY]()}}if(!a.actualScroll){a.actualScroll={parallel:false,perpendicular:false}}}if(i.stretch&&g.shrinkWrap){i.stretchmax=true;i.stretch=false}i.nostretch=!(i.stretch||i.stretchmax);if(h.shrinkWrap){m.center=m.end=false}k.cacheFlexes(d);k.targetEl.setWidth(20000)},cacheFlexes:function(m){var B=this,n=m.boxNames,a=n.widthModel,h=n.heightModel,c=m.boxOptions.align.nostretch,t=0,b=m.childItems,v=b.length,z=[],o=0,w=0,s=0,l=n.minWidth,y=n.minHeight,j=B._percentageRe,x=0,A=0,g,q,u,k,d,e,r,p;while(v--){q=b[v];g=q.target;e=q[a];if(e.calculated){q.flex=u=g.flex;if(u){t+=u;z.push(q);o+=g[l]||0}else{k=j.exec(g[n.width]);q.percentageParallel=parseFloat(k[1])/100;++x}}if(e.configured){r=g[n.width]}else{r=g[l]||0}s+=r;d=q[h];if(c&&d.calculated){k=j.exec(g[n.height]);q.percentagePerpendicular=parseFloat(k[1])/100;++A}if(d.configured){p=g[n.height]}else{p=g[y]||0}if(p>w){w=p}}m.flexedItems=z;m.flexedMinWidth=o;m.smallestWidth=s;m.smallestHeight=w;m.totalFlex=t;m.percentageWidths=x;m.percentageHeights=A;Ext.Array.sort(z,B.flexSortFn)},calculate:function(c){var h=this,g=c.boxNames,a=c.state,e=a.actualScroll,j=a.needsScroll,b=a.canScroll,i=a.boxPlan||(a.boxPlan={}),d=h.overflowHandler;i.targetSize=h.getContainerSize(c);if(b&&!j){a.needsScroll=j={parallel:b.parallel&&i.targetSize[g.width]<c.smallestWidth,perpendicular:b.perpendicular&&i.targetSize[g.height]<c.smallestHeight}}if(!a.parallelDone){a.parallelDone=h.calculateParallel(c,g,i)}if(!a.perpendicularDone){a.perpendicularDone=h.calculatePerpendicular(c,g,i)}if(a.parallelDone&&a.perpendicularDone){if(b&&!a.scrollPass){if(j.parallel!==e.parallel||j.perpendicular!==e.perpendicular){c.invalidate({state:{scrollPass:true,canScroll:b,needsScroll:e}});h.done=false;return}}h.publishInnerCtSize(c);if(h.done&&c.boxOptions.align.stretchmax&&!a.stretchMaxDone){h.calculateStretchMax(c,g,i);a.stretchMaxDone=true}if(d){d.calculate(c)}}else{h.done=false}},calculateParallel:function(x,L,C){var r=this,o=x.parallelSizeModel.shrinkWrap,D=L.width,h=x.childItems,t=L.beforeX,H=L.afterX,l=L.setWidth,A=h.length,w=x.flexedItems,G=w.length,q=x.boxOptions.pack,I=r.padding,b=C.targetSize,p=b[D],M=x.state,z=M.needsScroll,s=M.canScroll,B=0,j=I[t],F=j+I[H],u=Ext.getScrollbarSize(),e=u[L.width],a=u[L.height],J,y,g,m,n,k,c,K,E,v,d;if(!o&&!b[L.gotWidth]){return false}for(J=0;J<A;++J){n=h[J];y=n.marginInfo||n.getMarginInfo();B+=y[D];if(!n[L.widthModel].calculated){E=n.getProp(D);F+=E;if(isNaN(F)){return false}}}F+=B;if(x.percentageWidths){v=p-B;if(isNaN(v)){return false}for(J=0;J<A;++J){n=h[J];if(n.percentageParallel){E=Math.ceil(v*n.percentageParallel);E=n.setWidth(E);F+=E}}}if(o){d=0;C.tooNarrow=false}else{d=p-F;if(z&&z.perpendicular){d-=a}C.tooNarrow=d<x.flexedMinWidth;if(C.tooNarrow&&s&&s.parallel){M.actualScroll.parallel=true}}K=F;g=d;m=x.totalFlex;for(J=0;J<G;J++){n=w[J];k=n.flex;c=r.roundFlex((k/m)*g);c=n[l](c);K+=c;g=Math.max(0,g-c);m-=k}if(q.center){j+=g/2;if(j<0){j=0}}else{if(q.end){j+=g}}for(J=0;J<A;++J){n=h[J];y=n.marginInfo;j+=y[t];n.setProp(L.x,j);j+=y[H]+n.props[D]}K+=x.targetContext.getPaddingInfo()[D];x.state.contentWidth=K;if(z&&z.perpendicular){if(o){K+=e}x[L.hasOverflowY]=true;x.target.componentLayout[L.setWidthInDom]=true;x[L.invalidateScrollY]=Ext.isIE8}x[L.setContentWidth](K);return true},calculatePerpendicular:function(v,M,B){var t=this,Q=v.state,x=Q.needsScroll,u=Q.canScroll,d=v.perpendicularSizeModel.shrinkWrap,b=B.targetSize,j=v.childItems,A=j.length,m=Math.max,l=M.height,n=M.setHeight,h=M.beforeY,s=M.y,J=t.padding,k=J[h],o=b[l]-k-J[M.afterY],G=v.boxOptions.align,p=G.stretch,q=G.stretchmax,P=G.center,O=G.bottom,I=t.constrainAlign,H=0,D=0,F=t.onBeforeConstrainInvalidateChild,C=t.onAfterConstrainInvalidateChild,a=Ext.getScrollbarSize().height,z,K,E,w,y,c,r,e,N,L,g;if(!d&&!b[M.gotHeight]){return false}if(p||((P||O)&&!d)){if(isNaN(o)){return false}}if(x&&x.parallel){if(d){L=true}else{o-=a;B.targetSize[l]-=a}}if(p){c=o;H=m(c,v.smallestHeight)}else{for(K=0;K<A;K++){r=j[K];w=(r.marginInfo||r.getMarginInfo())[l];if(!(g=r.percentagePerpendicular)){E=r.getProp(l)}else{++D;if(d){continue}else{E=g*o-w;E=r[M.setHeight](E)}}if(!d&&I&&r[M.heightModel].shrinkWrap&&E>o){r.invalidate({before:F,after:C,layout:t,childHeight:o,names:M});v.state.parallelDone=false}if(isNaN(H=m(H,E+w,r.target[M.minHeight]||0))){return false}}}if(L){H+=a;v[M.hasOverflowX]=true;v.target.componentLayout[M.setHeightInDom]=true;v[M.invalidateScrollX]=Ext.isIE8}e=v.stretchMaxPartner;if(e){v.setProp("maxChildHeight",H);N=e.childItems;if(N&&N.length){H=m(H,e.getProp("maxChildHeight"));if(isNaN(H)){return false}}}v[M.setContentHeight](H+t.padding[l]+v.targetContext.getPaddingInfo()[l]);if(L){H-=a}if(H>b[l]&&u&&u.perpendicular){Q.actualScroll.perpendicular=true}B.maxSize=H;if(q){c=H}else{if(P||O||D){if(I){c=d?H:o}else{c=d?H:m(o,H)}c-=v.innerCtContext.getBorderInfo()[l]}}for(K=0;K<A;K++){r=j[K];w=r.marginInfo||r.getMarginInfo();z=k+w[h];if(p){r[n](c-w[l])}else{g=r.percentagePerpendicular;if(d&&g){w=r.marginInfo||r.getMarginInfo();E=g*c-w[l];E=r.setHeight(E)}if(P){y=c-r.props[l];if(y>0){z=k+Math[t.alignRoundingMethod](y/2)}}else{if(O){z=m(0,c-z-r.props[l])}}}r.setProp(s,z)}return true},onBeforeConstrainInvalidateChild:function(b,a){var c=a.names.heightModel;if(!b[c].constrainedMin){b[c]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(b,a){var c=a.names;b.setProp(c.beforeY,0);if(b[c.heightModel].calculated){b[c.setHeight](a.childHeight)}},calculateStretchMax:function(c,k,m){var l=this,h=k.height,n=k.width,g=c.childItems,a=g.length,p=m.maxSize,o=l.onBeforeStretchMaxInvalidateChild,e=l.onAfterStretchMaxInvalidateChild,q,j,d,b;for(d=0;d<a;++d){q=g[d];j=q.props;b=p-q.getMarginInfo()[h];if(b!==j[h]||q[k.heightModel].constrained){q.invalidate({before:o,after:e,layout:l,childWidth:j[n],childHeight:b,childX:j.x,childY:j.y,names:k})}}},onBeforeStretchMaxInvalidateChild:function(b,a){var c=a.names.heightModel;if(!b[c].constrainedMax){b[c]=Ext.layout.SizeModel.calculated}},onAfterStretchMaxInvalidateChild:function(d,c){var e=c.names,a=c.childHeight,b=c.childWidth;d.setProp("x",c.childX);d.setProp("y",c.childY);if(d[e.heightModel].calculated){d[e.setHeight](a)}if(d[e.widthModel].calculated){d[e.setWidth](b)}},completeLayout:function(b){var j=this,i=b.invalidateScrollX,h=b.invalidateScrollY,c=j.overflowHandler,e,a,g,d,k;if(c){c.completeLayout(b)}if(i||h){a=j.getTarget();e=a.dom;k=e.style;if(i){g=a.getStyle("overflowX");if(g==="auto"){g=k.overflowX;k.overflowX="scroll"}else{i=false}}if(h){d=a.getStyle("overflowY");if(d==="auto"){d=k.overflowY;k.overflowY="scroll"}else{h=false}}if(i||h){e.scrollWidth;if(i){k.overflowX=g}if(h){k.overflowY=d}}}},finishedLayout:function(b){var a=this.overflowHandler;if(a){a.finishedLayout(b)}Ext.layout.container.Container.prototype.finishedLayout.call(this,b)},getLayoutItems:function(){var j=Ext.layout.container.Container.prototype.getLayoutItems.call(this),b=j.length,e,d,c,k,h,g,a;for(c=0;c<b;++c){if((k=j[c]).isSplitter){continue}a=k.splitter;if(k.hidden){if(a){if(!a.hidden){a.hidden=true;if(a.el){a.el.hide()}}}continue}if(a){g=a.collapseTarget==="next"}else{g=false}d=null;if(e&&h){if(h.hidden){h.hidden=false;if(h.el){h.el.show()}}if(g){d=true}}else{if(g){d=!e}}if(d!==null&&a.hidden!==d){a.hidden=d;if(a.el){a.el.setVisible(!d)}}h=!g&&a;e=k}if(e&&h&&!h.hidden){h.hidden=true;if(h.el){h.el.hide()}}return j},getScrollerEl:function(){return this.innerCt},insertSplitter:function(d,c,g,b){var e={xtype:"splitter",id:d.id+"-splitter",hidden:g,splitterFor:d,synthetic:true},a=c+((b.collapseTarget==="prev")?1:0);e[this.names.height]="100%";if(b){Ext.apply(e,b)}d.splitter=this.owner.add(a,e)},publishInnerCtSize:function(b,d){d=d||0;var j=this,a=b.state,i=b.boxNames,h=i.height,l=i.width,g=b.boxOptions.align,n=j.padding,k=a.boxPlan,e=k.targetSize,p=k.maxSize,m=a.needsScroll,q=b.innerCtContext,c,o;if(b.parallelSizeModel.shrinkWrap||(k.tooNarrow&&a.canScroll)){c=a.contentWidth-b.targetContext.getPaddingInfo()[l]}else{c=e[l];if(m&&m.perpendicular){c-=Ext.getScrollbarSize()[l]}}c-=d;j.owner.tooNarrow=k.tooNarrow;if(g.stretch){o=p}else{o=k.maxSize+n[i.beforeY]+n[i.afterY]+q.getBorderInfo()[h];if(!b.perpendicularSizeModel.shrinkWrap&&(g.center||g.bottom)){o=Math.max(e[h],o)}}q[i.setWidth](c);q[i.setHeight](o);b.targetElContext.setWidth(b.innerCtContext.props.width-(j.vertical?0:(d||0)));if(isNaN(c+o)){j.done=false}},onAdd:function(d,a){var c=this,b=c.enableSplitters&&d.split&&!d.isButton;Ext.layout.container.Container.prototype.onAdd.call(this,d,a);if(b){if(b===true){b={collapseTarget:"next"}}else{if(Ext.isString(b)){b={collapseTarget:b==="before"?"next":"prev"}}else{b=Ext.apply({collapseTarget:b.side==="before"?"next":"prev"},b)}}c.insertSplitter(d,a,!!d.hidden,b)}},onRemove:function(b,e){var g=this,i=g.names,a=g.owner,h=b.splitter,c=g.overflowHandler,d;Ext.layout.container.Container.prototype.onRemove.call(this,b,e);if(h&&a.contains(h)){a.doRemove(h,true);b.splitter=null}if(c){c.onRemove(b)}if(b.layoutMarginCap===g.id){delete b.layoutMarginCap}if(!a.destroying&&!e&&b.rendered){d=b.getEl();if(d){d.setStyle(i.beforeY,"");d.setStyle(i.beforeX,"");d.setStyle("margin","")}}},applyOverflowHandler:function(b,a){var c;if(typeof b==="string"){b={type:b}}c=b.type;if(a&&a.type===b.type){delete b.type;a.setConfig(b);return a}b.layout=this;return Ext.Factory.boxOverflow(b)},getRenderTarget:function(){return this.targetEl},getElementTarget:function(){return this.innerCt},destroy:function(){var a=this;Ext.destroy(a.innerCt,a.overflowHandler);a.flexSortFn=a.innerCt=null;Ext.layout.container.Container.prototype.destroy.call(this)},getRenderData:function(){var a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.targetElCls=this.targetElCls;return a},updateVertical:function(b){var e=this,c=e.overflowHandler,a=e.owner,d=e._props;Ext.apply(e,b?d.vbox:d.hbox);if(c&&a&&a.rendered){c.setVertical(b)}},_props:{hbox:{direction:"horizontal",oppositeDirection:"vertical",horizontal:true,vertical:false,names:{beforeX:"left",beforeScrollX:"left",leftCap:"Left",afterX:"right",width:"width",contentWidth:"contentWidth",minWidth:"minWidth",maxWidth:"maxWidth",widthCap:"Width",widthModel:"widthModel",widthIndex:0,x:"x",getX:"getX",setX:"setX",scrollLeft:"scrollLeft",overflowX:"overflowX",hasOverflowX:"hasOverflowX",invalidateScrollX:"invalidateScrollX",parallelMargins:"lr",center:"middle",beforeY:"top",afterY:"bottom",height:"height",contentHeight:"contentHeight",minHeight:"minHeight",maxHeight:"maxHeight",heightCap:"Height",heightModel:"heightModel",heightIndex:1,y:"y",getY:"getY",setY:"setY",overflowY:"overflowY",hasOverflowY:"hasOverflowY",invalidateScrollY:"invalidateScrollY",perpendicularMargins:"tb",getWidth:"getWidth",getHeight:"getHeight",setWidth:"setWidth",setHeight:"setHeight",gotWidth:"gotWidth",gotHeight:"gotHeight",setContentWidth:"setContentWidth",setContentHeight:"setContentHeight",setWidthInDom:"setWidthInDom",setHeightInDom:"setHeightInDom",getScrollLeft:"getScrollLeft",setScrollLeft:"setScrollLeft",scrollTo:"scrollTo"},sizePolicy:{flex:{"":{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},stretch:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1},stretchmax:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:1}},"":{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},stretch:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},stretchmax:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:1}}},vbox:{direction:"vertical",oppositeDirection:"horizontal",horizontal:false,vertical:true,names:{beforeX:"top",beforeScrollX:"top",leftCap:"Top",afterX:"bottom",width:"height",contentWidth:"contentHeight",minWidth:"minHeight",maxWidth:"maxHeight",widthCap:"Height",widthModel:"heightModel",widthIndex:1,x:"y",getX:"getY",setX:"setY",scrollLeft:"scrollTop",overflowX:"overflowY",hasOverflowX:"hasOverflowY",invalidateScrollX:"invalidateScrollY",parallelMargins:"tb",center:"center",beforeY:"left",afterY:"right",height:"width",contentHeight:"contentWidth",minHeight:"minWidth",maxHeight:"maxWidth",heightCap:"Width",heightModel:"widthModel",heightIndex:0,y:"x",getY:"getX",setY:"setX",overflowY:"overflowX",hasOverflowY:"hasOverflowX",invalidateScrollY:"invalidateScrollX",perpendicularMargins:"lr",getWidth:"getHeight",getHeight:"getWidth",setWidth:"setHeight",setHeight:"setWidth",gotWidth:"gotHeight",gotHeight:"gotWidth",setContentWidth:"setContentHeight",setContentHeight:"setContentWidth",setWidthInDom:"setHeightInDom",setHeightInDom:"setWidthInDom",getScrollLeft:"getScrollTop",setScrollLeft:"setScrollTop",scrollTo:"scrollTo"},sizePolicy:{flex:{"":{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},stretch:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1},stretchmax:{readsWidth:1,readsHeight:0,setsWidth:1,setsHeight:1}},"":{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},stretch:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},stretchmax:{readsWidth:1,readsHeight:1,setsWidth:1,setsHeight:0}}}}},1,0,0,0,["layout.box"],0,[Ext.layout.container,"Box",Ext.layout,"BoxLayout"],0));Ext.define("Ext.rtl.layout.container.Box",{override:"Ext.layout.container.Box",initLayout:function(){var a=this;if(a.owner.getInherited().rtl){a.names=Ext.Object.chain(a.names);Ext.apply(a.names,a.rtlNames)}(arguments.callee.$previous||Ext.layout.container.Container.prototype.initLayout).apply(this,arguments)},getRenderData:function(){var a=(arguments.callee.$previous||Ext.layout.container.Container.prototype.getRenderData).call(this);if(this.owner.getInherited().rtl){a.targetElCls=(a.targetElCls||"")+" x-rtl"}return a}});(Ext.cmd.derive("Ext.layout.container.HBox",Ext.layout.container.Box,{alternateClassName:"Ext.layout.HBoxLayout",type:"hbox",vertical:false},0,0,0,0,["layout.hbox"],0,[Ext.layout.container,"HBox",Ext.layout,"HBoxLayout"],0));Ext.define("Ext.rtl.layout.container.HBox",{override:"Ext.layout.container.HBox",rtlNames:{beforeX:"right",afterX:"left",getScrollLeft:"rtlGetScrollLeft",setScrollLeft:"rtlSetScrollLeft",scrollTo:"rtlScrollTo",beforeScrollerSuffix:"-after-scroller",afterScrollerSuffix:"-before-scroller"}});(Ext.cmd.derive("Ext.layout.container.VBox",Ext.layout.container.Box,{alternateClassName:"Ext.layout.VBoxLayout",type:"vbox",vertical:true},0,0,0,0,["layout.vbox"],0,[Ext.layout.container,"VBox",Ext.layout,"VBoxLayout"],0));Ext.define("Ext.rtl.layout.container.VBox",{override:"Ext.layout.container.VBox",rtlNames:{beforeY:"right",afterY:"left",scrollTo:"rtlScrollTo"}});(Ext.cmd.derive("Ext.util.KeyNav",Ext.Base,{alternateClassName:"Ext.KeyNav",disabled:false,defaultEventAction:false,forceKeyDown:false,eventName:"keypress",statics:{keyOptions:{left:37,right:39,up:38,down:40,space:32,pageUp:33,pageDown:34,del:46,backspace:8,home:36,end:35,enter:13,esc:27,tab:9}},constructor:function(a){var b=this;if(arguments.length===2){b.legacyConstructor.apply(b,arguments);return}b.doConstruction(a)},legacyConstructor:function(b,a){this.doConstruction(Ext.apply({target:b},a))},doConstruction:function(a){var c=this,b={target:a.target,ignoreInputFields:a.ignoreInputFields,eventName:c.getKeyEvent("forceKeyDown" in a?a.forceKeyDown:c.forceKeyDown,a.eventName),capture:a.capture},d;if(c.map){c.map.destroy()}c.initConfig(a);if(a.processEvent){b.processEvent=a.processEvent;b.processEventScope=a.processEventScope||c}if(a.keyMap){d=c.map=a.keyMap}else{d=c.map=new Ext.util.KeyMap(b);c.destroyKeyMap=true}this.addBindings(a);d.disable();if(!a.disabled){d.enable()}},addBindings:function(h){var c=this,b,e,d=c.map,a=Ext.util.KeyNav.keyOptions,g=h.scope||c;for(b in h){e=h[b];if(e&&(b.length===1||(b=a[b])||(!isNaN(b=parseInt(b,10))))){if(typeof e==="function"){e={handler:e,defaultEventAction:(h.defaultEventAction!==undefined)?h.defaultEventAction:c.defaultEventAction}}d.addBinding({key:b,ctrl:e.ctrl,shift:e.shift,alt:e.alt,handler:Ext.Function.bind(c.handleEvent,e.scope||g,[e.handler||e.fn,c],true),defaultEventAction:(e.defaultEventAction!==undefined)?e.defaultEventAction:c.defaultEventAction})}}},handleEvent:function(d,c,b,a){a.lastKeyEvent=c;return b.call(this,c)},destroy:function(a){if(this.destroyKeyMap){this.map.destroy(a)}delete this.map},enable:function(){if(this.map){this.map.enable();this.disabled=false}},disable:function(){if(this.map){this.map.disable()}this.disabled=true},setDisabled:function(a){this.map.setDisabled(a);this.disabled=a},getKeyEvent:function(b,a){if(b||(Ext.supports.SpecialKeyDownRepeat&&!a)){return"keydown"}else{return a||this.eventName}}},1,0,0,0,0,0,[Ext.util,"KeyNav",Ext,"KeyNav"],0));(Ext.cmd.derive("Ext.util.FocusableContainer",Ext.Mixin,{mixinConfig:{id:"focusablecontainer",before:{onAdd:"onFocusableChildAdd",onRemove:"onFocusableChildRemove",destroy:"destroyFocusableContainer",onFocusEnter:"onFocusEnter"},after:{afterRender:"initFocusableContainer",onFocusLeave:"onFocusLeave"}},isFocusableContainer:true,enableFocusableContainer:true,activeChildTabIndex:0,inactiveChildTabIndex:-1,privates:{initFocusableContainer:function(){if(this.enableFocusableContainer){this.doInitFocusableContainer()}},doInitFocusableContainer:function(){var b=this,a;a=b.getFocusableContainerEl();b.activateFocusableContainerEl(a);b.mon(a,"mousedown",b.onFocusableContainerMousedown,b);b.focusableKeyNav=b.createFocusableContainerKeyNav(a)},createFocusableContainerKeyNav:function(a){var b=this;return new Ext.util.KeyNav(a,{ignoreInputFields:true,scope:b,tab:b.onFocusableContainerTabKey,enter:b.onFocusableContainerEnterKey,space:b.onFocusableContainerSpaceKey,up:b.onFocusableContainerUpKey,down:b.onFocusableContainerDownKey,left:b.onFocusableContainerLeftKey,right:b.onFocusableContainerRightKey})},destroyFocusableContainer:function(){if(this.enableFocusableContainer){this.doDestroyFocusableContainer()}},doDestroyFocusableContainer:function(){var a=this.focusableKeyNav;if(a){a.destroy();delete this.focusableKeyNav}},getFocusables:function(){return this.items.items},initDefaultFocusable:function(k){var g=this,j=g.activeChildTabIndex,c=false,e,h,b,d,a;e=g.getFocusables();d=e.length;if(!d){return}for(b=0;b<d;b++){h=e[b];if(h.focusable){c=true;a=h.getTabIndex();if(a!=null&&a>=j){return h}}}if(!c){return}h=g.findNextFocusableChild(null,true,e,k);if(h){g.activateFocusable(h)}return h},clearFocusables:function(){var e=this,b=e.getFocusables(),a=b.length,d,c;for(c=0;c<a;c++){d=b[c];if(d.focusable){e.deactivateFocusable(d)}}},activateFocusable:function(c,b){var a=b!=null?b:this.activeChildTabIndex;c.setTabIndex(a)},deactivateFocusable:function(c,b){var a=b!=null?b:this.inactiveChildTabIndex;c.setTabIndex(a)},onFocusableContainerTabKey:function(){return true},onFocusableContainerEnterKey:function(){return true},onFocusableContainerSpaceKey:function(){return true},onFocusableContainerUpKey:function(a){return this.moveChildFocus(a,false)},onFocusableContainerLeftKey:function(a){return this.moveChildFocus(a,false)},onFocusableContainerRightKey:function(a){return this.moveChildFocus(a,true)},onFocusableContainerDownKey:function(a){return this.moveChildFocus(a,true)},getFocusableFromEvent:function(a){var b=Ext.Component.fromElement(a.getTarget());return b},moveChildFocus:function(b,a){var c=this.getFocusableFromEvent(b);return this.focusChild(c,a,b)},focusChild:function(c,a){var b=this.findNextFocusableChild(c,a);if(b){b.focus()}return b},findNextFocusableChild:function(j,h,c,e){var g,b,d,a;c=c||this.getFocusables();b=Ext.Array.indexOf(c,j);h=h===true?1:h===false?-1:h;a=c.length;d=h>0?(b<a?b+h:0):(b>0?b+h:a-1);for(;;d+=h){if(b<0&&(d>=a||d<0)){return null}else{if(d>=a){d=-1;continue}else{if(d<0){d=a;continue}else{if(d===b){return null}}}}g=c[d];if(!g||!g.focusable){continue}if(e||(g.isFocusable&&g.isFocusable())){return g}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(a){if(this.enableFocusableContainer){return this.doFocusableChildAdd(a)}},activateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();a.set({tabindex:this.activeChildTabIndex})},deactivateFocusableContainerEl:function(a){a=a||this.getFocusableContainerEl();a.set({tabindex:this.inactiveChildTabIndex})},doFocusableChildAdd:function(a){if(a.focusable){a.focusableContainer=this;this.deactivateFocusable(a)}},onFocusableChildRemove:function(a){a.focusableContainer=null;if(this.enableFocusableContainer){return this.doFocusableChildRemove(a)}},doFocusableChildRemove:function(a){if(a===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);this.mousedownTimestamp=a===this?Ext.Date.now():0;if(a===this||!a.getFocusEl().contains(b)){c.preventDefault()}},onFocusEnter:function(c){var a=this,b=c.toComponent,d=a.mousedownTimestamp,h=50,g;if(!a.enableFocusableContainer){return null}a.mousedownTimestamp=0;if(b===a){if(!d||Ext.Date.now()-d>h){g=a.initDefaultFocusable();if(g){a.deactivateFocusableContainerEl();g.focus()}}}else{a.deactivateFocusableContainerEl()}return b},onFocusLeave:function(c){var b=this,a=b.lastFocusedChild;if(!b.enableFocusableContainer){return}if(!b.isDestroyed){b.clearFocusables();if(a){b.activateFocusable(a)}else{b.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;a.clearFocusables();a.activateFocusable(b);if(b.needArrowKeys){a.guardFocusableChild(b)}},guardFocusableChild:function(d){var c=this,a=c.activeChildTabIndex,b;b=c.findNextFocusableChild(d,-1);if(b){b.setTabIndex(a)}b=c.findNextFocusableChild(d,1);if(b){b.setTabIndex(a)}},afterFocusableChildFocus:function(a){this.lastFocusedChild=a},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,onFocusableChildEnable:Ext.privateFn,onFocusableChildDisable:Ext.privateFn,onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn}},0,0,0,0,0,0,[Ext.util,"FocusableContainer"],0));Ext.define("Ext.rtl.util.FocusableContainer",{override:"Ext.util.FocusableContainer",privates:{moveChildFocus:function(c,a){var b=this.getInherited().rtl?!a:a;return arguments.callee.$previous.call(this,c,b)}}});(Ext.cmd.derive("Ext.toolbar.Toolbar",Ext.container.Container,{alternateClassName:"Ext.Toolbar",isToolbar:true,baseCls:"x-toolbar",ariaRole:"toolbar",defaultType:"button",layout:undefined,vertical:undefined,enableOverflow:false,overflowHandler:null,defaultButtonUI:"default-toolbar",defaultFieldUI:"default",defaultFooterButtonUI:"default",defaultFooterFieldUI:"default",trackMenus:true,itemCls:"x-toolbar-item",statics:{shortcuts:{"-":"tbseparator"," ":"tbspacer"},shortcutsHV:{0:{"->":{xtype:"tbfill",height:0}},1:{"->":{xtype:"tbfill",width:0}}}},initComponent:function(){var c=this,b=c.layout,a=c.vertical;if(a===undefined){c.vertical=a=c.dock==="right"||c.dock==="left"}c.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:a?"vbox":"hbox",align:a?"stretchmax":"middle"});if(c.overflowHandler){b.overflowHandler=c.overflowHandler}else{if(c.enableOverflow){b.overflowHandler="menu"}}if(a){c.addClsWithUI("vertical")}if(c.ui==="footer"){c.ignoreBorderManagement=true}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(a){var e=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),d=e.layout,c;if(a&&(e.enableOverflow||(e.overflowHandler==="menu"))){c=d.overflowHandler;if(c&&c.menu){b=b.concat(c.menu.getRefItems(a))}}return b},lookupComponent:function(e){var d=arguments,a,b;if(typeof e==="string"){b=Ext.toolbar.Toolbar;a=b.shortcutsHV[this.vertical?1:0][e]||b.shortcuts[e];if(typeof a==="string"){e={xtype:a}}else{if(a){e=Ext.apply({},a)}else{e={xtype:"tbtext",text:e}}}this.applyDefaults(e);d=[e]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(b){var c=this,d=c.ui==="footer",a=d?c.defaultFooterButtonUI:c.defaultButtonUI;if(b.isSegmentedButton){if(b.getDefaultUI()==="default"&&!b.config.hasOwnProperty("defaultUI")){b.setDefaultUI(a)}}else{if(b.ui==="default"&&!b.hasOwnProperty("ui")){if(b.isButton){b.ui=a}else{if(b.isFormField){b.ui=d?c.defaultFooterFieldUI:c.defaultFieldUI}}}}if(b instanceof Ext.toolbar.Separator){b.setUI(c.vertical?"vertical":"horizontal")}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(a){Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(a)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,true)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(c,a){var b=this;if(b.trackMenus&&c.menu){c[a?"un":"on"]({mouseover:b.onButtonOver,menushow:b.onButtonMenuShow,menuhide:b.onButtonMenuHide,scope:b})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(b,c){var a=this.activeMenuBtn;if(a&&a!==b){a.hideMenu();b.focus();b.showMenu(c);this.activeMenuBtn=b}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,["toolbar"],["component","box","container","toolbar"],{component:true,box:true,container:true,toolbar:true},["widget.toolbar"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,"Toolbar",Ext,"Toolbar"],0));(Ext.cmd.derive("Ext.dd.DragDrop",Ext.Base,{constructor:function(c,a,b){if(c){this.init(c,a,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},moveOnly:false,unlock:function(){this.locked=false},isTarget:true,padding:null,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,triggerEvent:"mousedown",b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(a,b){},b4DragOver:function(a){},onDragOver:function(a,b){},b4DragOut:function(a){},onDragOut:function(a,b){},b4DragDrop:function(a){},onDragDrop:function(a,b){},onInvalidDrop:function(a){},b4EndDrag:function(a){},endDrag:function(a){},b4MouseDown:function(a){},onMouseDown:function(a){},onMouseUp:function(a){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(e,b,l){if(Ext.isNumber(b)){b={left:b,right:b,top:b,bottom:b}}b=b||this.defaultPadding;var h=Ext.get(this.getEl()).getBox(),m=Ext.get(e),k=m.getScroll(),g,i=m.dom,j,d,a;if(i===document.body){g={x:k.left,y:k.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else{j=m.getXY();g={x:j[0],y:j[1],width:i.clientWidth,height:i.clientHeight}}d=h.y-g.y;a=h.x-g.x;this.resetConstraints();this.setXConstraint(a-(b.left||0),g.width-a-h.width-(b.right||0),this.xTickSize);this.setYConstraint(d-(b.top||0),g.height-d-h.height-(b.bottom||0),this.yTickSize)},getEl:function(){if(!this._domRef){this._domRef=Ext.getDom(this.id)}return this._domRef},getDragEl:function(){return Ext.getDom(this.dragElId)},init:function(d,a,b){var c=this;c.el=c.el||Ext.get(d);c.initTarget(d,a,b);Ext.get(c.id).on(c.triggerEvent,c.handleMouseDown,c);if(Ext.supports.Touch&&c.triggerEvent==="longpress"){Ext.get(c.id).swallowEvent("contextmenu",true)}},initTarget:function(c,a,b){this.config=b||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof c!=="string"){c=Ext.id(c)}this.id=c;this.addToGroup((a)?a:"default");this.handleElId=c;this.setDragElId(c);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig();this.handleOnAvailable()},applyConfig:function(){this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(c,a,d,b){if(!a&&0!==a){this.padding=[c,c,c,c]}else{if(!d&&0!==d){this.padding=[c,a,c,a]}else{this.padding=[c,a,d,b]}}},setInitPosition:function(d,c){var e=this.getEl(),b,a,g;if(!this.DDMInstance.verifyEl(e)){return}b=d||0;a=c||0;g=Ext.fly(e).getXY();this.initPageX=g[0]-b;this.initPageY=g[1]-a;this.lastPageX=g[0];this.lastPageY=g[1];this.setStartPosition(g)},setStartPosition:function(b){var a=b||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=a[0];this.startPageY=a[1]},addToGroup:function(a){this.groups[a]=true;this.DDMInstance.regDragDrop(this,a)},removeFromGroup:function(a){if(this.groups[a]){delete this.groups[a]}this.DDMInstance.removeDDFromGroup(this,a)},setDragElId:function(a){this.dragElId=a},setHandleElId:function(a){if(typeof a!=="string"){a=Ext.id(a)}this.handleElId=a;this.DDMInstance.regHandle(this.id,a)},setOuterHandleElId:function(a){if(typeof a!=="string"){a=Ext.id(a)}Ext.get(a).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(a);this.hasOuterHandles=true},unreg:function(){var b=this,a;if(b._domRef){a=Ext.fly(b.id);if(a){a.un(b.triggerEvent,b.handleMouseDown,b)}}b._domRef=null;b.DDMInstance._remove(b,b.autoGroup)},destroy:function(){this.unreg();this.isDestroyed=true},isLocked:function(){return(this.DDMInstance.isLocked()||this.locked)},handleMouseDown:function(c,b){var a=this;if((a.primaryButtonOnly&&c.button)||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(c.getPoint(),a)){if(a.clickValidator(c)){a.setStartPosition();a.b4MouseDown(c);a.onMouseDown(c);a.DDMInstance.handleMouseDown(c,a);a.DDMInstance.stopEvent(c)}}},clickValidator:function(b){var a=b.getTarget();return(this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id)))},addInvalidHandleType:function(a){var b=a.toUpperCase();this.invalidHandleTypes[b]=b},addInvalidHandleId:function(a){if(typeof a!=="string"){a=Ext.id(a)}this.invalidHandleIds[a]=a},addInvalidHandleClass:function(a){this.invalidHandleClasses.push(a)},removeInvalidHandleType:function(a){var b=a.toUpperCase();delete this.invalidHandleTypes[b]},removeInvalidHandleId:function(a){if(typeof a!=="string"){a=Ext.id(a)}delete this.invalidHandleIds[a]},removeInvalidHandleClass:function(b){var d=this.invalidHandleClasses,a=d.length,c;for(c=0;c<a;++c){if(d[c]===b){delete d[c]}}},isValidHandleChild:function(d){var c=true,h,b,a;try{h=d.nodeName.toUpperCase()}catch(g){h=d.nodeName}c=c&&!this.invalidHandleTypes[h];c=c&&!this.invalidHandleIds[d.id];for(b=0,a=this.invalidHandleClasses.length;c&&b<a;++b){c=!Ext.fly(d).hasCls(this.invalidHandleClasses[b])}return c},setXTicks:function(d,a){this.xTicks=[];this.xTickSize=a;var c={},b;for(b=this.initPageX;b>=this.minX;b=b-a){if(!c[b]){this.xTicks[this.xTicks.length]=b;c[b]=true}}for(b=this.initPageX;b<=this.maxX;b=b+a){if(!c[b]){this.xTicks[this.xTicks.length]=b;c[b]=true}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,a){this.yTicks=[];this.yTickSize=a;var c={},b;for(b=this.initPageY;b>=this.minY;b=b-a){if(!c[b]){this.yTicks[this.yTicks.length]=b;c[b]=true}}for(b=this.initPageY;b<=this.maxY;b=b+a){if(!c[b]){this.yTicks[this.yTicks.length]=b;c[b]=true}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(c,b,a){this.leftConstraint=c;this.rightConstraint=b;this.minX=this.initPageX-c;this.maxX=this.initPageX+b;if(a){this.setXTicks(this.initPageX,a)}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(a,c,b){this.topConstraint=a;this.bottomConstraint=c;this.minY=this.initPageY-a;this.maxY=this.initPageY+c;if(b){this.setYTicks(this.initPageY,b)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var b=(this.maintainOffset)?this.lastPageX-this.initPageX:0,a=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(b,a)}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(h,d){if(!d){return h}else{if(d[0]>=h){return d[0]}else{var b,a,c,g,e;for(b=0,a=d.length;b<a;++b){c=b+1;if(d[c]&&d[c]>=h){g=h-d[b];e=d[c]-h;return(e>g)?d[b]:d[c]}}return d[d.length-1]}}},toString:function(){return("DragDrop "+this.id)}},3,0,0,0,0,0,[Ext.dd,"DragDrop"],0));(Ext.cmd.derive("Ext.dd.DD",Ext.dd.DragDrop,{constructor:function(c,a,b){if(c){this.init(c,a,b)}},scroll:true,autoOffset:function(c,b){var a=c-this.startPageX,d=b-this.startPageY;this.setDelta(a,d)},setDelta:function(b,a){this.deltaX=b;this.deltaY=a},setDragElPos:function(c,b){var a=this.getDragEl();this.alignElWithMouse(a,c,b)},alignElWithMouse:function(b,e,c){var g=this.getTargetCoord(e,c),d=b.dom?b:Ext.fly(b,"_dd"),l=d.getSize(),i=Ext.Element,j,a,k,h;if(!this.deltaSetXY){j=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};a=[Math.max(0,Math.min(g.x,j.width-l.width)),Math.max(0,Math.min(g.y,j.height-l.height))];d.setXY(a);k=this.getLocalX(d);h=d.getLocalY();this.deltaSetXY=[k-g.x,h-g.y]}else{j=this.cachedViewportSize;this.setLocalXY(d,Math.max(0,Math.min(g.x+this.deltaSetXY[0],j.width-l.width)),Math.max(0,Math.min(g.y+this.deltaSetXY[1],j.height-l.height)))}this.cachePosition(g.x,g.y);this.autoScroll(g.x,g.y,b.offsetHeight,b.offsetWidth);return g},cachePosition:function(b,a){if(b){this.lastPageX=b;this.lastPageY=a}else{var c=Ext.fly(this.getEl()).getXY();this.lastPageX=c[0];this.lastPageY=c[1]}},autoScroll:function(l,k,e,m){if(this.scroll){var n=Ext.Element.getViewportHeight(),b=Ext.Element.getViewportWidth(),p=this.DDMInstance.getScrollTop(),d=this.DDMInstance.getScrollLeft(),j=e+k,o=m+l,i=(n+p-k-this.deltaY),g=(b+d-l-this.deltaX),c=40,a=(document.all)?80:30;if(j>n&&i<c){window.scrollTo(d,p+a)}if(k<p&&p>0&&k-p<c){window.scrollTo(d,p-a)}if(o>b&&g<c){window.scrollTo(d+a,p)}if(l<d&&d>0&&l-d<c){window.scrollTo(d-a,p)}}},getTargetCoord:function(c,b){var a=c-this.deltaX,d=b-this.deltaY;if(this.constrainX){if(a<this.minX){a=this.minX}if(a>this.maxX){a=this.maxX}}if(this.constrainY){if(d<this.minY){d=this.minY}if(d>this.maxY){d=this.maxY}}a=this.getTick(a,this.xTicks);d=this.getTick(d,this.yTicks);return{x:a,y:d}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(b){var a=b.getXY();this.autoOffset(a[0],a[1])},b4Drag:function(b){var a=b.getXY();this.setDragElPos(a[0],a[1])},toString:function(){return("DD "+this.id)},getLocalX:function(a){return a.getLocalX()},setLocalXY:function(b,a,c){b.setLocalXY(a,c)}},3,0,0,0,0,0,[Ext.dd,"DD"],0));Ext.define("Ext.rtl.dd.DD",{override:"Ext.dd.DD",getLocalX:function(a){return Ext.rootInheritedState.rtl?a.rtlGetLocalX():a.getLocalX()},setLocalXY:function(b,a,c){if(Ext.rootInheritedState.rtl){b.rtlSetLocalXY(a,c)}else{b.setLocalXY(a,c)}}});(Ext.cmd.derive("Ext.dd.DDProxy",Ext.dd.DD,{statics:{dragElId:"ygddfdiv"},constructor:function(c,a,b){if(c){this.init(c,a,b);this.initFrame()}},resizeFrame:true,centerFrame:false,createFrame:function(){var b=this,a=document.body,d,c;if(!a||!a.firstChild){Ext.defer(function(){b.createFrame()},50);return}d=this.getDragEl();if(!d){d=document.createElement("div");d.id=this.dragElId;d.setAttribute("role","presentation");c=d.style;c.position="absolute";c.visibility="hidden";c.cursor="move";c.border="2px solid #aaa";c.zIndex=999;a.insertBefore(d,a.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(e,d){var c=this,a=c.getDragEl(),b=a.style;c._resizeProxy();if(c.centerFrame){c.setDelta(Math.round(parseInt(b.width,10)/2),Math.round(parseInt(b.height,10)/2))}c.setDragElPos(e,d);Ext.fly(a).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(c){var b=c.getXY(),a=b[0],d=b[1];this.autoOffset(a,d);this.setDragElPos(a,d)},b4StartDrag:function(a,b){this.showFrame(a,b)},b4EndDrag:function(a){Ext.fly(this.getDragEl()).hide()},endDrag:function(c){var b=this.getEl(),a=this.getDragEl();a.style.visibility="";this.beforeMove();b.style.visibility="hidden";Ext.dd.DDM.moveToEl(b,a);a.style.visibility="hidden";b.style.visibility="";this.afterDrag()},beforeMove:function(){},afterDrag:function(){},toString:function(){return("DDProxy "+this.id)}},3,0,0,0,0,0,[Ext.dd,"DDProxy"],0));(Ext.cmd.derive("Ext.dd.StatusProxy",Ext.Component,{animRepair:false,childEls:["ghost"],renderTpl:['<div class="x-dd-drop-icon" role="presentation"></div><div id="{id}-ghost" data-ref="ghost" class="x-dd-drag-ghost" role="presentation"></div>'],repairCls:"x-dd-drag-repair",ariaRole:"presentation",constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:"visibility",hidden:true,floating:true,id:b.id||Ext.id(),cls:"x-dd-drag-proxy "+this.dropNotAllowed,shadow:a.shadow||false,renderTo:Ext.getDetachedBody()});Ext.Component.prototype.constructor.apply(this,arguments);this.dropStatus=this.dropNotAllowed},dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",setStatus:function(a){a=a||this.dropNotAllowed;if(this.dropStatus!==a){this.el.replaceCls(this.dropStatus,a);this.dropStatus=a}},reset:function(b){var c=this,a="x-dd-drag-proxy ";c.el.replaceCls(a+c.dropAllowed,a+c.dropNotAllowed);c.dropStatus=c.dropNotAllowed;if(b){c.ghost.setHtml("")}},update:function(a){if(typeof a==="string"){this.ghost.setHtml(a)}else{this.ghost.setHtml("");a.style.margin="0";this.ghost.dom.appendChild(a)}var b=this.ghost.dom.firstChild;if(b){Ext.fly(b).setStyle("float","none")}},getGhost:function(){return this.ghost},hide:function(a){Ext.Component.prototype.hide.call(this);if(a){this.reset(true)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(c,d,a){var b=this;b.callback=d;b.scope=a;if(c&&b.animRepair!==false){b.el.addCls(b.repairCls);b.el.setUnderlaysVisible(false);b.anim=b.el.animate({duration:b.repairDuration||500,easing:"ease-out",to:{x:c[0],y:c[1]},stopAnimation:true,callback:b.afterRepair,scope:b})}else{b.afterRepair()}},afterRepair:function(){var a=this;a.hide(true);a.el.removeCls(a.repairCls);if(typeof a.callback==="function"){a.callback.call(a.scope||a)}delete a.callback;delete a.scope}},1,0,["component","box"],{component:true,box:true},0,0,[Ext.dd,"StatusProxy"],0));(Ext.cmd.derive("Ext.dd.DragSource",Ext.dd.DDProxy,{dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",animRepair:true,repairHighlightColor:"c3daf9",constructor:function(b,a){this.el=Ext.get(b);if(!this.dragData){this.dragData={}}Ext.apply(this,a);if(!this.proxy){this.proxy=new Ext.dd.StatusProxy({id:this.el.id+"-drag-status-proxy",animRepair:this.animRepair})}Ext.dd.DDProxy.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{dragElId:this.proxy.id,resizeFrame:false,isTarget:false,scroll:this.scroll===true});this.dragging=false},getDragData:function(a){return this.dragData},onDragEnter:function(c,d){var b=Ext.dd.DragDropManager.getDDById(d),a;this.cachedTarget=b;if(this.beforeDragEnter(b,c,d)!==false){if(b.isNotifyTarget){a=b.notifyEnter(this,c,this.dragData);this.proxy.setStatus(a)}else{this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(b,c,d)}}},beforeDragEnter:function(b,a,c){return true},onDragOver:function(c,d){var b=this.cachedTarget||Ext.dd.DragDropManager.getDDById(d),a;if(this.beforeDragOver(b,c,d)!==false){if(b.isNotifyTarget){a=b.notifyOver(this,c,this.dragData);this.proxy.setStatus(a)}if(this.afterDragOver){this.afterDragOver(b,c,d)}}},beforeDragOver:function(b,a,c){return true},onDragOut:function(b,c){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(c);if(this.beforeDragOut(a,b,c)!==false){if(a.isNotifyTarget){a.notifyOut(this,b,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,b,c)}}this.cachedTarget=null},beforeDragOut:function(b,a,c){return true},onDragDrop:function(b,c){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(c);if(this.beforeDragDrop(a,b,c)!==false){if(a.isNotifyTarget){if(a.notifyDrop(this,b,this.dragData)!==false){this.onValidDrop(a,b,c)}else{this.onInvalidDrop(a,b,c)}}else{this.onValidDrop(a,b,c)}if(this.afterDragDrop){this.afterDragDrop(a,b,c)}}delete this.cachedTarget},beforeDragDrop:function(b,a,c){return true},onValidDrop:function(b,a,c){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(b,a,c)}},getRepairXY:function(b,a){return this.el.getXY()},onInvalidDrop:function(c,b,d){var a=this;if(!b){b=c;c=null;d=b.getTarget().id}if(a.beforeInvalidDrop(c,b,d)!==false){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}a.proxy.repair(a.getRepairXY(b,a.dragData),a.afterRepair,a);if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}},afterRepair:function(){var a=this;if(Ext.enableFx){a.el.highlight(a.repairHighlightColor)}a.dragging=false},beforeInvalidDrop:function(b,a,c){return true},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==false){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return true},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(true);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=false;this.dragging=true;this.proxy.update("");this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(a,c){var b=this.el.dom.cloneNode(true);b.id=Ext.id();this.proxy.update(b);this.onStartDrag(a,c);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(a){},endDrag:function(a){this.onEndDrag(this.dragData,a)},onEndDrag:function(a,b){},autoOffset:function(a,b){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},1,0,0,0,0,0,[Ext.dd,"DragSource"],0));(Ext.cmd.derive("Ext.panel.Proxy",Ext.Base,{alternateClassName:"Ext.dd.PanelProxy",moveOnDrag:true,constructor:function(a,b){var c=this;c.panel=a;c.id=c.panel.id+"-ddproxy";Ext.apply(c,b)},insertProxy:true,setStatus:Ext.emptyFn,reset:Ext.emptyFn,update:Ext.emptyFn,stop:Ext.emptyFn,sync:Ext.emptyFn,getEl:function(){return this.ghost.el},getGhost:function(){return this.ghost},getProxy:function(){return this.proxy},hide:function(){var a=this;if(a.ghost){if(a.proxy){a.proxy.destroy();delete a.proxy}a.panel.unghost(null,a.moveOnDrag);delete a.ghost}},show:function(){var b=this,a;if(!b.ghost){a=b.panel.getSize();b.panel.el.setVisibilityMode(Ext.Element.DISPLAY);b.ghost=b.panel.ghost();if(b.insertProxy){b.proxy=b.panel.el.insertSibling({role:"presentation",cls:"x-panel-dd-spacer"});b.proxy.setSize(a)}}},repair:function(b,c,a){this.hide();Ext.callback(c,a||this)},moveProxy:function(a,b){if(this.proxy){a.insertBefore(this.proxy.dom,b)}}},1,0,0,0,0,0,[Ext.panel,"Proxy",Ext.dd,"PanelProxy"],0));(Ext.cmd.derive("Ext.panel.DD",Ext.dd.DragSource,{constructor:function(b,a){var c=this;c.panel=b;c.dragData={panel:b};c.panelProxy=new Ext.panel.Proxy(b,a);c.proxy=c.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,a);c.setupEl(b)},setupEl:function(a){var c=this,d=a.header,b=a.body;if(d){c.setHandleElId(d.id);b=d.el}if(b){b.setStyle("cursor","move");c.scroll=false}else{a.on("boxready",c.setupEl,c,{single:true})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(c){var b=c.getXY(),a=b[0],d=b[1];this.autoOffset(a,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return true},createFrame:Ext.emptyFn,getDragEl:function(b){var a=this.panelProxy.ghost;if(a){return a.el.dom}},endDrag:function(a){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(a,b){a-=this.startPageX;b-=this.startPageY;this.setDelta(a,b)},onInvalidDrop:function(c,b,d){var a=this;if(a.beforeInvalidDrop(c,b,d)!==false){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,d)}}}},1,0,0,0,0,0,[Ext.panel,"DD"],0));(Ext.cmd.derive("Ext.layout.component.Dock",Ext.layout.component.Component,{alternateClassName:"Ext.layout.component.AbstractDock",type:"dock",horzAxisProps:{name:"horz",oppositeName:"vert",dockBegin:"left",dockEnd:"right",horizontal:true,marginBegin:"margin-left",maxSize:"maxWidth",minSize:"minWidth",pos:"x",setSize:"setWidth",shrinkWrapDock:"shrinkWrapDockWidth",size:"width",sizeModel:"widthModel"},vertAxisProps:{name:"vert",oppositeName:"horz",dockBegin:"top",dockEnd:"bottom",horizontal:false,marginBegin:"margin-top",maxSize:"maxHeight",minSize:"minHeight",pos:"y",setSize:"setHeight",shrinkWrapDock:"shrinkWrapDockHeight",size:"height",sizeModel:"heightModel"},initializedBorders:-1,horizontalCollapsePolicy:{width:true,x:true},verticalCollapsePolicy:{height:true,y:true},finishRender:function(){var b=this,c,a;Ext.layout.component.Component.prototype.finishRender.call(this);c=b.getRenderTarget();a=b.getDockedItems();b.finishRenderItems(c,a)},isItemBoxParent:function(a){return true},isItemShrinkWrap:function(a){return true},noBorderClasses:["x-docked-noborder-top","x-docked-noborder-right","x-docked-noborder-bottom","x-docked-noborder-left"],noBorderClassesSides:{top:"x-docked-noborder-top",right:"x-docked-noborder-right",bottom:"x-docked-noborder-bottom",left:"x-docked-noborder-left"},borderWidthProps:{top:"border-top-width",right:"border-right-width",bottom:"border-bottom-width",left:"border-left-width"},_itemCls:"x-docked",handleItemBorders:function(){var m=this,a=m.owner,l,q,h=m.lastDockedItems,g=m.borders,b=a.dockedItems.generation,c=m.noBorderClassesSides,n=m.borderWidthProps,e,k,p,o,j,d=m.collapsed;if(m.initializedBorders===b||(a.border&&!a.manageBodyBorders)||(a.collapsed&&a.collapseMode==="mini")){return}m.initializedBorders=b;m.collapsed=false;m.lastDockedItems=q=m.getLayoutItems();m.collapsed=d;l={top:[],right:[],bottom:[],left:[]};for(e=0,k=q.length;e<k;e++){p=q[e];o=p.dock;if(p.ignoreBorderManagement){continue}if(!l[o].satisfied){l[o].push(p);l[o].satisfied=true}if(!l.top.satisfied&&o!=="bottom"){l.top.push(p)}if(!l.right.satisfied&&o!=="left"){l.right.push(p)}if(!l.bottom.satisfied&&o!=="top"){l.bottom.push(p)}if(!l.left.satisfied&&o!=="right"){l.left.push(p)}}if(h){for(e=0,k=h.length;e<k;e++){p=h[e];if(!p.isDestroyed&&!p.ignoreBorderManagement&&!a.manageBodyBorders){p.removeCls(m.noBorderClasses)}}}if(g){for(j in g){if(a.manageBodyBorders&&g[j].satisfied){a.setBodyStyle(n[j],"")}}}for(j in l){k=l[j].length;if(!a.manageBodyBorders){for(e=0;e<k;e++){l[j][e].addCls(c[j])}if((!l[j].satisfied&&!a.bodyBorder)||a.bodyBorder===false){a.addBodyCls(c[j])}else{a.removeBodyCls(c[j])}}else{if(l[j].satisfied){a.setBodyStyle(n[j],"1px")}}}m.borders=l},beforeLayoutCycle:function(g){var c=this,b=c.owner,h=c.sizeModels.shrinkWrap,e=b.shrinkWrapDock,d,a;if(b.collapsed){if(b.collapsedVertical()){a=true;g.measureDimensions=1}else{d=true;g.measureDimensions=2}}g.collapsedVert=a;g.collapsedHorz=d;if(a){g.heightModel=h}else{if(d){g.widthModel=h}}e=e===true?3:(e||0);g.shrinkWrapDockHeight=(e&1)&&g.heightModel.shrinkWrap;g.shrinkWrapDockWidth=(e&2)&&g.widthModel.shrinkWrap},beginLayout:function(d){var l=this,c=l.owner,p=l.getLayoutItems(),b=d.context,g=p.length,k=l.lastCollapsedState,m,j,o,a,e,h,n;Ext.layout.component.Component.prototype.beginLayout.apply(this,arguments);h=c.getCollapsed();if(h!==k&&k!==undefined){if(l.owner.collapsed){d.isCollapsingOrExpanding=1;c.addClsWithUI(c.collapsedCls)}else{d.isCollapsingOrExpanding=2;c.removeClsWithUI(c.collapsedCls);d.lastCollapsedState=l.lastCollapsedState}}l.lastCollapsedState=h;d.dockedItems=m=[];for(j=0;j<g;j++){o=p[j];if(o.rendered){n=o.dock;a=b.getCmp(o);a.dockedAt={x:0,y:0};a.offsets=e=Ext.Element.parseBox(o.offsets||0);a.horizontal=n==="top"||n==="bottom";e.width=e.left+e.right;e.height=e.top+e.bottom;m.push(a)}}d.bodyContext=d.getEl("body")},beginLayoutCycle:function(b){var e=this,l=b.dockedItems,d=l.length,a=e.owner,g=a.frameBody,k=e.lastHeightModel,c,j,h;Ext.layout.component.Component.prototype.beginLayoutCycle.apply(this,arguments);if(e.owner.manageHeight){if(e.lastBodyDisplay){a.body.dom.style.display=e.lastBodyDisplay=""}}else{if(e.lastBodyDisplay!=="inline-block"){a.body.dom.style.display=e.lastBodyDisplay="inline-block"}if(k&&k.shrinkWrap&&!b.heightModel.shrinkWrap){a.body.dom.style.marginBottom=""}}if(b.widthModel.auto){if(b.widthModel.shrinkWrap){a.el.setWidth(null)}a.body.setWidth(null);if(g){g.setWidth(null)}}if(b.heightModel.auto){a.body.setHeight(null);if(g){g.setHeight(null)}}if(b.collapsedVert){b.setContentHeight(0)}else{if(b.collapsedHorz){b.setContentWidth(0)}}for(c=0;c<d;c++){j=l[c].target;h=j.dock;if(h==="right"){j.setLocalX(0)}else{if(h!=="left"){continue}}}},calculate:function(d){var l=this,c=l.measureAutoDimensions(d,d.measureDimensions),b=d.state,k=b.horzDone,e=b.vertDone,g=d.bodyContext,j,a,i,h,m;d.borderInfo||d.getBorderInfo();d.paddingInfo||d.getPaddingInfo();d.frameInfo||d.getFrameInfo();g.borderInfo||g.getBorderInfo();g.paddingInfo||g.getPaddingInfo();if(!d.frameBorder){if(!(j=d.framing)){d.frameBorder=d.borderInfo;d.framePadding=d.paddingInfo}else{d.frameBorder=j.border;d.framePadding=j.padding}}a=!k&&l.createAxis(d,c.contentWidth,d.widthModel,l.horzAxisProps,d.collapsedHorz);i=!e&&l.createAxis(d,c.contentHeight,d.heightModel,l.vertAxisProps,d.collapsedVert);for(h=0,m=d.dockedItems.length;m--;++h){if(a){l.dockChild(d,a,m,h)}if(i){l.dockChild(d,i,m,h)}}if(a&&l.finishAxis(d,a)){b.horzDone=k=a}if(i&&l.finishAxis(d,i)){b.vertDone=e=i}if(k&&e&&l.finishConstraints(d,k,e)){l.finishPositions(d,k,e)}else{l.done=false}},createAxis:function(p,j,e,m,d){var u=this,t=0,b=u.owner,g=b[m.maxSize],c=b[m.minSize]||0,n=m.dockBegin,i=m.dockEnd,r=m.pos,l=m.size,k=g!=null,o=e.shrinkWrap,a,s,q,h;if(o){if(d){h=0}else{a=p.bodyContext;h=j+a.borderInfo[l]}}else{s=p.frameBorder;q=p.framePadding;t=s[n]+q[n];h=p.getProp(l)-(s[i]+q[i])}return{shrinkWrap:e.shrinkWrap,sizeModel:e,initialBegin:t,begin:t,end:h,collapsed:d,horizontal:m.horizontal,ignoreFrameBegin:null,ignoreFrameEnd:null,initialSize:h-t,maxChildSize:0,hasMinMaxConstraints:(c||k)&&e.shrinkWrap,minSize:c,maxSize:k?g:1000000000,bodyPosProp:u.owner.manageHeight?r:m.marginBegin,dockBegin:n,dockEnd:i,posProp:r,sizeProp:l,setSize:m.setSize,shrinkWrapDock:p[m.shrinkWrapDock],sizeModelName:m.sizeModel,dockedPixelsEnd:0}},dockChild:function(b,c,l,e){var g=this,a=b.dockedItems[c.shrinkWrap?l:e],i=a.target,j=i.dock,d=c.sizeProp,h,k;if(i.ignoreParentFrame&&b.isCollapsingOrExpanding){a.clearMarginCache()}if(!a.marginInfo){a.getMarginInfo()}if(j===c.dockBegin){if(c.shrinkWrap){h=g.dockOutwardBegin(b,a,i,c)}else{h=g.dockInwardBegin(b,a,i,c)}}else{if(j===c.dockEnd){if(c.shrinkWrap){h=g.dockOutwardEnd(b,a,i,c)}else{h=g.dockInwardEnd(b,a,i,c)}}else{if(c.shrinkWrapDock){k=a.getProp(d)+a.marginInfo[d];c.maxChildSize=Math.max(c.maxChildSize,k);h=0}else{h=g.dockStretch(b,a,i,c)}}}a.dockedAt[c.posProp]=h},dockInwardBegin:function(b,a,j,d){var g=d.begin,e=d.sizeProp,c=j.ignoreParentFrame,h,k,i;if(c){d.ignoreFrameBegin=a;i=j.dock;h=b.frameBorder[i];g-=h+b.framePadding[i]}if(!j.overlay){k=a.getProp(e)+a.marginInfo[e];d.begin+=k;if(c){d.begin-=h}}return g},dockInwardEnd:function(e,d,c,b){var i=b.sizeProp,a=d.getProp(i)+d.marginInfo[i],h=b.end-a,g;if(!c.overlay){b.end=h}if(c.ignoreParentFrame){b.ignoreFrameEnd=d;g=e.frameBorder[c.dock];h+=g+e.framePadding[c.dock];b.end+=g}return h},dockOutwardBegin:function(e,d,c,b){var h=b.begin,g=b.sizeProp,a;if(b.collapsed){b.ignoreFrameBegin=b.ignoreFrameEnd=d}else{if(c.ignoreParentFrame){b.ignoreFrameBegin=d}}if(!c.overlay){a=d.getProp(g)+d.marginInfo[g];h-=a;b.begin=h}return h},dockOutwardEnd:function(e,d,c,b){var h=b.end,g=b.sizeProp,a;a=d.getProp(g)+d.marginInfo[g];if(b.collapsed){b.ignoreFrameBegin=b.ignoreFrameEnd=d}else{if(c.ignoreParentFrame){b.ignoreFrameEnd=d}}if(!c.overlay){b.end=h+a;b.dockedPixelsEnd+=a}return h},dockStretch:function(c,b,m,d){var n=m.dock,j=d.sizeProp,a=n==="top"||n==="bottom",i=c.frameBorder,e=b.offsets,l=c.framePadding,h=a?"right":"bottom",p=a?"left":"top",k=d.begin+e[p],g,o;if(m.stretch!==false){o=d.end-k-e[h];if(m.ignoreParentFrame){k-=l[p]+i[p];o+=l[j]+i[j]}g=b.marginInfo;o-=g[j];b[d.setSize](o)}return k},finishAxis:function(m,e){if(isNaN(e.maxChildSize)){return false}var d=e.begin,p=e.end-d,h=e.collapsed,w=e.setSize,k=e.dockBegin,u=e.dockEnd,o=m.framePadding,r=m.frameBorder,g=r[k],s=m.framing,n=s&&s[k],b=h?0:o[k],j=e.sizeProp,t=e.ignoreFrameBegin,q=e.ignoreFrameEnd,a=m.bodyContext,l=Math.max(g+b-n,0),c,x,v,i;if(e.shrinkWrap){x=e.initialSize;if(s){v=-d+g+b;c=v-n-l}else{c=-d;v=c+b}if(!h){p+=o[j]}if(t){v-=g;c-=g;t.dockedAt[e.posProp]-=b}else{p+=g}if(h){}else{if(q){q.dockedAt[e.posProp]+=o[u]}else{p+=r[u]}}e.size=p;if(!e.horizontal&&!this.owner.manageHeight){i=false}}else{if(s){v=0;c=d-n-l}else{v=-g;c=d-b-g}x=p}e.delta=v;a[w](x,i);a.setProp(e.bodyPosProp,c);return !isNaN(p)},beforeInvalidateShrinkWrapDock:function(c,b){var a=b.axis.sizeModelName;if(!c[a].constrainedMin){c[a]=Ext.layout.SizeModel.calculated}},afterInvalidateShrinkWrapDock:function(d,a){var b=a.axis,c=a.layout,e;if(d[b.sizeModelName].calculated){e=c.dockStretch(a.ownerContext,d,d.target,b);d.setProp(b.posProp,b.delta+e)}},finishConstraints:function(k,c,p){var s=this,r=s.sizeModels,o=c.shrinkWrap,q=p.shrinkWrap,a=s.owner,i,m,n,g,h,l,b,d,e,j;if(o){l=c.size;b=c.collapsed?0:c.minSize;d=c.maxSize;e=c.maxChildSize;j=Math.max(l,e);if(j>d){h=r.constrainedMax;n=d}else{if(j<b){h=r.constrainedMin;n=b}else{if(l<e){h=r.constrainedDock;a.dockConstrainedWidth=n=e}else{n=l}}}}if(q){l=p.size;b=p.collapsed?0:p.minSize;d=p.maxSize;e=p.maxChildSize;j=Math.max(l,e+l-p.initialSize);if(j>d){g=r.constrainedMax;m=d}else{if(j<b){g=r.constrainedMin;m=b}else{if(l<e){g=r.constrainedDock;a.dockConstrainedHeight=m=e}else{if(!k.collapsedVert&&!a.manageHeight){i=false;k.bodyContext.setProp("margin-bottom",p.dockedPixelsEnd)}m=l}}}}if(h||g){if(h&&g&&h.constrainedMax&&g.constrainedByMin){k.invalidate({widthModel:h});return false}if(!k.widthModel.calculatedFromShrinkWrap&&!k.heightModel.calculatedFromShrinkWrap){k.invalidate({widthModel:h,heightModel:g});return false}}else{s.invalidateAxes(k,c,p)}if(o){k.setWidth(n);if(h){k.widthModel=h}}if(q){k.setHeight(m,i);if(g){k.heightModel=g}}return true},invalidateAxes:function(g,a,l){var p=this.beforeInvalidateShrinkWrapDock,b=this.afterInvalidateShrinkWrapDock,e=a.end-a.begin,s=l.initialSize,c=a.shrinkWrapDock&&a.maxChildSize<=e,m=l.shrinkWrapDock&&l.maxChildSize<=s,q,n,k,d,r,o,h,j;if(c||m){if(m){l.begin=l.initialBegin;l.end=l.begin+l.initialSize}q=g.dockedItems;for(k=0,n=q.length;k<n;++k){d=q[k];o=d.horizontal;h=null;if(c&&o){j=a.sizeProp;r=e;h=a}else{if(m&&!o){j=l.sizeProp;r=s;h=l}}if(h){r-=d.getMarginInfo()[j];if(r!==d.props[j]){d.invalidate({before:p,after:b,axis:h,ownerContext:g,layout:this})}}}}},finishPositions:function(d,a,h){var j=d.dockedItems,c=j.length,g=a.delta,e=h.delta,i,b;for(i=0;i<c;++i){b=j[i];b.setProp("x",g+b.dockedAt.x);b.setProp("y",e+b.dockedAt.y)}},finishedLayout:function(b){var a=this,c=b.target;Ext.layout.component.Component.prototype.finishedLayout.apply(this,arguments);if(!b.animatePolicy){if(b.isCollapsingOrExpanding===1){c.afterCollapse(false)}else{if(b.isCollapsingOrExpanding===2){c.afterExpand(false)}}}},getAnimatePolicy:function(c){var b=this,a,d;if(c.isCollapsingOrExpanding===1){a=b.lastCollapsedState}else{if(c.isCollapsingOrExpanding===2){a=c.lastCollapsedState}}if(a==="left"||a==="right"){d=b.horizontalCollapsePolicy}else{if(a==="top"||a==="bottom"){d=b.verticalCollapsePolicy}}return d},getDockedItems:function(c,n){var j=this,e=(c==="visual"),k=e?Ext.ComponentQuery.query("[rendered]",j.owner.dockedItems.items):j.owner.dockedItems.items,h=k&&k.length&&c!==false,b,m,l,g,d,a;if(n==null){l=h&&!e?k.slice():k}else{l=[];for(g=0,a=k.length;g<a;++g){m=k[g].dock;d=(m==="top"||m==="left");if(n?d:!d){l.push(k[g])}}h=h&&l.length}if(h){b=(c=c||"render")==="render";Ext.Array.sort(l,function(o,i){var p,q;if(b&&((p=j.owner.dockOrder[o.dock])!==(q=j.owner.dockOrder[i.dock]))){if(!(p+q)){return p-q}}p=j.getItemWeight(o,c);q=j.getItemWeight(i,c);if((p!==undefined)&&(q!==undefined)){return p-q}return 0})}return l||[]},getItemWeight:function(b,a){var c=b.weight||this.owner.defaultDockWeights[b.dock];return c[a]||c},getLayoutItems:function(){var e=this,b,g,d,c,a;if(e.owner.collapsed){a=e.owner.getCollapsedDockedItems()}else{b=e.getDockedItems("visual");g=b.length;a=[];for(c=0;c<g;c++){d=b[c];if(!d.hidden){a.push(d)}}}return a},measureContentWidth:function(a){var b=a.bodyContext;return b.el.getWidth()-b.getBorderInfo().width},measureContentHeight:function(a){var b=a.bodyContext;return b.el.getHeight()-b.getBorderInfo().height},redoLayout:function(c){var b=this,a=b.owner;if(c.isCollapsingOrExpanding===1){if(a.reExpander){a.reExpander.el.show()}a.addClsWithUI(a.collapsedCls);c.redo(true)}else{if(c.isCollapsingOrExpanding===2){a.removeClsWithUI(a.collapsedCls);c.bodyContext.redo()}}},renderChildren:function(){var b=this,a=b.getDockedItems(),c=b.getRenderTarget();b.handleItemBorders();b.renderItems(a,c)},renderItems:function(k,h){var l=this,c=k.length,a=0,b=0,p=0,m=l.getRenderTarget().dom.childNodes,n=m.length,g,d,e,o;for(g=0,d=0;g<n;g++){e=m[g];if(e.nodeType===1&&Ext.fly(e).hasCls("x-resizable-handle")){break}for(d=0;d<c;d++){o=k[d];if(o.rendered&&o.el.dom===e){break}}if(d===c){p++}}for(;a<c;a++,b++){o=k[a];if(a===b&&(o.dock==="right"||o.dock==="bottom")){b+=p}if(o&&!o.rendered){l.renderItem(o,h,b)}else{if(!l.isValidParent(o,h,b)){l.moveItem(o,h,b)}}}},undoLayout:function(c){var b=this,a=b.owner;if(c.isCollapsingOrExpanding===1){if(a.reExpander){a.reExpander.el.hide()}a.removeClsWithUI(a.collapsedCls);c.undo(true)}else{if(c.isCollapsingOrExpanding===2){a.addClsWithUI(a.collapsedCls);c.bodyContext.undo()}}},sizePolicy:{nostretch:{setsWidth:0,setsHeight:0},horz:{shrinkWrap:{setsWidth:1,setsHeight:0,readsWidth:1},stretch:{setsWidth:1,setsHeight:0}},vert:{shrinkWrap:{setsWidth:0,setsHeight:1,readsHeight:1},stretch:{setsWidth:0,setsHeight:1}},stretchV:{setsWidth:0,setsHeight:1},autoStretchH:{readsWidth:1,setsWidth:1,setsHeight:0},autoStretchV:{readsHeight:1,setsWidth:0,setsHeight:1}},getItemSizePolicy:function(d,g){var c=this,h=c.sizePolicy,e=c.owner.shrinkWrapDock,b,a;if(d.stretch===false){return h.nostretch}b=d.dock;a=(b==="left"||b==="right");e=e===true?3:(e||0);if(a){h=h.vert;e=e&1}else{h=h.horz;e=e&2}if(e){if(!g){g=c.owner.getSizeModel()}if(g[a?"height":"width"].shrinkWrap){return h.shrinkWrap}}return h.stretch},configureItem:function(a,b){Ext.layout.component.Component.prototype.configureItem.apply(this,arguments);a.addCls(this._itemCls);if(!a.ignoreBorderManagement){a.addClsWithUI(this.getDockCls(a.dock))}},getDockCls:function(a){return"docked-"+a},afterRemove:function(a){var b;Ext.layout.component.Component.prototype.afterRemove.apply(this,arguments);a.removeCls(this._itemCls);if(!a.ignoreBorderManagement){a.removeClsWithUI(this.getDockCls(a.dock))}b=a.el.dom;if(!a.destroying&&b){b.parentNode.removeChild(b)}this.childrenChanged=true},borderCollapseMap:{},getBorderCollapseTable:function(){var d=this,g=d.borderCollapseMap,a=d.owner,b=a.baseCls,e=a.ui,c;g=g[b]||(g[b]={});c=g[e];if(!c){b+="-"+e+"-outer-border-";g[e]=c=[0,b+"l",b+"b",b+"bl",b+"r",b+"rl",b+"rb",b+"rbl",b+"t",b+"tl",b+"tb",b+"tbl",b+"tr",b+"trl",b+"trb",b+"trbl"]}return c}},0,0,0,0,["layout.dock"],0,[Ext.layout.component,"Dock",Ext.layout.component,"AbstractDock"],0));Ext.define("Ext.rtl.layout.component.Dock",{override:"Ext.layout.component.Dock",rtlPositions:{top:"top",right:"left",bottom:"bottom",left:"right"},getDockCls:function(a){return"docked-"+(this.owner.getInherited().rtl?this.rtlPositions[a]:a)},getBorderClassTable:function(){var a=this;if(!a.borderTablesInited){a.initBorderTables()}return a.owner.getInherited().rtl?a.noBorderClassTableRtl:a.noBorderClassTableLtr},getBorderCollapseTable:function(){var b=this,a=arguments.callee.$previous.call(this);if(!a.rtl){b.setupBorderTable(a,a.rtl=[])}return b.owner.getInherited().rtl?a.rtl:a},initBorderTables:function(){var b=Ext.layout.component.Dock.prototype,a=b.noBorderClassTable,c=[];b.setupBorderTable(a,c);b.noBorderClassTableLtr=a;b.noBorderClassTableRtl=c;b.borderTablesInited=true},setupBorderTable:function(a,b){b[0]=a[0];b[1]=a[4];b[2]=a[2];b[3]=a[6];b[4]=a[1];b[5]=a[5];b[6]=a[3];b[7]=a[7];b[8]=a[8];b[9]=a[12];b[10]=a[10];b[11]=a[14];b[12]=a[9];b[13]=a[13];b[14]=a[11];b[15]=a[15]}});(Ext.cmd.derive("Ext.util.Memento",Ext.Base,(function(){function d(i,h,j,g){i[g?g+j:j]=h[j]}function c(h,g,i){delete h[i]}function e(k,j,l,i){var g=i?i+l:l,h=k[g];if(h||k.hasOwnProperty(g)){a(j,l,h)}}function a(h,i,g){if(Ext.isDefined(g)){h[i]=g}else{delete h[i]}}function b(h,m,l,i,j){if(m){if(Ext.isArray(i)){var k,g=i.length;for(k=0;k<g;k++){h(m,l,i[k],j)}}else{h(m,l,i,j)}}}return{data:null,target:null,constructor:function(h,g){this.data={};if(h){this.target=h;if(g){this.capture(g)}}},capture:function(g,j,i){var h=this;b(d,h.data||(h.data={}),j||h.target,g,i)},remove:function(g){b(c,this.data,null,g)},restore:function(h,g,j,i){b(e,this.data,j||this.target,h,i);if(g!==false){this.remove(h)}},restoreAll:function(g,k){var i=this,h=k||this.target,j=i.data,l;g=g!==false;for(l in j){if(j.hasOwnProperty(l)){a(h,l,j[l]);if(g){delete j[l]}}}}}}()),1,0,0,0,0,0,[Ext.util,"Memento"],0));(Ext.cmd.derive("Ext.container.DockingContainer",Ext.Base,{isDockingContainer:true,defaultDockWeights:{top:{render:1,visual:1},left:{render:3,visual:5},right:{render:5,visual:7},bottom:{render:7,visual:3}},dockOrder:{top:-1,left:-1,right:1,bottom:1},horizontalDocks:0,addDocked:function(g,k){var j=this,b=j.rendered,c=0,l=j.dockedItems,d=l.getCount(),e,h,m,a;g=j.prepareItems(g);a=g.length;if(b){Ext.suspendLayouts()}if(k===undefined){k=d}else{k=Math.min(k,d)}for(;c<a;c++){m=g[c];m.dock=m.dock||"top";if(m.dock==="left"||m.dock==="right"){j.horizontalDocks++}e=k+c;l.insert(e,m);h=!!m.instancedCmp;delete m.instancedCmp;m.onAdded(j,e,h);delete m.initOwnerCt;if(j.onDockedAdd!==Ext.emptyFn){j.onDockedAdd(m)}if(j.hasListeners.dockedadd){j.fireEvent("dockedadd",j,m,e)}}if(j.rendered){j.updateLayout();Ext.resumeLayouts(true)}return g},destroyDockedItems:function(){var a=this.dockedItems,b;if(a){while((b=a.first())){this.removeDocked(b,true)}}},doRenderDockedItems:function(c,g,h){var e=g.$comp,d=e.componentLayout,b,a;if(d.getDockedItems&&!g.$skipDockedItems){b=d.getDockedItems("render",!h);a=b&&d.getItemsRenderTree(b);if(a){Ext.DomHelper.generateMarkup(a,c)}}},getDockedComponent:function(a){if(Ext.isObject(a)){a=a.getItemId()}return this.dockedItems.get(a)},getDockedItems:function(a,c){var b=this.getComponentLayout().getDockedItems("render",c);if(a&&b.length){b=Ext.ComponentQuery.query(a,b)}return b},getDockingRefItems:function(b,e){var a=b&&"*,* *",d=this.getDockedItems(a,true),c;d.push.apply(d,e);c=this.getDockedItems(a,false);d.push.apply(d,c);return d},initDockingItems:function(){var b=this,a=b.dockedItems;if(!a||!a.isMixedCollection){b.dockedItems=new Ext.util.AbstractMixedCollection(false,b.getComponentId);if(a){b.addDocked(a)}}},insertDocked:function(b,a){this.addDocked(a,b)},onDockedAdd:Ext.emptyFn,onDockedRemove:Ext.emptyFn,removeDocked:function(e,b){var d=this,c,a;b=b===true||(b!==false&&d.autoDestroy);if(!d.dockedItems.contains(e)){return e}if(e.dock==="left"||e.dock==="right"){d.horizontalDocks--}c=d.componentLayout;a=c&&d.rendered;if(a){c.onRemove(e)}d.dockedItems.remove(e);e.onRemoved(e.destroying||b);d.onDockedRemove(e);if(b){e.destroy()}else{if(a){c.afterRemove(e)}}if(d.hasListeners.dockedremove){d.fireEvent("dockedremove",d,e)}if(!d.destroying){d.updateLayout()}return e},moveDocked:function(c,a){var b=this;if(b.rendered){Ext.suspendLayouts()}b.removeDocked(c,false);c.dock=a;b.addDocked(c);if(b.rendered){if(c.frame){Ext.getDetachedBody().appendChild(c.el);c.updateFrame()}Ext.resumeLayouts(true)}},setupDockingRenderTpl:function(a){a.renderDockedItems=this.doRenderDockedItems}},0,0,0,0,0,0,[Ext.container,"DockingContainer"],0));(Ext.cmd.derive("Ext.panel.Panel",Ext.container.Container,{alternateClassName:"Ext.Panel",childEls:["body"],renderTpl:["{% this.renderDockedItems(out,values,0); %}",'<div id="{id}-body" data-ref="body" class="{baseCls}-body<tpl if="bodyCls"> {bodyCls}</tpl>',' {baseCls}-body-{ui}<tpl if="uiCls">','<tpl for="uiCls"> {parent.baseCls}-body-{parent.ui}-{.}</tpl>','</tpl>{childElCls}"','<tpl if="bodyRole"> role="{bodyRole}"<tpl else> role="presentation"</tpl>','<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>',"{%this.renderContainer(out,values);%}","</div>","{% this.renderDockedItems(out,values,1); %}"],headerPosition:"top",iconAlign:"left",titleAlign:"left",titleRotation:"default",beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titleRotation:null},animCollapse:Ext.enableFx,border:true,closable:false,closeAction:"destroy",collapsed:false,collapsedCls:"collapsed",collapseFirst:true,collapsible:undefined,constrain:false,constrainHeader:false,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:true,frame:false,frameHeader:true,hideCollapseTool:false,manageHeight:true,maskElement:"el",minButtonWidth:75,preventHeader:false,shrinkWrapDock:false,titleCollapse:undefined,baseCls:"x-panel",bodyPosProps:{x:"x",y:"y"},componentLayout:"dock",contentPaddingProperty:"bodyPadding",emptyArray:[],isPanel:true,defaultBindProperty:"title",addBodyCls:function(b){var c=this,a=c.rendered?c.body:c.getProtoBody();a.addCls(b);return c},addTool:function(e){if(!Ext.isArray(e)){e=[e]}var d=this,h=d.header,a=e.length,g=d.tools,c,b;if(!h||!h.isHeader){h=null;if(!g){d.tools=g=[]}}for(c=0;c<a;c++){b=e[c];b.toolOwner=d;if(h){h.addTool(b)}else{g.push(b)}}d.updateHeader()},addTools:Ext.emptyFn,setCollapsible:function(c){var b=this,d=b.collapsible,a=b.collapseTool;b.collapsible=c;if(c&&!d){b.updateCollapseTool();a=b.collapseTool;if(a){a.show()}}else{if(!c&&d){if(a){a.hide()}}}},addUIClsToElement:function(b){var c=this,a=Ext.container.Container.prototype.addUIClsToElement.apply(this,arguments);c.addBodyCls(["x-"+b,c.baseCls+"-body-"+b,c.baseCls+"-body-"+c.ui+"-"+b]);return a},afterCollapse:function(b){var a=this,c=a.ownerLayout;a.isCollapsingOrExpanding=0;a.updateCollapseTool();if(b){a.removeCls("x-animating-size")}if(c){c.afterCollapse(a,b)}a.setHiddenDocked();a.fireEvent("collapse",a)},afterExpand:function(b){var a=this,c=a.ownerLayout;a.isCollapsingOrExpanding=0;a.updateCollapseTool();if(b){a.removeCls("x-animating-size")}if(c){c.afterExpand(a,b)}a.fireEvent("expand",a);a.fireHierarchyEvent("expand")},beforeDestroy:function(){var a=this;Ext.destroy(a.placeholder,a.ghostPanel,a.dd);this.destroyDockedItems();Ext.container.Container.prototype.beforeDestroy.call(this)},beforeRender:function(){var b=this,a;b.getProtoBody();Ext.container.Container.prototype.beforeRender.call(this);b.initTools();if(!(b.preventHeader||(b.header===false))){b.updateHeader()}b.afterHeaderInit=true;if(b.collapsed){if(b.isPlaceHolderCollapse()){if(!b.hidden){b.setHiddenState(true);b.preventCollapseFire=true;b.placeholderCollapse();delete b.preventCollapseFire;a=b.collapsed;b.collapsed=false}}else{b.beginCollapse();b.addClsWithUI(b.collapsedCls)}}if(a){b.collapsed=a}},getMemento:function(a){var b=this;if(a&&typeof a==="string"){a+="Memento";return b[a]||(b[a]=new Ext.util.Memento(b))}},beginCollapse:function(){var e=this,c=e.lastBox,h=e.rendered,b=e.getMemento("collapse"),d=e.getSizeModel(),g=e.header,a;b.capture(["height","minHeight","width","minWidth"]);if(c){b.capture(e.restoreDimension(),c,"last.")}if(e.collapsedVertical()){if(d.width.shrinkWrap){e.width=h?e.getWidth():e.width||e.minWidth||100}delete e.height;e.minHeight=0}else{if(e.collapsedHorizontal()){if(d.height.shrinkWrap){e.height=h?e.getHeight():e.height||e.minHeight||100}delete e.width;e.minWidth=0}}if(e.ownerCt){e.ownerCt.getLayout().beginCollapse(e)}if(!e.isPlaceHolderCollapse()&&g!==false){if(g===(a=e.getReExpander())){g.collapseImmune=true;g.getInherited().collapseImmune=true;g.addClsWithUI(e.getHeaderCollapsedClasses(g));if(g.rendered){g.updateFrame()}}else{if(a.el){a.el.show();a.hidden=false}}}if(e.resizer){e.resizer.disable()}},beginDrag:function(){if(this.floatingDescendants){this.floatingDescendants.hide()}},beginExpand:function(){var e=this,d=e.lastBox,c=e.getMemento("collapse"),a=e.restoreDimension(),g=e.header,b;if(c){c.restore(["minHeight","minWidth",a]);if(d){c.restore(a,true,d,"last.")}}if(e.ownerCt){e.ownerCt.getLayout().beginExpand(e)}if(!e.isPlaceHolderCollapse()&&g!==false){if(g===(b=e.getReExpander())){delete g.collapseImmune;delete g.getInherited().collapseImmune;g.removeClsWithUI(e.getHeaderCollapsedClasses(g));if(g.rendered){g.expanding=true;g.updateFrame();delete g.expanding}}else{b.hidden=true;b.el.hide()}}if(e.resizer){e.resizer.enable()}},bridgeToolbars:function(){var a=this,g=[],e=a.minButtonWidth,c,b;function d(h,j,i){if(Ext.isArray(h)){h={xtype:"toolbar",items:h}}else{if(!h.isComponent){h=Ext.apply({},h)}}if(!h.xtype){h.xtype="toolbar"}h.dock=j;if(i){h.layout=Ext.applyIf(h.layout||{},{pack:{left:"start",center:"center"}[a.buttonAlign]||"end"})}return h}if(a.tbar){g.push(d(a.tbar,"top"));a.tbar=null}if(a.bbar){g.push(d(a.bbar,"bottom"));a.bbar=null}if(a.buttons){a.fbar=a.buttons;a.buttons=null}if(a.fbar){c=d(a.fbar,"bottom",true);c.ui="footer";if(e){b=c.defaults;c.defaults=function(j){var k=b||{},i=!j.xtype||j.isButton,h;if(!i){h=Ext.ClassManager.getByAlias("widget."+j.xtype);if(h){i=h.prototype.isButton}}if(i&&!("minWidth" in k)){k=Ext.apply({minWidth:e},k)}return k}}g.push(c);a.fbar=null}if(a.lbar){g.push(d(a.lbar,"left"));a.lbar=null}if(a.rbar){g.push(d(a.rbar,"right"));a.rbar=null}if(a.dockedItems){if(a.dockedItems.isMixedCollection){a.addDocked(g)}else{if(!Ext.isArray(a.dockedItems)){a.dockedItems=[a.dockedItems]}a.dockedItems=a.dockedItems.concat(g)}}else{a.dockedItems=g}},close:function(){if(this.fireEvent("beforeclose",this)!==false){this.doClose()}},collapse:function(e,a){var d=this,g=e||d.collapseDirection,b=d.ownerCt,c=d.ownerLayout,h=d.rendered;if(d.isCollapsingOrExpanding){return d}if(arguments.length<2){a=d.animCollapse}if(d.collapsed||d.fireEvent("beforecollapse",d,e,a)===false){return d}if(c&&c.onBeforeComponentCollapse){if(c.onBeforeComponentCollapse(d)===false){return d}}if(h&&b&&d.isPlaceHolderCollapse()){return d.placeholderCollapse(e,a)}d.collapsed=g;if(h){d.beginCollapse()}d.getInherited().collapsed=true;d.fireHierarchyEvent("collapse");if(h){d.doCollapseExpand(1,a)}return d},collapsedHorizontal:function(){var a=this.getCollapsed();return a==="left"||a==="right"},collapsedVertical:function(){var a=this.getCollapsed();return a==="top"||a==="bottom"},convertCollapseDir:function(a){return a.substr(0,1)},createGhost:function(a){var b=this,d=b.header,c=b.frame&&!b.alwaysFramed;return{xtype:"panel",hidden:false,header:d?{titleAlign:d.getTitleAlign()}:null,ui:c?b.ui.replace(/-framed$/,""):b.ui,id:b.id+"-ghost",renderTo:Ext.getBody(),resizable:false,draggable:false,closable:false,floating:true,shadow:false,frame:c,shim:b.shim,alwaysFramed:b.alwaysFramed,overlapHeader:b.overlapHeader,headerPosition:b.getHeaderPosition(),titleRotation:b.getTitleRotation(),baseCls:b.baseCls,getRefOwner:function(){return b.getRefOwner()},cls:b.baseCls+"-ghost "+(a||"")}},createReExpander:function(g,e){var d=this,i=g==="left",c=g==="right",h=i||c,b=d.ownerCt,a=Ext.apply({hideMode:"offsets",title:d.getTitle(),titleAlign:d.getTitleAlign(),vertical:h,textCls:d.headerTextCls,icon:d.getIcon(),iconCls:d.getIconCls(),iconAlign:d.getIconAlign(),glyph:d.getGlyph(),baseCls:d.self.prototype.baseCls+"-header",ui:d.ui,frame:d.frame&&d.frameHeader,ignoreParentFrame:d.frame||d.overlapHeader,ignoreBorderManagement:d.frame||d.ignoreHeaderBorderManagement,indicateDrag:d.draggable,collapseImmune:true,headerRole:d.headerRole,ownerCt:(b&&d.collapseMode==="placeholder")?b:d,ownerLayout:d.componentLayout,forceOrientation:true,margin:d.margin,defaultFocus:"tool[isDefaultExpandTool]"},e);if(d.collapseMode==="mini"){if(h){a.width=1}else{a.height=1}}if(!d.hideCollapseTool){if(i||(c&&d.isPlaceHolderCollapse())){a.titlePosition=1}a.tools=[{xtype:"tool",type:"expand-"+d.getOppositeDirection(g),uiCls:["top"],handler:d.toggleCollapse,scope:d}]}a=new Ext.panel.Header(a);a.addClsWithUI(d.getHeaderCollapsedClasses(a));return a},doClose:function(){this.fireEvent("close",this);this[this.closeAction]()},doCollapseExpand:function(a,b){var d=this,c=d.animCollapse,e=d.ownerLayout;d.animCollapse=b;d.isCollapsingOrExpanding=a;if(b){d.addCls("x-animating-size")}if(e&&!b){e.onContentChange(d)}else{d.updateLayout({isRoot:true})}d.animCollapse=c;return d},endDrag:function(){if(this.floatingDescendants){this.floatingDescendants.show()}},expand:function(a){var c=this,b=c.ownerLayout,d=c.rendered;if(c.isCollapsingOrExpanding){return c}if(!arguments.length){a=c.animCollapse}if(!c.collapsed&&!c.floatedFromCollapse){return c}if(c.fireEvent("beforeexpand",c,a)===false){return c}if(b&&b.onBeforeComponentExpand){if(b.onBeforeComponentExpand(c)===false){return c}}delete c.getInherited().collapsed;if(d&&c.isPlaceHolderCollapse()){return c.placeholderExpand(a)}c.restoreHiddenDocked();if(d){c.beginExpand()}c.collapsed=false;if(c.rendered){c.doCollapseExpand(2,a)}return c},findReExpander:function(h){var g=this,j=Ext.Component,e=g.dockedItems.items,a=e.length,b,d;if(g.collapseMode==="mini"){return}switch(h){case j.DIRECTION_TOP:case j.DIRECTION_BOTTOM:for(d=0;d<a;d++){b=e[d];if(!b.hidden){if(b.isHeader&&(!b.dock||b.dock==="top"||b.dock==="bottom")){return b}}}break;case j.DIRECTION_LEFT:case j.DIRECTION_RIGHT:for(d=0;d<a;d++){b=e[d];if(!b.hidden){if(b.isHeader&&(b.dock==="left"||b.dock==="right")){return b}}}break;default:throw ("Panel#findReExpander must be passed a valid collapseDirection")}},floatCollapsedPanel:function(){var h=this,i=h.placeholder,a=i.getSize(),g="x-border-region-slide-in",d=h.collapsed,j=h.ownerCt||h,b,c,e;if(h.isSliding){return}if(h.el.hasCls(g)){h.slideOutFloatedPanel();return}h.isSliding=true;i.el.hide();i.hidden=true;h.el.show();h.setHiddenState(false);h.collapsed=false;j.updateLayout();i.el.show();i.hidden=false;h.el.hide();h.setHiddenState(true);h.collapsed=d;j.updateLayout();e=h.getBox(false,true);h.slideOutTask=h.slideOutTask||new Ext.util.DelayedTask(h.slideOutFloatedPanel,h);if(Ext.supports.Touch){Ext.on("mousedown",c=function(k){if(!k.within(h.el)){Ext.un("mousedown",c);h.slideOutFloatedPanel()}})}if(!h.placeholderListener){h.placeholderListener=i.on({resize:h.onPlaceholderResize,scope:h,destroyable:true})}i.el.on("mouseleave",h.onMouseLeaveFloated,h);h.el.on("mouseleave",h.onMouseLeaveFloated,h);i.el.on("mouseenter",h.onMouseEnterFloated,h);h.el.on("mouseenter",h.onMouseEnterFloated,h);h.el.addCls(g);h.floated=d;if(h.collapseTool){h.collapseTool.el.hide()}switch(h.collapsed){case"top":h.width=a.width;h.setLocalXY(e.x,e.y+a.height);break;case"right":h.height=a.height;h.setLocalXY(e.x-a.width,e.y);break;case"bottom":h.width=a.width;h.setLocalXY(e.x,e.y-a.height);break;case"left":h.height=a.height;h.setLocalXY(e.x+a.width,e.y);break}b=h.convertCollapseDir(h.collapsed);h.floatedFromCollapse=h.collapsed;h.collapsed=false;h.setHiddenState(false);h.el.slideIn(b,{preserveScroll:true,duration:Ext.Number.from(h.animCollapse,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:function(){h.isSliding=false;h.fireEvent("float",h)}}})},onPlaceholderResize:function(e,c,a){var b=this,d=b.getBox(false,true),g=e.getBox(false,true);switch(b.floated){case"top":b.width=c;b.setLocalY(g.y+g.height);break;case"right":b.height=a;b.setLocalX(g.x-d.width);break;case"bottom":b.width=c;b.setLocalY(g.y-d.height);break;case"left":b.height=a;b.setLocalX(g.x+g.width);break}b.updateLayout({isRoot:true})},getAnimationProps:function(){var b=this,a;a=Ext.container.Container.prototype.getAnimationProps.call(this);if(typeof b.animCollapseDuration==="number"){a.duration=b.animCollapseDuration}else{if(typeof b.animCollapse==="number"){a.duration=b.animCollapse}}return a},getCollapsed:function(){var a=this;if(a.collapsed===true){return a.collapseDirection}return a.collapsed},getCollapsedDockedItems:function(){var a=this;return a.header===false||a.collapseMode==="placeholder"?a.emptyArray:[a.getReExpander()]},getComponent:function(a){var b=Ext.container.Container.prototype.getComponent.apply(this,arguments);if(b===undefined&&!Ext.isNumber(a)){b=this.getDockedComponent(a)}return b},getHeader:function(){return this.header},getHeaderCollapsedClasses:function(d){var b=this,c=b.collapsedCls,a;a=[c,c+"-"+d.getDockName()];if(b.border&&(!b.frame||(b.frame&&Ext.supports.CSS3BorderRadius))){a.push(c+"-border-"+d.getDockName())}return a},getKeyMap:function(){return this.keyMap||(this.keyMap=new Ext.util.KeyMap(Ext.apply({target:this.el},this.keys)))},getOppositeDirection:function(a){var b=Ext.Component;switch(a){case b.DIRECTION_TOP:return b.DIRECTION_BOTTOM;case b.DIRECTION_RIGHT:return b.DIRECTION_LEFT;case b.DIRECTION_BOTTOM:return b.DIRECTION_TOP;case b.DIRECTION_LEFT:return b.DIRECTION_RIGHT}},getPlaceholder:function(e){var d=this,h=e||d.collapseDirection,c=null,g=d.placeholder,b=d.floatable,a=d.titleCollapse;if(!g){if(b||(d.collapsible&&a)){c={click:{fn:(!a&&b)?d.floatCollapsedPanel:d.toggleCollapse,element:"el",scope:d}}}d.placeholder=g=Ext.widget(d.createReExpander(h,{id:d.id+"-placeholder",listeners:c}))}if(!g.placeholderFor){if(!g.isComponent){d.placeholder=g=d.lookupComponent(g)}Ext.applyIf(g,{margin:d.margin,placeholderFor:d,synthetic:true});g.addCls(["x-region-collapsed-placeholder","x-region-collapsed-"+h+"-placeholder",d.collapsedCls])}return g},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({cls:b.bodyCls,style:b.bodyStyle,clsProp:"bodyCls",styleProp:"bodyStyle",styleIsText:true})}return a},getReExpander:function(e){var d=this,g=e||d.collapseDirection,b=d.reExpander||d.findReExpander(g),a=d.titleCollapse,c=null;d.expandDirection=d.getOppositeDirection(g);if(!b){if(a){c={click:{fn:d.toggleCollapse,element:"el",scope:d}}}d.reExpander=b=d.createReExpander(g,{dock:g,cls:"x-docked "+d.baseCls+"-"+d.ui+"-collapsed",isCollapsedExpander:true,listeners:c});d.dockedItems.insert(0,b)}return b},getRefItems:function(a){var b=Ext.container.Container.prototype.getRefItems.apply(this,arguments);return this.getDockingRefItems(a,b)},getState:function(){var a=this,c=Ext.container.Container.prototype.getState.call(this)||{},e=a.collapsed,b=a.floated,d;if(b){a.collapsed=b}c=a.addPropertyToState(c,"collapsed");if(b){a.collapsed=e}if(a.getCollapsed()){d=a.getMemento("collapse").data;c=a.addPropertyToState(c,"collapsed",d);if(a.collapsedVertical()){delete c.height;if(d){c=a.addPropertyToState(c,"height",d.height)}}else{delete c.width;if(d){c=a.addPropertyToState(c,"width",d.width)}}}return c},applyState:function(c){var b=this,a={},d;if(c){d=c.collapsed;if(d){a=b.getMemento("collapse");Ext.Object.merge(a.data,d);c.collapsed=true}Ext.container.Container.prototype.applyState.apply(this,arguments)}},ghost:function(m){var h=this,a=h.ghostPanel,d=h.getBox(),c=h.header,k,e,j,l,g,b;if(!a){h.ghostPanel=a=Ext.widget(h.createGhost(m));a.el.dom.removeAttribute("tabIndex")}else{a.el.show()}a.setHiddenState(false);a.floatParent=h.floatParent;a.toFront();if(c&&!h.preventHeader){k=a.header;k.suspendLayouts();e=k.query("tool");for(b=e.length;b--;){k.remove(e[b])}k.setTitlePosition(0);a.addTool(h.ghostTools());a.setTitle(h.getTitle());k.setTitlePosition(c.titlePosition);l=h.getIconCls();if(l){a.setIconCls(l)}else{j=h.getIcon();if(j){a.setIcon(j)}else{g=h.getGlyph();if(g){a.setGlyph(g)}}}k.addCls("x-header-ghost");k.resumeLayouts(true)}a.setPagePosition(d.x,d.y);a.setSize(d.width,d.height);h.el.hide();return a},ghostTools:function(){var e=[],g=this.header,d=g?g.query("tool[hidden=false]"):[],c,a,b;if(d.length){c=0;a=d.length;for(;c<a;c++){b=d[c];e.push({type:b.type})}}else{e=[{type:"placeholder"}]}return e},initBodyBorder:function(){var a=this;if(a.frame&&a.bodyBorder){if(!Ext.isNumber(a.bodyBorder)){a.bodyBorder=1}a.getProtoBody().setStyle("border-width",this.unitizeBox(a.bodyBorder))}},initBodyStyles:function(){var b=this,a=b.getProtoBody();if(b.bodyPadding!==undefined){if(b.layout.managePadding){a.setStyle("padding",0)}else{a.setStyle("padding",this.unitizeBox((b.bodyPadding===true)?5:b.bodyPadding))}}b.initBodyBorder()},initBorderProps:function(){var a=this;if(a.frame&&a.border&&a.bodyBorder===undefined){a.bodyBorder=false}if(a.frame&&a.border&&(a.bodyBorder===false||a.bodyBorder===0)){a.manageBodyBorders=true}},initComponent:function(){var a=this;if(a.collapsible){a.addStateEvents(["expand","collapse"])}if(a.unstyled){a.setUI("plain")}if(a.frame){a.setUI(a.ui+"-framed")}a.bridgeToolbars();a.initBorderProps();Ext.container.Container.prototype.initComponent.call(this);a.collapseDirection=a.collapseDirection||a.getHeaderPosition()||Ext.Component.DIRECTION_TOP;if(typeof a.animCollapse==="number"){a.animCollapseDuration=a.animCollapse}a.hiddenOnCollapse=new Ext.dom.CompositeElement()},initItems:function(){Ext.container.Container.prototype.initItems.call(this);this.initDockingItems()},initRenderData:function(){var a=this,b=Ext.container.Container.prototype.initRenderData.call(this);a.initBodyStyles();a.protoBody.writeTo(b);delete a.protoBody;return b},calculateConstrainedPosition:function(g,b,e,a){var h=this,i=h.header,d,c;if(h.constrainHeader){d=i.lastBox;if(a){if(!i.vertical){a=[a[0],d?d.height:a[1]]}else{a=[d?d.width:a[0],a[1]]}}else{if(d){a=[d.width,d.height]}}c=h.floatParent;g=g||h.constrainTo||(c?c.getTargetEl():null)||h.container||h.el.parent()}return Ext.container.Container.prototype.calculateConstrainedPosition.call(this,g,b,e,a)},initTools:function(){var c=this,d=c.tools,b,a;c.tools=[];for(b=d&&d.length;b;){--b;c.tools[b]=a=d[b];a.toolOwner=c}if(c.collapsible&&!(c.hideCollapseTool||c.header===false||c.preventHeader)){c.updateCollapseTool();if(c.collapseFirst){c.tools.unshift(c.collapseTool)}}c.addTools();if(c.pinnable){c.initPinnable()}if(c.closable){c.addClsWithUI("closable");c.addTool({xtype:"tool",type:"close",scope:c,handler:c.close})}if(c.collapseTool&&!c.collapseFirst){c.addTool(c.collapseTool)}},isLayoutRoot:function(){if(this.floatedFromCollapse){return true}return Ext.container.Container.prototype.isLayoutRoot.call(this)},isPlaceHolderCollapse:function(){return this.collapseMode==="placeholder"},isVisible:function(a){var b=this;if(b.collapsed&&b.placeholder){return b.placeholder.isVisible(a)}return Ext.container.Container.prototype.isVisible.apply(this,arguments)},onBoxReady:function(){Ext.container.Container.prototype.onBoxReady.apply(this,arguments);if(this.collapsed){this.setHiddenDocked()}},onHide:function(e,b,c){var d=this,a=d.dd;if(d.floatedFromCollapse){d.slideOutFloatedPanel(true)}if(d.draggable&&a){a.endDrag()}if(d.collapsed&&d.placeholder){if(d.splitter){Ext.suspendLayouts();d.splitter.hide();Ext.resumeLayouts()}d.placeholder.hide()}else{Ext.container.Container.prototype.onHide.call(this,e,b,c)}},onMouseEnterFloated:function(a){this.slideOutTask.cancel()},onMouseLeaveFloated:function(c,b){var a=c.getRelatedTarget();if(a&&(this.owns(a)||this.placeholder.owns(a))){return}this.slideOutTask.delay(500)},onRemoved:function(b){var a=this;if(a.placeholder&&!b){a.ownerCt.remove(a.placeholder,false)}Ext.container.Container.prototype.onRemoved.apply(this,arguments)},onShow:function(){var a=this;if(a.collapsed&&a.isPlaceHolderCollapse()){if(a.splitter){Ext.suspendLayouts();a.splitter.show();Ext.resumeLayouts()}a.setHiddenState(true);a.placeholderCollapse()}else{Ext.container.Container.prototype.onShow.apply(this,arguments)}},placeholderCollapse:function(g,a){var d=this,c=d.ownerCt,i=g||d.collapseDirection,b="x-border-region-slide-in",h=d.getPlaceholder(i),e;d.isCollapsingOrExpanding=1;d.setHiddenState(true);d.collapsed=i;if(h.rendered){if(h.el.dom.parentNode!==d.el.dom.parentNode){d.el.dom.parentNode.insertBefore(h.el.dom,d.el.dom)}h.hidden=false;h.setHiddenState(false);h.el.show();c.updateLayout()}else{c.insert(c.items.indexOf(d),h)}if(d.rendered){d.el.setVisibilityMode(d.placeholderCollapseHideMode);if(a){d.el.addCls(b);h.el.hide();e=d.convertCollapseDir(i);d.el.slideOut(e,{preserveScroll:true,duration:Ext.Number.from(a,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:function(){d.el.removeCls(b);h.el.show().setStyle("display","none").slideIn(e,{easing:"linear",duration:100,listeners:{afteranimate:function(){h.focus();h.setHiddenState(false);d.isCollapsingOrExpanding=0;d.fireEvent("collapse",d)}}})}}})}else{d.el.hide();h.setHiddenState(false);d.isCollapsingOrExpanding=0;d.fireEvent("collapse",d)}}else{d.isCollapsingOrExpanding=0;if(!d.preventCollapseFire){d.fireEvent("collapse",d)}}return d},placeholderExpand:function(c){var e=this,h=e.collapsed,d="x-border-region-slide-in",g,b,a=e.ownerLayout?e.ownerLayout.centerRegion:null;if(Ext.Component.layoutSuspendCount){c=false}if(e.floatedFromCollapse){b=e.getPosition(true);e.slideOutFloatedPanelBegin();e.slideOutFloatedPanelEnd();e.floated=false}if(c){Ext.suspendLayouts();e.placeholder.hide();e.el.show();e.collapsed=false;e.setHiddenState(false);if(a&&!b){a.hidden=true}Ext.resumeLayouts(true);a.hidden=false;e.el.addCls(d);e.isCollapsingOrExpanding=2;if(b){g=e.getXY();e.setLocalXY(b[0],b[1]);e.setXY([g[0],g[1]],{duration:Ext.Number.from(c,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:function(){e.el.removeCls(d);e.isCollapsingOrExpanding=0;e.fireEvent("expand",e)}}})}else{e.el.hide();e.placeholder.el.show();e.placeholder.hidden=false;e.setHiddenState(false);e.el.slideIn(e.convertCollapseDir(h),{preserveScroll:true,duration:Ext.Number.from(c,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:function(){e.el.removeCls(d);e.placeholder.hide();e.updateLayout();e.isCollapsingOrExpanding=0;e.fireEvent("expand",e)}}})}}else{e.floated=e.collapsed=false;e.el.removeCls(d);Ext.suspendLayouts();e.placeholder.hide();e.show();Ext.resumeLayouts(true);e.fireEvent("expand",e)}return e},remove:function(b,a){if(this.dockedItems.contains(b)){this.removeDocked(b,a)}else{Ext.container.Container.prototype.remove.call(this,b,a)}return b},removeBodyCls:function(b){var c=this,a=c.rendered?c.body:c.getProtoBody();a.removeCls(b);return c},removeUIClsFromElement:function(b){var c=this,a=Ext.container.Container.prototype.removeUIClsFromElement.apply(this,arguments);c.removeBodyCls(["x-"+b,c.baseCls+"-body-"+b,c.baseCls+"-body-"+c.ui+"-"+b]);return a},restoreDimension:function(){var a=this.collapseDirection;return(a==="top"||a==="bottom")?"height":"width"},restoreHiddenDocked:function(){var a=this.hiddenOnCollapse;a.setStyle("visibility","");a.clear()},setBodyStyle:function(b,d){var c=this,a=c.rendered?c.body:c.getProtoBody();if(Ext.isFunction(b)){b=b()}if(arguments.length===1){if(Ext.isString(b)){b=Ext.Element.parseStyles(b)}a.setStyle(b)}else{a.setStyle(b,d)}return c},setBorder:function(a,c){if(c){return}var b=this,d=b.header;if(!a){a=0}else{if(a===true){a="1px"}else{a=b.unitizeBox(a)}}if(d){if(d.isHeader){d.setBorder(a)}else{d.border=a}}if(b.rendered&&b.bodyBorder!==false){b.body.setStyle("border-width",a)}b.updateLayout();b.border=a},setCollapsed:function(a){this[a?"collapse":"expand"]()},setGlyph:function(c){var b=this,a=b.glyph,e=b.header,d=b.placeholder;if(c!==a){b.glyph=c;if(e){if(e.isHeader){e.setGlyph(c)}else{e.glyph=c}}else{if(b.rendered||b.afterHeaderInit){b.updateHeader()}}if(d&&d.setGlyph){d.setGlyph(c)}b.fireEvent("glyphchange",b,c,a)}},setIcon:function(a){var b=this,c=b.icon,e=b.header,d=b.placeholder;if(a!==c){b.icon=a;if(e){if(e.isHeader){e.setIcon(a)}else{e.icon=a}}else{if(b.rendered||b.afterHeaderInit){b.updateHeader()}}if(d&&d.setIcon){d.setIcon(a)}b.fireEvent("iconchange",b,a,c)}},setIconCls:function(b){var c=this,a=c.iconCls,e=c.header,d=c.placeholder;if(b!==a){c.iconCls=b;if(e){if(e.isHeader){e.setIconCls(b)}else{e.iconCls=b}}else{if(c.rendered||c.afterHeaderInit){c.updateHeader()}}if(d&&d.setIconCls){d.setIconCls(b)}c.fireEvent("iconclschange",c,b,a)}},setTitle:function(e){var c=this,b=c.title,g=c.header,a=c.reExpander,d=c.placeholder;if(e!==b){c.title=e;if(g){if(g.isHeader){g.setTitle(e)}}else{if(c.rendered||c.afterHeaderInit){c.updateHeader()}}if(a){a.setTitle(e)}if(d&&d.setTitle){d.setTitle(e)}c.fireEvent("titlechange",c,e,b)}},setHiddenDocked:function(){var h=this,d=h.hiddenOnCollapse,c=h.getDockedItems(),a=c.length,e=0,g,b;if(h.header!==false){b=h.getReExpander()}d.add(h.body);for(;e<a;e++){g=c[e];if(g&&g!==b&&g.el){d.add(g.el)}}d.setStyle("visibility","hidden")},setUI:function(b){var a=this;Ext.container.Container.prototype.setUI.apply(this,arguments);if(a.header&&a.header.rendered){a.header.setUI(b)}},toggleCollapse:function(){return(this.collapsed||this.floatedFromCollapse)?this.expand():this.collapse()},updateCollapseTool:function(){var b=this,a=b.collapseTool;if(!a&&b.collapsible){b.collapseDirection=b.collapseDirection||b.getHeaderPosition()||"top";b.collapseTool=b.expandTool=a=Ext.widget({xtype:"tool",handler:b.toggleCollapse,scope:b})}if(a){if(b.collapsed&&!b.isPlaceHolderCollapse()){a.setType("expand-"+b.getOppositeDirection(b.collapseDirection))}else{a.setType("collapse-"+b.collapseDirection)}}},updateHeaderPosition:function(a){var b=this.header;if(b&&b.isHeader){b.setDock(a)}},updateIconAlign:function(b){var a=this.header;if(a&&a.isHeader){a.setIconAlign(b)}},updateTitleAlign:function(b){var a=this.header;if(a&&a.isHeader){a.setTitleAlign(b)}},updateTitleRotation:function(a){var b=this.header;if(b&&b.isHeader){b.setTitleRotation(a)}},unghost:function(c,a,b){var e=this,d=e.ghostPanel;if(!d){return}if(c!==false){e.el.show();if(a!==false){e.setPagePosition(d.getXY());if(e.hideMode==="offsets"){delete e.el.hideModeStyles}}if(b){e.focus(false,10)}}d.el.hide();d.setHiddenState(true)},updateHeader:function(a){var h=this,d=h.header,k=h.getTitle(),g=h.tools,j=h.getIcon(),i=h.getGlyph(),l=h.getIconCls(),c=i||j||l,e=h.getHeaderPosition(),b=e==="left"||e==="right";if(Ext.isObject(d)||(d!==false&&(a||(k||c)||(g&&g.length)||(h.collapsible&&!h.titleCollapse)))){if(d&&d.isHeader){d.show()}else{d=h.header=Ext.widget(Ext.merge({xtype:"header",title:k,titleAlign:h.getTitleAlign(),vertical:b,dock:h.getHeaderPosition()||"top",titleRotation:h.getTitleRotation(),textCls:h.headerTextCls,iconCls:l,iconAlign:h.getIconAlign(),icon:j,glyph:i,baseCls:h.baseCls+"-header",tools:g,ui:h.ui,id:h.id+"_header",overCls:h.headerOverCls,indicateDrag:h.draggable,frame:(h.frame||h.alwaysFramed)&&h.frameHeader,ignoreParentFrame:h.frame||h.overlapHeader,ignoreBorderManagement:h.frame||h.ignoreHeaderBorderManagement,headerRole:h.headerRole,ownerCt:h,synthetic:true,listeners:h.collapsible&&h.titleCollapse?{click:h.toggleCollapse,scope:h}:null},h.header));h.addDocked(d,0)}}else{if(d){d.hide()}}},privates:{addUIToElement:function(){var a=this;Ext.container.Container.prototype.addUIToElement.apply(this,arguments);a.addBodyCls(a.baseCls+"-body-"+a.ui)},applyTargetCls:function(a){this.getProtoBody().addCls(a)},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){var a=this;return a.body||a.protoBody||a.frameBody||a.el},initDraggable:function(){var a=this;if(a.simpleDrag){a.initSimpleDraggable()}else{a.dd=new Ext.panel.DD(a,Ext.isBoolean(a.draggable)?null:a.draggable)}},initResizable:function(a){Ext.container.Container.prototype.initResizable.call(this,a);if(this.collapsed){this.resizer.disable()}},initSimpleDraggable:function(){var c=this,b,a;if(!c.header){c.updateHeader(true)}if(c.header){b=Ext.applyIf({el:c.el,delegate:"#"+c.header.id},c.draggable);if(c.constrain||c.constrainHeader){b.constrain=c.constrain;b.constrainDelegate=c.constrainHeader;b.constrainTo=c.constrainTo||c.container}a=c.dd=new Ext.util.ComponentDragger(c,b);c.relayEvents(a,["dragstart","drag","dragend"])}},removeUIFromElement:function(){var a=this;Ext.container.Container.prototype.removeUIFromElement.apply(this,arguments);a.removeBodyCls(a.baseCls+"-body-"+a.ui)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);this.setupDockingRenderTpl(a)},slideOutFloatedPanel:function(b){var d=this,g=d.el,e,a,c=function(){d.slideOutFloatedPanelEnd();d.el.removeCls("x-border-region-slide-in")};if(d.isSliding||d.isDestroyed){return}d.isSliding=true;d.floated=false;d.slideOutFloatedPanelBegin();if(b){g.hide();return c()}if(typeof d.collapsed==="string"){e=d.convertCollapseDir(d.collapsed)}g.slideOut(e,{preserveScroll:true,duration:Ext.Number.from(d.animCollapse,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:c}});if(this.containsFocus){a=this.findFocusTarget();if(a){a.focus()}}},slideOutFloatedPanelBegin:function(){var b=this,c=b.placeholder.el,a=b.el;b.collapsed=b.floatedFromCollapse;b.setHiddenState(true);b.floatedFromCollapse=null;c.un("mouseleave",b.onMouseLeaveFloated,b);a.un("mouseleave",b.onMouseLeaveFloated,b);c.un("mouseenter",b.onMouseEnterFloated,b);a.un("mouseenter",b.onMouseEnterFloated,b)},slideOutFloatedPanelEnd:function(a){var b=this;if(b.collapseTool){b.collapseTool.el.show()}b.slideOutTask.cancel();b.isSliding=false;if(!a){b.fireEvent("unfloat",b)}}}},0,["panel"],["component","box","container","panel"],{component:true,box:true,container:true,panel:true},["widget.panel"],[["docking",Ext.container.DockingContainer]],[Ext.panel,"Panel",Ext,"Panel"],function(){var a=this.prototype;a.animCollapse=Ext.enableFx;a.placeholderCollapseHideMode=Ext.Element.VISIBILITY}));Ext.define("Ext.rtl.panel.Panel",{override:"Ext.panel.Panel",rtlCollapseDirs:{top:"top",right:"left",bottom:"bottom",left:"right"},convertCollapseDir:function(a){if(!!Ext.rootInheritedState.rtl!==this.isLocalRtl()){a=this.rtlCollapseDirs[a]}return arguments.callee.$previous.apply(this,arguments)}});(Ext.cmd.derive("Ext.layout.container.Table",Ext.layout.container.Container,{alternateClassName:"Ext.layout.TableLayout",type:"table",createsInnerCt:true,targetCls:"x-table-layout-ct",tableCls:"x-table-layout",cellCls:"x-table-layout-cell",childEls:["table","tbody"],tableAttrs:null,getItemSizePolicy:function(a){return this.autoSizePolicy},initInheritedState:function(b,a){a.inShrinkWrapTable=true},getLayoutItems:function(){var g=this,b=[],c=Ext.layout.container.Container.prototype.getLayoutItems.call(this),e,a=c.length,d;for(d=0;d<a;d++){e=c[d];if(!e.hidden){b.push(e)}}return b},getHiddenItems:function(){var b=[],c=this.owner.items.items,a=c.length,d=0,e;for(;d<a;++d){e=c[d];if(e.rendered&&e.hidden){b.push(e)}}return b},renderChildren:function(){var l=this,k=l.getLayoutItems(),h=l.tbody.dom,r=h.rows,j=k.length,e=l.getHiddenItems(),q,o,b,a,p,n,m,g,d,c;q=l.calculateCells(k);for(g=0;g<j;g++){o=q[g];b=o.rowIdx;a=o.cellIdx;p=k[g];d=p.cellId||"";n=r[b];if(!n){n=h.insertRow(b);if(l.trAttrs){n.set(l.trAttrs)}}m=Ext.get(n.cells[a]||n.insertCell(a));if(!p.rendered){l.renderItem(p,m,0)}else{if(!l.isValidParent(p,m,b,a,h)){l.moveItem(p,m,0)}}if(l.tdAttrs){m.set(l.tdAttrs)}if(p.tdAttrs){m.set(p.tdAttrs)}c=m.getAttribute("data-cellId");if((c||d)&&c!==d){m.setId(d||Ext.id())}m.set({colSpan:p.colspan||1,rowSpan:p.rowspan||1,"data-cellId":d,cls:l.cellCls+" "+(p.cellCls||"")});if(!q[g+1]||q[g+1].rowIdx!==b){a++;while(n.cells[a]){n.deleteCell(a)}}}b++;while(h.rows[b]){h.deleteRow(b)}for(g=0,j=e.length;g<j;++g){l.ensureInDocument(e[g].getEl())}},ensureInDocument:function(a){var b=a.dom.parentNode;while(b){if(b.tagName.toUpperCase()==="BODY"){return}b=b.parentNode}Ext.getDetachedBody().appendChild(a)},calculate:function(g){if(!g.hasDomProp("containerChildrenSizeDone")){this.done=false}else{var c=g.targetContext,b=g.widthModel.shrinkWrap,a=g.heightModel.shrinkWrap,h=a||b,d=h&&this.table.dom,e=h&&c.getPaddingInfo();if(b){g.setContentWidth(d.offsetWidth+e.width,true)}if(a){g.setContentHeight(d.offsetHeight+e.height,true)}}},calculateCells:function(k){var m=[],b=0,d=0,a=0,h=this.columns||Infinity,n=[],e=0,c,g=k.length,l;for(;e<g;e++){l=k[e];while(d>=h||n[d]>0){if(d>=h){d=0;a=0;b++;for(c=0;c<h;c++){if(n[c]>0){n[c]--}}}else{d++}}m.push({rowIdx:b,cellIdx:a});for(c=l.colspan||1;c;--c){n[d]=l.rowspan||1;++d}++a}return m},getRenderTree:function(){var l=this,h=l.getLayoutItems(),q=[],r=Ext.apply({tag:"table",id:l.owner.id+"-table","data-ref":"table",role:"presentation",cls:l.tableCls,cellspacing:0,cellpadding:0,cn:{tag:"tbody",id:l.owner.id+"-tbody","data-ref":"tbody",role:"presentation",cn:q}},l.tableAttrs),d=l.tdAttrs,g=h.length,e,p,o,n,k,b,a,m,c,j;p=l.calculateCells(h);for(e=0;e<g;e++){o=h[e];n=p[e];b=n.rowIdx;a=n.cellIdx;c=o.cellId||"";k=q[b];if(!k){k=q[b]={tag:"tr",role:"presentation",cn:[]};if(l.trAttrs){Ext.apply(k,l.trAttrs)}}m=k.cn[a]={tag:"td",role:"presentation"};if(d){Ext.apply(m,d)}j={colSpan:o.colspan||1,rowSpan:o.rowspan||1,"data-cellId":c,cls:l.cellCls+" "+(o.cellCls||"")};if(c){j.id=c}Ext.apply(m,j);l.configureItem(o);m.cn=o.getRenderTree()}return r},isValidParent:function(c,d,b,a){if(arguments.length===3){return this.table.isAncestor(c.el)}return c.el.dom.parentNode===this.tbody.dom.rows[b].cells[a]}},0,0,0,0,["layout.table"],0,[Ext.layout.container,"Table",Ext.layout,"TableLayout"],0));(Ext.cmd.derive("Ext.container.ButtonGroup",Ext.panel.Panel,{alternateClassName:"Ext.ButtonGroup",baseCls:"x-btn-group",layout:{type:"table"},defaultType:"button",frame:true,frameHeader:false,titleAlign:"center",noTitleCls:"notitle",ariaRole:"group",initComponent:function(){var a=this,b=a.columns;if(b){a.layout=Ext.apply({},{columns:b},a.layout)}if(!a.title){a.addClsWithUI(a.noTitleCls)}Ext.panel.Panel.prototype.initComponent.apply(this,arguments)},onBeforeAdd:function(a){if(a.isButton){if(this.defaultButtonUI&&a.ui==="default"&&!a.hasOwnProperty("ui")){a.ui=this.defaultButtonUI}else{a.ui=a.ui+"-toolbar"}}Ext.panel.Panel.prototype.onBeforeAdd.apply(this,arguments)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.panel.Panel.prototype.applyDefaults.apply(this,arguments)}return a}}},0,["buttongroup"],["component","box","container","panel","buttongroup"],{component:true,box:true,container:true,panel:true,buttongroup:true},["widget.buttongroup"],0,[Ext.container,"ButtonGroup",Ext,"ButtonGroup"],0));(Ext.cmd.derive("Ext.container.Monitor",Ext.Base,{target:null,selector:"",scope:null,addHandler:null,removeHandler:null,invalidateHandler:null,disabled:0,constructor:function(a){Ext.apply(this,a)},bind:function(b){var a=this;a.target=b;b.on("beforedestroy",a.disable,a);a.onContainerAdd(b)},unbind:function(){var a=this,b=a.target;if(b){b.un("beforedestroy",a.disable,a)}a.items=null},disable:function(){++this.disabled},enable:function(){if(this.disabled>0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(a.is(this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(c,b){var e=this,a=e.items,d=e.addHandler;if(!e.disabled){if(d){d.call(e.scope||b,b)}if(a){a.add(b)}}},onItemRemove:function(c,b){var e=this,a=e.items,d=e.removeHandler;if(!e.disabled){if(d){d.call(e.scope||b,b)}if(a){a.remove(b)}}},onContainerAdd:function(g,b){var k=this,j,h,c=k.handleAdd,a=k.handleRemove,d,e;if(g.isContainer){g.on("add",c,k);g.on("dockedadd",c,k);g.on("remove",a,k);g.on("dockedremove",a,k)}if(b!==true){j=g.query(k.selector);for(d=0,h=j.length;d<h;++d){e=j[d];k.onItemAdd(e.ownerCt,e)}}j=g.query(">container");for(d=0,h=j.length;d<h;++d){k.onContainerAdd(j[d],true)}},handleRemove:function(b,a){var c=this;if(!c.disabled){if(a.is(c.selector)){c.onItemRemove(b,a)}if(a.isQueryable){c.onContainerRemove(b,a)}}},onContainerRemove:function(e,c){var h=this,b,d,a,g;if(!c.isDestroyed&&!c.destroying&&c.isContainer){h.removeCtListeners(c);b=c.query(h.selector);for(d=0,a=b.length;d<a;++d){g=b[d];h.onItemRemove(g.ownerCt,g)}b=c.query("container");for(d=0,a=b.length;d<a;++d){h.removeCtListeners(b[d])}}else{h.invalidateItems(true)}},removeCtListeners:function(a){var b=this;a.un("add",b.handleAdd,b);a.un("dockedadd",b.handleAdd,b);a.un("remove",b.handleRemove,b);a.un("dockedremove",b.handleRemove,b)},getItems:function(){var b=this,a=b.items;if(!a){a=b.items=new Ext.util.MixedCollection();a.addAll(b.target.query(b.selector))}return a},invalidateItems:function(c){var b=this,a=b.invalidateHandler;if(c&&a){a.call(b.scope||b,b)}b.items=null}},1,0,0,0,0,0,[Ext.container,"Monitor"],0));(Ext.cmd.derive("Ext.plugin.Responsive",Ext.mixin.Responsive,{pluginId:"responsive",isPlugin:true,constructor:function(a){var d=this,b=a.cmp,e=Ext.apply({responsiveConfig:b.responsiveConfig,responsiveFormulas:b.responsiveFormulas},a);delete e.cmp;d.cmp=b;d.initConfig(e);if(d.transformed){b.setConfig(d.transformed);d.transformed=null}},init:Ext.emptyFn,privates:{transformInstanceConfig:function(c){var b=Ext.mixin.Responsive.prototype.transformInstanceConfig.call(this,c);if(b.ptype){b=Ext.apply({},b);delete b.ptype}this.transformed=b;var a=Ext.apply({},c);delete a.ptype;delete a.responsiveConfig;delete a.responsiveFormulas;return a},updateResponsiveState:function(){var a=this.getResponsiveState();this.cmp.setConfig(a)}}},1,0,0,0,["plugin.responsive"],0,[Ext.plugin,"Responsive"],0));(Ext.cmd.derive("Ext.plugin.Viewport",Ext.plugin.Responsive,{setCmp:function(a){this.cmp=a;if(a&&!a.isViewport){this.decorate(a);if(a.renderConfigs){a.flushRenderConfigs()}a.setupViewport()}},statics:{decorate:function(a){Ext.applyIf(a.prototype||a,{ariaRole:"application",viewportCls:"x-viewport"});Ext.override(a,{isViewport:true,preserveElOnDestroy:true,initComponent:function(){this.callParent();this.setupViewport()},getSizeModel:function(){var b=Ext.layout.SizeModel.configured;return b.pairsByHeightOrdinal[b.ordinal]},handleViewportResize:function(){var e=this,c=Ext.dom.Element,d=c.getViewportWidth(),b=c.getViewportHeight();if(d!==e.width||b!==e.height){e.setSize(d,b)}},setupViewport:function(){var d=this,c=document.body,b=Ext.scroll.DomScroller;if(b.document){b.document=b.document.destroy()}if(!c.id){c.id=d.id}c.setAttribute(Ext.Component.componentIdAttribute,d.id);c=d.el=Ext.getBody();Ext.fly(document.documentElement).addCls(d.viewportCls);c.setHeight=c.setWidth=Ext.emptyFn;c.dom.scroll="no";d.allowDomMove=false;d.renderTo=c;if(Ext.supports.Touch){d.addMeta("apple-mobile-web-app-capable","yes")}Ext.getScrollbarSize();d.width=d.height=undefined;d.initialViewportHeight=Ext.Element.getViewportHeight();d.initialViewportWidth=Ext.Element.getViewportWidth()},afterLayout:function(b){if(Ext.supports.Touch){document.body.scrollTop=0}this.callParent([b])},onRender:function(){var b=this;b.callParent(arguments);b.width=b.initialViewportWidth;b.height=b.initialViewportHeight;b.initialViewportWidth=b.initialViewportHeight=null;if(Ext.supports.TouchEvents){b.mon(Ext.getDoc(),{touchmove:function(c){c.preventDefault()},translate:false,delegated:false})}},initInheritedState:function(d,c){var e=this,b=Ext.rootInheritedState;if(d!==b){e.initInheritedState(e.inheritedState=b,e.inheritedStateInner=Ext.Object.chain(b))}else{e.callParent([d,c])}},beforeDestroy:function(){var d=this,b=Ext.rootInheritedState,c;for(c in b){if(c!=="rtl"){delete b[c]}}d.removeUIFromElement();d.el.removeCls(d.baseCls);Ext.fly(document.body.parentNode).removeCls(d.viewportCls);d.callParent()},addMeta:function(b,c){var d=document.createElement("meta");d.setAttribute("name",b);d.setAttribute("content",c);Ext.getHead().appendChild(d)},privates:{applyTargetCls:function(c){var b=this.el;if(b===this.getTargetEl()){this.el.addCls(c)}else{this.callParent([c])}},disableTabbing:function(){var b=this.el;if(b){b.saveChildrenTabbableState()}},enableTabbing:function(){var b=this.el;if(b){b.restoreChildrenTabbableState()}},getOverflowEl:function(){return Ext.get(document.documentElement)}}})}},privates:{updateResponsiveState:function(){this.cmp.handleViewportResize();Ext.plugin.Responsive.prototype.updateResponsiveState.call(this)}}},0,0,0,0,["plugin.viewport"],0,[Ext.plugin,"Viewport"],function(a){a.prototype.decorate=a.decorate}));(Ext.cmd.derive("Ext.container.Viewport",Ext.container.Container,{alternateClassName:"Ext.Viewport",privates:{updateResponsiveState:function(){this.handleViewportResize();this.mixins.responsive.updateResponsiveState.call(this)}}},0,["viewport"],["component","box","container","viewport"],{component:true,box:true,container:true,viewport:true},["widget.viewport"],[[Ext.mixin.Responsive.prototype.mixinId||Ext.mixin.Responsive.$className,Ext.mixin.Responsive]],[Ext.container,"Viewport",Ext,"Viewport"],function(){Ext.plugin.Viewport.decorate(this)}));(Ext.cmd.derive("Ext.layout.container.Anchor",Ext.layout.container.Auto,{alternateClassName:"Ext.layout.AnchorLayout",type:"anchor",defaultAnchor:"100%",parseAnchorRE:/^(r|right|b|bottom)$/i,manageOverflow:true,setsItemSize:true,beginLayoutCycle:function(g){var e=this,d=0,j,a,h,b,c;Ext.layout.container.Auto.prototype.beginLayoutCycle.apply(this,arguments);h=g.childItems;c=h.length;for(b=0;b<c;++b){a=h[b];j=a.target.anchorSpec;if(j){if(a.widthModel.calculated&&j.right){d|=1}if(a.heightModel.calculated&&j.bottom){d|=2}if(d===3){break}}}g.anchorDimensions=d},calculateItems:function(h,a){var q=this,l=h.childItems,g=l.length,o=a.gotHeight,j=a.gotWidth,e=a.height,c=a.width,b=(j?1:0)|(o?2:0),p=h.anchorDimensions,m,s,n,r,k,d;if(!p){return true}for(k=0;k<g;k++){s=l[k];n=s.getMarginInfo();m=s.target.anchorSpec;if(j&&s.widthModel.calculated){d=m.right(c)-n.width;d=q.adjustWidthAnchor(d,s);s.setWidth(d)}if(o&&s.heightModel.calculated){r=m.bottom(e)-n.height;r=q.adjustHeightAnchor(r,s);s.setHeight(r)}}return(b&p)===p},anchorFactory:{offset:function(a){return function(b){return b+a}},ratio:function(a){return function(b){return Math.floor(b*a)}},standard:function(a){return function(b){return b-a}}},parseAnchor:function(c,g,b){if(c&&c!=="none"){var d=this.anchorFactory,e;if(this.parseAnchorRE.test(c)){return d.standard(b-g)}if(c.indexOf("%")!==-1){return d.ratio(parseFloat(c.replace("%",""))*0.01)}e=parseInt(c,10);if(!isNaN(e)){return d.offset(e)}}return null},adjustWidthAnchor:function(b,a){return b},adjustHeightAnchor:function(b,a){return b},configureItem:function(g){var e=this,a=e.owner,d=g.anchor,b,c,h;Ext.layout.container.Auto.prototype.configureItem.apply(this,arguments);if(!g.anchor&&g.items&&!Ext.isNumber(g.width)){g.anchor=d=e.defaultAnchor}if(a.anchorSize){if(typeof a.anchorSize==="number"){c=a.anchorSize}else{c=a.anchorSize.width;h=a.anchorSize.height}}else{c=a.initialConfig.width;h=a.initialConfig.height}if(d){b=d.split(" ");g.anchorSpec={right:e.parseAnchor(b[0],g.initialConfig.width,c),bottom:e.parseAnchor(b[1],g.initialConfig.height,h)}}},sizePolicy:{$:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},b:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},r:{$:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},b:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}}},getItemSizePolicy:function(c){var e=c.anchorSpec,a="$",d=this.sizePolicy,b;if(e){b=this.owner.getSizeModel();if(e.right&&!b.width.shrinkWrap){d=d.r}if(e.bottom&&!b.height.shrinkWrap){a="b"}}return d[a]}},0,0,0,0,["layout.anchor"],0,[Ext.layout.container,"Anchor",Ext.layout,"AnchorLayout"],0));(Ext.cmd.derive("Ext.dashboard.Panel",Ext.panel.Panel,{cls:"x-dashboard-panel",anchor:"100%",layout:"fit",frame:true,closable:true,collapsible:true,animCollapse:true,titleCollapse:true,stateful:true,draggable:{moveOnDrag:false},animateClose:true,loadMask:true,loadMessage:"Loading...",minHeight:90,resizable:true,resizeHandles:"s",doClose:function(){var a=this;if(a.animateClose){if(!a.closing){a.closing=true;a.el.animate({opacity:0,callback:a.finishClose,scope:a})}}else{a.finishClose()}},finishClose:function(){var b=this,a=b.closeAction;b.closing=false;b.fireEvent("close",b);Ext.suspendLayouts();b[a]();Ext.resumeLayouts(true);if(a==="hide"){b.el.setOpacity(1)}},afterRender:function(){Ext.panel.Panel.prototype.afterRender.call(this);if(this.loading){this.onViewBeforeLoad()}},getLoadMask:function(){var c=this,b=c.rendered&&c.loadMask,a;if(b&&!b.isComponent){a={target:c};if(b===true){b=a}else{Ext.apply(a,b)}c.loadMask=b=Ext.ComponentManager.create(a,"loadmask")}return b||null},onAdd:function(a){Ext.panel.Panel.prototype.onAdd.apply(this,arguments);a.on({beforeload:"onViewBeforeLoad",load:"onViewLoaded",scope:this})},onViewBeforeLoad:function(){this.loading=true;var a=this.getLoadMask();if(a){a.show()}},onViewLoaded:function(){this.loading=false;var b=this.getLoadMask();if(b){b.hide()}var a=this.items.getAt(0);if(a.getTitle){var c=a.getTitle();if(c){this.setTitle(c)}}},setBox:function(a){this.setSize(a.width,a.height)},getState:function(){var a=this,b=Ext.panel.Panel.prototype.getState.call(this)||{};if(!b.collapsed){a.addPropertyToState(b,"height",a.rendered?a.getHeight():a.height||a.minHeight||100)}return b}},0,["dashboard-panel"],["component","box","container","panel","dashboard-panel"],{component:true,box:true,container:true,panel:true,"dashboard-panel":true},["widget.dashboard-panel"],0,[Ext.dashboard,"Panel"],0));(Ext.cmd.derive("Ext.dashboard.Column",Ext.container.Container,{layout:"anchor",isDashboardColumn:true,defaultType:"dashboard-panel",cls:"x-dashboard-column",synthetic:true,onRemove:function(k,h){var j=this,d=j.ownerCt,c,a,b,e=0,g;if(d&&j.items.getCount()===0){c=Ext.Array.filter(d.query(">"+j.xtype+"[rowIndex="+j.rowIndex+"]"),function(i){return i!==j});a=c.length;if(!j.destroying&&!j.isDestroyed){d.remove(j);if(a===1){c[0].columnWidth=1}else{for(g=0;g<a;g++){e+=c[g].columnWidth||0}for(g=0;g<a;g++){b=c[g].columnWidth;c[g].columnWidth=Math.floor(b/e*100)/100}}if(h){d.updateLayout()}}}}},0,["dashboard-column"],["component","box","container","dashboard-column"],{component:true,box:true,container:true,"dashboard-column":true},["widget.dashboard-column"],0,[Ext.dashboard,"Column"],0));(Ext.cmd.derive("Ext.layout.container.Column",Ext.layout.container.Auto,{alternateClassName:"Ext.layout.ColumnLayout",type:"column",itemCls:"x-column",targetCls:"x-column-layout-ct",clearSide:"left",columnWidthSizePolicy:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},createsInnerCt:true,manageOverflow:true,setsItemSize:true,needsItemSize:true,isItemShrinkWrap:function(a){return true},getItemSizePolicy:function(a,b){if(a.columnWidth){if(!b){b=this.owner.getSizeModel()}if(!b.width.shrinkWrap){return this.columnWidthSizePolicy}}return this.autoSizePolicy},calculateItems:function(d,a){var p=this,n=p.columnCount,e=d.targetContext,o=d.childItems,l=o.length,b=0,g=a.gotWidth,j,q,h,c,k,m;if(g===false){e.domBlock(p,"width");j=true}else{if(g){q=a.width}else{return true}}for(h=0;h<l;++h){c=o[h];if(n){if(h%n){c.setProp("clear",null)}else{c.setProp("clear",p.clearSide)}}k=c.getMarginInfo().width;if(!c.widthModel.calculated){m=c.getProp("width");if(typeof m!=="number"){c.block(p,"width");j=true}b+=m+k}}if(!j){q=(q<b)?0:q-b;for(h=0;h<l;++h){c=o[h];if(c.widthModel.calculated){k=c.marginInfo.width;m=c.target.columnWidth;m=Math.floor(m*q)-k;m=c.setWidth(m);b+=m+k}}d.setContentWidth(b+d.paddingContext.getPaddingInfo().width)}return !j}},0,0,0,0,["layout.column"],0,[Ext.layout.container,"Column",Ext.layout,"ColumnLayout"],0));Ext.define("Ext.rtl.layout.container.Column",{override:"Ext.layout.container.Column",getRenderData:function(){var a=(arguments.callee.$previous||Ext.layout.container.Auto.prototype.getRenderData).call(this);if(this.owner.getInherited().rtl){this.clearSide="right";a.innerCtCls=(a.innerCtCls||"")+" x-rtl"}return a}});(Ext.cmd.derive("Ext.dd.DragTracker",Ext.Base,{active:false,trackOver:false,tolerance:5,autoStart:false,constructor:function(a){var b=this;Ext.apply(b,a);b.dragRegion=new Ext.util.Region(0,0,0,0);if(b.el){b.initEl(b.el)}b.mixins.observable.constructor.call(b);if(b.disabled){b.disable()}},initEl:function(b){var c=this,a=c.delegate;c.el=b=Ext.get(b);if(a&&a.isElement){c.handle=a}c.delegate=c.handle?undefined:c.delegate;if(!c.handle){c.handle=b}c.handleListeners={scope:c,delegate:c.delegate,mousedown:c.onMouseDown,dragstart:c.onDragStart};if(!Ext.supports.TouchEvents&&(c.trackOver||c.overCls)){Ext.apply(c.handleListeners,{mouseover:c.onMouseOver,mouseout:c.onMouseOut})}c.mon(c.handle,c.handleListeners);c.keyNav=new Ext.util.KeyNav({target:b,up:c.onResizeKeyDown,left:c.onResizeKeyDown,right:c.onResizeKeyDown,down:c.onResizeKeyDown,scope:c})},disable:function(){this.disabled=true},enable:function(){this.disabled=false},destroy:function(){var a=this;a.endDrag({});a.el=a.handle=a.onBeforeStart=a.onStart=a.onDrag=a.onEnd=null;a.callParent()},onMouseOver:function(k,j){var g=this,h,d,c,a,b;if(!g.disabled){if(k.within(k.target,true,true)||g.delegate){h=g.handleCls;g.mouseIsOut=false;if(h){for(c=0,a=g.handleEls.length;c<a;c++){d=g.handleEls[c];b=d.delegateCls;if(!b){b=d.delegateCls=[h,"-",d.region,"-over"].join("")}d.addCls([b,g.overCls])}}g.fireEvent("mouseover",g,k,g.delegate?k.getTarget(g.delegate,j):g.handle)}}},onMouseOut:function(g){var d=this,c,b,a;if(d.mouseIsDown){d.mouseIsOut=true}else{if(d.handleCls){for(b=0,a=d.handleEls.length;b<a;b++){c=d.handleEls[b];c.removeCls([c.delegateCls,d.overCls])}}d.fireEvent("mouseout",d,g)}},onMouseDown:function(c,b){var a=this;if(a.disabled||c.dragTracked){return}a.dragTarget=a.delegate?b:a.handle.dom;a.startXY=a.lastXY=c.getXY();a.startRegion=Ext.fly(a.dragTarget).getRegion();if(a.fireEvent("mousedown",a,c)===false||a.fireEvent("beforedragstart",a,c)===false||a.onBeforeStart(c)===false){return}a.mouseIsDown=true;c.dragTracked=true;a.el.setCapture();c.stopPropagation();if(a.preventDefault!==false){c.preventDefault()}Ext.getDoc().on({scope:a,capture:true,mouseup:a.onMouseUp,mousemove:a.onMouseMove,selectstart:a.stopSelect});a.dragEnded=false;if(!a.tolerance){a.triggerStart()}else{if(a.autoStart){a.timer=Ext.defer(a.triggerStart,a.autoStart===true?1000:a.autoStart,a,[c])}}},onMouseMove:function(g,d){var b=this,c=g.getXY(),a=b.startXY;g.stopPropagation();if(b.preventDefault!==false){g.preventDefault()}if(b.dragEnded){return}b.lastXY=c;if(!b.active){if(Math.max(Math.abs(a[0]-c[0]),Math.abs(a[1]-c[1]))>b.tolerance){b.triggerStart(g)}else{return}}if(b.fireEvent("mousemove",b,g)===false){b.onMouseUp(g)}else{b.onDrag(g);b.fireEvent("drag",b,g)}},onMouseUp:function(b){var a=this;a.mouseIsDown=false;if(a.mouseIsOut){a.mouseIsOut=false;a.onMouseOut(b)}if(a.preventDefault!==false){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent("mouseup",a,b);a.endDrag(b)},endDrag:function(c){var b=this,a=b.active;Ext.getDoc().un({mousemove:b.onMouseMove,mouseup:b.onMouseUp,selectstart:b.stopSelect,capture:true,scope:b});b.clearStart();b.active=false;if(a){b.dragEnded=true;b.onEnd(c);b.fireEvent("dragend",b,c)}b._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=true;a.onStart(b);a.fireEvent("dragstart",a,b)},clearStart:function(){var a=this.timer;if(a){clearTimeout(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return false},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onEnd:function(a){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var a=this;if(a.constrainTo){if(a.constrainTo instanceof Ext.util.Region){return a.constrainTo}if(!a._constrainRegion){a._constrainRegion=Ext.fly(a.constrainTo).getViewRegion()}}else{if(!a._constrainRegion){a._constrainRegion=a.getDragCt().getViewRegion()}}return a._constrainRegion},getXY:function(a){return a?this.constrainModes[a](this,this.lastXY):this.lastXY},getOffset:function(c){var b=this.getXY(c),a=this.startXY;return[b[0]-a[0],b[1]-a[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(b,d){var c=b.dragRegion,a=b.getConstrainRegion();if(!a){return d}c.x=c.left=c[0]=c.right=d[0];c.y=c.top=c[1]=c.bottom=d[1];c.constrainTo(a);return[c.left,c.top]},dragTarget:function(c,g){var b=c.startXY,e=c.startRegion.copy(),a=c.getConstrainRegion(),d;if(!a){return g}e.translateBy(g[0]-b[0],g[1]-b[1]);if(e.right>a.right){g[0]+=d=(a.right-e.right);e.left+=d}if(e.left<a.left){g[0]+=(a.left-e.left)}if(e.bottom>a.bottom){g[1]+=d=(a.bottom-e.bottom);e.top+=d}if(e.top<a.top){g[1]+=(a.top-e.top)}return g}}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.dd,"DragTracker"],0));(Ext.cmd.derive("Ext.resizer.SplitterTracker",Ext.dd.DragTracker,{enabled:true,overlayCls:"x-resizable-overlay",createDragOverlay:function(){var a,b=Ext.dom.Element;a=this.overlay=Ext.getBody().createChild({role:"presentation",cls:this.overlayCls,html:"&#160;"});a.unselectable();a.setSize(b.getDocumentWidth(),b.getDocumentHeight());a.show()},getPrevCmp:function(){var a=this.getSplitter();return a.previousSibling(":not([hidden])")},getNextCmp:function(){var a=this.getSplitter();return a.nextSibling(":not([hidden])")},onBeforeStart:function(i){var d=this,g=d.getPrevCmp(),a=d.getNextCmp(),c=d.getSplitter().collapseEl,h=i.getTarget(),b;if(!g||!a){return false}if(c&&h===c.dom){return false}if(a.collapsed||g.collapsed){return false}d.prevBox=g.getEl().getBox();d.nextBox=a.getEl().getBox();d.constrainTo=b=d.calculateConstrainRegion();if(!b){return false}return b},onMouseDown:function(b,a){Ext.dd.DragTracker.prototype.onMouseDown.call(this,b,a);if(this.mouseIsDown&&this.getSplitter().el.dom===a){Ext.dom.Element.maskIframes()}},onMouseUp:function(a){Ext.dd.DragTracker.prototype.onMouseUp.call(this,a);Ext.dom.Element.unmaskIframes()},onStart:function(b){var a=this.getSplitter();this.createDragOverlay();a.addCls(a.baseCls+"-active")},onResizeKeyDown:function(g){var b=this,d=b.getSplitter(),a=g.getKey(),c=d.orientation==="vertical"?0:1,i=a===g.UP||a===g.LEFT?-1:1,h;if(!b.active&&b.onBeforeStart(g)){Ext.fly(g.target).on("keyup",b.onResizeKeyUp,b);b.triggerStart(g);b.onMouseDown(g);b.startXY=d.getXY();b.lastKeyDownXY=Ext.Array.slice(b.startXY);h=b.easing=new Ext.fx.easing.Linear();h.setStartTime(Ext.Date.now());h.setStartValue(1);h.setEndValue(4);h.setDuration(2000)}if(b.active){b.lastKeyDownXY[c]=Math.round(b.lastKeyDownXY[c]+(i*b.easing.getValue()));b.lastXY=b.lastKeyDownXY;d.setXY(b.getXY("dragTarget"))}},onResizeKeyUp:function(a){this.onMouseUp(a)},calculateConstrainRegion:function(){var h=this,a=h.getSplitter(),i=a.getWidth(),j=a.defaultSplitMin,b=a.orientation,e=h.prevBox,k=h.getPrevCmp(),c=h.nextBox,g=h.getNextCmp(),m,l,d;if(b==="vertical"){d={prevCmp:k,nextCmp:g,prevBox:e,nextBox:c,defaultMin:j,splitWidth:i};m=new Ext.util.Region(e.y,h.getVertPrevConstrainRight(d),e.bottom,h.getVertPrevConstrainLeft(d));l=new Ext.util.Region(c.y,h.getVertNextConstrainRight(d),c.bottom,h.getVertNextConstrainLeft(d))}else{m=new Ext.util.Region(e.y+(k.minHeight||j),e.right,(k.maxHeight?e.y+k.maxHeight:c.bottom-(g.minHeight||j))+i,e.x);l=new Ext.util.Region((g.maxHeight?c.bottom-g.maxHeight:e.y+(k.minHeight||j))-i,c.right,c.bottom-(g.minHeight||j),c.x)}return m.intersect(l)},performResize:function(n,h){var p=this,a=p.getSplitter(),j=a.orientation,q=p.getPrevCmp(),o=p.getNextCmp(),b=a.ownerCt,l=b.query(">[flex]"),m=l.length,c=j==="vertical",k=0,g=c?"width":"height",d=0,r,s;for(;k<m;k++){r=l[k];s=c?r.getWidth():r.getHeight();d+=s;r.flex=s}h=c?h[0]:h[1];if(q){s=p.prevBox[g]+h;if(q.flex){q.flex=s}else{q[g]=s}}if(o){s=p.nextBox[g]-h;if(o.flex){o.flex=s}else{o[g]=s}}b.updateLayout()},endDrag:function(){var a=this;if(a.overlay){a.overlay.destroy();delete a.overlay}Ext.dd.DragTracker.prototype.endDrag.apply(this,arguments)},onEnd:function(c){var a=this,b=a.getSplitter();b.removeCls(b.baseCls+"-active");a.performResize(c,a.getResizeOffset())},onDrag:function(g){var c=this,h=c.getOffset("dragTarget"),d=c.getSplitter(),b=d.getEl(),a=d.orientation;if(a==="vertical"){b.setX(c.startRegion.left+h[0])}else{b.setY(c.startRegion.top+h[1])}},getSplitter:function(){return this.splitter},getVertPrevConstrainRight:function(a){return(a.prevCmp.maxWidth?a.prevBox.x+a.prevCmp.maxWidth:a.nextBox.right-(a.nextCmp.minWidth||a.defaultMin))+a.splitWidth},getVertPrevConstrainLeft:function(a){return a.prevBox.x+(a.prevCmp.minWidth||a.defaultMin)},getVertNextConstrainRight:function(a){return a.nextBox.right-(a.nextCmp.minWidth||a.defaultMin)},getVertNextConstrainLeft:function(a){return(a.nextCmp.maxWidth?a.nextBox.right-a.nextCmp.maxWidth:a.prevBox.x+(a.prevBox.minWidth||a.defaultMin))-a.splitWidth},getResizeOffset:function(){return this.getOffset("dragTarget")}},0,0,0,0,0,0,[Ext.resizer,"SplitterTracker"],0));Ext.define("Ext.rtl.resizer.SplitterTracker",{override:"Ext.resizer.SplitterTracker",getVertPrevConstrainLeft:function(a){return(!this.splitter.getInherited().rtl!==!Ext.rootInheritedState.rtl)?((a.prevCmp.maxWidth?a.prevBox.right-a.prevCmp.maxWidth:a.nextBox.x+(a.nextCmp.minWidth||a.defaultMin))-a.splitWidth):arguments.callee.$previous.apply(this,arguments)},getVertPrevConstrainRight:function(a){return(!this.splitter.getInherited().rtl!==!Ext.rootInheritedState.rtl)?a.prevBox.right-(a.prevCmp.minWidth||a.defaultMin):arguments.callee.$previous.apply(this,arguments)},getVertNextConstrainLeft:function(a){return(!this.splitter.getInherited().rtl!==!Ext.rootInheritedState.rtl)?a.nextBox.x+(a.nextCmp.minWidth||a.defaultMin):arguments.callee.$previous.apply(this,arguments)},getVertNextConstrainRight:function(a){return(!this.splitter.getInherited().rtl!==!Ext.rootInheritedState.rtl)?((a.nextCmp.maxWidth?a.nextBox.x+a.nextCmp.maxWidth:a.prevBox.right-(a.prevBox.minWidth||a.defaultMin))+a.splitWidth):arguments.callee.$previous.apply(this,arguments)},getResizeOffset:function(){var a=this.getOffset("dragTarget");if(!this.splitter.getInherited().rtl!==!Ext.rootInheritedState.rtl){a[0]=-a[0]}return a}});(Ext.cmd.derive("Ext.layout.container.ColumnSplitterTracker",Ext.resizer.SplitterTracker,{onStart:function(a){Ext.apply(this.getSplitter().el.dom.style,{top:0,left:0});Ext.resizer.SplitterTracker.prototype.onStart.apply(this,arguments)},endDrag:function(){var a=this;Ext.resizer.SplitterTracker.prototype.endDrag.apply(this,arguments);a.getSplitter().el.dom.style.left=0},performResize:function(g,d){var j=this,m=j.getPrevCmp(),i=j.getNextCmp(),b=j.getSplitter(),c=b.ownerCt,l=d[0],k,a,h;if(m&&i){m.width=k=j.prevBox.width+l;i.width=a=j.nextBox.width-l;h=(m.columnWidth+i.columnWidth)/(k+a);m.columnWidth=k*h;i.columnWidth=a*h}c.updateLayout()}},0,0,0,0,0,0,[Ext.layout.container,"ColumnSplitterTracker"],0));(Ext.cmd.derive("Ext.layout.container.ColumnSplitter",Ext.resizer.Splitter,{isSplitter:true,synthetic:true,cls:"x-splitter-vertical",orientation:"vertical",collapseDirection:"left",trackerClass:"Ext.layout.container.ColumnSplitterTracker",width:7,height:1,getTrackerConfig:function(){var a=Ext.resizer.Splitter.prototype.getTrackerConfig.call(this);a.xclass=this.trackerClass;return a}},0,["columnsplitter"],["component","box","splitter","columnsplitter"],{component:true,box:true,splitter:true,columnsplitter:true},["widget.columnsplitter"],0,[Ext.layout.container,"ColumnSplitter"],0));(Ext.cmd.derive("Ext.layout.container.Dashboard",Ext.layout.container.Column,{type:"dashboard",firstColumnCls:"x-dashboard-column-first",lastColumnCls:"x-dashboard-column-last",getSplitterConfig:function(){return{xtype:"columnsplitter"}},getColumns:function(a){var b=Ext.Array;return b.filter(b.from(a),function(c){return c.target&&c.target.isSplitter!==true})},beginLayout:function(e){var n=this;Ext.layout.container.Column.prototype.beginLayout.call(this,e);var k=e.childItems,q=(e.rows=[]),d=k.length,l=2,h=0,r=0,p=n.owner.getMaxColumns(),c,j,g,o,a,m,b;for(j=0;j<d;++j){m=(c=k[j]).target;a=m&&m.isSplitter;h+=(a?0:1);b=a?0:m.columnWidth||1;if(l+b>1||(p&&(h>p))){if(g){g.orphan=1;g.el.setHeight(0)}l=0;h=1;if(q.length){r=q.length-1;n.syncFirstLast(n.getColumns(q[r].items))}q.push(o={index:q.length,items:[],maxHeight:0})}l+=b;o.items.push(c);c.row=o;m.rowIndex=o.index;if(a){c.el.setHeight(1)}g=c}if(q.length){n.syncFirstLast(n.getColumns(q[q.length-1].items))}},beforeLayoutCycle:function(c){var b=this,a=b.owner.items;if(b.splitterGen!==a.generation){b.syncSplitters();b.splitterGen=a.generation}Ext.layout.container.Column.prototype.beforeLayoutCycle.apply(this,arguments)},finishedLayout:function(e){var b=e.childItems,a=b.length,d,j,c,g,h;Ext.layout.container.Column.prototype.finishedLayout.call(this,e);for(c=0;c<a;c+=2){g=(j=b[c]).target;d=g.lastBox;h=j.row;h.maxHeight=Math.max(h.maxHeight,d.height);g.width=d.width}for(c=1;c<a;c+=2){g=(j=b[c]).target;if(!j.orphan){g.el.setHeight(j.row.maxHeight)}}},syncSplitters:function(){var h=this,a=h.owner,b=a.items.items,c=b.length,e=true,d=false,g,i;while(c-->0){g=b[c];if(d){if(g.isSplitter){d=false}else{if(e){e=false;a.suspendLayouts()}i=a.add(c+1,h.getSplitterConfig())}}else{if(g.isSplitter){if(e){e=false;a.suspendLayouts()}a.remove(g)}else{d=true}}}while(b.length&&(g=b[0]).isSplitter){if(e){e=false;a.suspendLayouts()}a.remove(g)}if(!e){a.resumeLayouts()}},syncFirstLast:function(e){var g=this,b=g.firstColumnCls,j=g.lastColumnCls,d,a=[b,j],c,k,h;e=Ext.Array.from(e);d=e.length;for(c=0;c<d;++c){k=e[c].target;h=(c===d-1);if(!c){if(h){k.addCls(a)}else{k.addCls(b);k.removeCls(j)}}else{if(h){k.addCls(j);k.removeCls(b)}else{k.removeCls(a)}}}}},0,0,0,0,["layout.dashboard"],0,[Ext.layout.container,"Dashboard"],0));(Ext.cmd.derive("Ext.dd.DDTarget",Ext.dd.DragDrop,{constructor:function(c,a,b){if(c){this.initTarget(c,a,b)}},getDragEl:Ext.emptyFn,isValidHandleChild:Ext.emptyFn,startDrag:Ext.emptyFn,endDrag:Ext.emptyFn,onDrag:Ext.emptyFn,onDragDrop:Ext.emptyFn,onDragEnter:Ext.emptyFn,onDragOut:Ext.emptyFn,onDragOver:Ext.emptyFn,onInvalidDrop:Ext.emptyFn,onMouseDown:Ext.emptyFn,onMouseUp:Ext.emptyFn,setXConstraint:Ext.emptyFn,setYConstraint:Ext.emptyFn,resetConstraints:Ext.emptyFn,clearConstraints:Ext.emptyFn,clearTicks:Ext.emptyFn,setInitPosition:Ext.emptyFn,setDragElId:Ext.emptyFn,setHandleElId:Ext.emptyFn,setOuterHandleElId:Ext.emptyFn,addInvalidHandleClass:Ext.emptyFn,addInvalidHandleId:Ext.emptyFn,addInvalidHandleType:Ext.emptyFn,removeInvalidHandleClass:Ext.emptyFn,removeInvalidHandleId:Ext.emptyFn,removeInvalidHandleType:Ext.emptyFn,toString:function(){return("DDTarget "+this.id)}},3,0,0,0,0,0,[Ext.dd,"DDTarget"],0));(Ext.cmd.derive("Ext.dd.ScrollManager",Ext.Base,{singleton:true,dirTrans:{up:-1,left:-1,down:1,right:1},constructor:function(){var a=Ext.dd.DragDropManager;a.fireEvents=Ext.Function.createSequence(a.fireEvents,this.onFire,this);a.stopDrag=Ext.Function.createSequence(a.stopDrag,this.onStop,this);this.doScroll=this.doScroll.bind(this);this.ddmInstance=a;this.els={};this.dragEl=null;this.proc={}},onStop:function(a){var b=Ext.dd.ScrollManager;b.dragEl=null;b.clearProc()},triggerRefresh:function(){if(this.ddmInstance.dragCurrent){this.ddmInstance.refreshCache(this.ddmInstance.dragCurrent.groups)}},doScroll:function(){var g=this;if(g.ddmInstance.dragCurrent){var a=g.proc,e=a.el,c=a.component,h=a.el.ddScrollConfig,i=h&&h.increment?h.increment:g.increment,b=h&&"animate" in h?h.animate:g.animate,d=function(){g.triggerRefresh()};if(b){if(b===true){b={callback:d}}else{b.callback=b.callback?Ext.Function.createSequence(b.callback,d):d}}if(c){i=i*g.dirTrans[a.dir];if(a.dir==="up"||a.dir==="down"){c.scrollBy(0,i,b)}else{c.scrollBy(i,0,b)}}else{e.scroll(a.dir,i,b)}if(!b){d()}}},clearProc:function(){var a=this.proc;if(a.id){clearInterval(a.id)}a.id=0;a.el=null;a.dir=""},startProc:function(c,b){var d=this,a=d.proc,g,e;d.clearProc();a.el=c;a.dir=b;g=c.ddScrollConfig?c.ddScrollConfig.ddGroup:undefined;e=(c.ddScrollConfig&&c.ddScrollConfig.frequency)?c.ddScrollConfig.frequency:d.frequency;if(g===undefined||d.ddmInstance.dragCurrent.ddGroup===g){a.id=Ext.interval(d.doScroll,e)}},onFire:function(h,k){var j=this,l,i,d,a,b,g,c;if(k||!j.ddmInstance.dragCurrent){return}if(!j.dragEl||j.dragEl!==j.ddmInstance.dragCurrent){j.dragEl=j.ddmInstance.dragCurrent;j.refreshCache()}l=h.getPoint();i=j.proc;d=j.els;for(a in d){b=d[a];g=b._region;c=b.ddScrollConfig||j;if(g&&g.contains(l)&&b.isScrollable()){if(g.bottom-l.y<=c.vthresh){if(i.el!==b){j.startProc(b,"down")}return}else{if(g.right-l.x<=c.hthresh){if(i.el!==b){j.startProc(b,"right")}return}else{if(l.y-g.top<=c.vthresh){if(i.el!==b){j.startProc(b,"up")}return}else{if(l.x-g.left<=c.hthresh){if(i.el!==b){j.startProc(b,"left")}return}}}}}}j.clearProc()},register:function(c){if(Ext.isArray(c)){for(var b=0,a=c.length;b<a;b++){this.register(c[b])}}else{c=Ext.get(c);this.els[c.id]=c}},unregister:function(c){if(Ext.isArray(c)){for(var b=0,a=c.length;b<a;b++){this.unregister(c[b])}}else{c=Ext.get(c);delete this.els[c.id]}},vthresh:25*(window.devicePixelRatio||1),hthresh:25*(window.devicePixelRatio||1),increment:100,frequency:500,animate:true,animDuration:0.4,ddGroup:undefined,refreshCache:function(){var a=this.els,b;for(b in a){if(typeof a[b]==="object"){a[b]._region=a[b].getRegion()}}}},1,0,0,0,0,0,[Ext.dd,"ScrollManager"],0));(Ext.cmd.derive("Ext.dd.DropTarget",Ext.dd.DDTarget,{constructor:function(b,a){this.el=Ext.get(b);Ext.apply(this,a);if(this.containerScroll){Ext.dd.ScrollManager.register(this.el)}Ext.dd.DDTarget.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{isTarget:true})},containerScroll:false,dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",isTarget:true,isNotifyTarget:true,notifyEnter:function(a,c,b){if(this.overClass){this.el.addCls(this.overClass)}return this.dropAllowed},notifyOver:function(a,c,b){return this.dropAllowed},notifyOut:function(a,c,b){if(this.overClass){this.el.removeCls(this.overClass)}},notifyDrop:function(a,c,b){if(this.overClass){this.el.removeCls(this.overClass)}return false},destroy:function(){Ext.dd.DDTarget.prototype.destroy.call(this);if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.el)}}},1,0,0,0,0,0,[Ext.dd,"DropTarget"],0));(Ext.cmd.derive("Ext.dashboard.DropZone",Ext.dd.DropTarget,{ddScrollConfig:{vthresh:75,hthresh:-1,animate:true,increment:200},containerScroll:true,overClass:"x-dashboard-dd-over",constructor:function(b,a){this.dashboard=b;b.body.ddScrollConfig=this.ddScrollConfig;Ext.dd.DropTarget.prototype.constructor.call(this,b.body,a)},getOverEvent:function(A,v,C){var p=this.dashboard,b=p.body,o=p.items.items,c=b.getBox(),g=o.length,d=v.getXY(),l=d[0]-c.x+b.getScrollLeft(),j=d[1]-c.y+b.getScrollTop(),r={columnIndex:0,column:null,dashboard:p,above:null,extensible:false,beforeAfter:0,data:C,panel:C.panel,rawEvent:v,source:A,status:this.dropAllowed},n,B,s,q,z,m,u,a,h;for(s=0;s<g;s+=2){z=o[s];m=z.lastBox.width;if(o[s+1]){m+=o[s+1].lastBox.width}if(v.within(z.el)){r.columnIndex=s;r.column=z;r.extensible=this.isRowExtensible(z.rowIndex);n=Math.min(80,m*0.2);r.beforeAfter=n=(r.extensible&&((l<n)?-1:((l>m-n)?1:0)));if(!n||!r.extensible){a=z.items.items;for(q=0,u=a.length;q<u;++q){h=a[q];B=h.el.getHeight();if(j<B/2){r.above=h;break}j-=B}}break}l-=m}return r},notifyOver:function(p,i,h){var m=this,n=m.dashboard,j=m.getOverEvent(p,i,h),c=j.column&&j.column.el,l=p.proxy,b,d=j.above,g,a=0,o,k=n.hasListeners;h.lastOver=j;if((!k.validatedrop||n.fireEvent("validatedrop",j)!==false)&&(!k.beforedragover||n.fireEvent("beforedragover",j)!==false)){b=p.panelProxy.getProxy();l.getProxy().setWidth("auto");if(c){a=g=c.getWidth();if(j.beforeAfter){p.panelProxy.moveProxy(c.dom,c.dom.firstChild);a=g/2;b.setWidth(a)}else{if(d){p.panelProxy.moveProxy(d.el.dom.parentNode,d.el.dom)}else{p.panelProxy.moveProxy(c.dom,null)}b.setWidth("auto")}if(a){}b.setStyle({"float":"none",clear:"none","margin-left":(j.beforeAfter>0)?(g-a-c.getPadding("lr"))+"px":"","margin-top":"7px"})}else{o=n.body.getPadding("lr");b.setStyle({"float":"left",clear:"left",margin:"0 7px 0 7px"});b.setWidth(n.body.getWidth()-o);p.panelProxy.moveProxy(n.body.dom.firstChild.firstChild,null)}this.scrollPos=n.body.getScroll();if(k.dragover){n.fireEvent("dragover",j)}}return j.status},isRowExtensible:function(d){var c=this,b=c.dashboard,a=b.getMaxColumns()||1;return Ext.Array.from(b.query(">dashboard-column[rowIndex="+d+"]")).length<a},notifyDrop:function(p,h,c){Ext.dd.DropTarget.prototype.notifyDrop.apply(this,arguments);var l=this.dashboard,i=c.lastOver,a=i.panel,m=a.ownerCt,d=i.column,k=d?i.beforeAfter:1,g=m.items.indexOf(a),o=d?(i.above?d.items.indexOf(i.above):d.items.getCount()):0,n,b,j=l.hasListeners;if(m===d){if(m.items.getCount()===1){return}if(!k){if(g<o){--o}if(g===o){return}}}if((j.validatedrop&&l.fireEvent("validatedrop",i)===false)||(j.beforedrop&&l.fireEvent("beforedrop",i)===false)){return}Ext.suspendLayouts();a.isMoving=true;if(k){n=l.items.indexOf(d);if(n<0){n=l.items.getCount()}else{if(k>0){++n}}b=l.createColumn();if(d){b.columnWidth=d.columnWidth=d.columnWidth/2;delete d.width}else{b.columnWidth=1}d=l.insert(n,b);o=0}a.el.dom.style.display="";d.insert(o,a);a.isMoving=false;d.updateLayout();Ext.resumeLayouts(true);if(j.drop){l.fireEvent("drop",i)}}},1,0,0,0,0,0,[Ext.dashboard,"DropZone"],0));(Ext.cmd.derive("Ext.dashboard.Part",Ext.Base,{factoryConfig:{type:"part"},isPart:true,_lastId:0,config:{id:null,dashboard:null,viewTemplate:{collapsed:"{collapsed}",columnIndex:"{columnIndex}",id:"{id}",title:"{title}",height:"{height}"}},viewTemplateOptions:{excludeProperties:{bind:1}},valueRe:/^[{][a-z]*[}]$/i,constructor:function(a){this.initConfig(a)},applyViewTemplate:function(a){return Ext.util.ObjectTemplate.create(a,this.viewTemplateOptions)},displayForm:function(a,b,d,c){d.call(c||this,{})},createView:function(b){var d=this,c=d.getViewTemplate(),a=c.apply(b);a.dashboard=d.getDashboard();a.part=d;a._partConfig=b;return a}},1,0,0,0,["part.part"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.dashboard,"Part"],0));(Ext.cmd.derive("Ext.dashboard.Dashboard",Ext.panel.Panel,{isDashboard:true,cls:"x-dashboard",bodyCls:"x-dashboard-body",defaultType:"dashboard-column",scrollable:true,layout:null,stateful:false,idSeed:1,config:{parts:null},renderConfig:{maxColumns:4},initComponent:function(){var a=this;if(!a.layout){a.layout={type:"dashboard"}}Ext.panel.Panel.prototype.initComponent.call(this)},applyParts:function(b,c){if(!c){c=new Ext.util.Collection({decoder:Ext.Factory.part})}var d,a;for(d in b){a=b[d];if(Ext.isString(a)){a={type:a}}a.id=d;a.dashboard=this;c.add(a)}return c},getPart:function(a){var b=this.getParts();return b.getByKey(a)},addNew:function(c,b,e){var d=this,a=d.getPart(c);a.displayForm(null,null,function(g){g.type=c;d.addView(g,b,e)})},addView:function(k,e,i){var h=this,g=h.query("dashboard-column"),c=g.length,d=e||0,j=k.id?k:h.createView(k),a=h.columnWidths,b;if(!c){b=h.add(0,h.createColumn({columnWidth:(Ext.isArray(a)?a[0]:1)}));g=[b];c=1}if(d>=c){d=c-1;i=1}if(!i){b=g[d];if(b){return b.add(j)}}if(i>0){++d}b=h.createColumn();if(a){b.columnWidth=a[d]||(a[d]=1)}if(!b.items){b.items=[]}b.items.push(j);b=h.add(b);return b.items.first()},createColumn:function(a){var b=this.cycleLayout;return Ext.apply({items:[],bubbleEvents:["add","remove","childmove","resize"],listeners:{remove:this.onRemoveItem,expand:b,collapse:b,scope:this}},a)},createView:function(c){var e=this,d=c.type,b=e.getPart(d),a=b.createView(c);if(!a.id){a.id=e.id+"_"+d+(e.idSeed++)}a.bubbleEvents=Ext.Array.from(a.bubbleEvents).concat(["expand","collapse"]);a.stateful=e.stateful;return a},initEvents:function(){Ext.panel.Panel.prototype.initEvents.call(this);this.dd=new Ext.dashboard.DropZone(this,this.dropConfig)},cycleLayout:function(){this.updateLayout()},beforeDestroy:function(){if(this.dd){Ext.destroy(this.dd)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},applyState:function(g){delete g.items;var e=this;Ext.panel.Panel.prototype.applyState.call(this,g);var b=g.columnWidths,a=e.items.items,d=a.length,c,h;if(b){h=b.length;e.columnWidths=[];for(c=0;c<d;++c){e.columnWidths.push(a[c].columnWidth=(c<h)?b[c]:(1/d))}}},getState:function(){var g=this,b=[],a=g.items.items,h=Ext.panel.Panel.prototype.getState.call(this)||{},e=a.length,c,d;for(c=0;c<e;++c){if(!(d=a[c]).isSplitter){b.push(d.columnWidth)}}h.columnWidths=b;h.idSeed=g.idSeed;h.items=g.serializeItems();g.columnWidths=b;return h},initItems:function(){var b=this,a=b.defaultContent,c;if(b.stateful){c=Ext.state.Manager.get(b.getStateId());a=(c&&c.items)||a}if(!b.items&&a){b.items=b.deserializeItems(a)}Ext.panel.Panel.prototype.initItems.call(this)},deserializeItems:function(g){var k=this,c=g.length,e=[],a=k.columnWidths,n=k.getMaxColumns(),d,j,b,h,m,l;for(h=0;h<c;++h){l=g[h];j=Math.min(l.columnIndex||0,n-1);delete l.columnIndex;if(!(d=e[j])){e[j]=d=k.createColumn();b=a&&a[j];if(b){d.columnWidth=b}}m=k.createView(l);d.items.push(m)}for(h=0,c=e.length;h<c;++h){d=e[h];if(!d.columnWidth){d.columnWidth=1/c}}return e},serializeItem:function(a){return Ext.apply({type:a.part.id,id:a.id,columnIndex:a.columnIndex},a._partConfig)},serializeItems:function(){var n=this,m=n.items.items,b=m.length,l=[],h=0,a,g,e,o,d,c;for(e=0;e<b;++e){o=m[e];if(!o.isSplitter){g=o.items.items;for(d=0,c=g.length;d<c;++d){a=g[d];a.columnIndex=h;l.push(n.serializeItem(a))}++h}}return l},onRemoveItem:function(a,b){if(b.stateful&&!b.isMoving){Ext.state.Manager.clear(b.getStateId())}}},0,["dashboard"],["component","box","container","panel","dashboard"],{component:true,box:true,container:true,panel:true,dashboard:true},["widget.dashboard"],0,[Ext.dashboard,"Dashboard"],0));(Ext.cmd.derive("Ext.dd.DragZone",Ext.dd.DragSource,{constructor:function(c,b){var d=this,a;Ext.dd.DragSource.prototype.constructor.call(this,c,b);a=d.containerScroll;if(a){c=d.scrollEl||c;c=Ext.get(c);if(Ext.isObject(a)){c.ddScrollConfig=a}Ext.dd.ScrollManager.register(c)}},getDragData:function(a){return Ext.dd.Registry.getHandleFromEvent(a)},onInitDrag:function(a,b){this.proxy.update(this.dragData.ddel.cloneNode(true));this.onStartDrag(a,b);return true},getRepairXY:function(a){return Ext.fly(this.dragData.ddel).getXY()},destroy:function(){Ext.dd.DragSource.prototype.destroy.call(this);if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.scrollEl||this.el)}}},1,0,0,0,0,0,[Ext.dd,"DragZone"],0));(Ext.cmd.derive("Ext.dd.Registry",Ext.Base,{singleton:true,constructor:function(){this.elements={};this.handles={};this.autoIdSeed=0},getId:function(b,a){if(typeof b==="string"){return b}var c=b.id;if(!c&&a!==false){c="extdd-"+(++this.autoIdSeed);b.id=c}return c},register:function(d,e){e=e||{};if(typeof d==="string"){d=document.getElementById(d)}e.ddel=d;this.elements[this.getId(d)]=e;if(e.isHandle!==false){this.handles[e.ddel.id]=e}if(e.handles){var c=e.handles,b,a;for(b=0,a=c.length;b<a;b++){this.handles[this.getId(c[b])]=e}}},unregister:function(d){var g=this.getId(d,false),e=this.elements[g],c,b,a;if(e){delete this.elements[g];if(e.handles){c=e.handles;for(b=0,a=c.length;b<a;b++){delete this.handles[this.getId(c[b],false)]}}}},getHandle:function(a){if(typeof a!=="string"){a=a.id}return this.handles[a]},getHandleFromEvent:function(b){var a=b.getTarget();return a?this.handles[a.id]:null},getTarget:function(a){if(typeof a!=="string"){a=a.id}return this.elements[a]},getTargetFromEvent:function(b){var a=b.getTarget();return a?this.elements[a.id]||this.handles[a.id]:null}},1,0,0,0,0,0,[Ext.dd,"Registry"],0));(Ext.cmd.derive("Ext.dd.DropZone",Ext.dd.DropTarget,{getTargetFromEvent:function(a){return Ext.dd.Registry.getTargetFromEvent(a)},onNodeEnter:function(d,a,c,b){},onNodeOver:function(d,a,c,b){return this.dropAllowed},onNodeOut:function(d,a,c,b){},onNodeDrop:function(d,a,c,b){return false},onContainerOver:function(a,c,b){return this.dropNotAllowed},onContainerDrop:function(a,c,b){return false},notifyEnter:function(a,c,b){return this.dropNotAllowed},notifyOver:function(a,d,c){var b=this,g=b.getTargetFromEvent(d);if(!g){if(b.lastOverNode){b.onNodeOut(b.lastOverNode,a,d,c);b.lastOverNode=null}return b.onContainerOver(a,d,c)}if(b.lastOverNode!==g){if(b.lastOverNode){b.onNodeOut(b.lastOverNode,a,d,c)}b.onNodeEnter(g,a,d,c);b.lastOverNode=g}return b.onNodeOver(g,a,d,c)},notifyOut:function(a,c,b){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,a,c,b);this.lastOverNode=null}},notifyDrop:function(b,g,d){var c=this,h=c.getTargetFromEvent(g),a=h?c.onNodeDrop(h,b,g,d):c.onContainerDrop(b,g,d);if(c.lastOverNode){c.onNodeOut(c.lastOverNode,b,g,d);c.lastOverNode=null}return a},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)}},0,0,0,0,0,0,[Ext.dd,"DropZone"],0));(Ext.cmd.derive("Ext.dom.Layer",Ext.Element,{alternateClassName:"Ext.Layer",isLayer:true,constructor:function(c,h){c=c||{};var k=this,j=Ext.DomHelper,i=c.parentEl,g=i?Ext.getDom(i):document.body,a=c.hideMode,m="x-"+(c.fixed?"fixed-layer":"layer"),d,b,e,l;if(h){d=Ext.getDom(h);if(!d.parentNode){g.appendChild(d)}}if(!d){d=j.append(g,c.dh||{tag:"div",cls:m})}if(c.id){d.id=c.id}b=d.id;if(b){e=Ext.cache[b];if(e){delete Ext.cache[b];e.dom=null}}Ext.dom.Element.prototype.constructor.call(this,d);if(h){k.addCls(m)}if(c.preventSync){k.preventSync=true}if(c.cls){k.addCls(c.cls)}k.constrain=c.constrain!==false;if(a){k.setVisibilityMode(Ext.Element[a.toUpperCase()])}else{if(c.useDisplay){k.setVisibilityMode(Ext.Element.DISPLAY)}else{k.setVisibilityMode(Ext.Element.VISIBILITY)}}if(c.shadow){k.shadowOffset=c.shadowOffset||4;l={offset:k.shadowOffset,fixed:c.fixed};if(c.shadow!==true){l.mode=c.shadow}k.enableShadow(l)}else{k.shadowOffset=0}if(c.shim){k.enableShim({fixed:c.fixed})}if(c.hidden===true){k.hide()}else{if(c.hidden===false){k.show()}}}},1,0,0,0,0,0,[Ext.dom,"Layer",Ext,"Layer"],0));(Ext.cmd.derive("Ext.event.publisher.MouseEnterLeave",Ext.event.publisher.Dom,{type:"mouseEnterLeave"},0,0,0,0,0,0,[Ext.event.publisher,"MouseEnterLeave"],function(a){var b={mouseover:"mouseenter",mouseout:"mouseleave"};if(!Ext.supports.MouseEnterLeave){a.override({handledDomEvents:["mouseover","mouseout"],handledEvents:["mouseenter","mouseleave"],doDelegatedEvent:function(j){var i,c,k,g,d,h;j=this.callParent([j]);i=j.getTarget();c=j.getRelatedTarget();if(c&&Ext.fly(i).contains(c)){return}k=i.id;if(k){g=Ext.cache[k];if(g){d=b[j.type];j=j.chain({type:d});if(g.hasListeners[d]){h=g.events[d];if(h){h=h.directs;if(h){j.setCurrentTarget(g.dom);h.fire(j,j.target)}}}}}}})}a.instance=new a()}));(Ext.cmd.derive("Ext.flash.Component",Ext.Component,{alternateClassName:"Ext.FlashComponent",flashVersion:"9.0.115",backgroundColor:"#ffffff",wmode:"opaque",swfWidth:"100%",swfHeight:"100%",expressInstall:false,renderTpl:['<div id="{swfId}" role="presentation"></div>'],initComponent:function(){Ext.Component.prototype.initComponent.call(this)},beforeRender:function(){Ext.Component.prototype.beforeRender.call(this);Ext.applyIf(this.renderData,{swfId:this.getSwfId()})},afterRender:function(){var b=this,a=Ext.apply({},b.flashParams),c=Ext.apply({},b.flashVars);Ext.Component.prototype.afterRender.call(this);a=Ext.apply({allowScriptAccess:"always",bgcolor:b.backgroundColor,wmode:b.wmode},a);c=Ext.apply({allowedDomain:document.location.hostname},c);new swfobject.embedSWF(b.url,b.getSwfId(),b.swfWidth,b.swfHeight,b.flashVersion,b.expressInstall?b.statics.EXPRESS_INSTALL_URL:undefined,c,a,b.flashAttributes,b.swfCallback.bind(b))},swfCallback:function(b){var a=this;if(b.success){a.swf=Ext.get(b.ref);a.onSuccess();a.fireEvent("success",a)}else{a.onFailure();a.fireEvent("failure",a)}},getSwfId:function(){return this.swfId||(this.swfId="extswf"+this.getAutoId())},onSuccess:function(){this.swf.setStyle("visibility","inherit")},onFailure:Ext.emptyFn,beforeDestroy:function(){var b=this,a=b.swf;if(a){swfobject.removeSWF(b.getSwfId());Ext.destroy(a);delete b.swf}Ext.Component.prototype.beforeDestroy.call(this)},statics:{EXPRESS_INSTALL_URL:"http://swfobject.googlecode.com/svn/trunk/swfobject/expressInstall.swf"}},0,["flash"],["component","box","flash"],{component:true,box:true,flash:true},["widget.flash"],0,[Ext.flash,"Component",Ext,"FlashComponent"],0));(Ext.cmd.derive("Ext.form.action.Action",Ext.Base,{alternateClassName:"Ext.form.Action",submitEmptyText:true,constructor:function(a){if(a){Ext.apply(this,a)}var b=a.params;if(Ext.isString(b)){this.params=Ext.Object.fromQueryString(b)}},run:Ext.emptyFn,onFailure:function(a){var c=this.form,b=c&&!c.destroying&&!c.isDestroyed;this.response=a;this.failureType=Ext.form.action.Action.CONNECT_FAILURE;if(b){c.afterAction(this,false)}},processResponse:function(a){this.response=a;if(!a.responseText&&!a.responseXML){return true}return(this.result=this.handleResponse(a))},getUrl:function(){return this.url||this.form.url},getMethod:function(){return(this.method||this.form.method||"POST").toUpperCase()},getParams:function(){return Ext.apply({},this.params,this.form.baseParams)},createCallback:function(){var c=this,a,b=c.form;return{success:c.onSuccess,failure:c.onFailure,scope:c,timeout:(this.timeout*1000)||(b.timeout*1000),upload:b.fileUpload?c.onSuccess:a}},statics:{CLIENT_INVALID:"client",SERVER_INVALID:"server",CONNECT_FAILURE:"connect",LOAD_FAILURE:"load"}},1,0,0,0,0,0,[Ext.form.action,"Action",Ext.form,"Action"],0));(Ext.cmd.derive("Ext.form.action.Load",Ext.form.action.Action,{alternateClassName:"Ext.form.Action.Load",type:"load",run:function(){Ext.Ajax.request(Ext.apply(this.createCallback(),{method:this.getMethod(),url:this.getUrl(),headers:this.headers,params:this.getParams()}))},onSuccess:function(b){var a=this.processResponse(b),d=this.form,c=d&&!d.destroying&&!d.isDestroyed;if(a===true||!a.success||!a.data){this.failureType=Ext.form.action.Action.LOAD_FAILURE;if(c){d.afterAction(this,false)}return}if(c){d.clearInvalid();d.setValues(a.data);d.afterAction(this,true)}},handleResponse:function(c){var a=this.form.reader,b,d;if(a){b=a.read(c);d=b.records&&b.records[0]?b.records[0].data:null;return{success:b.success,data:d}}return Ext.decode(c.responseText)}},0,0,0,0,["formaction.load"],0,[Ext.form.action,"Load",Ext.form.Action,"Load"],0));(Ext.cmd.derive("Ext.form.action.Submit",Ext.form.action.Action,{alternateClassName:"Ext.form.Action.Submit",type:"submit",run:function(){var b=this,a=b.form;if(b.clientValidation===false||a.isValid()){b.doSubmit()}else{b.failureType=Ext.form.action.Action.CLIENT_INVALID;a.afterAction(b,false)}},doSubmit:function(){var d=this,b=Ext.apply(d.createCallback(),{url:d.getUrl(),method:d.getMethod(),headers:d.headers}),c=d.form,e=d.jsonSubmit||c.jsonSubmit,a=e?"jsonData":"params",g;if(c.hasUpload()){g=d.buildForm();b.form=g.formEl;b.isUpload=true}else{b[a]=d.getParams(e)}Ext.Ajax.request(b);if(g){d.cleanup(g)}},cleanup:function(h){var e=h.formEl,d=h.uploadEls,b=h.uploadFields,a=b.length,c,g;for(c=0;c<a;++c){g=b[c];if(!g.clearOnSubmit){g.restoreInput(d[c])}}if(e){Ext.removeNode(e)}},getParams:function(d){var c=false,b=Ext.form.action.Action.prototype.getParams.call(this),a=this.form.getValues(c,c,this.submitEmptyText!==c,d,true);return Ext.apply({},a,b)},buildForm:function(){var k=this,n=[],l,s,h=k.form,d=k.getParams(),c=[],a=[],g=h.getFields().items,e,j=g.length,m,r,p,q,o,b;for(e=0;e<j;++e){m=g[e];if(m.isFileUpload()){c.push(m)}}for(r in d){if(d.hasOwnProperty(r)){p=d[r];if(Ext.isArray(p)){o=p.length;for(q=0;q<o;q++){n.push(k.getFieldConfig(r,p[q]))}}else{n.push(k.getFieldConfig(r,p))}}}l={tag:"form",role:"presentation",action:k.getUrl(),method:k.getMethod(),target:k.target?(Ext.isString(k.target)?k.target:Ext.fly(k.target).dom.name):"_self",style:"display:none",cn:n};if(c.length){l.encoding=l.enctype="multipart/form-data"}s=Ext.DomHelper.append(Ext.getBody(),l);j=c.length;for(e=0;e<j;++e){b=c[e].extractFileInput();s.appendChild(b);a.push(b)}return{formEl:s,uploadFields:c,uploadEls:a}},getFieldConfig:function(a,b){return{tag:"input",type:"hidden",name:a,value:Ext.String.htmlEncode(b)}},onSuccess:function(b){var d=this.form,c=d&&!d.destroying&&!d.isDestroyed,e=true,a=this.processResponse(b);if(a!==true&&!a.success){if(a.errors&&c){d.markInvalid(a.errors)}this.failureType=Ext.form.action.Action.SERVER_INVALID;e=false}if(c){d.afterAction(this,e)}},handleResponse:function(d){var a=this.form,c=a.errorReader,g,l,h,j,b,m;if(c){g=c.read(d);b=g.records;l=[];if(b){for(h=0,j=b.length;h<j;h++){l[h]=b[h].data}}if(l.length<1){l=null}m={success:g.success,errors:l}}else{try{m=Ext.decode(d.responseText)}catch(k){m={success:false,errors:[]}}}return m}},0,0,0,0,["formaction.submit"],0,[Ext.form.action,"Submit",Ext.form.Action,"Submit"],0));(Ext.cmd.derive("Ext.form.action.StandardSubmit",Ext.form.action.Submit,{doSubmit:function(){var a=this.buildForm();a.formEl.submit();this.cleanup(a)}},0,0,0,0,["formaction.standardsubmit"],0,[Ext.form.action,"StandardSubmit"],0));(Ext.cmd.derive("Ext.util.ComponentDragger",Ext.dd.DragTracker,{autoStart:500,constructor:function(a,b){this.comp=a;this.initialConstrainTo=b.constrainTo;Ext.dd.DragTracker.prototype.constructor.call(this,b)},onStart:function(c){var b=this,a=b.comp;b.startPosition=a.getXY();if(a.ghost&&!a.liveDrag){b.proxy=a.ghost();b.dragTarget=b.proxy.header.el}if(b.constrain||b.constrainDelegate){b.constrainTo=b.calculateConstrainRegion()}if(a.beginDrag){a.beginDrag()}if(a.el.shim){Ext.dom.Element.maskIframes()}},calculateConstrainRegion:function(){var i=this,g=i.comp,h=i.initialConstrainTo,e=g.constraintInsets,k,b,d,c=i.proxy?i.proxy.el:g.el,j=c.shadow,a=(j&&!i.constrainDelegate&&g.constrainShadow&&!j.disabled)?j.getShadowSize():0;if(!(h instanceof Ext.util.Region)){k=Ext.fly(h);h=k.getConstrainRegion()}else{h=h.copy()}if(e){e=Ext.isObject(e)?e:Ext.Element.parseBox(e);h.adjust(e.top,e.right,e.bottom,e.left)}if(a){h.adjust(a[0],-a[1],-a[2],a[3])}if(!i.constrainDelegate){b=Ext.fly(i.dragTarget).getRegion();d=c.getRegion();h.adjust(b.top-d.top,b.right-d.right,b.bottom-d.bottom,b.left-d.left)}return h},onDrag:function(c){var b=this,a=(b.proxy&&!b.comp.liveDrag)?b.proxy:b.comp,d=b.getOffset(b.constrain||b.constrainDelegate?"dragTarget":null);a.setPagePosition(b.startPosition[0]+d[0],b.startPosition[1]+d[1])},onEnd:function(b){var a=this.comp;if(a.isDestroyed||a.destroying){return}if(this.proxy&&!a.liveDrag){a.unghost()}if(a.endDrag){a.endDrag()}if(a.el.shim){Ext.dom.Element.unmaskIframes()}}},1,0,0,0,0,0,[Ext.util,"ComponentDragger"],0));(Ext.cmd.derive("Ext.window.Window",Ext.panel.Panel,{alternateClassName:"Ext.Window",baseCls:"x-window",resizable:true,draggable:true,constrain:false,constrainHeader:false,plain:false,minimizable:false,maximizable:false,minHeight:50,minWidth:50,expandOnShow:true,collapsible:false,closable:true,hidden:true,autoRender:true,hideMode:"offsets",floating:true,itemCls:"x-window-item",overlapHeader:true,ignoreHeaderBorderManagement:true,alwaysFramed:true,isRootCfg:{isRoot:true},isWindow:true,ariaRole:"dialog",focusable:true,initComponent:function(){var a=this;a.frame=false;Ext.panel.Panel.prototype.initComponent.call(this);if(a.plain){a.addClsWithUI("plain")}a.addStateEvents(["maximize","restore","resize","dragend"])},getElConfig:function(){var b=this,a;a=Ext.panel.Panel.prototype.getElConfig.call(this);a.tabIndex=-1;return a},getFocusEl:function(){var a=this;return Ext.enableFocusManager?a.el:(a.getDefaultFocus()||a.el)},getState:function(){var b=this,d=Ext.panel.Panel.prototype.getState.call(this)||{},a=!!b.maximized,c=b.ghostBox,e;d.maximized=a;if(a){e=b.restorePos}else{if(c){e=[c.x,c.y]}else{e=b.getPosition()}}Ext.apply(d,{size:a?b.restoreSize:b.getSize(),pos:e});return d},applyState:function(b){var a=this;if(b){a.maximized=b.maximized;if(a.maximized){a.hasSavedRestore=true;a.restoreSize=b.size;a.restorePos=b.pos}else{Ext.apply(a,{width:b.size.width,height:b.size.height,x:b.pos[0],y:b.pos[1]})}}},onRender:function(b,a){var c=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(c.header){c.header.on({scope:c,click:c.onHeaderClick})}if(c.maximizable){c.header.on({scope:c,dblclick:c.toggleMaximize})}},afterRender:function(){var a=this,c=a.header,b;if(a.maximized){a.maximized=false;a.maximize(null,true);if(c){c.removeCls(c.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(a.closable){b=a.getKeyMap();b.on(27,a.onEsc,a)}else{b=a.keyMap}if(b&&a.hidden){b.disable()}},onEsc:function(a,c){var b=Ext.FocusManager;if(!Ext.enableFocusManager||b.focusedCmp===this){c.stopEvent();this.close()}},beforeDestroy:function(){var a=this;if(a.rendered){Ext.un("resize",a.onWindowResize,a);delete a.animateTarget;a.hide();Ext.destroy(a.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var a=this,b=[];Ext.panel.Panel.prototype.addTools.call(this);if(a.minimizable){b.push({type:"minimize",handler:"minimize",scope:a})}if(a.maximizable){b.push({type:"maximize",handler:"toggleMaximize",scope:a})}if(b.length){a.addTool(b)}},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(false)}a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.enable()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent("close",a);if(a.closeAction==="destroy"){a.destroy()}}else{a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();if(a.keyMap){a.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var b=this,a;if(!b.isDestroyed){if(b.maximized){b.fitContainer()}else{a=b.getSizeModel();if(a.width.natural||a.height.natural){b.updateLayout()}b.doConstrain()}}},minimize:function(){this.fireEvent("minimize",this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,c=a.header,b=a.tools;if(c&&a.maximizable){c.suspendLayouts();b.maximize.hide();this.resumeHeaderLayout(true)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,d=a.header,b=a.tools,c;if(d){d.suspendLayouts();if(a.maximizable){b.maximize.show();c=true}this.resumeHeaderLayout(c)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(b,g){var i=this,d=i.header,e=i.tools,a=i.width,j=i.height,h,c;if(!i.maximized&&!i.maximizing){i.maximizing=true;i.expand(false);if(!i.hasSavedRestore){h=i.restoreSize={width:a?a:null,height:j?j:null};if(g){i.restorePos=[i.x||0,i.y||0]}else{i.restorePos=i.getPosition()}}if(d){d.suspendLayouts();if(e.maximize){e.maximize.setType("restore")}if(i.collapseTool){i.collapseTool.hide();c=true}i.resumeHeaderLayout(c)}i.el.disableShadow();if(i.dd){i.dd.disable();if(d){d.removeCls(d.indicateDragCls)}}if(i.resizer){i.resizer.disable()}i.el.addCls("x-window-maximized");i.container.addCls("x-window-maximized-ct");i.syncMonitorWindowResize();i.fitContainer(b=(b||!!i.animateTarget)?{callback:function(){i.maximizing=false;i.maximized=true;if(!g){i.fireEvent("maximize",i)}}}:null);if(!b){i.maximizing=false;i.maximized=true;if(!g){i.fireEvent("maximize",i)}}}return i},restore:function(b){var c=this,d=c.tools,g=c.header,a=c.restoreSize,e;if(c.maximized){c.hasSavedRestore=null;c.removeCls("x-window-maximized");if(g){g.suspendLayouts();if(d.maximize){d.maximize.setType("maximize")}if(c.collapseTool){c.collapseTool.show();e=true}c.resumeHeaderLayout(e)}a.x=c.restorePos[0];a.y=c.restorePos[1];c.setBox(a,b=(b||!!c.animateTarget)?{callback:function(){c.el.enableShadow(null,true);c.maximized=false;c.fireEvent("restore",c)}}:null);c.restorePos=c.restoreSize=null;if(c.dd){c.dd.enable();if(g){g.addCls(g.indicateDragCls)}}if(c.resizer){c.resizer.enable()}c.container.removeCls("x-window-maximized-ct");c.syncMonitorWindowResize();if(!b){c.el.enableShadow(null,true);c.maximized=false;c.fireEvent("restore",c)}}return c},syncMonitorWindowResize:function(){var b=this,c=b._monitoringResize,d=b.monitorResize||b.constrain||b.constrainHeader||b.maximized,a=b.hidden||b.destroying||b.isDestroyed;if(d&&!a){if(!c){Ext.on("resize",b.onWindowResize,b,{buffer:1});b._monitoringResize=true}}else{if(c){Ext.un("resize",b.onWindowResize,b);b._monitoringResize=false}}},toggleMaximize:function(){return this[this.maximized?"restore":"maximize"]()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype="window";return a},getDefaultFocus:function(){var c=this,b,d=c.defaultButton||c.defaultFocus,a;if(d!==undefined){if(Ext.isNumber(d)){b=c.query("button")[d]}else{if(Ext.isString(d)){a=d;if(Ext.validIdRe.test(a)){b=c.down(Ext.makeIdSelector(a))}if(!b){b=c.down(a)}}else{if(d.focus){b=d}}}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(c,b){var a;if(c.el.contains(b.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(a){var b=this;Ext.panel.Panel.prototype.initResizable.call(this,a);if(b.maximized||b.maximizing){b.resizer.disable()}},initSimpleDraggable:function(){var b=this,a;Ext.panel.Panel.prototype.initSimpleDraggable.call(this);a=b.dd;if(a&&b.maximized||b.maximizing){a.disable()}}}},0,["window"],["component","box","container","panel","window"],{component:true,box:true,container:true,panel:true,window:true},["widget.window"],0,[Ext.window,"Window",Ext,"Window"],0));(Ext.cmd.derive("Ext.form.Labelable",Ext.Mixin,{isLabelable:true,mixinConfig:{id:"labelable",on:{beforeRender:"beforeLabelRender",onRender:"onLabelRender"}},config:{childEls:["labelEl","bodyEl","errorEl","errorWrapEl","labelTextEl"]},labelableRenderTpl:["{beforeLabelTpl}",'<label id="{id}-labelEl" data-ref="labelEl" class="{labelCls} {labelCls}-{ui} {labelClsExtra} ','{childElCls} {unselectableCls}" style="{labelStyle}"<tpl if="inputId">',' for="{inputId}"</tpl> {labelAttrTpl}>','<span class="{labelInnerCls} {labelInnerCls}-{ui}" style="{labelInnerStyle}">',"{beforeLabelTextTpl}",'<span id="{id}-labelTextEl" data-ref="labelTextEl" class="{labelTextCls}">','<tpl if="fieldLabel">{fieldLabel}','<tpl if="labelSeparator">{labelSeparator}</tpl>',"</tpl>","</span>","{afterLabelTextTpl}","</span>","</label>","{afterLabelTpl}",'<div id="{id}-bodyEl" data-ref="bodyEl" class="{baseBodyCls} {baseBodyCls}-{ui}<tpl if="fieldBodyCls">',' {fieldBodyCls} {fieldBodyCls}-{ui}</tpl> {growCls} {extraFieldBodyCls}"','<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>',"{beforeBodyEl}","{beforeSubTpl}","{[values.$comp.getSubTplMarkup(values)]}","{afterSubTpl}","{afterBodyEl}","</div>",'<tpl if="renderError">','<div id="{id}-errorWrapEl" data-ref="errorWrapEl" class="{errorWrapCls} {errorWrapCls}-{ui}',' {errorWrapExtraCls}" style="{errorWrapStyle}">','<div role="alert" aria-live="polite" id="{id}-errorEl" data-ref="errorEl" ','class="{errorMsgCls} {invalidMsgCls} {invalidMsgCls}-{ui}" ','data-anchorTarget="{tipAnchorTarget}">',"</div>","</div>","</tpl>",{disableFormats:true}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['<tpl if="errors && errors.length">','<ul class="{listCls}">','<tpl if="Ext.enableAria">','<tpl if="fieldLabel"><div>{fieldLabel}</div></tpl>',"</tpl>",'<tpl for="errors"><li>{.}</li></tpl>',"</ul>","</tpl>"],plaintextActiveErrorsTpl:['<tpl if="errors && errors.length">','<tpl if="Ext.enableAria">','<tpl if="fieldLabel">{fieldLabel}\n</tpl>',"</tpl>",'<tpl for="errors"><tpl if="xindex &gt; 1">\n</tpl>{.}</tpl>',"</tpl>"],isFieldLabelable:true,formItemCls:"x-form-item",labelCls:"x-form-item-label",topLabelCls:"x-form-item-label-top",rightLabelCls:"x-form-item-label-right",labelInnerCls:"x-form-item-label-inner",labelTextCls:"x-form-item-label-text",topLabelSideErrorCls:"x-form-item-label-top-side-error",errorMsgCls:"x-form-error-msg",errorWrapCls:"x-form-error-wrap",errorWrapSideCls:"x-form-error-wrap-side",errorWrapUnderCls:"x-form-error-wrap-under",errorWrapUnderSideLabelCls:"x-form-error-wrap-under-side-label",baseBodyCls:"x-form-item-body",invalidIconCls:"x-form-invalid-icon",invalidUnderCls:"x-form-invalid-under",noLabelCls:"x-form-item-no-label",fieldBodyCls:"",invalidCls:"x-form-invalid",fieldLabel:undefined,labelAlign:"left",labelWidth:100,labelPad:5,labelSeparator:":",hideLabel:false,hideEmptyLabel:true,preventMark:false,autoFitErrors:true,msgTarget:"qtip",msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:true,labelableInsertions:["beforeBodyEl","afterBodyEl","beforeLabelTpl","afterLabelTpl","beforeSubTpl","afterSubTpl","beforeLabelTextTpl","afterLabelTextTpl","labelAttrTpl"],statics:{initTip:function(){var b=this.tip,a,c;if(b){return}a={id:"ext-form-error-tip",ui:"form-invalid"};if(Ext.supports.Touch){a.dismissDelay=0;a.anchor="top";a.showDelay=0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}b=this.tip=Ext.create("Ext.tip.QuickTip",a);c=Ext.apply({},b.tagConfig);c.attribute="errorqtip";b.setTagConfig(c)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var a=this,b=a.padding;if(b){a.padding=undefined;a.extraMargins=Ext.Element.parseBox(b)}if(Ext.isIE8){a.restoreDisplay=Ext.Function.createDelayed(a.doRestoreDisplay,0,a)}if(!a.activeErrorsTpl){if(a.msgTarget==="title"){a.activeErrorsTpl=a.plaintextActiveErrorsTpl}else{a.activeErrorsTpl=a.htmlActiveErrorsTpl}}a.addCls([a.formItemCls,a.formItemCls+"-"+a.ui]);a.lastActiveError="";a.enableBubble("errorchange")},trimLabelSeparator:function(){var c=this,d=c.labelSeparator,a=c.fieldLabel||"",b=a.substr(a.length-1);return b===d?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(d){d=d||"";var e=this,g=e.labelSeparator,c=e.labelEl,b=e.errorWrapEl,i=(e.labelAlign!=="top"),a=e.noLabelCls,h=e.errorWrapUnderSideLabelCls;e.fieldLabel=d;if(e.rendered){if(Ext.isEmpty(d)&&e.hideEmptyLabel){e.addCls(a);if(i&&b){b.removeCls(h)}}else{if(g){d=e.trimLabelSeparator()+g}e.labelTextEl.dom.innerHTML=d;e.removeCls(a);if(i&&b){b.addCls(h)}}e.updateLayout()}},setHideLabel:function(a){var b=this;if(a!==b.hideLabel){b.hideLabel=a;if(b.rendered){b[a?"addCls":"removeCls"](b.noLabelCls);b.updateLayout()}}},setHideEmptyLabel:function(a){var c=this,b;if(a!==c.hideEmptyLabel){c.hideEmptyLabel=a;if(c.rendered&&!c.hideLabel){b=a&&!c.getFieldLabel();c[b?"addCls":"removeCls"](c.noLabelCls);c.updateLayout()}}},getInsertionRenderData:function(d,e){var b=e.length,a,c;while(b--){a=e[b];c=this[a];if(c){if(typeof c!=="string"){if(!c.isTemplate){c=Ext.XTemplate.getTpl(this,a)}c=c.apply(d)}}d[a]=c||""}return d},getLabelableRenderData:function(){var p=this,s=p.labelAlign,e=(s==="top"),m=(s==="right"),j=(p.msgTarget==="side"),g=(p.msgTarget==="under"),r=p.errorMsgCls,h=p.labelPad,o=p.labelWidth,b=p.labelClsExtra||"",i=j?p.errorWrapSideCls:p.errorWrapUnderCls,a="",l="",d=p.hasVisibleLabel(),n=p.autoFitErrors,k=p.defaultBodyWidth,c,q;if(e){b+=" "+p.topLabelCls;if(h){l="padding-bottom:"+h+"px;"}if(j&&!n){b+=" "+p.topLabelSideErrorCls}}else{if(m){b+=" "+p.rightLabelCls}if(h){a+=p.getHorizontalPaddingStyle()+h+"px;"}a+="width:"+(o+(h?h:0))+"px;";l="width:"+o+"px"}if(d){if(!e&&g){i+=" "+p.errorWrapUnderSideLabelCls}}if(k){c="min-width:"+k+"px;max-width:"+k+"px;"}q={id:p.id,inputId:p.getInputId(),labelCls:p.labelCls,labelClsExtra:b,labelStyle:a+(p.labelStyle||""),labelInnerStyle:l,labelInnerCls:p.labelInnerCls,labelTextCls:p.labelTextCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:c,baseBodyCls:p.baseBodyCls,fieldBodyCls:p.fieldBodyCls,extraFieldBodyCls:p.extraFieldBodyCls,errorWrapCls:p.errorWrapCls,errorWrapExtraCls:i,renderError:j||g,invalidMsgCls:j?p.invalidIconCls:g?p.invalidUnderCls:"",errorMsgCls:r,growCls:p.grow?p.growCls:"",tipAnchorTarget:p.id+"-inputEl",errorWrapStyle:(j&&!n)?"visibility:hidden":"display:none",fieldLabel:p.getFieldLabel(),labelSeparator:p.labelSeparator};p.getInsertionRenderData(q,p.labelableInsertions);return q},getHorizontalPaddingStyle:function(){return"padding-right:"},beforeLabelRender:function(){var a=this;a.setFieldDefaults(a.getInherited().fieldDefaults);if(a.ownerLayout){a.addCls("x-"+a.ownerLayout.type+"-form-item")}if(!a.hasVisibleLabel()){a.addCls(a.noLabelCls)}},onLabelRender:function(){var d=this,c={},g=Ext.Element,a=d.errorWrapEl,e,b;if(a){a.setVisibilityMode((d.msgTarget==="side"&&!d.autoFitErrors)?g.VISIBILITY:g.DISPLAY)}if(d.extraMargins){e=d.el.getMargin();for(b in e){if(e.hasOwnProperty(b)){c["margin-"+b]=(e[b]+d.extraMargins[b])+"px"}}d.el.setStyle(c)}},hasVisibleLabel:function(){if(this.hideLabel){return false}return !(this.hideEmptyLabel&&!this.getFieldLabel())},getSubTplMarkup:function(){return""},getInputId:function(){return""},getActiveError:function(){return this.activeError||""},hasActiveError:function(){return !!this.getActiveError()},setActiveError:function(a){this.setActiveErrors(a)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(h){var e=this,g=e.errorWrapEl,c=e.msgTarget,b=c==="side",j=c==="qtip",a,d,i;h=Ext.Array.from(h);d=e.getTpl("activeErrorsTpl");e.activeErrors=h;a=e.activeError=d.apply({fieldLabel:e.fieldLabel,errors:h,listCls:"x-list-plain"});e.renderActiveError();if(e.rendered){if(b){e.errorEl.dom.setAttribute("data-errorqtip",a)}else{if(j){e.getActionEl().dom.setAttribute("data-errorqtip",a)}else{if(c==="title"){e.getActionEl().dom.setAttribute("title",a)}}}if(b||j){Ext.form.Labelable.initTip()}if(!e.msgTargets[c]){i=Ext.get(c);if(i){i.dom.innerHTML=a}}}if(g){g.setVisible(h.length>0);if(b&&e.autoFitErrors){e.labelEl.addCls(e.topLabelSideErrorCls)}e.updateLayout()}},unsetActiveError:function(){var d=this,b=d.errorWrapEl,c=d.msgTarget,e,a=d.restoreDisplay;if(d.hasActiveError()){delete d.activeError;delete d.activeErrors;d.renderActiveError();if(d.rendered){if(c==="qtip"){d.getActionEl().dom.removeAttribute("data-errorqtip")}else{if(c==="title"){d.getActionEl().dom.removeAttribute("title")}}if(!d.msgTargets[c]){e=Ext.get(c);if(e){e.dom.innerHTML=""}}if(b){b.hide();if(c==="side"&&d.autoFitErrors){d.labelEl.removeCls(d.topLabelSideErrorCls)}d.updateLayout();if(a){d.el.dom.style.display="block";d.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=""}},renderActiveError:function(){var c=this,b=c.getActiveError(),a=!!b;if(b!==c.lastActiveError){c.lastActiveError=b;c.fireEvent("errorchange",c,b)}if(c.rendered&&!c.isDestroyed&&!c.preventMark){c.toggleInvalidCls(a);if(c.errorEl){c.errorEl.dom.innerHTML=b}}},toggleInvalidCls:function(a){this.el[a?"addCls":"removeCls"](this.invalidCls)},setFieldDefaults:function(b){var a;for(a in b){if(!this.hasOwnProperty(a)){this[a]=b[a]}}}},0,0,0,0,0,0,[Ext.form,"Labelable"],function(){if(Ext.supports.Touch){this.prototype.msgTarget="side"}}));Ext.define("Ext.rtl.form.Labelable",{override:"Ext.form.Labelable",getHorizontalPaddingStyle:function(){return this.getInherited().rtl?"padding-left:":"padding-right:"}});(Ext.cmd.derive("Ext.form.field.Field",Ext.Base,{mixinId:"field",isFormField:true,config:{validation:null,validationField:null},disabled:false,submitValue:true,validateOnChange:true,valuePublishEvent:"change",suspendCheckChange:0,dirty:false,initField:function(){var d=this,c=d.valuePublishEvent,a,b;d.initValue();if(Ext.isString(c)){d.on(c,d.publishValue,d)}else{for(b=0,a=c.length;b<a;++b){d.on(c[b],d.publishValue,d)}}},initValue:function(){var a=this;if("value" in a){a.suspendCheckChange++;a.setValue(a.value);a.suspendCheckChange--}a.initialValue=a.originalValue=a.lastValue=a.getValue()},cleanupField:function(){delete this._ownerRecord},getFieldIdentifier:function(){return this.isEditorComponent?this.dataIndex:this.name},getName:function(){return this.name},getValue:function(){return this.value},setValue:function(b){var a=this;a.value=b;a.checkChange();return a},isEqual:function(b,a){return String(b)===String(a)},isEqualAsString:function(b,a){return String(Ext.valueFrom(b,""))===String(Ext.valueFrom(a,""))},getSubmitData:function(){var a=this,b=null;if(!a.disabled&&a.submitValue){b={};b[a.getName()]=""+a.getValue()}return b},getModelData:function(a,b){var c=this,d=null;if(!c.disabled&&(c.submitValue||!b)){d={};d[c.getFieldIdentifier()]=c.getValue()}return d},reset:function(){var a=this;a.beforeReset();a.setValue(a.originalValue);a.clearInvalid();delete a.wasValid},beforeReset:Ext.emptyFn,resetOriginalValue:function(){this.originalValue=this.getValue();this.checkDirty()},checkChange:function(){var c=this,b,a;if(!c.suspendCheckChange){b=c.getValue();a=c.lastValue;if(!c.isDestroyed&&c.didValueChange(b,a)){c.lastValue=b;c.fireEvent("change",c,b,a);c.onChange(b,a)}}},didValueChange:function(b,a){return !this.isEqual(b,a)},onChange:function(a){var b=this;if(b.validateOnChange){b.validate()}b.checkDirty()},publishValue:function(){var a=this;if(a.rendered&&!a.getErrors().length){a.publishState("value",a.getValue())}},isDirty:function(){var a=this;return !a.disabled&&!a.isEqual(a.getValue(),a.originalValue)},checkDirty:function(){var a=this,b=a.isDirty();if(b!==a.wasDirty){a.dirty=b;a.fireEvent("dirtychange",a,b);a.onDirtyChange(b);a.wasDirty=b}},onDirtyChange:Ext.emptyFn,getErrors:function(d){var e=[],c=this.getValidationField(),b=this.getValidation(),a;if(c){a=c.validate(d,null,null,this._ownerRecord);if(a!==true){e.push(a)}}if(b&&b!==true){e.push(b)}return e},isValid:function(){var a=this;return a.disabled||Ext.isEmpty(a.getErrors())},validate:function(){return this.checkValidityChange(this.isValid())},checkValidityChange:function(b){var a=this;if(b!==a.wasValid){a.wasValid=b;a.fireEvent("validitychange",a,b)}return b},setValidationField:function(b,a){(arguments.callee.$previous||Ext.Base.prototype.setValidationField).call(this,b);this._ownerRecord=a},batchChanges:function(a){try{this.suspendCheckChange++;a()}finally{this.suspendCheckChange--}this.checkChange()},isFileUpload:function(){return false},extractFileInput:function(){return null},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,updateValidation:function(a,b){if(b){this.validate()}},privates:{resetToInitialValue:function(){var b=this,a=b.originalValue;b.originalValue=b.initialValue;b.reset();b.originalValue=a}}},0,0,0,0,0,0,[Ext.form.field,"Field"],0));(Ext.cmd.derive("Ext.form.field.Base",Ext.Component,{alternateClassName:["Ext.form.Field","Ext.form.BaseField"],focusable:true,shrinkWrap:true,fieldSubTpl:['<input id="{id}" data-ref="inputEl" type="{type}" role="{role}" {inputAttrTpl}',' size="1"','<tpl if="name"> name="{name}"</tpl>','<tpl if="value"> value="{[Ext.util.Format.htmlEncode(values.value)]}"</tpl>','<tpl if="placeholder"> placeholder="{placeholder}"</tpl>','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}','<tpl if="readOnly"> readonly="readonly"</tpl>','<tpl if="disabled"> disabled="disabled"</tpl>','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls}" autocomplete="off"/>',{disableFormats:true}],defaultBindProperty:"value",subTplInsertions:["inputAttrTpl"],childEls:["inputEl"],inputType:"text",isTextInput:true,invalidText:"The value in this field is invalid",fieldCls:"x-form-field",focusCls:"form-focus",dirtyCls:"x-form-dirty",checkChangeEvents:Ext.isIE&&(!document.documentMode||document.documentMode<=9)?["change","propertychange","keyup"]:["change","input","textInput","keyup","dragdrop"],ignoreChangeRe:/data\-errorqtip|style\.|className/,checkChangeBuffer:50,liquidLayout:true,readOnly:false,readOnlyCls:"x-form-readonly",validateOnBlur:true,hasFocus:false,baseCls:"x-field",fieldBodyCls:"x-field-body",maskOnDisable:false,stretchInputElFixed:true,initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();if(!a.name){a.name=a.getInputId()}if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls("x-form-type-"+a.inputType)},getInputId:function(){return this.inputId||(this.inputId=this.id+"-inputEl")},getSubTplData:function(b){var d=this,c=d.inputType,a=d.getInputId(),e;e=Ext.apply({ui:d.ui,id:a,cmpId:d.id,name:d.name||a,disabled:d.disabled,readOnly:d.readOnly,value:d.getRawValue(),type:c,fieldCls:d.fieldCls,fieldStyle:d.getFieldStyle(),childElCls:b.childElCls,tabIdx:d.tabIndex,inputCls:d.inputCls,typeCls:"x-form-"+(d.isTextInput?"text":c),role:d.ariaRole},d.subTplData);d.getInsertionRenderData(e,d.subTplInsertions);return e},getSubTplMarkup:function(b){var c=this,d=c.getSubTplData(b),e=c.getTpl("preSubTpl"),g=c.getTpl("postSubTpl"),a="";if(e){a+=e.apply(d)}a+=c.getTpl("fieldSubTpl").apply(d);if(g){a+=g.apply(d)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(a){var b=this,c=b.inputEl;if(c){c.applyStyles(a)}b.fieldStyle=a},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,true):a||""},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==="file"},getSubmitData:function(){var a=this,b=null,c;if(!a.disabled&&a.submitValue){c=a.getSubmitValue();if(c!==null){b={};b[a.getName()]=c}}return b},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var b=this,a=(b.inputEl?b.inputEl.getValue():Ext.valueFrom(b.rawValue,""));b.rawValue=a;return a},setRawValue:function(c){var a=this,b=a.rawValue;if(!a.transformRawValue.$nullFn){c=a.transformRawValue(c)}c=Ext.valueFrom(c,"");if(b===undefined||b!==c||a.valueContainsPlaceholder){a.rawValue=c;if(a.inputEl){a.bindChangeEvents(false);a.inputEl.dom.value=c;a.bindChangeEvents(true)}if(a.rendered&&a.reference){a.publishState("rawValue",c)}}return c},transformRawValue:Ext.identityFn,valueToRaw:function(a){return""+Ext.valueFrom(a,"")},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var a=this,b=a.rawToValue(a.processRawValue(a.getRawValue()));a.value=b;return b},setValue:function(b){var a=this;a.setRawValue(a.valueToRaw(b));return a.mixins.field.setValue.call(a,b)},onBoxReady:function(){var a=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(a.setReadOnlyOnBoxReady){a.setReadOnly(a.readOnly)}},onDisable:function(){var a=this,b=a.inputEl;Ext.Component.prototype.onDisable.call(this);if(b){b.dom.disabled=true;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=true}}if(a.wasValid===false){a.checkValidityChange(true)}},onEnable:function(){var b=this,c=b.inputEl,d=b.preventMark,a;Ext.Component.prototype.onEnable.call(this);if(c){c.dom.disabled=false}if(b.wasValid!==undefined){b.forceValidation=true;b.preventMark=!b.hadErrorOnDisable;a=b.isValid();b.forceValidation=false;b.preventMark=d;b.checkValidityChange(a)}delete b.hadErrorOnDisable},setReadOnly:function(d){var b=this,c=b.inputEl,a=b.readOnly;d=!!d;b[d?"addCls":"removeCls"](b.readOnlyCls);b.readOnly=d;if(c){c.dom.readOnly=d}else{if(b.rendering){b.setReadOnlyOnBoxReady=true}}if(d!==a){b.fireEvent("writeablechange",b,d)}},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent("specialkey",this,a)}},initEvents:function(){var e=this,h=e.inputEl,g=e.onFieldMutation,c=e.checkChangeEvents,a=c.length,b,d;if(h){e.mon(h,Ext.supports.SpecialKeyDownRepeat?"keydown":"keypress",e.fireKey,e);for(b=0;b<a;++b){d=c[b];if(d==="propertychange"){e.usesPropertychange=true}if(d==="textInput"){e.usesTextInput=true}e.mon(h,d,g,e)}}Ext.Component.prototype.initEvents.call(this)},onFieldMutation:function(a){if(!this.readOnly&&!(a.type==="propertychange"&&this.ignoreChangeRe.test(a.browserEvent.propertyName))){this.startCheckChangeTask()}},startCheckChangeTask:function(){var b=this,a=b.checkChangeTask;if(!a){b.checkChangeTask=a=new Ext.util.DelayedTask(b.doCheckChangeTask,b)}if(!b.bindNotifyListener){b.bindNotifyListener=Ext.on("beforebindnotify",b.onBeforeNotify,b,{destroyable:true})}a.delay(b.checkChangeBuffer)},doCheckChangeTask:function(){var a=this.bindNotifyListener;if(a){a.destroy();this.bindNotifyListener=null}this.checkChange()},publishValue:function(){var a=this;if(a.rendered&&!a.getErrors().length){a.publishState("value",a.getValue())}},onDirtyChange:function(b){var a=this;a[b?"addCls":"removeCls"](a.dirtyCls);if(a.rendered&&a.reference){a.publishState("dirty",b)}},isValid:function(){var b=this,a=b.disabled,c=b.forceValidation||!a;return c?b.validateValue(b.processRawValue(b.getRawValue())):a},validateValue:function(b){var a=this,d=a.getErrors(b),c=Ext.isEmpty(d);if(!a.preventMark){if(c){a.clearInvalid()}else{a.markInvalid(d)}}return c},markInvalid:function(d){var b=this,a=b.getActiveError(),c;b.setActiveErrors(Ext.Array.from(d));c=b.getActiveError();if(a!==c){b.setError(c)}},clearInvalid:function(){var b=this,a=b.hasActiveError();delete b.hadErrorOnDisable;b.unsetActiveError();if(a){b.setError("")}},setError:function(a){var c=this,b=c.msgTarget,d;if(c.rendered){if(b==="title"||b==="qtip"){d=b==="qtip"?"data-errorqtip":"title";c.getActionEl().dom.setAttribute(d,a||"")}else{c.updateLayout()}}},renderActiveError:function(){var c=this,b=c.hasActiveError(),a=c.invalidCls+"-field";if(c.inputEl){c.inputEl[b?"addCls":"removeCls"]([a,a+"-"+c.ui])}c.mixins.labelable.renderActiveError.call(c)},beforeDestroy:function(){var b=this,a=b.checkChangeTask;if(a){a.cancel()}b.checkChangeTask=b.bindNotifyListener=Ext.destroy(b.bindNotifyListener);b.cleanupField();Ext.Component.prototype.beforeDestroy.call(this)},privates:{applyBind:function(g,c){var b=this,a=c&&c.value,e,d;e=Ext.Component.prototype.applyBind.call(this,g,c);d=e.value;b.hasBindingValue=!!d;if(d!==a&&b.getInherited().modelValidation){b.updateValueBinding(e)}return e},applyRenderSelectors:function(){var a=this;Ext.Component.prototype.applyRenderSelectors.call(this);if(!a.inputEl){a.inputEl=a.el.getById(a.getInputId())}},bindChangeEvents:function(b){var c=b?"resumeEvent":"suspendEvent",a=this.inputEl;if(this.usesPropertychange){a[c]("propertychange")}if(this.usesTextInput){a[c]("textInput")}},getActionEl:function(){return this.inputEl||this.el},getFocusEl:function(){return this.inputEl},initRenderTpl:function(){var a=this;if(!a.hasOwnProperty("renderTpl")){a.renderTpl=a.getTpl("labelableRenderTpl")}return Ext.Component.prototype.initRenderTpl.call(this)},onBeforeNotify:function(){this.checkChangeTask.cancel();this.checkChange()},updateValueBinding:function(d){var c=this,b=d.value,a=d.$fieldBinding;if(a){a.destroy();d.$fieldBinding=null}if(b&&b.bindValidationField){c.fieldBinding=b.bindValidationField("setValidationField",c)}}},deprecated:{"5":{methods:{doComponentLayout:function(){this.bindChangeEvents(false);this.callParent(arguments);this.bindChangeEvents(true)}}}}},0,["field"],["component","box","field"],{component:true,box:true,field:true},["widget.field"],[[Ext.form.Labelable.prototype.mixinId||Ext.form.Labelable.$className,Ext.form.Labelable],[Ext.form.field.Field.prototype.mixinId||Ext.form.field.Field.$className,Ext.form.field.Field]],[Ext.form.field,"Base",Ext.form,"Field",Ext.form,"BaseField"],0));(Ext.cmd.derive("Ext.form.field.VTypes",Ext.Base,(function(){var c=/^[a-zA-Z_]+$/,d=/^[a-zA-Z0-9_]+$/,b=/^(")?(?:[^\."\s])(?:(?:[\.])?(?:[\w\-!#$%&'*+/=?^_`{|}~]))*\1@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/,a=/(((^https?)|(^ftp)):\/\/((([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*)|(localhost|LOCALHOST))\/?)/i;return{singleton:true,alternateClassName:"Ext.form.VTypes",email:function(e){return b.test(e)},emailText:'This field should be an e-mail address in the format "user@example.com"',emailMask:/[\w.\-@'"!#$%&'*+/=?^_`{|}~]/i,url:function(e){return a.test(e)},urlText:'This field should be a URL in the format "http://www.example.com"',alpha:function(e){return c.test(e)},alphaText:"This field should only contain letters and _",alphaMask:/[a-z_]/i,alphanum:function(e){return d.test(e)},alphanumText:"This field should only contain letters, numbers and _",alphanumMask:/[a-z0-9_]/i}}()),0,0,0,0,0,0,[Ext.form.field,"VTypes",Ext.form,"VTypes"],0));(Ext.cmd.derive("Ext.form.trigger.Trigger",Ext.Base,{factoryConfig:{defaultType:"trigger"},repeatClick:false,hidden:false,hideOnReadOnly:undefined,weight:0,preventMouseDown:true,baseCls:"x-form-trigger",focusCls:"x-form-trigger-focus",overCls:"x-form-trigger-over",clickCls:"x-form-trigger-click",validIdRe:Ext.validIdRe,renderTpl:['<div id="{triggerId}" class="{baseCls} {baseCls}-{ui} {cls} {cls}-{ui} {extraCls} ','{childElCls}"<tpl if="triggerStyle"> style="{triggerStyle}"</tpl>>',"{[values.$trigger.renderBody(values)]}","</div>"],statics:{weightComparator:function(a,b){return a.weight-b.weight}},constructor:function(b){var c=this,a;Ext.apply(c,b);if(c.compat4Mode){a=c.cls;c.focusCls=[c.focusCls,a+"-focus"];c.overCls=[c.overCls,a+"-over"];c.clickCls=[c.clickCls,a+"-click"]}},afterFieldRender:function(){this.initEvents()},destroy:function(){var a=this,b=a.clickRepeater;if(b){b.destroy()}if(a.el){a.el.destroy()}a.el=null;a.isDestroyed=true},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=true;if(a){a.hide()}},initEvents:function(){var d=this,a=d.isFieldEnabled,c=d.getStateEl(),b=d.el;c.addClsOnOver(d.overCls,a,d);c.addClsOnClick(d.clickCls,a,d);if(d.repeatClick){d.clickRepeater=new Ext.util.ClickRepeater(b,{preventDefault:true,handler:d.onClick,listeners:{mousedown:d.onClickRepeaterMouseDown,scope:d},scope:d})}else{d.field.mon(b,{click:d.onClick,mousedown:d.onMouseDown,scope:d})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=false;if(a.hidden||!c||!a.rendered||a.isDestroyed){b=true}return !b},onClick:function(){var c=this,a=arguments,g=c.clickRepeater?a[1]:a[0],b=c.handler,d=c.field;if(b&&!d.readOnly&&c.isFieldEnabled()){Ext.callback(c.handler,c.scope,[d,c,g],0,d)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=="touch"&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==="mousedown"){this.field.inputEl.focus()}a.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var b=this,a=b.el=b.field.triggerWrap.selectNode("#"+b.domId,false);a.setVisibilityMode(Ext.Element.DISPLAY);b.rendered=true},renderBody:function(b){var a=this,c=a.bodyTpl;Ext.apply(b,a.getBodyRenderData());return c?Ext.XTemplate.getTpl(a,"bodyTpl").apply(b):""},renderTrigger:function(a){var c=this,b=c.width,d=c.hidden?"display:none;":"";if(b){d+="width:"+b}return Ext.XTemplate.getTpl(c,"renderTpl").apply({$trigger:c,fieldData:a,ui:a.ui,childElCls:a.childElCls,triggerId:c.domId=c.field.id+"-trigger-"+c.id,cls:c.cls,triggerStyle:d,extraCls:c.extraCls,baseCls:c.baseCls})},setHidden:function(a){if(a!==this.hidden){this[a?"hide":"show"]()}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=false;if(a){a.show()}}},1,0,0,0,["trigger.trigger"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.form.trigger,"Trigger"],0));(Ext.cmd.derive("Ext.form.field.Text",Ext.form.field.Base,{alternateClassName:["Ext.form.TextField","Ext.form.Text"],config:{hideTrigger:false,triggers:undefined},renderConfig:{editable:true},growMin:30,growMax:800,growAppend:"W",allowBlank:true,validateBlank:false,allowOnlyWhitespace: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:"x-form-empty-field",requiredCls:"x-form-required-field",valueContainsPlaceholder:false,ariaRole:"textbox",repeatTriggerClick:false,triggerWrapCls:"x-form-trigger-wrap",triggerWrapFocusCls:"x-form-trigger-wrap-focus",triggerWrapInvalidCls:"x-form-trigger-wrap-invalid",fieldBodyCls:"x-form-text-field-body",inputWrapCls:"x-form-text-wrap",inputWrapFocusCls:"x-form-text-wrap-focus",inputWrapInvalidCls:"x-form-text-wrap-invalid",growCls:"x-form-text-grow",monitorTab:true,mimicing:false,needArrowKeys:true,squashMouseUp:{mouseup:function(a){if(this.selectOnFocus){this.inputEl.dom.select()}},translate:false,single:true,preventDefault:true},childEls:["triggerWrap","inputWrap"],preSubTpl:['<div id="{cmpId}-triggerWrap" data-ref="triggerWrap" class="{triggerWrapCls} {triggerWrapCls}-{ui}">','<div id={cmpId}-inputWrap data-ref="inputWrap" class="{inputWrapCls} {inputWrapCls}-{ui}">'],postSubTpl:["</div>",'<tpl for="triggers">{[values.renderTrigger(parent)]}</tpl>',"</div>"],initComponent:function(){var b=this,a=b.emptyCls;if(b.allowOnlyWhitespace===false){b.allowBlank=false}if(b.size){b.defaultBodyWidth=b.size*6.5+20}if(!b.onTrigger1Click){b.onTrigger1Click=b.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(b.readOnly){b.setReadOnly(b.readOnly)}b.fieldFocusCls=b.baseCls+"-focus";b.emptyUICls=a+" "+a+"-"+b.ui;b.addStateEvents("change")},initEvents:function(){var b=this,a=b.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(b.selectOnFocus||b.emptyText){b.mon(a,"mousedown",b.onMouseDown,b)}if(b.maskRe||(b.vtype&&b.disableKeyFilter!==true&&(b.maskRe=Ext.form.field.VTypes[b.vtype+"Mask"]))){b.mon(a,"keypress",b.filterKeys,b)}if(b.enableKeyEvents){b.mon(a,{scope:b,keyup:b.onKeyUp,keydown:b.onKeyDown,keypress:b.onKeyPress})}},isEqual:function(b,a){return this.isEqualAsString(b,a)},onChange:function(b,a){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(b){var c=this,d=c.getRawValue(),g=c.emptyText&&d.length<1,a=c.maxLength,e;if(c.enforceMaxLength){if(a===Number.MAX_VALUE){a=undefined}}else{a=undefined}if(g){if(Ext.supports.Placeholder){e=c.emptyText}else{d=c.emptyText;c.valueContainsPlaceholder=true}}return Ext.apply(Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments),{triggerWrapCls:c.triggerWrapCls,inputWrapCls:c.inputWrapCls,triggers:c.orderedTriggers,maxLength:a,readOnly:!c.editable||c.readOnly,placeholder:e,value:d,fieldCls:c.fieldCls+((g&&(e||d))?" "+c.emptyUICls:"")+(c.allowBlank?"":" "+c.requiredCls)})},onRender:function(){var c=this,b=c.getTriggers(),d=[],e,a;if(Ext.supports.FixedTableWidthBug){c.el._needsTableWidthFix=true}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(b){this.invokeTriggers("onFieldRender");for(e in b){d.push(b[e].el)}a=c.triggerEl=c.triggerCell=new Ext.CompositeElement(d,true)}c.inputCell=c.inputWrap},afterRender:function(){var a=this;a.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);a.invokeTriggers("afterFieldRender")},onMouseDown:function(){if(!this.hasFocus){this.squashMouseUp.scope=this;Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(h){var j=this,c=j.getHideTrigger(),l=j.readOnly,m=j.orderedTriggers=[],k=j.repeatTriggerClick,b,g,d,a,e;if(!h){h={};if(j.triggerCls&&!j.trigger1Cls){j.trigger1Cls=j.triggerCls}for(e=1;a=j["trigger"+e+"Cls"];e++){h["trigger"+e]={cls:a,extraCls:"x-trigger-index-"+e,handler:"onTrigger"+e+"Click",compat4Mode:true,scope:j}}}for(b in h){if(h.hasOwnProperty(b)){g=h[b];g.field=j;g.id=b;if((l&&g.hideOnReadOnly!==false)||(c&&g.hidden!==false)){g.hidden=true}if(k&&(g.repeatClick!==false)){g.repeatClick=true}d=h[b]=Ext.form.trigger.Trigger.create(g);m.push(d)}}Ext.Array.sort(m,Ext.form.trigger.Trigger.weightComparator);return h},invokeTriggers:function(a,c){var e=this,d=e.getTriggers(),g,b;if(d){for(g in d){if(d.hasOwnProperty(g)){b=d[g];b[a].apply(b,c||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateHideTrigger:function(a){this.invokeTriggers(a?"hide":"show")},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(g){var d=this,c=d.getTriggers(),b=d.getHideTrigger(),a,e;g=!!g;Ext.form.field.Base.prototype.setReadOnly.call(this,g);if(d.rendered){d.setReadOnlyAttr(g||!d.editable)}if(c){for(e in c){a=c[e];if(a.hideOnReadOnly===true||(a.hideOnReadOnly!==false&&!b)){a.setVisible(!g)}}}},setReadOnlyAttr:function(d){var b=this,a="readonly",c=b.inputEl.dom;if(d){c.setAttribute(a,a)}else{c.removeAttribute(a)}},processRawValue:function(c){var b=this,e=b.stripCharsRe,a,d;if(e){if(!e.global){a="g";a+=(e.ignoreCase)?"i":"";a+=(e.multiline)?"m":"";e=new RegExp(e.source,a)}d=c.replace(e,"");if(d!==c){b.setRawValue(d);if(b.lastValue===c){b.lastValue=d}c=d}}return c},onDisable:function(){Ext.form.field.Base.prototype.onDisable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable="on"}},onEnable:function(){Ext.form.field.Base.prototype.onEnable.call(this);if(Ext.isIE){this.inputEl.dom.unselectable=""}},onKeyDown:function(a){this.fireEvent("keydown",this,a)},onKeyUp:function(a){this.fireEvent("keyup",this,a)},onKeyPress:function(a){this.fireEvent("keypress",this,a)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var b=this,a=b.emptyText,c;if(b.rendered&&a){c=b.getRawValue().length<1&&!b.hasFocus;if(Ext.supports.Placeholder){b.inputEl.dom.placeholder=a}else{if(c){b.setRawValue(a);b.valueContainsPlaceholder=true}}if(c){b.inputEl.addCls(b.emptyUICls)}else{b.inputEl.removeCls(b.emptyUICls)}b.autoSize()}},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var a=this.inputEl;if(a){a.dom.unselectable="on"}}},toggleInvalidCls:function(a){var b=a?"addCls":"removeCls";Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[b](this.triggerWrapInvalidCls);this.inputWrap[b](this.inputWrapInvalidCls)},beforeFocus:function(){var b=this,c=b.inputEl,a=b.emptyText,d;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if((a&&!Ext.supports.Placeholder)&&(c.dom.value===b.emptyText&&b.valueContainsPlaceholder)){b.setRawValue("");d=true;c.removeCls(b.emptyUICls);b.valueContainsPlaceholder=false}else{if(Ext.supports.Placeholder){c.removeCls(b.emptyUICls)}}},onFocus:function(b){var a=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(a.selectOnFocus){a.inputEl.dom.select()}if(a.emptyText){a.autoSize()}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers("onFieldFocus",[b])},onBlur:function(b){var a=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers("onFieldBlur",[b])},completeEdit:function(a){Ext.form.field.Base.prototype.completeEdit.call(this,a);this.applyEmptyText()},filterKeys:function(b){if((b.ctrlKey&&!b.altKey)||b.isSpecialKey()){return}var a=String.fromCharCode(b.getCharCode());if(!this.maskRe.test(a)){b.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),"value")},applyState:function(a){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(a.hasOwnProperty("value")){this.setValue(a.value)}},getRawValue:function(){var b=this,a=Ext.form.field.Base.prototype.getRawValue.call(this);if(a===b.emptyText&&b.valueContainsPlaceholder){a=""}return a},setValue:function(b){var a=this,c=a.inputEl;if(c&&a.emptyText&&!Ext.isEmpty(b)){c.removeCls(a.emptyUICls);a.valueContainsPlaceholder=false}Ext.form.field.Base.prototype.setValue.apply(this,arguments);a.applyEmptyText();return a},getErrors:function(l){l=arguments.length?(l==null?"":l):this.processRawValue(this.getRawValue());var g=this,j=Ext.form.field.Base.prototype.getErrors.call(this,l),a=g.validator,d=g.vtype,h=Ext.form.field.VTypes,i=g.regex,k=Ext.String.format,b,e,c;if(Ext.isFunction(a)){b=a.call(g,l);if(b!==true){j.push(b)}}e=g.allowOnlyWhitespace?l:Ext.String.trim(l);if(e.length<1||(l===g.emptyText&&g.valueContainsPlaceholder)){if(!g.allowBlank){j.push(g.blankText)}if(!g.validateBlank){return j}c=true}if(!c&&l.length<g.minLength){j.push(k(g.minLengthText,g.minLength))}if(l.length>g.maxLength){j.push(k(g.maxLengthText,g.maxLength))}if(d){if(!h[d](l,g)){j.push(g.vtypeText||h[d+"Text"])}}if(i&&!i.test(l)){j.push(g.regexText||g.invalidText)}return j},selectText:function(h,b){var g=this,e=g.inputEl.dom,d=e.value,a=d.length,c;if(a>0){h=h===undefined?0:Math.min(h,a);b=b===undefined?a:Math.min(b,a);if(e.setSelectionRange){e.setSelectionRange(h,b)}else{if(e.createTextRange){c=e.createTextRange();c.moveStart("character",h);c.moveEnd("character",b-a);c.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var c=this,b,h,e,g,a,d;if(c.grow&&c.rendered&&c.getSizeModel().width.auto){g=c.inputEl;b=c.getTriggers();e=0;d=Ext.util.Format.htmlEncode(c.getGrowWidth()||(c.hasFocus?"":c.emptyText)||"");d+=c.growAppend;for(h in b){e+=b[h].el.getWidth()}a=g.getTextWidth(d)+e+c.inputWrap.getBorderWidth("lr")+c.triggerWrap.getBorderWidth("lr");a=Math.min(Math.max(a,c.growMin),c.growMax);c.bodyEl.setWidth(a);c.updateLayout();c.fireEvent("autosize",c,a)}},onDestroy:function(){var a=this;a.invokeTriggers("destroy");Ext.destroy(a.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return"textfield"}},deprecated:{5:{methods:{getTriggerWidth:function(){var b=this.getTriggers(),a=0,c;if(b&&this.rendered){for(c in b){if(b.hasOwnProperty(c)){a+=b[c].el.getWidth()}}}return a}}}}},0,["textfield"],["component","box","field","textfield"],{component:true,box:true,field:true,textfield:true},["widget.textfield"],0,[Ext.form.field,"Text",Ext.form,"TextField",Ext.form,"Text"],0));(Ext.cmd.derive("Ext.form.field.TextArea",Ext.form.field.Text,{alternateClassName:"Ext.form.TextArea",fieldSubTpl:['<textarea id="{id}" role="{role}" {inputAttrTpl}','<tpl if="name"> name="{name}"</tpl>','<tpl if="placeholder"> placeholder="{placeholder}"</tpl>','<tpl if="maxLength !== undefined"> maxlength="{maxLength}"</tpl>','<tpl if="readOnly"> readonly="readonly"</tpl>','<tpl if="disabled"> disabled="disabled"</tpl>','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>',' class="{fieldCls} {typeCls} {typeCls}-{ui} {inputCls}" ','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>',' autocomplete="off">\n','<tpl if="value">{[Ext.util.Format.htmlEncode(values.value)]}</tpl>',"</textarea>",{disableFormats:true}],growMin:60,growMax:1000,growAppend:"\n-",enterIsSpecial:false,preventScrollbars:false,returnRe:/\r/g,inputCls:"x-form-textarea",extraFieldBodyCls:"x-form-textarea-body",getSubTplData:function(b){var d=this,c=d.getFieldStyle(),a=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(d.grow){if(d.preventScrollbars){a.fieldStyle=(c||"")+";overflow:hidden;height:"+d.growMin+"px"}}return a},afterRender:function(){var a=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);a.needsMaxCheck=a.enforceMaxLength&&a.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(a.needsMaxCheck){a.inputEl.on("paste",a.onPaste,a)}},transformRawValue:function(a){return this.stripReturns(a)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(a){a=this.stripReturns(a);return Ext.form.field.Text.prototype.valueToRaw.call(this,a)},stripReturns:function(a){if(a&&typeof a==="string"){a=a.replace(this.returnRe,"")}return a},onPaste:function(){var a=this;if(!a.pasteTask){a.pasteTask=new Ext.util.DelayedTask(a.pasteCheck,a)}a.pasteTask.delay(1)},pasteCheck:function(){var b=this,c=b.getValue(),a=b.maxLength;if(c.length>a){c=c.substr(0,a);b.setValue(c)}},fireKey:function(d){var b=this,a=d.getKey(),c;if(d.isSpecialKey()&&(b.enterIsSpecial||(a!==d.ENTER||d.hasModifier()))){b.fireEvent("specialkey",b,d)}if(b.needsMaxCheck&&a!==d.BACKSPACE&&a!==d.DELETE&&!d.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(d,a)){c=b.getValue();if(c.length>=b.maxLength){d.stopEvent()}}},isCutCopyPasteSelectAll:function(b,a){if(b.ctrlKey){return a===b.A||a===b.C||a===b.V||a===b.X}return false},autoSize:function(){var c=this,e,a,b,d;if(c.grow&&c.rendered&&c.getSizeModel().height.auto){e=c.inputEl;b=e.getWidth(true);d=Ext.util.Format.htmlEncode(e.dom.value)||"&#160;";d+=c.growAppend;d=d.replace(/\n/g,"<br/>");a=Ext.util.TextMetrics.measure(e,d,b).height+e.getPadding("tb")+c.inputWrap.getBorderWidth("tb")+c.triggerWrap.getBorderWidth("tb");a=Math.min(Math.max(a,c.growMin),c.growMax);c.bodyEl.setHeight(a);c.updateLayout();c.fireEvent("autosize",c,a)}},beforeDestroy:function(){var a=this.pasteTask;if(a){a.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.call(this)}},0,["textarea","textareafield"],["component","box","field","textfield","textareafield","textarea"],{component:true,box:true,field:true,textfield:true,textareafield:true,textarea:true},["widget.textarea","widget.textareafield"],0,[Ext.form.field,"TextArea",Ext.form,"TextArea"],0));(Ext.cmd.derive("Ext.window.MessageBox",Ext.window.Window,{OK:1,YES:2,NO:4,CANCEL:8,OKCANCEL:9,YESNO:6,YESNOCANCEL:14,INFO:"x-message-box-info",WARNING:"x-message-box-warning",QUESTION:"x-message-box-question",ERROR:"x-message-box-error",hideMode:"offsets",closeAction:"hide",resizable:false,scrollable:true,title:"&#160;",defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:true,cls:["x-message-box","x-hidden-offsets"],layout:{type:"vbox",align:"stretch"},shrinkWrapDock:true,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:"OK",yes:"Yes",no:"No",cancel:"Cancel"},buttonIds:["ok","yes","no","cancel"],titleText:{confirm:"Confirm",prompt:"Prompt",wait:"Loading...",alert:"Attention"},baseIconCls:"x-message-box-icon",ariaRole:"alertdialog",makeButton:function(a){var b=this.buttonIds[a];return new Ext.button.Button({handler:this.btnCallback,itemId:b,scope:this,text:this.buttonText[b],minWidth:75})},btnCallback:function(a,c){var b=this,d,e;if(c&&c.type==="keydown"&&!c.isSpecialKey()){c.getTarget(null,null,true).on({keyup:function(g){b.btnCallback(a,g)},single:true});return}if(b.cfg.prompt||b.cfg.multiline){if(b.cfg.multiline){e=b.textArea}else{e=b.textField}d=e.getValue();e.reset()}b.hide();b.userCallback(a.itemId,d,b.cfg)},hide:function(){var b=this,a=b.cfg?b.cfg.cls:"";b.progressBar.reset();if(a){b.removeCls(a)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(a){var b=this;Ext.window.Window.prototype.constructor.apply(this,arguments);b.minWidth=b.defaultMinWidth=(b.minWidth||b.defaultMinWidth);b.maxWidth=b.defaultMaxWidth=(b.maxWidth||b.defaultMaxWidth);b.minHeight=b.defaultMinHeight=(b.minHeight||b.defaultMinHeight);b.maxHeight=b.defaultMaxHeight=(b.maxHeight||b.defaultMaxHeight)},initComponent:function(a){var e=this,b=e.id,d,c;e.title=e.title||"&#160;";e.iconCls=e.iconCls||"";e.topContainer=new Ext.container.Container({layout:"hbox",padding:10,style:{overflow:"hidden"},items:[e.iconComponent=new Ext.Component({cls:e.baseIconCls}),e.promptContainer=new Ext.container.Container({flex:1,layout:{type:"vbox",align:"stretch"},items:[e.msg=new Ext.Component({id:b+"-msg",cls:e.baseCls+"-text"}),e.textField=new Ext.form.field.Text({id:b+"-textfield",enableKeyEvents:true,listeners:{keydown:e.onPromptKey,scope:e}}),e.textArea=new Ext.form.field.TextArea({id:b+"-textarea",height:75})]})]});e.progressBar=new Ext.ProgressBar({id:b+"-progressbar",margin:"0 10 10 10"});e.items=[e.topContainer,e.progressBar];e.msgButtons=[];for(d=0;d<4;d++){c=e.makeButton(d);e.msgButtons[c.itemId]=c;e.msgButtons.push(c)}e.bottomTb=new Ext.toolbar.Toolbar({id:b+"-toolbar",ui:"footer",dock:"bottom",layout:{pack:"center"},items:[e.msgButtons[0],e.msgButtons[1],e.msgButtons[2],e.msgButtons[3]]});e.dockedItems=[e.bottomTb];e.on("close",e.onClose,e);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var a=this.header.child("[type=close]");if(a){a.itemId="cancel";this.btnCallback(a);delete a.itemId}},onPromptKey:function(a,c){var b=this;if(c.keyCode===c.RETURN||c.keyCode===10){if(b.msgButtons.ok.isVisible()){b.msgButtons.ok.handler.call(b,b.msgButtons.ok)}else{if(b.msgButtons.yes.isVisible()){b.msgButtons.yes.handler.call(b,b.msgButtons.yes)}}}},reconfigure:function(d){var u=this,r=0,h=true,w=u.buttonText,g=u.resizer,p=u.header,t=p&&!p.isHeader,e=d&&(d.message||d.msg),v,a,x,n,k,q,s,j,c,l,o,m,b;u.updateButtonText();u.cfg=d=d||{};m=d.wait;if(d.width){n=d.width}if(d.height){k=d.height}u.minWidth=d.minWidth||u.defaultMinWidth;u.maxWidth=d.maxWidth||u.defaultMaxWidth;u.minHeight=d.minHeight||u.defaultMinHeight;u.maxHeight=d.maxHeight||u.defaultMaxHeight;if(g){x=g.resizeTracker;g.minWidth=x.minWidth=u.minWidth;g.maxWidth=x.maxWidth=u.maxWidth;g.minHeight=x.minHeight=u.minHeight;g.maxHeight=x.maxHeight=u.maxHeight}delete u.defaultFocus;if(d.defaultFocus){u.defaultFocus=d.defaultFocus}u.animateTarget=d.animateTarget||undefined;u.modal=d.modal!==false;if(d.title!=null){v=d.title}else{if(t&&p.title!=null){v=p.title}else{v=u.title}}if(d.iconCls!=null){a=d.iconCls}else{if(t&&p.iconCls!=null){a=p.iconCls}else{a=u.iconCls}}u.setTitle(v);u.setIconCls(a);if(Ext.isObject(d.buttons)){u.buttonText=d.buttons;r=0}else{u.buttonText=d.buttonText||u.buttonText;r=Ext.isNumber(d.buttons)?d.buttons:0}r=r|u.updateButtonText();u.buttonText=w;Ext.suspendLayouts();u.width=u.height=null;if(n||k){if(n){u.setWidth(n)}if(k){u.setHeight(k)}}u.hidden=false;if(!u.rendered){u.render(Ext.getBody())}u.closable=d.closable!==false&&!m;p=u.header;if(p){b=p.child("[type=close]");if(b){b.setVisible(u.closable)}if(!d.title&&!u.closable&&!d.iconCls){p.hide()}else{p.show()}}u.liveDrag=!d.proxyDrag;u.userCallback=Ext.Function.bindCallback(d.callback||d.fn||Ext.emptyFn,d.scope||Ext.global);u.setIcon(d.icon);c=u.msg;if(e){c.setHtml(e);c.show()}else{c.hide()}s=u.textArea;j=u.textField;if(d.prompt||d.multiline){u.multiline=d.multiline;if(d.multiline){s.setValue(d.value);s.setHeight(d.defaultTextHeight||u.defaultTextHeight);s.show();j.hide();u.defaultFocus=s}else{j.setValue(d.value);s.hide();j.show();u.defaultFocus=j}}else{s.hide();j.hide()}l=u.progressBar;if(d.progress||m){l.show();u.updateProgress(0,d.progressText);if(m){l.wait(m===true?d.waitConfig:m)}}else{l.hide()}o=u.msgButtons;for(q=0;q<4;q++){if(r&Math.pow(2,q)){if(!u.defaultFocus){u.defaultFocus=o[q]}o[q].show();h=false}else{o[q].hide()}}if(h){u.bottomTb.hide()}else{u.bottomTb.show()}Ext.resumeLayouts(true)},updateButtonText:function(){var d=this,c=d.buttonText,b=0,e,a;for(e in c){if(c.hasOwnProperty(e)){a=d.msgButtons[e];if(a){if(d.cfg&&d.cfg.buttonText){b=b|Math.pow(2,Ext.Array.indexOf(d.buttonIds,e))}if(a.text!==c[e]){a.setText(c[e])}}}}return b},show:function(a){var c=this,b;a=a||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){c.show(a)},single:true});return c}c.reconfigure(a);if(a.cls){c.addCls(a.cls)}b=c.query("textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])");c.preventFocusOnActivate=!b.length;c.hidden=true;Ext.window.Window.prototype.show.call(this);return c},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(d,c,a){var e=this,g=e.iconComponent,b=e.messageIconCls;if(b){g.removeCls(b)}if(d){g.show();if(c||a){g.setSize(c||g.getWidth(),a||g.getHeight())}g.addCls("x-dlg-icon");g.addCls(e.messageIconCls=d)}else{g.removeCls("x-dlg-icon");g.hide()}return e},updateProgress:function(c,a,b){this.progressBar.updateProgress(c,a);if(b){this.updateText(b)}return this},onEsc:function(){if(this.closable!==false){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,d,c,b){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:d,buttons:this.YESNO,callback:c,scope:b}}return this.show(a)},prompt:function(g,d,c,b,a,e){if(Ext.isString(g)){g={prompt:true,title:g,minWidth:this.minPromptWidth,message:d,buttons:this.OKCANCEL,callback:c,scope:b,multiline:a,value:e}}return this.show(g)},wait:function(b,c,a){if(Ext.isString(b)){b={title:c,message:b,closable:false,wait:true,modal:true,minWidth:this.minProgressWidth,waitConfig:a}}return this.show(b)},alert:function(d,c,b,a){if(Ext.isString(d)){d={title:d,message:c,buttons:this.OK,fn:b,scope:a,minWidth:this.minWidth}}return this.show(d)},progress:function(c,b,a){if(Ext.isString(c)){c={title:c,message:b,progress:true,progressText:a}}return this.show(c)}},1,["messagebox"],["component","box","container","panel","window","messagebox"],{component:true,box:true,container:true,panel:true,window:true,messagebox:true},["widget.messagebox"],0,[Ext.window,"MessageBox"],function(a){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new a()})}));(Ext.cmd.derive("Ext.form.Basic",Ext.util.Observable,{alternateClassName:"Ext.form.BasicForm",taskDelay:10,constructor:function(b,c){var d=this,a;d.owner=b;d.fieldMonitors={validitychange:d.checkValidityDelay,enable:d.checkValidityDelay,disable:d.checkValidityDelay,dirtychange:d.checkDirtyDelay,errorchange:d.checkErrorDelay,scope:d};d.checkValidityTask=new Ext.util.DelayedTask(d.checkValidity,d);d.checkDirtyTask=new Ext.util.DelayedTask(d.checkDirty,d);d.checkErrorTask=new Ext.util.DelayedTask(d.checkError,d);d.monitor=new Ext.container.Monitor({selector:"[isFormField]:not([excludeForm])",scope:d,addHandler:d.onFieldAdd,removeHandler:d.onFieldRemove,invalidateHandler:d.onMonitorInvalidate});d.monitor.bind(b);Ext.apply(d,c);if(Ext.isString(d.paramOrder)){d.paramOrder=d.paramOrder.split(/[\s,|]/)}a=d.reader;if(a&&!a.isReader){if(typeof a==="string"){a={type:a}}d.reader=Ext.createByAlias("reader."+a.type,a)}a=d.errorReader;if(a&&!a.isReader){if(typeof a==="string"){a={type:a}}d.errorReader=Ext.createByAlias("reader."+a.type,a)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=true;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:false,waitTitle:"Please Wait...",trackResetOnLoad:false,wasDirty:false,destroy:function(){var b=this,a=b.monitor;if(a){a.unbind();b.monitor=null}b.clearListeners();b.checkValidityTask.cancel();b.checkDirtyTask.cancel();b.checkErrorTask.cancel();b.checkValidityTask=b.checkDirtyTask=b.checkErrorTask=null;b.isDestroyed=true},onFieldAdd:function(a){a.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(a){a.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var a=this._boundItems;if(!a||a.getCount()===0){a=this._boundItems=new Ext.util.MixedCollection();a.addAll(this.owner.query("[formBind]"))}return a},hasInvalidField:function(){return !!this.getFields().findBy(function(c){var a=c.preventMark,b;c.preventMark=true;b=c.isValid();c.preventMark=a;return !b})},isValid:function(){var a=this,b;Ext.suspendLayouts();b=a.getFields().filterBy(function(c){return !c.validate()});Ext.resumeLayouts(true);return b.length<1},checkValidity:function(){var b=this,a;if(b.isDestroyed){return}a=!b.hasInvalidField();if(a!==b.wasValid){b.onValidityChange(a);b.fireEvent("validitychange",b,a);b.wasValid=a}},checkValidityDelay:function(){var a=this.taskDelay;if(a){this.checkValidityTask.delay(a)}else{this.checkValidity()}},checkError:function(){this.fireEvent("errorchange",this)},checkErrorDelay:function(){var a=this.taskDelay;if(a){this.checkErrorTask.delay(a)}else{this.checkError()}},onValidityChange:function(g){var d=this.getBoundItems(),b,c,a,e;if(d){b=d.items;a=b.length;for(c=0;c<a;c++){e=b[c];if(e.disabled===g){e.setDisabled(!g)}}}},isDirty:function(){return !!this.getFields().findBy(function(a){return a.isDirty()})},checkDirtyDelay:function(){var a=this.taskDelay;if(a){this.checkDirtyTask.delay(a)}else{this.checkDirty()}},checkDirty:function(){var b=this,a;if(b.isDestroyed){return}a=this.isDirty();if(a!==this.wasDirty){this.fireEvent("dirtychange",this,a);this.wasDirty=a}},hasUpload:function(){return !!this.getFields().findBy(function(a){return a.isFileUpload()})},doAction:function(b,a){if(Ext.isString(b)){b=Ext.ClassManager.instantiateByAlias("formaction."+b,Ext.apply({},a,{form:this}))}if(this.fireEvent("beforeaction",this,b)!==false){this.beforeAction(b);Ext.defer(b.run,100,b)}return this},submit:function(a){a=a||{};var b=this,c;if(a.standardSubmit||b.standardSubmit){c="standardsubmit"}else{c=b.api?"directsubmit":"submit"}return b.doAction(c,a)},load:function(a){return this.doAction(this.api?"directload":"load",a)},updateRecord:function(c){c=c||this._record;if(!c){return this}var b=c.self.fields,d=this.getFieldValues(),h={},g=0,a=b.length,e;for(;g<a;++g){e=b[g].name;if(d.hasOwnProperty(e)){h[e]=d[e]}}c.beginEdit();c.set(h);c.endEdit();return this},loadRecord:function(a){this._record=a;return this.setValues(a.getData())},getRecord:function(){return this._record},beforeAction:function(c){var g=this,b=c.waitMsg,j="x-mask-loading",d=g.getFields().items,e,i=d.length,h,a;for(e=0;e<i;e++){h=d[e];if(h.isFormField&&h.syncValue){h.syncValue()}}if(b){a=g.waitMsgTarget;if(a===true){g.owner.el.mask(b,j)}else{if(a){a=g.waitMsgTarget=Ext.get(a);a.mask(b,j)}else{g.floatingAncestor=g.owner.up("[floating]");if(g.floatingAncestor){g.savePreventFocusOnActivate=g.floatingAncestor.preventFocusOnActivate;g.floatingAncestor.preventFocusOnActivate=true}Ext.MessageBox.wait(b,c.waitTitle||g.waitTitle)}}}},afterAction:function(c,e){var a=this;if(c.waitMsg){var b=Ext.MessageBox,d=a.waitMsgTarget;if(d===true){a.owner.el.unmask()}else{if(d){d.unmask()}else{b.hide()}}}if(a.floatingAncestor){a.floatingAncestor.preventFocusOnActivate=a.savePreventFocusOnActivate}if(e){if(c.reset){a.reset()}Ext.callback(c.success,c.scope||c,[a,c]);a.fireEvent("actioncomplete",a,c)}else{Ext.callback(c.failure,c.scope||c,[a,c]);a.fireEvent("actionfailed",a,c)}},findField:function(a){return this.getFields().findBy(function(b){return b.id===a||b.name===a||b.dataIndex===a})},markInvalid:function(j){var d=this,h,a,b,g,c;function i(e,l){var k=d.findField(e);if(k){k.markInvalid(l)}}if(Ext.isArray(j)){a=j.length;for(h=0;h<a;h++){b=j[h];i(b.id||b.field,b.msg||b.message)}}else{if(j instanceof Ext.data.ErrorCollection){a=j.items.length;for(h=0;h<a;h++){b=j.items[h];i(b.field,b.message)}}else{for(c in j){if(j.hasOwnProperty(c)){g=j[c];i(c,g,j)}}}}return this},setValues:function(b){var d=this,a,c,g;function e(h,j){var i=d.findField(h);if(i){i.setValue(j);if(d.trackResetOnLoad){i.resetOriginalValue()}}}Ext.suspendLayouts();if(Ext.isArray(b)){c=b.length;for(a=0;a<c;a++){g=b[a];e(g.id,g.value)}}else{Ext.iterate(b,e)}Ext.resumeLayouts(true);return this},getValues:function(j,k,o,m,c){var n={},h=this.getFields().items,p=h.length,g=Ext.isArray,l,e,d,b,a,i;for(i=0;i<p;i++){l=h[i];if(!k||l.isDirty()){e=l[m?"getModelData":"getSubmitData"](o,c);if(Ext.isObject(e)){for(a in e){if(e.hasOwnProperty(a)){d=e[a];if(o&&d===""){d=l.emptyText||""}if(!l.isRadio){if(l.isCheckbox&&d===null){continue}if(n.hasOwnProperty(a)){b=n[a];if(!g(b)){b=n[a]=[b]}if(g(d)){n[a]=b.concat(d)}else{b.push(d)}}else{n[a]=d}}else{n[a]=n[a]||d}}}}}}if(j){n=Ext.Object.toQueryString(n)}return n},getFieldValues:function(a){return this.getValues(false,a,false,true)},clearInvalid:function(){Ext.suspendLayouts();var b=this,a=b.getFields().items,c,d=a.length;for(c=0;c<d;c++){a[c].clearInvalid()}Ext.resumeLayouts(true);return b},reset:function(b){Ext.suspendLayouts();var c=this,a=c.getFields().items,d,e=a.length;for(d=0;d<e;d++){a[d].reset()}Ext.resumeLayouts(true);if(b===true){delete c._record}return c},applyToFields:function(c){var a=this.getFields().items,b,d=a.length;for(b=0;b<d;b++){Ext.apply(a[b],c)}return this},applyIfToFields:function(c){var a=this.getFields().items,b,d=a.length;for(b=0;b<d;b++){Ext.applyIf(a[b],c)}return this}},1,0,0,0,0,0,[Ext.form,"Basic",Ext.form,"BasicForm"],0));(Ext.cmd.derive("Ext.form.FieldAncestor",Ext.Mixin,{mixinConfig:{id:"fieldAncestor",after:{initInheritedState:"initFieldInheritedState"},before:{destroy:"onBeforeDestroy"}},initFieldAncestor:function(){var a=this;a.monitor=new Ext.container.Monitor({scope:a,selector:"[isFormField]:not([excludeForm])",addHandler:a.onChildFieldAdd,removeHandler:a.onChildFieldRemove});a.initFieldDefaults()},initMonitor:function(){this.monitor.bind(this)},initFieldInheritedState:function(b){var a=b.fieldDefaults,c=this.fieldDefaults;if(c){if(a){b.fieldDefaults=Ext.apply(Ext.Object.chain(a),c)}else{b.fieldDefaults=c}}},onChildFieldAdd:function(b){var a=this;a.mon(b,"errorchange",a.handleFieldErrorChange,a);a.mon(b,"validitychange",a.handleFieldValidityChange,a)},onChildFieldRemove:function(b){var a=this;a.mun(b,"errorchange",a.handleFieldErrorChange,a);a.mun(b,"validitychange",a.handleFieldValidityChange,a)},initFieldDefaults:function(){if(!this.fieldDefaults){this.fieldDefaults={}}},handleFieldValidityChange:function(c,b){var a=this;if(c!==a){a.fireEvent("fieldvaliditychange",a,c,b);a.onFieldValidityChange(c,b)}},handleFieldErrorChange:function(b,a){var c=this;if(b!==c){c.fireEvent("fielderrorchange",c,b,a);c.onFieldErrorChange(b,a)}},onFieldValidityChange:Ext.emptyFn,onFieldErrorChange:Ext.emptyFn,onBeforeDestroy:function(){this.monitor.unbind()}},0,0,0,0,0,0,[Ext.form,"FieldAncestor"],0));(Ext.cmd.derive("Ext.layout.component.field.FieldContainer",Ext.layout.component.Auto,{type:"fieldcontainer",waitForOuterHeightInDom:true,waitForOuterWidthInDom:true,beginLayout:function(b){var a=this.owner.containerEl;Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);b.hasRawContent=true;a.setStyle("width","");a.setStyle("height","");b.containerElContext=b.getEl("containerEl")},measureContentHeight:function(a){return a.hasDomProp("containerLayoutDone")?Ext.layout.component.Auto.prototype.measureContentHeight.apply(this,arguments):NaN},measureContentWidth:function(a){return a.hasDomProp("containerLayoutDone")?Ext.layout.component.Auto.prototype.measureContentWidth.apply(this,arguments):NaN},publishInnerHeight:function(c,b){var a=this.owner;if(a.labelAlign==="top"&&a.hasVisibleLabel()){b-=a.labelEl.getHeight()}if(a.msgTarget==="under"&&a.hasActiveError()){b-=a.errorWrapEl.getHeight()}b-=a.bodyEl.getPadding("tb");c.containerElContext.setHeight(b)},publishInnerWidth:function(c,b){var a=this.owner;if(a.labelAlign!=="top"&&a.hasVisibleLabel()){b-=(a.labelWidth+(a.labelPad||0))}if(a.msgTarget==="side"&&a.hasActiveError()){b-=a.errorWrapEl.getWidth()}b-=a.bodyEl.getPadding("lr");c.containerElContext.setWidth(b)}},0,0,0,0,["layout.fieldcontainer"],0,[Ext.layout.component.field,"FieldContainer"],0));(Ext.cmd.derive("Ext.form.FieldContainer",Ext.container.Container,{componentLayout:"fieldcontainer",componentCls:"x-form-fieldcontainer",shrinkWrap:true,childEls:["containerEl"],combineLabels:false,labelConnector:", ",combineErrors:false,maskOnDisable:false,invalidCls:"",fieldSubTpl:['<div id="{id}-containerEl" data-ref="containerEl" class="{containerElCls}" role="presentation">',"{%this.renderContainer(out,values)%}","</div>"],initComponent:function(){var a=this;a.initLabelable();a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.initMonitor()},onAdd:function(a){var b=this;if(a.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&b.layout.type==="absolute"&&!b.hideLabel&&b.labelAlign!=="top"){a.x+=(b.labelWidth+b.labelPad)}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(a.isLabelable&&b.combineLabels){a.oldHideLabel=a.hideLabel;a.hideLabel=true}b.updateLabel()},onRemove:function(a,b){var c=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!b){if(a.isLabelable&&c.combineLabels){a.hideLabel=a.oldHideLabel}c.updateLabel()}},initRenderData:function(){var a=this,b=Ext.container.Container.prototype.initRenderData.call(this);b.containerElCls=a.containerElCls;b=Ext.applyIf(b,a.getLabelableRenderData());b.tipAnchorTarget=a.id+"-containerEl";return b},getFieldLabel:function(){var a=this.fieldLabel||"";if(!a&&this.combineLabels){a=Ext.Array.map(this.query("[isFieldLabelable]"),function(b){return b.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(b){var d=this,a=d.getTpl("fieldSubTpl"),c;if(!a.renderContent){d.setupRenderTpl(a)}c=a.apply(d.getSubTplData(b));return c},updateLabel:function(){var b=this,a=b.labelEl;if(a){b.setFieldLabel(b.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var c=this,d=c.getActiveError(),b=Ext.Array.filter(c.query("[isFormField]"),function(e){return e.hasActiveError()}),a=c.getCombinedErrors(b);if(a){c.setActiveErrors(a)}else{c.unsetActiveError()}if(d!==c.getActiveError()){c.updateLayout()}}},getCombinedErrors:function(e){var k=[],c,l=e.length,i,d,j,b,g,h;for(c=0;c<l;c++){i=e[c];d=i.getActiveErrors();b=d.length;for(j=0;j<b;j++){g=d[j];h=i.getFieldLabel();k.push((h?h+": ":"")+g)}}return k},privates:{applyTargetCls:function(b){var a=this.containerElCls;this.containerElCls=a?a+" "+b:b},getTargetEl:function(){return this.containerEl},initRenderTpl:function(){var a=this;if(!a.hasOwnProperty("renderTpl")){a.renderTpl=a.getTpl("labelableRenderTpl")}return Ext.container.Container.prototype.initRenderTpl.call(this)}}},0,["fieldcontainer"],["component","box","container","fieldcontainer"],{component:true,box:true,container:true,fieldcontainer:true},["widget.fieldcontainer"],[["labelable",Ext.form.Labelable],["fieldAncestor",Ext.form.FieldAncestor]],[Ext.form,"FieldContainer"],0));(Ext.cmd.derive("Ext.layout.container.CheckboxGroup",Ext.layout.container.Container,{autoFlex:true,type:"checkboxgroup",createsInnerCt:true,childEls:["innerCt"],renderTpl:['<table id="{ownerId}-innerCt" data-ref="innerCt" class="x-table-plain" cellpadding="0"','role="presentation" style="{tableStyle}"><tr role="presentation">','<tpl for="columns">','<td class="{parent.colCls}" valign="top" style="{style}" role="presentation">',"{% this.renderColumn(out,parent,xindex-1) %}","</td>","</tpl>","</tr></table>"],lastOwnerItemsGeneration:null,beginLayout:function(b){var k=this,e,d,h,a,j,g=0,m=0,l=k.autoFlex,c=k.innerCt.dom.style;Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);e=k.columnNodes;b.innerCtContext=b.getEl("innerCt",k);if(!b.widthModel.shrinkWrap){d=e.length;if(k.columnsArray){for(h=0;h<d;h++){a=k.owner.columns[h];if(a<1){g+=a;m++}}for(h=0;h<d;h++){a=k.owner.columns[h];if(a<1){j=((a/g)*100)+"%"}else{j=a+"px"}e[h].style.width=j}}else{for(h=0;h<d;h++){j=l?(1/d*100)+"%":"";e[h].style.width=j;m++}}if(!m){c.tableLayout="fixed";c.width=""}else{if(m<d){c.tableLayout="fixed";c.width="100%"}else{c.tableLayout="auto";if(l){c.width="100%"}else{c.width=""}}}}else{c.tableLayout="auto";c.width=""}},cacheElements:function(){var a=this;Ext.layout.container.Container.prototype.cacheElements.call(this);a.rowEl=a.innerCt.down("tr");a.columnNodes=a.rowEl.dom.childNodes},calculate:function(h){var e=this,c,b,a,i,d,g;if(!h.getDomProp("containerChildrenSizeDone")){e.done=false}else{c=h.innerCtContext;b=h.widthModel.shrinkWrap;a=h.heightModel.shrinkWrap;i=a||b;d=c.el.dom;g=i&&c.getPaddingInfo();if(b){h.setContentWidth(d.offsetWidth+g.width,true)}if(a){h.setContentHeight(d.offsetHeight+g.height,true)}}},doRenderColumn:function(d,l,g){var i=l.$layout,c=i.owner,e=l.columnCount,h=c.items.items,b=h.length,m,a,j,k,n;if(c.vertical){j=Math.ceil(b/e);a=g*j;b=Math.min(b,a+j);k=1}else{a=g;k=e}for(;a<b;a+=k){m=h[a];i.configureItem(m);n=m.getRenderTree();Ext.DomHelper.generateMarkup(n,d)}},getColumnCount:function(){var b=this,a=b.owner,c=a.columns;if(b.columnsArray){return c.length}if(Ext.isNumber(c)){return c}return a.items.length},getItemSizePolicy:function(a){return this.autoSizePolicy},getRenderData:function(){var k=this,g=Ext.layout.container.Container.prototype.getRenderData.call(this),b=k.owner,h,d=k.getColumnCount(),a,c,j,l=k.autoFlex,e=0,m=0;if(k.columnsArray){for(h=0;h<d;h++){a=k.owner.columns[h];if(a<1){e+=a;m++}}}g.colCls=b.groupCls;g.columnCount=d;g.columns=[];for(h=0;h<d;h++){c=(g.columns[h]={});if(k.columnsArray){a=k.owner.columns[h];if(a<1){j=((a/e)*100)+"%"}else{j=a+"px"}c.style="width:"+j}else{c.style="width:"+(1/d*100)+"%";m++}}g.tableStyle=!m?"table-layout:fixed;":(m<d)?"table-layout:fixed;width:100%":(l)?"table-layout:auto;width:100%":"table-layout:auto;";return g},initLayout:function(){var b=this,a=b.owner;b.columnsArray=Ext.isArray(a.columns);b.autoColumns=!a.columns||a.columns==="auto";b.vertical=a.vertical;Ext.layout.container.Container.prototype.initLayout.call(this)},isValidParent:Ext.returnTrue,setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderColumn=this.doRenderColumn},renderChildren:function(){var a=this,b=a.owner.items.generation;if(a.lastOwnerItemsGeneration!==b){a.lastOwnerItemsGeneration=b;a.renderItems(a.getLayoutItems())}},renderItems:function(e){var g=this,a=e.length,b,k,j,d,h,c;if(a){Ext.suspendLayouts();if(g.autoColumns){g.addMissingColumns(a)}d=g.columnNodes.length;j=Math.ceil(a/d);for(b=0;b<a;b++){k=e[b];h=g.getRenderRowIndex(b,j,d);c=g.getRenderColumnIndex(b,j,d);if(!k.rendered){g.renderItem(k,h,c)}else{if(!g.isItemAtPosition(k,h,c)){g.moveItem(k,h,c)}}}if(g.autoColumns){g.removeExceedingColumns(a)}Ext.resumeLayouts(true)}},isItemAtPosition:function(b,c,a){return b.el.dom===this.getNodeAt(c,a)},getRenderColumnIndex:function(b,a,c){if(this.vertical){return Math.floor(b/a)}else{return b%c}},getRenderRowIndex:function(b,a,d){var c=this;if(c.vertical){return b%a}else{return Math.floor(b/d)}},getNodeAt:function(b,a){return this.columnNodes[a].childNodes[b]},addMissingColumns:function(a){var g=this,c=g.columnNodes.length,e,h,b,d;if(c<a){e=a-c;h=g.rowEl;b=g.owner.groupCls;for(d=0;d<e;d++){h.createChild({cls:b,tag:"td",vAlign:"top",role:"presentation"})}}},removeExceedingColumns:function(a){var e=this,b=e.columnNodes.length,d,g,c;if(b>a){d=b-a;g=e.rowEl;for(c=0;c<d;c++){g.last().destroy()}}},renderItem:function(c,d,a){var b=this;b.configureItem(c);c.render(Ext.get(b.columnNodes[a]),d)},moveItem:function(d,g,b){var c=this,a=c.columnNodes[b],e=a.childNodes[g];a.insertBefore(d.el.dom,e||null)}},0,0,0,0,["layout.checkboxgroup"],0,[Ext.layout.container,"CheckboxGroup"],0));(Ext.cmd.derive("Ext.form.CheckboxManager",Ext.util.MixedCollection,{singleton:true,getByName:function(a,b){return this.filterBy(function(c){return c.name===a&&c.getFormId()===b})}},0,0,0,0,0,0,[Ext.form,"CheckboxManager"],0));(Ext.cmd.derive("Ext.form.field.Checkbox",Ext.form.field.Base,{alternateClassName:"Ext.form.Checkbox",stretchInputElFixed:false,childEls:["boxLabelEl","innerWrapEl","displayEl"],fieldSubTpl:['<div id="{cmpId}-innerWrapEl" data-ref="innerWrapEl" class="{wrapInnerCls} {noBoxLabelCls}" role="presentation">','<tpl if="labelAlignedBefore">',"{beforeBoxLabelTpl}",'<label id="{cmpId}-boxLabelEl" data-ref="boxLabelEl" {boxLabelAttrTpl} class="{boxLabelCls} ','{boxLabelCls}-{ui} {boxLabelCls}-{boxLabelAlign} {childElCls}" for="{id}">',"{beforeBoxLabelTextTpl}","{boxLabel}","{afterBoxLabelTextTpl}","</label>","{afterBoxLabelTpl}","</tpl>",'<input type="button" id="{id}" data-ref="inputEl" role="{role}" {inputAttrTpl}','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>','<tpl if="disabled"> disabled="disabled"</tpl>','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>',' class="{fieldCls} {typeCls} {typeCls}-{ui} {inputCls} {inputCls}-{ui} {childElCls} {afterLabelCls}" autocomplete="off" hidefocus="true" />','<span id="{cmpId}-displayEl" data-ref="displayEl" class="{fieldCls} {typeCls} ','{typeCls}-{ui} {inputCls} {inputCls}-{ui} {childElCls} {afterLabelCls}"></span>','<tpl if="!labelAlignedBefore">',"{beforeBoxLabelTpl}",'<label id="{cmpId}-boxLabelEl" data-ref="boxLabelEl" {boxLabelAttrTpl} class="{boxLabelCls} ','{boxLabelCls}-{ui} {boxLabelCls}-{boxLabelAlign} {childElCls}" for="{id}">',"{beforeBoxLabelTextTpl}","{boxLabel}","{afterBoxLabelTextTpl}","</label>","{afterBoxLabelTpl}","</tpl>","</div>",{disableFormats:true,compiled:true}],publishes:{checked:1},subTplInsertions:["beforeBoxLabelTpl","afterBoxLabelTpl","beforeBoxLabelTextTpl","afterBoxLabelTextTpl","boxLabelAttrTpl","inputAttrTpl"],isCheckbox:true,focusCls:"form-checkbox-focus",fieldBodyCls:"x-form-cb-wrap",checked:false,checkedCls:"x-form-cb-checked",boxLabelCls:"x-form-cb-label",boxLabelAlign:"after",afterLabelCls:"x-form-cb-after",wrapInnerCls:"x-form-cb-wrap-inner",noBoxLabelCls:"x-form-cb-wrap-inner-no-box-label",inputValue:"on",checkChangeEvents:[],inputType:"checkbox",isTextInput:false,ariaRole:"checkbox",onRe:/^on$/i,inputCls:"x-form-cb",initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.apply(this,arguments);a.getManager().add(a)},initValue:function(){var b=this,a=!!b.checked;b.originalValue=b.lastValue=a;b.setValue(a)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getModelData:function(){var a=Ext.form.field.Base.prototype.getModelData.apply(this,arguments);if(a){a[this.getName()]=this.getSubmitValue()}return a},getSubTplData:function(a){var c=this,b=c.boxLabel,e=c.boxLabelAlign,d=e==="before";return Ext.apply(Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments),{disabled:c.readOnly||c.disabled,wrapInnerCls:c.wrapInnerCls,boxLabel:b,boxLabelCls:c.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?c.afterLabelCls:"",noBoxLabelCls:!b?c.noBoxLabelCls:"",role:c.ariaRole})},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.mon(a.inputEl,"click",a.onBoxClick,a,{translate:false});a.displayEl.on({click:"onBoxClick",mousedown:"_onDisplayElMouseDown",scope:a})},setBoxLabel:function(a){var b=this;b.boxLabel=a;if(b.rendered){b.boxLabelEl.setHtml(a);b.innerWrapEl[a?"removeCls":"addCls"](b.noBoxLabelCls);b.updateLayout()}},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){a.setValue(!a.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.checked?this.inputValue:b},isChecked:function(c,a){var b=false;if(c===true||c==="true"){b=true}else{if(a!=="on"&&(a||a===0)&&(Ext.isString(c)||Ext.isNumber(c))){b=c==a}else{b=c==="1"||c===1||this.onRe.test(c)}}return b},setRawValue:function(c){var b=this,d=b.inputEl,e=b.displayEl,a=b.isChecked(c,b.inputValue);if(d){b[a?"addCls":"removeCls"](b.checkedCls)}if(Ext.isIE8&&e&&a!==b.lastValue){e.repaint()}b.checked=b.rawValue=a;if(!b.duringSetValue){b.lastValue=a}return a},setValue:function(g){var e=this,c,b,a,d;if(Ext.isArray(g)){c=e.getManager().getByName(e.name,e.getFormId()).items;a=c.length;for(b=0;b<a;++b){d=c[b];d.setValue(Ext.Array.contains(g,d.inputValue))}}else{e.duringSetValue=true;Ext.form.field.Base.prototype.setValue.apply(this,arguments);delete e.duringSetValue}return e},valueToRaw:Ext.identityFn,onChange:function(b,a){var d=this,c=d.handler;if(c){Ext.callback(c,d.scope,[d,b],0,d)}Ext.form.field.Base.prototype.onChange.apply(this,arguments);if(d.reference&&d.publishState){d.publishState("checked",b)}},resetOriginalValue:function(b){var g=this,d,e,a,c;if(!b){d=g.getManager().getByName(g.name,g.getFormId()).items;a=d.length;for(c=0;c<a;++c){e=d[c];if(e!==g){d[c].resetOriginalValue(true)}}}Ext.form.field.Base.prototype.resetOriginalValue.call(this)},beforeDestroy:function(){Ext.form.field.Base.prototype.beforeDestroy.call(this);this.getManager().removeAtKey(this.id)},getManager:function(){return Ext.form.CheckboxManager},onEnable:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.onEnable.call(this);if(b){b.dom.disabled=a.readOnly}},setReadOnly:function(c){var a=this,b=a.inputEl;if(b){b.dom.disabled=!!c||a.disabled}Ext.form.field.Base.prototype.setReadOnly.apply(this,arguments)},getFormId:function(){var b=this,a;if(!b.formId){a=b.up("form");if(a){b.formId=a.id}}return b.formId},getFocusClsEl:function(){return this.displayEl},privates:{_onDisplayElMouseDown:function(a){a.preventDefault();this.inputEl.focus(1)}}},0,["checkbox","checkboxfield"],["component","box","field","checkboxfield","checkbox"],{component:true,box:true,field:true,checkboxfield:true,checkbox:true},["widget.checkbox","widget.checkboxfield"],0,[Ext.form.field,"Checkbox",Ext.form,"Checkbox"],0));(Ext.cmd.derive("Ext.form.CheckboxGroup",Ext.form.FieldContainer,{columns:"auto",vertical:false,allowBlank:true,blankText:"You must select at least one item in this group",defaultType:"checkboxfield",groupCls:"x-form-check-group",extraFieldBodyCls:"x-form-checkboxgroup-body",layout:"checkboxgroup",componentCls:"x-form-checkboxgroup",ariaRole:"group",initComponent:function(){var a=this;Ext.form.FieldContainer.prototype.initComponent.call(this);a.initField()},initValue:function(){var b=this,a=b.value;b.originalValue=b.lastValue=a||b.getValue();if(a){b.setValue(a)}},onAdd:function(e){var d=this,b,a,c;if(e.isCheckbox){d.mon(e,"change",d.checkChange,d)}else{if(e.isContainer){b=e.items.items;for(c=0,a=b.length;c<a;c++){d.onAdd(b[c])}}}Ext.form.FieldContainer.prototype.onAdd.apply(this,arguments)},onRemove:function(e){var d=this,b,a,c;if(e.isCheckbox){d.mun(e,"change",d.checkChange,d)}else{if(e.isContainer){b=e.items.items;for(c=0,a=b.length;c<a;c++){d.onRemove(b[c])}}}Ext.form.FieldContainer.prototype.onRemove.apply(this,arguments)},isEqual:function(b,a){var c=Ext.Object.toQueryString;return c(b)===c(a)},getErrors:function(){var a=[];if(!this.allowBlank&&Ext.isEmpty(this.getChecked())){a.push(this.blankText)}return a},getBoxes:function(a){return this.query("[isCheckbox]"+(a||""))},eachBox:function(b,a){Ext.Array.forEach(this.getBoxes(),b,a||this)},getChecked:function(){return this.getBoxes("[checked]")},isDirty:function(){var c=this.getBoxes(),a,d=c.length;for(a=0;a<d;a++){if(c[a].isDirty()){return true}}},setReadOnly:function(e){var c=this.getBoxes(),a,d=c.length;for(a=0;a<d;a++){c[a].setReadOnly(e)}this.readOnly=e},reset:function(){var c=this,b=c.hasActiveError(),a=c.preventMark;c.preventMark=true;c.batchChanges(function(){var e=c.getBoxes(),d,g=e.length;for(d=0;d<g;d++){e[d].reset()}});c.preventMark=a;c.unsetActiveError();if(b){c.updateLayout()}},resetOriginalValue:function(){var d=this,c=d.getBoxes(),a,e=c.length;for(a=0;a<e;a++){c[a].resetOriginalValue()}d.originalValue=d.getValue();d.checkDirty()},setValue:function(h){var g=this,d=g.getBoxes(),a,j=d.length,e,c,i;g.batchChanges(function(){Ext.suspendLayouts();for(a=0;a<j;a++){e=d[a];c=e.getName();i=false;if(h){if(Ext.isArray(h[c])){i=Ext.Array.contains(h[c],e.inputValue)}else{i=h[c]}}e.setValue(i)}Ext.resumeLayouts(true)});return g},getValue:function(){var d={},g=this.getBoxes(),c,j=g.length,h,e,a,i;for(c=0;c<j;c++){h=g[c];e=h.getName();a=h.inputValue;if(h.getValue()){if(d.hasOwnProperty(e)){i=d[e];if(!Ext.isArray(i)){i=d[e]=[i]}i.push(a)}else{d[e]=a}}}return d},getSubmitData:function(){return null},getModelData:function(){return null},validate:function(){var a=this,d,c,b;if(a.disabled){c=true}else{d=a.getErrors();c=Ext.isEmpty(d);b=a.wasValid;if(c){a.unsetActiveError()}else{a.setActiveError(d)}}if(c!==b){a.wasValid=c;a.fireEvent("validitychange",a,c);a.updateLayout()}return c}},0,["checkboxgroup"],["component","box","container","fieldcontainer","checkboxgroup"],{component:true,box:true,container:true,fieldcontainer:true,checkboxgroup:true},["widget.checkboxgroup"],[["field",Ext.form.field.Field]],[Ext.form,"CheckboxGroup"],function(){this.borrow(Ext.form.field.Base,["markInvalid","clearInvalid","setError"])}));(Ext.cmd.derive("Ext.form.FieldSet",Ext.container.Container,{focusable:true,checkboxUI:"default",collapsed:false,toggleOnTitleClick:true,baseCls:"x-fieldset",layout:"anchor",componentLayout:"fieldset",ariaRole:null,autoEl:"fieldset",childEls:["body"],renderTpl:["{%this.renderLegend(out,values);%}",'<div id="{id}-body" data-ref="body" class="{baseCls}-body {baseCls}-body-{ui} {bodyTargetCls}" ','role="presentation"<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>',"{%this.renderContainer(out,values);%}","</div>"],stateEvents:["collapse","expand"],maskOnDisable:false,beforeDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.beforeDestroy.call(this)},initComponent:function(){var b=this,a=b.baseCls;b.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);b.layout.managePadding=b.layout.manageOverflow=false;if(b.collapsed){b.addCls(a+"-collapsed");b.collapse()}if(b.title||b.checkboxToggle||b.collapsible){b.addTitleClasses();b.legend=Ext.widget(b.createLegendCt())}b.initMonitor()},initRenderData:function(){var a=this,b=Ext.container.Container.prototype.initRenderData.call(this);b.bodyTargetCls=a.bodyTargetCls;a.protoBody.writeTo(b);delete a.protoBody;return b},getState:function(){var a=Ext.container.Container.prototype.getState.call(this);a=this.addPropertyToState(a,"collapsed");return a},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn,collapsedHorizontal:function(){return true},collapsedVertical:function(){return true},createLegendCt:function(){var c=this,a=[],b={xtype:"container",baseCls:c.baseCls+"-header",layout:"container",ui:c.ui,id:c.id+"-legend",autoEl:"legend",ariaRole:null,ariaLabelledBy:"."+c.baseCls+"-header-text",items:a,ownerCt:c,shrinkWrap:true,ownerLayout:c.componentLayout};if(c.checkboxToggle){a.push(c.createCheckboxCmp())}else{if(c.collapsible){a.push(c.createToggleCmp())}}a.push(c.createTitleCmp());return b},createTitleCmp:function(){var b=this,a={xtype:"component",html:b.title,ui:b.ui,cls:b.baseCls+"-header-text",id:b.id+"-legendTitle"};if(b.collapsible&&b.toggleOnTitleClick){a.listeners={click:{element:"el",scope:b,fn:b.toggle}};a.cls+=" "+b.baseCls+"-header-text-collapsible"}return(b.titleCmp=Ext.widget(a))},createCheckboxCmp:function(){var b=this,c="-checkbox",a=b.baseCls+"-header"+c;a+=" "+a+"-"+b.ui;b.checkboxCmp=Ext.widget({xtype:"checkbox",hideEmptyLabel:true,name:b.checkboxName||b.id+c,cls:a,id:b.id+"-legendChk",ui:b.checkboxUI,checked:!b.collapsed,msgTarget:"none",listeners:{change:b.onCheckChange,scope:b}});return b.checkboxCmp},createToggleCmp:function(){var a=this;a.toggleCmp=Ext.widget({xtype:"tool",cacheHeight:false,cls:a.baseCls+"-header-tool-"+a.ui,type:"toggle",handler:a.toggle,id:a.id+"-legendToggle",scope:a});return a.toggleCmp},doRenderLegend:function(b,e){var d=e.$comp,c=d.legend,a;if(c){c.ownerLayout.configureItem(c);a=c.getRenderTree();Ext.DomHelper.generateMarkup(a,b)}},getCollapsed:function(){return this.collapsed?"top":false},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var b=this,a=b.legend;b.title=c;if(b.rendered){if(!a){b.legend=a=Ext.widget(b.createLegendCt());b.addTitleClasses();a.ownerLayout.configureItem(a);a.render(b.el,0)}b.titleCmp.update(c)}else{if(a){b.titleCmp.update(c)}else{b.addTitleClasses();b.legend=Ext.widget(b.createLegendCt())}}return b},addTitleClasses:function(){var b=this,c=b.title,a=b.baseCls;if(c){b.addCls(a+"-with-title")}if(c||b.checkboxToggle||b.collapsible){b.addCls(a+"-with-legend")}},expand:function(){return this.setExpanded(true)},collapse:function(){return this.setExpanded(false)},setExpanded:function(b){var c=this,d=c.checkboxCmp,a=b?"expand":"collapse";if(!c.rendered||c.fireEvent("before"+a,c)!==false){b=!!b;if(d){d.setValue(b)}if(b){c.removeCls(c.baseCls+"-collapsed")}else{c.addCls(c.baseCls+"-collapsed")}c.collapsed=!b;if(b){delete c.getInherited().collapsed}else{c.getInherited().collapsed=true}if(c.rendered){c.updateLayout({isRoot:false});c.fireEvent(a,c)}}return c},getRefItems:function(a){var c=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){c.unshift(b);if(a){c.unshift.apply(c,b.getRefItems(true))}}return c},toggle:function(){this.setExpanded(!!this.collapsed)},privates:{applyTargetCls:function(a){this.bodyTargetCls=a},finishRender:function(){var a=this.legend;Ext.container.Container.prototype.finishRender.call(this);if(a){a.finishRender()}},getProtoBody:function(){var b=this,a=b.protoBody;if(!a){b.protoBody=a=new Ext.util.ProtoElement({styleProp:"bodyStyle",styleIsText:true})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(e){var c=this,a=c.getProtoBody(),d=c.padding,b;if(d!==undefined){if(Ext.isIE8){d=c.parseBox(d);b=Ext.Element.parseBox(0);b.top=d.top;d.top=0;a.setStyle("padding",c.unitizeBox(b))}e.setStyle("padding",c.unitizeBox(d))}},onCheckChange:function(b,a){this.setExpanded(a)},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,["fieldset"],["component","box","container","fieldset"],{component:true,box:true,container:true,fieldset:true},["widget.fieldset"],[["fieldAncestor",Ext.form.FieldAncestor]],[Ext.form,"FieldSet"],0));(Ext.cmd.derive("Ext.form.Label",Ext.Component,{autoEl:"label",maskOnDisable:false,getElConfig:function(){var a=this;a.html=a.text?Ext.util.Format.htmlEncode(a.text):(a.html||"");return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:a.forId||""})},setText:function(c,b){var a=this;b=b!==false;if(b){a.text=c;delete a.html}else{a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==false?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,["label"],["component","box","label"],{component:true,box:true,label:true},["widget.label"],0,[Ext.form,"Label"],0));(Ext.cmd.derive("Ext.form.Panel",Ext.panel.Panel,{alternateClassName:["Ext.FormPanel","Ext.form.FormPanel"],layout:"anchor",ariaRole:"form",basicFormConfigs:["api","baseParams","errorReader","jsonSubmit","method","paramOrder","paramsAsHash","reader","standardSubmit","timeout","trackResetOnLoad","url","waitMsgTarget","waitTitle"],initComponent:function(){var a=this;if(a.frame){a.border=false}a.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);a.relayEvents(a.form,["beforeaction","actionfailed","actioncomplete","validitychange","dirtychange"]);if(a.pollForChanges){a.startPolling(a.pollInterval||500)}},initItems:function(){Ext.panel.Panel.prototype.initItems.call(this);this.initMonitor();this.form=this.createForm()},afterFirstLayout:function(){Ext.panel.Panel.prototype.afterFirstLayout.apply(this,arguments);this.form.initialize()},createForm:function(){var b={},d=this.basicFormConfigs,a=d.length,c=0,e;for(;c<a;++c){e=d[c];b[e]=this[e]}return new Ext.form.Basic(this,b)},getForm:function(){return this.form},loadRecord:function(a){return this.getForm().loadRecord(a)},getRecord:function(){return this.getForm().getRecord()},updateRecord:function(a){return this.getForm().updateRecord(a)},getValues:function(d,b,c,a){return this.getForm().getValues(d,b,c,a)},isDirty:function(){return this.form.isDirty()},isValid:function(){return this.form.isValid()},reset:function(a){return this.form.reset(a)},hasInvalidField:function(){return this.form.hasInvalidField()},beforeDestroy:function(){this.stopPolling();this.form.destroy();Ext.panel.Panel.prototype.beforeDestroy.call(this)},load:function(a){this.form.load(a)},submit:function(a){this.form.submit(a)},startPolling:function(b){this.stopPolling();var a=new Ext.util.TaskRunner(b);a.start({interval:0,run:this.checkChange,scope:this});this.pollTask=a},stopPolling:function(){var a=this.pollTask;if(a){a.stopAll();delete this.pollTask}},checkChange:function(){var a=this.form.getFields().items,b,c=a.length;for(b=0;b<c;b++){a[b].checkChange()}}},0,["form"],["component","box","container","panel","form"],{component:true,box:true,container:true,panel:true,form:true},["widget.form"],[["fieldAncestor",Ext.form.FieldAncestor]],[Ext.form,"Panel",Ext,"FormPanel",Ext.form,"FormPanel"],0));(Ext.cmd.derive("Ext.form.RadioManager",Ext.util.MixedCollection,{singleton:true,getByName:function(a,b){return this.filterBy(function(c){return c.name===a&&c.getFormId()===b})},getWithValue:function(a,b,c){return this.filterBy(function(d){return d.name===a&&d.inputValue==b&&d.getFormId()===c})},getChecked:function(a,b){return this.findBy(function(c){return c.name===a&&c.checked&&c.getFormId()===b})}},0,0,0,0,0,0,[Ext.form,"RadioManager"],0));(Ext.cmd.derive("Ext.form.field.Radio",Ext.form.field.Checkbox,{alternateClassName:"Ext.form.Radio",isRadio:true,inputType:"radio",ariaRole:"radio",tabIndex:0,formId:null,getGroupValue:function(){var a=this.getManager().getChecked(this.name,this.getFormId());return a?a.inputValue:null},onBoxClick:function(){var a=this;if(!a.disabled&&!a.readOnly){this.setValue(true)}},onRemoved:function(){Ext.form.field.Checkbox.prototype.onRemoved.apply(this,arguments);this.formId=null},setValue:function(b){var a=this,c;if(Ext.isBoolean(b)){Ext.form.field.Checkbox.prototype.setValue.apply(this,arguments)}else{c=a.getManager().getWithValue(a.name,b,a.getFormId()).getAt(0);if(c){c.setValue(true)}}return a},getSubmitValue:function(){return this.checked?this.inputValue:null},onChange:function(c,a){var g=this,e,d,b,h;Ext.form.field.Checkbox.prototype.onChange.apply(this,arguments);if(c){h=g.getManager().getByName(g.name,g.getFormId()).items;d=h.length;for(e=0;e<d;e++){b=h[e];if(b!==g){b.setValue(false)}}}},getManager:function(){return Ext.form.RadioManager}},0,["radiofield","radio"],["component","box","field","checkboxfield","checkbox","radiofield","radio"],{component:true,box:true,field:true,checkboxfield:true,checkbox:true,radiofield:true,radio:true},["widget.radio","widget.radiofield"],0,[Ext.form.field,"Radio",Ext.form,"Radio"],0));(Ext.cmd.derive("Ext.form.RadioGroup",Ext.form.CheckboxGroup,{allowBlank:true,blankText:"You must select one item in this group",defaultType:"radiofield",local:false,defaultBindProperty:"value",groupCls:"x-form-radio-group",ariaRole:"radiogroup",lookupComponent:function(b){var a=Ext.form.CheckboxGroup.prototype.lookupComponent.call(this,b);if(this.local){a.formId=this.getId()}return a},getBoxes:function(b,a){return(a||this).query("[isRadio]"+(b||""))},checkChange:function(){var b=this.getValue(),a=Ext.Object.getKeys(b)[0];if(Ext.isArray(b[a])){return}Ext.form.CheckboxGroup.prototype.checkChange.apply(this,arguments)},setValue:function(d){var j,g,e,h,c,a,b;if(Ext.isObject(d)){Ext.suspendLayouts();g=this.items.first();e=g?g.getFormId():null;for(b in d){j=d[b];h=Ext.form.RadioManager.getWithValue(b,j,e).items;a=h.length;for(c=0;c<a;++c){h[c].setValue(true)}}Ext.resumeLayouts(true)}return this},privates:{getFocusables:function(){return this.getBoxes()},initDefaultFocusable:function(a){var d=this,c,b;c=d.getChecked();if(c.length){b=c[0]}else{b=d.findNextFocusableChild(null,true,null,a)}if(b){d.activateFocusable(b)}return b},onFocusableContainerFocusLeave:function(){this.clearFocusables();this.initDefaultFocusable()},doFocusableChildAdd:function(g){var e=this,b=e.mixins.focusablecontainer,d,c,a;d=g.isContainer?e.getBoxes("",g):[g];for(c=0,a=d.length;c<a;c++){b.doFocusableChildAdd.call(e,d[c])}},doFocusableChildRemove:function(g){var e=this,b=e.mixins.focusablecontainer,d,c,a;d=g.isContainer?e.getBoxes("",g):[g];for(c=0,a=d.length;c<a;c++){b.doFocusableChildRemove.call(e,d[c])}},focusChild:function(c,b,d){var a=this.mixins.focusablecontainer.focusChild.apply(this,arguments);if(!d.ctrlKey){a.setValue(true)}}}},0,["radiogroup"],["component","box","container","fieldcontainer","checkboxgroup","radiogroup"],{component:true,box:true,container:true,fieldcontainer:true,checkboxgroup:true,radiogroup:true},["widget.radiogroup"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.form,"RadioGroup"],0));(Ext.cmd.derive("Ext.form.action.DirectAction",Ext.Mixin,{mixinConfig:{id:"directaction"},resolveMethod:function(c){var e=this,d=e.form,b=d.api,a;a=b[c];if(typeof a!=="function"){b[c]=a=Ext.direct.Manager.parseMethod(a)}return a}},0,0,0,0,0,0,[Ext.form.action,"DirectAction"],0));(Ext.cmd.derive("Ext.form.action.DirectLoad",Ext.form.action.Load,{alternateClassName:"Ext.form.Action.DirectLoad",type:"directload",run:function(){var e=this,d=e.form,b=e.metadata||d.metadata,g=e.timeout||d.timeout,a,c;c=e.resolveMethod("load");a=c.directCfg.method.getArgs({params:e.getParams(),paramOrder:d.paramOrder,paramsAsHash:d.paramsAsHash,options:g!=null?{timeout:g*1000}:null,metadata:b,callback:e.onComplete,scope:e});c.apply(window,a)},processResponse:function(a){return(this.result=a)},onComplete:function(a){if(a){this.onSuccess(a)}else{this.onFailure(null)}}},0,0,0,0,["formaction.directload"],[[Ext.form.action.DirectAction.prototype.mixinId||Ext.form.action.DirectAction.$className,Ext.form.action.DirectAction]],[Ext.form.action,"DirectLoad",Ext.form.Action,"DirectLoad"],0));(Ext.cmd.derive("Ext.form.action.DirectSubmit",Ext.form.action.Submit,{alternateClassName:"Ext.form.Action.DirectSubmit",type:"directsubmit",doSubmit:function(){var e=this,d=e.form,b=e.metadata||d.metadata,g=e.timeout||d.timeout,c,h,a;c=e.resolveMethod("submit");h=e.buildForm();a=c.directCfg.method.getArgs({params:h.formEl,options:g!=null?{timeout:g*1000}:null,metadata:b,callback:e.onComplete,scope:e});c.apply(window,a);e.cleanup(h)},processResponse:function(a){return(this.result=a)},onComplete:function(a){if(a){this.onSuccess(a)}else{this.onFailure(null)}}},0,0,0,0,["formaction.directsubmit"],[[Ext.form.action.DirectAction.prototype.mixinId||Ext.form.action.DirectAction.$className,Ext.form.action.DirectAction]],[Ext.form.action,"DirectSubmit",Ext.form.Action,"DirectSubmit"],0));(Ext.cmd.derive("Ext.form.field.Picker",Ext.form.field.Text,{alternateClassName:"Ext.form.Picker",config:{triggers:{picker:{handler:"onTriggerClick",scope:"this"}}},renderConfig:{editable:true},isPickerField:true,matchFieldWidth:true,pickerAlign:"tl-bl?",openCls:"x-pickerfield-open",isExpanded:false,applyTriggers:function(b){var c=this,a=b.picker;if(!a.cls){a.cls=c.triggerCls}return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},initEvents:function(){var a=this;Ext.form.field.Text.prototype.initEvents.call(this);a.keyNav=new Ext.util.KeyNav(a.inputEl,{down:a.onDownArrow,esc:{handler:a.onEsc,scope:a,defaultEventAction:false},scope:a,forceKeyDown:true});if(Ext.isGecko){a.inputEl.dom.setAttribute("autocomplete","off")}},updateEditable:function(a,c){var b=this;if(!a){b.inputEl.on("click",b.onTriggerClick,b)}else{b.inputEl.un("click",b.onTriggerClick,b)}Ext.form.field.Text.prototype.updateEditable.call(this,a,c)},onEsc:function(a){if(Ext.isIE){a.preventDefault()}if(this.isExpanded){this.collapse();a.stopEvent()}},onDownArrow:function(a){if(!this.isExpanded){a.stopEvent();this.onTriggerClick()}},expand:function(){var d=this,b,a,c,e;if(d.rendered&&!d.isExpanded&&!d.isDestroyed){b=d.bodyEl;c=d.getPicker();e=Ext.getDoc();c.setMaxHeight(c.initialConfig.maxHeight);if(d.matchFieldWidth){c.width=d.bodyEl.getWidth()}c.show();d.isExpanded=true;d.alignPicker();b.addCls(d.openCls);d.touchListeners=e.on({translate:false,touchstart:d.collapseIf,scope:d,delegated:false,destroyable:true});d.scrollListeners=Ext.on({scroll:d.onGlobalScroll,scope:d,destroyable:true});Ext.on("resize",d.alignPicker,d,{buffer:1});d.fireEvent("expand",d);d.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){if(!this.isDestroyed){var a=this.getPicker();if(a.isVisible()&&a.isFloating()){this.doAlign()}}},doAlign:function(){var d=this,c=d.picker,a="-above",b;d.picker.alignTo(d.triggerWrap,d.pickerAlign,d.pickerOffset);b=c.el.getY()<d.inputEl.getY();d.bodyEl[b?"addCls":"removeCls"](d.openCls+a);c[b?"addCls":"removeCls"](c.baseCls+a)},collapse:function(){var d=this;if(d.isExpanded&&!d.isDestroyed&&!d.destroying){var c=d.openCls,b=d.picker,a="-above";b.hide();d.isExpanded=false;d.bodyEl.removeCls([c,c+a]);b.el.removeCls(b.baseCls+a);d.touchListeners.destroy();d.scrollListeners.destroy();Ext.un("resize",d.alignPicker,d);d.fireEvent("collapse",d);d.onCollapse()}},onCollapse:Ext.emptyFn,collapseIf:function(b){var a=this;if(!a.isDestroyed&&!b.within(a.bodyEl,false,true)&&!a.owns(b.target)&&!Ext.fly(b.target).isFocusable()){a.collapse()}},getPicker:function(){var b=this,a=b.picker;if(!a){b.creatingPicker=true;b.picker=a=b.createPicker();a.ownerCmp=b;delete b.creatingPicker}return b.picker},onFocusLeave:function(a){this.collapse();Ext.form.field.Text.prototype.onFocusLeave.call(this,a)},getRefItems:function(){var a=[];if(this.picker){a[0]=this.picker}return a},createPicker:Ext.emptyFn,onTriggerClick:function(b){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else{a.expand()}}},beforeDestroy:function(){var b=this,a=b.picker;Ext.form.field.Text.prototype.beforeDestroy.call(this);Ext.un("resize",b.alignPicker,b);Ext.destroy(b.keyNav,a);if(a){b.picker=a.pickerField=null}},privates:{onGlobalScroll:function(a){var b,d,c=this.el;if(a.getElement().contains(c)){b=a.getPosition();d=c.getScrollIntoViewXY(a.getElement(),b.x,b.y);if(this.up("[fixed]")||d.y!==b.y||d.x!==b.x){this.collapse()}}}}},0,["pickerfield"],["component","box","field","textfield","pickerfield"],{component:true,box:true,field:true,textfield:true,pickerfield:true},["widget.pickerfield"],0,[Ext.form.field,"Picker",Ext.form,"Picker"],0));(Ext.cmd.derive("Ext.selection.Model",Ext.mixin.Observable,{alternateClassName:"Ext.AbstractSelectionModel",factoryConfig:{defaultType:"dataviewmodel"},$configPrefixed:false,$configStrict:false,config:{store:null,selected:{}},isSelectionModel:true,allowDeselect:undefined,toggleOnClick:true,selected:null,pruneRemoved:true,suspendChange:0,ignoreRightMouseSelection:false,constructor:function(a){var b=this;b.modes={SINGLE:true,SIMPLE:true,MULTI:true};Ext.mixin.Observable.prototype.constructor.call(this,a);b.setSelectionMode(b.mode);if(b.selectionMode!=="SINGLE"){b.allowDeselect=true}},updateStore:function(a,b){this.bindStore(a,!b)},applySelected:function(a){if(!a.isCollection){a=new Ext.util.Collection(Ext.apply({rootProperty:"data"},a))}return a},getStoreListeners:function(){var a=this;return{add:a.onStoreAdd,clear:a.onStoreClear,remove:a.onStoreRemove,update:a.onStoreUpdate,idchanged:a.onIdChanged,load:a.onStoreLoad,refresh:a.onStoreRefresh,pageadd:a.onPageAdd,pageremove:a.onPageRemove}},onBindStore:function(a,c,b){if(!b){this.updateSelectedInstances(this.selected)}},suspendChanges:function(){++this.suspendChange},resumeChanges:function(){if(this.suspendChange){--this.suspendChange}},selectAll:function(a){var c=this,b=c.store.getRange(),d=c.getSelection().length;c.suspendChanges();c.doSelect(b,true,a);c.resumeChanges();if(!a&&!c.isDestroyed){c.maybeFireSelectionChange(c.getSelection().length!==d)}},deselectAll:function(k){var g=this,b=g.getSelection(),h={},j=g.store,a=b.length,e,c,d;for(e=0,c=b.length;e<c;e++){d=b[e];h[d.id]=j.indexOf(d)}b=Ext.Array.sort(b,function(m,i){var n=h[m.id],l=h[i.id];return n<l?-1:1});g.suspendChanges();g.doDeselect(b,k);g.resumeChanges();if(!k&&!g.isDestroyed){g.maybeFireSelectionChange(g.getSelection().length!==a)}},getSelectionStart:function(){return this.selectionStart},setSelectionStart:function(a){this.selectionStart=a},selectWithEvent:function(b,g){var d=this,c=d.isSelected(b),a=g.shiftKey;switch(d.selectionMode){case"MULTI":d.selectWithEventMulti(b,g,c);break;case"SIMPLE":d.selectWithEventSimple(b,g,c);break;case"SINGLE":d.selectWithEventSingle(b,g,c);break}if(!a){if(d.isSelected(b)){d.selectionStart=b}else{d.selectionStart=null}}},vetoSelection:function(a){if(a.stopSelection){return true}else{if(a.type!=="keydown"&&a.button!==0){if(this.ignoreRightMouseSelection||this.isSelected(a.record)){return true}}else{return a.type==="mousedown"}}},onNavigate:function(i){if(!i.record||this.vetoSelection(i.keyEvent)){return}this.onBeforeNavigate(i);var k=this,j=i.keyEvent,b=j.ctrlKey||i.ctrlKey,g=i.recordIndex,h=i.record,o=i.previousRecord,c=k.isSelected(h),m=(k.selectionStart&&k.isSelected(i.previousRecord))?k.selectionStart:(k.selectionStart=i.previousRecord),a=i.previousRecordIndex,n=j.getCharCode(),p=n===j.SPACE,d=i.record!==i.previousRecord,l=n===j.UP||n===j.PAGE_UP||n===j.HOME||(n===j.LEFT&&d)?"up":(n===j.DOWN||n===j.PAGE_DOWN||n===j.END||(n===j.RIGHT&&d)?"down":null);switch(k.selectionMode){case"MULTI":k.setSelectionStart(i.selectionStart);if(n===j.A&&b){k.selected.beginUpdate();k.selectRange(0,k.store.getCount()-1);k.selected.endUpdate()}else{if(p){if(j.shiftKey){k.selectRange(m,h,b)}else{if(c){if(k.allowDeselect){k.doDeselect(h)}}else{k.doSelect(h,b)}}}else{if(j.shiftKey&&m){if(l==="up"&&a<=g){k.deselectRange(o,g+1)}else{if(l==="down"&&a>=g){k.deselectRange(o,g-1)}else{if(m!==h){k.selectRange(m,h,b)}}}k.lastSelected=h}else{if(n){if(!b){k.doSelect(h,false)}}else{k.selectWithEvent(h,j)}}}}break;case"SIMPLE":if(n===j.A&&b){k.selected.beginUpdate();k.selectRange(0,k.store.getCount()-1);k.selected.endUpdate()}else{if(c){k.doDeselect(h)}else{k.doSelect(h,true)}}break;case"SINGLE":if(!b){if(l){k.doSelect(h,false)}else{if(p||!n){k.selectWithEvent(h,j)}}}}if(!j.shiftKey&&!k.isDestroyed){if(k.isSelected(h)){k.selectionStart=h}}},selectRange:function(m,d,n){var j=this,l=j.store,c=j.selected.items,o,g,h,e,a,k,b;if(j.isLocked()){return}o=j.normalizeRowRange(m,d);m=o[0];d=o[1];e=[];for(g=m;g<=d;g++){if(!j.isSelected(l.getAt(g))){e.push(l.getAt(g))}}if(!n){a=[];j.suspendChanges();for(g=0,h=c.length;g<h;++g){b=c[g];k=l.indexOf(b);if(k<m||k>d){a.push(b)}}for(g=0,h=a.length;g<h;++g){j.doDeselect(a[g])}j.resumeChanges()}if(!j.isDestroyed){if(e.length){j.doMultiSelect(e,true)}else{if(a){j.maybeFireSelectionChange(a.length>0)}}}},deselectRange:function(e,d){var j=this,c=j.store,a,h,g,b;if(j.isLocked()){return}a=j.normalizeRowRange(e,d);e=a[0];d=a[1];g=[];for(h=e;h<=d;h++){b=c.getAt(h);if(j.isSelected(b)){g.push(b)}}if(g.length){j.doDeselect(g)}},normalizeRowRange:function(c,b){var a=this.store,d;if(!Ext.isNumber(c)){c=a.indexOf(c)}c=Math.max(0,c);if(!Ext.isNumber(b)){b=a.indexOf(b)}b=Math.min(b,a.getCount()-1);if(c>b){d=b;b=c;c=d}return[c,b]},select:function(b,c,a){if(Ext.isDefined(b)&&!(Ext.isArray(b)&&!b.length)){this.doSelect(b,c,a)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(c,e,b){var d=this,a;if(d.locked||c==null){return}if(typeof c==="number"){a=d.store.getAt(c);if(!a){return}c=[a]}if(d.selectionMode==="SINGLE"){if(c.isModel){c=[c]}if(c.length){d.doSingleSelect(c[0],b)}}else{d.doMultiSelect(c,e,b)}},doMultiSelect:function(a,l,k){var h=this,b=h.selected,j=false,m,d,g,e,c;if(h.locked){return}a=!Ext.isArray(a)?[a]:a;g=a.length;if(!l&&b.getCount()>0){m=h.deselectDuringSelect(a,k);if(h.isDestroyed){return}if(m[0]){h.maybeFireSelectionChange(m[1]>0&&!k);return}else{j=m[1]>0}}c=function(){if(!b.getCount()){h.selectionStart=e}if(!k){b.add(e)}j=true};for(d=0;d<g;d++){e=a[d];if(h.isSelected(e)){continue}h.onSelectChange(e,true,k,c);if(h.isDestroyed){return}}h.lastSelected=e;if(k){b.add(a)}h.maybeFireSelectionChange(j&&!k)},deselectDuringSelect:function(d,j){var h=this,a=h.selected.getRange(),g=a.length,c=0,e=false,k,b;h.suspendChanges();h.deselectingDuringSelect=true;for(b=0;b<g;++b){k=a[b];if(!Ext.Array.contains(d,k)){if(h.doDeselect(k,j)){++c}else{e=true}}if(h.isDestroyed){e=true;c=0;break}}h.deselectingDuringSelect=false;h.resumeChanges();return[e,c]},doDeselect:function(a,k){var j=this,b=j.selected,d=0,h,e,l=0,g=0,c;if(j.locked||!j.store){return false}if(typeof a==="number"){e=j.store.getAt(a);if(!e){return false}a=[e]}else{if(!Ext.isArray(a)){a=[a]}}c=function(){++g;if(!k){b.remove(e)}if(e===j.selectionStart){j.selectionStart=null}};h=a.length;j.suspendChanges();for(;d<h;d++){e=a[d];if(j.isSelected(e)){if(j.lastSelected===e){j.lastSelected=b.last()}++l;j.onSelectChange(e,false,k,c);if(j.isDestroyed){return false}}}j.resumeChanges();if(k){b.remove(a)}j.maybeFireSelectionChange(g>0&&!k);return g===l},doSingleSelect:function(a,b){var d=this,g=false,c=d.selected,e;if(d.locked){return}if(d.isSelected(a)){return}e=function(){if(c.getCount()){d.suspendChanges();var h=d.deselectDuringSelect([a],b);if(d.isDestroyed){return}d.resumeChanges();if(h[0]){return false}}d.lastSelected=a;if(!c.getCount()){d.selectionStart=a}c.add(a);g=true};d.onSelectChange(a,true,b,e);if(g&&!d.isDestroyed){d.maybeFireSelectionChange(!b)}},maybeFireSelectionChange:function(a){var b=this;if(a&&!b.suspendChange){b.fireEvent("selectionchange",b,b.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(a){a=a?a.toUpperCase():"SINGLE";this.selectionMode=this.modes[a]?a:"SINGLE"},isLocked:function(){return this.locked},setLocked:function(a){this.locked=!!a},isRangeSelected:function(d,c){var g=this,b=g.store,e,a;a=g.normalizeRowRange(d,c);d=a[0];c=a[1];for(e=d;e<=c;e++){if(!g.isSelected(b.getAt(e))){return false}}return true},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected?this.selected.contains(a):false},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var m=this,p=m.store,h=[],l=[],g=m.getSelection(),j=g.length,c=m.getSelected(),n,k,a,o,b,e;if(!p||!(c.isCollection||c.isRows)||!c.getCount()){return}a=p.getData();if(a.getSource){k=a.getSource();if(k){a=k}}m.refreshing=true;c.beginUpdate();m.suspendChanges();for(e=0;e<j;e++){o=g[e];b=a.get(o.getId());if(b){h.push(b)}else{if(!m.pruneRemoved){l.push(o)}}if(m.mode==="SINGLE"&&l.length){break}}if(c.getCount()!==(h.length+l.length)){n=true}m.clearSelections();if(h.length){m.doSelect(h,false,true)}if(l.length){c.add(l);if(!m.lastSelected){m.lastSelected=l[l.length-1]}}m.resumeChanges();if(n){c.endUpdate()}else{c.updating--}m.refreshing=false;m.maybeFireSelectionChange(n)},clearSelections:function(){var a=this.getSelected();if(a){a.clear()}this.lastSelected=null},onStoreAdd:Ext.emptyFn,onStoreClear:function(){if((!this.store.isLoading()||this.store.clearing)&&this.hasSelection()){this.clearSelections();this.maybeFireSelectionChange(true)}},onStoreRemove:function(k,b,e,l){var j=this,a=b,d,g,c,h;if(j.selectionStart&&Ext.Array.contains(b,j.selectionStart)){j.selectionStart=null}if(l||j.locked||!j.pruneRemoved){return}h=k.isMoving(null,true);if(h){a=null;for(d=0,g=b.length;d<g;++d){c=b[d];if(!h[c.id]){(a||(a=[])).push(c)}}}if(a){j.deselect(a)}},onPageRemove:function(b,a,c){this.onStoreRemove(this.store,c)},onPageAdd:function(d,c,e){var a=e.length,g,b;for(g=0;g<a;g++){b=e[g];if(this.selected.get(b.id)){this.selected.replace(b)}}},getCount:function(){return this.selected.getCount()},onUpdate:Ext.emptyFn,destroy:function(){var a=this;a.clearListeners();a.clearSelections();a.bindStore(null);a.selected=Ext.destroy(a.selected);Ext.mixin.Observable.prototype.destroy.call(this)},onStoreUpdate:Ext.emptyFn,onIdChanged:function(a,d,c,b){this.selected.updateKey(d,c)},onStoreRefresh:function(){this.updateSelectedInstances(this.selected)},updateSelectedInstances:function(e){var k=this,m=k.getStore(),l=k.lastSelected,a=0,c=k.pruneRemovedOnRefresh(),j,b,g,n,d,h;if(m&&m.isBufferedStore){return}j=e.getRange();b=j.length;if(l){if(m){k.lastSelected=m.getById(l.id);h=k.lastSelected!==l}else{k.lastSelected=null;h=!!l}}k.refreshing=true;if(m){for(g=0;g<b;++g){n=j[g];d=m.getById(n.id);if(d){if(d!==n){e.replace(d)}}else{if(c){e.remove(n);++a}}}}else{a=e.getCount();e.removeAll()}k.refreshing=false;k.maybeFireSelectionChange(a>0);if(h){k.fireEvent("lastselectedchanged",k,k.getSelection(),l)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(a,d,c,g){var e=this,b=d?"select":"deselect";if((c||e.fireEvent("before"+b,e,a))!==false&&g()!==false){if(!c){e.fireEvent(b,e,a)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(c){var a=this.view,b;if(a){b=a.resolveSatelliteListenerScope(this,c)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,c)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(k,m,d){var n=this,g=m.shiftKey,a=m.ctrlKey,c=g?(n.getSelectionStart()):null,h=n.getSelection(),l=h.length,b,j,o;if(g&&c){n.selectRange(c,k,a)}else{if(a&&d){if(n.allowDeselect){n.doDeselect(k,false)}}else{if(a){n.doSelect(k,true,false)}else{if(d&&!g&&!a&&l>1){if(n.allowDeselect){b=[];for(j=0;j<l;++j){o=h[j];if(o!==k){b.push(o)}}n.doDeselect(b)}}else{if(!d){n.doSelect(k,false)}}}}}},selectWithEventSimple:function(a,c,b){if(b){this.doDeselect(a)}else{this.doSelect(a,true)}},selectWithEventSingle:function(b,g,c){var d=this,a=d.allowDeselect;if(a&&!g.ctrlKey){a=d.toggleOnClick}if(a&&c){d.doDeselect(b)}else{d.doSelect(b,false)}}}},1,0,0,0,["selection.abstract"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.selection,"Model",Ext,"AbstractSelectionModel"],0));(Ext.cmd.derive("Ext.selection.DataViewModel",Ext.selection.Model,{deselectOnContainerClick:true,bindComponent:function(a){var c=this,b;if(c.view!==a){if(c.view){c.navigationModel=null;Ext.destroy(c.viewListeners,c.navigationListeners)}c.view=a;if(a){b=c.getViewListeners();b.scope=c;b.destroyable=true;c.navigationModel=a.getNavigationModel();c.viewListeners=a.on(b);c.navigationListeners=c.navigationModel.on({navigate:c.onNavigate,scope:c,destroyable:true})}}},getViewListeners:function(){var a=this,b={};b[a.view.triggerCtEvent]=a.onContainerClick;return b},onUpdate:function(b){var a=this.view;if(a&&this.isSelected(b)){a.onItemSelect(b)}},onContainerClick:function(){if(this.deselectOnContainerClick){this.deselectAll()}},onSelectChange:function(b,g,e,i){var h=this,a=h.view,d=g?"select":"deselect",c=h.store.indexOf(b);if((e||h.fireEvent("before"+d,h,b,c))!==false&&i()!==false){if(a){if(g){a.onItemSelect(b)}else{a.onItemDeselect(b)}}if(!e){h.fireEvent(d,h,b,c)}}},destroy:function(){this.bindComponent();Ext.destroy(this.keyNav);Ext.selection.Model.prototype.destroy.call(this)}},0,0,0,0,["selection.dataviewmodel"],0,[Ext.selection,"DataViewModel"],0));(Ext.cmd.derive("Ext.view.NavigationModel",Ext.Base,{focusCls:"x-view-item-focused",constructor:function(){this.mixins.observable.constructor.call(this)},bindComponent:function(a){if(this.view!==a){this.view=a;this.bindView(a)}},bindView:function(a){var c=this,d=a.dataSource,b;c.initKeyNav(a);if(c.dataSource!==d){c.dataSource=d;b=c.getStoreListeners();b.destroyable=true;c.dataSourceListeners=a.dataSource.on(b)}b=c.getViewListeners();b.destroyable=true;c.viewListeners=c.viewListeners||[];c.viewListeners.push(a.on(b))},getStoreListeners:function(){var a=this;return{remove:a.onStoreRemove,scope:a}},getViewListeners:function(){var a=this;return{containermousedown:a.onContainerMouseDown,itemmousedown:a.onItemMouseDown,itemclick:a.onItemClick,itemcontextmenu:a.onItemMouseDown,scope:a}},initKeyNav:function(a){var b=this;b.keyNav=new Ext.util.KeyNav({target:a,ignoreInputFields:true,eventName:"itemkeydown",defaultEventAction:"stopEvent",processEvent:b.processViewEvent,up:b.onKeyUp,down:b.onKeyDown,right:b.onKeyRight,left:b.onKeyLeft,pageDown:b.onKeyPageDown,pageUp:b.onKeyPageUp,home:b.onKeyHome,end:b.onKeyEnd,tab:b.onKeyTab,space:b.onKeySpace,enter:b.onKeyEnter,A:{ctrl:true,handler:b.onSelectAllKeyPress},scope:b})},processViewEvent:function(b,a,e,c,d){return d},addKeyBindings:function(a){this.keyNav.addBindings(a)},enable:function(){this.keyNav.enable();this.disabled=false},disable:function(){this.keyNav.disable();this.disabled=true},onContainerMouseDown:function(a,b){if(b.pointerType==="mouse"&&Ext.getScrollbarSize().width){if(!a.el.getClientRegion().contains(b.getPoint())){b.preventDefault()}}},onItemMouseDown:function(b,a,g,d,c){var e=c.parentEvent;if(!e||e.type!=="touchstart"){this.setPosition(d)}},onItemClick:function(c,b,e,d,a){if(this.record===b){this.fireNavigateEvent(a)}else{this.setPosition(d,a)}},beforeViewRefresh:function(){this.focusRestorePosition=this.view.dataSource.isBufferedStore?this.recordIndex:this.record},onViewRefresh:function(){if(this.focusRestorePosition!=null){this.setPosition(this.focusRestorePosition);this.focusRestorePosition=null}},onStoreRemove:function(c,b,d,a){if(this.recordIndex&&d+b.length-1<=this.recordIndex){this.setPosition(this.recordIndex-1,null,null,true)}},setPosition:function(c,h,k,d){var i=this,j=i.view,e=j.getSelectionModel(),a=j.dataSource,g,b;if(c==null||!j.all.getCount()){i.record=i.recordIndex=null}else{if(typeof c==="number"){b=Math.max(Math.min(c,a.getCount()-1),0);g=a.getAt(c)}else{if(c.isEntity){g=a.getById(c.id);b=a.indexOf(g);if(b===-1){g=a.getAt(0);b=0}}else{if(c.tagName){g=j.getRecord(c);b=a.indexOf(g)}else{g=b=null}}}}if(g===i.record){i.recordIndex=b;return i.focusPosition(b)}if(i.item){i.item.removeCls(i.focusCls)}i.previousRecordIndex=i.recordIndex;i.previousRecord=i.record;i.previousItem=i.item;i.recordIndex=b;i.record=g;d=d||i.record===i.lastFocused;if(g){i.focusPosition(i.recordIndex)}else{i.item=null}if(!k){e.fireEvent("focuschange",e,i.previousRecord,i.record)}if(!d&&h){i.fireNavigateEvent(h)}},focusPosition:function(a){var b=this;if(a!=null&&a!==-1){if(a.isEntity){a=b.view.dataSource.indexOf(a)}b.item=b.view.all.item(a);if(b.item){b.lastFocused=b.record;b.lastFocusedIndex=b.recordIndex;b.focusItem(b.item)}else{b.record=null}}else{b.item=null}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getPosition:function(){return this.record?this.recordIndex:null},getRecordIndex:function(){return this.recordIndex},getItem:function(){return this.item},getRecord:function(){return this.record},getLastFocused:function(){if(this.view.dataSource.indexOf(this.lastFocused)===-1){return null}return this.lastFocused},onKeyUp:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyDown:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyRight:function(b){var a=this.recordIndex+1;if(a>this.view.all.getCount()-1){a=0}this.setPosition(a,b)},onKeyLeft:function(b){var a=this.recordIndex-1;if(a<0){a=this.view.all.getCount()-1}this.setPosition(a,b)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(a){this.setPosition(0,a)},onKeyEnd:function(a){this.setPosition(this.view.all.getCount()-1,a)},onKeyTab:function(b){var a=this.view;a.toggleChildrenTabbability(false);return true},onKeySpace:function(a){this.fireNavigateEvent(a)},onKeyEnter:function(a){a.stopEvent();a.view.fireEvent("itemclick",a.view,a.record,a.item,a.recordIndex,a)},onSelectAllKeyPress:function(a){this.fireNavigateEvent(a)},fireNavigateEvent:function(b){var a=this;a.fireEvent("navigate",{navigationModel:a,keyEvent:b,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,recordIndex:a.recordIndex,record:a.record,item:a.item})},destroy:function(){var a=this;Ext.destroy(a.dataSourceListeners,a.viewListeners,a.keyNav);a.keyNav=a.dataSourceListeners=a.viewListeners=a.dataSource=null;a.callParent()}},1,0,0,0,["view.navigation.default"],[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.view,"NavigationModel"],0));Ext.define("Ext.rtl.view.NavigationModel",{override:"Ext.view.NavigationModel",initKeyNav:function(a){var c=this,b=c.self.prototype;if(a.getInherited().rtl){c.onKeyLeft=b.onKeyRight;c.onKeyRight=b.onKeyLeft}arguments.callee.$previous.call(this,a)}});(Ext.cmd.derive("Ext.view.AbstractView",Ext.Component,{inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute("data-boundView"))}},defaultBindProperty:"store",renderBuffer:document.createElement("div"),statics:{updateDelay:200,queueRecordChange:function(n,p,h,b,c){var m=this,a=m.changeQueue||(m.changeQueue={}),j=h.internalId,l,g,k,d,q,o,e;l=a[j]||(a[j]={operation:b,record:h,data:{},views:[]});g=l.data;Ext.Array.include(l.views,n);if(c&&(k=c.length)){for(d=0;d<k;d++){q=c[d];o=h.data[q];if(g.hasOwnProperty(q)){if(h.isEqual(g[q],o)){delete g[q];e=true}}else{g[q]=o}}if(e&&!Ext.Object.getKeys(g).length){delete a[j]}}else{Ext.apply(g,h.data)}if(!m.flushQueueTask){m.flushQueueTask=Ext.util.TaskManager.newTask({run:Ext.global.requestAnimationFrame?Ext.Function.createAnimationFrame(m.onFlushTick,m):Ext.Function.bind(m.onFlushTick,m),interval:Ext.view.AbstractView.updateDelay,repeat:1})}m.flushQueueTask.start()},onFlushTick:function(){Ext.AnimationQueue.start(this.flushChangeQueue,this)},flushChangeQueue:function(){var e=this,g,a,j,d,h,c,b;if(Ext.isScrolling){e.flushQueueTask.start();return}j=e.changeQueue;this.changeQueue={};for(h in j){d=j[h];g=d.views;a=g.length;for(c=0;c<a;c++){b=g[c];if(!b.isDestroyed){b.handleUpdate(b.dataSource,d.record,d.operation,Ext.Object.getKeys(d.data))}}}Ext.AnimationQueue.stop(e.flushChangeQueue,e)}},config:{selection:null,store:"ext-empty-store",navigationModel:{type:"default"},selectionModel:{type:"dataviewmodel"}},publishes:["selection"],twoWayBindable:["selection"],throttledUpdate:false,deferInitialRefresh:false,itemCls:"x-dataview-item",loadingText:"Loading...",loadMask:true,loadingUseMsg:true,selectedItemCls:"x-item-selected",emptyText:"",deferEmptyText:true,trackOver:false,blockRefresh:false,preserveScrollOnRefresh:false,preserveScrollOnReload:false,ariaRole:"listbox",itemAriaRole:"option",last:false,focusable:true,tabIndex:0,triggerEvent:"itemclick",triggerCtEvent:"containerclick",refreshNeeded:true,updateSuspendCounter:0,addCmpEvents:Ext.emptyFn,constructor:function(a){if(a&&a.selModel){a.selectionModel=a.selModel}Ext.Component.prototype.constructor.call(this,a)},initComponent:function(){var d=this,b=Ext.isDefined,e=d.itemTpl,c={},a;if(e){if(Ext.isArray(e)){e=e.join("")}else{if(Ext.isObject(e)){c=Ext.apply(c,e.initialConfig);e=e.html}}if(!d.itemSelector){d.itemSelector="."+d.itemCls}e=Ext.String.format('<tpl for="."><div class="{0}" role="{2}">{1}</div></tpl>',d.itemCls,e,d.itemAriaRole);d.tpl=new Ext.XTemplate(e,c)}Ext.Component.prototype.initComponent.call(this);d.tpl=d.getTpl("tpl");if(d.overItemCls){d.trackOver=true}d.addCmpEvents();a=d.store=Ext.data.StoreManager.lookup(d.store||"ext-empty-store");if(!d.dataSource){d.dataSource=a}d.bindStore(a,true);d.getNavigationModel().bindComponent(this);if(!d.all){d.all=new Ext.CompositeElementLite()}d.scrollState={top:0,left:0};d.savedTabIndexAttribute="data-savedtabindex-"+d.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(){var a=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refresh()}else{a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var b=this,a=b.loadingHeight;if(a&&a>b.getHeight()){b.hasLoadingHeight=true;b.oldMinHeight=b.minHeight;b.minHeight=a;b.updateLayout()}},onMaskHide:function(){var a=this;if(!a.destroying&&a.hasLoadingHeight){a.minHeight=a.oldMinHeight;a.updateLayout();delete a.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var b=this.loadMask,a=[];if(b&&b.isComponent){a.push(b)}return a},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(a){var b=this,c;if(!b.ignoreNextSelection){b.ignoreNextSelection=true;c=b.getSelectionModel();if(a){c.select(a)}else{c.deselectAll()}b.ignoreNextSelection=false}},updateBindSelection:function(a,c){var d=this,b=null;if(!d.ignoreNextSelection){d.ignoreNextSelection=true;if(c.length){b=a.getLastSelected();d.hasHadSelection=true}if(d.hasHadSelection){d.setSelection(b)}d.ignoreNextSelection=false}},applySelectionModel:function(a,c){var b=this,d;if(c){c.un({scope:b,lastselectedchanged:b.updateBindSelection,selectionchange:b.updateBindSelection});Ext.destroy(b.selModelRelayer);a=Ext.Factory.selection(a)}else{if(a&&a.isSelectionModel){a.locked=b.disableSelection}else{if(b.simpleSelect){d="SIMPLE"}else{if(b.multiSelect){d="MULTI"}else{d="SINGLE"}}if(typeof a==="string"){a={type:a}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect||b.multiSelect,mode:d,locked:b.disableSelection},a))}}b.selModelRelayer=b.relayEvents(a,["selectionchange","beforeselect","beforedeselect","select","deselect","focuschange"]);a.on({scope:b,lastselectedchanged:b.updateBindSelection,selectionchange:b.updateBindSelection});return a},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(d){var c=this,b=c.getNavigationModel(),a;if(!c.itemFocused&&c.all.getCount()){a=b.getLastFocused();b.setPosition(a||0,d.event,null,!a);c.itemFocused=b.getPosition()!=null}if(c.itemFocused){this.el.dom.setAttribute("tabindex","-1")}},onFocusLeave:function(b){var a=this;if(a.itemFocused){a.getNavigationModel().setPosition(null,b.event,null,true);a.itemFocused=false;a.el.dom.setAttribute("tabindex",0)}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);this.onFocusLeave({})},refresh:function(){var j=this,i=j.all,l=i.getCount(),h=j.refreshCounter,k,d,c,g=j.getSelectionModel(),b=j.getNavigationModel(),e=h&&i.getCount()&&j.preserveScrollOnRefresh&&j.getScrollable(),a;if(!j.rendered||j.isDestroyed){return}if(!j.hasListeners.beforerefresh||j.fireEvent("beforerefresh",j)!==false){j.refreshing=true;b.beforeViewRefresh(j);k=j.getTargetEl();c=j.getViewRange();d=k.dom;if(e){a=e.getPosition()}if(h){j.clearViewEl();j.refreshCounter++}else{j.refreshCounter=1}j.tpl.append(k,j.collectData(c,i.startIndex||0));if(c.length<1){j.addEmptyText();i.clear()}else{j.collectNodes(k.dom);j.updateIndexes(0)}b.onViewRefresh();if(j.refreshSelmodelOnRefresh!==false){g.refresh()}j.refreshNeeded=false;j.refreshSize(i.getCount()!==l);j.fireEvent("refresh",j,c);if(e){e.scrollTo(a)}if(!j.viewReady){j.viewReady=true;j.fireEvent("viewready",j)}j.refreshing=false;j.refreshScroll()}},addEmptyText:function(){var b=this,a=b.getStore();if(b.emptyText&&!a.isLoading()&&(!b.deferEmptyText||b.refreshCounter>1||a.isLoaded())){b.emptyEl=Ext.core.DomHelper.insertHtml("beforeEnd",b.getTargetEl().dom,b.emptyText)}},toggleChildrenTabbability:function(c){var a=this.savedTabIndexAttribute,b=this.getTargetEl();if(c){b.restoreChildrenTabbableState(a)}else{b.saveChildrenTabbableState(a)}},collectNodes:function(b){var a=this.all;a.fill(Ext.fly(b).query(this.getItemSelector()),a.startIndex||0);if(this.focusable){a.set({tabindex:"-1"})}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(d){var c=this,b=c.getSizeModel(),a=c.getScrollable();if(b.height.shrinkWrap||b.width.shrinkWrap||d){c.updateLayout()}else{if(c.touchScroll&&!c.bufferedRenderer){if(a){a.refresh()}else{c.on({boxready:c.refreshScroll,scope:c,single:true})}}}},afterFirstLayout:function(c,b){var d=this,a=d.getScrollable();if(a){a.on({scroll:d.onViewScroll,scrollend:d.onViewScrollEnd,scope:d,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,c,b)},clearViewEl:function(){var b=this,c=b.getTargetEl(),a=b.getNodeContainer()===c;b.clearEmptyEl();b.all.clear(!a);if(a){c.dom.innerHTML=""}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(b,a,c){this.fireEvent("scroll",this,a,c)},onViewScrollEnd:function(b,a,c){this.fireEvent("scrollend",this,a,c)},saveScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){b.left=a.getScrollX();b.top=a.getScrollY()}},restoreScrollState:function(){var a=this,b=a.scrollState;if(a.rendered){a.setScrollX(b.left);a.setScrollY(b.top)}},prepareData:function(e,d,c){var b,a,g;if(c){b=c.getAssociatedData();for(a in b){if(b.hasOwnProperty(a)){if(!g){e=Ext.Object.chain(e);g=true}e[a]=b[a]}}}return e},collectData:function(c,g){var e=[],d=0,a=c.length,b;for(;d<a;d++){b=c[d];e[d]=this.prepareData(b.data,g+d,b)}return e},bufferRender:function(d,e){var h=this,j=h.renderBuffer,b=document.createDocumentFragment(),c,a,g;h.tpl.overwrite(j,h.collectData(d,e));c=Ext.fly(j).query(h.getItemSelector());for(g=0,a=c.length;g<a;g++){b.appendChild(c[g])}return{fragment:b,children:c}},nodeContainerSelector:null,getNodeContainer:function(){var b=this.getTargetEl(),a=this.nodeContainerSelector;return a?b.down(a,true):b},getNodeContainerSelector:function(){return this.nodeContainerSelector},onUpdate:function(d,b,c,h,e){var g=this,a=e&&e.filtered;if(!a&&g.getNode(b)){if(g.throttledUpdate){g.statics().queueRecordChange(g,d,b,c,h)}else{g.handleUpdate.apply(g,arguments)}}},handleUpdate:function(c,a){var g=this,d,e,b=g.getSelectionModel();if(g.viewReady&&!g.refreshNeeded){d=g.dataSource.indexOf(a);if(d>-1){if(g.getNode(a)){e=g.bufferRender([a],d).children[0];g.all.replaceElement(d,e,true);g.updateIndexes(d,d);b.onUpdate(a);g.refreshSizePending=true;if(b.isSelected(a)){g.onItemSelect(a)}if(g.hasListeners.itemupdate){g.fireEvent("itemupdate",a,d,e)}return e}}}},onReplace:function(o,p,b,c){var m=this,n=m.all,h=m.getSelectionModel(),q=p,s,r,e,d,k,a,l,g;if(m.rendered){s=m.bufferRender(c,p,true);k=s.fragment;a=s.children;r=n.item(p);if(r){n.item(p).insertSibling(k,"before",true)}else{m.appendNodes(k)}n.insert(p,a);p+=c.length;g=p+b.length-1;l=n.removeRange(p,g,true);if(m.refreshSelmodelOnRefresh!==false){h.refresh()}m.updateIndexes(p);if(m.hasListeners.itemremove){g=q+b.length-1;for(e=b.length-1,d=g;e>=0;--e,--d){m.fireEvent("itemremove",b[e],d,l[e],m)}}if(m.hasListeners.itemadd){m.fireEvent("itemadd",c,p,a)}m.refreshSize()}},onAdd:function(d,c,e){var g=this,b,a=g.getSelectionModel();if(g.rendered&&!g.refreshNeeded){if(g.all.getCount()===0){g.refresh();b=g.all.slice()}else{b=g.doAdd(c,e);if(g.refreshSelmodelOnRefresh!==false){a.refresh()}g.updateIndexes(e);g.refreshSizePending=true}if(g.hasListeners.itemadd){g.fireEvent("itemadd",c,e,b)}}},appendNodes:function(a){var b=this.all,c=b.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(a)}else{b.item(c-1).insertSibling(a,"after")}},doAdd:function(c,e){var h=this,k=h.bufferRender(c,e,true),g=k.fragment,b=k.children,i=h.all,d=i.getCount(),j=i.startIndex||0,a=i.endIndex||d-1;if(d===0||e>a){h.appendNodes(g)}else{if(e<=j){i.item(j).insertSibling(g,"before",true)}else{i.item(e).insertSibling(b,"before",true)}}i.insert(e,b);return b},onRemove:function(b,e,j){var k=this,m=k.all,c=k.hasListeners.itemremove,l,g,h,a,d;if(k.rendered&&!k.refreshNeeded&&m.getCount()){if(k.dataSource.getCount()===0){if(c){k.fireEvent("itemremove",e,j,k.getNodes(j,j+e.length-1))}k.refresh()}else{if(c){a=[]}for(g=e.length-1;g>=0;--g){h=e[g];l=j+g;if(a){d=m.item(l);a[g]=d?d.dom:undefined}if(m.item(l)){k.doRemove(h,l)}}if(c){k.fireEvent("itemremove",e,j,a,k)}k.updateIndexes(j)}k.refreshSizePending=true}},doRemove:function(a,b){this.all.removeElement(b,true)},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(h,g){var b=this.all.elements,e,a=this.getViewRange(),d,c=this.id;h=h||0;g=g||((g===0)?0:(b.length-1));for(d=h;d<=g;d++){e=b[d];e.setAttribute("data-recordIndex",d);e.setAttribute("data-recordId",a[d].internalId);e.setAttribute("data-boundView",c)}},bindStore:function(b,c){var d=this,a=d.getSelectionModel();a.bindStore(b,c);a.bindComponent(b?d:null);d.mixins.storeholder.bindStore.apply(d,arguments);if(b&&d.componentLayoutCounter){d.doFirstRefresh(b,!c)}},doFirstRefresh:function(a,c){var b=this;if(b.deferInitialRefresh&&!c){Ext.defer(b.doFirstRefresh,1,b,[a,true])}else{if(a&&!b.deferRefreshForLoad(a)){b.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(a,c){var b=this;if(b.store.isBufferedStore){b.store.preserveScrollOnReload=b.preserveScrollOnReload}if(c&&c.isBufferedStore){delete c.preserveScrollOnReload}b.setMaskBind(a);if(!b.dataSource){b.dataSource=a}},setMaskBind:function(b){var a=this.loadMask;if(this.rendered&&a&&b&&!a.bindStore){a=this.createMask()}if(a&&a.bindStore){a.bindStore(b)}},getStoreListeners:function(){var a=this;return{refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var a=this;if(a.updateSuspendCounter){--a.updateSuspendCounter}Ext.resumeLayouts(true);if(a.refreshSizePending){a.refreshSize(true);a.refreshSizePending=false}},onDataRefresh:function(){var b=this,a=b.preserveScrollOnRefresh;b.preserveScrollOnRefresh=b.preserveScrollOnReload;b.lastFocused=null;b.refreshView();b.preserveScrollOnRefresh=a},refreshView:function(){var b=this,a=b.blockRefresh||!b.rendered||b.up("[collapsed],[isCollapsingOrExpanding],[hidden]");if(a){b.refreshNeeded=true}else{if(b.bufferedRenderer){b.bufferedRenderer.refreshView()}else{b.refresh()}}},findItemByChild:function(a){return Ext.fly(a).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(a){return a.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var b=[],a=this.getSelectionModel().getSelection(),d=a.length,c=0;for(;c<d;c++){b.push(this.getNode(a[c]))}return b},getRecords:function(c){var b=[],d=0,a=c.length,e=this.dataSource.data;for(;d<a;d++){b[b.length]=e.getByKey(c[d].getAttribute("data-recordId"))}return b},getRecord:function(a){return this.dataSource.getByInternalId(Ext.getDom(a).getAttribute("data-recordId"))},isSelected:function(b){var a=this.getRecord(b);return this.getSelectionModel().isSelected(a)},select:function(b,c,a){this.getSelectionModel().select(b,c,a)},deselect:function(b,a){this.getSelectionModel().deselect(b,a)},getNode:function(b){var c=this,a;if(c.rendered&&(b||b===0)){if(Ext.isString(b)){a=document.getElementById(b)}else{if(b.isModel){a=c.getNodeByRecord(b)}else{if(Ext.isNumber(b)){a=c.all.elements[b]}else{if(b.target){b=b.target}a=Ext.fly(b).findParent(c.itemSelector,c.getTargetEl())}}}}return a||null},getNodeByRecord:function(a){var b=this.store.indexOf(a);return this.all.elements[b]||null},getNodes:function(c,a){var b=this.all;if(a!==undefined){a++}return b.slice(c,a)},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}if(a.getAttribute("data-recordIndex")){return Number(a.getAttribute("data-recordIndex"))}return this.all.indexOf(a)},onDestroy:function(){var b=this,a=b.updateSuspendCounter;b.all.clear();b.emptyEl=null;Ext.Component.prototype.onDestroy.call(this);b.bindStore(null);Ext.destroy(b.navigationModel,b.selectionModel);while(a--){Ext.resumeLayouts(true)}},onItemSelect:function(a){var b=this.getNode(a);if(b){Ext.fly(b).addCls(this.selectedItemCls)}},onItemDeselect:function(a){var b=this.getNode(a);if(b){Ext.fly(b).removeCls(this.selectedItemCls)}},getItemSelector:function(){return this.itemSelector},addItemCls:function(b,a){var c=this.getNode(b);if(c){Ext.fly(c).addCls(a)}},removeItemCls:function(b,a){var c=this.getNode(b);if(c){Ext.fly(c).removeCls(a)}},setStore:function(a){var b=this;if(b.store!==a){if(b.isConfiguring){b.store=a}else{b.bindStore(a,false)}}},privates:{deferRefreshForLoad:function(a){return a.isLoading()},createMask:function(b){var d=this,c=d.getStore(),a;if(c&&!c.isEmptyStore&&!c.loadsSynchronously()){a={target:d,msg:d.loadingText,useMsg:d.loadingUseMsg,store:c};if(d.loadingCls){a.msgCls=d.loadingCls}if(Ext.isObject(b)){a=Ext.apply(a,b)}d.loadMask=new Ext.LoadMask(a);d.loadMask.on({scope:d,beforeshow:d.onMaskBeforeShow,hide:d.onMaskHide})}return d.loadMask},getFocusEl:function(){return this.el},getOverflowEl:function(){return Ext.Component.prototype.getTargetEl.call(this)},getTargetEl:function(){return this.touchScroll?this.getScrollerEl():Ext.Component.prototype.getTargetEl.call(this)}}},1,0,["component","box"],{component:true,box:true},0,[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,"AbstractView"],function(){Ext.deprecate("extjs","4.0",function(){Ext.view.AbstractView.override({getSelectionCount:function(){if(Ext.global.console){Ext.global.console.warn("DataView: getSelectionCount will be removed, please interact with the Ext.selection.DataViewModel")}return this.selModel.getSelection().length},getSelectedRecords:function(){if(Ext.global.console){Ext.global.console.warn("DataView: getSelectedRecords will be removed, please interact with the Ext.selection.DataViewModel")}return this.selModel.getSelection()},select:function(a,b,d){if(Ext.global.console){Ext.global.console.warn("DataView: select will be removed, please access select through a DataView's SelectionModel, ie: view.getSelectionModel().select()")}var c=this.getSelectionModel();return c.select.apply(c,arguments)},clearSelections:function(){if(Ext.global.console){Ext.global.console.warn("DataView: clearSelections will be removed, please access deselectAll through DataView's SelectionModel, ie: view.getSelectionModel().deselectAll()")}var a=this.getSelectionModel();return a.deselectAll()}})})}));(Ext.cmd.derive("Ext.view.View",Ext.view.AbstractView,{alternateClassName:"Ext.DataView",inputTagRe:/^textarea$|^input$/i,keyEventRe:/^key/,manageLayoutScroll:false,inheritableStatics:{EventMap:{longpress:"LongPress",mousedown:"MouseDown",mouseup:"MouseUp",click:"Click",dblclick:"DblClick",contextmenu:"ContextMenu",mouseover:"MouseOver",mouseout:"MouseOut",mouseenter:"MouseEnter",mouseleave:"MouseLeave",keydown:"KeyDown",keyup:"KeyUp",keypress:"KeyPress",focus:"Focus"},TouchEventMap:{touchstart:"mousedown",touchend:"mouseup",tap:"click",doubletap:"dblclick"}},afterRender:function(){var a=this;Ext.view.AbstractView.prototype.afterRender.call(this);a.mon(a.el,{scope:a,click:a.handleEvent,longpress:a.handleEvent,mousedown:a.handleEvent,mouseup:a.handleEvent,dblclick:a.handleEvent,contextmenu:a.handleEvent,keydown:a.handleEvent,keyup:a.handleEvent,keypress:a.handleEvent,mouseover:a.handleMouseOver,mouseout:a.handleMouseOut})},getTargetSelector:function(){return this.dataRowSelector||this.itemSelector},handleMouseOver:function(d){var c=this,a=c.getTargetSelector(),b=d.getTarget(a);if(!c.isDestroyed){if(b){if(c.mouseOverItem!==b&&c.el.contains(b)){c.mouseOverItem=d.item=b;d.newType="mouseenter";c.handleEvent(d)}}else{c.handleEvent(d)}}},handleMouseOut:function(g){var b=this.getTargetSelector(),c=g.getTarget(b),d=g.getRelatedTarget(b),a;if((c===d)&&!(c===null&&d===null)){return}if(!this.isDestroyed){if(c&&(a=this.self.getBoundView(c))){g.item=c;g.newType="mouseleave";a.handleEvent(g);a.mouseOverItem=null}else{this.handleEvent(g)}}},handleEvent:function(d){var c=this,b=c.keyEventRe.test(d.type),a;d.isInputFieldEvent=Ext.fly(d.target).isInputField();d.view=c;if(b){a=c.getNavigationModel();d.item=a.getItem();d.record=a.getRecord()}if(!d.item){d.item=d.getTarget(c.itemSelector)}if(d.item&&!d.record){d.record=c.getRecord(d.item)}if(c.processUIEvent(d)!==false){c.processSpecialEvent(d)}if(b&&!d.isInputFieldEvent){if(d.getKey()===d.SPACE||d.isNavKeyPress(true)){d.preventDefault()}}},processItemEvent:Ext.emptyFn,processContainerEvent:Ext.emptyFn,processSpecialEvent:Ext.emptyFn,processUIEvent:function(g){if(!Ext.getBody().isAncestor(g.target)){return}var j=this,k=g.item,l=j.self,a=l.EventMap,h=l.TouchEventMap,d,c=g.record,i=g.type,b=i;if(g.newType){b=g.newType}if(k){b=h[b]||b;d=g.recordIndex=j.indexInStore?j.indexInStore(c):j.indexOf(k);if(!c||j.processItemEvent(c,k,d,g)===false){return false}if((j["onBeforeItem"+a[b]](c,k,d,g)===false)||(j.fireEvent("beforeitem"+b,j,c,k,d,g)===false)||(j["onItem"+a[b]](c,k,d,g)===false)){return false}j.fireEvent("item"+b,j,c,k,d,g)}else{i=h[i]||i;if((j.processContainerEvent(g)===false)||(j["onBeforeContainer"+a[i]](g)===false)||(j.fireEvent("beforecontainer"+i,j,g)===false)||(j["onContainer"+a[i]](g)===false)){return false}j.fireEvent("container"+i,j,g)}return true},onItemMouseEnter:function(a,c,b,d){if(this.trackOver){this.highlightItem(c)}},onItemMouseLeave:function(a,c,b,d){if(this.trackOver){this.clearHighlight()}},onItemMouseDown:Ext.emptyFn,onItemLongPress:Ext.emptyFn,onItemMouseUp:Ext.emptyFn,onItemFocus:Ext.emptyFn,onItemClick:Ext.emptyFn,onItemDblClick:Ext.emptyFn,onItemContextMenu:Ext.emptyFn,onItemKeyDown:Ext.emptyFn,onItemKeyUp:Ext.emptyFn,onItemKeyPress:Ext.emptyFn,onBeforeItemLongPress:Ext.emptyFn,onBeforeItemMouseDown:Ext.emptyFn,onBeforeItemMouseUp:Ext.emptyFn,onBeforeItemFocus:Ext.emptyFn,onBeforeItemMouseEnter:Ext.emptyFn,onBeforeItemMouseLeave:Ext.emptyFn,onBeforeItemClick:Ext.emptyFn,onBeforeItemDblClick:Ext.emptyFn,onBeforeItemContextMenu:Ext.emptyFn,onBeforeItemKeyDown:Ext.emptyFn,onBeforeItemKeyUp:Ext.emptyFn,onBeforeItemKeyPress:Ext.emptyFn,onContainerMouseDown:Ext.emptyFn,onContainerLongPress:Ext.emptyFn,onContainerMouseUp:Ext.emptyFn,onContainerMouseOver:Ext.emptyFn,onContainerMouseOut:Ext.emptyFn,onContainerClick:Ext.emptyFn,onContainerDblClick:Ext.emptyFn,onContainerContextMenu:Ext.emptyFn,onContainerKeyDown:Ext.emptyFn,onContainerKeyUp:Ext.emptyFn,onContainerKeyPress:Ext.emptyFn,onBeforeContainerMouseDown:Ext.emptyFn,onBeforeContainerLongPress:Ext.emptyFn,onBeforeContainerMouseUp:Ext.emptyFn,onBeforeContainerMouseOver:Ext.emptyFn,onBeforeContainerMouseOut:Ext.emptyFn,onBeforeContainerClick:Ext.emptyFn,onBeforeContainerDblClick:Ext.emptyFn,onBeforeContainerContextMenu:Ext.emptyFn,onBeforeContainerKeyDown:Ext.emptyFn,onBeforeContainerKeyUp:Ext.emptyFn,onBeforeContainerKeyPress:Ext.emptyFn,setHighlightedItem:function(c){var b=this,a=b.highlightedItem,d=b.overItemCls;if(a!==c){if(a){Ext.fly(a).removeCls(d);if(Ext.isIE8){b.repaintBorder(a);b.repaintBorder(a.nextSibling)}if(b.hasListeners.unhighlightitem){b.fireEvent("unhighlightitem",b,a)}}b.highlightedItem=c;if(c){Ext.fly(c).addCls(b.overItemCls);if(Ext.isIE8){b.repaintBorder(c.nextSibling)}if(b.hasListeners.highlightitem){b.fireEvent("highlightitem",b,c)}}}},highlightItem:function(a){this.setHighlightedItem(a)},clearHighlight:function(){this.setHighlightedItem(undefined)},handleUpdate:function(b,a){var g=this,e,c,d;if(g.viewReady){e=g.getNode(a);c=Ext.view.AbstractView.prototype.handleUpdate.apply(this,arguments);d=g.highlightedItem;if(d&&d===e){delete g.highlightedItem;if(c){g.highlightItem(c)}}}},refresh:function(){this.clearHighlight();Ext.view.AbstractView.prototype.refresh.apply(this,arguments)},focusNode:function(i){var g=this,e=g.getNode(i),d=g.el,a=0,b=0,h=d.getRegion(),c;h.bottom=h.top+d.dom.clientHeight;h.right=h.left+d.dom.clientWidth;if(e){c=Ext.fly(e).getRegion();if(c.top<h.top){a=c.top-h.top}else{if(c.bottom>h.bottom){a=c.bottom-h.bottom}}if(c.left<h.left){b=c.left-h.left}else{if(c.right>h.right){b=c.right-h.right}}if(b||a){g.scrollBy(b,a,false)}Ext.fly(e).set({tabIndex:-1});e.focus()}},privates:{repaintBorder:function(b){var a=this.getNode(b);if(a){a.className=a.className}}}},0,["dataview"],["component","box","dataview"],{component:true,box:true,dataview:true},["widget.dataview"],0,[Ext.view,"View",Ext,"DataView"],0));(Ext.cmd.derive("Ext.view.BoundListKeyNav",Ext.view.NavigationModel,{navigateOnSpace:true,initKeyNav:function(a){var b=this,c=a.pickerField;if(!b.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,a);b.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:b.onKeyEsc,scope:b})}if(!c){return}if(!c.rendered){c.on("render",Ext.Function.bind(b.initKeyNav,b,[a],0),b,{single:true});return}b.fieldKeyNav=new Ext.util.KeyNav({disabled:true,target:c.inputEl,forceKeyDown:true,up:b.onKeyUp,down:b.onKeyDown,right:b.onKeyRight,left:b.onKeyLeft,pageDown:b.onKeyPageDown,pageUp:b.onKeyPageUp,home:b.onKeyHome,end:b.onKeyEnd,tab:b.onKeyTab,space:b.onKeySpace,enter:b.onKeyEnter,A:{ctrl:true,handler:b.onSelectAllKeyPress},scope:b})},processViewEvent:function(b,a,e,c,d){if(d.within(b.listWrap)){return d}if(d.getKey()===d.ESC){if(Ext.fly(d.target).isInputField()){d.target=d.target.parentNode}return d}},enable:function(){this.fieldKeyNav.enable();Ext.view.NavigationModel.prototype.enable.call(this)},disable:function(){this.fieldKeyNav.disable();Ext.view.NavigationModel.prototype.disable.call(this)},onItemMouseDown:function(b,a,e,c,d){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,b,a,e,c,d);d.preventDefault()},onKeyUp:function(i){var g=this,b=g.view,d=b.all,h=b.highlightedItem,c=h?b.indexOf(h):-1,a=c>0?c-1:d.getCount()-1;g.setPosition(a);i.preventDefault()},onKeyDown:function(i){var g=this,b=g.view,d=b.all,h=b.highlightedItem,c=h?b.indexOf(h):-1,a=c<d.getCount()-1?c+1:0;g.setPosition(a);i.preventDefault()},onKeyLeft:Ext.returnTrue,onKeyRight:Ext.returnTrue,onKeyTab:function(c){var a=this.view,b=a.pickerField;if(a.isVisible()){if(b.selectOnTab){this.selectHighlighted(c)}if(b.collapse){b.collapse()}}return true},onKeyEnter:function(g){var a=this.view,b=a.getSelectionModel(),d=a.pickerField,c=b.getCount();g.stopEvent();this.selectHighlighted(g);if(!d.multiSelect&&c===b.getCount()&&d.collapse){d.collapse()}},onKeySpace:function(){if(this.navigateOnSpace){Ext.view.NavigationModel.prototype.onKeySpace.apply(this,arguments)}return true},onKeyEsc:function(){if(this.view.pickerField){this.view.pickerField.collapse()}},focusItem:function(c){var b=this,a=b.view;if(typeof c==="number"){c=a.all.item(c)}if(c){c=c.dom;a.highlightItem(c);a.getScrollable().scrollIntoView(c,false)}},selectHighlighted:function(h){var g=this,b=g.view,a=b.getSelectionModel(),c,d=g.recordIndex;if(b.all.getCount()){c=g.getRecord();if(c){if(h.getKey()===h.ENTER||!a.isSelected(c)){a.selectWithEvent(c,h);if(!b.store.data.contains(c)){g.setPosition(Math.min(d,b.store.getCount()-1))}}}}},destroy:function(){Ext.destroy(this.fieldKeyNav);Ext.view.NavigationModel.prototype.destroy.call(this)}},0,0,0,0,["view.navigation.boundlist"],0,[Ext.view,"BoundListKeyNav"],0));(Ext.cmd.derive("Ext.layout.component.BoundList",Ext.layout.component.Auto,{type:"component",beginLayout:function(d){var c=this,a=c.owner,b=a.pagingToolbar;c.scrollPos=a.listWrap.getScroll();Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);if(a.floating){d.savedXY=a.getXY();a.setXY([0,-9999])}if(b){d.toolbarContext=d.context.getCmp(b)}d.listContext=d.getEl("listWrap")},beginLayoutCycle:function(b){var a=this.owner;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(b.heightModel.auto){a.el.setHeight("auto");a.listWrap.setHeight("auto")}},getLayoutItems:function(){var a=this.owner.pagingToolbar;return a?[a]:[]},isValidParent:function(){return true},finishedLayout:function(d){var c=this,e=d.savedXY,a=c.owner,b=a.listWrap,g=c.scrollPos;Ext.layout.component.Auto.prototype.finishedLayout.apply(this,arguments);if(e){c.owner.setXY(e)}b.setScrollLeft(g.left);b.setScrollTop(g.top)},measureContentWidth:function(a){return this.owner.listWrap.getWidth()},measureContentHeight:function(a){return this.owner.listWrap.getHeight()},publishInnerHeight:function(c,a){var b=c.toolbarContext,d=0;if(b){d=b.getProp("height")}if(d===undefined){this.done=false}else{c.listContext.setHeight(a-c.getFrameInfo().height-d)}},calculateOwnerHeightFromContentHeight:function(c){var a=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=c.toolbarContext;if(b){a+=b.getProp("height")}return a}},0,0,0,0,["layout.boundlist"],0,[Ext.layout.component,"BoundList"],0));(Ext.cmd.derive("Ext.toolbar.Item",Ext.Component,{alternateClassName:"Ext.Toolbar.Item",enable:Ext.emptyFn,disable:Ext.emptyFn,focus:Ext.emptyFn},0,["tbitem"],["component","box","tbitem"],{component:true,box:true,tbitem:true},["widget.tbitem"],0,[Ext.toolbar,"Item",Ext.Toolbar,"Item"],0));(Ext.cmd.derive("Ext.toolbar.TextItem",Ext.toolbar.Item,{alternateClassName:"Ext.Toolbar.TextItem",text:"",baseCls:"x-toolbar-text",ariaRole:null,beforeRender:function(){var a=this.text;Ext.toolbar.Item.prototype.beforeRender.call(this);if(a){this.html=a}},setText:function(a){this.update(a)}},0,["tbtext"],["component","box","tbitem","tbtext"],{component:true,box:true,tbitem:true,tbtext:true},["widget.tbtext"],0,[Ext.toolbar,"TextItem",Ext.Toolbar,"TextItem"],0));(Ext.cmd.derive("Ext.form.trigger.Spinner",Ext.form.trigger.Trigger,{cls:"x-form-trigger-spinner",spinnerCls:"x-form-spinner",spinnerUpCls:"x-form-spinner-up",spinnerDownCls:"x-form-spinner-down",focusCls:"x-form-spinner-focus",overCls:"x-form-spinner-over",clickCls:"x-form-spinner-click",focusFieldOnClick:true,vertical:true,bodyTpl:'<tpl if="vertical"><div class="{spinnerCls} {spinnerCls}-{ui} {spinnerUpCls} {spinnerUpCls}-{ui} {childElCls} {upDisabledCls}"></div></tpl><div class="{spinnerCls} {spinnerCls}-{ui} {spinnerDownCls} {spinnerDownCls}-{ui} {childElCls} {downDisabledCls}"></div><tpl if="!vertical"><div class="{spinnerCls} {spinnerCls}-{ui} {spinnerUpCls} {spinnerUpCls}-{ui} {childElCls} {upDisabledCls}"></div></tpl>',destroy:function(){var a=this;if(a.spinnerEl){a.spinnerEl.destroy();a.spinnerEl=a.upEl=a.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var a=this;return{vertical:a.vertical,upDisabledCls:a.upEnabled?"":(a.spinnerUpCls+"-disabled"),downDisabledCls:a.downEnabled?"":(a.spinnerDownCls+"-disabled"),spinnerCls:a.spinnerCls,spinnerUpCls:a.spinnerUpCls,spinnerDownCls:a.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var b=this,a=arguments,d=b.clickRepeater?a[1]:a[0],c=b.field;if(!c.readOnly&&!c.disabled){if(b.upEl.contains(d.target)){Ext.callback(b.upHandler,b.scope,[c,b,d],0,c)}else{if(b.downEl.contains(d.target)){Ext.callback(b.downHandler,b.scope,[c,b,d],0,c)}}}c.inputEl.focus()},onFieldRender:function(){var b=this,a=b.vertical,d,c;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);d=b.spinnerEl=b.el.select("."+b.spinnerCls,true);c=d.elements;b.upEl=a?c[0]:c[1];b.downEl=a?c[1]:c[0]},setUpEnabled:function(a){this.upEl[a?"removeCls":"addCls"](this.spinnerUpCls+"-disabled")},setDownEnabled:function(a){this.downEl[a?"removeCls":"addCls"](this.spinnerDownCls+"-disabled")}},0,0,0,0,["trigger.spinner"],0,[Ext.form.trigger,"Spinner"],0));(Ext.cmd.derive("Ext.form.field.Spinner",Ext.form.field.Text,{alternateClassName:"Ext.form.Spinner",config:{triggers:{spinner:{type:"spinner",upHandler:"onSpinnerUpClick",downHandler:"onSpinnerDownClick",scope:"this"}}},spinUpEnabled:true,spinDownEnabled:true,keyNavEnabled:true,mouseWheelEnabled:true,repeatTriggerClick:true,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:"spinbutton",applyTriggers:function(b){var c=this,a=b.spinner;a.upEnabled=c.spinUpEnabled;a.downEnabled=c.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,b)},onRender:function(){var b=this,a=b.getTrigger("spinner");(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(b.keyNavEnabled){b.spinnerKeyNav=new Ext.util.KeyNav(b.inputEl,{scope:b,up:b.spinUp,down:b.spinDown})}if(b.mouseWheelEnabled){b.mon(b.bodyEl,"mousewheel",b.onMouseWheel,b)}b.spinUpEl=a.upEl;b.spinDownEl=a.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var a=this;if(a.spinUpEnabled&&!a.disabled){a.fireEvent("spin",a,"up");a.fireEvent("spinup",a);a.onSpinUp()}},spinDown:function(){var a=this;if(a.spinDownEnabled&&!a.disabled){a.fireEvent("spin",a,"down");a.fireEvent("spindown",a);a.onSpinDown()}},setSpinUpEnabled:function(a){var b=this,c=b.spinUpEnabled;b.spinUpEnabled=a;if(c!==a&&b.rendered){b.getTrigger("spinner").setUpEnabled(a)}},setSpinDownEnabled:function(a){var b=this,c=b.spinDownEnabled;b.spinDownEnabled=a;if(c!==a&&b.rendered){b.getTrigger("spinner").setDownEnabled(a)}},onMouseWheel:function(b){var a=this,c;if(a.hasFocus){c=b.getWheelDelta();if(c>0){a.spinUp()}else{if(c<0){a.spinDown()}}b.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,"spinnerKeyNav");Ext.form.field.Text.prototype.onDestroy.call(this)}},0,["spinnerfield"],["component","box","field","textfield","spinnerfield"],{component:true,box:true,field:true,textfield:true,spinnerfield:true},["widget.spinnerfield"],0,[Ext.form.field,"Spinner",Ext.form,"Spinner"],0));(Ext.cmd.derive("Ext.form.field.Number",Ext.form.field.Spinner,{alternateClassName:["Ext.form.NumberField","Ext.form.Number"],allowExponential:true,allowDecimals:true,decimalSeparator:null,submitLocaleSeparator:true,decimalPrecision:2,minValue:Number.NEGATIVE_INFINITY,maxValue:Number.MAX_VALUE,step:1,minText:"The minimum value for this field is {0}",maxText:"The maximum value for this field is {0}",nanText:"{0} is not a valid number",negativeText:"The value cannot be negative",baseChars:"0123456789",autoStripChars:false,initComponent:function(){var a=this;if(a.decimalSeparator===null){a.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);a.setMinValue(a.minValue);a.setMaxValue(a.maxValue)},setValue:function(c){var b=this,d,a;if(b.hasFocus){d=b.getBind();a=d&&d.value;if(a&&a.syncing&&c===b.value){return b}}return Ext.form.field.Spinner.prototype.setValue.call(this,c)},getErrors:function(c){c=arguments.length>0?c:this.processRawValue(this.getRawValue());var b=this,e=Ext.form.field.Spinner.prototype.getErrors.call(this,c),d=Ext.String.format,a;if(c.length<1){return e}c=String(c).replace(b.decimalSeparator,".");if(isNaN(c)){e.push(d(b.nanText,c))}a=b.parseValue(c);if(b.minValue===0&&a<0){e.push(this.negativeText)}else{if(a<b.minValue){e.push(d(b.minText,b.minValue))}}if(a>b.maxValue){e.push(d(b.maxText,b.maxValue))}return e},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(c){var b=this,a=b.decimalSeparator;c=b.parseValue(c);c=b.fixPrecision(c);c=Ext.isNumber(c)?c:parseFloat(String(c).replace(a,"."));c=isNaN(c)?"":String(c).replace(".",a);return c},getSubmitValue:function(){var a=this,b=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!a.submitLocaleSeparator){b=b.replace(a.decimalSeparator,".")}return b},onChange:function(){this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments)},toggleSpinners:function(){var c=this,d=c.getValue(),b=d===null,a;if(c.spinUpEnabled||c.spinUpDisabledByToggle){a=b||d<c.maxValue;c.setSpinUpEnabled(a,true)}if(c.spinDownEnabled||c.spinDownDisabledByToggle){a=b||d>c.minValue;c.setSpinDownEnabled(a,true)}},setMinValue:function(b){var a=this,c;a.minValue=Ext.Number.from(b,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(a.disableKeyFilter!==true){c=a.baseChars+"";if(a.allowExponential){c+=a.decimalSeparator+"e+-"}else{if(a.allowDecimals){c+=a.decimalSeparator}if(a.minValue<0){c+="-"}}c=Ext.String.escapeRegex(c);a.maskRe=new RegExp("["+c+"]");if(a.autoStripChars){a.stripCharsRe=new RegExp("[^"+c+"]","gi")}}},setMaxValue:function(a){this.maxValue=Ext.Number.from(a,Number.MAX_VALUE);this.toggleSpinners()},parseValue:function(a){a=parseFloat(String(a).replace(this.decimalSeparator,"."));return isNaN(a)?null:a},fixPrecision:function(d){var c=this,b=isNaN(d),a=c.decimalPrecision;if(b||!d){return b?"":d}else{if(!c.allowDecimals||a<=0){a=0}}return parseFloat(Ext.Number.toFixed(parseFloat(d),a))},onBlur:function(c){var b=this,a=b.rawToValue(b.getRawValue());if(!Ext.isEmpty(a)){b.setValue(a)}Ext.form.field.Spinner.prototype.onBlur.call(this,c)},setSpinUpEnabled:function(b,a){Ext.form.field.Spinner.prototype.setSpinUpEnabled.apply(this,arguments);if(!a){delete this.spinUpDisabledByToggle}else{this.spinUpDisabledByToggle=!b}},onSpinUp:function(){var a=this;if(!a.readOnly){a.setSpinValue(Ext.Number.constrain(a.getValue()+a.step,a.minValue,a.maxValue))}},setSpinDownEnabled:function(b,a){Ext.form.field.Spinner.prototype.setSpinDownEnabled.apply(this,arguments);if(!a){delete this.spinDownDisabledByToggle}else{this.spinDownDisabledByToggle=!b}},onSpinDown:function(){var a=this;if(!a.readOnly){a.setSpinValue(Ext.Number.constrain(a.getValue()-a.step,a.minValue,a.maxValue))}},setSpinValue:function(b){var a=this;if(a.enforceMaxLength){if(a.fixPrecision(b).toString().length>a.maxLength){return}}a.setValue(b)}},0,["numberfield"],["component","box","field","textfield","spinnerfield","numberfield"],{component:true,box:true,field:true,textfield:true,spinnerfield:true,numberfield:true},["widget.numberfield"],0,[Ext.form.field,"Number",Ext.form,"NumberField",Ext.form,"Number"],0));(Ext.cmd.derive("Ext.toolbar.Paging",Ext.toolbar.Toolbar,{alternateClassName:"Ext.PagingToolbar",displayInfo:false,prependButtons:false,displayMsg:"Displaying {0} - {1} of {2}",emptyMsg:"No data to display",beforePageText:"Page",afterPageText:"of {0}",firstText:"First Page",prevText:"Previous Page",nextText:"Next Page",lastText:"Last Page",refreshText:"Refresh",inputItemWidth:30,emptyPageData:{total:0,currentPage:0,pageCount:0,toRecord:0,fromRecord:0},defaultBindProperty:"store",getPagingItems:function(){var b=this,a={scope:b,blur:b.onPagingBlur};a[Ext.supports.SpecialKeyDownRepeat?"keydown":"keypress"]=b.onPagingKeyDown;return[{itemId:"first",tooltip:b.firstText,overflowText:b.firstText,iconCls:"x-tbar-page-first",disabled:true,handler:b.moveFirst,scope:b},{itemId:"prev",tooltip:b.prevText,overflowText:b.prevText,iconCls:"x-tbar-page-prev",disabled:true,handler:b.movePrevious,scope:b},"-",b.beforePageText,{xtype:"numberfield",itemId:"inputItem",name:"inputItem",cls:"x-tbar-page-number",allowDecimals:false,minValue:1,hideTrigger:true,enableKeyEvents:true,keyNavEnabled:false,selectOnFocus:true,submitValue:false,isFormField:false,width:b.inputItemWidth,margin:"-1 2 3 2",listeners:a},{xtype:"tbtext",itemId:"afterTextItem",html:Ext.String.format(b.afterPageText,1)},"-",{itemId:"next",tooltip:b.nextText,overflowText:b.nextText,iconCls:"x-tbar-page-next",disabled:true,handler:b.moveNext,scope:b},{itemId:"last",tooltip:b.lastText,overflowText:b.lastText,iconCls:"x-tbar-page-last",disabled:true,handler:b.moveLast,scope:b},"-",{itemId:"refresh",tooltip:b.refreshText,overflowText:b.refreshText,iconCls:"x-tbar-loading",disabled:b.store.isLoading(),handler:b.doRefresh,scope:b}]},initComponent:function(){var b=this,a=b.items||b.buttons||[],c;b.bindStore(b.store||"ext-empty-store",true);c=b.getPagingItems();if(b.prependButtons){b.items=a.concat(c)}else{b.items=c.concat(a)}delete b.buttons;if(b.displayInfo){b.items.push("->");b.items.push({xtype:"tbtext",itemId:"displayItem"})}Ext.toolbar.Toolbar.prototype.initComponent.call(this)},beforeRender:function(){Ext.toolbar.Toolbar.prototype.beforeRender.apply(this,arguments);this.updateBarInfo()},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=true;a.onLoad();a.calledInternal=false}},updateInfo:function(){var e=this,c=e.child("#displayItem"),a=e.store,b=e.getPageData(),d,g;if(c){d=a.getCount();if(d===0){g=e.emptyMsg}else{g=Ext.String.format(e.displayMsg,b.fromRecord,b.toRecord,b.total)}c.setText(g)}},onLoad:function(){var h=this,d,b,c,a,g,i,e;g=h.store.getCount();i=g===0;if(!i){d=h.getPageData();b=d.currentPage;c=d.pageCount;if(b>c){if(c>0){h.store.loadPage(c)}else{h.getInputItem().reset()}return}a=Ext.String.format(h.afterPageText,isNaN(c)?1:c)}else{b=0;c=0;a=Ext.String.format(h.afterPageText,0)}Ext.suspendLayouts();e=h.child("#afterTextItem");if(e){e.update(a)}e=h.getInputItem();if(e){e.setDisabled(i).setValue(b)}h.setChildDisabled("#first",b===1||i);h.setChildDisabled("#prev",b===1||i);h.setChildDisabled("#next",b===c||i);h.setChildDisabled("#last",b===c||i);h.setChildDisabled("#refresh",false);h.updateInfo();Ext.resumeLayouts(true);if(!h.calledInternal){h.fireEvent("change",h,d||h.emptyPageData)}},setChildDisabled:function(a,b){var c=this.child(a);if(c){c.setDisabled(b)}},getPageData:function(){var b=this.store,a=b.getTotalCount(),c=Math.ceil(a/b.pageSize),d=Math.min(b.currentPage*b.pageSize,a);return{total:a,currentPage:b.currentPage,pageCount:isFinite(c)?c:1,fromRecord:((b.currentPage-1)*b.pageSize)+1,toRecord:d||a}},onLoadError:function(){this.setChildDisabled("#refresh",false)},getInputItem:function(){return this.child("#inputItem")},readPageFromInput:function(b){var c=this.getInputItem(),d=false,a;if(c){a=c.getValue();d=parseInt(a,10);if(!a||isNaN(d)){c.setValue(b.currentPage);return false}}return d},onPagingBlur:function(c){var b=this.getInputItem(),a;if(b){a=this.getPageData().currentPage;b.setValue(a)}},onPagingKeyDown:function(b,a){this.processKeyEvent(b,a)},processKeyEvent:function(i,h){var d=this,c=h.getKey(),b=d.getPageData(),a=h.shiftKey?10:1,g;if(c===h.RETURN){h.stopEvent();g=d.readPageFromInput(b);if(g!==false){g=Math.min(Math.max(1,g),b.pageCount);if(g!==b.currentPage&&d.fireEvent("beforechange",d,g)!==false){d.store.loadPage(g)}}}else{if(c===h.HOME||c===h.END){h.stopEvent();g=c===h.HOME?1:b.pageCount;i.setValue(g)}else{if(c===h.UP||c===h.PAGE_UP||c===h.DOWN||c===h.PAGE_DOWN){h.stopEvent();g=d.readPageFromInput(b);if(g){if(c===h.DOWN||c===h.PAGE_DOWN){a*=-1}g+=a;if(g>=1&&g<=b.pageCount){i.setValue(g)}}}}}},beforeLoad:function(){this.setChildDisabled("#refresh",true)},moveFirst:function(){if(this.fireEvent("beforechange",this,1)!==false){this.store.loadPage(1);return true}return false},movePrevious:function(){var c=this,a=c.store,b=a.currentPage-1;if(b>0){if(c.fireEvent("beforechange",c,b)!==false){a.previousPage();return true}}return false},moveNext:function(){var d=this,a=d.store,c=d.getPageData().pageCount,b=a.currentPage+1;if(b<=c){if(d.fireEvent("beforechange",d,b)!==false){a.nextPage();return true}}return false},moveLast:function(){var b=this,a=b.getPageData().pageCount;if(b.fireEvent("beforechange",b,a)!==false){b.store.loadPage(a);return true}return false},doRefresh:function(){var b=this,a=b.store,c=a.currentPage;if(b.fireEvent("beforechange",b,c)!==false){a.loadPage(c);return true}return false},getStoreListeners:function(){return{beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.call(this)}},0,["pagingtoolbar"],["component","box","container","toolbar","pagingtoolbar"],{component:true,box:true,container:true,toolbar:true,pagingtoolbar:true},["widget.pagingtoolbar"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.toolbar,"Paging",Ext,"PagingToolbar"],0));(Ext.cmd.derive("Ext.view.BoundList",Ext.view.View,{alternateClassName:"Ext.BoundList",pageSize:0,baseCls:"x-boundlist",itemCls:"x-boundlist-item",listItemCls:"",shadow:false,trackOver:true,preserveScrollOnRefresh:true,enableInitialSelection:false,refreshSelmodelOnRefresh:true,componentLayout:"boundlist",navigationModel:"boundlist",scrollable:true,childEls:["listWrap","listEl"],renderTpl:['<div id="{id}-listWrap" data-ref="listWrap" role="presentation" class="{baseCls}-list-ct ',Ext.dom.Element.unselectableCls,'">','<ul id="{id}-listEl" data-ref="listEl" class="x-list-plain">',"</ul>","</div>","{%","var pagingToolbar=values.$comp.pagingToolbar;","if (pagingToolbar) {","Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);","}","%}",{disableFormats:true}],focusOnToFront:false,initComponent:function(){var b=this,a=b.baseCls,c=b.itemCls;b.selectedItemCls=a+"-selected";if(b.trackOver){b.overItemCls=a+"-item-over"}b.itemSelector="."+c;b.scrollerSelector="ul.x-list-plain";if(b.floating){b.addCls(a+"-floating")}if(!b.tpl){b.generateTpl()}else{if(!b.tpl.isTemplate){b.tpl=new Ext.XTemplate(b.tpl)}}if(b.pageSize){b.pagingToolbar=b.createPagingToolbar()}Ext.view.View.prototype.initComponent.call(this)},generateTpl:function(){var a=this;a.tpl=new Ext.XTemplate('<tpl for=".">','<li role="option" unselectable="on" class="'+a.itemCls+'">'+a.getInnerTpl(a.displayField)+"</li>","</tpl>")},setDisplayField:function(a){this.displayField=a;this.generateTpl()},getRefOwner:function(){return this.pickerField||Ext.view.View.prototype.getRefOwner.call(this)},getRefItems:function(){var a=Ext.view.View.prototype.getRefItems.call(this),b=this.pagingToolbar;if(b){a.push(b)}return a},createPagingToolbar:function(){return Ext.widget("pagingtoolbar",{id:this.id+"-paging-toolbar",pageSize:this.pageSize,store:this.dataSource,border:false,ownerCt:this,ownerLayout:this.getComponentLayout()})},getNodeContainer:function(){return this.listEl},refresh:function(){var b=this,a=b.tpl;a.field=b.pickerField;a.store=b.store;Ext.view.View.prototype.refresh.call(this);a.field=a.store=null},bindStore:function(a,b){var c=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(c){c.bindStore(a,b)}},getInnerTpl:function(a){return"{"+a+"}"},onShow:function(){var a=this.pickerField;Ext.view.View.prototype.onShow.call(this);if(a&&a.rendered&&!a.hasFocus){a.focus()}},afterComponentLayout:function(c,a,b,e){var d=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,c,a,b,e);if(d&&d.alignPicker){d.alignPicker()}},onItemClick:function(a){var d=this,e=d.pickerField,b,c;if(!e){return}b=e.valueField;c=d.getSelectionModel().getSelection();if(!e.multiSelect&&c.length){c=c[0];if(c&&e.isEqual(a.get(b),c.get(b))&&e.collapse){e.collapse()}}},onContainerClick:function(b){var a=this.pagingToolbar,c;if(a&&a.rendered&&b.within(a.el)){return false}if(Ext.isIE10||Ext.isIE11){c=this.listWrap.getClientRegion();if(!b.getPoint().isContainedBy(c)){return false}}},onDestroy:function(){this.pagingToolbar=Ext.destroy(this.pagingToolbar);Ext.view.View.prototype.onDestroy.call(this)},privates:{getTargetEl:function(){return this.listEl},getOverflowEl:function(){return this.listWrap},finishRenderChildren:function(){var a=this.pagingToolbar;Ext.view.View.prototype.finishRenderChildren.apply(this,arguments);if(a){a.finishRender()}}}},0,["boundlist"],["component","box","dataview","boundlist"],{component:true,box:true,dataview:true,boundlist:true},["widget.boundlist"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,"BoundList",Ext,"BoundList"],0));(Ext.cmd.derive("Ext.form.field.ComboBox",Ext.form.field.Picker,{alternateClassName:"Ext.form.ComboBox",config:{filters:null,selection:null,valueNotFoundText:null,displayTpl:null,delimiter:", ",displayField:"text"},publishes:["selection"],twoWayBindable:["selection"],triggerCls:"x-form-arrow-trigger",hiddenName:"",collapseOnSelect:false,hiddenDataCls:"x-hidden-display x-form-data-hidden",ariaRole:"combobox",childEls:{hiddenDataEl:true},filtered:false,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:false,triggerAction:"all",allQuery:"",queryParam:"query",queryMode:"remote",queryCaching:true,autoLoadOnValue:false,pageSize:0,anyMatch:false,caseSensitive:false,autoSelect:true,typeAhead:false,typeAheadDelay:250,selectOnTab:true,forceSelection:false,growToLongestValue:true,clearFilterOnBlur:true,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:"sides"},transformInPlace:true,clearValueOnEmpty:true,newlineRe:/\r?\n/g,getGrowWidth:function(){var d=this,g=d.inputEl.dom.value,e,h,j,c,b,k,a;if(d.growToLongestValue){e=d.displayField;h=d.store;j=h.data.length;c=0;for(b=0;b<j;b++){k=h.getAt(b).data[e];a=k.length;if(a>c){c=a;g=k}}}return g},initComponent:function(){var e=this,c=Ext.isDefined,b=e.store,d=e.transform,a,g;if("pinList" in e){e.collapseOnSelect=!e.pinList}if(d){a=Ext.getDom(d);if(a){if(!e.store){b=Ext.Array.map(Ext.Array.from(a.options),function(h){return[h.value,h.text]})}if(!e.name){e.name=a.name}if(!("value" in e)){e.value=a.value}}}if(!e.displayTpl){e.setDisplayTpl(false)}e.bindStore(b||"ext-empty-store",true,true);g=e.queryMode==="local";if(!c(e.queryDelay)){e.queryDelay=g?10:500}if(!c(e.minChars)){e.minChars=g?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);e.doQueryTask=new Ext.util.DelayedTask(e.doRawQuery,e);if(a){if(e.transformInPlace){e.render(a.parentNode,a);delete e.renderTo}Ext.removeNode(a)}},getSubTplMarkup:function(c){var d=this,a="",b=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(d.hiddenName){a='<div id="'+c.id+'-hiddenDataEl" data-ref="hiddenDataEl" class="'+d.hiddenDataCls+'" role="presentation"></div>'}return a+b},applyDisplayTpl:function(b){var a=this;if(!b){b=new Ext.XTemplate('<tpl for=".">{[typeof values === "string" ? values : values["'+a.getDisplayField()+'"]]}<tpl if="xindex < xcount">'+a.getDelimiter()+"</tpl></tpl>");b.auto=true}else{if(!b.isTemplate){b=new Ext.XTemplate(b)}}return b},applyFilters:function(b,c){var a=this;if(b===null||b.isFilterCollection){return b}if(b){if(!c){c=this.getFilters()}c.beginUpdate();c.splice(0,c.length,b);c.each(function(d){d.ownerId=a.id});c.endUpdate()}return c},applyValueNotFoundText:function(a){var b=this,c=b.valueNotFoundRecord||(b.valueNotFoundRecord=new Ext.data.Model());c.set(b.displayField,a);if(b.valueField&&b.displayField!==b.valueField){c.set(b.valueField,a)}return a},getFilters:function(b){var a=this.filters;if(!a&&b!==false){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,b){var c=this;if(b){b.un("endupdate","onEndUpdateFilters",c)}if(a){a.on("endupdate","onEndUpdateFilters",c)}c.onEndUpdateFilters(a)},onEndUpdateFilters:function(e){var d=this,g=d.filtered,c=!!e&&(e.length>0),a,b;if(g||c){d.filtered=c;a=[];b=d.store.getFilters();b.each(function(h){if(h.ownerId===d.id&&!e.contains(h)){a.push(h)}});b.splice(0,a,e.items)}},clearLocalFilter:function(){var b=this,a=b.queryFilter;if(a){b.queryFilter=null;b.changingFilters=true;b.store.removeFilter(a,true);b.changingFilters=false}},completeEdit:function(b){var a=this;Ext.form.field.Picker.prototype.completeEdit.call(this,b);a.doQueryTask.cancel();a.assertValue();if(a.queryFilter&&a.queryMode==="local"&&a.clearFilterOnBlur){a.clearLocalFilter()}},onFocus:function(b){var a=this;Ext.form.field.Picker.prototype.onFocus.call(this,b);if(a.triggerAction!=="all"&&a.queryFilter&&a.queryMode==="local"&&a.clearFilterOnBlur){delete a.lastQuery;a.doRawQuery()}},assertValue:function(){var b=this,d=b.getRawValue(),a=b.getDisplayValue(),e=b.lastSelectedRecords,c,g;if(b.forceSelection){if(b.multiSelect){if(d!==a){b.setRawValue(a)}}else{g=b.findRecordByDisplay(d);if(g){if(b.getDisplayValue([b.getRecordDisplayData(g)])!==a){b.select(g,true);b.fireEvent("select",b,g)}}else{if(e&&(!b.allowBlank||b.rawValue)){b.setValue(e)}else{if(e){delete b.lastSelectedRecords}b.setRawValue("")}}}}else{if((c=b.getValue())&&c==d&&b.displayField!==b.valueField){g=b.findRecordByDisplay(c);if(g){b.select(g,true);b.fireEvent("select",b,g)}}}b.collapse()},onTypeAhead:function(){var d=this,c=d.displayField,b=d.store.findRecord(c,d.getRawValue()),e,a,g;if(b){e=b.get(c);a=e.length;g=d.getRawValue().length;if(g!==0&&g!==a){d.lastMutatedValue=e;d.setRawValue(e);d.selectText(g,e.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){Ext.form.field.Picker.prototype.beforeReset.call(this);this.clearLocalFilter()},onUnbindStore:function(){var b=this,a=b.picker;if(b.queryFilter&&!b.store.isDestroyed){b.clearLocalFilter()}b.pickerSelectionModel.destroy();if(a){a.bindStore(null)}},onBindStore:function(a,c){var e=this,b=e.picker,d,g;if(a){if(a.autoCreated){e.queryMode="local";e.valueField=e.displayField="field1";if(!a.expanded){e.displayField="field2"}if(e.getDisplayTpl().auto){e.setDisplayTpl(null)}}if(!Ext.isDefined(e.valueField)){e.valueField=e.displayField}d={byValue:{rootProperty:"data",unique:false}};d.byValue.property=e.valueField;a.setExtraKeys(d);if(e.displayField===e.valueField){a.byText=a.byValue}else{d.byText={rootProperty:"data",unique:false};d.byText.property=e.displayField;a.setExtraKeys(d)}g={rootProperty:"data",extraKeys:{byInternalId:{property:"internalId"},byValue:{property:e.valueField,rootProperty:"data"}},listeners:{beginupdate:e.onValueCollectionBeginUpdate,endupdate:e.onValueCollectionEndUpdate,scope:e}};e.valueCollection=new Ext.util.Collection(g);e.pickerSelectionModel=new Ext.selection.DataViewModel({mode:e.multiSelect?"SIMPLE":"SINGLE",deselectOnContainerClick:false,enableInitialSelection:false,pruneRemoved:false,selected:e.valueCollection,store:a,listeners:{scope:e,lastselectedchanged:e.updateBindSelection}});if(!c){e.resetToDefault()}if(b){e.pickerSelectionModel.on({scope:e,beforeselect:e.onBeforeSelect,beforedeselect:e.onBeforeDeselect});b.setSelectionModel(e.pickerSelectionModel);if(b.getStore()!==a){b.bindStore(a)}}}},bindStore:function(a,e,b){var d=this,c=d.queryFilter;d.mixins.storeholder.bindStore.call(d,a,b);a=d.getStore();if(a&&c&&!e){a.getFilters().add(c)}if(!b&&a&&!a.isEmptyStore){d.setValueOnData()}},getStoreListeners:function(b){if(!b.isEmptyStore){var c=this,a={datachanged:c.onDataChanged,load:c.onLoad,exception:c.onException,update:c.onStoreUpdate,remove:c.checkValueOnChange};if(!b.getRemoteFilter()){a.filterchange=c.checkValueOnChange}return a}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var b=this,a=b.getStore();if(!b.destroying&&a.isLoaded()){if(b.multiSelect){}else{if(b.forceSelection&&!b.changingFilters&&!b.findRecordByValue(b.value)){if(b.queryMode!="local"&&b.hasFocus){return}b.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.collapse()},onLoad:function(c,b,e){var d=this,a=!d.valueCollection.byValue.get(d.value);if(e&&a&&!(c.lastOptions&&"rawQuery" in c.lastOptions)){d.setValueOnData()}d.checkValueOnChange()},setValueOnData:function(){var a=this;a.setValue(a.value);if(a.isExpanded&&a.getStore().getCount()){a.doAutoSelect()}},doRawQuery:function(){var a=this,b=a.inputEl.dom.value;if(a.multiSelect){b=b.split(a.delimiter).pop()}a.doQuery(b,false,true)},doQuery:function(i,c,h){var e=this,a=e.getStore(),d=a.getFilters(),b=e.beforeQuery({lastQuery:e.lastQuery||"",query:i||"",rawQuery:h,forceAll:c,combo:e,cancel:false}),g;if(b!==false&&!b.cancel){g=!!i&&(!e.queryFilter||e.queryFilter&&(d.indexOf(e.queryFilter)<0));if(e.queryCaching&&!g&&b.query===e.lastQuery){e.getPicker().refresh();e.expand();e.afterQuery(b)}else{e.lastQuery=b.query;if(e.queryMode==="local"){e.doLocalQuery(b)}else{e.doRemoteQuery(b)}}return true}else{e.startCheckChangeTask()}return false},beforeQuery:function(a){var b=this;if(b.fireEvent("beforequery",a)===false){a.cancel=true}else{if(!a.cancel){if(a.query.length<b.minChars&&!a.forceAll){a.cancel=true}}}return a},doLocalQuery:function(b){var d=this,i=b.query,a=d.getStore(),g=i,c;d.clearLocalFilter();if(i){if(d.enableRegEx){try{g=new RegExp(g)}catch(h){g=null}}if(g!==null){d.changingFilters=true;c=d.queryFilter=new Ext.util.Filter({id:d.id+"-filter",anyMatch:d.anyMatch,caseSensitive:d.caseSensitive,root:"data",property:d.displayField,value:g});a.addFilter(c,true);d.changingFilters=false}}if(d.store.getCount()||d.getPicker().emptyText){d.getPicker().refresh();d.expand()}else{d.collapse()}d.afterQuery(b)},doRemoteQuery:function(b){var c=this,a=function(){if(!c.isDestroyed){c.afterQuery(b)}};c.expand();if(c.pageSize){c.loadPage(1,{rawQuery:b.rawQuery,callback:a})}else{c.store.load({params:c.getParams(b.query),rawQuery:b.rawQuery,callback:a})}},afterQuery:function(a){var b=this;if(b.store.getCount()){if(b.typeAhead){b.doTypeAhead(a)}if(a.rawQuery){if(b.picker&&!b.picker.getSelectionModel().hasSelection()){b.doAutoSelect()}}else{b.doAutoSelect()}}b.startCheckChangeTask()},loadPage:function(b,a){this.store.loadPage(b,Ext.apply({params:this.getParams(this.lastQuery)},a))},onPageChange:function(b,a){this.loadPage(a);return false},getParams:function(c){var b={},a=this.queryParam;if(a){b[a]=c}return b},doAutoSelect:function(){var c=this,b=c.picker,a,d=0;if(b&&c.autoSelect&&c.store.getCount()>0){a=c.picker.getSelectionModel();if(a.lastSelected&&a.selected.length){d=a.lastSelected}b.getNavigationModel().setPosition(d)}},doTypeAhead:function(a){var b=this;if(!b.typeAheadTask){b.typeAheadTask=new Ext.util.DelayedTask(b.onTypeAhead,b)}if(a.query.length>a.lastQuery.length||!Ext.String.startsWith(a.lastQuery,a.query)){b.typeAheadTask.delay(b.typeAheadDelay)}},onTriggerClick:function(){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else{if(a.triggerAction==="all"){a.doQuery(a.allQuery,true)}else{if(a.triggerAction==="last"){a.doQuery(a.lastQuery,true)}else{a.doQuery(a.getRawValue(),false,true)}}}}},onFieldMutation:function(h){var d=this,b=h.getKey(),c=b===h.BACKSPACE||b===h.DELETE,g=d.inputEl.dom.value,a=g.length;if(!d.readOnly&&(g!==d.lastMutatedValue||c)&&b!==h.TAB){d.lastMutatedValue=g;if(a&&(h.type!=="keyup"||(!h.isSpecialKey()||c))){d.doQueryTask.delay(d.queryDelay)}else{if(!a&&(!b||c)){++d.suspendCheckChange;if(!d.multiSelect){d.value=null;d.displayTplData=undefined}if(d.clearValueOnEmpty){d.valueCollection.beginUpdate();d.pickerSelectionModel.deselectAll();d.valueCollection.removeAll();d.valueCollection.endUpdate()}d.collapse();if(d.queryFilter){d.clearLocalFilter()}--d.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,h)}}},onDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);a.valueCollection=Ext.destroy(a.valueCollection);Ext.form.field.Picker.prototype.onDestroy.call(this)},onAdded:function(){var a=this;Ext.form.field.Picker.prototype.onAdded.apply(this,arguments);if(a.picker){a.picker.ownerCt=a.up("[floating]");a.picker.registerWithOwnerCt()}},createPicker:function(){var c=this,b,a=Ext.apply({xtype:"boundlist",pickerField:c,selectionModel:c.pickerSelectionModel,floating:true,hidden:true,store:c.getPickerStore(),displayField:c.displayField,preserveScrollOnRefresh:true,pageSize:c.pageSize,tpl:c.tpl},c.listConfig,c.defaultListConfig);b=c.picker=Ext.widget(a);if(c.pageSize){b.pagingToolbar.on("beforechange",c.onPageChange,c)}if(!b.initialConfig.maxHeight){b.on({beforeshow:c.onBeforePickerShow,scope:c})}b.getSelectionModel().on({beforeselect:c.onBeforeSelect,beforedeselect:c.onBeforeDeselect,scope:c});b.getNavigationModel().navigateOnSpace=false;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(a){var b=this,d=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-d-b.getHeight();a.maxHeight=Math.max(d,c)-5},onBeforeSelect:function(c,a,b){return this.fireEvent("beforeselect",this,a,b)},onBeforeDeselect:function(c,a,b){return this.fireEvent("beforedeselect",this,a,b)},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(a){var b=this,c;if(!b.ignoreNextSelection){b.ignoreNextSelection=true;c=b.getPicker().getSelectionModel();if(a){c.select(a);b.hasHadSelection=true}else{c.deselectAll()}b.ignoreNextSelection=false}},updateBindSelection:function(a,c){var d=this,b=null;if(!d.ignoreNextSelection){d.ignoreNextSelection=true;if(c.length){b=a.getLastSelected();d.hasHadSelection=true}if(d.hasHadSelection){d.setSelection(b)}d.ignoreNextSelection=false}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var d=this,c=d.store,e=d.valueCollection.getRange(),b=e[0],a=e.length;d.updateBindSelection(d.pickerSelectionModel,e);if(d.isSelectionUpdating()){return}Ext.suspendLayouts();d.lastSelection=e;if(a){d.lastSelectedRecords=e}d.updateValue();if(a&&((!d.multiSelect&&c.contains(b))||d.collapseOnSelect||!c.getCount())){d.updatingValue=true;d.collapse();d.updatingValue=false}Ext.resumeLayouts(true);if(a&&!d.suspendCheckChange){if(!d.multiSelect){e=b}d.fireEvent("select",d,e)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var a=this.getPicker().getNavigationModel();if(a){a.enable()}this.doAutoSelect()},onCollapse:function(){var a=this.getPicker().getNavigationModel();if(a){a.disable()}if(this.updatingValue){this.doQueryTask.cancel()}},select:function(d,a){var c=this,b=c.picker,e;if(d&&d.isModel&&a===true&&b){e=!b.getSelectionModel().isSelected(d)}if(!e){c.suspendEvent("select")}c.setValue(d);c.resumeEvent("select")},findRecord:function(d,c){var b=this.store,a=b.findExact(d,c);return a!==-1?b.getAt(a):false},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=false;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=false;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,true)}},setValue:function(c){var b=this,d,a;if(b.hasFocus){d=b.getBind();a=d&&d.value;if(a&&a.syncing){if((Ext.isEmpty(c)&&Ext.isEmpty(b.value))||c===b.value){return b}else{if(Ext.isArray(c)&&Ext.isArray(b.value)&&Ext.Array.equals(c,b.value)){return b}}}}else{b.lastSelectedRecords=null}if(c!=null){b.doSetValue(c)}else{b.suspendEvent("select");b.valueCollection.beginUpdate();b.pickerSelectionModel.deselectAll();b.valueCollection.endUpdate();b.resumeEvent("select")}return b},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(q,m){var w=this,h=w.getStore(),j=h.getModel(),t=[],g=[],s=w.autoLoadOnValue,e=h.getCount()>0||h.isLoaded(),a=h.hasPendingLoad(),n=s&&!e&&!a,l=w.forceSelection,p=w.pickerSelectionModel,b=w.displayField===w.valueField,o=h.isEmptyStore,k=w.lastSelection,u,v,c,r,d,x;if(a||n||!e||o){if(!q.isModel){if(m){w.value=Ext.Array.from(w.value).concat(q)}else{w.value=q}w.setHiddenValue(w.value);w.setRawValue(b?q:"");if(b&&!Ext.isEmpty(q)&&w.inputEl&&w.emptyText){w.inputEl.removeCls(w.emptyUICls);w.valueContainsPlaceholder=false}}if(n&&!o){h.load()}if(!q.isModel||o){return w}}q=m?Ext.Array.from(w.value).concat(q):Ext.Array.from(q);for(u=0,v=q.length;u<v;u++){c=q[u];if(!c||!c.isModel){c=w.findRecordByValue(x=c);if(!c){c=w.valueCollection.find(w.valueField,x)}}if(!c){if(!l){if(!c&&q[u]){r={};r[w.displayField]=q[u];if(w.valueField&&w.displayField!==w.valueField){r[w.valueField]=q[u]}c=new j(r)}}else{if(w.valueNotFoundRecord){c=w.valueNotFoundRecord}}}if(c){t.push(c);g.push(c.get(w.valueField))}}if(k){v=k.length;if(v===t.length){for(u=0;!d&&u<v;u++){if(Ext.Array.indexOf(w.lastSelection,t[u])===-1){d=true}}}else{d=true}}else{d=t.length}if(d){w.suspendEvent("select");w.valueCollection.beginUpdate();if(t.length){p.select(t,false)}else{p.deselectAll()}w.valueCollection.endUpdate();w.resumeEvent("select")}else{w.updateValue()}if(w.inputEl&&w.emptyText){w.inputEl.removeCls(w.emptyCls);w.valueContainsPlaceholder=false}w.applyEmptyText();return w},updateValue:function(){var h=this,d=h.valueCollection.getRange(),e=d.length,j=[],a=h.displayTplData||(h.displayTplData=[]),k=h.inputEl,b,c,g;a.length=0;for(b=0;b<e;b++){c=d[b];a.push(h.getRecordDisplayData(c));if(c!==h.valueNotFoundRecord){j.push(c.get(h.valueField))}}h.setHiddenValue(j);h.value=h.multiSelect?j:j[0];if(!Ext.isDefined(h.value)){h.value=undefined}h.displayTplData=a;if(k&&h.emptyText&&!Ext.isEmpty(h.value)){k.removeCls(h.emptyCls)}g=h.getDisplayValue();h.setRawValue(g);h.checkChange();if(k&&h.typeAhead&&h.hasFocus){h.selectText(g.length)}h.applyEmptyText()},setHiddenValue:function(j){var e=this,a=e.hiddenName,d,b,k,h,g,c;if(!e.hiddenDataEl||!a){return}j=Ext.Array.from(j);b=e.hiddenDataEl.dom;k=b.childNodes;h=k[0];g=j.length;c=k.length;if(!h&&g>0){e.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:"input",type:"hidden",name:a}));c=1;h=b.firstChild}while(c>g){b.removeChild(k[0]);--c}while(c<g){b.appendChild(h.cloneNode(true));++c}for(d=0;d<g;d++){k[d].value=j[d]}},getDisplayValue:function(a){a=a||this.displayTplData;var b=this.getDisplayTpl().apply(a)||"";return b.replace(this.newlineRe,"")},getRecordDisplayData:function(a){return a.data},getValue:function(){var c=this,a=c.getStore(),b=c.picker,e=c.getRawValue(),d=c.value;if(!a.isEmptyStore&&c.getDisplayValue()!==e){c.displayTplData=undefined;if(b){c.valueCollection.suspendEvents();b.getSelectionModel().deselectAll();c.valueCollection.resumeEvents();c.lastSelection=null}if(a.isLoaded()&&(c.multiSelect||c.forceSelection)){d=c.value=undefined}else{d=c.value=e}}c.value=d==null?null:d;return c.value},getSubmitValue:function(){var a=this.getValue();if(Ext.isEmpty(a)){a=""}return a},isEqual:function(e,d){var b=Ext.Array.from,c,a;e=b(e);d=b(d);a=e.length;if(a!==d.length){return false}for(c=0;c<a;c++){if(d[c]!==e[c]){return false}}return true},clearValue:function(){this.setValue(null)},onEditorTab:function(b){var a=this.getPicker().getNavigationModel();if(this.selectOnTab&&a&&this.isExpanded){a.selectHighlighted(b)}}},0,["combobox","combo"],["component","box","field","textfield","pickerfield","combobox","combo"],{component:true,box:true,field:true,textfield:true,pickerfield:true,combobox:true,combo:true},["widget.combo","widget.combobox"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.form.field,"ComboBox",Ext.form,"ComboBox"],0));(Ext.cmd.derive("Ext.picker.Month",Ext.Component,{alternateClassName:"Ext.MonthPicker",isMonthPicker:true,focusable:true,childEls:["bodyEl","prevEl","nextEl","monthEl","yearEl"],renderTpl:['<div id="{id}-bodyEl" data-ref="bodyEl" class="{baseCls}-body">','<div id="{id}-monthEl" data-ref="monthEl" class="{baseCls}-months">','<tpl for="months">','<div class="{parent.baseCls}-item {parent.baseCls}-month">','<a style="{parent.monthStyle}" role="button" hidefocus="on" class="{parent.baseCls}-item-inner">{.}</a>',"</div>","</tpl>","</div>",'<div id="{id}-yearEl" data-ref="yearEl" class="{baseCls}-years">','<div class="{baseCls}-yearnav">','<div class="{baseCls}-yearnav-button-ct">','<a id="{id}-prevEl" data-ref="prevEl" class="{baseCls}-yearnav-button {baseCls}-yearnav-prev" hidefocus="on" role="button"></a>',"</div>",'<div class="{baseCls}-yearnav-button-ct">','<a id="{id}-nextEl" data-ref="nextEl" class="{baseCls}-yearnav-button {baseCls}-yearnav-next" hidefocus="on" role="button"></a>',"</div>","</div>",'<tpl for="years">','<div class="{parent.baseCls}-item {parent.baseCls}-year">','<a hidefocus="on" class="{parent.baseCls}-item-inner" role="button">{.}</a>',"</div>","</tpl>","</div>",'<div class="x-clear"></div>','<tpl if="showButtons">','<div class="{baseCls}-buttons">{%',"var me=values.$comp, okBtn=me.okBtn, cancelBtn=me.cancelBtn;","okBtn.ownerLayout = cancelBtn.ownerLayout = me.componentLayout;","okBtn.ownerCt = cancelBtn.ownerCt = me;","Ext.DomHelper.generateMarkup(okBtn.getRenderTree(), out);","Ext.DomHelper.generateMarkup(cancelBtn.getRenderTree(), out);","%}</div>","</tpl>","</div>"],okText:"OK",cancelText:"Cancel",baseCls:"x-monthpicker",showButtons:true,measureWidth:35,measureMaxHeight:20,smallCls:"x-monthpicker-small",totalYears:10,yearOffset:5,monthOffset:6,initComponent:function(){var a=this;a.selectedCls=a.baseCls+"-selected";if(a.small){a.addCls(a.smallCls)}a.setValue(a.value);a.activeYear=a.getYear(new Date().getFullYear()-4,-4);if(a.showButtons){a.okBtn=new Ext.button.Button({text:a.okText,handler:a.onOkClick,scope:a});a.cancelBtn=new Ext.button.Button({text:a.cancelText,handler:a.onCancelClick,scope:a})}Ext.Component.prototype.initComponent.call(this)},beforeRender:function(){var g=this,c=0,b=[],a=Ext.Date.getShortMonthName,e=g.monthOffset,h=g.monthMargin,d="";if(g.padding&&!g.width){g.cacheWidth()}Ext.Component.prototype.beforeRender.call(this);for(;c<e;++c){b.push(a(c),a(c+e))}if(Ext.isDefined(h)){d="margin: 0 "+h+"px;"}Ext.apply(g.renderData,{months:b,years:g.getYears(),showButtons:g.showButtons,monthStyle:d})},cacheWidth:function(){var a=this,b=a.parseBox(a.padding),c=Ext.getBody().createChild({cls:a.baseCls+" "+a.borderBoxCls,style:"position:absolute;top:-1000px;left:-1000px;",html:"&nbsp;"});a.self.prototype.width=c.getWidth()+b.left+b.right;c.destroy()},afterRender:function(){var b=this,a=b.bodyEl;Ext.Component.prototype.afterRender.call(this);if(b.up("[floating=true]")){b.el.on("mousedown",b.onElClick,b)}b.mon(a,"click",b.onBodyClick,b);b.mon(a,"dblclick",b.onBodyClick,b);b.years=a.select("."+b.baseCls+"-year a");b.months=a.select("."+b.baseCls+"-month a");b.backRepeater=new Ext.util.ClickRepeater(b.prevEl,{handler:Ext.Function.bind(b.adjustYear,b,[-b.totalYears])});b.prevEl.addClsOnOver(b.baseCls+"-yearnav-prev-over");b.nextRepeater=new Ext.util.ClickRepeater(b.nextEl,{handler:Ext.Function.bind(b.adjustYear,b,[b.totalYears])});b.nextEl.addClsOnOver(b.baseCls+"-yearnav-next-over");b.updateBody();if(!Ext.isDefined(b.monthMargin)){Ext.picker.Month.prototype.monthMargin=b.calculateMonthMargin()}},calculateMonthMargin:function(){var c=this,a=c.months,d=a.first(),b=d.getMargin("l");while(b&&c.getLargest()>c.measureMaxHeight){--b;a.setStyle("margin","0 "+b+"px")}return b},getLargest:function(a){var b=0;this.months.each(function(d){var c=d.getHeight();if(c>b){b=c}});return b},setValue:function(c){var b=this,d=b.activeYear,a;if(!c){b.value=[null,null]}else{if(Ext.isDate(c)){b.value=[c.getMonth(),c.getFullYear()]}else{b.value=[c[0],c[1]]}}if(b.rendered){a=b.value[1];if(a!==null){if((a<d||a>d+b.yearOffset)){b.activeYear=a-b.yearOffset+1}}b.updateBody()}return b},getValue:function(){return this.value},hasSelection:function(){var a=this.value;return a[0]!==null&&a[1]!==null},getYears:function(){var d=this,e=d.yearOffset,g=d.activeYear,a=g+e,c=g,b=[];for(;c<a;++c){b.push(c,c+e)}return b},updateBody:function(){var i=this,e=i.years,b=i.months,m=i.getYears(),n=i.selectedCls,k=i.getYear(null),g=i.value[0],l=i.monthOffset,h,d,j,a,c;if(i.rendered){e.removeCls(n);b.removeCls(n);d=e.elements;a=d.length;for(j=0;j<a;j++){c=Ext.fly(d[j]);h=m[j];c.dom.innerHTML=h;if(h===k){c.addCls(n)}}if(g!==null){if(g<l){g=g*2}else{g=(g-l)*2+1}b.item(g).addCls(n)}}},getYear:function(a,c){var b=this.value[1];c=c||0;return b===null?a:b+c},onElClick:function(a){a.stopEvent()},onBodyClick:function(d,b){var c=this,a=d.type==="dblclick";if(d.getTarget("."+c.baseCls+"-month")){d.stopEvent();c.onMonthClick(b,a)}else{if(d.getTarget("."+c.baseCls+"-year")){d.stopEvent();c.onYearClick(b,a)}}},adjustYear:function(a){if(typeof a!=="number"){a=this.totalYears}this.activeYear+=a;this.updateBody()},onOkClick:function(){this.fireEvent("okclick",this,this.value)},onCancelClick:function(){this.fireEvent("cancelclick",this)},onMonthClick:function(c,a){var b=this;b.value[0]=b.resolveOffset(b.months.indexOf(c),b.monthOffset);b.updateBody();b.fireEvent("month"+(a?"dbl":"")+"click",b,b.value);b.fireEvent("select",b,b.value)},onYearClick:function(c,a){var b=this;b.value[1]=b.activeYear+b.resolveOffset(b.years.indexOf(c),b.yearOffset);b.updateBody();b.fireEvent("year"+(a?"dbl":"")+"click",b,b.value);b.fireEvent("select",b,b.value)},resolveOffset:function(a,b){if(a%2===0){return(a/2)}else{return b+Math.floor(a/2)}},beforeDestroy:function(){var a=this;a.years=a.months=null;Ext.destroyMembers(a,"backRepeater","nextRepeater","okBtn","cancelBtn");Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){Ext.destroyMembers(this,"okBtn","cancelBtn");Ext.Component.prototype.onDestroy.call(this)},privates:{finishRenderChildren:function(){var a=this;Ext.Component.prototype.finishRenderChildren.apply(this,arguments);if(this.showButtons){a.okBtn.finishRender();a.cancelBtn.finishRender()}},getFocusEl:function(){return null}}},0,["monthpicker"],["component","box","monthpicker"],{component:true,box:true,monthpicker:true},["widget.monthpicker"],0,[Ext.picker,"Month",Ext,"MonthPicker"],0));(Ext.cmd.derive("Ext.picker.Date",Ext.Component,{alternateClassName:"Ext.DatePicker",isDatePicker:true,focusable:true,childEls:["innerEl","eventEl","prevEl","nextEl","middleBtnEl","footerEl"],border:true,renderTpl:['<div id="{id}-innerEl" data-ref="innerEl">','<div class="{baseCls}-header">','<div id="{id}-prevEl" data-ref="prevEl" class="{baseCls}-prev {baseCls}-arrow" role="button" title="{prevText}"></div>','<div id="{id}-middleBtnEl" data-ref="middleBtnEl" class="{baseCls}-month" role="heading">{%this.renderMonthBtn(values, out)%}</div>','<div id="{id}-nextEl" data-ref="nextEl" class="{baseCls}-next {baseCls}-arrow" role="button" title="{nextText}"></div>',"</div>",'<table role="grid" id="{id}-eventEl" data-ref="eventEl" class="{baseCls}-inner" {%','if (values.$comp.focusable) {out.push("tabindex=\\"0\\"");}','%} cellspacing="0">','<thead><tr role="row">','<tpl for="dayNames">','<th role="columnheader" class="{parent.baseCls}-column-header" aria-label="{.}">','<div role="presentation" class="{parent.baseCls}-column-header-inner">{.:this.firstInitial}</div>',"</th>","</tpl>","</tr></thead>",'<tbody><tr role="row">','<tpl for="days">',"{#:this.isEndOfWeek}",'<td role="gridcell">','<div hidefocus="on" class="{parent.baseCls}-date"></div>',"</td>","</tpl>","</tr></tbody>","</table>",'<tpl if="showToday">','<div id="{id}-footerEl" data-ref="footerEl" role="presentation" class="{baseCls}-footer">{%this.renderTodayBtn(values, out)%}</div>',"</tpl>","</div>",{firstInitial:function(a){return Ext.picker.Date.prototype.getDayInitial(a)},isEndOfWeek:function(b){b--;var a=b%7===0&&b!==0;return a?'</tr><tr role="row">':""},renderTodayBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.todayBtn.getRenderTree(),b)},renderMonthBtn:function(a,b){Ext.DomHelper.generateMarkup(a.$comp.monthBtn.getRenderTree(),b)}}],todayText:"Today",ariaTitle:"Date Picker: {0}",ariaTitleDateFormat:"F d",todayTip:"{0} (Spacebar)",minText:"This date is before the minimum date",maxText:"This date is after the maximum date",disabledDaysText:"Disabled",disabledDatesText:"Disabled",nextText:"Next Month (Control+Right)",prevText:"Previous Month (Control+Left)",monthYearText:"Choose a month (Control+Up/Down to move years)",monthYearFormat:"F Y",startDay:0,showToday:true,disableAnim:false,baseCls:"x-datepicker",longDayFormat:"F d, Y",initHour:12,numDays:42,initComponent:function(){var b=this,a=Ext.Date.clearTime;b.selectedCls=b.baseCls+"-selected";b.disabledCellCls=b.baseCls+"-disabled";b.prevCls=b.baseCls+"-prevday";b.activeCls=b.baseCls+"-active";b.cellCls=b.baseCls+"-cell";b.nextCls=b.baseCls+"-prevday";b.todayCls=b.baseCls+"-today";if(!b.format){b.format=Ext.Date.defaultFormat}if(!b.dayNames){b.dayNames=Ext.Date.dayNames}b.dayNames=b.dayNames.slice(b.startDay).concat(b.dayNames.slice(0,b.startDay));Ext.Component.prototype.initComponent.call(this);b.value=b.value?a(b.value,true):a(new Date());b.initDisabledDays()},getRefOwner:function(){return this.pickerField||Ext.Component.prototype.getRefOwner.call(this)},getRefItems:function(){var a=[],c=this.monthBtn,b=this.todayBtn;if(c){a.push(c)}if(b){a.push(b)}return a},beforeRender:function(){var b=this,c=new Array(b.numDays),a=Ext.Date.format(new Date(),b.format);if(b.padding&&!b.width){b.cacheWidth()}b.monthBtn=new Ext.button.Split({ownerCt:b,ownerLayout:b.getComponentLayout(),text:"",tooltip:b.monthYearText,listeners:{click:b.doShowMonthPicker,arrowclick:b.doShowMonthPicker,scope:b}});if(b.showToday){b.todayBtn=new Ext.button.Button({ownerCt:b,ownerLayout:b.getComponentLayout(),text:Ext.String.format(b.todayText,a),tooltip:Ext.String.format(b.todayTip,a),tooltipType:"title",handler:b.selectToday,scope:b})}Ext.Component.prototype.beforeRender.call(this);Ext.applyIf(b,{renderData:{}});Ext.apply(b.renderData,{dayNames:b.dayNames,showToday:b.showToday,prevText:b.prevText,nextText:b.nextText,days:c});b.protoEl.unselectable()},cacheWidth:function(){var a=this,b=a.parseBox(a.padding),c=Ext.getBody().createChild({cls:a.baseCls+" "+a.borderBoxCls,style:"position:absolute;top:-1000px;left:-1000px;"});a.self.prototype.width=c.getWidth()+b.left+b.right;c.destroy()},onRender:function(b,a){var c=this,d="div."+c.baseCls+"-date";Ext.Component.prototype.onRender.apply(this,arguments);c.cells=c.eventEl.select("tbody td");c.textNodes=c.eventEl.query(d);c.eventEl.set({"aria-labelledby":c.monthBtn.id});c.mon(c.eventEl,{scope:c,mousewheel:c.handleMouseWheel,click:{fn:c.handleDateClick,delegate:d}})},initEvents:function(){var c=this,d=c.pickerField,a=Ext.Date,b=a.DAY;Ext.Component.prototype.initEvents.call(this);if(!c.focusable){c.el.on({mousedown:c.onMouseDown})}c.monthBtn.el.on("mousedown",c.onMouseDown,c);c.prevRepeater=new Ext.util.ClickRepeater(c.prevEl,{handler:c.showPrevMonth,scope:c,preventDefault:true,stopDefault:true});c.nextRepeater=new Ext.util.ClickRepeater(c.nextEl,{handler:c.showNextMonth,scope:c,preventDefault:true,stopDefault:true});c.keyNav=new Ext.util.KeyNav(d?d.inputEl:c.eventEl,Ext.apply({scope:c,capture:true,left:function(g){if(g.ctrlKey){g.preventDefault();c.showPrevMonth()}else{c.update(a.add(c.activeDate,b,-1))}if(d){d.onArrowKey("left",g)}},right:function(g){if(g.ctrlKey){g.preventDefault();c.showNextMonth()}else{c.update(a.add(c.activeDate,b,1))}if(d){d.onArrowKey("right",g)}},up:function(g){if(g.ctrlKey){c.showNextYear()}else{c.update(a.add(c.activeDate,b,-7))}if(d){d.onArrowKey("up",g)}},down:function(g){if(g.ctrlKey){c.showPrevYear()}else{c.update(a.add(c.activeDate,b,7))}if(d){d.onArrowKey("down",g)}},pageUp:function(g){if(g.ctrlKey){c.showPrevYear()}else{c.showPrevMonth()}},pageDown:function(g){if(g.ctrlKey){c.showNextYear()}else{c.showNextMonth()}},tab:function(g){c.handleTabClick(g);return true},enter:function(g){c.handleDateClick(g,c.activeCell.firstChild)},space:function(){c.setValue(new Date(c.activeCell.firstChild.dateValue));var e=c.startValue,g=c.value,h;if(d){h=d.getValue();if(h&&e&&h.getTime()===g.getTime()){d.setValue(e)}else{d.setValue(g)}}},home:function(g){c.update(a.getFirstDateOfMonth(c.activeDate))},end:function(g){c.update(a.getLastDateOfMonth(c.activeDate))}},c.keyNavConfig));if(c.disabled){c.syncDisabled(true,true)}c.update(c.value)},onMouseDown:function(a){a.preventDefault()},handleTabClick:function(d){var c=this,a=c.getSelectedDate(c.activeDate),b=c.handler;if(!c.disabled&&a.dateValue&&!Ext.fly(a.parentNode).hasCls(c.disabledCellCls)){c.setValue(new Date(a.dateValue));c.fireEvent("select",c,c.value);if(b){b.call(c.scope||c,c,c.value)}c.onSelect()}},getSelectedDate:function(a){var d=this,i=a.getTime(),j=d.cells,k=d.selectedCls,g=j.elements,e=g.length,h,b;j.removeCls(k);for(b=0;b<e;b++){h=g[b].firstChild;if(h.dateValue===i){return h}}return null},initDisabledDays:function(){var h=this,b=h.disabledDates,g="(?:",a,i,c,e;if(!h.disabledDatesRE&&b){a=b.length-1;c=b.length;for(i=0;i<c;i++){e=b[i];g+=Ext.isDate(e)?"^"+Ext.String.escapeRegex(Ext.Date.dateFormat(e,h.format))+"$":e;if(i!==a){g+="|"}}h.disabledDatesRE=new RegExp(g+")")}},setDisabledDates:function(a){var b=this;if(Ext.isArray(a)){b.disabledDates=a;b.disabledDatesRE=null}else{b.disabledDatesRE=a}b.initDisabledDays();b.update(b.value,true);return b},setDisabledDays:function(a){this.disabledDays=a;return this.update(this.value,true)},setMinDate:function(a){this.minDate=a;return this.update(this.value,true)},setMaxDate:function(a){this.maxDate=a;return this.update(this.value,true)},setValue:function(a){this.value=Ext.Date.clearTime(a||new Date(),true);return this.update(this.value)},getValue:function(){return this.value},getDayInitial:function(a){return a.substr(0,1)},onEnable:function(){var a=this;Ext.Component.prototype.onEnable.call(this);a.syncDisabled(false,true);a.update(a.activeDate)},onShow:function(){var a=this;Ext.Component.prototype.onShow.call(this);a.syncDisabled(false);if(a.pickerField){a.startValue=a.pickerField.getValue()}},onHide:function(){Ext.Component.prototype.onHide.call(this);this.syncDisabled(true)},onDisable:function(){Ext.Component.prototype.onDisable.call(this);this.syncDisabled(true,true)},getActive:function(){return this.activeDate||this.value},runAnimation:function(c){var b=this.monthPicker,a={duration:200,preventHide:c,callback:function(){b.setVisible(!c)}};if(c){b.el.slideOut("t",a)}else{b.el.slideIn("t",a)}},hideMonthPicker:function(a){var c=this,b=c.monthPicker;if(b&&b.isVisible()){if(c.shouldAnimate(a)){c.runAnimation(true)}else{b.hide()}}return c},doShowMonthPicker:function(){this.showMonthPicker()},doHideMonthPicker:function(){this.hideMonthPicker()},showMonthPicker:function(a){var d=this,c=d.el,b;if(d.rendered&&!d.disabled){b=d.createMonthPicker();if(!b.isVisible()){b.setValue(d.getActive());b.setSize(c.getSize());b.floatParent=null;b.setPosition(-c.getBorderWidth("l"),-c.getBorderWidth("t"));if(d.shouldAnimate(a)){d.runAnimation(false)}else{b.show()}}}return d},shouldAnimate:function(a){return Ext.isDefined(a)?a:!this.disableAnim},createMonthPicker:function(){var b=this,a=b.monthPicker;if(!a){b.monthPicker=a=new Ext.picker.Month({renderTo:b.el,ownerCmp:b,floating:true,padding:b.padding,shadow:false,small:b.showToday===false,listeners:{scope:b,cancelclick:b.onCancelClick,okclick:b.onOkClick,yeardblclick:b.onOkClick,monthdblclick:b.onOkClick}});if(!b.disableAnim){a.el.setStyle("display","none")}a.hide();b.on("beforehide",b.doHideMonthPicker,b)}return a},onOkClick:function(b,e){var d=this,g=e[0],c=e[1],a=new Date(c,g,d.getActive().getDate());if(a.getMonth()!==g){a=Ext.Date.getLastDateOfMonth(new Date(c,g,1))}d.setValue(a);d.hideMonthPicker()},onCancelClick:function(){this.selectedUpdate(this.activeDate);this.hideMonthPicker()},showPrevMonth:function(a){return this.setValue(Ext.Date.add(this.activeDate,Ext.Date.MONTH,-1))},showNextMonth:function(a){return this.setValue(Ext.Date.add(this.activeDate,Ext.Date.MONTH,1))},showPrevYear:function(){return this.setValue(Ext.Date.add(this.activeDate,Ext.Date.YEAR,-1))},showNextYear:function(){return this.setValue(Ext.Date.add(this.activeDate,Ext.Date.YEAR,1))},handleMouseWheel:function(a){a.stopEvent();if(!this.disabled){var b=a.getWheelDelta();if(b>0){this.showPrevMonth()}else{if(b<0){this.showNextMonth()}}}},handleDateClick:function(d,a){var c=this,b=c.handler;d.stopEvent();if(!c.disabled&&a.dateValue&&!Ext.fly(a.parentNode).hasCls(c.disabledCellCls)){c.setValue(new Date(a.dateValue));c.fireEvent("select",c,c.value);if(b){b.call(c.scope||c,c,c.value)}c.onSelect()}},onSelect:function(){if(this.hideOnSelect){this.hide()}},selectToday:function(){var c=this,a=c.todayBtn,b=c.handler;if(a&&!a.disabled){c.setValue(Ext.Date.clearTime(new Date()));c.fireEvent("select",c,c.value);if(b){b.call(c.scope||c,c,c.value)}c.onSelect()}return c},selectedUpdate:function(e){var h=this,g=e.getTime(),d=h.cells,b=h.selectedCls,j,i=d.getCount(),a;a=h.activeCell;if(a){Ext.fly(a).removeCls(b);a.setAttribute("aria-selected",false)}for(j=0;j<i;j++){a=d.item(j);if(h.textNodes[j].dateValue===g){h.activeCell=a.dom;h.eventEl.dom.setAttribute("aria-activedescendant",a.dom.id);a.dom.setAttribute("aria-selected",true);a.addCls(b);h.fireEvent("highlightitem",h,a);break}}},fullUpdate:function(z){var D=this,d=D.cells.elements,c=D.textNodes,F=D.disabledCellCls,m=Ext.Date,v=0,C=0,k=+m.clearTime(z,true),y=+m.clearTime(new Date()),t=D.minDate?m.clearTime(D.minDate,true):Number.NEGATIVE_INFINITY,u=D.maxDate?m.clearTime(D.maxDate,true):Number.POSITIVE_INFINITY,B=D.disabledDatesRE,s=D.disabledDatesText,G=D.disabledDays?D.disabledDays.join(""):false,A=D.disabledDaysText,w=D.format,j=m.getDaysInMonth(z),p=m.getFirstDateOfMonth(z),e=p.getDay()-D.startDay,x=m.add(z,m.MONTH,-1),o=D.ariaTitleDateFormat,h,q,a,E,l,n,b,g,r;if(e<0){e+=7}j+=e;h=m.getDaysInMonth(x)-e;q=new Date(x.getFullYear(),x.getMonth(),h,D.initHour);if(D.showToday){E=m.clearTime(new Date());a=(E<t||E>u||(B&&w&&B.test(m.dateFormat(E,w)))||(G&&G.indexOf(E.getDay())!==-1));D.todayDisabled=a;if(!D.disabled){D.todayBtn.setDisabled(a)}}l=function(I,H){var i=d[I],J=D.todayCellIndex||null;r=+m.clearTime(q,true);i.setAttribute("aria-label",m.format(q,o));i.firstChild.dateValue=r;if(r===y){H+=" "+D.todayCls;i.firstChild.title=D.todayText;D.todayCellIndex=I;D.todayElSpan=Ext.DomHelper.append(i.firstChild,{tag:"span",cls:"x-hidden-clip",html:D.todayText},true)}else{if(J===I){i.firstChild.removeAttribute("title");delete D.todayCellIndex}}if(r===k){D.activeCell=i;D.eventEl.dom.setAttribute("aria-activedescendant",i.id);i.setAttribute("aria-selected",true);H+=" "+D.selectedCls;D.fireEvent("highlightitem",D,i)}else{i.setAttribute("aria-selected",false)}if(r<t){H+=" "+F;i.setAttribute("aria-label",D.minText)}else{if(r>u){H+=" "+F;i.setAttribute("aria-label",D.maxText)}else{if(G&&G.indexOf(q.getDay())!==-1){i.setAttribute("aria-label",A);H+=" "+F}else{if(B&&w){g=m.dateFormat(q,w);if(B.test(g)){i.setAttribute("aria-label",s.replace("%0",g));H+=" "+F}}}}}i.className=H+" "+D.cellCls};for(;v<D.numDays;++v){if(v<e){n=(++h);b=D.prevCls}else{if(v>=j){n=(++C);b=D.nextCls}else{n=v-e+1;b=D.activeCls}}c[v].innerHTML=n;q.setDate(q.getDate()+1);l(v,b)}D.monthBtn.setText(Ext.Date.format(z,D.monthYearFormat))},update:function(a,d){var b=this,c=b.activeDate;if(b.rendered){b.activeDate=a;if(!d&&c&&b.el&&c.getMonth()===a.getMonth()&&c.getFullYear()===a.getFullYear()){b.selectedUpdate(a,c)}else{b.fullUpdate(a,c)}}return b},beforeDestroy:function(){var a=this;if(a.rendered){Ext.destroy(a.keyNav,a.monthPicker,a.monthBtn,a.nextRepeater,a.prevRepeater,a.todayBtn,a.todayElSpan);delete a.textNodes;delete a.cells.elements}Ext.Component.prototype.beforeDestroy.call(this)},privates:{finishRenderChildren:function(){var a=this;Ext.Component.prototype.finishRenderChildren.call(this);a.monthBtn.finishRender();if(a.showToday){a.todayBtn.finishRender()}},getFocusEl:function(){return this.eventEl},syncDisabled:function(c,b){var e=this,a=e.keyNav,d=e.todayBtn;if(a){a.setDisabled(c);e.prevRepeater.setDisabled(c);e.nextRepeater.setDisabled(c)}if(b&&d){d.setDisabled(e.todayDisabled||c)}}}},0,["datepicker"],["component","box","datepicker"],{component:true,box:true,datepicker:true},["widget.datepicker"],0,[Ext.picker,"Date",Ext,"DatePicker"],0));(Ext.cmd.derive("Ext.form.field.Date",Ext.form.field.Picker,{alternateClassName:["Ext.form.DateField","Ext.form.Date"],format:"m/d/Y",altFormats:"m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j",disabledDaysText:"Disabled",disabledDatesText:"Disabled",minText:"The date in this field must be equal to or after {0}",maxText:"The date in this field must be equal to or before {0}",invalidText:"{0} is not a valid date - it must be in the format {1}",triggerCls:"x-form-date-trigger",showToday:true,useStrict:undefined,initTime:"12",initTimeFormat:"H",matchFieldWidth:false,startDay:0,valuePublishEvent:["select","blur"],componentCls:"x-form-field-date",initComponent:function(){var d=this,b=Ext.isString,c,a;c=d.minValue;a=d.maxValue;if(b(c)){d.minValue=d.parseDate(c)}if(b(a)){d.maxValue=d.parseDate(a)}d.disabledDatesRE=null;d.initDisabledDays();Ext.form.field.Picker.prototype.initComponent.call(this)},initValue:function(){var a=this,b=a.value;if(Ext.isString(b)){a.value=a.rawToValue(b)}Ext.form.field.Picker.prototype.initValue.call(this)},initDisabledDays:function(){if(this.disabledDates){var b=this.disabledDates,a=b.length-1,g="(?:",h,e=b.length,c;for(h=0;h<e;h++){c=b[h];g+=Ext.isDate(c)?"^"+Ext.String.escapeRegex(c.dateFormat(this.format))+"$":c;if(h!==a){g+="|"}}this.disabledDatesRE=new RegExp(g+")")}},setDisabledDates:function(c){var b=this,a=b.picker;b.disabledDates=c;b.initDisabledDays();if(a){a.setDisabledDates(b.disabledDatesRE)}},setDisabledDays:function(b){var a=this.picker;this.disabledDays=b;if(a){a.setDisabledDays(b)}},setMinValue:function(d){var b=this,a=b.picker,c=(Ext.isString(d)?b.parseDate(d):d);b.minValue=c;if(a){a.minText=Ext.String.format(b.minText,b.formatDate(b.minValue));a.setMinDate(c)}},setMaxValue:function(c){var b=this,a=b.picker,d=(Ext.isString(c)?b.parseDate(c):c);b.maxValue=d;if(a){a.maxText=Ext.String.format(b.maxText,b.formatDate(b.maxValue));a.setMaxDate(d)}},getErrors:function(q){q=arguments.length>0?q:this.formatDate(this.processRawValue(this.getRawValue()));var j=this,p=Ext.String.format,k=Ext.Date.clearTime,o=Ext.form.field.Picker.prototype.getErrors.call(this,q),n=j.disabledDays,d=j.disabledDatesRE,m=j.minValue,h=j.maxValue,g=n?n.length:0,e=0,a,b,l,c;if(q===null||q.length<1){return o}a=q;q=j.parseDate(q);if(!q){o.push(p(j.invalidText,a,Ext.Date.unescapeFormat(j.format)));return o}c=q.getTime();if(m&&c<k(m).getTime()){o.push(p(j.minText,j.formatDate(m)))}if(h&&c>k(h).getTime()){o.push(p(j.maxText,j.formatDate(h)))}if(n){l=q.getDay();for(;e<g;e++){if(l===n[e]){o.push(j.disabledDaysText);break}}}b=j.formatDate(q);if(d&&d.test(b)){o.push(p(j.disabledDatesText,b))}return o},rawToValue:function(a){return this.parseDate(a)||a||null},valueToRaw:function(a){return this.formatDate(this.parseDate(a))},safeParse:function(g,h){var e=this,c=Ext.Date,a=null,b=e.useStrict,d;if(c.formatContainsHourInfo(h)){a=c.parse(g,h,b)}else{d=c.parse(g+" "+e.initTime,h+" "+e.initTimeFormat,b);if(d){a=c.clearTime(d)}}return a},getSubmitValue:function(){var b=this.submitFormat||this.format,a=this.getValue();return a?Ext.Date.format(a,b):""},parseDate:function(e){if(!e||Ext.isDate(e)){return e}var d=this,h=d.safeParse(e,d.format),b=d.altFormats,g=d.altFormatsArray,c=0,a;if(!h&&b){g=g||b.split("|");a=g.length;for(;c<a&&!h;++c){h=d.safeParse(e,g[c])}}return h},formatDate:function(a){return Ext.isDate(a)?Ext.Date.dateFormat(a,this.format):a},createPicker:function(){var a=this,b=Ext.String.format;return new Ext.picker.Date({pickerField:a,floating:true,focusable:false,hidden:true,minDate:a.minValue,maxDate:a.maxValue,disabledDatesRE:a.disabledDatesRE,disabledDatesText:a.disabledDatesText,disabledDays:a.disabledDays,disabledDaysText:a.disabledDaysText,format:a.format,showToday:a.showToday,startDay:a.startDay,minText:b(a.minText,a.formatDate(a.minValue)),maxText:b(a.maxText,a.formatDate(a.maxValue)),listeners:{scope:a,select:a.onSelect},keyNavConfig:{esc:function(){a.collapse()}}})},onSelect:function(a,c){var b=this;b.setValue(c);b.fireEvent("select",b,c);b.collapse()},onExpand:function(){var a=this.getValue();this.picker.setValue(Ext.isDate(a)?a:new Date())},onBlur:function(c){var b=this,a=b.rawToValue(b.getRawValue());if(Ext.isDate(a)){b.setValue(a)}Ext.form.field.Picker.prototype.onBlur.call(this,c)},onArrowKey:function(b,a){a.preventDefault()}},0,["datefield"],["component","box","field","textfield","pickerfield","datefield"],{component:true,box:true,field:true,textfield:true,pickerfield:true,datefield:true},["widget.datefield"],0,[Ext.form.field,"Date",Ext.form,"DateField",Ext.form,"Date"],0));(Ext.cmd.derive("Ext.form.field.Display",Ext.form.field.Base,{alternateClassName:["Ext.form.DisplayField","Ext.form.Display"],ariaRole:"textbox",fieldSubTpl:['<div id="{id}" role="{role}" {inputAttrTpl}','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>',' class="{fieldCls} {fieldCls}-{ui}">{value}</div>',{compiled:true,disableFormats:true}],focusable:false,readOnly:true,fieldCls:"x-form-display-field",fieldBodyCls:"x-form-display-field-body",htmlEncode:false,noWrap:false,validateOnChange:false,initEvents:Ext.emptyFn,submitValue:false,getValue:function(){return this.value},valueToRaw:function(a){if(a||a===0||a===false){return a}else{return""}},isDirty:function(){return false},isValid:Ext.returnTrue,validate:Ext.returnTrue,getRawValue:function(){return this.rawValue},setRawValue:function(b){var a=this;b=Ext.valueFrom(b,"");a.rawValue=b;if(a.rendered){a.inputEl.dom.innerHTML=a.getDisplayValue();a.updateLayout()}return b},getDisplayValue:function(){var a=this,b=this.getRawValue(),c;if(a.renderer){c=a.renderer.call(a.scope||a,b,a)}else{c=a.htmlEncode?Ext.util.Format.htmlEncode(b):b}return c},getSubTplData:function(b){var a=Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments);a.value=this.getDisplayValue();return a}},0,["displayfield"],["component","box","field","displayfield"],{component:true,box:true,field:true,displayfield:true},["widget.displayfield"],0,[Ext.form.field,"Display",Ext.form,"DisplayField",Ext.form,"Display"],0));(Ext.cmd.derive("Ext.form.field.FileButton",Ext.button.Button,{childEls:["fileInputEl"],inputCls:"x-form-file-input",cls:"x-form-file-btn",preventDefault:false,tabIndex:null,promptCalled:false,autoEl:{tag:"div",unselectable:"on"},afterTpl:['<input id="{id}-fileInputEl" data-ref="fileInputEl" class="{childElCls} {inputCls}" ','type="file" size="1" name="{inputName}" role="{role}" ','<tpl if="tabIndex != null">tabindex="{tabIndex}"</tpl>',">"],getAfterMarkup:function(a){return this.getTpl("afterTpl").apply(a)},getTemplateArgs:function(){var b=this,a;a=Ext.button.Button.prototype.getTemplateArgs.call(this);a.inputCls=b.inputCls;a.inputName=b.inputName||b.id;a.tabIndex=b.ownerCt.tabIndex!=null?b.ownerCt.tabIndex:null;return a},afterRender:function(){var a=this;Ext.button.Button.prototype.afterRender.apply(this,arguments);a.fileInputEl.on({scope:a,mousedown:a.handlePrompt,keydown:a.handlePrompt,change:a.fireChange,focus:a.onFileFocus,blur:a.onFileBlur})},fireChange:function(a){this.fireEvent("change",this,a,this.fileInputEl.dom.value)},createFileInput:function(b){var c=this,a;a=c.fileInputEl=c.el.createChild({name:c.inputName||c.id,id:!b?c.id+"-fileInputEl":undefined,cls:c.inputCls+(c.getInherited().rtl?" x-rtl":""),tag:"input",type:"file",size:1,role:"button"});a.dom.setAttribute(Ext.Component.componentIdAttribute,c.id);a.on({scope:c,mousedown:c.handlePrompt,keydown:c.handlePrompt,change:c.fireChange,focus:c.onFileFocus,blur:c.onFileBlur})},handlePrompt:function(b){var a;if(b.type=="keydown"){a=b.getKey();this.promptCalled=((!Ext.isIE&&a===b.ENTER)||a===b.SPACE)?true:false}else{this.promptCalled=true}},onFileFocus:function(b){var a=this.ownerCt;if(!this.hasFocus){this.onFocus(b)}if(a&&!a.hasFocus){a.onFocus(b)}},onFileBlur:function(b){var a=this.ownerCt;if(this.promptCalled){this.promptCalled=false;b.preventDefault();return}if(this.hasFocus){this.onBlur(b)}if(a&&a.hasFocus){a.onBlur(b)}},reset:function(a){var b=this;if(a){b.fileInputEl.destroy()}b.createFileInput(!a)},restoreInput:function(a){var b=this;b.fileInputEl.destroy();a=Ext.get(a);b.el.appendChild(a);b.fileInputEl=a},onDisable:function(){Ext.button.Button.prototype.onDisable.call(this);this.fileInputEl.dom.disabled=true},onEnable:function(){Ext.button.Button.prototype.onEnable.call(this);this.fileInputEl.dom.disabled=false},privates:{getFocusEl:function(){return this.fileInputEl},getFocusClsEl:function(){return this.el}}},0,["filebutton"],["component","box","button","filebutton"],{component:true,box:true,button:true,filebutton:true},["widget.filebutton"],0,[Ext.form.field,"FileButton"],0));(Ext.cmd.derive("Ext.form.trigger.Component",Ext.form.trigger.Trigger,{cls:"x-form-trigger-cmp",onFieldRender:function(){var b=this,a=b.component;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);if(!a.isComponent&&!a.isWidget){a=Ext.widget(a)}b.component=a;a.render(b.el)},destroy:function(){var a=this.component;if(a.isComponent||a.isWidget){a.destroy()}this.component=null;Ext.form.trigger.Trigger.prototype.destroy.call(this)}},0,0,0,0,["trigger.component"],0,[Ext.form.trigger,"Component"],0));(Ext.cmd.derive("Ext.form.field.File",Ext.form.field.Text,{alternateClassName:["Ext.form.FileUploadField","Ext.ux.form.FileUploadField","Ext.form.File"],needArrowKeys:false,triggers:{filebutton:{type:"component",hideOnReadOnly:false,preventMouseDown:false}},buttonText:"Browse...",buttonOnly:false,buttonMargin:3,clearOnSubmit:true,extraFieldBodyCls:"x-form-file-wrap",inputCls:"x-form-text-file",readOnly:true,editable:false,submitValue:false,triggerNoEditCls:"",childEls:["browseButtonWrap"],applyTriggers:function(a){var b=this,c=(a||{}).filebutton;if(c){c.component=Ext.apply({xtype:"filebutton",ownerCt:b,id:b.id+"-button",ui:b.ui,disabled:b.disabled,text:b.buttonText,style:b.buttonOnly?"":b.getButtonMarginProp()+b.buttonMargin+"px",inputName:b.getName(),listeners:{scope:b,change:b.onFileChange}},b.buttonConfig);return Ext.form.field.Text.prototype.applyTriggers.call(this,a)}},getSubTplData:function(a){var b=Ext.form.field.Text.prototype.getSubTplData.call(this,a);b.tabIdx=-1;return b},onRender:function(){var d=this,e,c,a,b;(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).apply(this,arguments);e=d.inputEl;e.dom.name="";e.on("focus",d.onInputFocus,d);e.on("mousedown",d.onInputMouseDown,d);b=d.getTrigger("filebutton");c=d.button=b.component;d.fileInputEl=c.fileInputEl;a=c.el;if(d.buttonOnly){d.inputWrap.setDisplayed(false);d.shrinkWrap=3}b.el.setWidth(a.getWidth()+a.getMargin("lr"));if(Ext.isIE){d.button.getEl().repaint()}},getTriggerMarkup:function(){return'<td id="'+this.id+'-browseButtonWrap" data-ref="browseButtonWrap" role="presentation"></td>'},onFileChange:function(a,c,b){this.duringFileSelect=true;Ext.form.field.File.superclass.setValue.call(this,b);delete this.duringFileSelect},didValueChange:function(){return !!this.duringFileSelect},setValue:Ext.emptyFn,reset:function(){var b=this,a=b.clearOnSubmit;if(b.rendered){b.button.reset(a);b.fileInputEl=b.button.fileInputEl;if(a){b.inputEl.dom.value="";Ext.form.field.File.superclass.setValue.call(this,null)}}Ext.form.field.Text.prototype.reset.call(this)},onShow:function(){Ext.form.field.Text.prototype.onShow.call(this);this.button.updateLayout()},onDisable:function(){Ext.form.field.Text.prototype.onDisable.call(this);this.button.disable()},onEnable:function(){Ext.form.field.Text.prototype.onEnable.call(this);this.button.enable()},isFileUpload:Ext.returnTrue,extractFileInput:function(){var b=this,a;if(b.rendered){a=b.button.fileInputEl.dom;b.reset()}else{a=document.createElement("input");a.type="file";a.className="x-hidden-display";a.name=b.getName()}return a},restoreInput:function(b){if(this.rendered){var a=this.button;a.restoreInput(b);this.fileInputEl=a.fileInputEl}},onDestroy:function(){this.fileInputEl=this.button=null;Ext.form.field.Text.prototype.onDestroy.call(this)},getButtonMarginProp:function(){return this.getInherited().rtl?"margin-right:":"margin-left:"},onInputFocus:function(a){this.focus();if(Ext.isIE9m){this.fileInputEl.addCls("x-position-relative");this.fileInputEl.removeCls("x-position-relative")}},onInputMouseDown:function(a){a.preventDefault();this.focus()},privates:{getFocusEl:function(){return this.button},getFocusClsEl:Ext.privateFn}},0,["fileuploadfield","filefield"],["component","box","field","textfield","filefield","fileuploadfield"],{component:true,box:true,field:true,textfield:true,filefield:true,fileuploadfield:true},["widget.filefield","widget.fileuploadfield"],0,[Ext.form.field,"File",Ext.form,"FileUploadField",Ext.ux.form,"FileUploadField",Ext.form,"File"],0));(Ext.cmd.derive("Ext.form.field.Hidden",Ext.form.field.Base,{alternateClassName:"Ext.form.Hidden",focusable:false,inputType:"hidden",isTextInput:false,hideLabel:true,hidden:true,ariaRole:"presentation",initComponent:function(){this.formItemCls+="-hidden";Ext.form.field.Base.prototype.initComponent.call(this)},isEqual:function(b,a){return this.isEqualAsString(b,a)},initEvents:Ext.emptyFn,setSize:Ext.emptyFn,setWidth:Ext.emptyFn,setHeight:Ext.emptyFn,setPosition:Ext.emptyFn,setPagePosition:Ext.emptyFn,markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn},0,["hidden","hiddenfield"],["component","box","field","hiddenfield","hidden"],{component:true,box:true,field:true,hiddenfield:true,hidden:true},["widget.hidden","widget.hiddenfield"],0,[Ext.form.field,"Hidden",Ext.form,"Hidden"],0));(Ext.cmd.derive("Ext.tip.Tip",Ext.panel.Panel,{alternateClassName:"Ext.Tip",minWidth:40,maxWidth:500,shadow:"sides",defaultAlign:"tl-bl?",constrainPosition:true,autoRender:true,hidden:true,baseCls:"x-tip",focusOnToFront:false,closeAction:"hide",alwaysFramed:true,frameHeader:false,initComponent:function(){var a=this;a.floating=Ext.apply({},{shadow:a.shadow,constrain:a.constrainPosition},a.self.prototype.floating);Ext.panel.Panel.prototype.initComponent.apply(this,arguments);a.constrain=a.constrain||a.constrainPosition},showAt:function(b){var a=this;Ext.panel.Panel.prototype.showAt.apply(this,arguments);if(a.isVisible()){a.setPagePosition(b[0],b[1]);if(a.constrainPosition||a.constrain){a.doConstrain()}a.toFront(true)}},privates:{initDraggable:function(){var a=this;a.draggable={el:a.getDragEl(),delegate:a.header.el,constrain:a,constrainTo:a.el.dom.parentNode};Ext.Component.prototype.initDraggable.call(a)}},ghost:undefined,unghost:undefined},0,["tip"],["component","box","container","panel","tip"],{component:true,box:true,container:true,panel:true,tip:true},["widget.tip"],0,[Ext.tip,"Tip",Ext,"Tip"],0));(Ext.cmd.derive("Ext.tip.ToolTip",Ext.tip.Tip,{alternateClassName:"Ext.ToolTip",autoHide:true,showDelay:500,hideDelay:200,dismissDelay:5000,trackMouse:false,anchorToTarget:true,anchorOffset:0,targetCounter:0,quickShowInterval:250,hideAction:"hide",fadeOutDuration:1000,ariaRole:"tooltip",initComponent:function(){var a=this,b;Ext.tip.Tip.prototype.initComponent.call(this);a.lastActive=new Date();b=a.target;delete a.target;a.setTarget(b);a.origAnchor=a.anchor},onRender:function(b,a){var c=this;Ext.tip.Tip.prototype.onRender.apply(this,arguments);c.anchorCls="x-tip-anchor-"+c.getAnchorPosition();c.anchorEl=c.el.createChild({role:"presentation",cls:"x-tip-anchor "+c.anchorCls})},setTarget:function(d){var b=this,c=b.target,a;if(c){a={mouseover:"onTargetOver",mouseout:"onTargetOut",mousemove:"onMouseMove",scope:b};if(Ext.supports.Touch){a.tap="onTargetTap"}b.mun(c,a)}b.target=d=Ext.get(d);if(d){a={mouseover:"onTargetOver",mouseout:"onTargetOut",mousemove:"onMouseMove",scope:b};if(Ext.supports.Touch){a.tap="onTargetTap"}b.mon(d,a)}if(b.anchor){b.anchorTarget=d}},onMouseMove:function(d){var b=this,a,c;if(!b.target||b.target.contains(d.target)){a=b.delegate?d.getTarget(b.delegate):(b.triggerElement=true);if(a){b.targetXY=d.getXY();if(a===b.triggerElement){if(!b.hidden&&b.trackMouse){c=b.getTargetXY();if(b.constrainPosition){c=b.el.adjustForConstraints(c,b.el.parent())}b.setPagePosition(c)}}else{b.hide();b.lastActive=new Date(0);b.onTargetOver(d)}}else{if((!b.closable&&b.isVisible())&&b.autoHide!==false){b.delayHide()}}}},getTargetXY:function(){var j=this,d,c,n,a,i,l,e,m,k,b,h,g;if(j.delegate){j.anchorTarget=j.triggerElement}if(j.anchor){j.targetCounter++;c=j.getOffsets();n=(j.anchorToTarget&&!j.trackMouse)?j.getAlignToXY(j.anchorTarget,j.getAnchorAlign()):j.targetXY;a=Ext.Element.getViewportWidth()-5;i=Ext.Element.getViewportHeight()-5;l=document.documentElement;e=document.body;m=(l.scrollLeft||e.scrollLeft||0)+5;k=(l.scrollTop||e.scrollTop||0)+5;b=[n[0]+c[0],n[1]+c[1]];h=j.getSize();g=j.constrainPosition;j.anchorEl.removeCls(j.anchorCls);if(j.targetCounter<2&&g){if(b[0]<m){if(j.anchorToTarget){j.defaultAlign="l-r";if(j.mouseOffset){j.mouseOffset[0]*=-1}}j.anchor="left";return j.getTargetXY()}if(b[0]+h.width>a){if(j.anchorToTarget){j.defaultAlign="r-l";if(j.mouseOffset){j.mouseOffset[0]*=-1}}j.anchor="right";return j.getTargetXY()}if(b[1]<k){if(j.anchorToTarget){j.defaultAlign="t-b";if(j.mouseOffset){j.mouseOffset[1]*=-1}}j.anchor="top";return j.getTargetXY()}if(b[1]+h.height>i){if(j.anchorToTarget){j.defaultAlign="b-t";if(j.mouseOffset){j.mouseOffset[1]*=-1}}j.anchor="bottom";return j.getTargetXY()}}j.anchorCls="x-tip-anchor-"+j.getAnchorPosition();j.anchorEl.addCls(j.anchorCls);j.targetCounter=0;return b}else{d=j.getMouseOffset();return(j.targetXY)?[j.targetXY[0]+d[0],j.targetXY[1]+d[1]]:d}},calculateConstrainedPosition:function(b){var c=this,e,a,d;if(!b&&c.isContainedFloater()){e=c.isVisible();if(!e){c.el.show()}a=c.getTargetXY();if(!e){c.el.hide()}d=c.floatParent.getTargetEl().getViewRegion();a[0]-=d.left;a[1]-=d.top}else{a=c.callOverridden(arguments)}return a},getMouseOffset:function(){var a=this,b=a.anchor?[0,0]:[15,18];if(a.mouseOffset){b[0]+=a.mouseOffset[0];b[1]+=a.mouseOffset[1]}return b},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity("")}})},getAnchorPosition:function(){var b=this,a;if(b.anchor){b.tipAnchor=b.anchor.charAt(0)}else{a=b.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);b.tipAnchor=a[1].charAt(0)}switch(b.tipAnchor){case"t":return"top";case"b":return"bottom";case"r":return"right"}return"left"},getAnchorAlign:function(){switch(this.anchor){case"top":return"tl-bl";case"left":return"tl-tr";case"right":return"tr-tl";default:return"bl-tl"}},getOffsets:function(){var c=this,d,b,a=c.getAnchorPosition().charAt(0);if(c.anchorToTarget&&!c.trackMouse){switch(a){case"t":b=[0,9];break;case"b":b=[0,-13];break;case"r":b=[-13,0];break;default:b=[9,0];break}}else{switch(a){case"t":b=[-15-c.anchorOffset,30];break;case"b":b=[-19-c.anchorOffset,-13-c.el.dom.offsetHeight];break;case"r":b=[-15-c.el.dom.offsetWidth,-13-c.anchorOffset];break;default:b=[25,-13-c.anchorOffset];break}}d=c.getMouseOffset();b[0]+=d[0];b[1]+=d[1];return b},onTargetTap:function(a){if(a.pointerType!=="mouse"){this.onTargetOver(a)}},onTargetOver:function(d){var c=this,b=c.delegate,a;if(c.disabled||d.within(c.target.dom,true)){return}a=b?d.getTarget(b):true;if(a){c.triggerElement=a;c.triggerEvent=d;c.clearTimer("hide");c.targetXY=d.getXY();c.delayShow()}},delayShow:function(c){var a=this,b=a.el&&(c===false||!a.trackMouse)&&a.getTargetXY();if(a.hidden&&!a.showTimer){if(Ext.Date.getElapsed(a.lastActive)<a.quickShowInterval){a.show()}else{a.showTimer=Ext.defer(a.showFromDelay,a.showDelay,a,[b])}}else{if(!a.hidden&&a.autoHide!==false){a.show(b)}}},showFromDelay:function(b){var a=this;if(a.disabled){return}a.fromDelayShow=true;a.show(b);delete a.fromDelayShow},onShowVeto:function(){Ext.tip.Tip.prototype.onShowVeto.call(this);delete this.triggerElement;this.clearTimer("show")},onTargetOut:function(d){var b=this,a=b.triggerElement,c=a===true?b.target:a;if(b.disabled||!a||d.within(c,true)){return}if(b.showTimer){b.clearTimer("show");b.triggerElement=null}if(b.autoHide!==false){b.delayHide()}},delayHide:function(){var a=this;if(!a.hidden&&!a.hideTimer){a.hideTimer=Ext.defer(a[a.hideAction],a.hideDelay,a)}},hide:function(){var a=this;a.clearTimer("dismiss");a.lastActive=new Date();if(a.anchorEl){a.anchorEl.hide()}Ext.tip.Tip.prototype.hide.apply(this,arguments);delete a.triggerElement},show:function(b){var a=this;Ext.tip.Tip.prototype.show.call(this);if(this.hidden===false){if(a.anchor){a.anchor=a.origAnchor}if(!a.calledFromShowAt){a.showAt(b||a.getTargetXY())}}},showAt:function(b){var a=this;a.lastActive=new Date();a.clearTimers();a.calledFromShowAt=true;if(!a.isVisible()){Ext.tip.Tip.prototype.showAt.apply(this,arguments)}if(a.isVisible()){a.setPagePosition(b[0],b[1]);if(a.constrainPosition||a.constrain){a.doConstrain()}a.toFront(true);a.el.syncUnderlays();if(a.dismissDelay&&a.autoHide!==false){a.dismissTimer=Ext.defer(a.hide,a.dismissDelay,a)}}delete a.calledFromShowAt},syncAnchor:function(){var c=this,a,b,d;switch(c.tipAnchor.charAt(0)){case"t":a="b";b="tl";d=[20+c.anchorOffset,1];break;case"r":a="l";b="tr";d=[-1,12+c.anchorOffset];break;case"b":a="t";b="bl";d=[20+c.anchorOffset,-1];break;default:a="r";b="tl";d=[1,12+c.anchorOffset];break}c.anchorEl.alignTo(c.el,a+"-"+b,d);c.anchorEl.setStyle("z-index",parseInt(c.el.getZIndex(),10)||0+1).setVisibilityMode(Ext.Element.VISIBILITY)},afterSetPosition:function(a,c){var b=this;Ext.tip.Tip.prototype.afterSetPosition.apply(this,arguments);if(b.anchor){if(!b.anchorEl.isVisible()){b.anchorEl.show()}b.syncAnchor()}else{b.anchorEl.hide()}},_timerNames:{},clearTimer:function(a){var b=this,d=b._timerNames,c=d[a]||(d[a]=a+"Timer"),e=b[c];if(e){clearTimeout(e);b[c]=null}},clearTimers:function(){var a=this;a.clearTimer("show");a.clearTimer("dismiss");a.clearTimer("hide")},onShow:function(){var a=this;Ext.tip.Tip.prototype.onShow.call(this);a.mon(Ext.getDoc(),"mousedown",a.onDocMouseDown,a)},onHide:function(){var a=this;Ext.tip.Tip.prototype.onHide.call(this);a.mun(Ext.getDoc(),"mousedown",a.onDocMouseDown,a)},onDocMouseDown:function(b){var a=this;if(!a.closable&&!b.within(a.el.dom)){a.disable();Ext.defer(a.doEnable,100,a)}},doEnable:function(){if(!this.isDestroyed){this.enable()}},onDisable:function(){Ext.tip.Tip.prototype.onDisable.call(this);this.clearTimers();this.hide()},beforeDestroy:function(){var a=this;a.clearTimers();Ext.destroy(a.anchorEl);delete a.anchorEl;delete a.target;delete a.anchorTarget;delete a.triggerElement;Ext.tip.Tip.prototype.beforeDestroy.call(this)},onDestroy:function(){Ext.getDoc().un("mousedown",this.onDocMouseDown,this);Ext.tip.Tip.prototype.onDestroy.call(this)}},0,["tooltip"],["component","box","container","panel","tip","tooltip"],{component:true,box:true,container:true,panel:true,tip:true,tooltip:true},["widget.tooltip"],0,[Ext.tip,"ToolTip",Ext,"ToolTip"],0));(Ext.cmd.derive("Ext.tip.QuickTip",Ext.tip.ToolTip,{alternateClassName:"Ext.QuickTip",interceptTitles:false,title:"&#160;",tagConfig:{namespace:"data-",attribute:"qtip",width:"qwidth",target:"target",title:"qtitle",hide:"hide",cls:"qclass",align:"qalign",anchor:"anchor",showDelay:"qshowDelay",hideAction:"hideAction",anchorTarget:"anchorTarget"},shrinkWrapDock:true,initComponent:function(){var a=this;a.target=a.target||Ext.getDoc();a.targets=a.targets||{};Ext.tip.ToolTip.prototype.initComponent.call(this)},setTagConfig:function(a){this.tagConfig=Ext.apply({},a);delete this.tagConfig.attr},text:null,register:function(c){var h=Ext.isArray(c)?c:arguments,d=0,a=h.length,g,b,e;for(;d<a;d++){c=h[d];g=c.target;if(g){if(Ext.isArray(g)){for(b=0,e=g.length;b<e;b++){this.targets[Ext.id(g[b])]=c}}else{this.targets[Ext.id(g)]=c}}}},unregister:function(a){delete this.targets[Ext.id(a)]},cancelShow:function(a){var b=this,c=b.activeTarget;a=Ext.get(a).dom;if(b.isVisible()){if(c&&c.el===a){b.hide()}}else{if(c&&c.el===a){b.clearTimer("show")}}},getTipCfg:function(e,d){var c=e.title,b=this.tagConfig,a=b.attr||(b.attr=b.namespace+b.attribute),g;if(this.interceptTitles&&c&&Ext.isString(c)){e.setAttribute(a,c);e.removeAttribute("title");return{text:c}}else{e=Ext.fly(e).findParent(function(h){return(g=h.getAttribute(a))});if(e){return{target:e,text:g}}}},onTargetOver:function(a){this.doTargetOver(a.getTarget(this.delegate),null,a)},doTargetOver:function(j,q,b){var k=this,a,e,g,c,i,l,d,n,h,p,m,o;if(k.disabled){return}if(typeof j==="string"){j=Ext.getDom(j)}k.targetXY=q||(b?b.getXY():Ext.fly(j).getXY());if(!j||j.nodeType!==1||j===document.documentElement||j===document.body){return}if(k.activeTarget&&((j===k.activeTarget.el)||Ext.fly(k.activeTarget.el).contains(j))){if(k.targetTextEmpty()){k.onShowVeto();delete k.activeTarget}else{k.clearTimer("hide");k.show()}return}if(j){h=k.targets;for(o in h){if(h.hasOwnProperty(o)){m=h[o];p=Ext.fly(m.target);if(p&&(p.dom===j||p.contains(j))){c=p.dom;break}}}if(c){k.activeTarget=k.targets[c.id];k.activeTarget.el=j;k.anchor=k.activeTarget.anchor;if(k.anchor){k.anchorTarget=j}a=parseInt(k.activeTarget.showDelay,10);if(a){g=k.showDelay;k.showDelay=a}k.delayShow();if(a){k.showDelay=g}if(!(e=k.activeTarget.hideAction)){delete k.hideAction}else{k.hideAction=e}return}}c=Ext.fly(j,"_quicktip-target");i=k.tagConfig;l=i.namespace;d=k.getTipCfg(j,b);if(d){if(d.target){j=d.target;c=Ext.fly(j,"_quicktip-target")}n=c.getAttribute(l+i.hide);k.activeTarget={el:j,text:d.text,width:+c.getAttribute(l+i.width)||null,autoHide:n!=="user"&&n!=="false",title:c.getAttribute(l+i.title),cls:c.getAttribute(l+i.cls),align:c.getAttribute(l+i.align),showDelay:parseInt(c.getAttribute(l+i.showDelay)||0,10),hideAction:c.getAttribute(l+i.hideAction),anchorTarget:c.getAttribute(l+i.anchorTarget)};if(!k.initialConfig.hasOwnProperty("anchor")){k.anchor=c.getAttribute(l+i.anchor)}if(k.anchor&&!k.initialConfig.hasOwnProperty("anchorTarget")){k.anchorTarget=k.activeTarget.anchorTarget||j}a=parseInt(k.activeTarget.showDelay,10);if(a){g=k.showDelay;k.showDelay=a}k.delayShow();if(a){k.showDelay=g}}},onTargetOut:function(g){var c=this,d=c.activeTarget,a,b;if(d&&g.within(c.activeTarget.el)&&!c.getTipCfg(g.getTarget(),g)){return}c.clearTimer("show");delete c.activeTarget;if(c.autoHide!==false){a=d&&parseInt(d.hideDelay,10);if(a){b=c.hideDelay;c.hideDelay=a}c.delayHide();if(a){c.hideDelay=b}}},targetTextEmpty:function(){var c=this,d=c.activeTarget,a=c.tagConfig,b,e;if(d){b=d.el;if(b){e=b.getAttribute(a.namespace+a.attribute);if(!e&&!c.targets[Ext.id(d.target)]){return true}}}return false},show:function(){var b=this,a=b.fromDelayShow;if(a&&b.targetTextEmpty()){b.onShowVeto();delete b.activeTarget;return}Ext.tip.ToolTip.prototype.show.apply(this,arguments)},showAt:function(e){var c=this,d=c.activeTarget,g=c.header,b,a;if(d){if(!c.rendered){c.render(Ext.getBody());c.activeTarget=d}c.suspendLayouts();if(d.title){c.setTitle(d.title);g.show()}else{if(g){g.hide()}}c.update(d.text);c.autoHide=d.autoHide;b=d.dismissDelay;c.dismissDelay=Ext.isNumber(b)?b:c.dismissDelay;if(d.mouseOffset){e[0]+=d.mouseOffset[0];e[1]+=d.mouseOffset[1]}a=c.lastCls;if(a){c.removeCls(a);delete c.lastCls}a=d.cls;if(a){c.addCls(a);c.lastCls=a}c.setWidth(d.width);if(c.anchor){c.constrainPosition=false}else{if(d.align){e=c.getAlignToXY(d.el,d.align);c.constrainPosition=false}else{c.constrainPosition=true}}c.resumeLayouts(true)}Ext.tip.ToolTip.prototype.showAt.call(this,e)},hide:function(){delete this.activeTarget;Ext.tip.ToolTip.prototype.hide.call(this)}},0,["quicktip"],["component","box","container","panel","tip","tooltip","quicktip"],{component:true,box:true,container:true,panel:true,tip:true,tooltip:true,quicktip:true},["widget.quicktip"],0,[Ext.tip,"QuickTip",Ext,"QuickTip"],0));(Ext.cmd.derive("Ext.tip.QuickTipManager",Ext.Base,{singleton:true,alternateClassName:"Ext.QuickTips",disabled:false,init:function(e,b){var d=this;if(!d.tip){if(!Ext.isReady){Ext.onInternalReady(function(){Ext.tip.QuickTipManager.init(e,b)});return false}var a=Ext.apply({disabled:d.disabled,id:"ext-quicktips-tip"},b),c=a.className,g=a.xtype;if(c){delete a.className}else{if(g){c="widget."+g;delete a.xtype}}if(e!==false){a.renderTo=document.body}d.tip=Ext.create(c||"Ext.tip.QuickTip",a);Ext.quickTipsActive=true}},destroy:function(){Ext.destroy(this.tip);this.tip=undefined},ddDisable:function(){var a=this,b=a.tip;if(b&&!a.disabled){b.disable()}},ddEnable:function(){var a=this,b=a.tip;if(b&&!a.disabled){b.enable()}},enable:function(){var a=this,b=a.tip;if(b){b.enable()}a.disabled=false},disable:function(){var a=this,b=a.tip;if(b){b.disable()}a.disabled=true},isEnabled:function(){var a=this.tip;return a!==undefined&&!a.disabled},getQuickTip:function(){return this.tip},register:function(){var a=this.tip;a.register.apply(a,arguments)},unregister:function(){var a=this.tip;a.unregister.apply(a,arguments)},tips:function(){var a=this.tip;a.register.apply(a,arguments)}},0,0,0,0,0,0,[Ext.tip,"QuickTipManager",Ext,"QuickTips"],0));Ext.define("Ext.rtl.tip.QuickTipManager",{override:"Ext.tip.QuickTipManager",init:function(){var a=this;if(a.callParent(arguments)!==false){a.tip.on("beforeshow",a.onBeforeFirstShow,a,{single:true})}},onBeforeFirstShow:function(a){a._isOffsetParentRtl=undefined}});(Ext.cmd.derive("Ext.picker.Color",Ext.Component,{alternateClassName:"Ext.ColorPalette",focusable:true,componentCls:"x-color-picker",selectedCls:"x-color-picker-selected",itemCls:"x-color-picker-item",value:null,clickEvent:"click",allowReselect:false,colors:["000000","993300","333300","003300","003366","000080","333399","333333","800000","FF6600","808000","008000","008080","0000FF","666699","808080","FF0000","FF9900","99CC00","339966","33CCCC","3366FF","800080","969696","FF00FF","FFCC00","FFFF00","00FF00","00FFFF","00CCFF","993366","C0C0C0","FF99CC","FFCC99","FFFF99","CCFFCC","CCFFFF","99CCFF","CC99FF","FFFFFF"],colorRe:/(?:^|\s)color-(.{6})(?:\s|$)/,renderTpl:['<tpl for="colors">','<a href="#" role="button" class="color-{.} {parent.itemCls}" hidefocus="on">','<span class="{parent.itemCls}-inner" style="background:#{.}">&#160;</span>',"</a>","</tpl>"],initComponent:function(){var a=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(a.handler){a.on("select",a.handler,a.scope,true)}},initRenderData:function(){var a=this;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{itemCls:a.itemCls,colors:a.colors})},onRender:function(){var b=this,a=b.clickEvent;Ext.Component.prototype.onRender.apply(this,arguments);b.mon(b.el,a,b.handleClick,b,{delegate:"a"});if(a!=="click"){b.mon(b.el,"click",Ext.emptyFn,b,{delegate:"a",stopEvent:true})}},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.apply(this,arguments);if(a.value){b=a.value;a.value=null;a.select(b,true)}},handleClick:function(c){var b=this,a;c.stopEvent();if(!b.disabled){a=c.currentTarget.className.match(b.colorRe)[1];b.select(a.toUpperCase())}},select:function(b,a){var e=this,h=e.selectedCls,g=e.value,c,d;b=b.replace("#","");if(!e.rendered){e.value=b;return}if(b!==g||e.allowReselect){c=e.el;if(e.value){d=c.down("a.color-"+g,true);Ext.fly(d).removeCls(h)}d=c.down("a.color-"+b,true);Ext.fly(d).addCls(h);e.value=b;if(a!==true){e.fireEvent("select",e,b)}}},clear:function(){var b=this,c=b.value,a;if(c&&b.rendered){a=b.el.down("a.color-"+c,true);Ext.fly(a).removeCls(b.selectedCls)}b.value=null},getValue:function(){return this.value||null}},0,["colorpicker"],["component","box","colorpicker"],{component:true,box:true,colorpicker:true},["widget.colorpicker"],0,[Ext.picker,"Color",Ext,"ColorPalette"],0));(Ext.cmd.derive("Ext.layout.component.field.HtmlEditor",Ext.layout.component.field.FieldContainer,{type:"htmleditor",naturalHeight:150,naturalWidth:300,beginLayout:function(b){var a=this.owner,c;if(Ext.isGecko){c=a.textareaEl.dom;this.lastValue=c.value;c.value=""}Ext.layout.component.field.FieldContainer.prototype.beginLayout.apply(this,arguments);b.toolbarContext=b.context.getCmp(a.toolbar);b.inputCmpContext=b.context.getCmp(a.inputCmp);b.bodyCellContext=b.getEl("bodyEl");b.textAreaContext=b.getEl("textareaEl");b.iframeContext=b.getEl("iframeEl")},beginLayoutCycle:function(i){var h=this,d=i.widthModel,c=i.heightModel,b=h.owner,g=b.iframeEl,e=b.textareaEl,a=(c.natural||c.shrinkWrap)?h.naturalHeight:"";Ext.layout.component.field.FieldContainer.prototype.beginLayoutCycle.apply(this,arguments);if(d.shrinkWrap){g.setStyle("width","");e.setStyle("width","")}else{if(d.natural){i.bodyCellContext.setWidth(h.naturalWidth)}}g.setStyle("height",a);e.setStyle("height",a)},finishedLayout:function(){var a=this.owner;Ext.layout.component.field.FieldContainer.prototype.finishedLayout.apply(this,arguments);if(Ext.isGecko){a.textareaEl.dom.value=this.lastValue}}},0,0,0,0,["layout.htmleditor"],0,[Ext.layout.component.field,"HtmlEditor"],0));(Ext.cmd.derive("Ext.toolbar.Separator",Ext.toolbar.Item,{alternateClassName:"Ext.Toolbar.Separator",baseCls:"x-toolbar-separator",ariaRole:"separator"},0,["tbseparator"],["component","box","tbitem","tbseparator"],{component:true,box:true,tbitem:true,tbseparator:true},["widget.tbseparator"],0,[Ext.toolbar,"Separator",Ext.Toolbar,"Separator"],0));(Ext.cmd.derive("Ext.layout.container.boxOverflow.Menu",Ext.layout.container.boxOverflow.None,{alternateClassName:"Ext.layout.boxOverflow.Menu",noItemsMenuText:'<div class="x-toolbar-no-items" role="menuitem">(None)</div>',menuCls:"x-box-menu",constructor:function(a){var b=this;Ext.layout.container.boxOverflow.None.prototype.constructor.call(this,a);b.menuItems=[]},beginLayout:function(a){Ext.layout.container.boxOverflow.None.prototype.beginLayout.call(this,a);this.clearOverflow(a)},beginLayoutCycle:function(b,a){Ext.layout.container.boxOverflow.None.prototype.beginLayoutCycle.call(this,b,a);if(!a){this.clearOverflow(b);this.layout.cacheChildItems(b)}},onRemove:function(a){Ext.Array.remove(this.menuItems,a)},clearItem:function(a){var b=a.menu;if(a.isButton&&b){a.setMenu(b,false)}},getSuffixConfig:function(){var d=this,c=d.layout,a=c.owner,b=a.id;d.menu=new Ext.menu.Menu({listeners:{scope:d,beforeshow:d.beforeMenuShow}});d.menuTrigger=new Ext.button.Button({id:b+"-menu-trigger",cls:d.menuCls+"-after x-toolbar-item",plain:a.usePlainButtons,ownerCt:a,ownerLayout:c,iconCls:"x-"+d.getOwnerType(a)+"-more-icon",ui:a.defaultButtonUI||"default",menu:d.menu,showEmptyMenu:true,getSplitCls:function(){return""}});return d.menuTrigger.getRenderTree()},getOverflowCls:function(a){return this.menuCls+"-body-"+a},handleOverflow:function(c){var b=this,a=b.layout;b.showTrigger(c);if(a.direction!=="vertical"){b.menuTrigger.setLocalY((c.state.boxPlan.maxSize-b.menuTrigger[a.names.getHeight]())/2)}return{reservedSpace:b.triggerTotalWidth}},captureChildElements:function(){var a=this,c=a.menuTrigger,b=a.layout.names;if(c.rendering){c.finishRender();a.triggerTotalWidth=c[b.getWidth]()+c.el.getMargin(b.parallelMargins)}},clearOverflow:function(h){var g=this,b=g.menuItems,e=b.length,a=g.layout.owner,j=a._asLayoutRoot,d,c;a.suspendLayouts();g.captureChildElements();g.hideTrigger();a.resumeLayouts();for(c=0;c<e;c++){d=b[c];d.suspendLayouts();d.show();g.clearItem(d);d.resumeLayouts(j)}b.length=0},showTrigger:function(d){var p=this,l=p.layout,b=l.owner,o=l.names,s=o.x,g=o.width,q=d.state.boxPlan,c=q.targetSize[g],j=d.childItems,h=p.menuTrigger,a=p.menuItems,r,k,e,n,m;h.suspendLayouts();h.show();h.resumeLayouts(p._asLayoutRoot);c-=p.triggerTotalWidth;b.suspendLayouts();for(e=0,m=a.length;e<m;++e){p.clearItem(a[e])}a.length=0;for(e=0,m=j.length;e<m;e++){r=j[e];n=r.props;if(n[s]+n[g]>c){k=r.target;p.menuItems.push(k);k.hide()}}b.resumeLayouts()},hideTrigger:function(){var a=this.menuTrigger;if(a){a.hide()}},beforeMenuShow:function(j){var h=this,b=h.menuItems,d=0,a=b.length,g,e,c=function(k,i){return k.isXType("buttongroup")&&!(i instanceof Ext.toolbar.Separator)};j.suspendLayouts();j.removeAll(false);for(;d<a;d++){g=b[d];if(!d&&(g instanceof Ext.toolbar.Separator)){continue}if(e&&(c(g,e)||c(e,g))){j.add("-")}h.addComponentToMenu(j,g);e=g}if(j.items.length<1){j.add(h.noItemsMenuText)}j.resumeLayouts()},createMenuConfig:function(c,a){var b=Ext.apply({},c.initialConfig),d=c.toggleGroup;Ext.copy(b,c,["iconCls","icon","itemId","disabled","handler","scope","menu","tabIndex"]);Ext.applyIf(b,{hideOnClick:a,destroyMenu:false,listeners:null});b.text=c.overflowText||c.text;b.masterComponent=c;if(c.isFormField){b.value=c.getValue();if(c.isRadio){Ext.apply(b,{name:c.name+"_clone"})}b.listeners={change:function(h,g,e){h.masterComponent.setValue(g)}};c.on("change",function(h,g,e){h.overflowClone.setValue(g)})}else{if(d||c.enableToggle){Ext.apply(b,{hideOnClick:false,group:d,checked:c.pressed,handler:function(g,h){c.onClick(h)}})}}if(c.isButton&&!c.changeListenersAdded){c.on({textchange:this.onButtonAttrChange,iconchange:this.onButtonAttrChange,toggle:this.onButtonToggle});c.changeListenersAdded=true}c.on({enable:this.onComponentStatusChange,disable:this.onComponentStatusChange});delete b.margin;delete b.ownerCt;delete b.xtype;delete b.id;delete b.itemId;return b},onButtonAttrChange:function(a){var b=a.overflowClone;b.suspendLayouts();b.setText(a.text);b.setIcon(a.icon);b.setIconCls(a.iconCls);b.resumeLayouts(true)},onButtonToggle:function(a,b){if(a.overflowClone.checked!==b){a.overflowClone.setChecked(b)}},onComponentStatusChange:function(a){var b=a.overflowClone;if(b){b.setDisabled(a.disabled)}},addComponentToMenu:function(g,c){var e=this,d,b,a;if(c instanceof Ext.toolbar.Fill){return}else{if(c instanceof Ext.toolbar.Separator){g.add("-")}else{if(c.overflowClone){g.add(c.overflowClone)}else{if(c.isComponent){if(c.isXType("splitbutton")){c.overflowClone=g.add(e.createMenuConfig(c,true))}else{if(c.isXType("button")){c.overflowClone=g.add(e.createMenuConfig(c,!c.menu))}else{if(c.isXType("buttongroup")){b=c.items.items;a=b.length;for(d=0;d<a;d++){e.addComponentToMenu(g,b[d])}}else{c.overflowClone=g.add(Ext.create(Ext.getClassName(c),e.createMenuConfig(c)))}}}}}}}},destroy:function(){var a=this.menuTrigger;if(a&&!this.layout.owner.items.contains(a)){delete a.ownerCt}Ext.destroy(this.menu,a)}},1,0,0,0,["box.overflow.Menu","box.overflow.menu"],0,[Ext.layout.container.boxOverflow,"Menu",Ext.layout.boxOverflow,"Menu"],0));Ext.define("Ext.rtl.layout.container.boxOverflow.Menu",{override:"Ext.layout.container.boxOverflow.Menu",getPrefixConfig:function(a){if(a||!this.layout.owner.getInherited().rtl){return(arguments.callee.$previous||Ext.layout.container.boxOverflow.None.prototype.getPrefixConfig).call(this)}else{return this.getSuffixConfig(true)}},getSuffixConfig:function(a){if(a||!this.layout.owner.getInherited().rtl){return(arguments.callee.$previous||Ext.layout.container.boxOverflow.None.prototype.getSuffixConfig).call(this)}else{return this.getPrefixConfig(true)}}});(Ext.cmd.derive("Ext.form.field.HtmlEditor",Ext.form.FieldContainer,{alternateClassName:"Ext.form.HtmlEditor",focusable:true,componentLayout:"htmleditor",textareaCls:"x-htmleditor-textarea",componentTpl:["{beforeTextAreaTpl}",'<textarea id="{id}-textareaEl" data-ref="textareaEl" name="{name}" tabindex="-1" {inputAttrTpl}',' class="{textareaCls}" autocomplete="off">',"{[Ext.util.Format.htmlEncode(values.value)]}","</textarea>","{afterTextAreaTpl}","{beforeIFrameTpl}",'<iframe id="{id}-iframeEl" data-ref="iframeEl" name="{iframeName}" frameBorder="0" {iframeAttrTpl}',' src="{iframeSrc}" class="{iframeCls}"></iframe>',"{afterIFrameTpl}",{disableFormats:true}],stretchInputElFixed:true,subTplInsertions:["beforeTextAreaTpl","afterTextAreaTpl","beforeIFrameTpl","afterIFrameTpl","iframeAttrTpl","inputAttrTpl"],enableFormat:true,enableFontSize:true,enableColors:true,enableAlignments:true,enableLists:true,enableSourceEdit:true,enableLinks:true,enableFont:true,createLinkText:"Please enter the URL for the link:",defaultLinkValue:"http://",fontFamilies:["Arial","Courier New","Tahoma","Times New Roman","Verdana"],defaultValue:Ext.isOpera?"&#160;":"&#8203;",extraFieldBodyCls:"x-html-editor-wrap",defaultButtonUI:"default-toolbar",initialized:false,activated:false,sourceEditMode:false,iframePad:3,hideMode:"offsets",maskOnDisable:true,containerElCls:"x-html-editor-container",reStripQuotes:/^['"]*|['"]*$/g,textAlignRE:/text-align:(.*?);/i,safariNonsenseRE:/\sclass="(?:Apple-style-span|Apple-tab-span|khtml-block-placeholder)"/gi,nonDigitsRE:/\D/g,initComponent:function(){var a=this;a.items=[a.createToolbar(),a.createInputCmp()];a.layout={type:"vbox",align:"stretch"};if(a.value==null){a.value=""}Ext.form.FieldContainer.prototype.initComponent.apply(this,arguments);a.initField()},createInputCmp:function(){this.inputCmp=Ext.widget(this.getInputCmpCfg());return this.inputCmp},getInputCmpCfg:function(){var a=this,c=a.id+"-inputCmp",b={id:c,name:a.name,textareaCls:a.textareaCls+" x-hidden",value:a.value,iframeName:Ext.id(),iframeSrc:Ext.SSL_SECURE_URL,iframeCls:"x-htmleditor-iframe"};a.getInsertionRenderData(b,a.subTplInsertions);return{flex:1,xtype:"component",tpl:a.getTpl("componentTpl"),childEls:["iframeEl","textareaEl"],id:c,cls:"x-html-editor-input",data:b}},createToolbar:function(){this.toolbar=Ext.widget(this.getToolbarCfg());return this.toolbar},getToolbarCfg:function(){var h=this,b=[],e,a=Ext.quickTipsActive&&Ext.tip.QuickTipManager.isEnabled(),d="x-",j,g;function c(l,i,k){return{itemId:l,cls:d+"btn-icon",iconCls:d+"edit-"+l,enableToggle:i!==false,scope:h,handler:k||h.relayBtnCmd,clickEvent:"mousedown",tooltip:a?h.buttonTips[l]||g:g,overflowText:h.buttonTips[l].title||g,tabIndex:-1}}if(h.enableFont&&!Ext.isSafari2){j=Ext.widget("component",{itemId:"fontSelect",renderTpl:['<select id="{id}-selectEl" data-ref="selectEl" class="'+d+'font-select">',"</select>"],childEls:["selectEl"],afterRender:function(){h.fontSelect=this.selectEl;Ext.Component.prototype.afterRender.apply(this,arguments)},onDisable:function(){var i=this.selectEl;if(i){i.dom.disabled=true}Ext.Component.prototype.onDisable.apply(this,arguments)},onEnable:function(){var i=this.selectEl;if(i){i.dom.disabled=false}Ext.Component.prototype.onEnable.apply(this,arguments)},listeners:{change:function(){h.win.focus();h.relayCmd("fontName",h.fontSelect.dom.value);h.deferFocus()},element:"selectEl"}});b.push(j,"-")}if(h.enableFormat){b.push(c("bold"),c("italic"),c("underline"))}if(h.enableFontSize){b.push("-",c("increasefontsize",false,h.adjustFont),c("decreasefontsize",false,h.adjustFont))}if(h.enableColors){b.push("-",{itemId:"forecolor",cls:d+"btn-icon",iconCls:d+"edit-forecolor",overflowText:h.buttonTips.forecolor.title,tooltip:a?h.buttonTips.forecolor||g:g,tabIndex:-1,menu:Ext.widget("menu",{plain:true,items:[{xtype:"colorpicker",allowReselect:true,focus:Ext.emptyFn,value:"000000",plain:true,clickEvent:"mousedown",handler:function(k,i){h.relayCmd("forecolor",Ext.isWebKit||Ext.isIE?"#"+i:i);this.up("menu").hide()}}]})},{itemId:"backcolor",cls:d+"btn-icon",iconCls:d+"edit-backcolor",overflowText:h.buttonTips.backcolor.title,tooltip:a?h.buttonTips.backcolor||g:g,tabIndex:-1,menu:Ext.widget("menu",{plain:true,items:[{xtype:"colorpicker",focus:Ext.emptyFn,value:"FFFFFF",plain:true,allowReselect:true,clickEvent:"mousedown",handler:function(k,i){if(Ext.isGecko){h.execCmd("useCSS",false);h.execCmd("hilitecolor","#"+i);h.execCmd("useCSS",true);h.deferFocus()}else{h.relayCmd(Ext.isOpera?"hilitecolor":"backcolor",Ext.isWebKit||Ext.isIE||Ext.isOpera?"#"+i:i)}this.up("menu").hide()}}]})})}if(h.enableAlignments){b.push("-",c("justifyleft"),c("justifycenter"),c("justifyright"))}if(!Ext.isSafari2){if(h.enableLinks){b.push("-",c("createlink",false,h.createLink))}if(h.enableLists){b.push("-",c("insertorderedlist"),c("insertunorderedlist"))}if(h.enableSourceEdit){b.push("-",c("sourceedit",true,function(){h.toggleSourceEdit(!h.sourceEditMode)}))}}for(e=0;e<b.length;e++){if(b[e].itemId!=="sourceedit"){b[e].disabled=true}}return{xtype:"toolbar",defaultButtonUI:h.defaultButtonUI,cls:"x-html-editor-tb",enableOverflow:true,items:b,listeners:{click:function(i){i.preventDefault()},element:"el"}}},getMaskTarget:function(){return Ext.isGecko?this.inputCmp.el:this.bodyEl},setReadOnly:function(e){var d=this,c=d.textareaEl,b=d.iframeEl,a;d.readOnly=e;if(c){c.dom.readOnly=e}if(d.initialized){a=d.getEditorBody();if(Ext.isIE){b.setDisplayed(false);a.contentEditable=!e;b.setDisplayed(true)}else{d.setDesignMode(!e)}if(a){a.style.cursor=e?"default":"text"}d.disableItems(e)}},getDocMarkup:function(){var b=this,a=b.iframeEl.getHeight()-b.iframePad*2;return Ext.String.format('<!DOCTYPE html><html><head><style type="text/css">'+(Ext.isOpera||Ext.isIE?"p{margin:0;}":"")+"body{border:0;margin:0;padding:{0}px;direction:"+(b.rtl?"rtl;":"ltr;")+(Ext.isIE8?Ext.emptyString:"min-")+"height:{1}px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;cursor:text;background-color:white;"+(Ext.isIE?"":"font-size:12px;font-family:{2}")+"}</style></head><body></body></html>",b.iframePad,a,b.defaultFont)},getEditorBody:function(){var a=this.getDoc();return a.body||a.documentElement},getDoc:function(){return this.iframeEl.dom.contentDocument||this.getWin().document},getWin:function(){return this.iframeEl.dom.contentWindow||window.frames[this.iframeEl.dom.name]},initDefaultFont:function(){var h=this,a=0,j,b,k,e,d,g,c;if(!h.defaultFont){b=h.textareaEl.getStyle("font-family");b=Ext.String.capitalize(b.split(",")[0]);j=Ext.Array.clone(h.fontFamilies);Ext.Array.include(j,b);j.sort();h.defaultFont=b;k=h.down("#fontSelect").selectEl.dom;for(d=0,g=j.length;d<g;++d){b=j[d];c=b.toLowerCase();e=new Option(b,c);if(b===h.defaultFont){a=d}e.style.fontFamily=c;if(Ext.isIE){k.add(e)}else{k.options.add(e)}}k.options[a].selected=true}},isEqual:function(b,a){return this.isEqualAsString(b,a)},afterRender:function(){var b=this,a=b.inputCmp;Ext.form.FieldContainer.prototype.afterRender.apply(this,arguments);b.iframeEl=a.iframeEl;b.textareaEl=a.textareaEl;b.inputEl=b.iframeEl;if(b.enableFont){b.initDefaultFont()}b.monitorTask=Ext.TaskManager.start({run:b.checkDesignMode,scope:b,interval:100})},initFrameDoc:function(){var b=this,c,a;Ext.TaskManager.stop(b.monitorTask);c=b.getDoc();b.win=b.getWin();c.open();c.write(b.getDocMarkup());c.close();a={run:function(){var d=b.getDoc();if(d.body||d.readyState==="complete"){Ext.TaskManager.stop(a);b.setDesignMode(true);Ext.defer(b.initEditor,10,b)}},interval:10,duration:10000,scope:b};Ext.TaskManager.start(a)},checkDesignMode:function(){var a=this,b=a.getDoc();if(b&&(!b.editorInitialized||a.getDesignMode()!=="on")){a.initFrameDoc()}},setDesignMode:function(c){var a=this,b=a.getDoc();if(b){if(a.readOnly){c=false}b.designMode=(/on|true/i).test(String(c).toLowerCase())?"on":"off"}},getDesignMode:function(){var a=this.getDoc();return !a?"":String(a.designMode).toLowerCase()},disableItems:function(d){var b=this.getToolbar().items.items,c,a=b.length,e;for(c=0;c<a;c++){e=b[c];if(e.getItemId()!=="sourceedit"){e.setDisabled(d)}}},toggleSourceEdit:function(b){var g=this,d=g.iframeEl,a=g.textareaEl,e="x-hidden",c=g.getToolbar().getComponent("sourceedit");if(!Ext.isBoolean(b)){b=!g.sourceEditMode}g.sourceEditMode=b;if(c.pressed!==b){c.toggle(b)}if(b){g.disableItems(true);g.syncValue();d.addCls(e);a.removeCls(e);a.dom.removeAttribute("tabindex");a.focus();g.inputEl=a}else{if(g.initialized){g.disableItems(g.readOnly)}g.pushValue();d.removeCls(e);a.addCls(e);a.dom.setAttribute("tabindex",-1);g.deferFocus();g.inputEl=d}g.fireEvent("editmodechange",g,b);g.updateLayout()},createLink:function(){var a=prompt(this.createLinkText,this.defaultLinkValue);if(a&&a!=="http://"){this.relayCmd("createlink",a)}},clearInvalid:Ext.emptyFn,setValue:function(c){var b=this,a=b.textareaEl;if(c===null||c===undefined){c=""}if(b.value!==c){if(a){a.dom.value=c}b.pushValue();if(!b.rendered&&b.inputCmp){b.inputCmp.data.value=c}b.mixins.field.setValue.call(b,c)}return b},cleanHtml:function(a){a=String(a);if(Ext.isWebKit){a=a.replace(this.safariNonsenseRE,"")}if(a.charCodeAt(0)===parseInt(this.defaultValue.replace(this.nonDigitsRE,""),10)){a=a.substring(1)}return a},syncValue:function(){var g=this,b,h,d,a,c,e;if(g.initialized){b=g.getEditorBody();d=b.innerHTML;e=g.textareaEl.dom;if(Ext.isWebKit){a=b.getAttribute("style");c=a.match(g.textAlignRE);if(c&&c[1]){d='<div style="'+c[0]+'">'+d+"</div>"}}d=g.cleanHtml(d);if(g.fireEvent("beforesync",g,d)!==false){if(Ext.isGecko&&e.value===""&&d==="<br>"){d=""}if(e.value!==d){e.value=d;h=true}g.fireEvent("sync",g,d);if(h){g.checkChange()}}}},getValue:function(){var a=this,b;if(!a.sourceEditMode){a.syncValue()}b=a.rendered?a.textareaEl.dom.value:a.value;a.value=b;return b},pushValue:function(){var b=this,a;if(b.initialized){a=b.textareaEl.dom.value||"";if(!b.activated&&a.length<1){a=b.defaultValue}if(b.fireEvent("beforepush",b,a)!==false){b.getEditorBody().innerHTML=a;if(Ext.isGecko){b.setDesignMode(false);b.setDesignMode(true)}b.fireEvent("push",b,a)}}},focus:function(d,b){var c=this,e,a;if(b){if(!c.focusTask){c.focusTask=new Ext.util.DelayedTask(c.focus)}c.focusTask.delay(Ext.isNumber(b)?b:10,null,c,[d,false])}else{if(d){if(c.textareaEl&&c.textareaEl.dom){e=c.textareaEl.dom.value}if(e&&e.length){c.execCmd("selectall",true)}}a=c.getFocusEl();if(a&&a.focus){a.focus()}}return c},initEditor:function(){var d=this,c,a,h,i,b;if(d.destroying||d.isDestroyed){return}c=d.getEditorBody();if(!c){setTimeout(function(){d.initEditor()},10);return}a=d.textareaEl.getStyle(["font-size","font-family","background-image","background-repeat","background-color","color"]);a["background-attachment"]="fixed";c.bgProperties="fixed";Ext.DomHelper.applyStyles(c,a);h=d.getDoc();i=Ext.get(h);if(i){try{i.clearListeners()}catch(g){}b=d.onEditorEvent.bind(d);i.on({mousedown:b,dblclick:b,click:b,keyup:b,delegated:false,buffer:100});b=d.onRelayedEvent;i.on({mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,delegated:false,scope:d});if(Ext.isGecko){i.on("keypress",d.applyCommand,d)}if(d.fixKeys){i.on("keydown",d.fixKeys,d,{delegated:false})}if(d.fixKeysAfter){i.on("keyup",d.fixKeysAfter,d,{delegated:false})}if(Ext.isIE9){Ext.get(h.documentElement).on("focus",d.focus,d)}if(Ext.isIE8){i.on("focusout",function(){d.savedSelection=h.selection.type!=="None"?h.selection.createRange():null},d);i.on("focusin",function(){if(d.savedSelection){d.savedSelection.select()}},d)}Ext.getWin().on("unload",d.destroyEditor,d);h.editorInitialized=true;d.initialized=true;d.pushValue();d.setReadOnly(d.readOnly);d.fireEvent("initialize",d)}},destroyEditor:function(){var a=this,d=a.monitorTask,c,g;if(d){Ext.TaskManager.stop(d)}if(a.rendered){Ext.getWin().un("unload",a.destroyEditor,a);c=a.getDoc();if(c){Ext.get(c).destroy();if(c.hasOwnProperty){for(g in c){try{if(c.hasOwnProperty(g)){delete c[g]}}catch(b){}}}}delete a.iframeEl;delete a.textareaEl;delete a.toolbar;delete a.inputCmp}},beforeDestroy:function(){this.destroyEditor();Ext.form.FieldContainer.prototype.beforeDestroy.call(this)},onRelayedEvent:function(c){var b=this.iframeEl,d=Ext.fly(b).getTrueXY(),e=c.getXY(),a=c.getXY();c.xy=[d[0]+a[0],d[1]+a[1]];c.injectEvent(b);c.xy=e},onFirstFocus:function(){var c=this,b,a;c.activated=true;c.disableItems(c.readOnly);if(Ext.isGecko){c.win.focus();b=c.win.getSelection();if(b.focusNode&&!c.getValue().length){a=b.getRangeAt(0);a.selectNodeContents(c.getEditorBody());a.collapse(true);c.deferFocus()}try{c.execCmd("useCSS",true);c.execCmd("styleWithCSS",false)}catch(d){}}c.fireEvent("activate",c)},adjustFont:function(d){var e=d.getItemId()==="increasefontsize"?1:-1,c=this.getDoc().queryCommandValue("FontSize")||"2",a=Ext.isString(c)&&c.indexOf("px")!==-1,b;c=parseInt(c,10);if(a){if(c<=10){c=1+e}else{if(c<=13){c=2+e}else{if(c<=16){c=3+e}else{if(c<=18){c=4+e}else{if(c<=24){c=5+e}else{c=6+e}}}}}c=Ext.Number.constrain(c,1,6)}else{b=Ext.isSafari;if(b){e*=2}c=Math.max(1,c+e)+(b?"px":0)}this.relayCmd("FontSize",c)},onEditorEvent:function(){this.updateToolbar()},updateToolbar:function(){var j=this,e,c,d,k,b,g,a,h;if(j.readOnly){return}if(!j.activated){j.onFirstFocus();return}d=j.getToolbar().items.map;k=j.getDoc();if(j.enableFont&&!Ext.isSafari2){g=k.queryCommandValue("fontName");b=(g?g.split(",")[0].replace(j.reStripQuotes,""):j.defaultFont).toLowerCase();a=j.fontSelect.dom;if(b!==a.value||b!==g){a.value=b}}function m(){var i;for(e=0,c=arguments.length,b;e<c;e++){b=arguments[e];try{i=k.queryCommandState(b)}catch(l){i=false}d[b].toggle(i)}}if(j.enableFormat){m("bold","italic","underline")}if(j.enableAlignments){m("justifyleft","justifycenter","justifyright")}if(!Ext.isSafari2&&j.enableLists){m("insertorderedlist","insertunorderedlist")}h=j.toolbar.query("menu");for(e=0;e<h.length;e++){h[e].hide()}j.syncValue()},relayBtnCmd:function(a){this.relayCmd(a.getItemId())},relayCmd:function(b,a){Ext.defer(function(){var c=this;if(!this.isDestroyed){c.win.focus();c.execCmd(b,a);c.updateToolbar()}},10,this)},execCmd:function(c,b){var a=this,d=a.getDoc();d.execCommand(c,false,(b===undefined?null:b));a.syncValue()},applyCommand:function(d){if(d.ctrlKey){var a=this,g=d.getCharCode(),b;if(g>0){g=String.fromCharCode(g);switch(g){case"b":b="bold";break;case"i":b="italic";break;case"u":b="underline";break}if(b){a.win.focus();a.execCmd(b);a.deferFocus();d.preventDefault()}}}},insertAtCursor:function(k){var i=this,h=i.getWin(),j=i.getDoc(),c,g,d,l,e,b,a;if(i.activated){h.focus();if(h.getSelection){c=h.getSelection();if(c.getRangeAt&&c.rangeCount){g=c.getRangeAt(0);g.deleteContents();d=j.createElement("div");d.innerHTML=k;l=j.createDocumentFragment();while((e=d.firstChild)){b=l.appendChild(e)}a=l.firstChild;g.insertNode(l);if(b){g=g.cloneRange();g.setStartAfter(b);g.collapse(true);c.removeAllRanges();c.addRange(g)}}}else{if(j.selection&&c.type!=="Control"){c=j.selection;g=c.createRange();g.collapse(true);c.createRange().pasteHTML(k)}}i.deferFocus()}},fixKeys:(function(){var a;if(Ext.isIE10m){return function(i){var d=this,c=i.getKey(),h=d.getDoc(),j=d.readOnly,b,g;if(c===i.TAB){i.stopEvent();if(!j){b=h.selection.createRange();if(b){if(b.collapse){b.collapse(true);b.pasteHTML("&#160;&#160;&#160;&#160;")}d.deferFocus()}}}}}if(Ext.isOpera){return function(d){var c=this,b=d.getKey(),g=c.readOnly;if(b===d.TAB){d.stopEvent();if(!g){c.win.focus();c.execCmd("InsertHTML","&#160;&#160;&#160;&#160;");c.deferFocus()}}}}return null}()),fixKeysAfter:(function(){if(Ext.isIE){return function(d){var b=this,a=d.getKey(),c=b.getDoc(),h=b.readOnly,g;if(!h&&(a===d.BACKSPACE||a===d.DELETE)){g=c.body.innerHTML;if(g==="<p>&nbsp;</p>"||g==="<P>&nbsp;</P>"){c.body.innerHTML=""}}}}return null}()),getToolbar:function(){return this.toolbar},buttonTips:{bold:{title:"Bold (Ctrl+B)",text:"Make the selected text bold.",cls:"x-html-editor-tip"},italic:{title:"Italic (Ctrl+I)",text:"Make the selected text italic.",cls:"x-html-editor-tip"},underline:{title:"Underline (Ctrl+U)",text:"Underline the selected text.",cls:"x-html-editor-tip"},increasefontsize:{title:"Grow Text",text:"Increase the font size.",cls:"x-html-editor-tip"},decreasefontsize:{title:"Shrink Text",text:"Decrease the font size.",cls:"x-html-editor-tip"},backcolor:{title:"Text Highlight Color",text:"Change the background color of the selected text.",cls:"x-html-editor-tip"},forecolor:{title:"Font Color",text:"Change the color of the selected text.",cls:"x-html-editor-tip"},justifyleft:{title:"Align Text Left",text:"Align text to the left.",cls:"x-html-editor-tip"},justifycenter:{title:"Center Text",text:"Center text in the editor.",cls:"x-html-editor-tip"},justifyright:{title:"Align Text Right",text:"Align text to the right.",cls:"x-html-editor-tip"},insertunorderedlist:{title:"Bullet List",text:"Start a bulleted list.",cls:"x-html-editor-tip"},insertorderedlist:{title:"Numbered List",text:"Start a numbered list.",cls:"x-html-editor-tip"},createlink:{title:"Hyperlink",text:"Make the selected text a hyperlink.",cls:"x-html-editor-tip"},sourceedit:{title:"Source Edit",text:"Switch to source editing mode.",cls:"x-html-editor-tip"}},privates:{deferFocus:function(){this.focus(false,true)},getFocusEl:function(){return this.sourceEditMode?this.textareaEl:this.iframeEl}}},0,["htmleditor"],["component","box","container","fieldcontainer","htmleditor"],{component:true,box:true,container:true,fieldcontainer:true,htmleditor:true},["widget.htmleditor"],[["field",Ext.form.field.Field]],[Ext.form.field,"HtmlEditor",Ext.form,"HtmlEditor"],0));(Ext.cmd.derive("Ext.form.field.Tag",Ext.form.field.ComboBox,{noWrap:false,multiSelect:true,delimiter:",",tipTpl:undefined,forceSelection:true,createNewOnEnter:false,createNewOnBlur:false,encodeSubmitValue:false,triggerOnClick:true,stacked:false,filterPickList:false,grow:true,growMin:false,growMax:false,selectOnFocus:true,fieldSubTpl:['<div id="{cmpId}-listWrapper" data-ref="listWrapper" class="x-tagfield {fieldCls} {typeCls} {typeCls}-{ui}" style="{wrapperStyle}">','<ul id="{cmpId}-itemList" data-ref="itemList" class="x-tagfield-list{itemListCls}">','<li id="{cmpId}-inputElCt" data-ref="inputElCt" class="x-tagfield-input">','<div id="{cmpId}-emptyEl" data-ref="emptyEl" class="{emptyCls}">{emptyText}</div>','<input id="{cmpId}-inputEl" data-ref="inputEl" type="{type}" ','<tpl if="name">name="{name}" </tpl>','<tpl if="value"> value="{[Ext.util.Format.htmlEncode(values.value)]}"</tpl>','<tpl if="size">size="{size}" </tpl>','<tpl if="tabIdx != null">tabindex="{tabIdx}" </tpl>','<tpl if="disabled"> disabled="disabled"</tpl>','class="x-tagfield-input-field {inputElCls}" autocomplete="off">',"</li>","</ul>","</div>",{disableFormats:true}],extraFieldBodyCls:"x-tagfield-body",childEls:["listWrapper","itemList","inputEl","inputElCt","emptyEl"],emptyInputCls:"x-tagfield-emptyinput",clearValueOnEmpty:false,tagItemCls:"x-tagfield-item",tagItemTextCls:"x-tagfield-item-text",tagItemCloseCls:"x-tagfield-item-close",tagItemSelector:".x-tagfield-item",tagItemCloseSelector:".x-tagfield-item-close",tagSelectedCls:"x-tagfield-item-selected",initComponent:function(){var c=this,b=c.typeAhead,a=c.delimiter;if(c.createNewOnEnter||c.createNewOnBlur){c.forceSelection=false}c.typeAhead=false;if(c.value==null){c.value=[]}c.selectionModel=new Ext.selection.Model({mode:"MULTI",onSelectChange:function(d,g,e,h){h()},listeners:{scope:c,selectionchange:c.onSelectionChange,focuschange:c.onFocusChange}});Ext.form.field.ComboBox.prototype.initComponent.call(this);c.typeAhead=b;if(a&&c.multiSelect){c.delimiterRegexp=new RegExp(Ext.String.escapeRegex(a))}},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.ComboBox.prototype.initEvents.apply(this,arguments);if(!a.enableKeyEvents){b.on("keydown",a.onKeyDown,a);b.on("keyup",a.onKeyUp,a)}a.listWrapper.on({scope:a,click:a.onItemListClick,mousedown:a.onItemMouseDown})},isValid:function(){var b=this,a=b.disabled,c=b.forceValidation||!a;return c?b.validateValue(b.getValue()):a},onBindStore:function(a){var b=this;Ext.form.field.ComboBox.prototype.onBindStore.call(this,a);if(a){b.valueStore=new Ext.data.Store({model:a.getModel(),proxy:"memory",useModelWarning:false});b.selectionModel.bindStore(b.valueStore);if(b.filterPickList){b.listFilter=new Ext.util.Filter({scope:b,filterFn:b.filterPicked});b.changingFilters=true;a.filter(b.listFilter);b.changingFilters=false}}},filterPicked:function(a){return !this.valueCollection.contains(a)},onUnbindStore:function(a){var c=this,d=c.valueStore,b=c.picker;if(b){b.bindStore(null)}if(d){d.destroy();c.valueStore=null}if(c.filterPickList&&!a.isDestroyed){c.changingFilters=true;a.removeFilter(c.listFilter);c.changingFilters=false}Ext.form.field.ComboBox.prototype.onUnbindStore.apply(this,arguments)},clearInput:function(){var c=this,d=c.getValueRecords(),a=c.inputEl&&c.inputEl.dom.value,b;if(d.length&&a){b=d[d.length-1].get(c.displayField);if(!Ext.String.startsWith(b,a,true)){return}c.inputEl.dom.value="";if(c.queryMode=="local"){c.clearLocalFilter();c.getPicker().refresh()}}},onValueCollectionEndUpdate:function(){var a=this,c=a.valueCollection.items,b=a.valueStore;if(a.isSelectionUpdating()){return}if(a.filterPickList){a.changingFilters=true;a.store.filter(a.listFilter);a.changingFilters=false}Ext.form.field.ComboBox.prototype.onValueCollectionEndUpdate.call(this);Ext.suspendLayouts();if(b){b.suspendEvents();b.loadRecords(c);b.resumeEvents()}a.clearInput();Ext.resumeLayouts(true);a.alignPicker()},checkValueOnDataChange:Ext.emptyFn,onSelectionChange:function(a,b){this.applyMultiselectItemMarkup();this.fireEvent("valueselectionchange",this,b)},onFocusChange:function(a,c,b){this.fireEvent("valuefocuschange",this,c,b)},onDestroy:function(){this.selectionModel=Ext.destroy(this.selectionModel);Ext.form.field.ComboBox.prototype.onDestroy.apply(this,arguments)},getSubTplData:function(c){var i=this,h=Ext.form.field.ComboBox.prototype.getSubTplData.apply(this,arguments),d=i.emptyText,e=i.emptyInputCls,g=d&&h.value.length<1,j=i.growMin,a=i.growMax,b="";h.value="";h.emptyText=g?d:"";h.emptyCls=g?i.emptyCls:e;h.inputElCls=g?e:"";h.itemListCls="";if(i.grow){if(Ext.isNumber(j)&&j>0){b+="min-height:"+j+"px;"}if(Ext.isNumber(a)&&a>0){b+="max-height:"+a+"px;"}}h.wrapperStyle=b;if(i.stacked===true){h.itemListCls+=" x-tagfield-stacked"}if(!i.multiSelect){h.itemListCls+=" x-tagfield-singleselect"}return h},afterRender:function(){var b=this,c=b.inputEl,a=b.emptyText;if(a){if(Ext.supports.Placeholder&&c){c.dom.removeAttribute("placeholder")}else{b.applyEmptyText()}}b.applyMultiselectItemMarkup();Ext.form.field.ComboBox.prototype.afterRender.apply(this,arguments)},findRecord:function(c,b){var a=this.getStore().queryRecords(c,b);return a.length?a[0]:false},getCursorPosition:function(){var a;if(document.selection){a=document.selection.createRange();a.collapse(true);a.moveStart("character",-this.inputEl.dom.value.length);a=a.text.length}else{a=this.inputEl.dom.selectionStart}return a},hasSelectedText:function(){var c=this.inputEl.dom,b,a;if(document.selection){b=document.selection;a=b.createRange();return(a.parentElement()===c)}else{return c.selectionStart!==c.selectionEnd}},onKeyDown:function(g){var h=this,k=g.getKey(),j=h.inputEl,c=j.dom.value,a=h.valueCollection,d=h.selectionModel,b=false,i;if(h.readOnly||h.disabled||!h.editable){return}if(a.getCount()>0&&(c===""||(h.getCursorPosition()===0&&!h.hasSelectedText()))){i=(d.getCount()>0)?a.indexOf(d.getLastSelected()):-1;if(k===g.BACKSPACE||k===g.DELETE){if(i>-1){if(d.getCount()>1){i=-1}a.remove(d.getSelection())}else{a.remove(a.last())}d.clearSelections();if(i>0){d.select(i-1)}else{if(a.getCount()){d.select(a.last())}}b=true}else{if(k===g.RIGHT||k===g.LEFT){if(i===-1&&k===g.LEFT){d.select(a.last());b=true}else{if(i>-1){if(k===g.RIGHT){if(i<(a.getCount()-1)){d.select(i+1,g.shiftKey);b=true}else{if(!g.shiftKey){d.deselectAll();b=true}}}else{if(k===g.LEFT&&(i>0)){d.select(i-1,g.shiftKey);b=true}}}}}else{if(k===g.A&&g.ctrlKey){d.selectAll();b=g.A}}}}if(b){h.preventKeyUpEvent=b;g.stopEvent();return}if(h.isExpanded&&k===g.ENTER&&h.picker.highlightedItem){h.preventKeyUpEvent=true}if(h.enableKeyEvents){Ext.form.field.ComboBox.prototype.onKeyDown.apply(this,arguments)}if(!g.isSpecialKey()&&!g.hasModifier()){d.deselectAll()}},onKeyUp:function(h,b){var c=this,g=c.inputEl,d=g.dom.value,a=c.preventKeyUpEvent;if(c.preventKeyUpEvent){h.stopEvent();if(a===true||h.getKey()===a){delete c.preventKeyUpEvent}return}if(c.multiSelect&&c.delimiterRegexp&&c.delimiterRegexp.test(d)||(c.createNewOnEnter&&h.getKey()===h.ENTER)){d=Ext.Array.clean(d.split(c.delimiterRegexp));g.dom.value="";c.setValue(c.valueStore.getRange().concat(d));g.focus()}Ext.form.field.ComboBox.prototype.onKeyUp.call(this,h,b)},onTypeAhead:function(){var e=this,d=e.displayField,c=e.inputEl.dom,b=e.getStore().findRecord(d,c.value),g,a,h;if(b){g=b.get(d);a=g.length;h=c.value.length;if(h!==0&&h!==a){e.lastMutatedValue=g;c.value=g;e.selectText(h,g.length)}}},onItemListClick:function(d){var c=this,a=c.selectionModel,b=d.getTarget(c.tagItemSelector),g=b?d.getTarget(c.tagItemCloseSelector):false;if(c.readOnly||c.disabled){return}d.stopPropagation();if(b){if(g){c.removeByListItemNode(b);if(c.valueStore.getCount()>0){c.fireEvent("select",c,c.valueStore.getRange())}}else{c.toggleSelectionByListItemNode(b,d.shiftKey)}if(!Ext.supports.TouchEvents){c.inputEl.focus()}}else{if(a.getCount()>0){a.deselectAll()}c.inputEl.focus();if(c.triggerOnClick){c.onTriggerClick()}}},onItemMouseDown:function(a){a.preventDefault()},getMultiSelectItemMarkup:function(){var b=this,c="x-",a=b.valueField;if(!b.multiSelectItemTpl){if(!b.labelTpl){b.labelTpl="{"+b.displayField+"}"}b.labelTpl=b.getTpl("labelTpl");if(b.tipTpl){b.tipTpl=b.getTpl("tipTpl")}b.multiSelectItemTpl=new Ext.XTemplate(['<tpl for=".">','<li data-selectionIndex="{[xindex - 1]}" data-recordId="{internalId}" class="'+b.tagItemCls,'<tpl if="this.isSelected(values)">'," "+b.tagSelectedCls,"</tpl>","{%","values = values.data;","%}",b.tipTpl?'" data-qtip="{[this.getTip(values)]}">':'">','<div class="'+b.tagItemTextCls+'">{[this.getItemLabel(values)]}</div>','<div class="'+b.tagItemCloseCls+'"></div>',"</li>","</tpl>",{isSelected:function(d){return b.selectionModel.isSelected(d)},getItemLabel:function(d){return Ext.String.htmlEncode(b.labelTpl.apply(d))},getTip:function(d){return Ext.String.htmlEncode(b.tipTpl.apply(d))},strict:true}])}if(!b.multiSelectItemTpl.isTemplate){b.multiSelectItemTpl=this.getTpl("multiSelectItemTpl")}return b.multiSelectItemTpl.apply(b.valueCollection.getRange())},applyMultiselectItemMarkup:function(){var b=this,a=b.itemList;if(a){a.select(".x-tagfield-item").destroy();b.inputElCt.insertHtml("beforeBegin",b.getMultiSelectItemMarkup());b.autoSize()}},getRecordByListItemNode:function(a){return this.valueCollection.items[Number(a.getAttribute("data-selectionIndex"))]},toggleSelectionByListItemNode:function(b,d){var c=this,e=c.getRecordByListItemNode(b),a=c.selectionModel;if(e){if(a.isSelected(e)){a.deselect(e)}else{a.select(e,d)}}},removeByListItemNode:function(a){var b=this,c=b.getRecordByListItemNode(a);if(c){b.pickerSelectionModel.deselect(c)}},getDisplayValue:function(){return this.getRawValue()},getRawValue:function(){var e=this,c=e.getValueRecords(),b=[],d,a;for(d=0,a=c.length;d<a;d++){b.push(c[d].data[e.displayField])}return b.join(",")},setRawValue:function(a){return},removeValue:function(h){var g=this,b=g.valueCollection,a,c,e,d=[];if(h){h=Ext.Array.from(h);for(c=0,a=h.length;c<a;++c){e=h[c];if(!e.isModel){e=b.byValue.get(e)}if(e){d.push(e)}}g.valueCollection.beginUpdate();g.pickerSelectionModel.deselect(d);g.valueCollection.endUpdate()}},setValue:function(k,n,o){var j=this,q=j.valueStore,p=j.valueField,h=[],l=j.store,e,g,d,b,m,c,a;if(Ext.isEmpty(k)){k=null;a=true}else{if(Ext.isString(k)&&j.multiSelect){k=k.split(j.delimiter)}else{k=Ext.Array.from(k,true)}}if(!a){for(d=0,g=k.length;d<g;d++){e=k[d];if(!e||!e.isModel){b=q.findExact(p,e);if(b>-1){k[d]=q.getAt(b)}else{b=j.findRecord(p,e);if(!b){if(j.forceSelection){h.push(e)}else{b={};b[j.valueField]=e;b[j.displayField]=e;m=j.valueStore.getModel();b=new m(b)}}if(b){k[d]=b}}}}}if(!l.isEmptyStore&&o!==true&&h.length>0&&j.queryMode==="remote"){c={};c[j.valueParam||j.valueField]=h.join(j.delimiter);l.load({params:c,callback:function(){if(j.itemList){j.itemList.unmask()}j.setValue(k,n,true);j.autoSize();j.lastQuery=false}});return false}if(!a&&!j.multiSelect&&k.length>0){for(d=k.length-1;d>=0;d--){if(k[d].isModel){k=k[d];break}}if(Ext.isArray(k)){k=k[k.length-1]}}return Ext.form.field.ComboBox.prototype.setValue.call(this,k,n)},updateValue:function(){var d=this,c=d.valueCollection.getRange(),a=c.length,b;for(b=0;b<a;b++){c[b]=c[b].get(d.valueField)}d.setHiddenValue(c);d.value=d.multiSelect?c:c[0];if(!Ext.isDefined(d.value)){d.value=undefined}d.applyMultiselectItemMarkup();d.checkChange();d.applyEmptyText()},getValueRecords:function(){return this.valueCollection.getRange()},getSubmitData:function(){var a=this,b=Ext.form.field.ComboBox.prototype.getSubmitData.apply(this,arguments);if(a.multiSelect&&a.encodeSubmitValue&&b&&b[a.name]){b[a.name]=Ext.encode(b[a.name])}return b},assertValue:function(){var a=this,c=a.inputEl.dom.value,d=!Ext.isEmpty(c)?a.findRecordByDisplay(c):false,b=false;if(!d&&!a.forceSelection&&a.createNewOnBlur&&!Ext.isEmpty(c)){b=c}else{if(d){b=d}}if(b){a.addValue(b)}a.inputEl.dom.value="";a.collapse()},isEqual:function(j,h){var b=Ext.Array.from,c=this.valueField,d,a,g,e;j=b(j);h=b(h);a=j.length;if(a!==h.length){return false}for(d=0;d<a;d++){g=j[d].isModel?j[d].get(c):j[d];e=h[d].isModel?h[d].get(c):h[d];if(g!==e){return false}}return true},applyEmptyText:function(){var g=this,b=g.emptyText,d=g.emptyEl,h=g.inputEl,a=g.listWrapper,e=g.emptyCls,c=g.emptyInputCls,i;if(g.rendered&&b){i=Ext.isEmpty(g.value)&&!g.hasFocus;if(i){h.dom.value="";d.setHtml(b);d.addCls(e);d.removeCls(c);a.addCls(g.emptyUICls);h.addCls(c)}else{d.addCls(c);d.removeCls(e);a.removeCls(g.emptyUICls);h.removeCls(c)}g.autoSize()}},preFocus:function(){var a=this,b=a.inputEl,c=b.dom.value==="";a.emptyEl.addCls(a.emptyInputCls);a.emptyEl.removeCls(a.emptyCls);a.listWrapper.removeCls(a.emptyUICls);a.inputEl.removeCls(a.emptyInputCls);if(a.selectOnFocus||c){b.dom.select()}},onFocus:function(){var c=this,b=c.focusCls,a=c.itemList;if(b&&a){a.addCls(b)}Ext.form.field.ComboBox.prototype.onFocus.apply(this,arguments)},onBlur:function(){var c=this,b=c.focusCls,a=c.itemList;if(b&&a){a.removeCls(b)}Ext.form.field.ComboBox.prototype.onBlur.apply(this,arguments)},renderActiveError:function(){var d=this,c=d.invalidCls,b=d.itemList,a=d.hasActiveError();if(c&&b){b[a?"addCls":"removeCls"](d.invalidCls+"-field")}Ext.form.field.ComboBox.prototype.renderActiveError.apply(this,arguments)},autoSize:function(){var a=this;if(a.grow&&a.rendered){a.autoSizing=true;a.updateLayout()}return a},afterComponentLayout:function(){var b=this,a;if(b.autoSizing){a=b.getHeight();if(a!==b.lastInputHeight){if(b.isExpanded){b.alignPicker()}b.fireEvent("autosize",b,a);b.lastInputHeight=a;b.autoSizing=false}}}},0,["tagfield"],["component","box","field","textfield","pickerfield","combobox","combo","tagfield"],{component:true,box:true,field:true,textfield:true,pickerfield:true,combobox:true,combo:true,tagfield:true},["widget.tagfield"],0,[Ext.form.field,"Tag"],0));(Ext.cmd.derive("Ext.picker.Time",Ext.view.BoundList,{config:{store:true},statics:{createStore:function(h,c){var b=Ext.Date,d=b.clearTime,g=this.prototype.initDate,i=[],e=d(new Date(g[0],g[1],g[2])),a=b.add(d(new Date(g[0],g[1],g[2])),"mi",(24*60)-1);while(e<=a){i.push({disp:b.dateFormat(e,h),date:e});e=b.add(e,"mi",c)}return new Ext.data.Store({model:Ext.picker.Time.prototype.modelType,data:i})}},increment:15,format:"g:i A",displayField:"disp",initDate:[2008,0,1],componentCls:"x-timepicker",loadMask:false,initComponent:function(){var c=this,a=Ext.Date,b=a.clearTime,d=c.initDate;c.absMin=b(new Date(d[0],d[1],d[2]));c.absMax=a.add(b(new Date(d[0],d[1],d[2])),"mi",(24*60)-1);c.updateList();Ext.view.BoundList.prototype.initComponent.call(this)},setStore:function(a){this.store=(a===true)?Ext.picker.Time.createStore(this.format,this.increment):a},setMinValue:function(a){this.minValue=a;this.updateList()},setMaxValue:function(a){this.maxValue=a;this.updateList()},normalizeDate:function(a){var b=this.initDate;a.setFullYear(b[0],b[1],b[2]);return a},updateList:function(){var e=this,b=e.normalizeDate(e.minValue||e.absMin),a=e.normalizeDate(e.maxValue||e.absMax),d=e.getStore().getFilters(),c=e.rangeFilter;d.beginUpdate();if(c){d.remove(c)}c=e.rangeFilter=new Ext.util.Filter({filterFn:function(g){var h=g.get("date");return h>=b&&h<=a}});d.add(c);d.endUpdate()}},0,["timepicker"],["component","box","dataview","boundlist","timepicker"],{component:true,box:true,dataview:true,boundlist:true,timepicker:true},["widget.timepicker"],0,[Ext.picker,"Time"],function(){this.prototype.modelType=Ext.define(null,{extend:"Ext.data.Model",fields:["disp","date"]})}));(Ext.cmd.derive("Ext.form.field.Time",Ext.form.field.ComboBox,{alternateClassName:["Ext.form.TimeField","Ext.form.Time"],triggerCls:"x-form-time-trigger",minText:"The time in this field must be equal to or after {0}",maxText:"The time in this field must be equal to or before {0}",invalidText:"{0} is not a valid time",format:"g:i A",altFormats:"g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H|gi a|hi a|giA|hiA|gi A|hi A",increment:15,pickerMaxHeight:300,selectOnTab:true,snapToIncrement:false,valuePublishEvent:["select","blur"],initDate:"1/1/2008",initDateParts:[2008,0,1],initDateFormat:"j/n/Y",queryMode:"local",displayField:"disp",valueField:"date",initComponent:function(){var c=this,b=c.minValue,a=c.maxValue;if(b){c.setMinValue(b)}if(a){c.setMaxValue(a)}c.displayTpl=new Ext.XTemplate('<tpl for=".">{[typeof values === "string" ? values : this.formatDate(values["'+c.displayField+'"])]}<tpl if="xindex < xcount">'+c.delimiter+"</tpl></tpl>",{formatDate:c.formatDate.bind(c)});c.store=Ext.picker.Time.createStore(c.format,c.increment);Ext.form.field.ComboBox.prototype.initComponent.call(this);c.getPicker()},afterQuery:function(a){var b=this;Ext.form.field.ComboBox.prototype.afterQuery.call(this,a);if(b.value===null&&b.getRawValue()&&b.validateOnChange){b.validate()}},isEqual:function(g,e){var b=Ext.Array.from,d=Ext.Date.isEqual,c,a;g=b(g);e=b(e);a=g.length;if(a!==e.length){return false}for(c=0;c<a;c++){if(!(e[c] instanceof Date)||!(g[c] instanceof Date)||!d(e[c],g[c])){return false}}return true},setMinValue:function(c){var b=this,a=b.picker;b.setLimit(c,true);if(a){a.setMinValue(b.minValue)}},setMaxValue:function(c){var b=this,a=b.picker;b.setLimit(c,false);if(a){a.setMaxValue(b.maxValue)}},setLimit:function(b,g){var a=this,e,c;if(Ext.isString(b)){e=a.parseDate(b)}else{if(Ext.isDate(b)){e=b}}if(e){c=a.getInitDate();c.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}else{c=null}a[g?"minValue":"maxValue"]=c},getInitDate:function(a,b,d){var c=this.initDateParts;return new Date(c[0],c[1],c[2],a||0,b||0,d||0,0)},valueToRaw:function(a){return this.formatDate(this.parseDate(a))},getErrors:function(l){l=arguments.length>0?l:this.getRawValue();var g=this,k=Ext.String.format,j=Ext.form.field.ComboBox.prototype.getErrors.call(this,l),h=g.minValue,e=g.maxValue,c=g.displayTplData,m=g.getRawValue(),b,d,a,n;if(c&&c.length>0){for(b=0,d=c.length;b<d;b++){n=c[b];n=n.date||n.disp;a=g.parseDate(n);if(!a){j.push(k(g.invalidText,n,Ext.Date.unescapeFormat(g.format)));continue}}}else{if(m.length){a=g.parseDate(m);if(!a){j.push(k(g.invalidText,m,Ext.Date.unescapeFormat(g.format)))}}}if(!j.length){if(h&&a<h){j.push(k(g.minText,g.formatDate(h)))}if(e&&a>e){j.push(k(g.maxText,g.formatDate(e)))}}return j},formatDate:function(b){var d=[],c,a;b=Ext.Array.from(b);for(c=0,a=b.length;c<a;c++){d.push(Ext.form.field.Date.prototype.formatDate.call(this,b[c]))}return d.join(this.delimiter)},parseDate:function(e){var d=this,h=e,b=d.altFormats,g=d.altFormatsArray,c=0,a;if(e&&!Ext.isDate(e)){h=d.safeParse(e,d.format);if(!h&&b){g=g||b.split("|");a=g.length;for(;c<a&&!h;++c){h=d.safeParse(e,g[c])}}}if(h&&d.snapToIncrement){h=new Date(Ext.Number.snap(h.getTime(),d.increment*60*1000))}return h},safeParse:function(e,g){var d=this,b=Ext.Date,c,a=null;if(b.formatContainsDateInfo(g)){a=b.parse(e,g)}else{c=b.parse(d.initDate+" "+e,d.initDateFormat+" "+g);if(c){a=c}}return a},getSubmitValue:function(){var a=this,c=a.submitFormat||a.format,b=a.getValue();return b?Ext.Date.format(b,c):null},createPicker:function(){var a=this;a.listConfig=Ext.apply({xtype:"timepicker",pickerField:a,cls:undefined,minValue:a.minValue,maxValue:a.maxValue,increment:a.increment,format:a.format,maxHeight:a.pickerMaxHeight},a.listConfig);return Ext.form.field.ComboBox.prototype.createPicker.call(this)},completeEdit:function(){var a=this,b=a.getValue();Ext.form.field.ComboBox.prototype.completeEdit.apply(this,arguments);if(a.validateValue(b)){a.setValue(b)}},findRecordByValue:function(a){if(typeof a==="string"){a=this.parseDate(a)}return Ext.form.field.ComboBox.prototype.findRecordByValue.call(this,a)},rawToValue:function(g){var e=this,c,b,d,a;if(e.multiSelect){b=[];c=Ext.Array.from(g);for(d=0,a=c.length;d<a;d++){b.push(e.parseDate(c[d]))}return b}return e.parseDate(g)},setValue:function(a){var b=this;if(b.creatingPicker){return}b.getPicker();if(Ext.isDate(a)){a=b.getInitDate(a.getHours(),a.getMinutes(),a.getSeconds())}return Ext.form.field.ComboBox.prototype.setValue.call(this,a)},getValue:function(){return this.rawToValue(Ext.form.field.ComboBox.prototype.getValue.apply(this,arguments))}},0,["timefield"],["component","box","field","textfield","pickerfield","combobox","combo","timefield"],{component:true,box:true,field:true,textfield:true,pickerfield:true,combobox:true,combo:true,timefield:true},["widget.timefield"],0,[Ext.form.field,"Time",Ext.form,"TimeField",Ext.form,"Time"],0));(Ext.cmd.derive("Ext.form.field.Trigger",Ext.form.field.Text,{alternateClassName:["Ext.form.TriggerField","Ext.form.TwinTriggerField","Ext.form.Trigger"],triggerCls:"x-form-arrow-trigger",inheritableStatics:{warnDeprecated:function(){}},onClassExtended:function(){this.warnDeprecated()},constructor:function(a){this.self.warnDeprecated();Ext.form.field.Text.prototype.constructor.call(this,a)}},1,["trigger","triggerfield"],["component","box","field","textfield","triggerfield","trigger"],{component:true,box:true,field:true,textfield:true,triggerfield:true,trigger:true},["widget.trigger","widget.triggerfield"],0,[Ext.form.field,"Trigger",Ext.form,"TriggerField",Ext.form,"TwinTriggerField",Ext.form,"Trigger"],0));(Ext.cmd.derive("Ext.grid.CellContext",Ext.Base,{isCellContext:true,constructor:function(a){this.view=a},setPosition:function(c,a){var b=this;if(arguments.length===1){if(c.length){a=c[0];c=c[1]}else{if(c.isCellContext){return b.setAll(c.view,c.rowIdx,c.colIdx,c.record,c.columnHeader)}else{if(c.view){b.view=c.view}a=c.column;c=c.row}}}b.setRow(c);b.setColumn(a);return b},setAll:function(b,c,d,a,g){var e=this;e.view=b;e.rowIdx=c;e.colIdx=d;e.record=a;e.column=g;return e},setRow:function(c){var a=this,b=a.view.dataSource;if(c!==undefined){if(typeof c==="number"){a.rowIdx=Math.max(Math.min(c,b.getCount()-1),0);a.record=b.getAt(c)}else{if(c.isModel){a.record=c;a.rowIdx=b.indexOf(c)}else{if(c.tagName||c.isElement){a.record=a.view.getRecord(c);a.rowIdx=b.indexOf(a.record)}}}}return a},setColumn:function(a){var c=this,b=c.view.getVisibleColumnManager();if(a!==undefined){if(typeof a==="number"){c.colIdx=a;c.column=b.getHeaderAtIndex(a)}else{if(a.isHeader){c.column=a;c.colIdx=b.indexOf(a)}}}return c},getCell:function(a){return this.view.getCellByPosition(this,a)},getRow:function(b){var a=this.view.getRow(this.record);return b?a:Ext.get(a)},getNode:function(b){var a=this.view.getNode(this.record);return b?a:Ext.get(a)},isEqual:function(a){return(a&&a.isCellContext&&a.record===this.record&&a.column===this.column)},clone:function(){var b=this,a=new b.self(b.view);a.rowIdx=b.rowIdx;a.colIdx=b.colIdx;a.record=b.record;a.column=b.column;return a},statics:{compare:function(b,a){return b.rowIdx-a.rowIdx||b.colIdx-a.colIdx}}},1,0,0,0,0,0,[Ext.grid,"CellContext"],0));(Ext.cmd.derive("Ext.grid.CellEditor",Ext.Editor,{alignment:"l-l?",hideEl:false,cls:"x-small-editor x-grid-editor x-grid-cell-editor",treeNodeSelector:".x-tree-node-text",shim:false,shadow:false,useBoundValue:false,constructor:function(a){var b;this.y=0;a=Ext.apply({},a);b=a.field;if(b){b.monitorTab=false}Ext.Editor.prototype.constructor.call(this,a)},setGrid:function(c){var e=this,d=e.grid,a,b;if(c!==d){b={beforerefresh:e.beforeViewRefresh,refresh:e.onViewRefresh,scope:e};if(d){d.getView().un(b)}a=c.getView();e.renderTo=a.getTargetEl().dom;e.grid=c;a.on(b)}},afterFirstLayout:function(b,a){delete this.y;Ext.Editor.prototype.afterFirstLayout.call(this,b,a)},beforeViewRefresh:function(){var a=this,b=a.el&&a.el.dom;if(b){if(a.editing){a.grid.view.cellFocused=false;a.wasAllowBlur=a.allowBlur;a.allowBlur=false}if(b.parentNode){b.parentNode.removeChild(b)}}},onViewRefresh:function(){var a=this,b=a.el&&a.el.dom;if(b){if(a.editing){a.allowBlur=a.wasAllowBlur;a.renderTo.appendChild(b);a.grid.view.cellFocused=true;a.field.focus()}else{Ext.getDetachedBody().dom.appendChild(b)}}},startEdit:function(a,b){this.context=this.editingPlugin.context;Ext.Editor.prototype.startEdit.call(this,a,b)},onShow:function(){var a=this,b=a.boundEl.first();if(a.el.dom.parentNode!==a.renderTo){a.renderTo.appendChild(a.el.dom)}if(b){if(a.isForTree){b=b.child(a.treeNodeSelector)}b.hide()}Ext.Editor.prototype.onShow.apply(this,arguments)},completeEdit:function(a){var c=this,b=c.context;if(c.editing){b.value=c.value;if(c.editingPlugin.validateEdit(b)===false){if(b.cancel){b.value=c.originalValue;c.editingPlugin.cancelEdit()}return !!b.cancel}}Ext.Editor.prototype.completeEdit.call(this,a)},onEditComplete:function(a){if(a){this.restoreCell()}Ext.Editor.prototype.onEditComplete.apply(this,arguments)},onHide:function(){this.restoreCell();this.currentlyFocused=!!this.el.contains(Ext.Element.getActiveElement());Ext.Editor.prototype.onHide.apply(this,arguments)},restoreCell:function(){var a=this,b=a.boundEl.first();if(b){if(a.isForTree){b=b.child(a.treeNodeSelector)}b.show()}},afterRender:function(){var a=this,b=a.field;Ext.Editor.prototype.afterRender.apply(this,arguments);if(b.isCheckbox){b.mon(b.inputEl,{mousedown:a.onCheckBoxMouseDown,click:a.onCheckBoxClick,scope:a})}},onCheckBoxMouseDown:function(){this.completeEdit=Ext.emptyFn},onCheckBoxClick:function(){delete this.completeEdit;this.field.focus(false,10)},realign:function(d){var j=this,g=j.boundEl,h=g.first(),l=h.dom.firstChild,b=g.getWidth(),c=Ext.Array.clone(j.offsets),a=j.grid,i,k="",e=!l||(l.nodeType===3&&!(Ext.String.trim(k=l.data).length));if(j.isForTree){i=j.getTreeNodeOffset(h);b-=Math.abs(i);c[0]+=i}if(a.columnLines){b-=g.getBorderWidth("rl")}if(d===true){j.field.setWidth(b)}if(e){h.dom.innerHTML="X"}j.alignTo(h,j.alignment,c);if(e){h.dom.firstChild.data=k}},getTreeNodeOffset:function(a){return a.child(this.treeNodeSelector).getOffsetsTo(a)[0]},onEditorTab:function(b){var a=this.field;if(a.onEditorTab){a.onEditorTab(b)}},onFocusLeave:function(a){Ext.Editor.prototype.onFocusLeave.call(this,a);this.selectSameEditor=false},privates:{revertFocus:function(){this.previousFocus=null;Ext.Editor.prototype.revertFocus.call(this)}}},1,0,["component","box","container","editor"],{component:true,box:true,container:true,editor:true},0,0,[Ext.grid,"CellEditor"],0));Ext.define("Ext.rtl.grid.CellEditor",{override:"Ext.grid.CellEditor",getTreeNodeOffset:function(b){var a=arguments.callee.$previous.apply(this,arguments);if(this.editingPlugin.grid.isOppositeRootDirection()){a=-(b.getWidth()-a-b.child(this.treeNodeSelector).getWidth())}return a}});(Ext.cmd.derive("Ext.grid.ColumnComponentLayout",Ext.layout.component.Auto,{type:"columncomponent",setWidthInDom:true,_paddingReset:{paddingTop:"",paddingBottom:""},columnAutoCls:"x-column-header-text-container-auto",beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.titleContext=a.getEl("titleEl")},beginLayoutCycle:function(c){var b=this,a=b.owner,d=c.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(d){a.el.setWidth("")}a.textContainerEl[d&&!a.isGroupHeader?"addCls":"removeCls"](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(d,c){var b=this,a=b.owner,e;if(a.getRootHeaderCt().hiddenHeaders){d.setProp("innerHeight",0);return}if(!d.hasRawContent){if(a.headerWrap&&!d.hasDomProp("width")){b.done=false;return}e=c-d.getBorderInfo().height;d.setProp("innerHeight",e-a.titleEl.getHeight(),false)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp("innerWidth",b-a.getBorderInfo().width,false)}},calculateOwnerHeightFromContentHeight:function(d,c){var b=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),a=this.owner;if(!d.hasRawContent){if(!a.headerWrap||d.hasDomProp("width")){return c+a.titleEl.getHeight()+d.getBorderInfo().height}return null}return b},calculateOwnerWidthFromContentWidth:function(g,b){var a=this.owner,e=g.getPaddingInfo().width,d=this.getTriggerOffset(a,g),c;if(a.isGroupHeader){c=b}else{c=Math.max(b,a.textEl.getWidth()+g.titleContext.getPaddingInfo().width)}return c+e+d},getTriggerOffset:function(a,c){var b=0;if(c.widthModel.shrinkWrap&&!a.menuDisabled){if(a.query(">:not([hidden])").length===0){b=a.getTriggerElWidth()}}return b}},0,0,0,0,["layout.columncomponent"],0,[Ext.grid,"ColumnComponentLayout"],0));(Ext.cmd.derive("Ext.layout.container.Fit",Ext.layout.container.Container,{alternateClassName:"Ext.layout.FitLayout",itemCls:"x-fit-item",type:"fit",manageMargins:true,sizePolicies:[{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}],getItemSizePolicy:function(b,c){var a=c||this.owner.getSizeModel(),d=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[d]},beginLayoutCycle:function(k,g){var t=this,u=t.lastHeightModel&&t.lastHeightModel.calculated,h=t.lastWidthModel&&t.lastWidthModel.calculated,o=h||u,l=0,m=0,s,b,p,r,e,a,j,n,q,d;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(o&&k.targetContext.el.dom.tagName.toUpperCase()!=="TD"){o=h=u=false}b=k.childItems;e=b.length;for(p=0;p<e;++p){r=b[p];if(g){s=r.target;j=s.minHeight;n=s.minWidth;if(n||j){a=r.marginInfo||r.getMarginInfo();j+=a.height;n+=a.height;if(l<j){l=j}if(m<n){m=n}}}if(o){q=r.el.dom.style;if(u){q.height=""}if(h){q.width=""}}}if(g){k.maxChildMinHeight=l;k.maxChildMinWidth=m}s=k.target;k.overflowX=(!k.widthModel.shrinkWrap&&k.maxChildMinWidth&&s.scrollFlags.x)||d;k.overflowY=(!k.heightModel.shrinkWrap&&k.maxChildMinHeight&&s.scrollFlags.y)||d},calculate:function(g){var o=this,l=g.childItems,d=l.length,c=o.getContainerSize(g),e={length:d,ownerContext:g,targetSize:c},r=g.widthModel.shrinkWrap,m=g.heightModel.shrinkWrap,k=g.overflowX,h=g.overflowY,n,b,p,j,a,q;g.state.info=e;if(k||h){n=o.getScrollbarsNeeded(k&&c.width,h&&c.height,g.maxChildMinWidth,g.maxChildMinHeight);if(n){b=Ext.getScrollbarSize();if(n&1){c.height-=b.height}if(n&2){c.width-=b.width}}}if(d>0){for(j=0;j<d;++j){e.index=j;o.fitItem(l[j],e)}}else{e.contentWidth=e.contentHeight=0}if(m||r){p=g.targetContext.getPaddingInfo();if(r){if(h&&!c.gotHeight){o.done=false}else{a=e.contentWidth+p.width;if(n&2){a+=b.width}if(!g.setContentWidth(a)){o.done=false}}}if(m){if(k&&!c.gotWidth){o.done=false}else{q=e.contentHeight+p.height;if(n&1){q+=b.height}if(!g.setContentHeight(q)){o.done=false}}}}},fitItem:function(b,c){var a=this;if(b.invalid){a.done=false;return}c.margins=b.getMarginInfo();c.needed=c.got=0;a.fitItemWidth(b,c);a.fitItemHeight(b,c);if(c.got!==c.needed){a.done=false}},fitItemWidth:function(c,d){var a,b;if(d.ownerContext.widthModel.shrinkWrap){b=c.getProp("width")+d.margins.width;a=d.contentWidth;if(a===undefined){d.contentWidth=b}else{d.contentWidth=Math.max(a,b)}}else{if(c.widthModel.calculated){++d.needed;if(d.targetSize.gotWidth){++d.got;this.setItemWidth(c,d)}else{return}}}this.positionItemX(c,d)},fitItemHeight:function(c,d){var b,a;if(d.ownerContext.heightModel.shrinkWrap){a=c.getProp("height")+d.margins.height;b=d.contentHeight;if(b===undefined){d.contentHeight=a}else{d.contentHeight=Math.max(b,a)}}else{if(c.heightModel.calculated){++d.needed;if(d.targetSize.gotHeight){++d.got;this.setItemHeight(c,d)}else{return}}}this.positionItemY(c,d)},positionItemX:function(a,c){var b=c.margins;if(c.index||b.left){a.setProp("x",b.left)}if(b.width&&c.ownerContext.widthModel.shrinkWrap){a.setProp("margin-right",b.width)}},positionItemY:function(a,c){var b=c.margins;if(c.index||b.top){a.setProp("y",b.top)}if(b.height&&c.ownerContext.heightModel.shrinkWrap){a.setProp("margin-bottom",b.height)}},setItemHeight:function(a,b){a.setHeight(b.targetSize.height-b.margins.height)},setItemWidth:function(a,b){a.setWidth(b.targetSize.width-b.margins.width)}},0,0,0,0,["layout.fit"],0,[Ext.layout.container,"Fit",Ext.layout,"FitLayout"],0));(Ext.cmd.derive("Ext.panel.Table",Ext.panel.Panel,{extraBaseCls:"x-grid",extraBodyCls:"x-grid-body",defaultBindProperty:"store",layout:"fit",ariaRole:"grid",config:{selection:null},publishes:["selection"],twoWayBindable:["selection"],autoLoad:false,variableRowHeight:false,numFromEdge:2,trailingBufferZone:10,leadingBufferZone:20,hasView:false,viewType:null,deferRowRender:false,sortableColumns:true,multiColumnSort:false,enableLocking:false,scrollerOwner:true,enableColumnMove:true,sealedColumns:false,enableColumnResize:true,rowLines:true,bufferedRenderer:true,ownerGrid:null,colLinesCls:"x-grid-with-col-lines",rowLinesCls:"x-grid-with-row-lines",noRowLinesCls:"x-grid-no-row-lines",hiddenHeaderCtCls:"x-grid-header-ct-hidden",hiddenHeaderCls:"x-grid-header-hidden",resizeMarkerCls:"x-grid-resize-marker",emptyCls:"x-grid-empty",focusable:true,constructor:function(b){var c=this,a;c.ownerGrid=(b&&b.ownerGrid)||c;Ext.panel.Panel.prototype.constructor.call(this,b);a=this.store;a.trackStateChanges=true;if(c.autoLoad){a.unblockLoad();if(!a.isEmptyStore){a.load()}}},initComponent:function(){var h=this,e=h.columns||h.colModel||[],k=h.store=Ext.data.StoreManager.lookup(h.store||"ext-empty-store"),j,d,g,l,c,b,a;h.enableLocking=h.enableLocking||h.hasLockedColumns(e);if(h.autoLoad){h.store.blockLoad()}if(h.plugins){h.plugins=h.constructPlugins()}if(h.columnLines){h.addBodyCls(h.colLinesCls)}h.addBodyCls(h.rowLines?h.rowLinesCls:h.noRowLinesCls);h.addBodyCls(h.extraBodyCls);if(h.enableLocking){h.self.mixin("lockable",Ext.grid.locking.Lockable);h.injectLockable();a=h.headerCt}else{if(e.isRootHeader){if(h.hideHeaders){e.setHeight(0);e.hiddenHeaders=true}h.headerCt=a=e;a.grid=h;a.forceFit=!!h.forceFit;a.$initParent=h;h.columnManager=e.columnManager;h.visibleColumnManager=e.visibleColumnManager}else{if(Ext.isArray(e)){e={items:e}}Ext.apply(e,{grid:h,$initParent:h,forceFit:h.forceFit,sortable:h.sortableColumns,enableColumnMove:h.enableColumnMove,enableColumnResize:h.enableColumnResize,columnLines:h.columnLines,sealed:h.sealedColumns});if(h.hideHeaders){e.height=0;e.hiddenHeaders=true}if(Ext.isDefined(h.enableColumnHide)){e.enableColumnHide=h.enableColumnHide}h.headerCt=a=new Ext.grid.header.Container(e)}a.setScrollable({x:false,y:false})}h.columns=c=h.headerCt.getGridColumns();h.scrollTask=new Ext.util.DelayedTask(h.syncHorizontalScroll,h);h.cls=(h.cls||"")+(" "+h.extraBaseCls);delete h.autoScroll;l=h.plugins&&Ext.Array.findBy(h.plugins,function(i){return i.isBufferedRenderer});if(l){h.bufferedRenderer=l}if(!h.hasView){if(k.isBufferedStore&&!k.getRemoteSort()){for(d=0,g=c.length;d<g;d++){c[d].sortable=false}}if(h.hideHeaders){h.headerCt.addCls(h.hiddenHeaderCtCls);h.addCls(h.hiddenHeaderCls)}h.relayHeaderCtEvents(a);h.features=h.features||[];if(!Ext.isArray(h.features)){h.features=[h.features]}h.dockedItems=[].concat(h.dockedItems||[]);h.dockedItems.unshift(a);h.viewConfig=h.viewConfig||{};j=h.getView();h.items=[j];h.hasView=true;if(!h.hideHeaders){b=j.getScrollable();if(b){a.getScrollable().addPartner(b,"x")}}h.bindStore(k,true);h.mon(j,{viewready:h.onViewReady,refresh:h.onRestoreHorzScroll,scope:h})}h.selModel=h.view.getSelectionModel();if(h.selModel.isRowModel){h.selModel.on({scope:h,lastselectedchanged:h.updateBindSelection,selectionchange:h.updateBindSelection})}h.relayEvents(h.view,["beforeitemmousedown","beforeitemmouseup","beforeitemmouseenter","beforeitemmouseleave","beforeitemclick","beforeitemdblclick","beforeitemcontextmenu","itemmousedown","itemmouseup","itemmouseenter","itemmouseleave","itemclick","itemdblclick","itemcontextmenu","beforecellclick","cellclick","beforecelldblclick","celldblclick","beforecellcontextmenu","cellcontextmenu","beforecellmousedown","cellmousedown","beforecellmouseup","cellmouseup","beforecellkeydown","cellkeydown","rowclick","rowdblclick","rowcontextmenu","rowmousedown","rowmouseup","rowkeydown","beforeitemkeydown","itemkeydown","beforeitemkeyup","itemkeyup","beforeitemkeypress","itemkeypress","beforecontainermousedown","beforecontainermouseup","beforecontainermouseover","beforecontainermouseout","beforecontainerclick","beforecontainerdblclick","beforecontainercontextmenu","beforecontainerkeydown","beforecontainerkeyup","beforecontainerkeypress","containermouseup","containermousedown","containermouseover","containermouseout","containerclick","containerdblclick","containercontextmenu","containerkeydown","containerkeyup","containerkeypress","selectionchange","beforeselect","select","beforedeselect","deselect"]);Ext.panel.Panel.prototype.initComponent.call(this);if(h.enableLocking){h.afterInjectLockable()}else{delete a.$initParent}h.addStateEvents(["columnresize","columnmove","columnhide","columnshow","sortchange","filterchange","groupchange"])},beforeRender:function(){var a=this,b=a.bufferedRenderer;if(!a.lockable){if(b&&a.getSizeModel().height.auto){a.bufferedRenderer=b=false}if(b&&!b.isBufferedRenderer){b={xclass:"Ext.grid.plugin.BufferedRenderer"};Ext.copy(b,a,"variableRowHeight,numFromEdge,trailingBufferZone,leadingBufferZone,scrollToLoadBuffer");a.bufferedRenderer=a.addPlugin(b)}}Ext.panel.Panel.prototype.beforeRender.apply(this,arguments)},onHide:function(c,a,b){this.getView().onOwnerGridHide();Ext.panel.Panel.prototype.onHide.call(this,c,a,b)},onShow:function(){Ext.panel.Panel.prototype.onShow.call(this);this.getView().onOwnerGridShow()},getHeaderContainer:function(){return this.getView().getHeaderCt()},getColumns:function(){return this.getColumnManager().getColumns()},getVisibleColumns:function(){return this.getVisibleColumnManager().getColumns()},focus:function(){this.getView().focus()},disableColumnHeaders:function(){this.headerCt.disable()},enableColumnHeaders:function(){this.headerCt.enable()},hasLockedColumns:function(c){var b,a,d;if(c.isRootHeader){c=c.items.items}else{if(Ext.isObject(c)){c=c.items}}for(b=0,a=c.length;b<a;b++){d=c[b];if(!d.processed&&d.locked){return true}}},relayHeaderCtEvents:function(a){this.relayEvents(a,["columnresize","columnmove","columnhide","columnshow","columnschanged","sortchange","headerclick","headercontextmenu","headertriggerclick"])},getState:function(){var b=this,c=Ext.panel.Panel.prototype.getState.call(this),a=b.store.getState();c=b.addPropertyToState(c,"columns",b.headerCt.getColumnsState());if(a){c.storeState=a}return c},applyState:function(e){var d=this,g=e.sort,a=e.storeState,b=d.store,c=e.columns;delete e.columns;Ext.panel.Panel.prototype.applyState.apply(this,arguments);if(c){d.headerCt.applyColumnsState(c)}if(g){if(b.getRemoteSort()){b.sort({property:g.property,direction:g.direction,root:g.root},null,false)}else{b.sort(g.property,g.direction)}}else{if(a){b.applyState(a)}}},getStore:function(){return this.store},getView:function(){var c=this,a,d,b;if(!c.view){b=c.viewConfig;a=b.scroll||c.scroll;d=c.scrollable;if(d==null&&b.scrollable==null&&a!==null){if(a===true||a==="both"){d=true}else{if(a===false||a==="none"){d=false}else{if(a==="vertical"){d={x:false,y:true}}else{if(a==="horizontal"){d={x:true,y:false}}}}}}b=Ext.apply({grid:c,ownerGrid:c.ownerGrid,deferInitialRefresh:c.deferRowRender,variableRowHeight:c.variableRowHeight,preserveScrollOnRefresh:true,trackOver:c.trackMouseOver!==false,throttledUpdate:c.throttledUpdate===true,xtype:c.viewType,store:c.store,headerCt:c.headerCt,columnLines:c.columnLines,rowLines:c.rowLines,navigationModel:"grid",features:c.features,panel:c,emptyText:c.emptyText||""},c.viewConfig);if(!("scrollable" in b||"scroll" in b||"autoScroll" in b)&&d!=null){b.scrollable=d;c.scrollable=null}Ext.create(b);if(c.view.emptyText){c.view.emptyText='<div class="'+c.emptyCls+'">'+c.view.emptyText+"</div>"}c.view.getComponentLayout().headerCt=c.headerCt;c.mon(c.view,{uievent:c.processEvent,scope:c});c.headerCt.view=c.view;if(c.hasListeners.viewcreated){c.fireEvent("viewcreated",c,c.view)}}return c.view},getColumnManager:function(){return this.columnManager},getVisibleColumnManager:function(){return this.visibleColumnManager},getTopLevelColumnManager:function(){return this.ownerGrid.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},setAutoScroll:Ext.emptyFn,applyScrollable:function(a){if(this.view){this.view.setScrollable(a)}},processEvent:function(g,i,j,a,h,d,c,k){var b=d.position.column;if(b){return b.processEvent.apply(b,arguments)}},ensureVisible:function(a,b){this.doEnsureVisible(a,b)},scrollByDeltaY:function(b,a){this.getView().scrollBy(0,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,0,a)},afterCollapse:function(){this.saveScrollPos();Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){Ext.panel.Panel.prototype.afterExpand.apply(this,arguments);this.restoreScrollPos()},saveScrollPos:Ext.emptyFn,restoreScrollPos:Ext.emptyFn,onHeaderResize:Ext.emptyFn,onHeaderMove:function(e,g,a,b,d){var c=this;if(c.optimizedColumnMove===false){c.view.refreshView()}else{c.view.moveColumn(b,d,a)}c.delayScroll()},onHeaderHide:function(c,d,b){var a=this.view;if(!c.childHideCount&&a.refreshCounter){a.refreshView()}},onHeaderShow:function(b,c){var a=this.view;if(a.refreshCounter){a.refreshView()}},onHeadersChanged:function(b,c){var a=this;if(a.rendered&&!a.reconfiguring){a.view.refreshView();a.delayScroll()}},delayScroll:function(){var a=this.view;if(a){this.scrollTask.delay(10,null,null,[a])}},onViewReady:function(){this.fireEvent("viewready",this)},onRestoreHorzScroll:function(){var b=this,a=b.scrollXPos;if(a){b.syncHorizontalScroll(b,true)}},getScrollerOwner:function(){var a=this;if(!this.scrollerOwner){a=this.up("[scrollerOwner]")}return a},getLhsMarker:function(){var a=this;return a.lhsMarker||(a.lhsMarker=Ext.DomHelper.append(a.el,{role:"presentation",cls:a.resizeMarkerCls},true))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:"presentation",cls:a.resizeMarkerCls},true))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(a){var b=this,c;if(!b.ignoreNextSelection){b.ignoreNextSelection=true;c=b.getSelectionModel();if(a){c.select(a)}else{c.deselectAll()}b.ignoreNextSelection=false}},updateBindSelection:function(a,c){var d=this,b=null;if(!d.ignoreNextSelection){d.ignoreNextSelection=true;if(c.length){b=a.getLastSelected();d.hasHadSelection=true}if(d.hasHadSelection){d.setSelection(b)}d.ignoreNextSelection=false}},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var a=this.getScrollerOwner().query("tableview");return a[a.length-1]},syncHorizontalScroll:function(e,c){var d=this,a=d.view.getScrollX(),b;c=c===true;if(d.rendered&&(c||a!==d.scrollXPos)){if(c){b=d.getScrollTarget();b.setScrollX(a)}d.headerCt.setScrollX(a);d.scrollXPos=a}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,c){var d=this,a=d.getView();if(b){d.store=b;if(a.store!==b){a.bindStore(b,false)}d.mon(b,{load:d.onStoreLoad,scope:d});d.storeRelayers=d.relayEvents(b,["filterchange","groupchange"])}else{d.unbindStore()}},unbindStore:function(){var c=this,b=c.store,a;if(b){c.store=null;c.mun(b,{load:c.onStoreLoad,scope:c});Ext.destroy(c.storeRelayers);a=c.view;if(a.store){a.bindStore(null)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(a){this.reconfigure(a,undefined,true);if(a&&this.autoLoad&&!a.isEmptyStore&&!(a.loading||a.isLoaded())){a.load()}},reconfigure:function(l,c,g){var i=this,a=i.store,b=i.headerCt,k=i.lockable,e=b?b.items.getRange():i.columns,j=i.getView(),d,h;if(arguments.length===1&&Ext.isArray(l)){c=l;l=null}if(c){c=Ext.Array.slice(c)}i.reconfiguring=true;if(l){l=Ext.StoreManager.lookup(l)}i.fireEvent("beforereconfigure",i,l,c,a,e);Ext.suspendLayouts();if(k){i.reconfigureLockable(l,c,g)}else{d=j.blockRefresh;j.blockRefresh=true;if(!l&&g){l=Ext.StoreManager.lookup("ext-empty-store")}if(l&&l!==a){i.unbindStore();i.bindStore(l)}if(c){delete i.scrollXPos;b.removeAll();b.add(c)}j.blockRefresh=d;h=j.refreshCounter}Ext.resumeLayouts(true);if(k){i.afterReconfigureLockable()}else{if(j.refreshCounter===h){j.refreshView()}}i.fireEvent("reconfigure",i,l,c,a,e);delete i.reconfiguring},beforeDestroy:function(){var b=this,a=b.scrollTask;if(a){a.cancel();b.scrollTask=null}Ext.destroy(b.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;if(a.lockable){a.destroyLockable()}a.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);a.columns=a.storeRelayers=a.columnManager=a.visibleColumnManager=null},destroy:function(){var a=this;Ext.panel.Panel.prototype.destroy.call(this);if(a.isDestroyed){a.view=a.selModel=a.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(e,o){if(this.lockable){return this.ensureLockedVisible(e,o)}if(typeof e!=="number"&&!e.isEntity){e=this.store.getById(e)}var g=this,i=g.getView(),d=i.getNode(e),l,m,a,b,j,n,h,c,k;if(o){l=o.callback;m=o.scope;a=o.animate;b=o.highlight;j=o.select;n=o.focus;c=o.column}if(g.deferredEnsureVisible){g.deferredEnsureVisible.destroy()}if(!i.componentLayoutCounter){g.deferredEnsureVisible=i.on({resize:g.doEnsureVisible,args:Ext.Array.slice(arguments),scope:g,single:true,destroyable:true});return}if(typeof c==="number"){c=g.ownerGrid.getVisibleColumnManager().getColumns()[c]}if(d){h=i.getScrollable();if(c){k=Ext.fly(d).selectNode(c.getCellSelector())}if(h){h.scrollIntoView(k||d,!!c,a,b)}if(!e.isEntity){e=i.getRecord(d)}if(j){i.getSelectionModel().select(e)}if(n){i.getNavigationModel().setPosition(e,0)}Ext.callback(l,m||g,[true,e,d])}else{if(i.bufferedRenderer){i.bufferedRenderer.scrollTo(e,{animate:a,highlight:b,select:j,focus:n,column:c,callback:function(r,p,q){Ext.callback(l,m||g,[true,p,q])}})}else{Ext.callback(l,m||g,[false,null])}}},getFocusEl:function(){return this.getView().getFocusEl()}}},1,["tablepanel"],["component","box","container","panel","tablepanel"],{component:true,box:true,container:true,panel:true,tablepanel:true},["widget.tablepanel"],0,[Ext.panel,"Table"],0));(Ext.cmd.derive("Ext.grid.ColumnLayout",Ext.layout.container.HBox,{type:"gridcolumn",firstHeaderCls:"x-column-header-first",lastHeaderCls:"x-column-header-last",initLayout:function(){Ext.layout.container.HBox.prototype.initLayout.call(this);if(this.scrollbarWidth===undefined){this.self.prototype.scrollbarWidth=Ext.getScrollbarSize().width}},beginLayout:function(c){var j=this,a=j.owner,k=a.grid?a.grid.getView():null,d=j.firstHeaderCls,m=j.lastHeaderCls,b=[d,m],h=j.getVisibleItems(),g=h.length,e,l;if(k&&k.scrollFlags.x){j.viewScrollX=k.getScrollX();a.suspendEvent("scroll");k.suspendEvent("scroll")}Ext.layout.container.HBox.prototype.beginLayout.call(this,c);for(e=0;e<g;e++){l=h[e];if(g===1){l.addCls(b)}else{if(e===0){l.addCls(d);l.removeCls(m)}else{if(e===g-1){l.removeCls(d);l.addCls(m)}else{l.removeCls(b)}}}}j.scrollbarWidth=0;if(a.isRootHeader){j.determineScrollbarWidth(c)}if(!j.scrollbarWidth){c.manageScrollbar=false}},moveItemBefore:function(b,d){var a=b.ownerCt,c=d&&d.nextSibling();if(b!==d&&a){a.remove(b,false);if(d&&d.isDestroyed){d=c}}return Ext.layout.container.HBox.prototype.moveItemBefore.call(this,b,d)},determineScrollbarWidth:function(h){var g=this,a=g.owner,e=a.grid,c=a.reserveScrollbar===false,b=e.reserveScrollbar&&!c,d=!b&&!c&&e.view.scrollFlags.y;h.manageScrollbar=d;if(!e.ownerGrid.collapsed&&(b||d)){delete g.scrollbarWidth}},calculate:function(d){var p=this,a=p.owner.grid,l=d.viewContext,b=d.state,c=d.context,k,q,m,h,o,n,g,j,e;Ext.layout.container.HBox.prototype.calculate.call(this,d);if(a&&b.parallelDone){k=l.lockingPartnerContext;q=a.ownerGrid;if(q.forceFit&&!b.reflexed){if(p.convertWidthsToFlexes(d)){p.cacheFlexes(d);p.done=false;d.invalidate({state:{reflexed:true,scrollbarAdjustment:p.getScrollbarAdjustment(d)}});return}}if((m=b.columnsChanged)===undefined){h=d.target.getVisibleGridColumns();m=false;for(n=0,o=h.length;n<o;n++){g=c.getCmp(h[n]);if(!g.lastBox||g.props.width!==g.lastBox.width){(m||(m=[]))[n]=g}}b.columnsChanged=m;d.setProp("columnsChanged",m)}if(d.manageScrollbar){j=p.getScrollbarAdjustment(d);if(j){e=l.getProp("viewOverflowY");if(e===undefined){p.done=false;return}if(!e){if(k){k.invalidate();k.headerContext.invalidate()}l.invalidate();d.invalidate({state:{scrollbarAdjustment:0}})}}}}},finishedLayout:function(d){var c=this,a=c.owner,b=a.grid?a.grid.getView():null,e=c.viewScrollX;Ext.layout.container.HBox.prototype.finishedLayout.call(this,d);if(b&&b.scrollFlags.x){if(e!==undefined&&a.tooNarrow&&a.componentLayoutCounter){a.setScrollX(e)}b.resumeEvent("scroll");a.resumeEvent("scroll")}d.props.columnsChanged=null},convertWidthsToFlexes:function(a){var g=this,d=0,h=g.sizeModels.calculated,c,e,b,k,j;c=a.childItems;e=c.length;for(b=0;b<e;b++){k=c[b];j=k.target;d+=k.props.width;if(!(j.fixed||j.resizable===false)){j.flex=a.childItems[b].flex=k.props.width;j.width=null;k.widthModel=h}}return d!==a.props.width},getScrollbarAdjustment:function(d){var b=this,c=d.state,a=b.owner.grid,e=c.scrollbarAdjustment;if(e===undefined){e=0;if(a.reserveScrollbar||(d.manageScrollbar&&!a.ownerGrid.layout.ownerContext.heightModel.shrinkWrap)){e=b.scrollbarWidth}c.scrollbarAdjustment=e}return e},getContainerSize:function(b){var e=this,g,i,h,c,d,a,j,k;if(e.owner.isRootHeader){k=Ext.layout.container.HBox.prototype.getContainerSize.call(this,b);if(k.gotWidth){k.width-=e.getScrollbarAdjustment(b)}}else{h=b.paddingContext.getPaddingInfo();g=i=0;if(!b.widthModel.shrinkWrap){++i;a=b.getProp("innerWidth");c=(typeof a==="number");if(c){++g;a-=h.width;if(a<0){a=0}}}if(!b.heightModel.shrinkWrap){++i;j=b.getProp("innerHeight");d=(typeof j==="number");if(d){++g;j-=h.height;if(j<0){j=0}}}return{width:a,height:j,needed:i,got:g,gotAll:g===i,gotWidth:c,gotHeight:d}}return k},publishInnerCtSize:function(e){var d=this,a=d.owner,b=e.peek("contentWidth"),c=0;if(b!=null&&a.isRootHeader){c=-e.state.scrollbarAdjustment}return Ext.layout.container.HBox.prototype.publishInnerCtSize.call(this,e,c)}},0,0,0,0,["layout.gridcolumn"],0,[Ext.grid,"ColumnLayout"],0));Ext.define("Ext.rtl.grid.ColumnLayout",{override:"Ext.grid.ColumnLayout",determineScrollbarWidth:function(c){var b=this,a=b.owner.grid.view;arguments.callee.$previous.call(this,c);if(a.getInherited().rtl){if(a.bufferedRenderer&&Ext.supports.xOriginBug){b.scrollbarWidth=-Math.abs(b.scrollbarWidth)}else{if(Ext.supports.rtlVertScrollbarOverflowBug||Ext.supports.rtlVertScrollbarOnRight){b.scrollbarWidth=0}}}},calculateParallel:function(c,e,d){var b=this,a=b.owner;if(a.isRootHeader){if((Ext.supports.rtlVertScrollbarOnRight&&a.ownerCt.view.getInherited().rtl)||(a.grid.view.bufferedRenderer&&Ext.supports.xOriginBug)){b.padding.right=b.scrollbarWidth}}return(arguments.callee.$previous||Ext.layout.container.HBox.prototype.calculateParallel).apply(this,arguments)}});(Ext.cmd.derive("Ext.grid.ColumnManager",Ext.Base,{alternateClassName:["Ext.grid.ColumnModel"],columns:null,constructor:function(b,c,a){this.headerCt=c;if(a){this.secondHeaderCt=a}this.visibleOnly=!!b},getColumns:function(){if(!this.columns){this.cacheColumns()}return this.columns},hasVariableRowHeight:function(){var d=this,c=d.getColumns(),a=c.length,b;if(d.variableRowHeight==null){d.variableRowHeight=false;for(b=0;!d.variableRowHeight&&b<a;b++){d.variableRowHeight=!!c[b].variableRowHeight}}return d.variableRowHeight},getHeaderIndex:function(a){if(a.isGroupHeader){a=this.getHeaderColumns(a)[0]}return Ext.Array.indexOf(this.getColumns(),a)},getHeaderAtIndex:function(b){var c=this.getColumns(),a=c[b];return a||null},getPreviousSibling:function(c){var b=this.getHeaderIndex(c),a=null;if(b>0){a=this.getColumns()[b-1]}return a},getNextSibling:function(c){var b=this.getHeaderIndex(c),a;if(b!==-1){a=this.getColumns()[b+1]}return a||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var b=this.getColumns(),a=b.length;return a>0?b[a-1]:null},getHeaderByDataIndex:function(d){var c=this.getColumns(),a=c.length,b,e;for(b=0;b<a;++b){e=c[b];if(e.dataIndex===d){return e}}return null},getHeaderById:function(e){var c=this.getColumns(),a=c.length,b,d;for(b=0;b<a;++b){d=c[b];if(d.getItemId()===e){return d}}return null},getVisibleHeaderClosestToIndex:function(b){var a=this.getHeaderAtIndex(b);if(a&&a.hidden){a=a.next(":not([hidden])")||a.prev(":not([hidden])")}return a},cacheColumns:function(){var b=this.getHeaderColumns(this.headerCt),a=this.secondHeaderCt;if(a){b=b.concat(this.getHeaderColumns(a))}this.columns=b},getHeaderColumns:function(b){var a=this.visibleOnly?b.getVisibleGridColumns():b.getGridColumns();return Ext.Array.clone(a)},invalidate:function(){var a=this.rootColumns;this.columns=this.variableRowHeight=null;if(a){a.invalidate()}},destroy:function(){this.columns=this.rootColumns=null}},1,0,0,0,0,0,[Ext.grid,"ColumnManager",Ext.grid,"ColumnModel"],function(){this.createAlias("indexOf","getHeaderIndex")}));(Ext.cmd.derive("Ext.grid.NavigationModel",Ext.view.NavigationModel,{focusCls:"x-grid-item-focused",getViewListeners:function(){var a=this;return{containermousedown:a.onContainerMouseDown,cellmousedown:a.onCellMouseDown,cellclick:a.onCellClick,itemmousedown:a.onItemMouseDown,itemclick:a.onItemClick,itemcontextmenu:a.onItemClick,scope:a}},initKeyNav:function(a){var b=this;b.position=new Ext.grid.CellContext(a);b.keyNav=new Ext.util.KeyNav({target:a,ignoreInputFields:true,eventName:"itemkeydown",defaultEventAction:"stopEvent",processEvent:function(d,c,h,e,g){return g},up:b.onKeyUp,down:b.onKeyDown,right:b.onKeyRight,left:b.onKeyLeft,pageDown:b.onKeyPageDown,pageUp:b.onKeyPageUp,home:b.onKeyHome,end:b.onKeyEnd,tab:b.onKeyTab,space:b.onKeySpace,enter:b.onKeyEnter,A:{ctrl:true,handler:b.onSelectAllKeyPress},scope:b})},onKeyTab:function(d){var a=d.position.view,c=a.getSelectionModel(),b=a.editingPlugin;if(b&&c.wasEditing){d.preventDefault();c.onEditorTab(b,d)}else{return Ext.view.NavigationModel.prototype.onKeyTab.call(this,d)}},onCellMouseDown:function(i,k,h,e,l,d,b){var j=b.parentEvent,a=Ext.Component.fromElement(b.target,k),c=b.position&&b.position.column,g=i.grid.findPlugin("cellediting");if(a&&a.isFocusable&&a.isFocusable()){if(!g||!g.editing){a.focus()}if(c&&c.stopSelection!==false){return}}if(!j||j.type!=="touchstart"){b.preventDefault();this.setPosition(b.position,null,b)}},onCellClick:function(i,j,g,c,l,b,k){var e=this,d=i.grid.findPlugin("cellediting"),a=k.position.column;if(d&&d.editing&&k.position.isEqual(d.context)){e.fireEvent("navigate",{view:i,navigationModel:e,keyEvent:k,previousPosition:e.previousPosition,previousRecordIndex:e.previousRecordIndex,previousRecord:e.previousRecord,previousItem:e.previousItem,previousCell:e.previousCell,previousColumnIndex:e.previousColumnIndex,previousColumn:e.previousColumn,position:k.position,recordIndex:k.position.rowIdx,record:k.position.record,selectionStart:e.selectionStart,item:k.item,cell:k.position.cellElement,columnIndex:k.position.colIdx,column:k.position.column})}else{var h=Ext.Component.fromElement(k.target,j);e.preventCellFocus=h&&h.focusable&&h.isFocusable();if(e.position.isEqual(k.position)||(e.preventCellFocus&&a&&a.stopSelection!==false)){e.fireNavigateEvent(k)}else{e.setPosition(k.position,null,k)}e.preventCellFocus=false}},onItemMouseDown:function(m,g,p,j,a){var k=this,n,d,h,e,c,l,o=a.parentEvent;if(!o||o.type!=="touchstart"){if(!a.position.cellElement){n=a.getX();d=m.getVisibleColumnManager().getColumns();h=d.length;for(e=0;e<h;e++){c=d[e];l=d[e].getBox();if(n>=l.left&&n<l.right){k.setPosition(g,d[e],a);return}}}}},onItemClick:function(c,b,e,d,a){if(!a.position.cellElement){this.fireNavigateEvent(a)}},beforeViewRefresh:function(b){var a=this.getPosition();if(a&&a.view===b){this.focusRestorePosition=a.clone()}else{this.focusRestorePosition=null}},onStoreRemove:function(c,b,d,a){var e=this.position;if(e.rowIdx&&d+b.length-1<=e.rowIdx){this.setPosition(e.rowIdx-1,null,null,null,true)}},deferSetPosition:function(c,b,d,g,a,h){var e=this.view.getFocusTask();e.delay(c,this.setPosition,this,[b,d,g,a,h]);return e},setPosition:function(g,m,n,r,i){var o=this,q,k,j,a,c,b,d,l,h,p=g==null&&m==null,e=o.record==null&&o.recordIndex==null&&o.item==null;if(g&&g.isCellContext){q=g.view}else{if(n&&n.view){q=n.view}else{if(o.lastFocused){q=o.lastFocused.view}else{q=o.view}}}q.getFocusTask().cancel();if(q.isDestroyed||!q.refreshCounter||!q.ownerCt||p&&e||!q.all.getCount()){return}j=q.getSelectionModel();a=q.dataSource;c=q.getVisibleColumnManager();if(g&&g.isCellContext){l=g.record;b=g.rowIdx;d=g.colIdx;h=g.column;if(a.indexOf(l)===-1){k=q.getScrollable();o.recordIndex=-1;if(k.getPosition().y>=k.getMaxPosition().y-q.all.last(true).offsetHeight){g.rowIdx--}b=Math.min(g.rowIdx,a.getCount()-1);d=Math.min(d,c.getColumns().length);l=a.getAt(b);h=c.getColumns()[d]}}else{if(p){l=b=null}else{if(m==null){m=o.lastFocused?o.lastFocused.column:0}if(typeof g==="number"){b=Math.max(Math.min(g,a.getCount()-1),0);l=a.getAt(g)}else{if(g.isEntity){l=g;b=a.indexOf(l)}else{if(g.tagName){l=q.getRecord(g);b=a.indexOf(l);if(b===-1){l=null}}else{if(e){return}p=true;l=b=null}}}}if(l){if(b===-1){o.recordIndex=-1;l=a.getAt(0);b=0;m=null}if(m==null){if(!(h=o.column)){d=0;h=c.getColumns()[0]}}else{if(typeof m==="number"){h=c.getColumns()[m];d=m}else{h=m;d=c.indexOf(m)}}}else{p=true;h=d=null}}if(b===o.recordIndex&&d===o.columnIndex){return o.focusPosition(o.position)}if(o.cell){o.cell.removeCls(o.focusCls)}o.previousRecordIndex=o.recordIndex;o.previousRecord=o.record;o.previousItem=o.item;o.previousCell=o.cell;o.previousColumn=o.column;o.previousColumnIndex=o.columnIndex;o.previousPosition=o.position.clone();o.selectionStart=j.selectionStart;o.position.setAll(q,o.recordIndex=b,o.columnIndex=d,o.record=l,o.column=h);if(p){o.item=o.cell=null}else{o.focusPosition(o.position,i)}if(!r){j.fireEvent("focuschange",j,o.previousRecord,o.record);q.fireEvent("rowfocus",o.record,o.item,o.recordIndex);q.fireEvent("cellfocus",o.record,o.cell,o.position)}if(n&&!i&&o.cell!==o.previousCell){o.fireNavigateEvent(n)}},focusPosition:function(a){var c=this,b,d;c.item=c.cell=null;if(a&&a.record&&a.column){b=a.view;if(a.rowElement){d=c.item=a.rowElement}else{d=b.getRowByRecord(a.record)}if(d){c.cell=a.cellElement||Ext.fly(d).down(a.column.getCellSelector(),true);if(c.cell){c.cell=new Ext.dom.Fly(c.cell);b.lastFocused=c.lastFocused=c.position.clone();c.focusItem(c.cell);b.focusEl=c.cell}else{c.position.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}}else{d=b.dataSource.indexOf(a.record);c.position.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null;if(d!==-1&&b.bufferedRenderer){c.lastKeyEvent=null;b.bufferedRenderer.scrollTo(d,false,c.afterBufferedScrollTo,c)}}}},focusItem:function(a){a.addCls(this.focusCls);if(!this.preventCellFocus){a.focus()}},getCell:function(){return this.cell},getPosition:function(){var d=this,a=d.position,c,b,e;if(a.record&&a.column){b=a.view;e=b.dataSource;c=e.indexOf(a.record);if(c===-1){c=a.rowIdx;if(!e.getAt(c)){c=-1}}if(c===-1||b.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();d.record=d.column=d.recordIndex=d.columnIndex=null}else{return a}}return null},getLastFocused:function(){var c=this,a,b=c.lastFocused;if(b&&b.record&&b.column){a=b.view;if(a.dataSource.indexOf(b.record)!==-1&&a.getVisibleColumnManager().indexOf(b.column)!==-1){return b}}},onKeyUp:function(b){var a=b.view.walkRecs(b.record,-1);if(a){this.setPosition(a,this.columnIndex,b)}},onKeyDown:function(b){var a=b.record.isExpandingOrCollapsing?null:b.view.walkRecs(b.record,1);if(a){this.setPosition(a,this.columnIndex,b)}},onKeyRight:function(b){var a=this.move("right",b);if(a){this.setPosition(a,null,b)}},onKeyLeft:function(b){var a=this.move("left",b);if(a){this.setPosition(a,null,b)}},move:function(b,d){var c=this,a=c.getPosition();if(a&&a.record){return a.view.walkCells(a,b,null,c.preventWrap)}},onKeyPageDown:function(e){var d=this,a=e.view,g=d.getRowsVisible(),c,b;if(g){if(a.bufferedRenderer){c=Math.min(e.recordIndex+g,a.all.endIndex,a.dataSource.getCount()-1);d.lastKeyEvent=e;a.bufferedRenderer.scrollTo(c,false,d.afterBufferedScrollTo,d)}else{b=a.walkRecs(e.record,g);d.setPosition(b,null,e)}}},onKeyPageUp:function(e){var d=this,a=e.view,g=d.getRowsVisible(),c,b;if(g){if(a.bufferedRenderer){c=Math.max(e.recordIndex-g,a.all.startIndex,0);d.lastKeyEvent=e;a.bufferedRenderer.scrollTo(c,false,d.afterBufferedScrollTo,d)}else{b=a.walkRecs(e.record,-g);d.setPosition(b,null,e)}}},onKeyHome:function(c){var b=this,a=c.view;if(c.altKey){if(a.bufferedRenderer){b.lastKeyEvent=c;a.bufferedRenderer.scrollTo(0,false,b.afterBufferedScrollTo,b)}else{b.setPosition(a.walkRecs(c.record,-a.dataSource.indexOf(c.record)),null,c)}}else{b.setPosition(c.record,0,c)}},afterBufferedScrollTo:function(b,a){this.setPosition(a,null,this.lastKeyEvent,null,!this.lastKeyEvent)},onKeyEnd:function(c){var b=this,a=c.view;if(c.altKey){if(a.bufferedRenderer){b.lastKeyEvent=c;a.bufferedRenderer.scrollTo(a.store.getCount()-1,false,b.afterBufferedScrollTo,b)}else{b.setPosition(a.walkRecs(c.record,a.dataSource.getCount()-1-a.dataSource.indexOf(c.record)),null,c)}}else{b.setPosition(c.record,c.view.getVisibleColumnManager().getColumns().length-1,c)}},onKeyEnter:function(b){var a=["cellclick",b.view,b.position.cellElement,b.position.colIdx,b.record,b.position.rowElement,b.recordIndex,b];b.stopEvent();b.view.fireEvent.apply(b.view,a);a[0]="celldblclick";b.view.fireEvent.apply(b.view,a)},getRowsVisible:function(){var e=false,a=this.view,d=a.all.first(),b,c;if(d){b=d.getHeight();c=a.el.getHeight();e=Math.floor(c/b)}return e},fireNavigateEvent:function(b){var a=this;a.fireEvent("navigate",{view:a.position.view,navigationModel:a,keyEvent:b||new Ext.event.Event({}),previousPosition:a.previousPosition,previousRecordIndex:a.previousRecordIndex,previousRecord:a.previousRecord,previousItem:a.previousItem,previousCell:a.previousCell,previousColumnIndex:a.previousColumnIndex,previousColumn:a.previousColumn,position:a.position,recordIndex:a.recordIndex,record:a.record,selectionStart:a.selectionStart,item:a.item,cell:a.cell,columnIndex:a.columnIndex,column:a.column})}},0,0,0,0,["view.navigation.grid"],0,[Ext.grid,"NavigationModel"],0));Ext.define("Ext.rtl.grid.NavigationModel",{override:"Ext.grid.NavigationModel",initKeyNav:function(a){var c=this,b=c.self.prototype;if(a.getInherited().rtl){c.onKeyLeft=b.onKeyRight;c.onKeyRight=b.onKeyLeft}(arguments.callee.$previous||Ext.view.NavigationModel.prototype.initKeyNav).call(this,a)}});(Ext.cmd.derive("Ext.view.TableLayout",Ext.layout.component.Auto,{type:"tableview",beginLayout:function(e){var d=this,a=d.owner,c=a.lockingPartner,b=e.context;e.doSyncRowHeights=c&&c.grid.isVisible()&&(a.ownerGrid.syncRowHeight||a.hasVariableRowHeight());if(!d.columnFlusherId){d.columnFlusherId=d.id+"-columns";d.rowHeightFlusherId=d.id+"-rows"}if(d.owner.bufferedRenderer){d.owner.bufferedRenderer.beforeTableLayout(e)}Ext.layout.component.Auto.prototype.beginLayout.call(this,e);if(e.doSyncRowHeights){if(!e.lockingPartnerContext){(e.lockingPartnerContext=b.getCmp(c)).lockingPartnerContext=e}e.rowHeightSynchronizer=d.owner.syncRowHeightBegin()}(e.headerContext=b.getCmp(d.headerCt)).viewContext=e},beginLayoutCycle:function(b,a){Ext.layout.component.Auto.prototype.beginLayoutCycle.call(this,b,a);if(b.syncRowHeights){b.target.syncRowHeightClear(b.rowHeightSynchronizer);b.syncRowHeights=false}},calculate:function(e){var n=this,b=e.context,h=e.lockingPartnerContext,d=e.headerContext,k=e.ownerCtContext,c=n.owner,j=d.getProp("columnsChanged"),a=e.state,o,g,q,p,l=c.body.dom,r,m,i;if(!c.all.getCount()&&(!l||!c.body.child("table"))){e.setProp("viewOverflowY",false);Ext.layout.component.Auto.prototype.calculate.call(this,e);return}if(j===undefined){n.done=false;return}if(j){if(!(o=a.columnFlusher)){b.queueFlush(a.columnFlusher=o={ownerContext:e,columnsChanged:j,layout:n,id:n.columnFlusherId,flush:n.flushColumnWidths})}if(!o.flushed){n.done=false;return}}if(h&&e.doSyncRowHeights){if(!(p=a.rowHeightFlusher)){if(!(q=a.rowHeights)){a.rowHeights=q=e.rowHeightSynchronizer;n.owner.syncRowHeightMeasure(q);e.setProp("rowHeights",q)}if(!(g=h.getProp("rowHeights"))){n.done=false;return}b.queueFlush(a.rowHeightFlusher=p={ownerContext:e,synchronizer:q,otherSynchronizer:g,layout:n,id:n.rowHeightFlusherId,flush:n.flushRowHeights})}if(!p.flushed){n.done=false;return}}Ext.layout.component.Auto.prototype.calculate.call(this,e);if(!e.heightModel.shrinkWrap){i=false;if(!k.heightModel.shrinkWrap){m=k.target.layout.getContainerSize(k);if(!m.gotHeight){n.done=false;return}r=l.offsetHeight;i=r>m.height}e.setProp("viewOverflowY",i)}},measureContentHeight:function(d){var a=this.owner,c=a.body.dom,b=a.emptyEl,e=0;if(b){e+=b.offsetHeight}if(c){e+=c.offsetHeight}if(d.headerContext.state.boxPlan.tooNarrow){e+=Ext.getScrollbarSize().height}return e},flushColumnWidths:function(){var l=this,k=l.layout,b=l.ownerContext,d=l.columnsChanged,a=b.target,j=d.length,c,g,e,h;if(b.state.columnFlusher!==l){return}for(g=0;g<j;g++){if(!(c=d[g])){continue}e=c.props.width;a.body.select(a.getColumnSizerSelector(c.target)).setWidth(e);h=c.lastBox;if(h){h.width=e}}l.flushed=true;if(!k.pending){b.context.queueLayout(k)}},flushRowHeights:function(){var a=this,b=a.layout,c=a.ownerContext;if(c.state.rowHeightFlusher!==a){return}c.target.syncRowHeightFinish(a.synchronizer,a.otherSynchronizer);a.flushed=true;c.syncRowHeights=true;if(!b.pending){c.context.queueLayout(b)}},finishedLayout:function(b){var a=this,c=Ext.fly(a.owner.getNodeContainer());Ext.layout.component.Auto.prototype.finishedLayout.call(this,b);if(c){c.setWidth(b.headerContext.props.contentWidth)}if(a.owner.bufferedRenderer){a.owner.bufferedRenderer.afterTableLayout(b)}}},0,0,0,0,["layout.tableview"],0,[Ext.view,"TableLayout"],0));(Ext.cmd.derive("Ext.grid.locking.RowSynchronizer",Ext.Base,{constructor:function(a,b){var c=this,d;c.view=a;c.rowEl=b;c.els={};c.add("data",a.rowSelector);for(d=a.rowTpl;d;d=d.nextTpl){if(d.beginRowSync){d.beginRowSync(c)}}},add:function(b,a){var c=Ext.fly(this.rowEl).down(a,true);if(c){this.els[b]={el:c}}},finish:function(g){var h=this,c=h.els,j=g.els,e,i=0,b=0,k,a,d;for(a in c){e=j[a];d=e?e.height:0;k=d-c[a].height;if(k>0){i+=k;Ext.fly(c[a].el).setHeight(d)}else{b-=k}}d=g.rowHeight+b;if(h.rowHeight+i<d){Ext.fly(h.rowEl).setHeight(d)}},measure:function(){var c=this,b=c.els,a;c.rowHeight=c.rowEl.offsetHeight;for(a in b){b[a].height=b[a].el.offsetHeight}},reset:function(){var b=this.els,a;this.rowEl.style.height="";for(a in b){b[a].el.style.height=""}}},1,0,0,0,0,0,[Ext.grid.locking,"RowSynchronizer"],0));(Ext.cmd.derive("Ext.view.NodeCache",Ext.Base,{statics:{range:document.createRange&&document.createRange()},constructor:function(a){this.view=a;this.clear();this.el=new Ext.dom.Fly()},clear:function(e){var c=this,d=c.elements,a=c.statics().range,b;if(c.count&&e){if(a){a.setStartBefore(d[c.startIndex]);a.setEndAfter(d[c.endIndex]);a.deleteContents()}else{for(b in d){Ext.removeNode(d[b])}}}c.elements={};c.count=c.startIndex=0;c.endIndex=-1},fill:function(b,h,g){g=g||0;var d=this,e=d.elements={},c,a=b.length-g;if(!h){h=0}for(c=0;c<a;c++){e[h+c]=b[c+g]}d.startIndex=h;d.endIndex=h+a-1;d.count=a;return this},insert:function(g,b){var d=this,e=d.elements,c,a=b.length;if(d.count){if(g<d.count){for(c=d.endIndex+a;c>=g+a;c--){e[c]=e[c-a];e[c].setAttribute("data-recordIndex",c)}}d.endIndex=d.endIndex+a}else{d.startIndex=g;d.endIndex=g+a-1}for(c=0;c<a;c++,g++){e[g]=b[c];e[g].setAttribute("data-recordIndex",g)}d.count+=a},invoke:function(d,a){var e=this,c,b;d=Ext.dom.Element.prototype[d];for(b=e.startIndex;b<=e.endIndex;b++){c=e.item(b);if(c){d.apply(c,a)}}return e},item:function(c,b){var d=this.elements[c],a=null;if(d){a=b?this.elements[c]:this.el.attach(this.elements[c])}return a},first:function(a){return this.item(this.startIndex,a)},last:function(a){return this.item(this.endIndex,a)},moveBlock:function(a){var g=this,h=g.elements,e,b,d,c;if(!a){return}if(a<0){c=g.startIndex-1;b=g.endIndex;d=1}else{c=g.endIndex+1;b=g.startIndex;d=-1}g.startIndex+=a;g.endIndex+=a;do{c+=d;e=h[c+a]=h[c];e.setAttribute("data-recordIndex",c+a);if(c<g.startIndex||c>g.endIndex){delete h[c]}}while(c!==b);delete h[c]},getCount:function(){return this.count},slice:function(e,b){var d=this.elements,a=[],c;if(!b){b=this.endIndex}else{b=Math.min(this.endIndex,b-1)}for(c=e||this.startIndex;c<=b;c++){a.push(d[c])}return a},replaceElement:function(d,c,a){var e=this.elements,b=(typeof d==="number")?d:this.indexOf(d);if(b>-1){c=Ext.getDom(c);if(a){d=e[b];d.parentNode.insertBefore(c,d);Ext.removeNode(d);c.setAttribute("data-recordIndex",b)}this.elements[b]=c}return this},indexOf:function(b){var c=this.elements,a;b=Ext.getDom(b);for(a=this.startIndex;a<=this.endIndex;a++){if(c[a]===b){return a}}return -1},removeRange:function(c,g,d){var k=this,a=k.elements,j=[],e,h,b,l;if(g==null){g=k.endIndex+1}else{g=Math.min(k.endIndex+1,g+1)}if(c==null){c=k.startIndex}b=g-c;for(h=c,l=g;h<=k.endIndex;h++,l++){e=a[h];if(h<g){j.push(e);if(d){Ext.removeNode(e)}}if(l<=k.endIndex){e=a[h]=a[l];e.setAttribute("data-recordIndex",h)}else{delete a[h]}}k.count-=b;k.endIndex-=b;return j},removeElement:function(l,c){var h=this,k,j,a=h.elements,d,e,b=0,g,i;if(Ext.isArray(l)){k=l;l=[];e=k.length;for(b=0;b<e;b++){j=k[b];if(typeof j!=="number"){j=h.indexOf(j)}if(j>=h.startIndex&&j<=h.endIndex){l[l.length]=j}}Ext.Array.sort(l);e=l.length}else{if(l<h.startIndex||l>h.endIndex){return}e=1;l=[l]}for(g=i=l[0],b=0;g<=h.endIndex;g++,i++){if(b<e&&g===l[b]){i++;b++;if(c){Ext.removeNode(a[g])}}if(i<=h.endIndex&&i>=h.startIndex){d=a[g]=a[i];d.setAttribute("data-recordIndex",g)}else{delete a[g]}}h.endIndex-=e;h.count-=e},scroll:function(h,p,c){var n=this,o=n.view,q=o.store,a=n.elements,s=h.length,m=o.getNodeContainer(),g=o.hasListeners.itemremove,l=o.hasListeners.itemadd,k=n.statics().range,j,e,b,d,r;if(!h.length){return}if(p===-1){if(c){if(k){k.setStartBefore(a[(n.endIndex-c)+1]);k.setEndAfter(a[n.endIndex]);k.deleteContents();for(j=(n.endIndex-c)+1;j<=n.endIndex;j++){e=a[j];delete a[j];if(g){o.fireEvent("itemremove",q.getByInternalId(e.getAttribute("data-recordId")),j,e,o)}}}else{for(j=(n.endIndex-c)+1;j<=n.endIndex;j++){e=a[j];delete a[j];Ext.removeNode(e);if(g){o.fireEvent("itemremove",q.getByInternalId(e.getAttribute("data-recordId")),j,e,o)}}}n.endIndex-=c}if(h.length){r=o.bufferRender(h,n.startIndex-=s);d=r.children;for(j=0;j<s;j++){a[n.startIndex+j]=d[j]}m.insertBefore(r.fragment,m.firstChild);if(l){o.fireEvent("itemadd",h,n.startIndex,d)}}}else{if(c){b=n.startIndex+c;if(k){k.setStartBefore(a[n.startIndex]);k.setEndAfter(a[b-1]);k.deleteContents();for(j=n.startIndex;j<b;j++){e=a[j];delete a[j];if(g){o.fireEvent("itemremove",q.getByInternalId(e.getAttribute("data-recordId")),j,e,o)}}}else{for(j=n.startIndex;j<b;j++){e=a[j];delete a[j];Ext.removeNode(e);if(g){o.fireEvent("itemremove",q.getByInternalId(e.getAttribute("data-recordId")),j,e,o)}}}n.startIndex=b}r=o.bufferRender(h,n.endIndex+1);d=r.children;for(j=0;j<s;j++){a[n.endIndex+=1]=d[j]}m.appendChild(r.fragment);if(l){o.fireEvent("itemadd",h,n.endIndex+1,d)}}n.count=n.endIndex-n.startIndex+1;return d},sumHeights:function(){var a=0,c=this.elements,b;for(b=this.startIndex;b<=this.endIndex;b++){a+=c[b].offsetHeight}return a}},1,0,0,0,0,0,[Ext.view,"NodeCache"],function(){Ext.dom.CompositeElementLite.importElementMethods.call(this)}));(Ext.cmd.derive("Ext.view.Table",Ext.view.View,{alternateClassName:"Ext.grid.View",isTableView:true,config:{selectionModel:{type:"rowmodel"}},inheritableStatics:{normalSideEvents:["deselect","select","beforedeselect","beforeselect","selectionchange"],events:["blur","focus","move","resize","destroy","beforedestroy","boxready","afterrender","render","beforerender","removed","hide","beforehide","show","beforeshow","enable","disable","added","deactivate","beforedeactivate","activate","beforeactivate","cellkeydown","beforecellkeydown","cellmouseup","beforecellmouseup","cellmousedown","beforecellmousedown","cellcontextmenu","beforecellcontextmenu","celldblclick","beforecelldblclick","cellclick","beforecellclick","refresh","itemremove","itemadd","beforeitemupdate","itemupdate","viewready","beforerefresh","unhighlightitem","highlightitem","focuschange","containerkeydown","containercontextmenu","containerdblclick","containerclick","containermouseout","containermouseover","containermouseup","containermousedown","beforecontainerkeydown","beforecontainercontextmenu","beforecontainerdblclick","beforecontainerclick","beforecontainermouseout","beforecontainermouseover","beforecontainermouseup","beforecontainermousedown","itemkeydown","itemcontextmenu","itemdblclick","itemclick","itemmouseleave","itemmouseenter","itemmouseup","itemmousedown","rowclick","rowcontextmenu","rowdblclick","rowkeydown","rowmouseup","rowmousedown","rowkeydown","beforeitemkeydown","beforeitemcontextmenu","beforeitemdblclick","beforeitemclick","beforeitemmouseleave","beforeitemmouseenter","beforeitemmouseup","beforeitemmousedown","statesave","beforestatesave","staterestore","beforestaterestore","uievent","groupcollapse","groupexpand"]},scrollable:true,componentLayout:"tableview",baseCls:"x-grid-view",unselectableCls:"x-unselectable",firstCls:"x-grid-cell-first",lastCls:"x-grid-cell-last",itemCls:"x-grid-item",selectedItemCls:"x-grid-item-selected",selectedCellCls:"x-grid-cell-selected",focusedItemCls:"x-grid-item-focused",overItemCls:"x-grid-item-over",altRowCls:"x-grid-item-alt",dirtyCls:"x-grid-dirty-cell",rowClsRe:new RegExp("(?:^|\\s*)x-grid-item-alt(?:\\s+|$)","g"),cellRe:new RegExp("x-grid-cell-([^\\s]+)(?:\\s|$)",""),positionBody:true,positionCells:false,stripeOnUpdate:null,trackOver:true,getRowClass:null,stripeRows:true,markDirty:true,ariaRole:"grid",tpl:["{%","view = values.view;","if (!(columns = values.columns)) {","columns = values.columns = view.ownerCt.getVisibleColumnManager().getColumns();","}","values.fullWidth = 0;","for (i = 0, len = columns.length; i < len; i++) {","column = columns[i];","values.fullWidth += (column.cellWidth = column.lastBox ? column.lastBox.width : column.width || column.minWidth);","}","tableCls=values.tableCls=[];","%}",'<div class="x-grid-item-container" style="width:{fullWidth}px">',"{[view.renderTHead(values, out, parent)]}","{%","view.renderRows(values.rows, values.columns, values.viewStartIndex, out);","%}","{[view.renderTFoot(values, out, parent)]}","</div>",{definitions:"var view, tableCls, columns, i, len, column;",priority:0}],outerRowTpl:['<table id="{rowId}" ','data-boundView="{view.id}" ','data-recordId="{record.internalId}" ','data-recordIndex="{recordIndex}" ','class="{[values.itemClasses.join(" ")]}" cellPadding="0" cellSpacing="0" {ariaTableAttr} style="{itemStyle};width:0">',"{%","this.nextTpl.applyOut(values, out, parent)","%}","</table>",{priority:9999}],rowTpl:["{%",'var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";',"%}",'<tr class="{[values.rowClasses.join(" ")]} {[dataRowCls]}" {rowAttr:attributes} {ariaRowAttr}>','<tpl for="columns">{%',"parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)","%}","</tpl>","</tr>",{priority:0}],cellTpl:['<td class="{tdCls}" {tdAttr} {[Ext.aria ? "id=\\"" + Ext.id() + "\\"" : ""]} style="width:{column.cellWidth}px;<tpl if="tdStyle">{tdStyle}</tpl>" tabindex="-1" {ariaCellAttr} data-columnid="{[values.column.getItemId()]}">','<div {unselectableAttr} class="x-grid-cell-inner {innerCls}" ','style="text-align:{align};<tpl if="style">{style}</tpl>" {ariaCellInnerAttr}>{value}</div>',"</td>",{priority:0}],refreshSelmodelOnRefresh:false,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:["x-grid-cell x-grid-td"]},constructor:function(a){if(a.grid.isTree){a.baseCls="x-tree-view"}Ext.view.View.prototype.constructor.call(this,a)},hasVariableRowHeight:function(a){var b=this;return b.variableRowHeight||b.store.isGrouped()||b.getVisibleColumnManager().hasVariableRowHeight()||(!a&&b.lockingPartner&&b.lockingPartner.hasVariableRowHeight(true))},initComponent:function(){var a=this;if(a.columnLines){a.addCls(a.grid.colLinesCls)}if(a.rowLines){a.addCls(a.grid.rowLinesCls)}a.body=new Ext.dom.Fly();a.body.id=a.id+"gridBody";if(!a.trackOver){a.overItemCls=null}a.headerCt.view=a;a.grid.view=a;a.initFeatures(a.grid);a.itemSelector=a.getItemSelector();a.all=new Ext.view.NodeCache(a);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(b,e){var d=this,c=d.ownerGrid,g=b.type,a=d.disableSelection||c.disableSelection;if(!e){if(!(b&&b.isSelectionModel)){b=c.selModel||b}}if(b){if(b.isSelectionModel){b.allowDeselect=c.allowDeselect||b.selectionMode!=="SINGLE";b.locked=a}else{if(typeof b==="string"){b={type:b}}else{b.type=c.selType||b.selType||b.type||g}if(!b.mode){if(c.simpleSelect){b.mode="SIMPLE"}else{if(c.multiSelect){b.mode="MULTI"}}}b=Ext.Factory.selection(Ext.apply({allowDeselect:c.allowDeselect,locked:a},b))}}return b},updateSelectionModel:function(a,c){var b=this;if(c){c.un({scope:b,lastselectedchanged:b.updateBindSelection,selectionchange:b.updateBindSelection});Ext.destroy(b.selModelRelayer)}b.selModelRelayer=b.relayEvents(a,["selectionchange","beforeselect","beforedeselect","select","deselect","focuschange"]);a.on({scope:b,lastselectedchanged:b.updateBindSelection,selectionchange:b.updateBindSelection});b.selModel=a},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(a,u,k){var t=this,r=k>1,m=r&&document.createRange?document.createRange():null,b=r&&!m?document.createDocumentFragment():null,l=u,n=t.getGridColumns().length,s=n-1,e=(t.firstCls||t.lastCls)&&(u===0||u===n||a===0||a===s),p,o,h,q,c,d,g;if(t.rendered&&u!==a){h=t.el.query(t.rowSelector);if(u>a&&b){l-=1}for(p=0,q=h.length;p<q;p++){c=h[p];d=c.childNodes;if(e){if(d.length===1){Ext.fly(d[0]).addCls(t.firstCls);Ext.fly(d[0]).addCls(t.lastCls);continue}if(a===0){Ext.fly(d[0]).removeCls(t.firstCls);Ext.fly(d[1]).addCls(t.firstCls)}else{if(a===s){Ext.fly(d[s]).removeCls(t.lastCls);Ext.fly(d[s-1]).addCls(t.lastCls)}}if(u===0){Ext.fly(d[0]).removeCls(t.firstCls);Ext.fly(d[a]).addCls(t.firstCls)}else{if(u===n){Ext.fly(d[s]).removeCls(t.lastCls);Ext.fly(d[a]).addCls(t.lastCls)}}}if(r){if(m){m.setStartBefore(d[a]);m.setEndAfter(d[a+k-1]);b=m.extractContents()}else{for(o=0;o<k;o++){b.appendChild(d[a])}}c.insertBefore(b,d[l]||null)}else{c.insertBefore(d[a],d[l]||null)}}g=t.el.query("colgroup");for(p=0,q=g.length;p<q;p++){c=g[p];if(r){if(m){m.setStartBefore(c.childNodes[a]);m.setEndAfter(c.childNodes[a+k-1]);b=m.extractContents()}else{for(o=0;o<k;o++){b.appendChild(c.childNodes[a])}}c.insertBefore(b,c.childNodes[l]||null)}else{c.insertBefore(c.childNodes[a],c.childNodes[l]||null)}}}},scrollToTop:Ext.emptyFn,addElListener:function(a,c,b){this.mon(this,a,c,b,{element:"el"})},getGridColumns:function(){return this.ownerCt.getVisibleColumnManager().getColumns()},getHeaderAtIndex:function(a){return this.ownerCt.getVisibleColumnManager().getHeaderAtIndex(a)},getCell:function(a,b){var c=this.getRow(a);return Ext.fly(c).down(b.getCellSelector())},getFeature:function(b){var a=this.featuresMC;if(a){return a.get(b)}},findFeature:function(a){if(this.features){return Ext.Array.findBy(this.features,function(b){if(b.ftype===a){return true}})}},initFeatures:function(d){var g=this,c,e,b,a;g.tpl=Ext.XTemplate.getTpl(this,"tpl");g.rowTpl=Ext.XTemplate.getTpl(this,"rowTpl");g.addRowTpl(Ext.XTemplate.getTpl(this,"outerRowTpl"));g.cellTpl=Ext.XTemplate.getTpl(this,"cellTpl");g.featuresMC=new Ext.util.MixedCollection();e=g.features=g.constructFeatures();a=e?e.length:0;for(c=0;c<a;c++){b=e[c];b.view=g;b.grid=d;g.featuresMC.add(b);b.init(d)}},renderTHead:function(b,c,e){var g=b.view.headerFns,a,d;if(g){for(d=0,a=g.length;d<a;++d){g[d].call(this,b,c,e)}}},addHeaderFn:function(a){var b=this.headerFns;if(!b){b=this.headerFns=[]}b.push(a)},renderTFoot:function(b,c,e){var g=b.view.footerFns,a,d;if(g){for(d=0,a=g.length;d<a;++d){g[d].call(this,b,c,e)}}},addFooterFn:function(a){var b=this.footerFns;if(!b){b=this.footerFns=[]}b.push(a)},addTpl:function(a){return this.insertTpl("tpl",a)},addRowTpl:function(a){return this.insertTpl("rowTpl",a)},addCellTpl:function(a){return this.insertTpl("cellTpl",a)},insertTpl:function(e,d){var c=this,a,b;if(d.isTemplate){d=Ext.Object.chain(d)}else{d=new Ext.XTemplate("{%this.nextTpl.applyOut(values, out, parent);%}",d)}for(a=c[e];d.priority<a.priority;a=a.nextTpl){b=a}if(b){b.nextTpl=d}else{c[e]=d}d.nextTpl=a;return d},tplApplyOut:function(a,b,c){if(this.before){if(this.before(a,b,c)===false){return}}this.nextTpl.applyOut(a,b,c);if(this.after){this.after(a,b,c)}},constructFeatures:function(){var g=this,e=g.features,d,b,c=0,a;if(e){b=[];a=e.length;for(;c<a;c++){d=e[c];if(!d.isFeature){d=Ext.create("feature."+d.ftype,d)}b[c]=d}}return b},beforeRender:function(){var a=this;Ext.view.View.prototype.beforeRender.call(this);if(!a.enableTextSelection){a.protoEl.unselectable()}},onBindStore:function(a){var b=this,c=b.bufferedRenderer;if(c&&c.store!==a){c.bindStore(a)}if(b.all&&b.all.getCount()){if(c){c.setBodyTop(0)}b.clearViewEl()}Ext.view.View.prototype.onBindStore.apply(this,arguments)},onOwnerGridHide:function(){var a=this.getScrollable(),b=this.bufferedRederer;if(a){a.suspendPartnerSync()}if(b){b.disable()}},onOwnerGridShow:function(){var a=this.getScrollable(),b=this.bufferedRederer;if(a){a.resumePartnerSync()}if(b){b.enable()}},getStoreListeners:function(b){var c=this,a=Ext.view.View.prototype.getStoreListeners.call(this,b),d=c.dataSource;if(d&&d.isFeatureStore){delete a.add;delete a.remove}if(c.bufferedRenderer){delete a.clear}a.beforepageremove=c.beforePageRemove;return a},beforePageRemove:function(c,b){var d=this.all,a=c.getPageSize();if(d.startIndex>=(b-1)*a&&d.endIndex<=(b*a-1)){c.get(b);return false}},onViewScroll:function(b,a,c){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,b,a,c)}},createRowElement:function(b,c,d){var e=this,g=e.renderBuffer,a=e.collectData([b],c);a.columns=d;e.tpl.overwrite(g,a);return Ext.fly(g).down(e.getNodeContainerSelector(),true).firstChild},bufferRender:function(c,d){var e=this,g=e.renderBuffer,a,b=document.createRange?document.createRange():null;e.tpl.overwrite(g,e.collectData(c,d));g=Ext.fly(g).down(e.getNodeContainerSelector(),true);if(b){b.selectNodeContents(g);a=b.extractContents()}else{a=document.createDocumentFragment();while(g.firstChild){a.appendChild(g.firstChild)}}return{fragment:a,children:Ext.Array.toArray(a.childNodes)}},collectData:function(a,c){var b=this;b.rowValues.view=b;b.tableValues.view=b;b.tableValues.rows=a;b.tableValues.columns=null;b.tableValues.viewStartIndex=c;b.tableValues.touchScroll=b.touchScroll;b.tableValues.tableStyle="width:"+b.headerCt.getTableWidth()+"px";return b.tableValues},collectNodes:function(a){this.all.fill(this.getNodeContainer().childNodes,this.all.startIndex)},refreshSize:function(d){var c=this,a=c.getBodySelector(),b=c.lockingPartner;if(a){c.body.attach(c.el.down(a,true))}if(!c.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(d||(c.hasVariableRowHeight()&&c.dataSource.getCount())){c.grid.updateLayout()}Ext.resumeLayouts(!b||!b.ownerGrid.isVisible()||(b.all.getCount()===c.all.getCount()))}},isLayoutRoot:function(){return false},clearViewEl:function(j){var e=this,c=e.all,a=e.getStore(),b,d,g,h;for(b=c.startIndex;b<=c.endIndex;b++){d=c.item(b,true);e.fireEvent("itemremove",a.getByInternalId(d.getAttribute("data-recordId")),b,d,e)}Ext.view.View.prototype.clearViewEl.call(this);g=Ext.fly(e.getNodeContainer());if(g&&!j){h=e.getTargetEl();if(h.dom!==g.dom){g.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute("data-boundView"))}},getRecord:function(c){var b=this,a;if(b.store.isDestroyed){return}if(c.isModel){return c}c=b.getNode(c);if(c){if(!b.hasActiveFeature()){a=c.getAttribute("data-recordIndex");if(a){a=parseInt(a,10);if(a>-1){return b.store.data.getAt(a)}}}return b.dataSource.getByInternalId(c.getAttribute("data-recordId"))}},indexOf:function(a){a=this.getNode(a);if(!a&&a!==0){return -1}return this.all.indexOf(a)},indexInStore:function(a){return a?this.dataSource.indexOf(this.getRecord(a)):-1},indexOfRow:function(b){var c=this.dataSource,a;if(b.isCollapsedPlaceholder){a=c.indexOfPlaceholder(b)}else{a=c.indexOf(b)}return a},renderRows:function(g,e,d,b){var h=this.rowValues,a=g.length,c;h.view=this;h.columns=e;for(c=0;c<a;c++,d++){h.itemClasses.length=h.rowClasses.length=0;this.renderRow(g[c],d,b)}h.view=h.columns=h.record=null},renderColumnSizer:function(b,c){var e=b.columns||this.getGridColumns(),a=e.length,d,h,g;c.push('<colgroup role="presentation">');for(d=0;d<a;d++){h=e[d];g=h.cellWidth?h.cellWidth:Ext.grid.header.Container.prototype.defaultWidth;c.push('<col role="presentation" class="',"x-","grid-cell-",e[d].getItemId(),'" style="width:'+g+'px">')}c.push("</colgroup>")},renderRow:function(h,a,g){var j=this,e=a===-1,i=j.selectionModel,m=j.rowValues,d=m.itemClasses,c=m.rowClasses,b=j.itemCls,l,k=j.rowTpl;m.rowAttr={};m.record=h;m.recordId=h.internalId;m.recordIndex=j.store.indexOf(h);m.rowIndex=a;m.rowId=j.getRowId(h);m.itemCls=m.rowCls="";if(!m.columns){m.columns=j.ownerCt.getVisibleColumnManager().getColumns()}d.length=c.length=0;if(!e){d[0]=b;if(!j.ownerCt.disableSelection&&i.isRowSelected){if(i.isRowSelected(h)){d.push(j.selectedItemCls)}}if(j.stripeRows&&a%2!==0){d.push(j.altRowCls)}if(j.getRowClass){l=j.getRowClass(h,a,null,j.dataSource);if(l){c.push(l)}}}if(g){k.applyOut(m,g,j.tableValues)}else{return k.apply(m,j.tableValues)}},renderCell:function(d,h,g,n,j,e){var l=this,b,i=l.selectionModel,k=l.cellValues,c=k.classes,a=h.data[d.dataIndex],o=l.cellTpl,p,m,q=l.navigationModel.getPosition();k.record=h;k.column=d;k.recordIndex=g;k.rowIndex=n;k.columnIndex=j;k.cellIndex=j;k.align=d.align;k.innerCls=d.innerCls;k.tdCls=k.tdStyle=k.tdAttr=k.style="";k.unselectableAttr=l.enableTextSelection?"":'unselectable="on"';c[1]=d.getCellId();m=2;if(d.renderer&&d.renderer.call){b=l.ownerCt.columnManager.getHeaderIndex(d);p=d.renderer.call(d.usingDefaultRenderer?d:d.scope||l.ownerCt,a,k,h,g,b,l.dataSource,l);if(k.css){h.cssWarning=true;k.tdCls+=" "+k.css;k.css=null}if(k.tdCls){c[m++]=k.tdCls}}else{p=a}k.value=(p==null||p==="")?d.emptyCellText:p;if(d.tdCls){c[m++]=d.tdCls}if(l.markDirty&&h.dirty&&h.isModified(d.dataIndex)){c[m++]=l.dirtyCls}if(d.isFirstVisible){c[m++]=l.firstCls}if(d.isLastVisible){c[m++]=l.lastCls}if(!l.enableTextSelection){c[m++]=l.unselectableCls}if(i&&(i.isCellModel||i.isSpreadsheetModel)&&i.isCellSelected(l,g,d)){c[m++]=l.selectedCellCls}if(q&&q.record.id===h.id&&q.column===d){c[m++]=l.focusedItemCls}c.length=m;k.tdCls=c.join(" ");o.applyOut(k,e);k.column=k.record=null},getRow:function(a){var b;if((!a&&a!==0)||!this.rendered){return null}if(a.target){a=a.target}if(Ext.isString(a)){return Ext.fly(a).down(this.rowSelector,true)}if(Ext.isNumber(a)){b=this.all.item(a);return b&&b.down(this.rowSelector,true)}if(a.isModel){return this.getRowByRecord(a)}b=Ext.fly(a);if(b.is(this.itemSelector)){return this.getRowFromItem(b)}return b.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(a){return this.id+"-record-"+a.internalId},constructRowId:function(a){return this.id+"-record-"+a},getNodeById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,false)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,true)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),false)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),true)},getRowFromItem:function(c){var d=Ext.getDom(c).tBodies[0].childNodes,a=d.length,b;for(b=0;b<a;b++){if(Ext.fly(d[b]).is(this.rowSelector)){return d[b]}}},retrieveNode:function(c,b){var a=this.el.getById(c,true);if(b&&a){return Ext.fly(a).down(this.rowSelector,true)}return a},updateIndexes:Ext.emptyFn,bodySelector:"div.x-grid-item-container",nodeContainerSelector:"div.x-grid-item-container",itemSelector:"table.x-grid-item",rowSelector:"tr.x-grid-row",cellSelector:"td.x-grid-cell",sizerSelector:".x-grid-cell",innerSelector:"div.x-grid-cell-inner",getBodySelector:function(){return this.bodySelector},getColumnSizerSelector:function(b){var a=this.sizerSelector+"-"+b.getItemId();return"td"+a+",col"+a},getItemSelector:function(){return this.itemSelector},getCellSelector:function(a){return a?a.getCellSelector():this.cellSelector},getCellInnerSelector:function(a){return this.getCellSelector(a)+" "+this.innerSelector},addRowCls:function(b,a){var c=this.getRow(b);if(c){Ext.fly(c).addCls(a)}},removeRowCls:function(b,a){var c=this.getRow(b);if(c){Ext.fly(c).removeCls(a)}},onRowSelect:function(b){var a=this;a.addItemCls(b,a.selectedItemCls);if(Ext.isIE8){a.repaintBorder(b+1)}},onRowDeselect:function(b){var a=this;a.removeItemCls(b,a.selectedItemCls);if(Ext.isIE8){a.repaintBorder(b+1)}},onCellSelect:function(b){var a=this.getCellByPosition(b);if(a){a.addCls(this.selectedCellCls)}},onCellDeselect:function(b){var a=this.getCellByPosition(b,true);if(a){Ext.fly(a).removeCls(this.selectedCellCls)}},getCellInclusive:function(a,b){if(a){var c=this.getRow(a.row),d=this.ownerCt.getColumnManager().getHeaderAtIndex(a.column);if(d&&c){return Ext.fly(c).down(this.getCellSelector(d),b)}}return false},getCellByPosition:function(a,c){if(a){var b=a.view||this,d=b.getRow(a.record||a.row),e=a.column.isColumn?a.column:b.getVisibleColumnManager().getHeaderAtIndex(a.column);if(e&&d){return Ext.fly(d).down(b.getCellSelector(e),c)}}return false},onFocusEnter:function(c){var d=this,a,i=d.getNavigationModel(),j,b,k=d.bufferedRenderer,g,h;c=c.event;if(!d.cellFocused&&d.all.getCount()&&d.dataSource.getCount()){h=c.getTarget();if(h&&d.el.contains(h)&&h!==d.el.dom&&!Ext.fly(h).is(d.getCellSelector())){if(i.lastFocused){i.position=i.lastFocused}d.cellFocused=true}else{j=b=d.getLastFocused();if(!b){a=d.isNormalView?(d.lockingPartner.ownerCt.isVisible()?d.lockingPartner:d.normalView):d;g=d.dataSource.getAt(k?k.getFirstVisibleRowIndex():0);if(g&&!g.isNonData){b=new Ext.grid.CellContext(a).setPosition({row:g,column:0})}}if(!b){c.stopEvent();c.getTarget().blur();return}i.setPosition(b,null,c,null,true);d.cellFocused=!!i.getPosition()}}if(d.cellFocused){d.el.dom.setAttribute("tabindex","-1")}},onFocusLeave:function(b){var a=this;if(a.cellFocused){if(b.toComponent!==a.lockingPartner){a.getNavigationModel().setPosition(null,null,b.event,null,true)}a.cellFocused=false;a.focusEl=a.el;a.focusEl.dom.setAttribute("tabindex",0)}},onRowFocus:function(d,b,a){var c=this;if(b){c.addItemCls(d,c.focusedItemCls);if(!a){c.focusRow(d)}}else{c.removeItemCls(d,c.focusedItemCls)}if(Ext.isIE8){c.repaintBorder(d+1)}},focusRow:function(d,a){var c=this,b=c.getFocusTask();if(a){b.delay(Ext.isNumber(a)?a:10,c.focusRow,c,[d,false]);return}b.cancel();if(c.isVisible(true)){c.getNavigationModel().setPosition(c.getRecord(d))}},focusNode:function(b,a){this.focusRow(b,a)},scrollRowIntoView:function(b,a){b=this.getRow(b);if(b){this.scrollElIntoView(b,false,a)}},focusCell:function(b,c){var e=this,a,d=e.getFocusTask();if(c){d.delay(Ext.isNumber(c)?c:10,e.focusCell,e,[b,false]);return}d.cancel();if(e.isVisible(true)&&(a=e.getCellByPosition(b))){e.getNavigationModel().setPosition(b)}},getLastFocused:function(){var b=this,a=b.lastFocused;if(a&&a.record&&a.column){if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1&&b.getNode(a.record)){return a}}},scrollCellIntoView:function(a,b){if(a.isCellContext){a=this.getCellByPosition(a)}if(a){this.scrollElIntoView(a,null,b)}},scrollElIntoView:function(c,d,b){var a=this.getScrollable();if(a){a.scrollIntoView(c,d,b)}},syncRowHeightBegin:function(){var g=this,k=g.all,e=k.count,c=[],h=Ext.grid.locking.RowSynchronizer,b,a,d;for(b=0,a=k.startIndex;b<e;b++,a++){c[b]=d=new h(g,k.elements[a]);d.reset()}return c},syncRowHeightClear:function(b){var d=this,e=d.all,c=e.count,a;for(a=0;a<c;a++){b[a].reset()}},syncRowHeightMeasure:function(b){var c=b.length,a;for(a=0;a<c;a++){b[a].measure()}},syncRowHeightFinish:function(b,d){var c=b.length,e=this.bufferedRenderer,a;for(a=0;a<c;a++){b[a].finish(d[a])}if(e){e.syncRowHeightsFinish()}},handleUpdate:function(o,h,r,B){r=r||Ext.data.Model.EDIT;var K=this,u=K.rowTpl,m=K.markDirty,y=K.dirtyCls,C=r!==Ext.data.Model.EDIT,x=[],z=K.variableRowHeight,v=0,G=K.ownerCt,d=K.cellFly||(K.self.prototype.cellFly=new Ext.dom.Fly()),I,s,p,j,q,E,H,l,w,c,g,F,D,n,b,e,A,J,a,k,t;if(K.viewReady){s=K.getNodeByRecord(h);if(s){if(h.isCollapsedPlaceholder){Ext.fly(s).syncContent(K.createRowElement(h,K.indexOfRow(h)));return}w=K.overItemCls;c=K.ownerCt.getVisibleColumnManager().getColumns();for(D=0,F=c.length;D<F;D++){g=c[D];if(g.preventUpdate){b=Ext.fly(s).down(g.getCellSelector(),true);if(b&&!C&&m){d.attach(b);if(h.isModified(g.dataIndex)){d.addCls(y)}else{d.removeCls(y)}}}else{n=K.shouldUpdateCell(h,g,B);if(n){v=v|n;x[x.length]=g;z=z||g.variableRowHeight}}}if(K.getRowClass||!K.getRowFromItem(s)||(v&1)||(s.tBodies[0].childNodes.length>1)){I=Ext.fly(s,"_internal");k=s._extData;j=K.createRowElement(h,K.indexOfRow(h),x);if(I.hasCls(w)){Ext.fly(j).addCls(w)}if(Ext.isIE9m&&s.mergeAttributes){s.mergeAttributes(j,true)}else{q=j.attributes;E=q.length;for(l=0;l<E;l++){H=q[l].name;if(H!=="id"){s.setAttribute(H,q[l].value)}}}if(k){k.isSynchronized=false}if(c.length&&(p=K.getRow(s))){K.updateColumns(p,Ext.fly(j).down(K.rowSelector,true),x)}while(u){if(u.syncContent){if(u.syncContent(s,j,B?x:null)===false){break}}u=u.nextTpl}}else{for(D=0,F=x.length;D<F;D++){g=x[D];e=g.dataIndex;A=h.get(e);b=Ext.fly(s).down(g.getCellSelector(),true);d.attach(b);if(!C&&m){if(h.isModified(g.dataIndex)){d.addCls(y)}else{d.removeCls(y)}}J=g.usingDefaultRenderer;a=J?g:g.scope;if(g.updater){Ext.callback(g.updater,a,[b,A,h,K,K.dataSource],0,g,G)}else{if(g.renderer){A=Ext.callback(g.renderer,a,[A,null,h,0,0,K.dataSource,K],0,g,G)}t=A==null||A==="";A=t?g.emptyCellText:A;if(g.producesHTML||t){d.down(K.innerSelector,true).innerHTML=A}else{d.down(K.innerSelector,true).childNodes[0].data=A}}if(K.highlightClass){Ext.fly(b).addCls(K.highlightClass);if(!K.changedCells){K.self.prototype.changedCells=[];K.prototype.clearChangedTask=new Ext.util.DelayedTask(K.clearChangedCells,K.prototype);K.clearChangedTask.delay(K.unhighlightDelay)}K.changedCells.push({cell:b,cls:K.highlightClass,expires:Ext.Date.now()+1000})}}}if(C&&m&&!h.dirty){Ext.fly(s,"_internal").select("."+y).removeCls(y)}if(z){Ext.suspendLayouts()}K.fireEvent("itemupdate",h,K.store.indexOf(h),s);if(z){K.ownerGrid.updateLayout();Ext.resumeLayouts(true)}}}},clearChangedCells:function(){var d=this,b=Ext.Date.now(),e;for(var c=0,a=d.changedCells.length;c<a;){e=d.changedCells[c];if(e.expires<=b){Ext.fly(e.cell).removeCls(e.highlightClass);Ext.Array.erase(d.changedCells,c,1);a--}else{break}}if(a){d.clearChangedTask.delay(d.unhighlightDelay)}},updateColumns:function(j,k,l){var i=this,b,a,h,c,n=l.length,m,d,o,g,e=i.getCellSelector();if(j.mergeAttributes){j.mergeAttributes(k,true)}else{b=k.attributes;a=b.length;for(c=0;c<a;c++){h=b[c].name;if(h!=="id"){j.setAttribute(h,b[c].value)}}}for(m=0;m<n;m++){d=l[m];e=i.getCellSelector(d);o=Ext.fly(j).selectNode(e);g=Ext.fly(k).selectNode(e);Ext.fly(o).syncContent(g)}},shouldUpdateCell:function(a,c,b){return c.shouldUpdateCell(a,b)},refresh:function(){var b=this,a;if(b.destroying){return}if(b.getVisibleColumnManager().getColumns().length){Ext.view.View.prototype.refresh.apply(this,arguments);b.headerCt.setSortState();if(b.touchScroll&&b.el&&!b.all.getCount()&&b.headerCt&&b.headerCt.tooNarrow){a=b.getScrollable();if(a){a.setSize({x:b.headerCt.getTableWidth(),y:a.getSize().y})}}}else{if(b.refreshCounter){b.clearViewEl(true)}}},processContainerEvent:function(b){var a=Ext.Component.fromElement(b.target.parentNode);if(a&&a.up(this.ownerCt)){return false}},processItemEvent:function(b,s,m,r){var w=this,o=w.self,v=o.EventMap,g=r.type,j=w.features,q=j.length,p,l,n,h,c,d=w.getNavigationModel(),t=r.position=w.eventPosition||(w.eventPosition=new Ext.grid.CellContext()),u,k,a;if(Ext.isIE&&g==="mouseup"&&!r.within(w.el)){return false}if(w.indexInStore(s)!==-1){k=t.rowElement=Ext.fly(s).down(w.rowSelector,true);if(Ext.String.startsWith(r.type,"key")&&(u=d.getPosition())){a=(a=d.getCell())&&a.dom;c=u.column}if(!a){a=r.getTarget(w.getCellSelector(),k)}g=o.TouchEventMap[g]||g;if(a){if(!a.parentNode){return false}if(!c){c=w.getHeaderByCell(a)}if(c){l=w.ownerCt.getColumnManager().getHeaderIndex(c)}else{c=a=null;l=-1}}else{l=-1}t.setAll(w,m,c?w.getVisibleColumnManager().getHeaderIndex(c):-1,b,c);t.cellElement=a;n=w.fireEvent("uievent",g,w,a,m,l,r,b,k);if((n===false||Ext.view.View.prototype.processItemEvent.apply(this,arguments)===false)){return false}for(p=0;p<q;++p){h=j[p];if(h.wrapsItem){if(h.vetoEvent(b,k,m,r)===false){w.processSpecialEvent(r);return false}}}if(a&&g!=="mouseover"&&g!=="mouseout"){n=!((w["onBeforeCell"+v[g]](a,l,b,k,m,r)===false)||(w.fireEvent("beforecell"+g,w,a,l,b,k,m,r)===false)||(w["onCell"+v[g]](a,l,b,k,m,r)===false)||(w.fireEvent("cell"+g,w,a,l,b,k,m,r)===false))}if(n!==false){n=w.fireEvent("row"+g,w,b,k,m,r)}return n}else{w.processSpecialEvent(r);return false}},processSpecialEvent:function(j){var m=this,c=m.features,l=c.length,n=j.type,d,o,g,h,b,k,a=m.ownerCt;Ext.view.View.prototype.processSpecialEvent.apply(this,arguments);if(n==="mouseover"||n==="mouseout"){return}n=m.self.TouchEventMap[n]||n;for(d=0;d<l;d++){o=c[d];if(o.hasFeatureEvent){h=j.getTarget(o.eventSelector,m.getTargetEl());if(h){g=o.eventPrefix;b=o.getFireEventArgs("before"+g+n,m,h,j);k=o.getFireEventArgs(g+n,m,h,j);if((m.fireEvent.apply(m,b)===false)||(a.fireEvent.apply(a,b)===false)||(m.fireEvent.apply(m,k)===false)||(a.fireEvent.apply(a,k)===false)){return false}}}}return true},onCellMouseDown:Ext.emptyFn,onCellLongPress:Ext.emptyFn,onCellMouseUp:Ext.emptyFn,onCellClick:Ext.emptyFn,onCellDblClick:Ext.emptyFn,onCellContextMenu:Ext.emptyFn,onCellKeyDown:Ext.emptyFn,onCellKeyUp:Ext.emptyFn,onCellKeyPress:Ext.emptyFn,onBeforeCellMouseDown:Ext.emptyFn,onBeforeCellLongPress:Ext.emptyFn,onBeforeCellMouseUp:Ext.emptyFn,onBeforeCellClick:Ext.emptyFn,onBeforeCellDblClick:Ext.emptyFn,onBeforeCellContextMenu:Ext.emptyFn,onBeforeCellKeyDown:Ext.emptyFn,onBeforeCellKeyUp:Ext.emptyFn,onBeforeCellKeyPress:Ext.emptyFn,expandToFit:function(a){this.autoSizeColumn(a)},autoSizeColumn:function(a){if(Ext.isNumber(a)){a=this.getGridColumns()[a]}if(a){if(a.isGroupHeader){a.autoSize();return}delete a.flex;a.setWidth(this.getMaxContentWidth(a))}},getMaxContentWidth:function(d){var g=this,l=g.el.query(d.getCellInnerSelector()),b=d.getWidth(),c=0,e=l.length,a=g.body.select(g.getColumnSizerSelector(d)),j=Math.max,h=0,k;if(e>0){if(Ext.supports.ScrollWidthInlinePaddingBug){h+=g.getCellPaddingAfter(l[0])}if(g.columnLines){h+=Ext.fly(l[0].parentNode).getBorderWidth("lr")}}a.setWidth(1);d.textEl.setStyle({"text-overflow":"clip",display:"table-cell"});k=d.textEl.dom.offsetWidth+d.titleEl.getPadding("lr");d.textEl.setStyle({"text-overflow":"",display:""});for(;c<e;c++){k=j(k,l[c].scrollWidth)}k+=h;k=j(k+1,40);a.setWidth(b);return k},getPositionByEvent:function(g){var d=this,b=g.getTarget(d.cellSelector),c=g.getTarget(d.itemSelector),a=d.getRecord(c),h=d.getHeaderByCell(b);return d.getPosition(a,h)},getHeaderByCell:function(a){if(a){return this.ownerCt.getVisibleColumnManager().getHeaderById(Ext.getDom(a).getAttribute("data-columnId"))}return false},walkCells:function(m,n,j,o,b,q){if(!m){return false}var k=this,r=typeof m.row==="number"?m.row:m.rowIdx,g=typeof m.column==="number"?m.column:m.colIdx,l=k.dataSource.getCount(),d=k.ownerCt.getVisibleColumnManager(),a=d.getHeaderIndex(d.getFirst()),i=d.getHeaderIndex(d.getLast()),p=r,h=g,c=d.getHeaderAtIndex(g);if(!c||c.hidden||!l){return false}j=j||{};n=n.toLowerCase();switch(n){case"right":if(g===i){if(o||r===l-1){return false}if(!j.ctrlKey){p=k.walkRows(r,1);if(p!==r){h=a}}}else{if(!j.ctrlKey){h=d.getHeaderIndex(d.getNextSibling(c))}else{h=i}}break;case"left":if(g===a){if(o||r===0){return false}if(!j.ctrlKey){p=k.walkRows(r,-1);if(p!==r){h=i}}}else{if(!j.ctrlKey){h=d.getHeaderIndex(d.getPreviousSibling(c))}else{h=a}}break;case"up":if(r===0){return false}else{if(!j.ctrlKey){p=k.walkRows(r,-1)}else{p=k.walkRows(-1,1)}}break;case"down":if(r===l-1){return false}else{if(!j.ctrlKey){p=k.walkRows(r,1)}else{p=k.walkRows(l,-1)}}break}if(b&&b.call(q||k,{row:p,column:h})!==true){return false}h=d.getHeaderAtIndex(h);return new Ext.grid.CellContext(k).setPosition(p,h)},walkRows:function(i,a){var d=this,h=d.dataSource,e=0,k=i,b,c=(a<0)?0:(h.isBufferedStore?h.getTotalCount():h.getCount())-1,g=c?1:-1,j=i;do{if(c?j>=c:j<=c){return k||c}j+=g;if((b=Ext.fly(d.getRow(j)))&&b.isVisible(true)){e+=g;k=j}}while(e!==a);return j},walkRecs:function(b,a){var h=this,k=h.dataSource,i=0,l=b,c,e=(a<0)?0:(k.isBufferedStore?k.getTotalCount():k.getCount())-1,j=e?1:-1,g=k.indexOf(b),d;do{if(e?g>=e:g<=e){return l}g+=j;d=k.getAt(g);if(!d.isCollapsedPlaceholder&&(c=Ext.fly(h.getNodeByRecord(d)))&&c.isVisible(true)){i+=j;l=d}}while(i!==a);return l},getFirstVisibleRowIndex:function(){var c=this,b=(c.dataSource.isBufferedStore?c.dataSource.getTotalCount():c.dataSource.getCount()),a=c.indexOf(c.all.first())-1;do{a+=1;if(a===b){return}}while(!Ext.fly(c.getRow(a)).isVisible(true));return a},getLastVisibleRowIndex:function(){var b=this,a=b.indexOf(b.all.last());do{a-=1;if(a===-1){return}}while(!Ext.fly(b.getRow(a)).isVisible(true));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(a,b){return new Ext.grid.CellContext(this).setPosition(a,b)},onDestroy:function(){var d=this,c=d.featuresMC,a,b;if(c){for(b=0,a=c.getCount();b<a;++b){c.getAt(b).destroy()}}d.cellFly=d.featuresMC=null;Ext.view.View.prototype.onDestroy.apply(this,arguments)},onReplace:function(b,e,a,d){var c=this,g=c.bufferedRenderer;if(c.rendered&&g){g.onReplace(b,e,a,d)}else{Ext.view.View.prototype.onReplace.apply(this,arguments)}c.setPendingStripe(e)},onResize:function(c,a,b,g){var d=this,e=d.bufferedRenderer;if(e){e.onViewResize(d,c,a,b,g)}Ext.view.View.prototype.onResize.call(this,c,a,b,g)},onAdd:function(b,a,c){var d=this,e=d.bufferedRenderer;if(d.rendered&&e&&(e.bodyTop||d.dataSource.getCount()+a.length>=e.viewSize)){e.onReplace(b,c,[],a)}else{Ext.view.View.prototype.onAdd.apply(this,arguments)}d.setPendingStripe(c)},onRemove:function(b,a,c){var d=this,e=d.bufferedRenderer;if(d.rendered&&e&&d.dataSource.getCount()+a.length>=e.viewSize){e.onReplace(b,c,a,[])}else{Ext.view.View.prototype.onRemove.apply(this,arguments)}d.setPendingStripe(c)},onDataRefresh:function(b){var c=this,a=c.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on("expand",c.onDataRefresh,c,{single:true});return}Ext.view.View.prototype.onDataRefresh.call(this,b)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(a){var b=this.stripeOnUpdate;if(b===null){b=a}else{b=Math.min(b,a)}this.stripeOnUpdate=b},onEndUpdate:function(){var a=this,c=a.stripeOnUpdate,b=a.all.startIndex;if(a.rendered&&(c||c===0)){if(c<b){c=b}a.doStripeRows(c);a.stripeOnUpdate=null}Ext.view.View.prototype.onEndUpdate.apply(this,arguments)},doStripeRows:function(b,a){var d=this,e,h,c,g;if(d.rendered&&d.stripeRows){e=d.getNodes(b,a);for(c=0,h=e.length;c<h;c++){g=e[c];g.className=g.className.replace(d.rowClsRe," ");b++;if(b%2===0){g.className+=(" "+d.altRowCls)}}}},hasActiveFeature:function(){return(this.isGrouping&&this.store.isGrouped())||this.isRowWrapped},getCellPaddingAfter:function(a){return Ext.fly(a).getPadding("r")},privates:{refreshScroll:function(){var a=this,b=a.bufferedRenderer;if(b){b.refreshSize()}else{Ext.view.View.prototype.refreshScroll.call(this)}}}},1,["gridview","tableview"],["component","box","dataview","tableview","gridview"],{component:true,box:true,dataview:true,tableview:true,gridview:true},["widget.gridview","widget.tableview"],0,[Ext.view,"Table",Ext.grid,"View"],0));Ext.define("Ext.rtl.view.Table",{override:"Ext.view.Table",rtlCellTpl:['<td class="x-rtl {tdCls}" {tdAttr} {[Ext.aria ? "id=\\"" + Ext.id() + "\\"" : ""]} style="width:{column.cellWidth}px;<tpl if="tdStyle">{tdStyle}</tpl>" tabindex="-1" {ariaCellAttr} data-columnid="{[values.column.getItemId()]}">','<div {unselectableAttr} class="x-rtl x-grid-cell-inner {innerCls}" ','style="text-align:{[this.getAlign(values.align)]};<tpl if="style">{style}</tpl>" {ariaCellInnerAttr}>{value}</div>',"</td>",{priority:0,rtlAlign:{right:"left",left:"right",center:"center"},getAlign:function(a){return this.rtlAlign[a]}}],beforeRender:function(){var a=this;(arguments.callee.$previous||Ext.view.View.prototype.beforeRender).call(this);if(a.getInherited().rtl){a.addCellTpl(a.getTpl("rtlCellTpl"))}},getCellPaddingAfter:function(a){return Ext.fly(a).getPadding(this.getInherited().rtl?"l":"r")}});(Ext.cmd.derive("Ext.grid.Panel",Ext.panel.Table,{alternateClassName:["Ext.list.ListView","Ext.ListView","Ext.grid.GridPanel"],viewType:"tableview",lockable:false,rowLines:true},0,["grid","gridpanel"],["component","box","container","panel","tablepanel","gridpanel","grid"],{component:true,box:true,container:true,panel:true,tablepanel:true,gridpanel:true,grid:true},["widget.grid","widget.gridpanel"],0,[Ext.grid,"Panel",Ext.list,"ListView",Ext,"ListView",Ext.grid,"GridPanel"],0));(Ext.cmd.derive("Ext.grid.RowEditorButtons",Ext.container.Container,{frame:true,shrinkWrap:true,position:"bottom",constructor:function(b){var d=this,a=b.rowEditor,e="x-",c=a.editingPlugin;b=Ext.apply({baseCls:e+"grid-row-editor-buttons",defaults:{xtype:"button",ui:a.buttonUI,scope:c,flex:1,minWidth:Ext.panel.Panel.prototype.minButtonWidth},items:[{cls:e+"row-editor-update-button",itemId:"update",handler:c.completeEdit,text:a.saveBtnText,disabled:a.updateButtonDisabled},{cls:e+"row-editor-cancel-button",itemId:"cancel",handler:c.cancelEdit,text:a.cancelBtnText}]},b);Ext.container.Container.prototype.constructor.call(this,b);d.addClsWithUI(d.position)},setButtonPosition:function(b){var e=this,a=this.rowEditor,h=a.getHeight(),d=a.body,c="",g="";e.removeClsWithUI(e.position);e.position=b;e.addClsWithUI(b);if(b==="top"){c=(h-d.getBorderWidth("t"))+"px"}else{g=(h-d.getBorderWidth("b"))+"px"}e.el.setStyle({top:g,bottom:c})},privates:{getFramingInfoCls:function(){return this.baseCls+"-"+this.ui+"-"+this.position},getFrameInfo:function(){var a=Ext.container.Container.prototype.getFrameInfo.call(this);a.top=true;return a}}},1,["roweditorbuttons"],["component","box","container","roweditorbuttons"],{component:true,box:true,container:true,roweditorbuttons:true},["widget.roweditorbuttons"],0,[Ext.grid,"RowEditorButtons"],0));(Ext.cmd.derive("Ext.grid.RowEditor",Ext.form.Panel,{saveBtnText:"Update",cancelBtnText:"Cancel",errorsText:"Errors",dirtyText:"You need to commit or cancel your changes",lastScrollLeft:0,lastScrollTop:0,border:false,_wrapCls:"x-grid-row-editor-wrap",errorCls:"x-grid-row-editor-errors-item",buttonUI:"default",hideMode:"offsets",_cachedNode:false,initComponent:function(){var d=this,b=d.editingPlugin.grid,a=Ext.container.Container,c,e,g;d.cls="x-grid-editor x-grid-row-editor";d.layout={type:"hbox",align:"middle"};d.lockable=b.lockable;if(d.lockable){d.items=[g=d.lockedColumnContainer=new a({id:b.id+"-locked-editor-cells",scrollable:{x:false,y:false},layout:{type:"hbox",align:"middle"},margin:"0 1 0 0"}),e=d.normalColumnContainer=new a({scrollable:{x:false,y:false},flex:1,id:b.id+"-normal-editor-cells",layout:{type:"hbox",align:"middle"}})];g.getScrollable().addPartner(b.lockedGrid.view.getScrollable(),"x");e.getScrollable().addPartner(b.normalGrid.view.getScrollable(),"x")}else{d.setScrollable({x:false,y:false});d.getScrollable().addPartner(b.view.getScrollable(),"x");d.lockedColumnContainer=d.normalColumnContainer=d}Ext.form.Panel.prototype.initComponent.call(this);if(d.fields){d.addFieldsForColumn(d.fields,true);d.insertColumnEditor(d.fields);delete d.fields}d.mon(Ext.GlobalEvents,{scope:d,show:d.repositionIfVisible});c=d.getForm();c.trackResetOnLoad=true;c.on("validitychange",d.onValidityChange,d);c.on("errorchange",d.onErrorChange,d)},onGridResize:function(){var c=this,e=c.getClientWidth(),a=c.editingPlugin.grid,d=a.body,b=c.getFloatingButtons();c.wrapEl.setLocalX(d.getOffsetsTo(a)[0]+d.getBorderWidth("l")-a.el.getBorderWidth("l"));c.setWidth(e);b.setLocalX((e-b.getWidth())/2);if(c.lockable){c.lockedColumnContainer.setWidth(a.lockedGrid.view.el.dom.clientWidth)}},syncAllFieldWidths:function(){var e=this,d=e.query("[isEditorComponent]"),a=d.length,c,b;e.preventReposition=true;for(b=0;b<a;++b){c=d[b].column;if(c.isVisible()){e.onColumnShow(c)}}e.preventReposition=false},syncFieldWidth:function(b){var c=b.getEditor(),a;c._marginWidth=(c._marginWidth||c.el.getMargin("lr"));a=b.getWidth()-c._marginWidth;c.setWidth(a);if(c.xtype==="displayfield"){c.inputWidth=a}},onValidityChange:function(b,a){this.updateButton(a)},onErrorChange:function(){var b=this,a;if(b.errorSummary&&b.isVisible()){a=b.getForm().isValid();b[a?"hideToolTip":"showToolTip"]()}},updateButton:function(b){var a=this.floatingButtons;if(a){a.child("#update").setDisabled(!b)}else{this.updateButtonDisabled=!b}},afterRender:function(){var d=this,c=d.editingPlugin,b=c.grid,a=b.lockable?b.normalGrid.view:b.view;Ext.form.Panel.prototype.afterRender.apply(this,arguments);d.scrollingView=a;d.scrollingViewEl=a.el;a.on("scroll",d.onViewScroll,d);d.mon(d.el,{click:Ext.emptyFn,stopPropagation:true});d.mon(b,"resize",d.onGridResize,d);if(d.lockable){b.lockedGrid.view.on("resize","onGridResize",d)}d.el.swallowEvent(["keypress","keydown"]);d.initKeyNav();d.mon(c.view,{beforerefresh:d.onBeforeViewRefresh,refresh:d.onViewRefresh,itemremove:d.onViewItemRemove,scope:d});d.syncAllFieldWidths()},initKeyNav:function(){var b=this,a=b.editingPlugin;b.keyNav=new Ext.util.KeyNav(b.el,{enter:a.onEnterKey,esc:a.onEscKey,scope:a})},onBeforeViewRefresh:function(b){var c=this,a=b.el.dom;if(c.el.dom.parentNode===a){a.removeChild(c.el.dom)}},onViewRefresh:function(a){var c=this,b=c.context,d;if(!c.completing){if(b&&(d=a.getRow(b.record))){b.row=d;c.reposition();if(c.tooltip&&c.tooltip.isVisible()){c.tooltip.setTarget(b.row)}}else{c.editingPlugin.cancelEdit()}}},onViewItemRemove:function(d,g,h,j){var i=this,c=i.context,b,k,a,e;if(!j.refreshing&&c){e=i.editingPlugin;b=e.grid;k=b.getStore();a=i.editingPlugin.view;if(k.getById(i.getRecord().getId())&&!i._cachedNode){if(e.editing){i._cachedNode=true;i.mon(a,{itemadd:i.onViewItemAdd,scope:i})}}else{if(!i._cachedNode){i.activeField=null;i.editingPlugin.cancelEdit()}}}},onViewItemAdd:function(b,e,g,i){var h=this,d=h.editingPlugin,a,j,c;if(h._cachedNode&&h.context){a=d.view;if((j=Ext.Array.indexOf(b,h.context.record))!==-1){c=b[j];h.context.node=c;h.context.row=a.getRow(c);h.context.cell=a.getCellByPosition(h.context,true);h.clearCache()}}},onViewScroll:function(){var c=this,b=c.editingPlugin.view.el,h=c.scrollingView,d=h.getScrollY(),g=h.getScrollX(),a=d!==c.lastScrollTop,e;c.lastScrollTop=d;c.lastScrollLeft=g;if(c.isVisible()){e=Ext.getDom(c.context.row);if(e&&b.contains(e)){if(c.getLocalY()){c.setLocalY(0)}if(a){c.context.row=e;c.reposition(null,true);if((c.tooltip&&c.tooltip.isVisible())||c.hiddenTip){c.repositionTip()}}}else{c.setLocalY(-400);c.floatingButtons.hide()}}},onColumnResize:function(b,a){var c=this;if(c.rendered&&!c.editingPlugin.reconfiguring){c.onGridResize();c.onViewScroll();if(!b.isGroupHeader){c.syncFieldWidth(b);c.repositionIfVisible()}}},onColumnHide:function(a){if(!this.editingPlugin.reconfiguring&&!a.isGroupHeader){a.getEditor().hide();this.repositionIfVisible()}},onColumnShow:function(a){var b=this;if(b.rendered&&!b.editingPlugin.reconfiguring&&!a.isGroupHeader&&a.getEditor){a.getEditor().show();b.syncFieldWidth(a);if(!b.preventReposition){b.repositionIfVisible()}}},onColumnMove:function(c,a,m){var l=this,h=c.isLocked(),j=h?l.lockedColumnContainer:l.normalColumnContainer,d,g,k,b,e;if(c.isGroupHeader){Ext.suspendLayouts();b=m>a;e=b?1:0;d=c.getGridColumns();for(g=0,k=d.length;g<k;++g){c=d[g];m=c.getIndex();if(b){++e}l.setColumnEditor(c,m+e,j)}Ext.resumeLayouts(true)}else{l.setColumnEditor(c,c.getIndex(),j)}},setColumnEditor:function(b,a,c){this.addFieldsForColumn(b);c.insert(a,b.getEditor())},onColumnAdd:function(a){if(a.isGroupHeader){a=a.getGridColumns()}this.addFieldsForColumn(a);this.insertColumnEditor(a);this.preventReposition=false},insertColumnEditor:function(c){var d=this,e,g,a,b;if(Ext.isArray(c)){for(b=0,a=c.length;b<a;b++){d.insertColumnEditor(c[b])}return}if(!c.getEditor){return}g=c.isLocked()?d.lockedColumnContainer:d.normalColumnContainer;g.insert(c.getIndex(),e=c.getEditor());e.on("focus",d.onFieldFocus,d);d.needsSyncFieldWidths=true},onFieldFocus:function(a){if((Ext.isIE||Ext.isEdge)&&a.selectText){a.selectText(a.inputEl.dom.value.length)}this.activeField=a;this.context.setColumn(a.column);if(!this.skipFocusScroll){a.column.getView().getScrollable().scrollIntoView(a.el)}else{this.skipFocusScroll=null}},destroyColumnEditor:function(a){var b;if(a.hasEditor()&&(b=a.getEditor())){b.destroy()}},getFloatingButtons:function(){var b=this,a=b.floatingButtons;if(!a){b.floatingButtons=a=new Ext.grid.RowEditorButtons({rowEditor:b})}return a},repositionIfVisible:function(d){var b=this,a=b.view;if(d&&(d===b||!d.el.isAncestor(a.el))){return}if(b.isVisible()&&a.isVisible(true)){b.reposition()}},isLayoutChild:function(a){return false},getRefOwner:function(){return this.editingPlugin.grid},getRefItems:function(b){var c=this,a;if(c.lockable){a=[c.lockedColumnContainer];a.push.apply(a,c.lockedColumnContainer.getRefItems(b));a.push(c.normalColumnContainer);a.push.apply(a,c.normalColumnContainer.getRefItems(b))}else{a=Ext.form.Panel.prototype.getRefItems.apply(this,arguments)}a.push.apply(a,c.getFloatingButtons().getRefItems(b));return a},reposition:function(i,e){var g=this,b=g.context,k=b&&b.row,j=g.wrapEl,a,c,d,h;if(k&&Ext.isElement(k)){d=g.syncButtonPosition();a=g.calculateLocalRowTop(k);c=g.calculateEditorTop(a);if(!e){h=function(){if(d){g.scrollingView.getScrollable().scrollBy(0,d,true)}g.focusColumnField(b.column)}}g.syncEditorClip(c);if(i){j.animate(Ext.applyIf({to:{top:c},duration:i.duration||125,callback:h},i))}else{j.setLocalY(c);if(h){h()}}}},getScrollDelta:function(){var e=this,d=e.scrollingViewEl.dom,c=e.context,b=e.body,a=0;if(c){a=Ext.fly(c.row).getOffsetsTo(d)[1];if(a<0){a-=b.getBorderPadding().beforeY}else{if(a>0){a=Math.max(a+e.getHeight()+e.floatingButtons.getHeight()-d.clientHeight-b.getBorderWidth("b"),0);if(a>0){a-=b.getBorderPadding().afterY}}}}return a},calculateLocalRowTop:function(b){var a=this.editingPlugin.grid;return Ext.fly(b).getOffsetsTo(a)[1]-a.el.getBorderWidth("t")+this.lastScrollTop},calculateEditorTop:function(b){var a=b-this.lastScrollTop;if(this._buttonsOnTop){a-=(this.body.dom.offsetHeight-this.context.row.offsetHeight-this.body.getBorderPadding().afterY)}else{a-=this.body.getBorderPadding().beforeY}return a},getClientWidth:function(){var c=this,b=c.editingPlugin.grid,a;if(c.lockable){a=b.lockedGrid.getWidth()+b.normalGrid.view.el.dom.clientWidth}else{a=b.view.el.dom.clientWidth}return a},getEditor:function(a){var b=this;if(Ext.isNumber(a)){return b.query("[isEditorComponent]")[a]}else{if(a.isHeader&&!a.isGroupHeader){return a.getEditor()}}},addFieldsForColumn:function(e,b){var g=this,c,a,h,d;if(Ext.isArray(e)){for(c=0,a=e.length;c<a;c++){g.addFieldsForColumn(e[c],b)}return}if(e.getEditor){h=e.getEditor(null,g.getDefaultFieldCfg());if(e.align==="right"){d=h.fieldStyle;if(d){if(Ext.isObject(d)){d=Ext.apply({},d)}else{d=Ext.dom.Element.parseStyles(d)}if(!d.textAlign&&!d["text-align"]){d.textAlign="right"}}else{d="text-align:right"}h.fieldStyle=d}if(e.xtype==="actioncolumn"){h.fieldCls+=" x-form-action-col-field"}if(g.isVisible()&&g.context){if(h.is("displayfield")){g.renderColumnData(h,g.context.record,e)}else{h.suspendEvents();h.setValue(g.context.record.get(e.dataIndex));h.resumeEvents()}}if(e.hidden){g.onColumnHide(e)}else{if(e.rendered&&!b){g.onColumnShow(e)}}}},getDefaultFieldCfg:function(){return{xtype:"displayfield",getModelData:function(){return null}}},loadRecord:function(d){var j=this,a=j.getForm(),e=a.getFields(),h=e.items,b=h.length,c,g,l,k;for(c=0;c<b;c++){k=h[c];k.suspendEvents();k.resetToInitialValue()}a.loadRecord(d);for(c=0;c<b;c++){h[c].resumeEvents()}if(a.hasInvalidField()===a.wasValid){delete a.wasValid}l=a.isValid();if(j.errorSummary){if(l){j.hideToolTip()}else{j.showToolTip()}}j.updateButton(l);g=j.query(">displayfield");b=g.length;for(c=0;c<b;c++){j.renderColumnData(g[c],d)}},renderColumnData:function(m,i,c){var k=this,a=k.editingPlugin.grid,e=a.headerCt,l=k.scrollingView,o=l.dataSource,g=c||m.column,n=i.get(g.dataIndex),j=g.editRenderer||g.renderer,b,d,h,p=(g.usingDefaultRenderer&&!g.scope)?g:g.scope;if(j){b={tdCls:"",style:""};d=o.indexOf(i);h=e.getHeaderIndex(g);n=j.call(p||e.ownerCt,n,b,i,d,h,o,l)}m.setRawValue(n)},beforeEdit:function(){var a=this,b;if(a.isVisible()&&a.errorSummary&&!a.autoCancel&&a.isDirty()){b=a.getScrollDelta();if(b){a.scrollingViewEl.scrollBy(0,b,true)}a.showToolTip();return false}},startEdit:function(e,c){var h=this,i=h.editingPlugin,a=i.grid,b=h.context=i.context,d=h.isVisible(),j=h.wrapEl,g=h.rendered;if(h._cachedNode){h.clearCache()}Ext.suspendLayouts();if(!g){h.width=h.getClientWidth();h.render(a.el,a.el.dom.firstChild);j=h.wrapEl=h.el.wrap();j.setVisibilityMode(3);j.addCls(h._wrapCls);h.getFloatingButtons().render(j);h.onViewScroll()}h.setLocalY(0);b.grid.getSelectionModel().selectByPosition({row:e,column:c});h.onGridResize();h.loadRecord(e);Ext.resumeLayouts(d);if(d){h.reposition(true)}else{h.skipFocusScroll=true;h.show()}if(!g){if(h.lockable){h.lockedColumnContainer.getScrollable().syncWithPartners();h.normalColumnContainer.getScrollable().syncWithPartners()}else{h.getScrollable().syncWithPartners()}}},syncButtonPosition:function(){var c=this,e=c.getScrollDelta(),a=c.getFloatingButtons(),h=c.scrollingView,d=h.getScrollable(),b=Math.max(0,d.getSize().y-c.scrollingViewEl.dom.clientHeight),g=e-(b-h.getScrollY());a.show();if(g>0){if(!c._buttonsOnTop){a.setButtonPosition("top");c._buttonsOnTop=true;c.layout.setAlign("bottom");c.updateLayout()}e=0}else{if(c._buttonsOnTop!==false){a.setButtonPosition("bottom");c._buttonsOnTop=false;c.layout.setAlign("top");c.updateLayout()}else{a.setButtonPosition(a.position)}}return e},syncEditorClip:function(o){var m=this,a=m.editingPlugin.grid,d=m.scrollingViewEl.getOffsetsTo(a.el)[1],h=d+m.scrollingViewEl.dom.clientHeight-1,l=m.getHeight(),b=o+l-1,k=m.floatingButtons,g=k.getHeight(),e,c=m.el,i=k.el,n=Math.max,j=m.body;if(m._buttonsOnTop){o+=i.getOffsetsTo(j)[1]}else{b=o+i.getLocalY()+g-1}if(b>h){e=b-h;if(m._buttonsOnTop){e-=(g-j.getBorderWidth("b"));m.clipBottom(c,n(l-e),0);e-=(l-j.getBorderWidth("t"));if(e>0){m.clipBottom(i,n(g-e,0))}else{m.clearClip(i)}}else{m.clipBottom(i,n(g-e,0));e-=(g-j.getBorderWidth("b"));if(e>0){m.clipBottom(c,n(l-e,0))}else{m.clearClip(c)}}}else{if(o<d){e=o-d;e=Math.abs(e);m.clipTop(c,e);e-=(l-j.getBorderWidth("b"));if(e>0){m.clipTop(i,e)}else{m.clearClip(i)}}else{m.clearClip(i);m.clearClip(c)}}},focusColumnField:function(b){var c,a;if(b&&!b.isDestroyed){if(b.isVisible()){c=this.getEditor(b);if(c&&c.isFocusable(true)){a=true;c.focus()}}if(!a){this.focusColumnField(b.next())}}},cancelEdit:function(){var g=this,e=g.getForm(),a=e.getFields(),b=a.items,d=b.length,c;if(g._cachedNode){g.clearCache()}g.hide();e.clearInvalid();for(c=0;c<d;c++){b[c].suspendEvents()}e.reset();for(c=0;c<d;c++){b[c].resumeEvents()}},clearCache:function(){var a=this;a.mun(a.editingPlugin.view,{itemadd:a.onViewItemAdd,scope:a});a._cachedNode=false},completeEdit:function(){var b=this,a=b.getForm();if(!a.isValid()){return false}b.completing=true;a.updateRecord(b.context.record);b.hide();b.completing=false;return true},onShow:function(){var a=this;a.wrapEl.show();a.previousFocus=Ext.Element.getActiveElement();Ext.form.Panel.prototype.onShow.apply(this,arguments);if(a.needsSyncFieldWidths){a.suspendLayouts();a.syncAllFieldWidths();a.resumeLayouts(true)}delete a.needsSyncFieldWidths;a.reposition()},onHide:function(){var b=this,a=b.context;b.context=null;if(b.wrapEl.contains(Ext.Element.getActiveElement())){if(a){a.setPosition(a.record,a.cellIdx);a.view.getNavigationModel().setPosition(a)}else{b.view.focus()}}b.activeField=null;b.wrapEl.hide();Ext.form.Panel.prototype.onHide.apply(this,arguments);if(b.tooltip){b.hideToolTip()}},onResize:function(b,a){this.wrapEl.setSize(b,a)},isDirty:function(){return this.getForm().isDirty()},getToolTip:function(){var b=this,c=b.tooltip,a=b.editingPlugin.grid;if(!c){b.tooltip=c=new Ext.tip.ToolTip({cls:"x-grid-row-editor-errors",title:b.errorsText,autoHide:false,closable:true,closeAction:"disable",anchor:"left",anchorToTarget:true,constrainPosition:true,constrainTo:document.body});a.add(c);b.mon(a,{afterlayout:b.onGridLayout,scope:b})}return c},hideToolTip:function(){var a=this,b=a.getToolTip();if(b.rendered){b.disable()}a.hiddenTip=false},showToolTip:function(){var a=this,b=a.getToolTip();b.update(a.getErrors());a.repositionTip();b.enable()},onGridLayout:function(){if(this.tooltip&&this.tooltip.isVisible()){this.repositionTip()}},repositionTip:function(){var i=this,j=i.getToolTip(),c=i.context,l=Ext.get(c.row),k=i.scrollingViewEl,e=k.dom.clientHeight,g=k.getY(),h=g+e,b=l.getHeight(),a=l.getY(),d=a+b;if(d>g&&a<h){j.anchorTarget=k;j.mouseOffset=[0,l.getOffsetsTo(k)[1]];j.show();i.hiddenTip=false}else{j.hide();i.hiddenTip=true}},getErrors:function(){var e=this,h=[],b=e.query(">[isFormField]"),d=b.length,c,a,g;for(c=0;c<d;c++){g=b[c];a=g.getErrors();if(a.length){h.push(e.createErrorListItem(a[0],g.column.text))}}if(!h.length&&!e.autoCancel&&e.isDirty()){h[0]=e.createErrorListItem(e.dirtyText)}return'<ul class="x-list-plain">'+h.join("")+"</ul>"},createErrorListItem:function(b,a){b=a?a+": "+b:b;return'<li class="'+this.errorCls+'">'+b+"</li>"},beforeDestroy:function(){Ext.destroy(this.floatingButtons,this.tooltip);Ext.form.Panel.prototype.beforeDestroy.call(this)},clipBottom:function(a,b){a.setStyle("clip","rect(0 auto "+b+"px 0)")},clipTop:function(a,b){a.setStyle("clip","rect("+b+"px auto auto 0)")},clearClip:function(a){a.setStyle("clip",Ext.isIE8?"rect(-1000px auto 1000px auto)":"auto")}},0,["roweditor"],["component","box","container","panel","form","roweditor"],{component:true,box:true,container:true,panel:true,form:true,roweditor:true},["widget.roweditor"],0,[Ext.grid,"RowEditor"],0));(Ext.cmd.derive("Ext.view.DropZone",Ext.dd.DropZone,{indicatorCls:"x-grid-drop-indicator",indicatorHtml:['<div class="',"x-",'grid-drop-indicator-left" role="presentation"></div>','<div class="x-grid-drop-indicator-right" role="presentation"></div>'].join(""),constructor:function(a){var b=this;Ext.apply(b,a);if(!b.ddGroup){b.ddGroup="view-dd-zone-"+b.view.id}Ext.dd.DropZone.prototype.constructor.call(this,b.view.el)},fireViewEvent:function(){var b=this,a;b.lock();a=b.view.fireEvent.apply(b.view,arguments);b.unlock();return a},getTargetFromEvent:function(k){var j=k.getTarget(this.view.getItemSelector()),d,c,b,g,a,h;if(!j){d=k.getY();for(g=0,c=this.view.getNodes(),a=c.length;g<a;g++){b=c[g];h=Ext.fly(b).getBox();if(d<=h.bottom){return b}}}return j},getIndicator:function(){var a=this;if(!a.indicator){a.indicator=new Ext.Component({ariaRole:"presentation",html:a.indicatorHtml,cls:a.indicatorCls,ownerCt:a.view,floating:true,shadow:false})}return a.indicator},getPosition:function(c,a){var g=c.getXY()[1],b=Ext.fly(a).getRegion(),d;if((b.bottom-g)>=(b.bottom-b.top)/2){d="before"}else{d="after"}return d},containsRecordAtOffset:function(d,b,g){if(!b){return false}var a=this.view,c=a.indexOf(b),e=a.getNode(c+g),h=e?a.getRecord(e):null;return h&&Ext.Array.contains(d,h)},positionIndicator:function(b,c,d){var g=this,i=g.view,h=g.getPosition(d,b),k=i.getRecord(b),a=c.records,j;if(!Ext.Array.contains(a,k)&&(h==="before"&&!g.containsRecordAtOffset(a,k,-1)||h==="after"&&!g.containsRecordAtOffset(a,k,1))){g.valid=true;if(g.overRecord!==k||g.currentPosition!==h){j=Ext.fly(b).getY()-i.el.getY()-1;if(h==="after"){j+=Ext.fly(b).getHeight()}if(i.touchScroll===2){j+=i.getScrollY()}g.getIndicator().setWidth(Ext.fly(i.el).getWidth()).showAt(0,j);g.overRecord=k;g.currentPosition=h}}else{g.invalidateDrop()}},invalidateDrop:function(){if(this.valid){this.valid=false;this.getIndicator().hide()}},onNodeOver:function(c,a,g,d){var b=this;if(!Ext.Array.contains(d.records,b.view.getRecord(c))){b.positionIndicator(c,d,g)}return b.valid?b.dropAllowed:b.dropNotAllowed},notifyOut:function(c,a,g,d){var b=this;Ext.dd.DropZone.prototype.notifyOut.apply(this,arguments);b.overRecord=b.currentPosition=null;b.valid=false;if(b.indicator){b.indicator.hide()}},onContainerOver:function(a,h,g){var d=this,b=d.view,c=b.dataSource.getCount();if(c){d.positionIndicator(b.all.last(),g,h)}else{d.overRecord=d.currentPosition=null;d.getIndicator().setWidth(Ext.fly(b.el).getWidth()).showAt(0,0);d.valid=true}return d.dropAllowed},onContainerDrop:function(a,c,b){return this.onNodeDrop(a,null,c,b)},onNodeDrop:function(i,a,h,g){var d=this,c=false,b={wait:false,processDrop:function(){d.invalidateDrop();d.handleNodeDrop(g,d.overRecord,d.currentPosition);c=true;d.fireViewEvent("drop",i,g,d.overRecord,d.currentPosition)},cancelDrop:function(){d.invalidateDrop();c=true}},j=false;if(d.valid){j=d.fireViewEvent("beforedrop",i,g,d.overRecord,d.currentPosition,b);if(b.wait){return}if(j!==false){if(!c){b.processDrop()}}}return j},destroy:function(){Ext.destroy(this.indicator);delete this.indicator;Ext.dd.DropZone.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.view,"DropZone"],0));(Ext.cmd.derive("Ext.grid.ViewDropZone",Ext.view.DropZone,{indicatorHtml:'<div class="x-grid-drop-indicator-left" role="presentation"></div><div class="x-grid-drop-indicator-right" role="presentation"></div>',indicatorCls:"x-grid-drop-indicator",handleNodeDrop:function(b,d,e){var j=this.view,k=j.getStore(),h,a,c,g;if(b.copy){a=b.records;b.records=[];for(c=0,g=a.length;c<g;c++){b.records.push(a[c].copy())}}else{b.view.store.remove(b.records,b.view===j)}if(d&&e){h=k.indexOf(d);if(e!=="before"){h++}k.insert(h,b.records)}else{k.add(b.records)}j.getSelectionModel().select(b.records);j.getNavigationModel().setPosition(b.records[0])}},0,0,0,0,0,0,[Ext.grid,"ViewDropZone"],0));(Ext.cmd.derive("Ext.grid.plugin.HeaderResizer",Ext.plugin.Abstract,{disabled:false,config:{dynamic:false},colHeaderCls:"x-column-header",minColWidth:40,maxColWidth:1000,eResizeCursor:"col-resize",init:function(b){var a=this;a.headerCt=b;b.on("render",a.afterHeaderRender,a,{single:a});if(!a.minColWidth){a.self.prototype.minColWidth=Ext.grid.column.Column.prototype.minWidth}},destroy:function(){var a=this.tracker;if(a){a.destroy();this.tracker=null}},afterHeaderRender:function(){var b=this,c=b.headerCt,a=c.el;c.mon(a,"mousemove",b.onHeaderCtMouseMove,b);b.markerOwner=b.ownerGrid=b.headerCt.up("tablepanel").ownerGrid;b.tracker=new Ext.dd.DragTracker({disabled:b.disabled,onBeforeStart:b.onBeforeStart.bind(b),onStart:b.onStart.bind(b),onDrag:b.onDrag.bind(b),onEnd:b.onEnd.bind(b),tolerance:3,autoStart:300,el:a})},onHeaderCtMouseMove:function(b){var a=this;if(a.headerCt.dragging||a.disabled){if(a.activeHd){a.activeHd.el.dom.style.cursor="";delete a.activeHd}}else{if(b.pointerType!=="touch"){a.findActiveHeader(b)}}},findActiveHeader:function(g){var h=this,c=h.headerCt,j=g.getTarget("."+h.colHeaderCls,c.el,true),k=h.ownerGrid,a=k.ownerLockable,l,i,b,d;h.activeHd=null;if(j){l=Ext.getCmp(j.id);if(l.isAtEndEdge(g)){if(c.visibleColumnManager.getColumns().length===1&&c.forceFit){return}i=l}else{if(l.isAtStartEdge(g)){b=c.visibleColumnManager.getColumns();d=l.isGroupHeader?l.getGridColumns()[0]:l;i=b[Ext.Array.indexOf(b,d)-1];if(!i&&a&&!k.isLocked){b=a.lockedGrid.headerCt.visibleColumnManager.getColumns();i=b[b.length-1]}}}if(i){if(i.isGroupHeader){b=i.getGridColumns();i=b[b.length-1]}if(i&&!(i.fixed||(i.resizable===false))){h.activeHd=i;l.el.dom.style.cursor=h.eResizeCursor;if(l.triggerEl){l.triggerEl.dom.style.cursor=h.eResizeCursor}}}else{l.el.dom.style.cursor="";if(l.triggerEl){l.triggerEl.dom.style.cursor=""}}}return h.activeHd},onBeforeStart:function(b){var a=this;a.dragHd=a.activeHd||b.pointerType==="touch"&&a.findActiveHeader(b);if(a.dragHd&&!a.headerCt.dragging){a.xDelta=a.dragHd.getX()+a.dragHd.getWidth()-a.tracker.getXY()[0];a.tracker.constrainTo=a.getConstrainRegion();return true}else{a.headerCt.dragging=false;return false}},getConstrainRegion:function(){var g=this,b=g.dragHd.el,e,h=g.ownerGrid,d=h.getSizeModel().width,c=d.shrinkWrap?g.headerCt.getWidth()-g.headerCt.visibleColumnManager.getColumns().length*g.minColWidth:g.maxColWidth,a;if(g.headerCt.forceFit){e=g.dragHd.nextNode("gridcolumn:not([hidden]):not([isGroupHeader])");if(e&&g.headerInSameGrid(e)){c=b.getWidth()+(e.getWidth()-g.minColWidth)}}else{if(h.isLocked&&d.shrinkWrap){c=g.dragHd.up("[scrollerOwner]").getTargetEl().getWidth(true)-h.getWidth()-(h.ownerLockable.normalGrid.visibleColumnManager.getColumns().length*g.minColWidth+Ext.getScrollbarSize().width)}}a=g.adjustConstrainRegion(b.getRegion(),0,0,0,g.minColWidth);a.right=b.getX()+c;return a},onStart:function(h){var i=this,g=i.dragHd,b=g.el.getWidth(),d=g.getRootHeaderCt(),l,k,c,a,j,m;i.headerCt.dragging=true;i.origWidth=b;if(!i.dynamic){c=i.markerOwner;if(c.frame&&c.resizable){i.gridOverflowSetting=c.el.dom.style.overflow;c.el.dom.style.overflow="hidden"}l=i.getLeftMarkerX(c);a=c.getLhsMarker();j=c.getRhsMarker();m=i.ownerGrid.body.getHeight()+d.getHeight();k=d.getOffsetsTo(c)[1]-c.el.getBorderWidth("t");a.dom.style.cursor=i.eResizeCursor;j.dom.style.cursor=i.eResizeCursor;a.setLocalY(k);j.setLocalY(k);a.setHeight(m);j.setHeight(m);i.setMarkerX(a,l);i.setMarkerX(j,l+b)}},onDrag:function(b){var a=this;if(a.dynamic){a.doResize()}else{a.setMarkerX(a.getMovingMarker(a.markerOwner),a.calculateDragX(a.markerOwner))}},getMovingMarker:function(a){return a.getRhsMarker()},onEnd:function(b){var a=this,c=a.markerOwner;a.headerCt.dragging=false;if(a.dragHd){if(!a.dynamic){if("gridOverflowSetting" in a){c.el.dom.style.overflow=a.gridOverflowSetting}a.setMarkerX(c.getLhsMarker(),-9999);a.setMarkerX(c.getRhsMarker(),-9999)}a.doResize();if(b.pointerType!=="touch"){a.dragHd=null;a.activeHd.el.dom.style.cursor=a.eResizeCursor}else{a.dragHd=a.activeHd=null}}},doResize:function(){var c=this,b=c.dragHd,a,d=c.tracker.getOffset("point");if(b&&d[0]){if(b.flex){delete b.flex}Ext.suspendLayouts();c.adjustColumnWidth(d[0]-c.xDelta);if(c.headerCt.forceFit){a=b.nextNode("gridcolumn:not([hidden]):not([isGroupHeader])");if(a&&!c.headerInSameGrid(a)){a=null}if(a){delete a.flex;a.setWidth(a.getWidth()-d[0])}}Ext.resumeLayouts(true)}},headerInSameGrid:function(b){var a=this.dragHd.up("tablepanel");return !!b.up(a)},disable:function(){var a=this.tracker;this.disabled=true;if(a){a.disable()}},enable:function(){var a=this.tracker;this.disabled=false;if(a){a.enable()}},calculateDragX:function(a){return this.tracker.getXY("point")[0]+this.xDelta-a.getX()-a.el.getBorderWidth("l")},getLeftMarkerX:function(a){return this.dragHd.getX()-a.getX()-a.el.getBorderWidth("l")-1},setMarkerX:function(b,a){b.setLocalX(a)},adjustConstrainRegion:function(g,d,e,a,c){return g.adjust(d,e,a,c)},adjustColumnWidth:function(a){this.dragHd.setWidth(this.origWidth+a)}},0,0,0,0,["plugin.gridheaderresizer"],0,[Ext.grid.plugin,"HeaderResizer"],0));Ext.define("Ext.rtl.grid.plugin.HeaderResizer",{override:"Ext.grid.plugin.HeaderResizer",onBeforeStart:function(b){var a=this;if(this.headerCt.isOppositeRootDirection()){a.dragHd=a.activeHd;if(!!a.dragHd&&!a.headerCt.dragging){a.xDelta=a.dragHd.getX()-a.tracker.getXY()[0];this.tracker.constrainTo=this.getConstrainRegion();return true}else{a.headerCt.dragging=false;return false}}else{return arguments.callee.$previous.apply(this,arguments)}},adjustColumnWidth:function(a){if(this.headerCt.isOppositeRootDirection()){a=-a}arguments.callee.$previous.call(this,a)},adjustConstrainRegion:function(g,d,e,a,c){return this.headerCt.isOppositeRootDirection()?g.adjust(d,-c,a,-e):arguments.callee.$previous.apply(this,arguments)},calculateDragX:function(b){var a=b.getX(),c=this.tracker.getXY("point")[0];if(this.headerCt.isOppositeRootDirection()){return c-a+this.xDelta}else{return arguments.callee.$previous.apply(this,arguments)}},getMovingMarker:function(a){if(this.headerCt.isOppositeRootDirection()){return a.getLhsMarker()}else{return a.getRhsMarker()}},setMarkerX:function(b,a){var c=this.headerCt;if(c.getInherited().rtl&&!c.isOppositeRootDirection()){b.rtlSetLocalX(a)}else{arguments.callee.$previous.apply(this,arguments)}}});(Ext.cmd.derive("Ext.grid.header.DragZone",Ext.dd.DragZone,{colHeaderSelector:".x-column-header",colInnerSelector:".x-column-header-inner",maxProxyWidth:120,constructor:function(b){var a=this;a.headerCt=b;a.ddGroup=a.getDDGroup();a.autoGroup=true;Ext.dd.DragZone.prototype.constructor.call(this,b.el);a.proxy.el.addCls("x-grid-col-dd")},getDDGroup:function(){return"header-dd-zone-"+this.headerCt.up("[scrollerOwner]").id},getDragData:function(b){if(b.getTarget(this.colInnerSelector)){var d=b.getTarget(this.colHeaderSelector),a,c;if(d){a=Ext.getCmp(d.id);if(!this.headerCt.dragging&&a.draggable&&!(a.isAtStartEdge(b)||a.isAtEndEdge(b))){c=document.createElement("div");c.role="presentation";c.innerHTML=a.text;return{ddel:c,header:a}}}}return false},onBeforeDrag:function(){return !(this.headerCt.dragging||this.disabled)},onInitDrag:function(){this.headerCt.dragging=true;this.headerCt.hideMenu();Ext.dd.DragZone.prototype.onInitDrag.apply(this,arguments)},onDragDrop:function(){this.headerCt.dragging=false;Ext.dd.DragZone.prototype.onDragDrop.apply(this,arguments)},afterRepair:function(){Ext.dd.DragZone.prototype.afterRepair.call(this);this.headerCt.dragging=false},getRepairXY:function(){return this.dragData.header.el.getXY()},disable:function(){this.disabled=true},enable:function(){this.disabled=false}},1,0,0,0,0,0,[Ext.grid.header,"DragZone"],0));(Ext.cmd.derive("Ext.grid.header.DropZone",Ext.dd.DropZone,{colHeaderCls:"x-column-header",proxyOffsets:[-4,-9],constructor:function(b){var a=this;a.headerCt=b;a.ddGroup=a.getDDGroup();a.autoGroup=true;Ext.dd.DropZone.prototype.constructor.call(this,b.el)},destroy:function(){Ext.dd.DropZone.prototype.destroy.call(this);Ext.destroy(this.topIndicator,this.bottomIndicator)},getDDGroup:function(){return"header-dd-zone-"+this.headerCt.up("[scrollerOwner]").id},getTargetFromEvent:function(a){return a.getTarget("."+this.colHeaderCls)},getTopIndicator:function(){if(!this.topIndicator){this.topIndicator=Ext.getBody().createChild({role:"presentation",cls:"x-col-move-top",html:"&#160;"});this.indicatorXOffset=Math.floor((this.topIndicator.dom.offsetWidth+1)/2)}return this.topIndicator},getBottomIndicator:function(){if(!this.bottomIndicator){this.bottomIndicator=Ext.getBody().createChild({role:"presentation",cls:"x-col-move-bottom",html:"&#160;"})}return this.bottomIndicator},getLocation:function(d,b){var a=d.getXY()[0],c=Ext.fly(b).getRegion(),g;if((c.right-a)<=(c.right-c.left)/2){g="after"}else{g="before"}return{pos:g,header:Ext.getCmp(b.id),node:b}},positionIndicator:function(z,p,v){var y=this,q=z.header,g=y.getLocation(v,p),k=g.header,d=g.pos,c,u,m,s,t,a,b,l,n,x,w,o,j,r,h;if(k===y.lastTargetHeader&&d===y.lastDropPos){return}c=q.nextSibling("gridcolumn:not([hidden])");u=q.previousSibling("gridcolumn:not([hidden])");y.lastTargetHeader=k;y.lastDropPos=d;if(!k.draggable&&d==="before"&&k.getIndex()===0){return false}z.dropLocation=g;if((q!==k)&&((d==="before"&&c!==k)||(d==="after"&&u!==k))&&!k.isDescendantOf(q)){o=Ext.dd.DragDropManager.getRelated(y);j=o.length;r=0;for(;r<j;r++){h=o[r];if(h!==y&&h.invalidateDrop){h.invalidateDrop()}}y.valid=true;m=y.getTopIndicator();s=y.getBottomIndicator();if(d==="before"){t="bc-tl";a="tc-bl"}else{t="bc-tr";a="tc-br"}b=m.getAlignToXY(k.el,t);l=s.getAlignToXY(k.el,a);n=y.headerCt.el;x=n.getX()-y.indicatorXOffset;w=n.getX()+n.getWidth();b[0]=Ext.Number.constrain(b[0],x,w);l[0]=Ext.Number.constrain(l[0],x,w);m.setXY(b);s.setXY(l);m.show();s.show()}else{y.invalidateDrop()}},invalidateDrop:function(){this.valid=false;this.hideIndicators()},onNodeOver:function(c,h,g,d){var i=this,k=d.header,a,l,b,j;if(d.header.el.dom===c){a=false}else{d.isLock=d.isUnlock=d.crossPanel=false;l=i.getLocation(g,c).header;a=(k.ownerCt===l.ownerCt);if(!a&&(!k.ownerCt.sealed&&!l.ownerCt.sealed)){a=true;b=k.up("tablepanel");j=l.up("tablepanel");if(b!==j){d.crossPanel=true;d.isLock=j.isLocked&&!b.isLocked;d.isUnlock=!j.isLocked&&b.isLocked;if((d.isUnlock&&k.lockable===false)||(d.isLock&&!k.isLockable())){a=false}}}}if(a){i.positionIndicator(d,c,g)}else{i.valid=false}return i.valid?i.dropAllowed:i.dropNotAllowed},hideIndicators:function(){var a=this;a.getTopIndicator().hide();a.getBottomIndicator().hide();a.lastTargetHeader=a.lastDropPos=null},onNodeOut:function(){this.hideIndicators()},getNestedHeader:function(d,b){var a=d.items,c;if(d.isGroupHeader&&a.length){c=!b?"first":"last";d=this.getNestedHeader(a[c](),b)}return d},onNodeDrop:function(m,c,q,t){if(!this.valid){return}var r=this,n=t.header,h=t.dropLocation,p=h.pos,j=h.header,s=n.ownerCt,l=s.getRootHeaderCt(),a=j.ownerCt,d=r.headerCt.visibleColumnManager,o=d.getHeaderIndex(n),b,k,i,g;if(t.isLock||t.isUnlock){i=s.up("[scrollerOwner]");b=a.items.indexOf(j);if(p==="after"){b++}if(t.isLock){i.lock(n,b,a)}else{i.unlock(n,b,a)}}else{b=p==="after"?d.getHeaderIndex(r.getNestedHeader(j,1))+1:d.getHeaderIndex(r.getNestedHeader(j,0));r.invalidateDrop();g=n.getWidth();Ext.suspendLayouts();s.isDDMoveInGrid=a.isDDMoveInGrid=!t.crossPanel;if(n.isGroupHeader&&j.isGroupHeader){n.setNestedParent(j)}if(p==="before"){a.moveBefore(n,j)}else{a.moveAfter(n,j)}if(b>=0&&!(j.isGroupHeader&&!j.items.length)&&o!==b){k=n.isGroupHeader?n.query(":not([hidden]):not([isGroupHeader])").length:1;if((o<=b)&&k>1){b-=k}a.getRootHeaderCt().grid.view.moveColumn(o,b,k)}l.fireEvent("columnmove",s,n,o,b);s.isDDMoveInGrid=a.isDDMoveInGrid=false;if(a.isGroupHeader&&!s.isGroupHeader){if(s!==a){n.savedFlex=n.flex;delete n.flex;n.width=g}}else{if(!s.isGroupHeader){if(n.savedFlex){n.flex=n.savedFlex;delete n.width}}}Ext.resumeLayouts(true)}}},1,0,0,0,0,0,[Ext.grid.header,"DropZone"],0));(Ext.cmd.derive("Ext.grid.plugin.HeaderReorderer",Ext.plugin.Abstract,{init:function(a){this.headerCt=a;a.on({boxready:this.onHeaderCtRender,single:true,scope:this})},destroy:function(){Ext.destroy(this.dragZone,this.dropZone)},onHeaderCtRender:function(){var a=this;a.dragZone=new Ext.grid.header.DragZone(a.headerCt);a.dropZone=new Ext.grid.header.DropZone(a.headerCt);if(a.disabled){a.dragZone.disable()}},enable:function(){this.disabled=false;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=true;if(this.dragZone){this.dragZone.disable()}}},0,0,0,0,["plugin.gridheaderreorderer"],0,[Ext.grid.plugin,"HeaderReorderer"],0));(Ext.cmd.derive("Ext.grid.header.Container",Ext.container.Container,{config:{scrollable:{indicators:false}},border:true,baseCls:"x-grid-header-ct",dock:"top",weight:100,defaultType:"gridcolumn",defaultWidth:100,sortAscText:"Sort Ascending",sortDescText:"Sort Descending",sortClearText:"Clear Sort",columnsText:"Columns",headerOpenCls:"x-column-header-open",menuSortAscCls:"x-hmenu-sort-asc",menuSortDescCls:"x-hmenu-sort-desc",menuColsIcon:"x-cols-icon",ddLock:false,dragging:false,sortOnClick:true,enableFocusableContainer:false,childHideCount:0,sortable:true,enableColumnHide:true,initComponent:function(){var a=this;a.headerCounter=0;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){if(a.enableColumnResize){a.resizer=new Ext.grid.plugin.HeaderResizer();a.plugins.push(a.resizer)}if(a.enableColumnMove){a.reorderer=new Ext.grid.plugin.HeaderReorderer();a.plugins.push(a.reorderer)}}if(a.isColumn&&!a.isGroupHeader){if(!a.items||a.items.length===0){a.isContainer=a.isFocusableContainer=false;a.focusable=true;a.layout={type:"container",calculate:Ext.emptyFn}}}else{a.layout=Ext.apply({type:"gridcolumn",align:"stretch"},a.initialConfig.layout);a.defaults.columnLines=a.columnLines;if(!a.isGroupHeader){a.isRootHeader=true;if(!a.hiddenHeaders){a.enableFocusableContainer=true;a.ariaRole="row"}a.columnManager=new Ext.grid.ColumnManager(false,a);a.visibleColumnManager=new Ext.grid.ColumnManager(true,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else{a.visibleColumnManager=new Ext.grid.ColumnManager(true,a);a.columnManager=new Ext.grid.ColumnManager(false,a)}}a.menuTask=new Ext.util.DelayedTask(a.updateMenuDisabledState,a);Ext.container.Container.prototype.initComponent.call(this)},isNested:function(){return !!this.getRootHeaderCt().down("[isNestedParent]")},isNestedGroupHeader:function(){var b=this,a=b.getRefOwner().query(">:not([hidden])");return(a.length===1&&a[0]===b)},maybeShowNestedGroupHeader:function(){var a=this.items,b;if(a&&a.length===1&&(b=a.getAt(0))&&b.hidden){b.show()}},setNestedParent:function(a){a.isNestedParent=false;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var c=this,a,b;Ext.container.Container.prototype.initEvents.call(this);if(!c.isColumn&&!c.isGroupHeader){a=c.onHeaderCtEvent;b={click:a,dblclick:a,contextmenu:a,mouseover:c.onHeaderCtMouseOver,mouseout:c.onHeaderCtMouseOut,scope:c};if(Ext.supports.Touch){b.longpress=c.onHeaderCtLongPress}c.mon(c.el,b)}},onHeaderCtEvent:function(d,b){var c=this,i=c.getHeaderElByEvent(d),h,g,a;if(c.longPressFired){c.longPressFired=false;return}if(i&&!c.ddLock){h=Ext.getCmp(i.id);if(h){g=h[h.clickTargetName];if((!h.isGroupHeader&&!h.isContainer)||d.within(g)){if(d.type==="click"||d.type==="tap"){a=h.onTitleElClick(d,g,c.sortOnClick);if(a){c.onHeaderTriggerClick(a,d,Ext.supports.Touch?a.el:a.triggerEl)}else{c.onHeaderClick(h,d,b)}}else{if(d.type==="contextmenu"){c.onHeaderContextMenu(h,d,b)}else{if(d.type==="dblclick"&&h.resizable){h.onTitleElDblClick(d,g.dom)}}}}}}},onHeaderCtMouseOver:function(b,a){var g,d,c;if(!b.within(this.el,true)){g=b.getTarget("."+Ext.grid.column.Column.prototype.baseCls);d=g&&Ext.getCmp(g.id);if(d){c=d[d.clickTargetName];if(b.within(c)){d.onTitleMouseOver(b,c.dom)}}}},onHeaderCtMouseOut:function(g,c){var d="."+Ext.grid.column.Column.prototype.baseCls,b=g.getTarget(d),a=g.getRelatedTarget(d),i,h;if(b!==a){if(b){i=Ext.getCmp(b.id);if(i){h=i[i.clickTargetName];i.onTitleMouseOut(g,h.dom)}}if(a){i=Ext.getCmp(a.id);if(i){h=i[i.clickTargetName];i.onTitleMouseOver(g,h.dom)}}}},onHeaderCtLongPress:function(b){var a=this,d=a.getHeaderElByEvent(b),c;if(d){c=Ext.getCmp(d.id);if(c&&!c.menuDisabled){a.longPressFired=true;a.showMenuBy(b,d,c)}}},getHeaderElByEvent:function(a){return a.getTarget("."+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return false}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var a=this;return a.isRootHeader?a:a.up("[isRootHeader]")},onDestroy:function(){var a=this;if(a.menu){a.menu.un("hide",a.onMenuHide,a)}a.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);a.columnManager=a.visibleColumnManager=null},applyColumnsState:function(h){if(!h||!h.length){return}var p=this,n=p.items.items,m=n.length,j=0,b=h.length,o,d,a,l,q=false,k=[],e={},g=[];for(o=0;o<b;o++){a=h[o];a.index=o;e[a.id]=a}for(j=0;j<m;j++){d=n[j];a=e[d.getStateId()];if(a){l=a.index;k[l]=d;if(j!==l){q=true}if(d.applyColumnState){d.applyColumnState(a)}}else{g.push({index:j,column:d})}}k=Ext.Array.clean(k);b=g.length;if(b){for(j=0;j<b;j++){a=g[j];l=a.index;if(l<k.length){q=true;Ext.Array.splice(k,l,0,a.column)}else{k.push(a.column)}}}if(q){p.applyingState=true;p.removeAll(false);delete p.applyingState;p.add(k);p.purgeCache()}},getColumnsState:function(){var b=this,a=[],c;b.items.each(function(d){c=d.getColumnState&&d.getColumnState();if(c){a.push(c)}});return a},onAdd:function(b){var a=this;if(!b.headerId){b.headerId=b.initialConfig.id||Ext.id(null,"header-")}if(b.sortable===undefined){b.sortable=a.sortable}if(!b.getStateId()){b.stateId=b.initialConfig.id||("h"+(++a.headerCounter))}Ext.container.Container.prototype.onAdd.apply(this,arguments);a.onHeadersChanged(b,a.isDDMoveInGrid)},move:function(c,e){var d=this,b=d.items,a;if(c.isComponent){a=c;c=b.indexOf(a)}else{a=b.getAt(c)}a.visibleFromIdx=d.getRootHeaderCt().visibleColumnManager.indexOf(a);Ext.container.Container.prototype.move.apply(this,arguments)},onMove:function(a,d,h){var g=this,e=g.getRootHeaderCt(),b=e.visibleColumnManager,i=1,c;g.onHeadersChanged(a,true);c=b.indexOf(a);if(c>=a.visibleFromIdx){c++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){i=a.visibleColumnManager.getColumns().length}e.onHeaderMoved(a,i,a.visibleFromIdx,c)},maybeContinueRemove:function(){var a=this;return(a.isGroupHeader&&!a.applyingState)&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(e){var d=this,b=d.ownerCt,a=e.lastHiddenHeader;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!d.destroying){if(!d.isDDMoveInGrid){d.onHeadersChanged(e,false)}if(d.maybeContinueRemove()){if(e.rendered){d.detachComponent(e)}Ext.suspendLayouts();b.remove(d);Ext.resumeLayouts(true)}}},onHeadersChanged:function(e,a){var b,d=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(d){d.onColumnsChanged();if(!e.isGroupHeader){b=d.ownerCt;if(b&&!a){b.onHeadersChanged(d,e)}}}},onHeaderMoved:function(g,a,c,e){var d=this,b=d.ownerCt;if(d.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(d,g,a,c,e)}d.fireEvent("columnmove",d,g,c,e)}},onColumnsChanged:function(){var c=this,d=c.menu,a,b;if(c.rendered){c.fireEvent("columnschanged",c);if(d){a=d.child("#columnItemSeparator");b=d.child("#columnItem");if(a){a.destroy()}if(b){b.destroy()}}}},lookupComponent:function(b){var a=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!a.isGroupHeader&&a.width===undefined&&!a.flex){a.width=this.defaultWidth}return a},setSortState:function(){var b=this.up("[store]").store,d=this.visibleColumnManager.getColumns(),a=d.length,c,g,e;for(c=0;c<a;c++){g=d[c];e=b.getSorters().get(g.getSortParam());g.setSortState(e)}},getHeaderMenu:function(){var b=this.getMenu(),a;if(b){a=b.child("#columnItem");if(a){return a.menu}}return null},onHeaderVisibilityChange:function(e,d){var b=this,c=b.getHeaderMenu(),a;b.purgeHeaderCtCache(e.ownerCt);if(c){a=b.getMenuItemForHeader(c,e);if(a){a.setChecked(d,true)}if(c.isVisible()){b.menuTask.delay(50)}}},updateMenuDisabledState:function(h){var g=this,d=g.query("gridcolumn:not([hidden])"),c,a=d.length,e,b,j;if(!h){h=g.getMenu()}for(c=0;c<a;++c){e=d[c];b=g.getMenuItemForHeader(h,e);if(b){j=e.isHideable()?"enable":"disable";if(b.menu){j+="CheckChange"}b[j]()}}},getMenuItemForHeader:function(a,b){return b?a.down("menucheckitem[headerId="+b.id+"]"):null},onHeaderShow:function(d){var c=this,b=c.ownerCt,a=d.lastHiddenHeader;if(!b){return}if(c.forceFit){delete c.flex}if(a&&!d.query("[hidden=false]").length){a.show();d.lastHiddenHeader=null}c.onHeaderVisibilityChange(d,true);b.onHeaderShow(c,d);c.fireEvent("columnshow",c,d);c.fireEvent("columnschanged",this)},onHeaderHide:function(c){var b=this,a=b.ownerCt;if(!a){return}b.onHeaderVisibilityChange(c,false);a.onHeaderHide(b,c);b.fireEvent("columnhide",b,c);b.fireEvent("columnschanged",this)},onHeaderResize:function(d,a){var c=this,b=c.ownerCt;if(b){b.onHeaderResize(c,d,a)}c.fireEvent("columnresize",c,d,a)},onHeaderClick:function(g,d,b){var c=this,a=g.getView().getSelectionModel();g.fireEvent("headerclick",c,g,d,b);if(c.fireEvent("headerclick",c,g,d,b)!==false){if(a.onHeaderClick){a.onHeaderClick(c,g,d)}}},onHeaderContextMenu:function(c,b,a){c.fireEvent("headercontextmenu",this,c,b,a);this.fireEvent("headercontextmenu",this,c,b,a)},onHeaderTriggerClick:function(d,c,a){var b=this;if(d.fireEvent("headertriggerclick",b,d,c,a)!==false&&b.fireEvent("headertriggerclick",b,d,c,a)!==false){if(d.activeMenu){if(c.pointerType){d.activeMenu.hide()}else{d.activeMenu.focus()}}else{b.showMenuBy(c,a,d)}}},showMenuBy:function(a,c,h){var e=this.getMenu(),g=e.down("#ascItem"),d=e.down("#descItem"),b;e.activeHeader=e.ownerCmp=h;h.setMenuActive(e);b=h.sortable?"enable":"disable";if(g){g[b]()}if(d){d[b]()}e.autoFocus=!a||!a.pointerType;e.showBy(c,"tl-bl?");if(!e.isVisible()){this.onMenuHide(e)}},hideMenu:function(){if(this.menu){this.menu.hide()}},onMenuHide:function(a){a.activeHeader.setMenuActive(false)},purgeHeaderCtCache:function(a){while(a){a.purgeCache();if(a.isRootHeader){return}a=a.ownerCt}},purgeCache:function(){var c=this,b=c.visibleColumnManager,a=c.columnManager;c.gridVisibleColumns=c.gridDataColumns=c.hideableColumns=null;if(b){b.invalidate();a.invalidate()}},getMenu:function(){var a=this;if(!a.menu){a.menu=new Ext.menu.Menu({hideOnParentHide:false,items:a.getMenuItems(),listeners:{beforeshow:a.beforeMenuShow,hide:a.onMenuHide,scope:a}});a.fireEvent("menucreate",a,a.menu)}return a.menu},beforeMenuShow:function(e){var c=this,b=e.child("#columnItem"),a,d;if(!b){a=c.enableColumnHide?c.getColumnMenu(c):null;d=c.sortable?2:0;if(a&&a.length){e.insert(d,[{itemId:"columnItemSeparator",xtype:"menuseparator"},{itemId:"columnItem",text:c.columnsText,iconCls:c.menuColsIcon,menu:{items:a},hideOnClick:false}])}}c.updateMenuDisabledState(c.menu)},getMenuItems:function(){var c=this,b=[],a=c.enableColumnHide?c.getColumnMenu(c):null;if(c.sortable){b=[{itemId:"ascItem",text:c.sortAscText,iconCls:c.menuSortAscCls,handler:c.onSortAscClick,scope:c},{itemId:"descItem",text:c.sortDescText,iconCls:c.menuSortDescCls,handler:c.onSortDescClick,scope:c}]}if(a&&a.length){if(c.sortable){b.push({itemId:"columnItemSeparator",xtype:"menuseparator"})}b.push({itemId:"columnItem",text:c.columnsText,iconCls:c.menuColsIcon,menu:a,hideOnClick:false})}return b},onSortAscClick:function(){var b=this.getMenu(),a=b.activeHeader;a.sort("ASC")},onSortDescClick:function(){var b=this.getMenu(),a=b.activeHeader;a.sort("DESC")},getColumnMenu:function(g){var c=[],b=0,e,a=g.query(">gridcolumn[hideable]"),h=a.length,d;for(;b<h;b++){e=a[b];d=new Ext.menu.CheckItem({text:e.menuText||e.text,checked:!e.hidden,hideOnClick:false,headerId:e.id,menu:e.isGroupHeader?this.getColumnMenu(e):undefined,checkHandler:this.onColumnCheckChange,scope:this});c.push(d)}return c.length?c:null},onColumnCheckChange:function(a,b){var c=Ext.getCmp(a.headerId);if(c.rendered){c[b?"show":"hide"]()}else{c.hidden=!b}},getColumnCount:function(){return this.getGridColumns().length},getTableWidth:function(){var c=0,b=this.getVisibleGridColumns(),d=b.length,a;for(a=0;a<d;a++){c+=b[a].getCellWidth()||0}return c},getVisibleGridColumns:function(){var h=this,c,e,b,a,d,g;if(h.gridVisibleColumns){return h.gridVisibleColumns}c=h.getGridColumns();e=h.getRootHeaderCt();b=[];a=c.length;for(d=0;d<a;d++){g=c[d];if(!g.hidden&&!g.isColumnHidden(e)){b[b.length]=g}}h.gridVisibleColumns=b;return b},isColumnHidden:function(b){var a=this.getRefOwner();while(a&&a!==b){if(a.hidden){return true}a=a.getRefOwner()}return false},getGridColumns:function(h,a){if(!h&&this.gridDataColumns){return this.gridDataColumns}var g=this,k=h||[],e,b,d,j,c;a=a||g.hidden;if(g.items){e=g.items.items;if(e){for(b=0,d=e.length;b<d;b++){j=e[b];if(j.isGroupHeader){j.visibleIndex=k.length;j.getGridColumns(k,a)}else{j.hiddenAncestor=a;k.push(j)}}}}if(!h){g.gridDataColumns=k}if(!h&&d){for(b=0,d=k.length;b<d;b++){j=k[b];j.fullColumnIndex=b;j.isFirstVisible=j.isLastVisible=false;if(!(j.hidden||j.hiddenAncestor)){if(!c){j.isFirstVisible=true}c=j}}if(c){c.isLastVisible=true}}return k},getHideableColumns:function(){var b=this,a=b.hideableColumns;if(!a){a=b.hideableColumns=b.query("[hideable]")}return a},getHeaderIndex:function(a){if(!this.columnManager){this.columnManager=this.getRootHeaderCt().columnManager}return this.columnManager.getHeaderIndex(a)},getHeaderAtIndex:function(a){if(!this.columnManager){this.columnManager=this.getRootHeaderCt().columnManager}return this.columnManager.getHeaderAtIndex(a)},getVisibleHeaderClosestToIndex:function(a){if(!this.visibleColumnManager){this.visibleColumnManager=this.getRootHeaderCt().visibleColumnManager}return this.visibleColumnManager.getVisibleHeaderClosestToIndex(a)},applyForceFit:function(h){var n=this,o=n.view,b=Ext.grid.plugin.HeaderResizer.prototype.minColWidth,d=false,s=Ext.grid.header.Container.prototype.defaultWidth,a=n.el.dom.clientWidth-(o.el.dom.scrollHeight>o.el.dom.clientHeight?Ext.getScrollbarSize().width:0),e=0,m=n.getVisibleGridColumns(),j=h.hidden,l,g,r,k,c;function p(){for(g=0,l=m.length;g<l;g++){r=m[g];if(r===h){continue}r.flex=r.flex||r.width||r.getWidth();e+=r.flex;r.width=null}}function q(){var i;for(g=0,l=m.length;g<l;g++){r=m[g];i=(r===h);if(d&&!i){r.flex=b;r.width=null}else{if(!i){c=r.flex||s;r.flex=Math.max(Math.ceil((c/e)*a),b);r.width=null}}r.setWidth(r.width||r.flex)}}Ext.suspendLayouts();k=(a-((m.length+1)*b));h.flex=null;if(j){c=h.width||h.savedWidth||Math.floor(k/(m.length+1));h.savedWidth=null}else{c=o.getMaxContentWidth(h)}if(c>k){h.width=k;d=true}else{h.width=c;a-=c+s;p()}q();Ext.resumeLayouts(true)},autoSizeColumn:function(b){var a=this.view;if(a){a.autoSizeColumn(b);if(this.forceFit){this.applyForceFit(b)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(a){var b=this;return new Ext.util.KeyNav(a,{scope:b,down:b.showHeaderMenu,left:b.onFocusableContainerLeftKey,right:b.onFocusableContainerRightKey,space:b.onHeaderActivate,enter:b.onHeaderActivate})},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(d){var c=this.getFocusableFromEvent(d),a,b;if(c&&c.isColumn){a=c.getView();if(c.sortable&&this.sortOnClick){b=a.getNavigationModel().getLastFocused();c.toggleSortState();if(b){a.ownerCt.ensureVisible(b.record)}}this.onHeaderClick(c,d,c.el)}},onFocusableContainerMousedown:function(c,b){var a=Ext.Component.fromElement(b);if(a===this){c.preventDefault()}else{a.focus()}}}},0,["headercontainer"],["component","box","container","headercontainer"],{component:true,box:true,container:true,headercontainer:true},["widget.headercontainer"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.grid.header,"Container"],0));(Ext.cmd.derive("Ext.grid.column.Column",Ext.grid.header.Container,{alternateClassName:"Ext.grid.Column",config:{triggerVisible:false},baseCls:"x-column-header",hoverCls:"x-column-header-over",handleWidth:Ext.supports.Touch?10:4,ariaRole:"columnheader",enableFocusableContainer:false,sortState:null,possibleSortStates:["ASC","DESC"],childEls:["titleEl","triggerEl","textEl","textContainerEl","textInnerEl"],headerWrap:false,renderTpl:['<div id="{id}-titleEl" data-ref="titleEl" {tipMarkup}class="',"x-",'column-header-inner<tpl if="!$comp.isContainer"> ',"x-","leaf-column-header</tpl>",'<tpl if="empty"> ',"x-",'column-header-inner-empty</tpl>">','<div id="{id}-textContainerEl" data-ref="textContainerEl" class="',"x-",'column-header-text-container">','<div class="',"x-",'column-header-text-wrapper">','<div id="{id}-textEl" data-ref="textEl" class="',"x-","column-header-text",'{childElCls}">','<span id="{id}-textInnerEl" data-ref="textInnerEl" role="presentation" class="',"x-",'column-header-text-inner">{text}</span>',"</div>","</div>","</div>",'<tpl if="!menuDisabled">','<div id="{id}-triggerEl" data-ref="triggerEl" role="presentation" class="',"x-","column-header-trigger",'{childElCls}" style="{triggerStyle}"></div>',"</tpl>","</div>","{%this.renderContainer(out,values)%}"],dataIndex:null,text:"&#160;",menuText:null,emptyCellText:"&#160;",sortable:true,resizable:true,hideable:true,menuDisabled:false,renderer:false,align:"left",draggable:true,tooltipType:"qtip",initDraggable:Ext.emptyFn,tdCls:"",producesHTML:true,isHeader:true,isColumn:true,scrollable:false,requiresMenu:false,tabIndex:-1,ascSortCls:"x-column-header-sort-ASC",descSortCls:"x-column-header-sort-DESC",componentLayout:"columncomponent",groupSubHeaderCls:"x-group-sub-header",groupHeaderCls:"x-group-header",clickTargetName:"titleEl",detachOnRemove:true,initResizable:Ext.emptyFn,rendererNames:{column:"renderer",edit:"editRenderer",summary:"summaryRenderer"},formatterNames:{column:"formatter",edit:"editFormatter",summary:"summaryFormatter"},initComponent:function(){var a=this;if(!a.rendererScope){a.rendererScope=a.scope}if(a.header!=null){a.text=a.header;a.header=null}if(a.cellWrap){a.tdCls=(a.tdCls||"")+" x-wrap-cell"}if(a.columns!=null){a.isGroupHeader=true;a.items=a.columns;a.columns=a.flex=a.width=null;a.cls=(a.cls||"")+" "+a.groupHeaderCls;a.sortable=a.resizable=false;a.align="center"}else{if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls("x-column-header-align-"+a.align);a.setupRenderer();a.setupRenderer("edit");a.setupRenderer("summary");Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},bindFormatter:function(b){var a=this;return function(c){return b.format(c,b.scope||a.rendererScope||a.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=true;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(b){b=b||"column";var c=this,g=c[c.formatterNames[b]],d=c[c.rendererNames[b]],a=b==="column",h,e;if(!g){if(d){if(typeof d==="string"){d=c[c.rendererNames[b]]=c.bindRenderer(d);e=true}if(a){c.hasCustomRenderer=e||d.length>1}}else{if(a&&c.defaultRenderer){c.renderer=c.defaultRenderer;c.usingDefaultRenderer=true}}}else{h=g.indexOf("this.")===0;if(h){g=g.substring(5)}g=Ext.app.bind.Template.prototype.parseFormat(g);c[c.formatterNames[b]]=null;if(h){g.scope=null}c[c.rendererNames[b]]=c.bindFormatter(g)}},getView:function(){var a=this.getRootHeaderCt();if(a){return a.view}},onFocusLeave:function(a){Ext.grid.header.Container.prototype.onFocusLeave.call(this,a);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var a=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(a.isGroupHeader){if(a.config.hidden||!a.hasVisibleChildColumns()){a.hide()}}},hasVisibleChildColumns:function(){var b=this.items.items,a=b.length,c,d;for(c=0;c<a;++c){d=b[c];if(d.isColumn&&!d.hidden){return true}}return false},onAdd:function(b){var a=this;if(b.isColumn){b.isSubHeader=true;b.addCls(a.groupSubHeaderCls)}if(a.isGroupHeader&&a.hidden&&a.hasVisibleChildColumns()){a.show()}Ext.grid.header.Container.prototype.onAdd.call(this,b)},onRemove:function(b){var a=this;if(b.isSubHeader){b.isSubHeader=false;b.removeCls(a.groupSubHeaderCls)}Ext.grid.header.Container.prototype.onRemove.call(this,b);if(!(a.isDestroyed||a.destroying)&&!a.hasVisibleChildColumns()&&!a.ownerCt.isNested()){a.hide()}},initRenderData:function(){var b=this,e="",c=b.tooltip,d=b.text,a=b.tooltipType==="qtip"?"data-qtip":"title";if(!Ext.isEmpty(c)){e=a+'="'+c+'" '}return Ext.applyIf(Ext.grid.header.Container.prototype.initRenderData.apply(this,arguments),{text:d,empty:d==="&#160;"||d===" "||d==="",menuDisabled:b.menuDisabled,tipMarkup:e,triggerStyle:this.getTriggerVisible()?"display:block":""})},applyColumnState:function(b){var a=this;a.applyColumnsState(b.columns);if(b.hidden!=null){a.hidden=b.hidden}if(b.locked!=null){a.locked=b.locked}if(b.sortable!=null){a.sortable=b.sortable}if(b.width!=null){a.flex=null;a.width=b.width}else{if(b.flex!=null){a.width=null;a.flex=b.flex}}},getColumnState:function(){var e=this,b=e.items.items,a=b?b.length:0,d,c=[],g={id:e.stateId||e.getStateId()};e.savePropsToState(["hidden","sortable","locked","flex","width"],g);if(e.isGroupHeader){for(d=0;d<a;d++){c.push(b[d].getColumnState())}if(c.length){g.columns=c}}if("width" in g){delete g.flex}return g},getStateId:function(){return(this.stateId=this.stateId||this.headerId)},setText:function(a){this.text=a;if(this.rendered){this.textInnerEl.setHtml(a)}},getIndex:function(){return this.isGroupColumn?false:this.getRootHeaderCt().getHeaderIndex(this)},getVisibleIndex:function(){return this.visibleIndex!=null?this.visibleIndex:this.isGroupColumn?false:Ext.Array.indexOf(this.getRootHeaderCt().getVisibleGridColumns(),this)},beforeRender:function(){var b=this,a=b.getRootHeaderCt();Ext.grid.header.Container.prototype.beforeRender.call(this);if(!b.requiresMenu&&!b.isSortable()&&!b.groupable&&!b.lockable&&(a.grid.enableColumnHide===false||!a.getHideableColumns().length)){b.menuDisabled=true}if(b.cellWrap){b.variableRowHeight=true}b.protoEl.unselectable()},getTriggerElWidth:function(){var c=this,b=c.triggerEl,a=c.self.triggerElWidth;if(b&&a===undefined){b.setStyle("display","block");a=c.self.triggerElWidth=b.getWidth();b.setStyle("display","")}return a},afterComponentLayout:function(d,a,b,g){var e=this,c=e.getRootHeaderCt();Ext.grid.header.Container.prototype.afterComponentLayout.apply(this,arguments);if(c&&(b!=null||e.flex)&&d!==b){c.onHeaderResize(e,d)}},onDestroy:function(){var a=this;Ext.destroy(a.field);a.field=null;Ext.grid.header.Container.prototype.onDestroy.apply(this,arguments)},onTitleMouseOver:function(){this.titleEl.addCls(this.hoverCls)},onTitleMouseOut:function(){this.titleEl.removeCls(this.hoverCls)},onDownKey:function(a){if(this.triggerEl){this.onTitleElClick(a,this.triggerEl.dom||this.el.dom)}},onEnterKey:function(a){this.onTitleElClick(a,this.el.dom)},onTitleElDblClick:function(d){var b=this,a,c,g;if(b.isAtStartEdge(d)){a=b.previousNode("gridcolumn:not([hidden]):not([isGroupHeader])");if(a&&a.getRootHeaderCt()===b.getRootHeaderCt()){a.autoSize()}}else{if(b.isAtEndEdge(d)){if(b.isGroupHeader&&d.getPoint().isContainedBy(b.layout.innerCt)){c=b.query("gridcolumn:not([hidden]):not([isGroupHeader])");b.getRootHeaderCt().autoSizeColumn(c[c.length-1]);return}else{g=b.getRootHeaderCt();if(g.visibleColumnManager.getColumns().length===1&&g.forceFit){return}}b.autoSize()}}},autoSize:function(){var b=this,c,e,a,d;if(b.isGroupHeader){c=b.query("gridcolumn:not([hidden]):not([isGroupHeader])");e=c.length;d=b.getRootHeaderCt();Ext.suspendLayouts();for(a=0;a<e;a++){d.autoSizeColumn(c[a])}Ext.resumeLayouts(true);return}b.getRootHeaderCt().autoSizeColumn(b)},onTitleElClick:function(h,c,d){var g=this,a,b;if(Ext.supports.Touch){b=g.previousSibling(":not([hidden])");if(!g.menuDisabled&&g.isAtEndEdge(h,parseInt(g.triggerEl.getStyle("width"),10))){if(!g.menuDisabled){a=g}}else{if(b&&!b.menuDisabled&&g.isAtStartEdge(h)){a=b}}}else{a=g.triggerEl&&(h.target===g.triggerEl.dom||c===g.triggerEl||h.within(g.triggerEl))?g:null}if(d!==false&&(!a&&!g.isAtStartEdge(h)&&!g.isAtEndEdge(h)||h.getKey())){g.toggleSortState()}return a},processEvent:function(g,b,a,c,d,h){return this.fireEvent.apply(this,arguments)},isSortable:function(){var b=this.getRootHeaderCt(),a=b?b.grid:null,c=this.sortable;if(a&&a.sortableColumns===false){c=false}return c},toggleSortState:function(){if(this.isSortable()){this.sort()}},sort:function(d){var c=this,b=c.up("tablepanel"),a=b.store;Ext.suspendLayouts();a.sort(c.getSortParam(),d,b.multiColumnSort?"multi":"replace");Ext.resumeLayouts(true)},getSortParam:function(){return this.dataIndex},setSortState:function(h){var c=this,d=h&&h.getDirection(),g=c.ascSortCls,a=c.descSortCls,b=c.getRootHeaderCt(),e;switch(d){case"DESC":if(!c.hasCls(a)){c.addCls(a);c.sortState="DESC";e=true}c.removeCls(g);break;case"ASC":if(!c.hasCls(g)){c.addCls(g);c.sortState="ASC";e=true}c.removeCls(a);break;default:c.removeCls([g,a]);c.sortState=null;break}if(e){b.fireEvent("sortchange",b,c,d)}},isHideable:function(){var a={hideCandidate:this,result:this.hideable};if(a.result){this.ownerCt.bubble(this.hasOtherMenuEnabledChildren,null,[a])}return a.result},hasOtherMenuEnabledChildren:function(a){var b,c;if(!this.isXType("headercontainer")){a.result=false;return false}b=this.query(">gridcolumn:not([hidden]):not([menuDisabled])");c=b.length;if(Ext.Array.contains(b,a.hideCandidate)){c--}if(c){return false}a.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==false};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){return this.locked||!!this.up("[isColumn][locked]","[isRootHeader]")},hasMultipleVisibleChildren:function(a){if(!this.isXType("headercontainer")){a.result=false;return false}if(this.query(">gridcolumn:not([hidden])").length>1){return false}},hide:function(){var c=this,b=c.getRootHeaderCt(),a=c.getRefOwner();if(a.constructing){Ext.grid.header.Container.prototype.hide.call(this);return c}if(c.rendered&&!c.isVisible()){return c}if(b.forceFit){c.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(c.flex){c.savedWidth=c.getWidth();c.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(a.isGroupHeader){if(c.isNestedGroupHeader()){a.hide()}if(c.isSubHeader&&!c.isGroupHeader&&a.query(">gridcolumn:not([hidden])").length===1){a.lastHiddenHeader=c}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(c);Ext.resumeLayouts(true);return c},show:function(){var c=this,a=c.getRootHeaderCt(),b=c.getRefOwner();if(c.isVisible()){return c}if(b.isGroupHeader){b.lastHiddenHeader=null}if(c.rendered){if(a.forceFit){a.applyForceFit(c)}}Ext.suspendLayouts();if(c.isSubHeader&&b.hidden){b.show(false,true)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(c.isGroupHeader){c.maybeShowNestedGroupHeader()}b=c.getRootHeaderCt();if(b){b.onHeaderShow(c)}Ext.resumeLayouts(true);return c},shouldUpdateCell:function(b,d){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(d){var a=d.length,c,e;for(c=0;c<a;++c){e=d[c];if(e===this.dataIndex||e===b.idProperty){return 2}}}else{return 2}}},getCellWidth:function(){var b=this,a;if(b.rendered&&b.componentLayout&&b.componentLayout.lastComponentSize){a=b.componentLayout.lastComponentSize.width}else{if(b.width){a=b.width}else{if(!b.isColumn){a=b.getTableWidth()}}}return a},getCellId:function(){return"x-grid-cell-"+this.getItemId()},getCellSelector:function(){return"."+this.getCellId()},getCellInnerSelector:function(){return this.getCellSelector()+" .x-grid-cell-inner"},isAtStartEdge:function(a){return(a.getXY()[0]-this.getX()<this.handleWidth)},isAtEndEdge:function(b,a){return(this.getX()+this.getWidth()-b.getXY()[0]<=(a||this.handleWidth))},setMenuActive:function(a){this.activeMenu=a;this.titleEl[a?"addCls":"removeCls"](this.headerOpenCls)},deprecated:{5:{methods:{bindRenderer:function(a){return function(b){return Ext.util.Format[a](b)}}}}}},0,["gridcolumn"],["component","box","container","headercontainer","gridcolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true},["widget.gridcolumn"],0,[Ext.grid.column,"Column",Ext.grid,"Column"],0));Ext.define("Ext.rtl.grid.column.Column",{override:"Ext.grid.column.Column",isAtStartEdge:function(c,b){var a=this;return(!a.getInherited().rtl!==!Ext.rootInheritedState.rtl)?(a.getX()+a.getWidth()-c.getXY()[0]<=a.handleWidth):arguments.callee.$previous.call(this,c,b)},isAtEndEdge:function(c,b){var a=this;return(!a.getInherited().rtl!==!Ext.rootInheritedState.rtl)?(c.getXY()[0]-a.getX()<=a.handleWidth):arguments.callee.$previous.call(this,c,b)}});(Ext.cmd.derive("Ext.grid.column.Action",Ext.grid.column.Column,{alternateClassName:"Ext.grid.ActionColumn",stopSelection:true,actionIdRe:new RegExp("x-action-col-(\\d+)"),altText:"",menuText:"<i>Actions</i>",sortable:false,innerCls:"x-grid-cell-inner-action-col",actionIconCls:"x-action-col-icon",constructor:function(d){var g=this,b=Ext.apply({},d),c=b.items||g.items||[g],h,e,a;g.origRenderer=b.renderer||g.renderer;g.origScope=b.scope||g.scope;g.renderer=g.scope=b.renderer=b.scope=null;b.items=null;Ext.grid.column.Column.prototype.constructor.call(this,b);g.items=c;for(e=0,a=c.length;e<a;++e){if(c[e].getClass){h=true;break}}if(g.origRenderer||h){g.hasCustomRenderer=true}},initComponent:function(){var a=this;Ext.grid.column.Column.prototype.initComponent.call(this);if(a.sortable&&!a.dataIndex){a.sortable=false}},defaultRenderer:function(o,k,e,a,d,n,m){var l=this,q=l.origScope||l,j=l.items,g=j.length,c,p,h,b,r;h=Ext.isFunction(l.origRenderer)?l.origRenderer.apply(q,arguments)||"":"";k.tdCls+=" x-action-col-cell";for(c=0;c<g;c++){p=j[c];b=p.disabled||(p.isDisabled?p.isDisabled.call(p.scope||q,m,a,d,p,e):false);r=b?null:(p.tooltip||(p.getTip?p.getTip.apply(p.scope||q,arguments):null));if(!p.hasActionConfiguration){p.stopSelection=l.stopSelection;p.disable=Ext.Function.bind(l.disableAction,l,[c],0);p.enable=Ext.Function.bind(l.enableAction,l,[c],0);p.hasActionConfiguration=true}h+='<img role="button" alt="'+(p.altText||l.altText)+'" src="'+(p.icon||Ext.BLANK_IMAGE_URL)+'" class="'+l.actionIconCls+" x-action-col-"+String(c)+" "+(b?l.disabledCls+" ":" ")+(Ext.isFunction(p.getClass)?p.getClass.apply(p.scope||q,arguments):(p.iconCls||l.iconCls||""))+'"'+(r?' data-qtip="'+r+'"':"")+" />"}return h},updater:function(a,e,c,b,g){var d={};a.firstChild.innerHTML=this.defaultRenderer(e,d,c,null,null,g,b);Ext.fly(a).addCls(d.tdCls)},enableAction:function(b,a){var c=this;if(!b){b=0}else{if(!Ext.isNumber(b)){b=Ext.Array.indexOf(c.items,b)}}c.items[b].disabled=false;c.up("tablepanel").el.select(".x-action-col-"+b).removeCls(c.disabledCls);if(!a){c.fireEvent("enable",c)}},disableAction:function(b,a){var c=this;if(!b){b=0}else{if(!Ext.isNumber(b)){b=Ext.Array.indexOf(c.items,b)}}c.items[b].disabled=true;c.up("tablepanel").el.select(".x-action-col-"+b).addCls(c.disabledCls);if(!a){c.fireEvent("disable",c)}},beforeDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.beforeDestroy.apply(this,arguments)},processEvent:function(j,l,n,b,k,h,d,p){var i=this,g=h.getTarget(),m=j==="keydown"&&h.getKey(),c,o,a;h.stopSelection=!m&&i.stopSelection;if(m&&!Ext.fly(g).findParent(l.getCellSelector())){g=Ext.fly(n).down(".x-action-col-icon",true)}if(g&&(c=g.className.match(i.actionIdRe))){o=i.items[parseInt(c[1],10)];a=o.disabled||(o.isDisabled?o.isDisabled.call(o.scope||i.origScope||i,l,b,k,o,d):false);if(o&&!a){if(j==="click"||(m===h.ENTER||m===h.SPACE)){Ext.callback(o.handler||i.handler,o.scope||i.origScope,[l,b,k,o,h,d,p],undefined,i);if(!l.isDestroyed&&!l.el.contains(Ext.Element.getActiveElement())){return false}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return[]},privates:{getFocusables:function(){return[]},shouldUpdateCell:function(){return 2}}},1,["actioncolumn"],["component","box","container","headercontainer","gridcolumn","actioncolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,actioncolumn:true},["widget.actioncolumn"],0,[Ext.grid.column,"Action",Ext.grid,"ActionColumn"],0));(Ext.cmd.derive("Ext.grid.column.Boolean",Ext.grid.column.Column,{alternateClassName:"Ext.grid.BooleanColumn",trueText:"true",falseText:"false",undefinedText:"&#160;",defaultFilterType:"boolean",producesHTML:false,defaultRenderer:function(a){if(a===undefined){return this.undefinedText}if(!a||a==="false"){return this.falseText}return this.trueText},updater:function(a,b){a.firstChild.innerHTML=Ext.grid.column.Boolean.prototype.defaultRenderer.call(this,b)}},0,["booleancolumn"],["component","box","container","headercontainer","gridcolumn","booleancolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,booleancolumn:true},["widget.booleancolumn"],0,[Ext.grid.column,"Boolean",Ext.grid,"BooleanColumn"],0));(Ext.cmd.derive("Ext.grid.column.Check",Ext.grid.column.Column,{alternateClassName:["Ext.ux.CheckColumn","Ext.grid.column.CheckColumn"],align:"center",stopSelection:true,tdCls:"x-grid-cell-checkcolumn",innerCls:"x-grid-cell-inner-checkcolumn",clickTargetName:"el",defaultFilterType:"boolean",constructor:function(){this.scope=this;Ext.grid.column.Column.prototype.constructor.apply(this,arguments)},processEvent:function(j,l,o,c,k,h,d,p){var i=this,n=j==="keydown"&&h.getKey(),a=j==="mousedown",b=i.disabled,g,m;h.stopSelection=!n&&i.stopSelection;if(!b&&(a||(n===h.ENTER||n===h.SPACE))){m=!i.isRecordChecked(d);if(i.fireEvent("beforecheckchange",i,c,m,d)!==false){i.setRecordCheck(d,m,o,p,h);i.fireEvent("checkchange",i,c,m,d)}}else{g=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return g},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(false)},onDisable:function(){this._setDisabled(true)},_setDisabled:function(c){var d=this,a=d.disabledCls,b;b=d.up("tablepanel").el.select(d.getCellSelector());if(c){b.addCls(a)}else{b.removeCls(a)}},defaultRenderer:function(c,b){var d="x-",a=d+"grid-checkcolumn";if(this.disabled){b.tdCls+=" "+this.disabledCls}if(c){a+=" "+d+"grid-checkcolumn-checked"}return'<img class="'+a+'" src="'+Ext.BLANK_IMAGE_URL+'"/>'},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},setRecordCheck:function(b,d,a,h,g){var c=this,i=c.property;if(i){b[i]=d;c.updater(a,d)}else{b.set(c.dataIndex,d)}},updater:function(a,b){a=Ext.fly(a);a[this.disabled?"addCls":"removeCls"](this.disabledCls);Ext.fly(a.down(this.getView().innerSelector,true).firstChild)[b?"addCls":"removeCls"]("x-grid-checkcolumn-checked")}},1,["checkcolumn"],["component","box","container","headercontainer","gridcolumn","checkcolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,checkcolumn:true},["widget.checkcolumn"],0,[Ext.grid.column,"Check",Ext.ux,"CheckColumn",Ext.grid.column,"CheckColumn"],0));(Ext.cmd.derive("Ext.grid.column.Date",Ext.grid.column.Column,{alternateClassName:"Ext.grid.DateColumn",isDateColumn:true,defaultFilterType:"date",producesHTML:false,initComponent:function(){if(!this.format){this.format=Ext.Date.defaultFormat}Ext.grid.column.Column.prototype.initComponent.apply(this,arguments)},defaultRenderer:function(a){return Ext.util.Format.date(a,this.format)},updater:function(a,b){a.firstChild.innerHTML=Ext.grid.column.Date.prototype.defaultRenderer.call(this,b)}},0,["datecolumn"],["component","box","container","headercontainer","gridcolumn","datecolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,datecolumn:true},["widget.datecolumn"],0,[Ext.grid.column,"Date",Ext.grid,"DateColumn"],0));(Ext.cmd.derive("Ext.grid.column.Number",Ext.grid.column.Column,{alternateClassName:"Ext.grid.NumberColumn",defaultFilterType:"number",format:"0,000.00",producesHTML:false,defaultRenderer:function(a){return Ext.util.Format.number(a,this.format)},updater:function(a,b){a.firstChild.innerHTML=Ext.grid.column.Number.prototype.defaultRenderer.call(this,b)}},0,["numbercolumn"],["component","box","container","headercontainer","gridcolumn","numbercolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,numbercolumn:true},["widget.numbercolumn"],0,[Ext.grid.column,"Number",Ext.grid,"NumberColumn"],0));(Ext.cmd.derive("Ext.grid.column.RowNumberer",Ext.grid.column.Column,{alternateClassName:"Ext.grid.RowNumberer",isRowNumberer:true,text:"&#160;",width:23,sortable:false,draggable:false,autoLock:true,lockable:false,align:"right",producesHTML:false,constructor:function(a){var b=this;b.width=b.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);b.sortable=false;b.scope=b},resizable:false,hideable:false,menuDisabled:true,dataIndex:"",cls:"x-row-numberer",tdCls:"x-grid-cell-row-numberer x-grid-cell-special",innerCls:"x-grid-cell-inner-row-numberer",rowspan:undefined,defaultRenderer:function(j,b,g,c,e,a,i){var d=this.rowspan,h=a.currentPage,k=i.store.indexOf(g);if(b&&d){b.tdAttr='rowspan="'+d+'"'}if(h>1){k+=(h-1)*a.pageSize}return k+1},updater:function(a,d,c,b,e){a.firstChild.innerHTML=this.defaultRenderer(d,null,c,null,null,e,b)}},1,["rownumberer"],["component","box","container","headercontainer","gridcolumn","rownumberer"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,rownumberer:true},["widget.rownumberer"],0,[Ext.grid.column,"RowNumberer",Ext.grid,"RowNumberer"],0));(Ext.cmd.derive("Ext.grid.column.Template",Ext.grid.column.Column,{alternateClassName:"Ext.grid.TemplateColumn",initComponent:function(){var a=this;a.tpl=(!Ext.isPrimitive(a.tpl)&&a.tpl.compile)?a.tpl:new Ext.XTemplate(a.tpl);a.hasCustomRenderer=true;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments)},defaultRenderer:function(c,d,a){var b=Ext.apply({},a.data,a.getAssociatedData());return this.tpl.apply(b)},updater:function(a,b){a.firstChild.innerHTML=Ext.grid.column.CheckColumn.prototype.defaultRenderer.call(this,b)}},0,["templatecolumn"],["component","box","container","headercontainer","gridcolumn","templatecolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,templatecolumn:true},["widget.templatecolumn"],0,[Ext.grid.column,"Template",Ext.grid,"TemplateColumn"],0));(Ext.cmd.derive("Ext.grid.column.Widget",Ext.grid.column.Column,{config:{defaultWidgetUI:{}},sortable:false,onWidgetAttach:null,preventUpdate:true,stopSelection:true,initComponent:function(){var a=this,b;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);b=a.widget;a.widget=b=Ext.apply({},b);if(!b.ui){b.ui=a.getDefaultWidgetUI()[b.xtype]||"default"}a.isFixedSize=Ext.isNumber(b.width)},processEvent:function(h,j,k,b,i,g,c,l){var a=j.innerSelector,d;if(this.stopSelection&&h==="click"){d=g.getTarget(a);if(d&&d!==g.target){g.stopSelection=true}}},beforeRender:function(){var a=this,c=a.tdCls,b;a.listenerScopeFn=function(d){if(d==="this"){return this}return a.resolveListenerScope(d)};a.liveWidgets={};a.cachedStyles={};a.freeWidgetStack=[b=a.getFreeWidget()];c=c?c+" ":"";a.tdCls=c+b.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this)},afterRender:function(){var a=this.getView();Ext.grid.column.Column.prototype.afterRender.call(this);if(a&&a.viewReady&&!a.ownerGrid.reconfiguring){this.onViewRefresh(a,a.getViewRange())}},defaultRenderer:Ext.emptyFn,updater:function(a,c,b){this.updateWidget(b)},onResize:function(e){var d=this,b=d.liveWidgets,c=d.getView(),g,a;if(!d.isFixedSize&&d.rendered&&c&&c.viewReady){a=c.getEl().down(d.getCellInnerSelector());if(a){e-=parseInt(d.getCachedStyle(a,"padding-left"),10)+parseInt(d.getCachedStyle(a,"padding-right"),10);for(g in b){b[g].setWidth(e)}}}},onAdded:function(){var b=this,a;Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a=b.getView();if(a){b.setupViewListeners(a);if(a&&a.viewReady&&b.rendered&&a.getEl().down(b.getCellSelector())){b.onViewRefresh(a,a.getViewRange())}}},onRemoved:function(c){var d=this,a=d.liveWidgets,b=d.viewListeners,e;if(d.rendered){d.viewListeners=b&&Ext.destroy(b);if(!c){for(e in a){a[e].detachFromBody()}}}Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments)},onDestroy:function(){var c=this,h=c.liveWidgets,g=c.freeWidgetStack,e,d,b,a;if(c.rendered){for(e in h){d=h[e];d.$widgetRecord=d.$widgetColumn=null;delete d.getWidgetRecord;delete d.getWidgetColumn;d.destroy()}for(b=0,a=g.length;b<a;++b){g[b].destroy()}}c.freeWidgetStack=c.liveWidgets=null;Ext.grid.column.Column.prototype.onDestroy.call(this)},getWidget:function(b){var a=this.liveWidgets,c;if(b&&a){c=a[b.internalId]}return c||null},privates:{getCachedStyle:function(b,a){var c=this.cachedStyles;return c[a]||(c[a]=Ext.fly(b).getStyle(a))},getFreeWidget:function(){var b=this,a=b.freeWidgetStack?b.freeWidgetStack.pop():null;if(!a){a=Ext.widget(b.widget);a.resolveListenerScope=b.listenerScopeFn;a.getWidgetRecord=b.widgetRecordDecorator;a.getWidgetColumn=b.widgetColumnDecorator;a.dataIndex=b.dataIndex;a.measurer=b;a.ownerCmp=b;a.isLayoutChild=b.returnFalse}return a},onBeforeRefresh:function(){var a=this.liveWidgets,b;for(b in a){a[b].detachFromBody()}},onItemAdd:function(c,j,l){var m=this,n=m.getView(),k=!!m.onWidgetAttach,o=m.dataIndex,p=m.isFixedSize,h=c.length,d,g,r,q,e,b,a;if(m.isVisible(true)){for(d=0;d<h;d++){g=c[d];if(g.isNonData){continue}r=n.getRowFromItem(l[d]);if(r){q=r.cells[m.getVisibleIndex()].firstChild;if(!p&&!a){a=m.lastBox.width-parseInt(m.getCachedStyle(q,"padding-left"),10)-parseInt(m.getCachedStyle(q,"padding-right"),10)}e=m.liveWidgets[g.internalId]=m.getFreeWidget();e.$widgetColumn=m;e.$widgetRecord=g;Ext.fly(q).empty();if(e.defaultBindProperty&&o){e.setConfig(e.defaultBindProperty,g.get(o))}b=e.el||e.element;if(b){q.appendChild(b.dom);if(!p){e.setWidth(a)}e.reattachToBody()}else{if(!p){e.width=a}e.render(q)}if(k){Ext.callback(m.onWidgetAttach,m.scope,[m,e,g],0,m)}}}}},onTreeViewItemRemove:function(b,c,a){this.onItemRemove(b,c,a.all.item(c,true))},onItemRemove:function(b,h,j){var k=this,c=k.liveWidgets,e,l,a,g,d;if(k.rendered){j=Ext.Array.from(j);g=j.length;for(d=0;d<g;d++){l=j[d];a=l.getAttribute("data-recordId");if(a&&(e=c[a])){delete c[a];k.freeWidgetStack.unshift(e);e.$widgetRecord=e.$widgetColumn=null;e.detachFromBody()}}}},onItemUpdate:function(a,b,c){this.updateWidget(a)},onViewRefresh:function(k,n){var r=this,i=k.all,h=!!r.onWidgetAttach,j=r.liveWidgets,s=r.dataIndex,t=r.isFixedSize,b,g,c,m,a,q,e,d,l,p,o;if(r.isVisible(true)){r.liveWidgets={};Ext.suspendLayouts();for(q=i.startIndex,e=0;q<=i.endIndex;q++,e++){d=n[e];if(d.isNonData){continue}a=d.internalId;b=k.getRow(i.item(q)).cells[r.getVisibleIndex()].firstChild;g=r.liveWidgets[a]=j[a]||r.getFreeWidget();g.$widgetRecord=d;g.$widgetColumn=r;delete j[a];p=r.lastBox;if(p&&!t&&m===undefined){m=p.width-parseInt(r.getCachedStyle(b,"padding-left"),10)-parseInt(r.getCachedStyle(b,"padding-right"),10)}if(g.defaultBindProperty&&s){g.setConfig(g.defaultBindProperty,n[e].get(s))}c=g.el||g.element;if(c){o=c.dom;if(o.parentNode!==b){Ext.fly(b).empty();b.appendChild(c.dom)}if(!t){g.setWidth(m)}g.reattachToBody()}else{if(!t){g.width=m}Ext.fly(b).empty();g.render(b)}if(h){Ext.callback(r.onWidgetAttach,r.scope,[r,g,d],0,r)}}Ext.resumeLayouts(true);for(l in j){g=j[l];g.$widgetRecord=g.$widgetColumn=null;r.freeWidgetStack.unshift(g);g.detachFromBody()}}},returnFalse:function(){return false},setupViewListeners:function(a){var b=this;b.viewListeners=a.on({refresh:b.onViewRefresh,itemupdate:b.onItemUpdate,itemadd:b.onItemAdd,itemremove:a.isTreeView?b.onTreeViewItemRemove:b.onItemRemove,scope:b,destroyable:true});if(Ext.isIE8){a.on("beforerefresh",b.onBeforeRefresh,b)}},updateWidget:function(a){var b=this.dataIndex,c;if(this.rendered){c=this.liveWidgets[a.internalId];if(c&&c.defaultBindProperty&&b){c.setConfig(c.defaultBindProperty,a.get(b))}}},widgetRecordDecorator:function(){return this.$widgetRecord},widgetColumnDecorator:function(){return this.$widgetColumn}}},0,["widgetcolumn"],["component","box","container","headercontainer","gridcolumn","widgetcolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,widgetcolumn:true},["widget.widgetcolumn"],0,[Ext.grid.column,"Widget"],0));(Ext.cmd.derive("Ext.grid.feature.Feature",Ext.util.Observable,{wrapsItem:false,isFeature:true,disabled:false,hasFeatureEvent:true,eventPrefix:null,eventSelector:null,view:null,grid:null,constructor:function(a){this.initialConfig=a;Ext.util.Observable.prototype.constructor.apply(this,arguments)},clone:function(){return new this.self(this.initialConfig)},init:Ext.emptyFn,destroy:function(){this.clearListeners()},getFireEventArgs:function(b,a,c,d){return[b,a,c,d]},vetoEvent:Ext.emptyFn,enable:function(){this.disabled=false},disable:function(){this.disabled=true}},1,0,0,0,["feature.feature"],0,[Ext.grid.feature,"Feature"],0));(Ext.cmd.derive("Ext.grid.feature.AbstractSummary",Ext.grid.feature.Feature,{summaryRowCls:"x-grid-row-summary",readDataOptions:{recordCreator:Ext.identityFn},summaryRowTpl:{fn:function(b,a,c){if(a.record.isSummary&&this.summaryFeature.showSummaryRow){this.summaryFeature.outputSummaryRecord(a.record,a,b,c)}else{this.nextTpl.applyOut(a,b,c)}},priority:1000},showSummaryRow:true,init:function(){var a=this;a.view.summaryFeature=a;a.rowTpl=a.view.self.prototype.rowTpl;a.view.addRowTpl(a.summaryRowTpl).summaryFeature=a;a.summaryData={};a.groupInfo={};if(!a.summaryTableCls){a.summaryTableCls="x-grid-item"}a.summaryRowSelector="."+a.summaryRowCls},toggleSummaryRow:function(e,a){var d=this,c=d.showSummaryRow,b;e=e!=null?!!e:!d.showSummaryRow;d.showSummaryRow=e;if(e&&e!==c){d.updateSummaryRow=true}if(d.lockingPartner){if(!a){d.lockingPartner.toggleSummaryRow(e,true);b=true}}else{b=true}if(b){d.grid.ownerGrid.getView().refresh()}},createRenderer:function(e,b){var g=this,c=b.ownerGroup,a=c?g.summaryData[c]:g.summaryData,d=e.dataIndex||e.getItemId();return function(i,h){return e.summaryRenderer?e.summaryRenderer(b.data[d],a,d,h):b.data[d]}},outputSummaryRecord:function(g,l,d){var h=l.view,a=h.rowValues,c=l.columns||h.headerCt.getVisibleGridColumns(),k=c.length,e,b,j={view:h,record:g,rowStyle:"",rowClasses:[this.summaryRowCls],itemClasses:[],recordIndex:-1,rowId:h.getRowId(g),columns:c};for(e=0;e<k;e++){b=c[e];b.savedRenderer=b.renderer;if(b.summaryType||b.summaryRenderer){b.renderer=this.createRenderer(b,g)}else{b.renderer=Ext.emptyFn}}h.rowValues=j;h.self.prototype.rowTpl.applyOut(j,d,parent);h.rowValues=a;for(e=0;e<k;e++){b=c[e];b.renderer=b.savedRenderer;b.savedRenderer=null}},getSummary:function(a,b,g,e){var d=!!e,c=d?e:a;if(b){if(Ext.isFunction(b)){if(d){return c.aggregate(g,b)}else{return c.aggregate(b,null,false,[g])}}switch(b){case"count":return c.count();case"min":return c.min(g);case"max":return c.max(g);case"sum":return c.sum(g);case"average":return c.average(g);default:return""}}},generateSummaryData:function(a){var e=this,c=e.view.store.getProxy().getReader(),j={},h={},b,d,g,k;g=c.getRootProperty();c.setRootProperty(e.remoteRoot);c.buildExtractors(true);k=c.getRoot(c.rawData);if(k){if(!Ext.isArray(k)){k=[k]}d=k.length;for(b=0;b<d;++b){j=c.extractRecordData(k[b],e.readDataOptions);if(a){h[j[a]]=j}}}c.setRootProperty(g);c.buildExtractors(true);return a?h:j},setSummaryData:function(c,d,b,e){var a=this.summaryData;if(e){if(!a[e]){a[e]={}}a[e][d]=b}else{a[d]=b}}},0,0,0,0,["feature.abstractsummary"],0,[Ext.grid.feature,"AbstractSummary"],0));(Ext.cmd.derive("Ext.grid.feature.GroupStore",Ext.util.Observable,{isStore:true,defaultViewSize:100,isFeatureStore:true,badGrouperKey:"[object Object]",constructor:function(c,a){var b=this;Ext.util.Observable.prototype.constructor.call(this);b.groupingFeature=c;b.bindStore(a);if(!c.grid.isLocked){b.bindViewStoreListeners()}},bindStore:function(a){var b=this;if(!a||b.store!==a){Ext.destroy(b.storeListeners);b.store=null}if(a){b.storeListeners=a.on({groupchange:b.onGroupChange,remove:b.onRemove,add:b.onAdd,idchanged:b.onIdChanged,update:b.onUpdate,refresh:b.onRefresh,clear:b.onClear,scope:b,destroyable:true});b.store=a;b.processStore(a)}},bindViewStoreListeners:function(){var a=this.groupingFeature.view,b=a.getStoreListeners(this);b.scope=a;this.on(b)},processStore:function(d){var w=this,m=w.groupingFeature,p=m.startCollapsed,x=w.data,t=d.getGroups(),c=t?t.length:0,v=d.getGroupField(),h=t&&Ext.Array.unique(Ext.Object.getValues(t.itemGroupKeys)),b=false,u=m.getCache(),s,r,a,o,q,g,e,k,n,y,l,j;m.invalidateCache();a=m.getCache();if(x){x.clear()}else{x=w.data=new Ext.util.Collection({rootProperty:"data",extraKeys:{byInternalId:{property:"internalId",rootProperty:""}}})}if(d.getCount()){m.startCollapsed=false;if(c>0){j=d.getModel();for(o=0;o<c;o++){e=t.getAt(o);y=e.getGroupKey();if(w.badGrouperKey===y&&(g=m.getGrouper(v))){m.startCollapsed=p;d.group(g);return}s=u[y];r=a[y]=m.getMetaGroup(y);if(s){r.isCollapsed=s.isCollapsed}Ext.Array.splice(h,Ext.Array.indexOf(h,y),1);b=r.isCollapsed=p||r.isCollapsed;if(b){l={};l[v]=y;r.placeholder=n=new j(l);n.isNonData=n.isCollapsedPlaceholder=true;n.groupKey=y;x.add(n)}else{x.insert(w.data.length,e.items)}}if(h.length){for(o=0,q=h.length;o<q;o++){k=h[o];a[k]=u[k]}}u=null}else{x.add(d.getRange())}}},isCollapsed:function(a){return this.groupingFeature.getCache()[a].isCollapsed},isLoading:function(){return false},getData:function(){return this.data},getCount:function(){return this.data.getCount()},getTotalCount:function(){return this.data.getCount()},rangeCached:function(b,a){return a<this.getCount()},getRange:function(d,b,c){var a=this.data.getRange(d,Ext.isNumber(b)?b+1:b);if(c&&c.callback){c.callback.call(c.scope||this,a,d,b,c)}return a},getAt:function(a){return this.data.getAt(a)},getById:function(a){return this.store.getById(a)},getByInternalId:function(a){return this.store.getByInternalId(a)||this.data.byInternalId.get(a)},expandGroup:function(g){var d=this,e=d.groupingFeature,b,h,c,a;if(typeof g==="string"){g=e.getGroup(g)}if(g){a=g.items;b=e.getMetaGroup(g);h=b.placeholder}if(a.length&&(c=d.data.indexOf(h))!==-1){b.isCollapsed=false;d.isExpandingOrCollapsing=1;d.data.removeAt(c);d.data.insert(c,g.items);d.fireEvent("replace",d,c,[h],g.items);d.fireEvent("groupexpand",d,g);d.isExpandingOrCollapsing=0}},collapseGroup:function(g){var d=this,e=d.groupingFeature,c,h,a,b;if(typeof g==="string"){g=e.getGroup(g)}if(g){b=g.items}if(b&&(a=b.length)&&(c=d.data.indexOf(b[0]))!==-1){e.getMetaGroup(g).isCollapsed=true;d.isExpandingOrCollapsing=2;d.data.removeAt(c,a);d.data.insert(c,h=d.getGroupPlaceholder(g));d.fireEvent("replace",d,c,b,[h]);d.fireEvent("groupcollapse",d,g);d.isExpandingOrCollapsing=0}},getGroupPlaceholder:function(e){var b=this.groupingFeature.getMetaGroup(e);if(!b.placeholder){var a=this.store,h=a.getModel(),d={},c=e.getGroupKey(),g;d[a.getGroupField()]=c;g=b.placeholder=new h(d);g.isNonData=g.isCollapsedPlaceholder=true;g.groupKey=c}return b.placeholder},indexOf:function(a){var b=-1;if(!a.isCollapsedPlaceholder){b=this.data.indexOf(a)}return b},contains:function(a){return this.indexOf(a)>-1},indexOfPlaceholder:function(a){return this.data.indexOf(a)},indexOfId:function(a){return this.data.indexOfKey(a)},indexOfTotal:function(a){return this.store.indexOf(a)},onAdd:function(a){var b=this;b.processStore(b.store);b.fireEvent("refresh",b)},onClear:function(b,a,d){var c=this;c.processStore(c.store);c.fireEvent("clear",c)},onIdChanged:function(a,d,c,b){this.data.updateKey(d,c)},onRefresh:function(){this.processStore(this.store);this.fireEvent("refresh",this)},onRemove:function(){var a=this;a.processStore(a.store);a.fireEvent("refresh",a)},onUpdate:function(k,g,c,e){var j=this,a=j.groupingFeature,l,d,i,b,h;if(k.isGrouped()){l=g.group=a.getGroup(g);if(l){d=a.getMetaGroup(g);if(e&&Ext.Array.contains(e,a.getGroupField())){return j.onRefresh(j.store)}if(d.isCollapsed){j.fireEvent("update",j,d.placeholder)}else{Ext.suspendLayouts();j.fireEvent("update",j,g,c,e);h=l.items;i=h[0];b=h[h.length-1];if(i!==g){i.group=l;j.fireEvent("update",j,i,"edit",e);delete i.group}if(b!==g&&b!==i&&a.showSummaryRow){b.group=l;j.fireEvent("update",j,b,"edit",e);delete b.group}Ext.resumeLayouts(true)}}delete g.group}else{j.fireEvent("update",j,g,c,e)}},onGroupChange:function(b,a){if(!a){this.processStore(b)}this.fireEvent("groupchange",b,a)},destroy:function(){var a=this;a.bindStore(null);a.clearListeners();Ext.destroyMembers(a,"data","groupingFeature")}},1,0,0,0,0,0,[Ext.grid.feature,"GroupStore"],0));(Ext.cmd.derive("Ext.grid.feature.Grouping",Ext.grid.feature.Feature,{eventPrefix:"group",eventSelector:".x-grid-group-hd",refreshData:{},wrapsItem:true,groupHeaderTpl:"{columnName}: {name}",depthToIndent:17,collapsedCls:"x-grid-group-collapsed",hdCollapsedCls:"x-grid-group-hd-collapsed",hdNotCollapsibleCls:"x-grid-group-hd-not-collapsible",collapsibleCls:"x-grid-group-hd-collapsible",ctCls:"x-group-hd-container",groupByText:"Group by this field",showGroupsText:"Show in groups",hideGroupedHeader:false,startCollapsed:false,enableGroupingMenu:true,enableNoGroups:true,collapsible:true,groupers:null,expandTip:"Click to expand. CTRL key collapses all others",collapseTip:"Click to collapse. CTRL/click collapses all others",showSummaryRow:false,outerTpl:["{%","if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {","this.groupingFeature.setup(values.rows, values.view.rowValues);","}","this.nextTpl.applyOut(values, out, parent);","if (!(this.groupingFeature.disabled || values.rows.length === 1 && values.rows[0].isSummary)) {","this.groupingFeature.cleanup(values.rows, values.view.rowValues);","}","%}",{priority:200}],groupRowTpl:["{%","var me = this.groupingFeature,",'colspan = "colspan=" + values.columns.length;',"if (me.disabled || parent.rows.length === 1 && parent.rows[0].isSummary) {","values.needsWrap = false;","} else {","me.setupRowData(values.record, values.rowIndex, values);","}","%}",'<tpl if="needsWrap">','<tpl if="isFirstRow">',"{% values.view.renderColumnSizer(values, out); %}",'<tr data-boundView="{view.id}" data-recordId="{record.internalId:htmlEncode}" data-recordIndex="{[values.isCollapsedGroup ? -1 : values.recordIndex]}" class="{groupHeaderCls}">','<td class="{[me.ctCls]}" {[colspan]}>',"{%",'var groupTitleStyle = (!values.view.lockingPartner || (values.view.ownerCt === values.view.ownerCt.ownerLockable.lockedGrid) || (values.view.lockingPartner.headerCt.getVisibleGridColumns().length === 0)) ? "" : "visibility:hidden";',"%}",'<div data-groupname="{groupName:htmlEncode}" class="',"x-",'grid-group-hd {collapsibleCls}" nottabindex="0" hidefocus="on" {ariaCellInnerAttr}>','<div class="',"x-",'grid-group-title" style="{[groupTitleStyle]}" {ariaGroupTitleAttr} data-qtip="{[values.isCollapsedGroup ? me.expandTip : me.collapseTip]}">','{[values.groupHeaderTpl.apply(values.groupRenderInfo, parent) || "&#160;"]}',"</div>","</div>","</td>","</tr>","</tpl>",'<tpl if="!isCollapsedGroup">',"{%","values.itemClasses.length = 0;","this.nextTpl.applyOut(values, out, parent);","%}","</tpl>",'<tpl if="summaryRecord">',"{%me.outputSummaryRecord(values.summaryRecord, values, out, parent);%}","</tpl>","<tpl else>","{%this.nextTpl.applyOut(values, out, parent);%}","</tpl>",{priority:200,beginRowSync:function(a){var b=this.groupingFeature;a.add("header",b.eventSelector);a.add("summary",b.summaryRowSelector)},syncContent:function(b,i,a){b=Ext.fly(b,"syncDest");i=Ext.fly(i,"sycSrc");var e=this.groupingFeature,d=b.down(e.eventSelector,true),c=i.down(e.eventSelector,true),h=b.down(e.summaryRowSelector,true),g=i.down(e.summaryRowSelector,true);if(d&&c){Ext.fly(d).syncContent(c)}if(h&&g){if(a){this.groupingFeature.view.updateColumns(h,g,a)}else{Ext.fly(h).syncContent(g)}}}}],relayedEvents:["groupcollapse","groupexpand"],init:function(c){var e=this,a=e.view,b=e.getGridStore(),d,g;a.isGrouping=b.isGrouped();e.mixins.summary.init.call(e);Ext.grid.feature.Feature.prototype.init.call(this,c);a.headerCt.on({columnhide:e.onColumnHideShow,columnshow:e.onColumnHideShow,columnmove:e.onColumnMove,scope:e});a.addTpl(Ext.XTemplate.getTpl(e,"outerTpl")).groupingFeature=e;a.addRowTpl(Ext.XTemplate.getTpl(e,"groupRowTpl")).groupingFeature=e;a.preserveScrollOnRefresh=true;if(b.isBufferedStore){e.collapsible=false}else{d=e.lockingPartner;if(d&&d.dataSource){e.dataSource=a.dataSource=g=d.dataSource}else{e.dataSource=a.dataSource=g=new Ext.grid.feature.GroupStore(e,b)}}c=c.ownerLockable||c;c.on("beforereconfigure",e.beforeReconfigure,e);if(!a.isLockedView){e.gridEventRelayers=c.relayEvents(a,e.relayedEvents)}a.on({afterrender:e.afterViewRender,scope:e,single:true});e.groupRenderInfo={};if(g){g.on("groupchange",e.onGroupChange,e)}else{e.setupStoreListeners(b)}},getGridStore:function(){return this.view.getStore()},indexOf:function(a){return this.dataSource.indexOf(a)},indexOfPlaceholder:function(a){return this.dataSource.indexOfPlaceholder(a)},isInCollapsedGroup:function(b){var e=this,d=e.getGridStore(),a=false,c;if(d.isGrouped()&&(c=e.getMetaGroup(b))){a=!!(c&&c.isCollapsed)}return a},createCache:function(){var a=this.metaGroupCache={},b=this.lockingPartner;if(b){b.metaGroupCache=a}return a},getCache:function(){return this.metaGroupCache||this.createCache()},invalidateCache:function(){var a=this.lockingPartner;this.metaGroupCache=null;if(a){a.metaGroupCache=null}},vetoEvent:function(a,c,d,b){if(b.type!=="mouseover"&&b.type!=="mouseout"&&b.type!=="mouseenter"&&b.type!=="mouseleave"&&b.getTarget(this.eventSelector)){return false}},enable:function(){var c=this,a=c.view,b=c.getGridStore(),e=c.hideGroupedHeader&&c.getGroupedHeader(),d;a.isGrouping=true;if(a.lockingPartner){a.lockingPartner.isGrouping=true}Ext.grid.feature.Feature.prototype.enable.call(this);if(c.lastGrouper){b.group(c.lastGrouper);c.lastGrouper=null}if(e){e.hide()}d=c.view.headerCt.getMenu().down("#groupToggleMenuItem");if(d){d.setChecked(true,true)}},disable:function(){var c=this,a=c.view,b=c.getGridStore(),g=c.hideGroupedHeader&&c.getGroupedHeader(),e=b.getGrouper(),d;a.isGrouping=false;if(a.lockingPartner){a.lockingPartner.isGrouping=false}Ext.grid.feature.Feature.prototype.disable.call(this);if(e){c.lastGrouper=e;b.clearGrouping()}if(g){g.show()}d=c.view.headerCt.getMenu().down("#groupToggleMenuItem");if(d){d.setChecked(false,true);d.disable()}},afterViewRender:function(){var b=this,a=b.view;a.on({scope:b,groupclick:b.onGroupClick});if(b.enableGroupingMenu){b.injectGroupingMenu()}b.pruneGroupedHeader();b.lastGrouper=b.getGridStore().getGrouper();if(b.disabled){b.disable()}},injectGroupingMenu:function(){var a=this,b=a.view.headerCt;b.showMenuBy=a.showMenuBy;b.getMenuItems=a.getMenuItems()},onColumnHideShow:function(d,h){var l=this,m=l.view,b=m.headerCt,a=b.getMenu(),c=a.activeHeader,n=a.down("#groupMenuItem"),g,o=l.grid.getVisibleColumnManager().getColumns().length,k,j,e;if(c&&n){g=c.groupable===false||!c.dataIndex||l.view.headerCt.getVisibleGridColumns().length<2?"disable":"enable";n[g]()}if(m.rendered&&o){k=m.el.query("."+l.ctCls);for(e=0,j=k.length;e<j;++e){k[e].colSpan=o}}},onColumnMove:function(){var e=this,b=e.view,i,a,g,h,d,c;if(b.getStore().isGrouped()){a=e.getCache();Ext.suspendLayouts();for(i in a){g=e.getGroup(i);if(g){h=g.first();d=g.last();c=e.getMetaGroup(i);if(c.isCollapsed){h=d=e.dataSource.getGroupPlaceholder(i)}b.refreshNode(h);if(e.showSummaryRow&&d!==h){b.refreshNode(d)}}}Ext.resumeLayouts(true)}},showMenuBy:function(i,j,c){var e=this,a=e.getMenu(),g=a.down("#groupMenuItem"),d=c.groupable===false||!c.dataIndex||e.view.headerCt.getVisibleGridColumns().length<2?"disable":"enable",b=a.down("#groupToggleMenuItem"),h=e.grid.getStore().isGrouped();g[d]();if(b){b.setChecked(h,true);b[h?"enable":"disable"]()}Ext.grid.header.Container.prototype.showMenuBy.apply(e,arguments)},getMenuItems:function(){var g=this,c=g.groupByText,e=g.disabled||!g.getGroupField(),a=g.showGroupsText,d=g.enableNoGroups,b=g.view.headerCt.getMenuItems;return function(){var h=b.call(this);h.push("-",{iconCls:"x-group-by-icon",itemId:"groupMenuItem",text:c,handler:g.onGroupMenuItemClick,scope:g});if(d){h.push({itemId:"groupToggleMenuItem",text:a,checked:!e,checkHandler:g.onGroupToggleMenuItemClick,scope:g})}return h}},onGroupMenuItemClick:function(c,g){var d=this,h=c.parentMenu,i=h.activeHeader,a=d.view,b=d.getGridStore();if(d.disabled){d.lastGrouper=null;d.block();d.enable();d.unblock()}a.isGrouping=true;b.group(d.getGrouper(i.dataIndex)||i.dataIndex);d.pruneGroupedHeader()},block:function(a){var b=this;b.blockRefresh=b.view.blockRefresh=true;if(b.lockingPartner&&!a){b.lockingPartner.block(true)}},unblock:function(a){var b=this;b.blockRefresh=b.view.blockRefresh=false;if(b.lockingPartner&&!a){b.lockingPartner.unblock(true)}},onGroupToggleMenuItemClick:function(a,b){this[b?"enable":"disable"]()},pruneGroupedHeader:function(){var a=this,b=a.getGroupedHeader();if(a.hideGroupedHeader&&b){Ext.suspendLayouts();if(a.prunedHeader&&a.prunedHeader!==b){a.prunedHeader.show()}a.prunedHeader=b;if(b.rendered){b.hide()}Ext.resumeLayouts(true)}},getHeaderNode:function(g){var d=this.view.getEl(),b,c,a,e;if(d){b=d.query(this.eventSelector);for(c=0,a=b.length;c<a;++c){e=b[c];if(e.getAttribute("data-groupName")===g){return e}}}},getGroup:function(b){var a=this.getGridStore(),c=b,d;if(a.isGrouped()){if(b.isModel){b=b.get(a.getGroupField())}if(typeof b!=="string"){b=a.getGrouper().getGroupString(c)}d=a.getGroups().getByKey(b)}return d},getGrouper:function(a){var b=this.groupers;if(!b){return null}return Ext.Array.findBy(b,function(c){return c.property===a})},getGroupField:function(){return this.getGridStore().getGroupField()},getMetaGroup:function(d){var a=this.metaGroupCache||this.createCache(),c,b;if(d.isModel){d=this.getGroup(d)}if(d!=null){c=(typeof d==="string")?d:d.getGroupKey();b=a[c];if(!b){b=a[c]={isCollapsed:false,lastGroup:null,lastGroupGeneration:null,lastFilterGeneration:null,aggregateRecord:new Ext.data.Model()}}}return b},isExpanded:function(a){return !this.getMetaGroup(a).isCollapsed},expand:function(b,a){this.doCollapseExpand(false,b,a)},expandAll:function(){var c=this,a=c.getCache(),b=c.lockingPartner,d;for(d in a){if(a.hasOwnProperty(d)){a[d].isCollapsed=false}}Ext.suspendLayouts();c.dataSource.onRefresh();Ext.resumeLayouts(true);for(d in a){if(a.hasOwnProperty(d)){c.afterCollapseExpand(false,d);if(b){b.afterCollapseExpand(false,d)}}}},collapse:function(b,a){this.doCollapseExpand(true,b,a)},isAllCollapsed:function(){var b=this,a=b.getCache(),c;for(c in a){if(a.hasOwnProperty(c)){if(!a[c].isCollapsed){return false}}}return true},isAllExpanded:function(){var b=this,a=b.getCache(),c;for(c in a){if(a.hasOwnProperty(c)){if(a[c].isCollapsed){return false}}}return true},collapseAll:function(){var c=this,a=c.getCache(),d,b=c.lockingPartner;for(d in a){if(a.hasOwnProperty(d)){a[d].isCollapsed=true}}Ext.suspendLayouts();c.dataSource.onRefresh();Ext.resumeLayouts(true);for(d in a){if(a.hasOwnProperty(d)){c.afterCollapseExpand(true,d);if(b){b.afterCollapseExpand(true,d)}}}},doCollapseExpand:function(e,g,a){var c=this,b=c.lockingPartner,d=c.getGroup(g);if(c.getMetaGroup(d).isCollapsed!==e){c.isExpandingOrCollapsing=true;Ext.suspendLayouts();if(e){c.dataSource.collapseGroup(d)}else{c.dataSource.expandGroup(d)}Ext.resumeLayouts(true);c.afterCollapseExpand(e,g,a);if(b){b.afterCollapseExpand(e,g,false)}c.isExpandingOrCollapsing=false}},afterCollapseExpand:function(d,h,b){var c=this,a=c.view,g=a.bufferedRenderer,e;e=c.getHeaderNode(h);a.fireEvent(d?"groupcollapse":"groupexpand",a,e,h);if(b){if(e){a.scrollElIntoView(Ext.fly(e).up(a.getItemSelector()),false,true)}else{if(g){g.scrollTo(c.getGroup(h).getAt(0))}}}},onGroupChange:function(b,a){if(!a){this.view.ownerGrid.getView().refreshView()}else{this.lastGrouper=a}},getMenuItem:function(b){var a=this.view,d=a.headerCt.down("gridcolumn[dataIndex="+b+"]"),c=a.headerCt.getMenu();return d?c.down("menuitem[headerId="+d.id+"]"):null},onGroupKey:function(c,b){var a=this,d=a.getGroupName(b.target);if(d){a.onGroupClick(a.view,b.target,d,b)}},onGroupClick:function(b,i,k,j){var h=this,a=h.getCache(),c=!h.isExpanded(k),d;if(h.collapsible){if(j.ctrlKey){Ext.suspendLayouts();for(d in a){if(d===k){if(c){h.expand(k)}}else{if(!a[d].isCollapsed){h.doCollapseExpand(true,d,false)}}}Ext.resumeLayouts(true);return}if(c){h.expand(k)}else{h.collapse(k)}}},setupRowData:function(b,k,n){var v=this,c=n.recordIndex,w=v.refreshData,a=v.getCache(),g=v.groupRenderInfo,r=w.header,u=w.groupField,h=v.getGridStore(),s=v.view.dataSource,q=s.isBufferedStore,d=v.grid.columnManager.getHeaderByDataIndex(u),e=!!(d&&d.renderer),t=b.groupKey,i=b.isCollapsedPlaceholder&&Ext.isDefined(t)?v.getGroup(t):b.group,p,j,m,o,l;n.isCollapsedGroup=false;n.summaryRecord=n.groupHeaderCls=null;if(w.doGrouping){p=h.getGrouper();if(b.isCollapsedPlaceholder){j=i.getGroupKey();l=i.items;n.isFirstRow=n.isLastRow=true;n.groupHeaderCls=v.hdCollapsedCls;n.isCollapsedGroup=n.needsWrap=true;n.groupName=j;n.groupRenderInfo=g;g.groupField=u;g.name=g.renderedGroupValue=e?d.renderer(i.getAt(0).get(u),{},b):j;g.groupValue=l[0].get(u);g.columnName=r?r.text:u;n.collapsibleCls=v.collapsible?v.collapsibleCls:v.hdNotCollapsibleCls;g.rows=g.children=l;if(v.showSummaryRow){n.summaryRecord=w.summaryData[j]}return}j=p.getGroupString(b);if(i){l=i.items;n.isFirstRow=b===l[0];n.isLastRow=b===l[l.length-1]}else{n.isFirstRow=c===0;if(!n.isFirstRow){m=h.getAt(c-1);if(m){n.isFirstRow=!m.isEqual(p.getGroupString(m),j)}}n.isLastRow=c===(q?h.getTotalCount():h.getCount())-1;if(!n.isLastRow){o=h.getAt(c+1);if(o){n.isLastRow=!o.isEqual(p.getGroupString(o),j)}}}if(n.isFirstRow){g.groupField=u;g.name=g.renderedGroupValue=e?d.renderer(b.get(u),{},b):j;g.groupValue=b.get(u);g.columnName=r?r.text:u;n.collapsibleCls=v.collapsible?v.collapsibleCls:v.hdNotCollapsibleCls;n.groupName=j;if(!v.isExpanded(j)){n.itemClasses.push(v.hdCollapsedCls);n.isCollapsedGroup=true}if(q){g.rows=g.children=[]}else{g.rows=g.children=v.getRecordGroup(b).items}n.groupRenderInfo=g}if(n.isLastRow){if(v.showSummaryRow){n.summaryRecord=w.summaryData[j];n.itemClasses.push("x-grid-group-last")}}n.needsWrap=(n.isFirstRow||n.summaryRecord)}},setup:function(e,g){var c=this,d=c.refreshData,a=g.view,b=a.isGrouping=!c.disabled&&c.getGridStore().isGrouped(),h=a.bufferedRenderer;c.skippedRows=0;if(h){h.variableRowHeight=a.bufferedRenderer.variableRowHeight||b}d.groupField=c.getGroupField();d.header=c.getGroupedHeader(d.groupField);d.doGrouping=b;g.groupHeaderTpl=Ext.XTemplate.getTpl(c,"groupHeaderTpl");if(b&&c.showSummaryRow){d.summaryData=c.generateSummaryData()}},cleanup:function(b,c){var a=this.refreshData;c.groupRenderInfo=c.groupHeaderTpl=c.isFirstRow=null;a.groupField=a.header=null},getAggregateRecord:function(a,b){var c;if(b===true||!a.aggregateRecord){c=new Ext.data.Model();a.aggregateRecord=c;c.isNonData=c.isSummary=true}return a.aggregateRecord},generateSummaryData:function(){var o=this,q=o.getGridStore(),c=q.getFilters(),d=q.getGroups().items,l=q.getProxy().getReader(),a=o.getGroupField(),n=o.lockingPartner,s=o.updateSummaryRow,j={},e=o.view.ownerCt,h,m,r,g,k,b,p;if(o.remoteRoot&&l.rawData){b=true;p=o.mixins.summary.generateSummaryData.call(o,a)}for(h=0,m=d.length;h<m;++h){r=d[h];g=o.getMetaGroup(r);if(s||b||q.updating||o.grid.reconfiguring||o.didGroupChange(r,g,c)){k=o.populateRecord(r,g,p);if(!n||(e===e.ownerLockable.normalGrid)){g.lastGroup=r;g.lastGroupGeneration=r.generation;g.lastFilterGeneration=c.generation}}else{k=o.getAggregateRecord(g)}j[r.getGroupKey()]=k}o.updateSummaryRow=false;return j},getGroupName:function(b){var d=this,a=d.view,c=d.eventSelector,g,e;g=Ext.fly(b).findParent(c);if(!g){e=Ext.fly(b).findParent(a.itemSelector);if(e){g=e.down(c,true)}}if(g){return g.getAttribute("data-groupname")}},getRecordGroup:function(a){var c=this.getGridStore(),b=c.getGrouper();if(b){return c.getGroups().getByKey(b.getGroupString(a))}},getGroupedHeader:function(b){var d=this,e=d.view.headerCt,c=d.lockingPartner,a,g;b=b||d.getGroupField();if(b){a="[dataIndex="+b+"]";g=e.down(a);if(!g&&c){g=c.view.headerCt.down(a)}}return g||null},getFireEventArgs:function(b,a,d,c){return[b,a,d,this.getGroupName(d),c]},destroy:function(){var a=this,b=a.dataSource;Ext.destroy(a.gridEventRelayers);a.gridEventRelayers=null;a.storeListeners=Ext.destroy(a.storeListeners);a.view=a.prunedHeader=a.grid=a.dataSource=a.groupers=null;a.invalidateCache();Ext.grid.feature.Feature.prototype.destroy.call(this);if(b){b.bindStore(null);Ext.destroy(b)}},beforeReconfigure:function(c,j,d,a,e){var h=this,i=h.view,b=h.dataSource,g;if(j&&j!==a){g=j.isBufferedStore;if(!b){Ext.destroy(h.storeListeners);h.setupStoreListeners(j)}if(g!==a.isBufferedStore){Ext.Error.raise("Cannot reconfigure grouping switching between buffered and non-buffered stores")}i.isGrouping=!!j.getGrouper();b.bindStore(j)}},populateRecord:function(p,e,n){var k=this,l=k.grid.ownerLockable?k.grid.ownerLockable.view:k.view,o=k.getGridStore(),h=k.getAggregateRecord(e),d=l.headerCt.getGridColumns(),j=d.length,r=p.getGroupKey(),c,m,g,b,q,a;h.beginEdit();if(n){c=n[r];for(m in c){if(c.hasOwnProperty(m)){if(m!==h.idProperty){h.set(m,c[m])}}}}for(g=0;g<j;++g){b=d[g];q=b.dataIndex||b.getItemId();if(!n){a=k.getSummary(o,b.summaryType,q,p);h.set(q,a)}else{a=h.get(b.dataIndex)}k.setSummaryData(h,b.getItemId(),a,r)}h.ownerGroup=r;h.endEdit(true);h.commit();return h},privates:{didGroupChange:function(d,a,c){var b=true;if(d===a.lastGroup){b=a.lastGroupGeneration!==d.generation||a.lastFilterGeneration!==c.generation}return b},setupStoreListeners:function(a){var b=this;b.storeListeners=a.on({groupchange:b.onGroupChange,scope:b,destroyable:true})}}},0,0,0,0,["feature.grouping"],[["summary",Ext.grid.feature.AbstractSummary]],[Ext.grid.feature,"Grouping"],0));(Ext.cmd.derive("Ext.grid.feature.GroupingSummary",Ext.grid.feature.Grouping,{showSummaryRow:true,vetoEvent:function(b,d,g,c){var a=Ext.grid.feature.Grouping.prototype.vetoEvent.apply(this,arguments);if(a!==false&&c.getTarget(this.summaryRowSelector)){a=false}return a}},0,0,0,0,["feature.groupingsummary"],0,[Ext.grid.feature,"GroupingSummary"],0));(Ext.cmd.derive("Ext.grid.feature.RowBody",Ext.grid.feature.Feature,{rowBodyCls:"x-grid-row-body",rowBodyHiddenCls:"x-grid-row-body-hidden",rowBodyTdSelector:"td.x-grid-cell-rowbody",eventPrefix:"rowbody",eventSelector:"tr.x-grid-rowbody-tr",bodyBefore:false,outerTpl:{fn:function(d,b,g){var h=this.rowBody,a=b.view,e=a.getVisibleColumnManager().getColumns(),i=a.rowValues,c=h.rowExpander&&h.rowExpander.expanderColumn;i.rowBodyColspan=e.length;i.rowBodyCls=h.rowBodyCls;if(c&&c.getView()===a){a.grid.removeCls("x-grid-hide-row-expander-spacer");i.addSpacerCell=true;i.rowBodyColspan-=1;i.spacerCellCls="x-grid-cell x-grid-row-expander-spacer x-grid-cell-special"}else{a.grid.addCls("x-grid-hide-row-expander-spacer");i.addSpacerCell=false}this.nextTpl.applyOut(b,d,g);i.rowBodyCls=i.rowBodyColspan=i.rowBody=null},priority:100},extraRowTpl:["{%","if(this.rowBody.bodyBefore) {","values.view.renderColumnSizer(values, out);","} else {","this.nextTpl.applyOut(values, out, parent);","}","values.view.rowBodyFeature.setupRowData(values.record, values.recordIndex, values);","%}",'<tr class="x-grid-rowbody-tr {rowBodyCls}" {ariaRowAttr}>','<tpl if="addSpacerCell">','<td class="{spacerCellCls}"></td>',"</tpl>",'<td class="x-grid-td x-grid-cell-rowbody" colspan="{rowBodyColspan}" {ariaCellAttr}>','<div class="x-grid-rowbody {rowBodyDivCls}" {ariaCellInnerAttr}>{rowBody}</div>',"</td>","</tr>","{%","if(this.rowBody.bodyBefore) {","this.nextTpl.applyOut(values, out, parent);","}","%}",{priority:100,beginRowSync:function(a){a.add("rowBody",this.owner.eventSelector)},syncContent:function(c,g,b){var a=this.owner,d=Ext.fly(c).down(a.eventSelector,true),e;if(d&&(e=Ext.fly(g).down(a.eventSelector,true))){Ext.fly(d).syncContent(e)}}}],init:function(b){var c=this,a=c.view=b.getView();b.variableRowHeight=a.variableRowHeight=true;a.rowBodyFeature=c;a.headerCt.on({columnschanged:c.onColumnsChanged,scope:c});a.addTpl(c.outerTpl).rowBody=c;a.addRowTpl(Ext.XTemplate.getTpl(this,"extraRowTpl")).rowBody=c;Ext.grid.feature.Feature.prototype.init.apply(this,arguments)},getSelectedRow:function(a,c){var b=a.getNode(c);if(b){return Ext.fly(b).down(this.eventSelector)}return null},onColumnsChanged:function(d){var b=this.view.el.query(this.rowBodyTdSelector),e=d.getVisibleGridColumns().length,a=b.length,c;for(c=0;c<a;++c){b[c].setAttribute("colSpan",e)}},setupRowData:function(a,c,b){if(this.getAdditionalData){Ext.apply(b,this.getAdditionalData(a.data,c,a,b))}}},0,0,0,0,["feature.rowbody"],0,[Ext.grid.feature,"RowBody"],0));(Ext.cmd.derive("Ext.grid.feature.Summary",Ext.grid.feature.AbstractSummary,{dock:undefined,dockedSummaryCls:"x-docked-summary",panelBodyCls:"x-summary-",hasFeatureEvent:false,fullSummaryTpl:["{%","var me = this.summaryFeature,","    record = me.summaryRecord,","    view = values.view,","    bufferedRenderer = view.bufferedRenderer;","this.nextTpl.applyOut(values, out, parent);","if (!me.disabled && me.showSummaryRow && view.store.isLast(values.record)) {","if (bufferedRenderer) {","    bufferedRenderer.variableRowHeight = true;","}","me.outputSummaryRecord((record && record.isModel) ? record : me.createSummaryRecord(view), values, out, parent);","}","%}",{priority:300,beginRowSync:function(a){a.add("fullSummary",this.summaryFeature.summaryRowSelector)},syncContent:function(c,h,b){c=Ext.fly(c,"syncDest");h=Ext.fly(h,"sycSrc");var d=this.summaryFeature,a=d.summaryRowSelector,g=c.down(a,true),e=h.down(a,true);if(g&&e){if(b){this.summaryFeature.view.updateColumns(g,e,b)}else{Ext.fly(g).syncContent(e)}}}}],init:function(b){var d=this,a=d.view,c=d.dock;Ext.grid.feature.AbstractSummary.prototype.init.apply(this,arguments);if(c){b.headerCt.on({add:d.onStoreUpdate,afterlayout:d.onStoreUpdate,scope:d});b.on({beforerender:function(){var e=[d.summaryTableCls];if(a.columnLines){e[e.length]=a.ownerCt.colLinesCls}d.summaryBar=b.addDocked({childEls:["innerCt","item"],renderTpl:['<div id="{id}-innerCt" data-ref="innerCt" role="presentation">','<table id="{id}-item" data-ref="item" cellPadding="0" cellSpacing="0" class="'+e.join(" ")+'">','<tr class="'+d.summaryRowCls+'"></tr>',"</table>","</div>"],scrollable:{x:false,y:false},hidden:!d.showSummaryRow,itemId:"summaryBar",cls:[d.dockedSummaryCls,d.dockedSummaryCls+"-"+c],xtype:"component",dock:c,weight:10000000})[0]},afterrender:function(){b.body.addCls(d.panelBodyCls+c);a.on("scroll",d.onViewScroll,d);d.onStoreUpdate()},single:true});b.headerCt.afterComponentLayout=Ext.Function.createSequence(b.headerCt.afterComponentLayout,function(){var e=this.getTableWidth(),g=d.summaryBar.innerCt;d.summaryBar.item.setWidth(e);if(this.tooNarrow){e+=Ext.getScrollbarSize().width}g.setWidth(e)})}else{if(b.bufferedRenderer){d.wrapsItem=true;a.addRowTpl(Ext.XTemplate.getTpl(d,"fullSummaryTpl")).summaryFeature=d;a.on("refresh",d.onViewRefresh,d)}else{d.wrapsItem=false;d.view.addFooterFn(d.renderSummaryRow)}}b.ownerGrid.on({beforereconfigure:d.onBeforeReconfigure,columnmove:d.onStoreUpdate,scope:d});d.bindStore(b,b.getStore())},onBeforeReconfigure:function(b,a){this.summaryRecord=null;if(a){this.bindStore(b,a)}},bindStore:function(b,a){var c=this;Ext.destroy(c.storeListeners);c.storeListeners=a.on({scope:c,destroyable:true,update:c.onStoreUpdate,datachanged:c.onStoreUpdate})},renderSummaryRow:function(c,d,e){var b=c.view,g=b.findFeature("summary"),a,h;if(!g.disabled&&g.showSummaryRow){a=g.summaryRecord;d.push('<table cellpadding="0" cellspacing="0" class="'+g.summaryItemCls+'" style="table-layout: fixed; width: 100%;">');g.outputSummaryRecord((a&&a.isModel)?a:g.createSummaryRecord(b),c,d,e);d.push("</table>")}},toggleSummaryRow:function(d,a){var c=this,b=c.summaryBar;Ext.grid.feature.AbstractSummary.prototype.toggleSummaryRow.call(this,d,a);if(b){b.setVisible(c.showSummaryRow);c.onViewScroll()}},getSummaryBar:function(){return this.summaryBar},vetoEvent:function(a,c,d,b){return !b.getTarget(this.summaryRowSelector)},onViewScroll:function(){this.summaryBar.setScrollX(this.view.getScrollX())},onViewRefresh:function(b){var c=this,a,d;if(!c.disabled&&c.showSummaryRow&&!b.all.getCount()){a=c.createSummaryRecord(b);d=Ext.fly(b.getNodeContainer()).createChild({tag:"table",cellpadding:0,cellspacing:0,cls:c.summaryItemCls,style:"table-layout: fixed; width: 100%"},false,true);d.appendChild(Ext.fly(b.createRowElement(a,-1)).down(c.summaryRowSelector,true))}},createSummaryRecord:function(j){var h=this,d=j.headerCt.getGridColumns(),a=h.remoteRoot,g=h.summaryRecord,l=d.length,e,c,k,b,m;if(!g){m={id:j.id+"-summary-record"};g=h.summaryRecord=new Ext.data.Model(m)}g.beginEdit();if(a&&j.store.proxy.reader.rawData){g.set(h.generateSummaryData())}else{if(!a){for(e=0;e<l;e++){c=d[e];k=c.dataIndex||c.getItemId();b=h.getSummary(j.store,c.summaryType,k);g.set(k,b);h.setSummaryData(g,c.getItemId(),b)}}}g.endEdit(true);g.commit(true);g.isSummary=true;return g},onStoreUpdate:function(){var h=this,c=h.view,a=h.summaryRowSelector,g=h.dock,b,e,d,i;if(!c.rendered){return}b=h.createSummaryRecord(c);e=Ext.fly(c.createRowElement(b,-1)).down(a,true);if(!e){return}if(g){i=h.summaryBar.item.dom.firstChild;d=i.firstChild}else{d=h.view.el.down(a,true);i=d?d.parentNode:c.getNodeContainer()}if(i){i.insertBefore(e,d);if(d){i.removeChild(d)}}if(g){h.onColumnHeaderLayout()}},onColumnHeaderLayout:function(){var b=this.view,d=b.headerCt.getVisibleGridColumns(),g,a=d.length,c,h=this.summaryBar.el,e;for(c=0;c<a;c++){g=d[c];e=h.down(b.getCellSelector(g),true);if(e){Ext.fly(e).setWidth(g.width||(g.lastBox?g.lastBox.width:100))}}},destroy:function(){var a=this;a.summaryRecord=a.storeListeners=Ext.destroy(a.storeListeners);Ext.grid.feature.AbstractSummary.prototype.destroy.call(this)}},0,0,0,0,["feature.summary"],0,[Ext.grid.feature,"Summary"],0));(Ext.cmd.derive("Ext.menu.Item",Ext.Component,{alternateClassName:"Ext.menu.TextItem",isMenuItem:true,activated:false,activeCls:"x-menu-item-active",ariaRole:"menuitem",clickHideDelay:0,destroyMenu:true,disabledCls:"x-menu-item-disabled",hideOnClick:true,menuAlign:"tl-tr?",menuExpandDelay:200,menuHideDelay:200,tooltipType:"qtip",focusable:true,baseCls:"x-menu-item",arrowCls:"x-menu-item-arrow",baseIconCls:"x-menu-item-icon",textCls:"x-menu-item-text",indentCls:"x-menu-item-indent",indentNoSeparatorCls:"x-menu-item-indent-no-separator",indentRightIconCls:"x-menu-item-indent-right-icon",indentRightArrowCls:"x-menu-item-indent-right-arrow",linkCls:"x-menu-item-link",linkHrefCls:"x-menu-item-link-href",childEls:["itemEl","iconEl","textEl","arrowEl"],renderTpl:'<tpl if="plain">{text}<tpl else><a id="{id}-itemEl" data-ref="itemEl" class="{linkCls}<tpl if="hasHref"> {linkHrefCls}</tpl>{childElCls}" href="{href}" role="menuitem" <tpl if="hrefTarget"> target="{hrefTarget}"</tpl> hidefocus="true" unselectable="on"<tpl if="tabIndex != null"> tabindex="{tabIndex}"</tpl>><span id="{id}-textEl" data-ref="textEl" class="{textCls} {textCls}-{ui} {indentCls}{childElCls}" unselectable="on">{text}</span><tpl if="hasIcon"><div role="presentation" id="{id}-iconEl" data-ref="iconEl" class="{baseIconCls}-{ui} {baseIconCls}{[values.rightIcon ? "-right" : ""]} {iconCls}{childElCls} {glyphCls}" style="<tpl if="icon">background-image:url({icon});</tpl><tpl if="glyph && glyphFontFamily">font-family:{glyphFontFamily};</tpl>"><tpl if="glyph">&#{glyph};</tpl></div></tpl><tpl if="showCheckbox"><div role="presentation" id="{id}-checkEl" data-ref="checkEl" class="{baseIconCls}-{ui} {baseIconCls}{[(values.hasIcon && !values.rightIcon) ? "-right" : ""]} {groupCls} {checkboxCls}{childElCls}"></div></tpl><tpl if="hasMenu"><div role="presentation" id="{id}-arrowEl" data-ref="arrowEl" class="{arrowCls} {arrowCls}-{ui}{childElCls}"></div></tpl></a></tpl>',maskOnDisable:false,iconAlign:"left",canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==false&&!a.destroying&&!a.isDestroyed&&a.isVisible(true)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.disabled){if(!a.plain){a.addCls(a.activeCls)}a.activated=true;if(a.hasListeners.activate){a.fireEvent("activate",a)}}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.activated){if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=false;if(a.hasListeners.deactivate){a.fireEvent("deactivate",a)}}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){var a=this.getRefOwner();if(a.floating){a.bubble(function(b){if(!b.floating&&!b.isMenuItem){return false}if(b.isMenu){a=b}});a.hide()}},expandMenu:function(c,a){var b=this;if(b.activated&&b.menu){b.hideOnClick=false;b.cancelDeferHide();a=a==null?b.menuExpandDelay:a;if(a===0){b.doExpandMenu(c)}else{b.cancelDeferExpand();b.expandMenuTimer=Ext.defer(b.doExpandMenu,a,b,[c])}}},doExpandMenu:function(a){var b=this,c=b.menu;if(!c.isVisible()){b.parentMenu.activeChild=c;c.ownerCmp=b;c.parentMenu=b.parentMenu;c.constrainTo=document.body;c.autoFocus=!a||!a.pointerType;c.showBy(b,b.menuAlign)}},getRefItems:function(a){var c=this.menu,b;if(c){b=c.getRefItems(a);b.unshift(c)}return b||[]},getValue:function(){return this.value},hideMenu:function(a){var b=this;if(b.menu){b.cancelDeferExpand();b.hideMenuTimer=Ext.defer(b.doHideMenu,Ext.isNumber(a)?a:b.menuHideDelay,b)}},initComponent:function(){var b=this,a=b.cls?[b.cls]:[],c;if(b.hasOwnProperty("canActivate")){b.focusable=b.canActivate}if(b.plain){a.push("x-menu-item-plain")}if(a.length){b.cls=a.join(" ")}if(b.menu){c=b.menu;b.menu=null;b.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},onClick:function(g){var d=this,c=d.clickHideDelay,h=g.browserEvent,b,a;if(!d.href||d.disabled){g.stopEvent();if(d.disabled){return false}}if(d.disabled||d.handlingClick){return}if(d.hideOnClick){if(!c){d.deferHideParentMenus()}else{d.deferHideParentMenusTimer=Ext.defer(d.deferHideParentMenus,c,d)}}b=d.fireEvent("click",d,g);if(d.isDestroyed){return}if(b!==false&&d.handler){Ext.callback(d.handler,d.scope,[d,g],0,d)}if(Ext.isIE9m){a=h.returnValue===false?true:false}else{a=!!h.defaultPrevented}if(d.href&&g.type!=="click"&&!a){d.handlingClick=true;d.itemEl.dom.click();d.handlingClick=false}if(!d.hideOnClick){d.focus()}return b},onRemoved:function(){var a=this;if(a.activated&&a.parentMenu.activeItem===a){a.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);a.parentMenu=a.ownerCmp=null},beforeDestroy:function(){var a=this;if(a.rendered){a.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var a=this;a.cancelDeferExpand();a.cancelDeferHide();clearTimeout(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var j=this,k=j.glyph,i=Ext._glyphFontFamily,e=!!(j.icon||j.iconCls||k),l=!!j.menu,g=((j.iconAlign==="right")&&!l),c=j.isMenuCheckItem,a=[],d=j.ownerCt,h=d.plain,b;Ext.Component.prototype.beforeRender.call(this);if(e){if(l&&j.showCheckbox){e=false}}if(typeof k==="string"){b=k.split("@");k=b[0];i=b[1]}if(!h||(e&&!g)||c){if(d.showSeparator&&!h){a.push(j.indentCls)}else{a.push(j.indentNoSeparatorCls)}}if(l){a.push(j.indentRightArrowCls)}else{if(e&&(g||c)){a.push(j.indentRightIconCls)}}Ext.applyIf(j.renderData,{hasHref:!!j.href,href:j.href||"#",hrefTarget:j.hrefTarget,icon:j.icon,iconCls:j.iconCls,glyph:k,glyphCls:k?"x-menu-item-glyph":undefined,glyphFontFamily:i,hasIcon:e,hasMenu:l,indent:!h||e||c,isCheckItem:c,rightIcon:g,plain:j.plain,text:j.text,arrowCls:j.arrowCls,baseIconCls:j.baseIconCls,textCls:j.textCls,indentCls:a.join(" "),linkCls:j.linkCls,linkHrefCls:j.linkHrefCls,groupCls:j.group?j.groupCls:"",tabIndex:j.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,true)}},getMenu:function(){return this.menu||null},setMenu:function(g,e){var d=this,b=d.menu,a=d.arrowEl,c;if(b){b.ownerCmp=b.parentMenu=null;if(e===true||(e!==false&&d.destroyMenu)){Ext.destroy(b)}}if(g){c=g.isMenu;g=d.menu=Ext.menu.Manager.get(g,{ownerCmp:d,focusOnToFront:false});g.setOwnerCmp(d,c)}else{g=d.menu=null}if(g&&d.rendered&&!d.destroying&&a){a[g?"addCls":"removeCls"](d.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(b){var a=this.iconEl,c=this.icon;if(a){a.src=b||Ext.BLANK_IMAGE_URL}this.icon=b;this.fireEvent("iconchange",this,c,b)},setIconCls:function(b){var d=this,a=d.iconEl,c=d.iconCls;if(a){if(d.iconCls){a.removeCls(d.iconCls)}if(b){a.addCls(b)}}d.iconCls=b;d.fireEvent("iconchange",d,c,b)},setText:function(d){var c=this,b=c.textEl||c.el,a=c.text;c.text=d;if(c.rendered){b.setHtml(d||"");c.updateLayout()}c.fireEvent("textchange",c,a,d)},getTipAttr:function(){return this.tooltipType==="qtip"?"data-qtip":"title"},clearTip:function(){if(Ext.quickTipsActive&&Ext.isObject(this.tooltip)){Ext.tip.QuickTipManager.unregister(this.itemEl)}},setTooltip:function(c,a){var b=this;if(b.rendered){if(!a){b.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(c)){Ext.tip.QuickTipManager.register(Ext.apply({target:b.itemEl.id},c));b.tooltip=c}else{b.itemEl.dom.setAttribute(b.getTipAttr(),c)}}else{b.tooltip=c}return b},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.itemEl}}},0,["menuitem"],["component","box","menuitem"],{component:true,box:true,menuitem:true},["widget.menuitem"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.menu,"Item",Ext.menu,"TextItem"],0));(Ext.cmd.derive("Ext.menu.CheckItem",Ext.menu.Item,{checkedCls:"x-menu-item-checked",uncheckedCls:"x-menu-item-unchecked",groupCls:"x-menu-group-icon",hideOnClick:false,checkChangeDisabled:false,ariaRole:"menuitemcheckbox",childEls:["checkEl"],showCheckbox:true,isMenuCheckItem:true,checkboxCls:"x-menu-item-checkbox",initComponent:function(){var a=this;a.checked=!!a.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==false){a.hideOnClick=true}}},beforeRender:function(){var a=this;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox})},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.setChecked(!a.checked,true);if(a.checkChangeDisabled){a.disableCheckChange()}},disableCheckChange:function(){var b=this,a=b.checkEl;if(a){a.addCls(b.disabledCls)}if(Ext.isIE8&&b.rendered){b.el.repaint()}b.checkChangeDisabled=true},enableCheckChange:function(){var b=this,a=b.checkEl;if(a){a.removeCls(b.disabledCls)}b.checkChangeDisabled=false},onClick:function(b){var a=this;if(!a.disabled&&!a.checkChangeDisabled&&!(a.checked&&a.group)){a.setChecked(!a.checked);if(b.type==="keydown"&&a.menu){return false}}Ext.menu.Item.prototype.onClick.call(this,b)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setChecked:function(d,b){var c=this,e=c.checkedCls,g=c.uncheckedCls,a=c.el;if(c.checked!==d&&(b||c.fireEvent("beforecheckchange",c,d)!==false)){if(a){if(d){a.addCls(e);a.removeCls(g)}else{a.addCls(g);a.removeCls(e)}}c.checked=d;Ext.menu.Manager.onCheckChange(c,d);if(!b){Ext.callback(c.checkHandler,c.scope||c,[c,d]);c.fireEvent("checkchange",c,d)}}}},0,["menucheckitem"],["component","box","menuitem","menucheckitem"],{component:true,box:true,menuitem:true,menucheckitem:true},["widget.menucheckitem"],0,[Ext.menu,"CheckItem"],0));(Ext.cmd.derive("Ext.menu.Separator",Ext.menu.Item,{focusable:false,canActivate:false,hideOnClick:false,plain:true,separatorCls:"x-menu-item-separator",text:"&#160;",ariaRole:"separator",beforeRender:function(){this.addCls(this.separatorCls);Ext.menu.Item.prototype.beforeRender.call(this)}},0,["menuseparator"],["component","box","menuitem","menuseparator"],{component:true,box:true,menuitem:true,menuseparator:true},["widget.menuseparator"],0,[Ext.menu,"Separator"],0));(Ext.cmd.derive("Ext.menu.Menu",Ext.panel.Panel,{defaultType:"menuitem",enableKeyNav:true,allowOtherMenus:false,ariaRole:"menu",floating:true,constrain:true,hidden:true,hideMode:"visibility",ignoreParentClicks:false,isMenu:true,showSeparator:true,minWidth:undefined,defaultMinWidth:120,defaultAlign:"tl-bl?",focusOnToFront:false,bringParentToFront:false,defaultFocus:":focusable",menuClickBuffer:0,baseCls:"x-menu",_iconSeparatorCls:"x-menu-icon-separator",_itemCmpCls:"x-menu-item-cmp",layout:{type:"vbox",align:"stretchmax",overflowHandler:"Scroller"},initComponent:function(){var c=this,a=["x-menu"],d=c.bodyCls?[c.bodyCls]:[],e=c.floating!==false,b={element:"el",click:c.onClick,mouseover:c.onMouseOver,scope:c};if(Ext.supports.Touch){b.pointerdown=c.onMouseOver}c.on(b);c.on({beforeshow:c.onBeforeShow,scope:c});if(c.plain){a.push("x-menu-plain")}c.cls=a.join(" ");d.push("x-menu-body",Ext.dom.Element.unselectableCls);c.bodyCls=d.join(" ");if(e){if(c.minWidth===undefined){c.minWidth=c.defaultMinWidth}}else{c.hidden=!!c.initialConfig.hidden;c.constrain=false}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(c.getLayout(),{configureItem:c.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);a.hidden=this.hidden;return a},beforeRender:function(){Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!this.getSizeModel().width.shrinkWrap){this.layout.align="stretch"}},onBoxReady:function(){var a=this,b=a._iconSeparatorCls;a.focusableKeyNav.map.processEvent=function(c){if(c.keyCode===c.ESC){c.target=a.el.dom}return c};a.focusableKeyNav.map.addBinding([{key:27,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:false,ctrl:false,alt:false}]);Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(a.showSeparator){a.iconSepEl=a.body.insertFirst({role:"presentation",cls:b+" "+b+"-"+a.ui,html:"&#160;"})}if(Ext.supports.Touch||Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){a.el.on({scope:a,click:a.preventClick,translate:false})}a.mouseMonitor=a.el.monitorMouseLeave(100,a.onMouseLeave,a)},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var a=this,b=a.lastFocusedChild;if(b){b.blur()}},getItemFromEvent:function(d){var a=this,c=a.layout.getRenderTarget().dom,b=d.getTarget();while(b.parentNode!==c){b=b.parentNode;if(!b){return}}return Ext.getCmp(b.id)},lookupComponent:function(b){var a=this;if(typeof b==="string"){b=a.lookupItemFromString(b)}else{if(Ext.isObject(b)){b=a.lookupItemFromObject(b)}}if(!b.dock){b.minWidth=b.minWidth||a.minWidth}return b},lookupItemFromObject:function(b){var a=this.defaultType;if(!b.isComponent){if(!b.xtype&&Ext.isBoolean(b.checked)){a="menucheckitem"}b=Ext.ComponentManager.create(b,a)}if(b.isMenuItem){b.parentMenu=this}return b},lookupItemFromString:function(a){return(a==="separator"||a==="-")?new Ext.menu.Separator():new Ext.menu.Item({canActivate:false,hideOnClick:false,plain:true,text:a})},configureItem:function(c){var b=this.owner,e="x-",d=b.ui,a,g;if(c.isMenuItem){c.setUI(d)}else{if(b.items.getCount()>1&&!c.rendered&&!c.dock){g=b._itemCmpCls;a=[g+" "+g+"-"+d];if(!b.plain&&(c.indent!==false||c.iconCls==="no-icon")){a.push(e+"menu-item-indent-"+d)}if(c.rendered){c.el.addCls(a)}else{c.cls=(c.cls||"")+" "+a.join(" ")}c.$extraMenuCls=a}}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.isDestroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(h){var g=this,c=h.type,d,b,a=c==="keydown";if(g.disabled){h.stopEvent();return}d=g.getItemFromEvent(h);if(d&&d.isMenuItem){if(!d.menu||!g.ignoreParentClicks){b=d.onClick(h)}else{h.stopEvent()}if(d.menu&&b!==false&&a){d.expandMenu(h,0)}}if(!d||d.disabled){d=undefined}g.fireEvent("click",g,d,h)},onDestroy:function(){var a=this;a.parentMenu=a.ownerCmp=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(a){if(this.disabled){return}this.fireEvent("mouseleave",this,a)},onMouseOver:function(h){var g=this,i=h.getRelatedTarget(),b=!g.el.contains(i),d=g.getItemFromEvent(h),c=g.parentMenu,a=g.ownerCmp;if(b&&c){c.setActiveItem(a);a.cancelDeferHide();c.mouseMonitor.mouseenter()}if(g.disabled){return}if(d){if(!d.containsFocus){d.focus()}if(d.expandMenu){d.expandMenu(h)}}if(b){g.fireEvent("mouseenter",g,h)}g.fireEvent("mouseover",g,d,h)},setActiveItem:function(b){var a=this;if(b&&(b!==a.lastFocusedChild)){a.focusChild(b,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(j,h){var b=String.fromCharCode(h.getCharCode()),c=this.query(">[text]"),a=c.length,g=this.lastFocusedChild,k=Ext.Array.indexOf(c,g),d=k;if(a===0){return}for(;;){if(++d===a){d=0}g=c[d];if(d===k){return}if(g.text&&g.text[0].toUpperCase()===b){g.focus();return}}},onFocusableContainerTabKey:function(a){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var a=this,c=a.lastFocusedChild;if(c&&c.expandMenu){c.expandMenu(b,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)<this.menuClickBuffer){return false}},beforeShow:function(){var b=this,c,a;if(b.floating){if(!b.hasFloatMenuParent()&&!b.allowOtherMenus){Ext.menu.Manager.hideAll()}c=Ext.Element.getActiveElement();b.focusAnchor=c===document.body?null:c;b.savedMaxHeight=b.maxHeight;a=b.container.getViewSize().height;b.maxHeight=Math.min(b.maxHeight||a,a)}Ext.panel.Panel.prototype.beforeShow.apply(this,arguments)},afterShow:function(){var a=this;Ext.panel.Panel.prototype.afterShow.apply(this,arguments);Ext.menu.Manager.onShow(a);if(a.floating&&a.autoFocus){a.maxHeight=a.savedMaxHeight;a.focus()}},onHide:function(e,b,c){var d=this,a;if(d.el.contains(Ext.Element.getActiveElement())){a=d.focusAnchor||d.ownerCmp||d.up(":focusable");if(a){d.previousFocus=a}}Ext.panel.Panel.prototype.onHide.call(this,e,b,c);d.lastHide=Ext.Date.now();Ext.menu.Manager.onHide(d)},preventClick:function(b){var a=this.getItemFromEvent(b);if(a&&a.isMenuItem&&!a.href){b.preventDefault()}},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.panel.Panel.prototype.applyDefaults.apply(this,arguments)}return a},hasFloatMenuParent:function(){return this.parentMenu||this.up("menu[floating=true]")},setOwnerCmp:function(b,a){var c=this;c.parentMenu=b.isMenuItem?b:null;c.ownerCmp=b;c.registerWithOwnerCt();delete c.hierarchicallyHidden;if(c.inheritedState&&a){c.invalidateInheritedState()}if(c.reference){c.fixReference()}if(a){Ext.ComponentManager.markReferencesDirty()}}}},0,["menu"],["component","box","container","panel","menu"],{component:true,box:true,container:true,panel:true,menu:true},["widget.menu"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.menu,"Menu"],0));(Ext.cmd.derive("Ext.grid.filters.filter.Base",Ext.Base,{factoryConfig:{type:"grid.filter"},$configPrefixed:false,$configStrict:false,config:{itemDefaults:null,menuDefaults:{xtype:"menu"},updateBuffer:500},active:false,type:"string",dataIndex:null,menu:null,isGridFilter:true,defaultRoot:"data",filterIdPrefix:"x-gridfilter",constructor:function(a){var c=this,b;c.initConfig(a);b=c.column;b.on("destroy",c.destroy,c);c.dataIndex=c.dataIndex||b.dataIndex;c.task=new Ext.util.DelayedTask(c.setValue,c)},destroy:function(){this.grid=this.menu=Ext.destroy(this.menu)},addStoreFilter:function(b){var d=this.getGridStore().getFilters(),a=d.indexOf(b),c=a!==-1?d.getAt(a):null,e;if(!c){d.add(b)}else{if(c.getValue()===b.getValue()){e=true}else{if(Ext.isArray(b.getValue())&&Ext.Array.equals(c.getValue(),b.getValue())){e=true}}if(!(e&&c.getProperty()===b.getProperty())){d.add(b)}}},createFilter:function(a,b){var c=new Ext.util.Filter(this.getFilterConfig(a,b));c.isGridFilter=true;return c},getFilterConfig:function(a,b){a.id=this.getBaseIdPrefix();if(!a.property){a.property=this.dataIndex}if(!a.root){a.root=this.defaultRoot}if(b){a.id+="-"+b}return a},createMenu:function(){this.menu=Ext.widget(this.getMenuConfig())},getActiveState:function(a,b){var c=a.active;return(c!==undefined)?c:b!==undefined},getBaseIdPrefix:function(){return this.filterIdPrefix+"-"+this.dataIndex},getMenuConfig:function(){return Ext.apply({},this.getMenuDefaults())},getGridStore:function(){return this.grid.getStore()},getStoreFilter:function(a){var b=this.getBaseIdPrefix();if(a){b+="-"+a}return this.getGridStore().getFilters().get(b)},onValueChange:function(g,d){var b=this,c=d.getKey(),a=b.updateBuffer;if(c===d.TAB){return}if(g.isValid()){if(c===d.RETURN){b.menu.hide();return}if(a){b.task.delay(a,null,null,[b.getValue(g)])}else{b.setValue(b.getValue(g))}}},preprocess:Ext.emptyFn,removeStoreFilter:function(a){this.getGridStore().getFilters().remove(a)},getValue:Ext.emptyFn,setActive:function(c){var b=this,a=b.owner.activeFilterMenuItem,d;if(b.active!==c){b.active=c;d=b.getGridStore().getFilters();d.beginUpdate();if(c){b.activate()}else{b.deactivate()}d.endUpdate();if(a&&a.activeFilter===b){a.setChecked(c)}b.setColumnActive(c)}},setColumnActive:function(a){this.column[a?"addCls":"removeCls"](this.owner.filterCls)},showMenu:function(a){var b=this;if(!b.menu){b.createMenu()}a.activeFilter=b;a.setMenu(b.menu,false);a.setChecked(b.active);a.setDisabled(b.disabled===true);b.activate(true)},updateStoreFilter:function(){this.getGridStore().getFilters().notify("endupdate")}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.grid.filters.filter,"Base"],0));(Ext.cmd.derive("Ext.grid.filters.filter.SingleFilter",Ext.grid.filters.filter.Base,{constructor:function(a){var c=this,b,d;Ext.grid.filters.filter.Base.prototype.constructor.call(this,a);d=c.value;b=c.getStoreFilter();if(b){c.active=true}else{if(c.grid.stateful&&c.getGridStore().saveStatefulFilters){d=undefined}c.active=c.getActiveState(a,d);b=c.createFilter({operator:c.operator,value:d});if(c.active){c.addStoreFilter(b)}}if(c.active){c.setColumnActive(true)}c.filter=b},activate:function(a){if(a){this.activateMenu()}else{this.addStoreFilter(this.filter)}},deactivate:function(){this.removeStoreFilter(this.filter)},getValue:function(a){return a.getValue()},onFilterRemove:function(){if(!this.menu||this.active){this.active=false}}},1,0,0,0,0,0,[Ext.grid.filters.filter,"SingleFilter"],0));(Ext.cmd.derive("Ext.grid.filters.filter.Boolean",Ext.grid.filters.filter.SingleFilter,{type:"boolean",operator:"==",defaultValue:false,yesText:"Yes",noText:"No",updateBuffer:0,createMenu:function(a){var c=this,d=Ext.id(),b={scope:c,click:c.onClick},e=c.getItemDefaults();Ext.grid.filters.filter.SingleFilter.prototype.createMenu.apply(this,arguments);c.menu.add([Ext.apply({text:c.yesText,filterKey:1,group:d,checked:!!c.defaultValue,hideOnClick:false,listeners:b},e),Ext.apply({text:c.noText,filterKey:0,group:d,checked:!c.defaultValue,hideOnClick:false,listeners:b},e)])},onClick:function(a){this.setValue(!!a.filterKey)},setValue:function(b){var a=this;a.filter.setValue(b);if(b!==undefined&&a.active){a.value=b;a.updateStoreFilter()}else{a.setActive(true)}},activateMenu:Ext.emptyFn},0,0,0,0,["grid.filter.boolean"],0,[Ext.grid.filters.filter,"Boolean"],0));(Ext.cmd.derive("Ext.grid.filters.filter.TriFilter",Ext.grid.filters.filter.Base,{menuItems:["lt","gt","-","eq"],constructor:function(d){var i=this,g=false,a={},e,h,c,j,b;Ext.grid.filters.filter.Base.prototype.constructor.call(this,d);j=i.value;h=i.getStoreFilter("lt");e=i.getStoreFilter("gt");c=i.getStoreFilter("eq");if(h||e||c){g=i.active=true;if(h){i.onStateRestore(h)}if(e){i.onStateRestore(e)}if(c){i.onStateRestore(c)}}else{if(i.grid.stateful&&i.getGridStore().saveStatefulFilters){j=undefined}i.active=i.getActiveState(d,j)}a.lt=h||i.createFilter({operator:"lt",value:(!g&&j&&Ext.isDefined(j.lt))?j.lt:null},"lt");a.gt=e||i.createFilter({operator:"gt",value:(!g&&j&&Ext.isDefined(j.gt))?j.gt:null},"gt");a.eq=c||i.createFilter({operator:"eq",value:(!g&&j&&Ext.isDefined(j.eq))?j.eq:null},"eq");i.filter=a;if(i.active){i.setColumnActive(true);if(!g){for(b in j){i.addStoreFilter(i.filter[b])}}}},activate:function(e){var g=this,b=g.filter,d=g.fields,a,i,c,j,h;if(g.preventFilterRemoval){return}for(c in b){a=b[c];i=d[c];j=a.getValue();if(j||j===0){if(i.isComponent){i.setValue(j);if(h===undefined){h=g.owner.activeFilterMenuItem===i.up("menuitem")}if(!h){i.up("menuitem").setChecked(true,true)}}else{i.value=j}if(!e){g.addStoreFilter(a)}}}},deactivate:function(){var c=this,b=c.filter,e,a,d;if(!c.countActiveFilters()||c.preventFilterRemoval){return}c.preventFilterRemoval=true;for(e in b){a=b[e];d=a.getValue();if(d||d===0){c.removeStoreFilter(a)}}c.preventFilterRemoval=false},countActiveFilters:function(){var c=this.filter,e=this.getGridStore().getFilters(),d=this.getBaseIdPrefix(),a=0,b;if(e.length){for(b in c){if(e.get(d+"-"+b)){a++}}}return a},onFilterRemove:function(a){var b=this,c;if(!b.menu&&b.countActiveFilters()){b.active=false}else{if(b.menu){c={};c[a]=null;b.setValue(c)}}},onStateRestore:Ext.emptyFn,setValue:function(k){var j=this,b=j.filter,n=[],h=[],d=false,g=j.getGridStore().getFilters(),a,m,e,l,c;if(j.preventFilterRemoval){return}j.preventFilterRemoval=true;if("eq" in k){m=b.lt.getValue();if(m||m===0){h.push(b.lt)}m=b.gt.getValue();if(m||m===0){h.push(b.gt)}m=k.eq;if(m||m===0){n.push(b.eq);b.eq.setValue(m)}else{h.push(b.eq)}}else{m=b.eq.getValue();if(m||m===0){h.push(b.eq)}if("lt" in k){m=k.lt;if(m||m===0){n.push(b.lt);b.lt.setValue(m)}else{h.push(b.lt)}}if("gt" in k){m=k.gt;if(m||m===0){n.push(b.gt);b.gt.setValue(m)}else{h.push(b.gt)}}}l=h.length;c=n.length;d=!!(j.countActiveFilters()+c-l);if(l||c||d!==j.active){g.beginUpdate();if(l){for(e=0;e<l;e++){a=h[e];j.fields[a.getOperator()].setValue(null);a.setValue(null);j.removeStoreFilter(a)}}if(c){for(e=0;e<c;e++){j.addStoreFilter(n[e])}}j.setActive(d);g.endUpdate()}j.preventFilterRemoval=false}},1,0,0,0,0,0,[Ext.grid.filters.filter,"TriFilter"],0));(Ext.cmd.derive("Ext.grid.filters.filter.Date",Ext.grid.filters.filter.TriFilter,{type:"date",config:{fields:{lt:{text:"Before"},gt:{text:"After"},eq:{text:"On"}},pickerDefaults:{xtype:"datepicker",border:0},updateBuffer:0,dateFormat:undefined},itemDefaults:{xtype:"menucheckitem",selectOnFocus:true,width:125,menu:{layout:"auto",plain:true}},applyDateFormat:function(a){return a||Ext.Date.defaultFormat},createMenu:function(b){var k=this,l={scope:k,checkchange:k.onCheckChange},a=k.menuItems,g,c,d,e,j,n,o,h,m;Ext.grid.filters.filter.TriFilter.prototype.createMenu.apply(this,arguments);c=k.getItemDefaults();g=k.getFields();d=Ext.apply({minDate:k.minDate,maxDate:k.maxDate,format:k.dateFormat,listeners:{scope:k,select:k.onMenuSelect}},k.getPickerDefaults());k.fields={};for(e=0,j=a.length;e<j;e++){n=a[e];if(n!=="-"){h={menu:{items:[Ext.apply({itemId:n},d)]}};if(c){Ext.merge(h,c)}if(g){Ext.merge(h,g[n])}o=k.menu.add(h);m=k.fields[n]=o.down("datepicker");m.filter=k.filter[n];m.filterKey=n;o.on(l)}else{k.menu.add(n)}}},getPicker:function(a){return this.fields[a]},onCheckChange:function(d,c){var b=d.down("datepicker").filter,a;if(!c&&b.getValue()){a={};a[b.getOperator()]=null;this.setValue(a)}},onFilterRemove:function(b){var a={};a[b]=null;this.setValue(a);this.fields[b].up("menuitem").setChecked(false,true)},onStateRestore:function(a){a.setSerializer(this.getSerializer());a.setConvert(this.convertDateOnly)},getFilterConfig:function(a,b){a=Ext.grid.filters.filter.TriFilter.prototype.getFilterConfig.call(this,a,b);a.serializer=this.getSerializer();a.convert=this.convertDateOnly;return a},convertDateOnly:function(b){var a=null;if(b){a=Ext.Date.clearTime(b,true).getTime()}return a},getSerializer:function(){var a=this;return function(c){var b=c.value;if(b){c.value=Ext.Date.format(b,a.getDateFormat())}}},onMenuSelect:function(g,c){var h=this,e=h.fields,b=h.filter,i=e[g.itemId],a=e.gt,d=e.lt,k=e.eq,j={};i.up("menuitem").setChecked(true,true);if(i===k){d.up("menuitem").setChecked(false,true);a.up("menuitem").setChecked(false,true)}else{k.up("menuitem").setChecked(false,true);if(i===a&&(+d.value<+c)){d.up("menuitem").setChecked(false,true);if(b.lt.getValue()!=null){j.lt=null}}else{if(i===d&&(+a.value>+c)){a.up("menuitem").setChecked(false,true);if(b.gt.getValue()!=null){j.gt=null}}}}j[i.filterKey]=c;h.setValue(j);g.up("menu").hide()}},0,0,0,0,["grid.filter.date"],0,[Ext.grid.filters.filter,"Date"],0));(Ext.cmd.derive("Ext.grid.filters.filter.List",Ext.grid.filters.filter.SingleFilter,{type:"list",operator:"in",itemDefaults:{checked:false,hideOnClick:false},idField:"id",labelField:"text",labelIndex:null,loadingText:"Loading...",loadOnShow:true,single:false,plain:true,constructor:function(a){var c=this,b;Ext.grid.filters.filter.SingleFilter.prototype.constructor.call(this,a);c.labelIndex=c.labelIndex||c.column.dataIndex;if(c.store){c.store=Ext.StoreManager.lookup(c.store)}if(!c.store&&!c.options){b=c.getGridStore();if(c.value!=null&&c.active&&!b.isEmptyStore){b.on(c.getGridStoreListeners())}c.grid.on("reconfigure",c.onReconfigure,c);c.inferOptionsFromGridStore=true}},destroy:function(){var c=this,a=c.store,b=c.autoStore,d=c.gridStoreListeners;if(a&&a.isStore){if(b||a.autoDestroy){a.destroy()}else{a.un("load",c.bindMenuStore,c)}c.store=null}if(c.inferOptionsFromGridStore){c.grid.un("reconfigure",c.onReconfigure,c)}if(d){c.getGridStore().un(d);c.gridStoreListeners=null}Ext.grid.filters.filter.SingleFilter.prototype.destroy.call(this)},activateMenu:function(){var e=this,g=e.filter.getValue(),c,d,a,b;if(!g||!g.length){return}c=e.menu.items;for(d=0,a=c.length;d<a;d++){b=c.getAt(d);if(Ext.Array.indexOf(g,b.value)>-1){b.setChecked(true,true)}}},bindMenuStore:function(a){var b=this;if(b.grid.isDestroyed||b.preventFilterRemoval){return}b.createListStore(a);b.createMenuItems(b.store);b.loaded=true},createListStore:function(n){var h=this,m=h.store,j=n.isStore,b=h.idField,d=h.labelField,k=false,a,c,e,g,l;if(j){if(n!==h.getGridStore()){k=true;m=h.store=n}else{h.autoStore=true;a=h.getOptionsFromStore(n)}}else{a=[];for(e=0,g=n.length;e<g;e++){l=n[e];switch(Ext.typeOf(l)){case"array":a.push(l);break;case"object":a.push(l);break;default:if(l!=null){c={};c[b]=l;c[d]=l;a.push(c)}}}}if(!k){if(m){m.destroy()}m=h.store=new Ext.data.Store({fields:[b,d],data:a});if(h.inferOptionsFromGridStore&!h.gridStoreListeners){h.getGridStore().on(h.getGridStoreListeners())}h.loaded=true}h.setStoreFilter(m)},createMenu:function(c){var e=this,d=e.getGridStore(),a=e.store,b=e.options,g;if(a){e.store=a=Ext.StoreManager.lookup(a)}Ext.grid.filters.filter.SingleFilter.prototype.createMenu.call(this,c);g=e.menu;if(a){if(!a.getCount()){g.add({text:e.loadingText,iconCls:"x-mask-msg-text"});g.on({show:e.show,scope:e});a.on("load",e.bindMenuStore,e,{single:true})}else{e.createMenuItems(a)}}else{if(b){e.bindMenuStore(b)}else{if(d.getCount()||d.isFiltered()){e.bindMenuStore(d)}else{d.on("load",e.bindMenuStore,e,{single:true})}}}},createMenuItems:function(q){var o=this,c=o.menu,n=q.getCount(),h=Ext.Array.contains,p,d,l,m,b,a,j,g,k,r,e;if(n&&c){d=o.getItemDefaults();c.suspendLayouts();c.removeAll(true);m=o.single?Ext.id():null;a=o.idField;g=o.labelField;e=[];for(k=0;k<n;k++){l=q.getAt(k);b=l.get(a);j=l.get(g);if(j==null||h(e,b)){continue}e.push(j);r=c.add(Ext.apply({text:j,group:m,value:b,checkHandler:o.onCheckChange,scope:o},d))}c.resumeLayouts(true)}},getFilterConfig:function(a,b){a.value=a.value||[];return Ext.grid.filters.filter.SingleFilter.prototype.getFilterConfig.call(this,a,b)},getGridStoreListeners:function(){var a=this;return a.gridStoreListeners={scope:a,add:a.onDataChanged,refresh:a.onDataChanged,remove:a.onDataChanged,update:a.onDataChanged}},getOptionsFromStore:function(j){var h=this,e=j.getData(),b={},g=[],i=h.dataIndex,a=h.labelIndex,k,c,d;if(j.isFiltered()&&!j.remoteFilter){e=e.getSource()}j.each(function(l){k=l.data;c=k[i];d=k[a];if(d===undefined){d=c}if(!b[c]){b[c]=1;g.push([c,d])}},null,{filtered:true,collapsed:true});return g},onCheckChange:function(){var b=this,a=b.updateBuffer;if(a){b.task.delay(a,null,null)}else{b.setValue()}},onDataChanged:function(a){if(this.preventDefault){this.preventDefault=false}else{this.bindMenuStore(a)}},onReconfigure:function(b,a){if(a){this.bindMenuStore(a)}},setActive:function(a){if(this.active!==a){this.preventDefault=true;Ext.grid.filters.filter.SingleFilter.prototype.setActive.call(this,a)}},setStoreFilter:function(a){var c=this,d=c.value,b=c.filter;if(d){if(!Ext.isArray(d)){d=[d]}b.setValue(d)}if(c.active){c.preventFilterRemoval=true;c.addStoreFilter(b);c.preventFilterRemoval=false}},setValue:function(){var e=this,c=e.menu.items,g=[],d,a,b;e.preventDefault=true;for(d=0,a=c.length;d<a;d++){b=c.getAt(d);if(b.checked){g.push(b.value)}}e.filter.setValue(g);a=g.length;if(a&&e.active){e.updateStoreFilter()}else{e.setActive(!!a)}},show:function(){var a=this.store;if(this.loadOnShow&&!this.loaded&&!a.hasPendingLoad()){a.load()}}},1,0,0,0,["grid.filter.list"],0,[Ext.grid.filters.filter,"List"],0));(Ext.cmd.derive("Ext.grid.filters.filter.Number",Ext.grid.filters.filter.TriFilter,{type:"number",config:{fields:{gt:{iconCls:"x-grid-filters-gt",margin:"0 0 3px 0"},lt:{iconCls:"x-grid-filters-lt",margin:"0 0 3px 0"},eq:{iconCls:"x-grid-filters-eq",margin:0}}},emptyText:"Enter Number...",itemDefaults:{xtype:"numberfield",enableKeyEvents:true,hideEmptyLabel:false,labelSeparator:"",labelWidth:29,selectOnFocus:false},menuDefaults:{bodyPadding:3,showSeparator:false},createMenu:function(){var h=this,j={scope:h,keyup:h.onValueChange,spin:{fn:h.onInputSpin,buffer:200},el:{click:h.stopFn}},b=h.getItemDefaults(),a=h.menuItems,d=h.getFields(),k,c,g,l,m,e;Ext.grid.filters.filter.TriFilter.prototype.createMenu.call(this);h.fields={};for(c=0,g=a.length;c<g;c++){l=a[c];if(l!=="-"){k=d[l];e={labelClsExtra:"x-grid-filters-icon "+k.iconCls};if(b){Ext.merge(e,b)}Ext.merge(e,k);e.emptyText=e.emptyText||h.emptyText;delete e.iconCls;h.fields[l]=m=h.menu.add(e);m.filter=h.filter[l];m.filterKey=l;m.on(j)}else{h.menu.add(l)}}},getValue:function(b){var a={};a[b.filterKey]=b.getValue();return a},onInputSpin:function(c,b){var a={};a[c.filterKey]=c.getValue();this.setValue(a)},stopFn:function(a){a.stopPropagation()}},0,0,0,0,["grid.filter.number","grid.filter.numeric"],0,[Ext.grid.filters.filter,"Number"],0));(Ext.cmd.derive("Ext.grid.filters.filter.String",Ext.grid.filters.filter.SingleFilter,{type:"string",operator:"like",emptyText:"Enter Filter Text...",itemDefaults:{xtype:"textfield",enableKeyEvents:true,hideEmptyLabel:false,iconCls:"x-grid-filters-find",labelSeparator:"",labelWidth:29,margin:0,selectOnFocus:true},menuDefaults:{bodyPadding:3,showSeparator:false},createMenu:function(){var b=this,a;Ext.grid.filters.filter.SingleFilter.prototype.createMenu.call(this);a=Ext.apply({},b.getItemDefaults());if(a.iconCls&&!("labelClsExtra" in a)){a.labelClsExtra="x-grid-filters-icon "+a.iconCls}delete a.iconCls;a.emptyText=a.emptyText||b.emptyText;b.inputItem=b.menu.add(a);b.inputItem.on({scope:b,keyup:b.onValueChange,el:{click:function(c){c.stopPropagation()}}})},setValue:function(b){var a=this;if(a.inputItem){a.inputItem.setValue(b)}a.filter.setValue(b);if(b&&a.active){a.value=b;a.updateStoreFilter()}else{a.setActive(!!b)}},activateMenu:function(){this.inputItem.setValue(this.filter.getValue())}},0,0,0,0,["grid.filter.string"],0,[Ext.grid.filters.filter,"String"],0));(Ext.cmd.derive("Ext.grid.filters.Filters",Ext.plugin.Abstract,{pluginId:"gridfilters",defaultFilterTypes:{"boolean":"boolean","int":"number",date:"date",number:"number"},filterCls:"x-grid-filters-filtered-column",menuFilterText:"Filters",showMenu:true,stateId:undefined,init:function(b){var c=this,a,d;c.grid=b;b.filters=c;if(c.grid.normalGrid){c.isLocked=true}b.clearFilters=c.clearFilters.bind(c);a=b.store;d=b.headerCt;d.on({scope:c,add:c.onAdd,menucreate:c.onMenuCreate});b.on({scope:c,destroy:c.onGridDestroy,reconfigure:c.onReconfigure});c.bindStore(a);if(b.stateful){a.statefulFilters=true}c.initColumns()},initColumns:function(){var a=this.grid,k=a.getStore(),c=k.autoLoad,e=a.columnManager.getColumns(),j=e.length,h,d,b,g,l;for(h=0;h<j;h++){d=e[h];b=d.filter;if(b&&!b.isGridFilter){if(!g){g=k.getFilters();g.beginUpdate()}this.createColumnFilter(d)}}if(g){if(Ext.isDefined(c)){l=k.suppressNextFilter;k.suppressNextFilter=!c}g.endUpdate();k.suppressNextFilter=l}},createColumnFilter:function(e){var g=this,a=e.filter,d={column:e,grid:g.grid,owner:g},h,b,c;if(Ext.isString(a)){d.type=a}else{Ext.apply(d,a)}if(!d.type){b=g.store.getModel();h=b&&b.getField(e.dataIndex);c=h&&h.type;d.type=(c&&g.defaultFilterTypes[c])||e.defaultFilterType||"string"}e.filter=Ext.Factory.gridFilter(d);if(!e.menuDisabled){e.requiresMenu=true}},onAdd:function(d,c,a){var b=c.filter;if(b&&!b.isGridFilter){this.createColumnFilter(c)}},onMenuCreate:function(b,a){a.on({beforeshow:this.onMenuBeforeShow,scope:this})},onMenuBeforeShow:function(g){var e=this,c,b,d,a;if(e.showMenu){if(!e.filterMenuItem){e.filterMenuItem={}}d=g.up("tablepanel");a=d.id;c=e.filterMenuItem[a];if(!c||c.isDestroyed){c=e.createMenuItem(g,a)}e.activeFilterMenuItem=c;b=e.getMenuFilter(d.headerCt);if(b){b.showMenu(c)}c.setVisible(!!b);if(e.sep){e.sep.setVisible(!!b)}}},createMenuItem:function(d,a){var c=this,b;if(d.items.length){c.sep=d.add("-")}b=d.add({checked:false,itemId:"filters",text:c.menuFilterText,listeners:{scope:c,checkchange:c.onCheckChange}});return(c.filterMenuItem[a]=b)},onGridDestroy:function(){var c=this,a=c.filterMenuItem,b;c.bindStore(null);c.sep=Ext.destroy(c.sep);for(b in a){a[b].destroy()}c.grid=null},onUnbindStore:function(a){a.getFilters().un("remove",this.onFilterRemove,this)},onBindStore:function(a,b,c){this.local=!a.getRemoteFilter();a.getFilters().on("remove",this.onFilterRemove,this)},onFilterRemove:function(j,g){var b=g.items.length,a=this.grid.columnManager,c,e,h,d;for(c=0;c<b;c++){e=g.items[c];h=a.getHeaderByDataIndex(e.getProperty());if(h){d=h.filter;if(!d||!d.menu||e.getId().indexOf(d.getBaseIdPrefix())===-1){continue}if(!d.preventFilterRemoval){d.onFilterRemove(e.getOperator())}}}},getMenuFilter:function(a){return a.getMenu().activeHeader.filter},onCheckChange:function(c,d){var b=this.isLocked?c.up("tablepanel"):this.grid,a=this.getMenuFilter(b.headerCt);a.setActive(d)},getHeaders:function(){return this.grid.view.headerCt.columnManager.getColumns()},isStateful:function(){return this.grid.stateful},addFilter:function(c){var j=this,a=j.grid,l=j.store,d=false,m=true,k,e,g,h,b,n;if(!Ext.isArray(c)){c=[c]}for(g=0,h=c.length;g<h;g++){b=c[g];k=b.dataIndex;e=a.columnManager.getHeaderByDataIndex(k);if(e){d=true;if(b.value){m=false}n=e.filter;if(n&&n.isGridFilter){n.deactivate();n.destroy();if(j.activeFilterMenuItem){j.activeFilterMenuItem.menu=null}}e.filter=b}}if(d){l.suppressNextFilter=m;j.initColumns();l.suppressNextFilter=false}},addFilters:function(a){if(a){this.addFilter(a)}},clearFilters:function(){var e=this.grid,d=e.columnManager.getColumns(),b=e.store,h,g,c,a,j;for(c=0,a=d.length;c<a;c++){h=d[c];g=h.filter;if(g&&g.isGridFilter){if(!j){j=b.getFilters();j.beginUpdate()}g.setActive(false)}}if(j){j.endUpdate()}},onReconfigure:function(e,a,d,i){var g=this,c=g.filterMenuItem,h=i!==a,b;if(d){for(b in c){c[b].setMenu(null)}}if(a){if(i&&!i.isDestroyed&&h){g.resetFilters(i)}if(h){g.bindStore(a);g.applyFilters(a)}}g.initColumns()},privates:{applyFilters:function(b){var d=this.grid.columnManager.getColumns(),a=d.length,c,g,e,h;for(c=0;c<a;c++){g=d[c];e=g.filter;if(e&&e.isGridFilter){if(!h){h=b.getFilters();h.beginUpdate()}if(e.active){e.activate()}}}if(h){h.endUpdate()}},resetFilters:function(a){var e=a.getFilters(),b,d,c;if(e){for(b=e.getCount()-1;b>=0;--b){c=e.getAt(b);if(c.isGridFilter){if(!d){e.beginUpdate()}e.remove(c);d=true}}if(d){e.endUpdate()}}}}},0,0,0,0,["plugin.gridfilters"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.grid.filters,"Filters"],0));(Ext.cmd.derive("Ext.grid.locking.HeaderContainer",Ext.grid.header.Container,{headerCtRelayEvents:["blur","focus","move","resize","destroy","beforedestroy","boxready","afterrender","render","beforerender","removed","hide","beforehide","show","beforeshow","enable","disable","added","deactivate","beforedeactivate","activate","beforeactivate","remove","add","beforeremove","beforeadd","afterlayout","menucreate","sortchange","columnschanged","columnshow","columnhide","columnmove","headertriggerclick","headercontextmenu","headerclick","columnresize","statesave","beforestatesave","staterestore","beforestaterestore"],constructor:function(b){var a=this,d=b.lockedGrid,c=b.normalGrid;a.lockable=b;Ext.grid.header.Container.prototype.constructor.call(this);d.visibleColumnManager.rootColumns=c.visibleColumnManager.rootColumns=b.visibleColumnManager=a.visibleColumnManager=new Ext.grid.ColumnManager(true,d.headerCt,c.headerCt);d.columnManager.rootColumns=c.columnManager.rootColumns=b.columnManager=a.columnManager=new Ext.grid.ColumnManager(false,d.headerCt,c.headerCt);a.relayEvents(d.headerCt,a.headerCtRelayEvents);a.relayEvents(c.headerCt,a.headerCtRelayEvents)},getRefItems:function(){return this.lockable.lockedGrid.headerCt.getRefItems().concat(this.lockable.normalGrid.headerCt.getRefItems())},getGridColumns:function(){return this.lockable.lockedGrid.headerCt.getGridColumns().concat(this.lockable.normalGrid.headerCt.getGridColumns())},getColumnsState:function(){var b=this,a=b.lockable.lockedGrid.headerCt.getColumnsState(),c=b.lockable.normalGrid.headerCt.getColumnsState();return a.concat(c)},applyColumnsState:function(h){var p=this,e=p.lockable.lockedGrid,g=e.headerCt,n=p.lockable.normalGrid.headerCt,q=Ext.Array.toValueMap(g.items.items,"stateId"),j=Ext.Array.toValueMap(n.items.items,"stateId"),m=[],o=[],l=1,b=h.length,k,a,d,c;for(k=0;k<b;k++){c=h[k];d=q[c.id];a=d||j[c.id];if(a){if(a.applyColumnState){a.applyColumnState(c)}if(a.locked===undefined){a.locked=!!d}if(a.locked){m.push(a);if(!a.hidden&&typeof a.width==="number"){l+=a.width}}else{o.push(a)}}}if(m.length+o.length===g.items.getCount()+n.items.getCount()){g.removeAll(false);n.removeAll(false);g.add(m);n.add(o);e.setWidth(l)}},disable:function(){var a=this.lockable;a.lockedGrid.headerCt.disable();a.normalGrid.headerCt.disable()},enable:function(){var a=this.lockable;a.lockedGrid.headerCt.enable();a.normalGrid.headerCt.enable()}},1,0,["component","box","container","headercontainer"],{component:true,box:true,container:true,headercontainer:true},0,0,[Ext.grid.locking,"HeaderContainer"],0));(Ext.cmd.derive("Ext.grid.locking.View",Ext.Base,{alternateClassName:"Ext.grid.LockingView",isLockingView:true,loadMask:true,eventRelayRe:/^(beforeitem|beforecontainer|item|container|cell|refresh)/,constructor:function(a){var c=Ext,e=this,d,b;e.ownerGrid=a.ownerGrid;e.ownerGrid.view=e;e.navigationModel=a.locked.xtype==="treepanel"?new c.tree.NavigationModel(e):new c.grid.NavigationModel(e);a.locked.viewConfig.bindStore=c.emptyFn;a.normal.viewConfig.bindStore=e.subViewBindStore;a.normal.viewConfig.isNormalView=a.locked.viewConfig.isLockedView=true;a.locked.viewConfig.beforeLayout=a.normal.viewConfig.beforeLayout=e.beforeLayout;a.locked.viewConfig.navigationModel=a.normal.viewConfig.navigationModel=e.navigationModel;e.lockedGrid=e.ownerGrid.lockedGrid=c.ComponentManager.create(a.locked);e.lockedView=d=e.lockedGrid.getView();if(e.ownerGrid.shrinkWrapLocked){e.lockedGrid.width+=(c.num(d.getSelectionModel().headerWidth,0)+(e.lockedGrid.getVisibleColumnManager().getColumns().length?1:0))}e.selModel=a.normal.viewConfig.selModel=d.getSelectionModel();if(e.lockedGrid.isTree){e.lockedView.animate=false;a.normal.store=d.store;a.normal.viewConfig.stripeRows=e.lockedView.stripeRows;a.normal.rowLines=e.lockedGrid.rowLines}e.normalGrid=e.ownerGrid.normalGrid=c.ComponentManager.create(a.normal);d.lockingPartner=b=e.normalView=e.normalGrid.getView();b.lockingPartner=d;e.loadMask=(a.loadMask!==undefined)?a.loadMask:e.loadMask;e.mixins.observable.constructor.call(e);e.relayEvents(d,c.view.Table.events);e.relayEvents(b,c.view.Table.events.concat(c.view.Table.normalSideEvents));b.on({scope:e,itemmouseleave:e.onItemMouseLeave,itemmouseenter:e.onItemMouseEnter});d.on({scope:e,itemmouseleave:e.onItemMouseLeave,itemmouseenter:e.onItemMouseEnter});e.ownerGrid.on({render:e.onPanelRender,scope:e});e.loadingText=b.loadingText;e.loadingCls=b.loadingCls;e.loadingUseMsg=b.loadingUseMsg;e.itemSelector=e.getItemSelector();e.all=b.all;e.bindStore(b.dataSource,true,"dataSource")},subViewBindStore:function(b,c){var a=this.getSelectionModel();a.bindStore(b,c);a.bindComponent(this)},beforeLayout:function(){var c=this.ownerCt.ownerLockable.view,b=c.lockedGrid.view,a=c.normalGrid.view;if(!c.relayingOperation){if(c.lockedGrid.isVisible()){if(b.refreshNeeded){b.doFirstRefresh(b.dataSource)}}if(a.refreshNeeded){a.doFirstRefresh(a.dataSource)}}},onPanelRender:function(){var c=this,b=c.loadMask,a={target:c.ownerGrid,msg:c.loadingText,msgCls:c.loadingCls,useMsg:c.loadingUseMsg,store:c.ownerGrid.store};c.el=c.ownerGrid.getTargetEl();c.rendered=true;c.initFocusableEvents();c.fireEvent("render",c);if(b){if(Ext.isObject(b)){a=Ext.apply(a,b)}c.loadMask=new Ext.LoadMask(a)}},getRefOwner:function(){return this.ownerGrid},getVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},getGridColumns:function(){return this.getVisibleColumnManager().getColumns()},getEl:function(a){return this.getViewForColumn(a).getEl()},getCellSelector:function(){return this.normalView.getCellSelector()},getItemSelector:function(){return this.normalView.getItemSelector()},getViewForColumn:function(b){var a=this.lockedView,c;a.headerCt.cascade(function(d){if(d===b){c=true;return false}});return c?a:this.normalView},onItemMouseEnter:function(c,b){var g=this,d=g.lockedView,a=g.normalView,e;if(c.trackOver){if(c!==d){a=d}e=a.getNode(b);a.highlightItem(e)}},onItemMouseLeave:function(c,b){var e=this,d=e.lockedView,a=e.normalView;if(c.trackOver){if(c!==d){a=d}a.clearHighlight()}},relayFn:function(c,b){b=b||[];var d=this,a=d.lockedView;d.relayingOperation=true;a[c].apply(a,b);a=d.normalView;a[c].apply(a,b);d.relayingOperation=false},getSelectionModel:function(){return this.normalView.getSelectionModel()},getNavigationModel:function(){return this.navigationModel},getStore:function(){return this.ownerGrid.store},onBindStore:function(a,b,g){var e=this,d=e.lockedView,c=e.normalView;if(c.componentLayoutCounter&&!(d.blockRefresh&&c.blockRefresh)){Ext.suspendLayouts();d.doFirstRefresh(a);c.doFirstRefresh(a);Ext.resumeLayouts(true)}},getStoreListeners:function(){var a=this;return{priority:1000,refresh:a.onDataRefresh,replace:a.onReplace,add:a.onAdd,remove:a.onRemove,update:a.onUpdate,clear:a.onDataRefresh,beginupdate:a.onBeginUpdate,endupdate:a.onEndUpdate}},onOwnerGridHide:function(){Ext.suspendLayouts();this.relayFn("onOwnerGridHide",arguments);Ext.resumeLayouts(true)},onOwnerGridShow:function(){Ext.suspendLayouts();this.relayFn("onOwnerGridShow",arguments);Ext.resumeLayouts(true)},onBeginUpdate:function(){Ext.suspendLayouts();this.relayFn("onBeginUpdate",arguments);Ext.resumeLayouts(true)},onEndUpdate:function(){Ext.suspendLayouts();this.relayFn("onEndUpdate",arguments);Ext.resumeLayouts(true)},onDataRefresh:function(){Ext.suspendLayouts();this.relayFn("onDataRefresh",arguments);Ext.resumeLayouts(true)},onReplace:function(){Ext.suspendLayouts();this.relayFn("onReplace",arguments);Ext.resumeLayouts(true)},onAdd:function(){Ext.suspendLayouts();this.relayFn("onAdd",arguments);Ext.resumeLayouts(true)},onRemove:function(){Ext.suspendLayouts();this.relayFn("onRemove",arguments);Ext.resumeLayouts(true)},onUpdate:function(){Ext.suspendLayouts();this.relayFn("onUpdate",arguments);Ext.resumeLayouts(true)},refresh:function(){Ext.suspendLayouts();this.relayFn("refresh",arguments);Ext.resumeLayouts(true)},refreshView:function(){Ext.suspendLayouts();this.relayFn("refreshView",arguments);Ext.resumeLayouts(true)},setScrollable:function(a){Ext.suspendLayouts();this.lockedView.setScrollable(a);if(a.isScroller){a=Ext.scroll.Scroller.create(a.initialConfig)}this.normalView.setScrollable(a);Ext.resumeLayouts(true)},getNode:function(a){return this.normalView.getNode(a)},getRow:function(a){return this.normalView.getRow(a)},getCell:function(b,c){var a=this.getViewForColumn(c),d=a.getRow(b);return Ext.fly(d).down(c.getCellSelector())},indexOf:function(b){var a=this.lockedView.indexOf(b);if(!a){a=this.normalView.indexOf(b)}return a},focus:function(){var a=this.ownerGrid.down(">tablepanel:not(hidden)>tableview");if(a){a.focus()}},focusRow:function(c){var a,b=this.getNavigationModel().lastFocused;a=b?b.view:this.normalView;a.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn("onRowFocus",arguments)},isVisible:function(a){return this.ownerGrid.isVisible(a)},getFocusEl:function(){var a,b=this.getNavigationModel().lastFocused;a=b?b.view:this.normalView;return a.getFocusEl()},getCellInclusive:function(d,b){var a=d.column,c=this.lockedGrid.getColumnManager().getColumns().length;if(a>=c){d=Ext.apply({},d);d.column-=c;return this.normalView.getCellInclusive(d,b)}else{return this.lockedView.getCellInclusive(d,b)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute("data-columnId"))}return false},onRowSelect:function(){this.relayFn("onRowSelect",arguments)},onRowDeselect:function(){this.relayFn("onRowDeselect",arguments)},onCellSelect:function(a){a.column.getView().onCellSelect({record:a.record,column:a.column})},onCellDeselect:function(a){a.column.getView().onCellDeselect({record:a.record,column:a.column})},getCellByPosition:function(e,c){var d=this,a=e.view,b=e.column;if(a===d){a=b.getView()}return a.getCellByPosition(e,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.normalView;a.scrollBy.apply(a,arguments)},ensureVisible:function(){var a=this.normalView;a.ensureVisible.apply(a,arguments)},disable:function(){this.relayFn("disable",arguments)},enable:function(){this.relayFn("enable",arguments)},addElListener:function(){this.relayFn("addElListener",arguments)},refreshNode:function(){this.relayFn("refreshNode",arguments)},addRowCls:function(){this.relayFn("addRowCls",arguments)},removeRowCls:function(){this.relayFn("removeRowCls",arguments)},destroy:function(){var a=this;a.bindStore(null,false,"dataSource");a.isDestroyed=true;a.clearListeners();Ext.destroy(a.loadMask,a.navigationModel,a.selModel)}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable]],[Ext.grid.locking,"View",Ext.grid,"LockingView"],function(){this.borrow(Ext.Component,["up"]);this.borrow(Ext.view.AbstractView,["doFirstRefresh","applyFirstRefresh"]);this.borrow(Ext.view.Table,["cellSelector","selectedCellCls","selectedItemCls"])}));(Ext.cmd.derive("Ext.grid.locking.Lockable",Ext.Base,{alternateClassName:"Ext.grid.Lockable",syncRowHeight:true,headerCounter:0,scrollDelta:40,lockedGridCls:"x-grid-inner-locked",normalGridCls:"x-grid-inner-normal",unlockText:"Unlock",lockText:"Lock",bothCfgCopy:["hideHeaders","enableColumnHide","enableColumnMove","enableColumnResize","sortableColumns","multiColumnSort","columnLines","rowLines","variableRowHeight","numFromEdge","trailingBufferZone","leadingBufferZone","scrollToLoadBuffer","syncRowHeight"],normalCfgCopy:["scroll"],lockedCfgCopy:[],determineXTypeToCreate:function(e){var c=this,h,d,b,g,a;if(c.subGridXType){h=c.subGridXType}else{if(!e){return"gridpanel"}d=c.getXTypes().split("/");b=d.length;g=d[b-1];a=d[b-2];if(a!=="tablepanel"){h=a}else{h=g}}return h},injectLockable:function(){this.focusable=false;this.lockable=true;this.hasView=true;var w=this,l=Ext.getScrollbarSize(),p=l.width,e=w.store=Ext.StoreManager.lookup(w.store),c=w.lockedViewConfig,v=w.normalViewConfig,n=Ext.Object,j,k,t,h,m,b,g,s,u=w.viewConfig,a=u&&u.loadMask,o=(a!==undefined)?a:w.loadMask,q=w.bufferedRenderer,r=p>0&&Ext.supports.touchScroll!==2,d=w.getInherited().rtl;j=w.constructLockableFeatures();w.features=null;k=w.constructLockablePlugins();w.plugins=k.topPlugins;t={id:w.id+"-locked",$initParent:w,isLocked:true,bufferedRenderer:q,ownerGrid:w,ownerLockable:w,xtype:w.determineXTypeToCreate(true),store:e,reserveScrollbar:r,scrollable:{indicators:{x:true,y:false}},scrollerOwner:false,animate:false,border:false,cls:w.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||w.normalGrid.floatedFromCollapse},features:j.lockedFeatures,plugins:k.lockedPlugins};h={id:w.id+"-normal",$initParent:w,isLocked:false,bufferedRenderer:q,ownerGrid:w,ownerLockable:w,xtype:w.determineXTypeToCreate(),store:e,reserveScrollbar:w.reserveScrollbar,scrollerOwner:false,border:false,cls:w.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||w.lockedGrid.floatedFromCollapse},features:j.normalFeatures,plugins:k.normalPlugins};w.addCls("x-grid-locked");Ext.copy(h,w,w.bothCfgCopy,true);Ext.copy(t,w,w.bothCfgCopy,true);Ext.copy(h,w,w.normalCfgCopy,true);Ext.copy(t,w,w.lockedCfgCopy,true);Ext.apply(h,w.normalGridConfig);Ext.apply(t,w.lockedGridConfig);for(m=0;m<w.normalCfgCopy.length;m++){delete w[w.normalCfgCopy[m]]}for(m=0;m<w.lockedCfgCopy.length;m++){delete w[w.lockedCfgCopy[m]]}w.addStateEvents(["lockcolumn","unlockcolumn"]);b=w.processColumns(w.columns||[],t);t.columns=b.locked;if(!t.columns.items.length){t.hidden=true}h.columns=b.normal;if(!h.columns.items.length){h.hidden=true}h.flex=1;t.viewConfig=c=(c?n.chain(c):{});h.viewConfig=v=(v?n.chain(v):{});c.loadingUseMsg=false;c.loadMask=false;if(r){if(d){c.margin="0 0 0 -"+p+"px"}else{c.margin="0 -"+p+"px 0 0"}}v.loadMask=false;Ext.applyIf(c,u);Ext.applyIf(v,u);if(!w.initialConfig.layout){w.layout={type:"hbox",align:"stretch"}}w.getLayout();if(w.layout.type==="border"){if(w.split){t.split=true}if(!t.region){t.region="west"}if(!h.region){h.region="center"}w.addCls("x-grid-locked-split")}if(!(w.layout instanceof Ext.layout.container.Box)){w.split=false}w.view=new Ext.grid.locking.View({loadMask:o,locked:t,normal:h,ownerGrid:w});t=w.lockedGrid;h=w.normalGrid;if(!t.getVisibleColumnManager().getColumns().length){t.hide()}if(!h.getVisibleColumnManager().getColumns().length){h.hide()}h.getView().getScrollable().addPartner(t.getView().getScrollable(),"y");if(l.height&&Ext.supports.touchScroll!==2){t.on({afterlayout:w.afterLockedViewLayout,scope:w});t.getView().getOverflowStyle()}g=t.headerCt;s=h.headerCt;if(r&&!d){g.reserveScrollbar=false}w.headerCt=w.view.headerCt=new Ext.grid.locking.HeaderContainer(w);g.lockedCt=true;g.lockableInjected=true;s.lockableInjected=true;g.on({add:w.delaySyncLockedWidth,remove:w.delaySyncLockedWidth,columnshow:w.delaySyncLockedWidth,columnhide:w.delaySyncLockedWidth,sortchange:w.onLockedHeaderSortChange,columnresize:w.delaySyncLockedWidth,scope:w});s.on({add:w.delaySyncLockedWidth,remove:w.delaySyncLockedWidth,columnshow:w.delaySyncLockedWidth,columnhide:w.delaySyncLockedWidth,sortchange:w.onNormalHeaderSortChange,scope:w});w.modifyHeaderCt();w.items=[t];if(w.split){w.addCls("x-grid-locked-split");w.items[1]={xtype:"splitter"}}w.items.push(h);w.relayHeaderCtEvents(g);w.relayHeaderCtEvents(s);w.storeRelayers=w.relayEvents(e,["filterchange","groupchange"]);w.gridRelayers=w.relayEvents(h,["viewready"])},afterInjectLockable:function(){delete this.lockedGrid.$initParent;delete this.normalGrid.$initParent},getLockingViewConfig:function(){return{xclass:"Ext.grid.locking.View",locked:this.lockedGrid,normal:this.normalGrid,panel:this}},processColumns:function(g,d){var n=this,h,k,e,m=new Ext.grid.header.Container(),l=[],c=[],b={itemId:"lockedHeaderCt",stretchMaxPartner:"^^>>#normalHeaderCt",items:l},j={itemId:"normalHeaderCt",stretchMaxPartner:"^^>>#lockedHeaderCt",items:c},p={lockedWidth:d.width||0,locked:b,normal:j},o=!(d.width||d.flex),a;if(!n.hasOwnProperty("shrinkWrapLocked")){n.shrinkWrapLocked=o}if(Ext.isObject(g)){Ext.applyIf(b,g);Ext.applyIf(j,g);a=Ext.apply({},g);delete a.items;Ext.apply(m,a);g=g.items}m.constructing=true;for(h=0,k=g.length;h<k;++h){e=g[h];if(!e.isComponent){e=m.applyDefaults(e);e.initOwnerCt=m;e=m.lookupComponent(e);delete e.initOwnerCt}e.processed=true;if(e.locked||e.autoLock){if(o&&!e.hidden){p.lockedWidth+=n.getColumnWidth(e)||m.defaultWidth}l.push(e)}else{c.push(e)}if(!e.headerId){e.headerId=(e.initialConfig||e).id||("h"+(++n.headerCounter))}}n.fireEvent("processcolumns",n,l,c);m.destroy();if(o){d.width=p.lockedWidth}return p},getColumnWidth:function(e){var b=e.width||0,d,a,c;if(!b&&e.isGroupHeader){d=e.items.items;a=d.length;for(c=0;c<a;c++){b+=this.getColumnWidth(d[c])}}return b},afterLockedViewLayout:function(){var e=this,b=e.lockedGrid,d=e.normalGrid,k=b.getView(),c=d.getView(),a=Ext.getScrollbarSize().height,j=(k.scrollFlags.x&&b.headerCt.tooNarrow?a:0),i=(c.scrollFlags.x&&d.headerCt.tooNarrow?a:0),g=c.getScrollable(),h=k.getScrollable();if(j!==i){if(j){g.setX("scroll");h.setX(true)}else{h.setX("scroll");g.setX(true)}}else{h.setX(i?"scroll":true);g.setX(true)}h.setY("scroll")},ensureLockedVisible:function(){this.lockedGrid.ensureVisible.apply(this.lockedGrid,arguments);this.normalGrid.ensureVisible.apply(this.normalGrid,arguments)},onLockedViewMouseWheel:function(j){var d=this,a=-d.scrollDelta*j.getWheelDeltas().y,c=d.lockedGrid.getView(),g=c.el.dom,i,b,h;if(!d.ignoreMousewheel){if(g){i=c.getScrollY();b=i!==g.scrollHeight-g.clientHeight;h=i!==0}if((a<0&&h)||(a>0&&b)){j.stopEvent();i+=a;c.setScrollY(i);d.normalGrid.getView().setScrollY(i);d.onNormalViewScroll()}}},onLockedViewScroll:function(){var g=this,e=g.lockedGrid.getView(),d=g.normalGrid.getView(),c=e.getScrollY(),h=d.getScrollY(),a,b;if(h!==c){d.setScrollY(c);if(d.bufferedRenderer){b=e.body.dom;a=d.body.dom;a.style.position="absolute";a.style.top=b.style.top}}},onNormalViewScroll:function(){var d=this,c=d.lockedGrid.getView(),b=d.normalGrid.getView(),a=c.getScrollY(),g=b.getScrollY(),e;if(g!==a){c.setScrollY(g);if(b.bufferedRenderer){e=c.body;if(e.dom){e.dom.style.position="absolute";e.translate(null,b.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.isDestroyed){var d=this,b=d.normalGrid.getView(),c=d.lockedGrid.getView(),g=b.syncRowHeightBegin(),a=c.syncRowHeightBegin(),e;b.syncRowHeightMeasure(g);c.syncRowHeightMeasure(a);b.syncRowHeightFinish(g,a);c.syncRowHeightFinish(a,g);e=b.getScrollY();c.setScrollY(e)}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,true);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,false);a.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.lockedGrid.headerCt.showMenuBy,a.showMenuBy);a.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(a.normalGrid.headerCt.showMenuBy,a.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(a,c,h){var g=this.getMenu(),d=g.down("#unlockItem"),e=g.down("#lockItem"),b=d.prev();if(h.lockable===false){b.hide();d.hide();e.hide()}else{b.show();d.show();e.show();if(!d.initialConfig.disabled){d.setDisabled(h.lockable===false)}if(!e.initialConfig.disabled){e.setDisabled(!h.isLockable())}}},getMenuItems:function(g,c){var h=this,i=h.unlockText,a=h.lockText,j="x-hmenu-unlock",b="x-hmenu-lock",e=h.onUnlockMenuClick.bind(h),d=h.onLockMenuClick.bind(h);return function(){var k=g.call(this);k.push("-",{itemId:"unlockItem",iconCls:j,text:i,handler:e,disabled:!c});k.push({itemId:"lockItem",iconCls:b,text:a,handler:d,disabled:c});return k}},delaySyncLockedWidth:function(){var b=this,a=b.syncLockedWidthTask||(b.syncLockedWidthTask=new Ext.util.DelayedTask(b.syncLockedWidth,b));if(!Ext.Component.layoutSuspendCount||b.syncTaskDelay===0){b.syncLockedWidth()}else{a.delay(1)}},syncLockedWidth:function(){var e=this,i=e.rendered,c=e.lockedGrid,d=c.view,h=e.normalGrid,g=c.getVisibleColumnManager().getColumns().length,a=h.getVisibleColumnManager().getColumns().length,b=e.syncLockedWidthTask;if(b){b.cancel()}Ext.suspendLayouts();if(a){h.show();if(g){if(e.layout.type==="border"){c.region=c.initialConfig.region;c.width=c.initialConfig.width}else{if(i&&e.shrinkWrapLocked&&!c.headerCt.forceFit){delete c.flex;c.setWidth(c.headerCt.getTableWidth()+c.el.getBorderWidth("lr"))}}c.addCls(e.lockedGridCls);c.show();if(c.split){e.child("splitter").show()}}else{c.hide();if(i){c.getView().clearViewEl(true)}if(c.split){e.child("splitter").hide();e.removeCls("x-grid-locked-split")}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){d.getScrollable().setX(true)}if(i){e.ignoreMousewheel=d.scrollFlags.y}}else{h.hide();delete c.width;if(e.layout.type==="border"){c.region="center";h.region="west"}else{c.flex=1}c.removeCls(e.lockedGridCls);c.show();e.ignoreMousewheel=true}Ext.resumeLayouts(true);return[g,a]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(g,n,e){var i=this,h=i.normalGrid,c=i.lockedGrid,d=h.view,p=c.view,l=d.getScrollable(),m=p.getScrollable(),k=h.headerCt,j,a,b,o=d.getScrollY();g=g||k.getMenu().activeHeader;b=g.hasFocus;e=e||c.headerCt;a=g.ownerCt;if(a&&!g.isLockable()){return}if(g.flex){g.width=g.getWidth();g.flex=null}Ext.suspendLayouts();if(l){l.suspendPartnerSync();m.suspendPartnerSync()}if(c.hidden){if(!c.componentLayoutCounter){if(p.bufferedRenderer){p.bufferedRenderer.onViewResize(p,0,d.getHeight())}}c.show()}c.reconfiguring=h.reconfiguring=true;g.ownerCmp=g.ownerCt;if(a){a.remove(g,false)}g.locked=true;if(Ext.isDefined(n)){e.insert(n,g)}else{e.add(g)}c.reconfiguring=h.reconfiguring=false;g.ownerCmp=null;j=i.syncLockedWidth();if(j[1]){h.getView().refreshView()}if(j[0]){c.getView().refreshView()}i.fireEvent("lockcolumn",i,g);Ext.resumeLayouts(true);if(l){l.resumePartnerSync(true);m.resumePartnerSync()}if(o){p.setScrollY(o);d.setScrollY(o)}if(b){g.focus()}},unlock:function(e,k,d){var h=this,g=h.normalGrid,b=h.lockedGrid,c=g.view,l=b.view,j=b.headerCt,i,a;if(!Ext.isDefined(k)){k=0}e=e||j.getMenu().activeHeader;a=e.hasFocus;d=d||g.headerCt;Ext.suspendLayouts();b.reconfiguring=g.reconfiguring=true;e.ownerCmp=e.ownerCt;if(e.ownerCt){e.ownerCt.remove(e,false)}e.locked=false;d.insert(k,e);b.reconfiguring=g.reconfiguring=false;e.ownerCmp=null;i=h.syncLockedWidth();if(i[1]){g.getView().refreshView()}if(i[0]){b.getView().refreshView()}h.fireEvent("unlockcolumn",h,e);Ext.resumeLayouts(true);if(a){e.focus()}},reconfigureLockable:function(j,d,e){var h=this,a=h.store,c=h.lockedGrid,g=h.normalGrid,i,b;if(!j&&e){j=Ext.StoreManager.lookup("ext-empty-store")}if(j&&j!==a){j=Ext.data.StoreManager.lookup(j);h.store=j;c.view.blockRefresh=g.view.blockRefresh=true;c.bindStore(j);i=c.view;i.store=j;if(!i.dataSource.isFeatureStore){i.dataSource=j}if(i.bufferedRenderer){i.bufferedRenderer.bindStore(j)}g.bindStore(j);i=g.view;i.store=j;if(!i.dataSource.isFeatureStore){i.dataSource=j}if(i.bufferedRenderer){i.bufferedRenderer.bindStore(j)}h.view.store=j;b=h.view.loadMask;if(b&&b.isLoadMask){b.bindStore(j)}h.view.bindStore(g.view.dataSource,false,"dataSource");c.view.blockRefresh=g.view.blockRefresh=false}if(d){c.reconfiguring=g.reconfiguring=true;c.headerCt.removeAll();g.headerCt.removeAll();d=h.processColumns(d,c);c.headerCt.add(d.locked.items);g.headerCt.add(d.normal.items);c.reconfiguring=g.reconfiguring=false;h.syncLockedWidth()}h.refreshCounter=g.view.refreshCounter},afterReconfigureLockable:function(){if(this.refreshCounter===this.normalGrid.getView().refreshCounter){this.view.refreshView()}},constructLockableFeatures:function(){var e=this.features,c,d,g,h,b=0,a;if(e){if(!Ext.isArray(e)){e=[e]}g=[];h=[];a=e.length;for(;b<a;b++){c=e[b];if(!c.isFeature){c=Ext.create("feature."+c.ftype,c)}switch(c.lockableScope){case"locked":g.push(c);break;case"normal":h.push(c);break;default:c.lockableScope="both";g.push(c);h.push(d=c.clone());d.lockingPartner=c;c.lockingPartner=d}}}return{normalFeatures:h,lockedFeatures:g}},constructLockablePlugins:function(){var c=this.plugins,h,b,a,k,l,e,g=0,j,m,d;if(c){if(!Ext.isArray(c)){c=[c]}k=[];l=[];e=[];j=c.length;for(;g<j;g++){h=c[g];if(h.init){m=h.lockableScope}else{d=h.ptype?Ext.ClassManager.getByAlias(("plugin."+h.ptype)):Ext.ClassManager.get(h.xclass);m=d.prototype.lockableScope}switch(m){case"both":l.push(a=h.clonePlugin());e.push(b=h.clonePlugin());a.lockingPartner=b;b.lockingPartner=a;Ext.destroy(h);break;case"locked":l.push(h);break;case"normal":e.push(h);break;default:k.push(h)}}}return{topPlugins:k,normalPlugins:e,lockedPlugins:l}},destroyLockable:function(){var b=this,a=b.syncLockedWidthTask;if(a){a.cancel();b.syncLockedWidthTask=null}if(b.lockedGrid&&b.lockedGrid.headerCt){b.lockedGrid.headerCt.showMenuBy=null}if(b.normalGrid&&b.normalGrid.headerCt){b.normalGrid.headerCt.showMenuBy=null}Ext.destroy(b.view,b.headerCt)}},0,0,0,0,0,0,[Ext.grid.locking,"Lockable",Ext.grid,"Lockable"],function(){this.borrow(Ext.Component,["constructPlugin"])}));(Ext.cmd.derive("Ext.grid.plugin.BufferedRenderer",Ext.AbstractPlugin,{isBufferedRenderer:true,lockableScope:"both",numFromEdge:2,trailingBufferZone:10,leadingBufferZone:20,synchronousRender:true,scrollToLoadBuffer:200,viewSize:100,rowHeight:21,position:0,lastScrollDirection:1,bodyTop:0,scrollHeight:0,loadId:0,init:function(c){var d=this,a=c.view,b={scroll:d.onViewScroll,refresh:d.onViewRefresh,columnschanged:d.checkVariableRowHeight,boxready:d.onViewBoxReady,scope:d,destroyable:true},e=a.initialConfig;if(c.isTree||(c.ownerLockable&&c.ownerLockable.isTree)){a.blockRefresh=false;if(e&&e.loadMask===undefined){a.loadMask=true}}if(a.positionBody){b.refresh=d.onViewRefresh}if(Ext.isWebKit&&Ext.supports.touchScroll!==2){d.needsPointerEventsFix=true;b.scrollEnd=d.onViewScrollEnd;b.itemmousedown=d.onViewItemMouseDown}d.grid=c;d.view=a;d.isRTL=a.getInherited().rtl;a.bufferedRenderer=d;a.preserveScrollOnRefresh=true;a.animate=false;d.bindStore(a.dataSource);if(a.hasOwnProperty("rowHeight")){d.rowHeight=a.rowHeight}d.position=0;d.viewListeners=a.on(b)},checkVariableRowHeight:function(){this.variableRowHeight=this.view.hasVariableRowHeight()},bindStore:function(c){var d=this,a=d.store,b=d.view;if(a&&a.isFeatureStore){return}if(a){d.unbindStore()}d.storeListeners=c.on({scope:d,groupchange:d.onStoreGroupChange,clear:d.onStoreClear,beforeload:d.onBeforeStoreLoad,load:d.onStoreLoad,destroyable:true});d.store=c;if(b.componentLayout.layoutCount){delete d.viewSize;if(c.isBufferedStore){c.setViewSize(d.viewSize)}d.onViewResize(b,0,b.getHeight())}},unbindStore:function(){this.storeListeners.destroy();this.storeListeners=this.store=null},onBeforeStoreLoad:function(b){var c=this,a=c.view;if(a&&a.refreshCounter){if(b.isTreeStore||a.preserveScrollOnReload){c.nextRefreshStartIndex=a.all.startIndex}else{if(c.scrollTop!==0){c.setBodyTop(c.bodyTop=c.scrollTop=c.position=c.scrollHeight=c.nextRefreshStartIndex=0);a.setScrollY(0)}}c.lastScrollDirection=c.scrollOffset=null}c.disable()},onStoreLoad:function(){this.enable()},onStoreClear:function(){var b=this,a=b.view;if(a.rendered&&!b.store.isDestroyed){if(b.scrollTop!==0){b.bodyTop=b.scrollTop=b.position=b.scrollHeight=0;b.nextRefreshStartIndex=null;a.setScrollY(0)}a.refresh();b.lastScrollDirection=b.scrollOffset=null}},onStoreGroupChange:function(a){this.refreshSize()},onViewBoxReady:function(a){this.refreshScroller(a,this.scrollHeight)},onViewRefresh:function(b,c){var d=this,e=b.all,a;d.checkVariableRowHeight();if(!b.componentLayoutCounter&&(b.headerCt.down("{flex}")||d.variableRowHeight)){b.on({boxready:Ext.Function.pass(d.onViewRefresh,[b,c],d),single:true});return}if(d.refreshing){return}d.refreshSize();if(d.scrollTop!==b.getScrollY()){d.onViewScroll();d.onViewScrollEnd()}else{if(!d.hasOwnProperty("bodyTop")){d.bodyTop=e.startIndex*d.rowHeight;b.setScrollY(d.bodyTop)}d.setBodyTop(d.bodyTop);a=b.getHeight();if(e.getCount()&&a>0){d.onViewResize(b,null,a);if(c&&(e.getCount()!==c.length)){c.length=0;c.push.apply(c,d.store.getRange(e.startIndex,e.endIndex))}}}},beforeTableLayout:function(a){if(this.view.body.dom){a.bodyHeight=this.view.body.dom.offsetHeight}},afterTableLayout:function(d){var b=this,a=b.view,c;if(d.bodyHeight&&a.body.dom){b.refreshSize();c=a.body.dom.offsetHeight;if(c!==d.bodyHeight){b.onViewResize(a,null,a.el.lastBox.height);if(c<d.bodyHeight){if(b.viewSize>=b.store.getCount()){b.setBodyTop(0)}else{if(b.bodyTop>b.scrollTop||b.bodyTop+c<b.scrollTop+b.viewClientHeight){b.setBodyTop(b.scrollTop-b.trailingBufferZone*b.rowHeight)}}}if(a.all.endIndex===(a.dataSource.getCount())-1){b.stretchView(a,b.scrollHeight=b.bodyTop+c-1)}}}},refreshSize:function(){var b=this,a=b.view;b.scrollHeight=b.getScrollHeight();b.stretchView(a,b.scrollHeight)},onViewResize:function(c,e,a,b,h){var g=this,d;if(!h||a!==h){d=Math.ceil(a/g.rowHeight)+g.trailingBufferZone+g.leadingBufferZone;g.viewSize=g.setViewSize(d);g.viewClientHeight=c.el.dom.clientHeight}},stretchView:function(b,a){var c=this;if(c.scrollTop>a){c.position=c.scrollTop=Math.max(a-b.body.dom.offsetHeight,0);b.setScrollY(c.scrollTop)}if(c.bodyTop>a){b.body.translate(null,c.bodyTop=c.position)}if(b.getScrollable()){c.refreshScroller(b,a)}},refreshScroller:function(c,b){var a=c.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:c.headerCt.getTableWidth(),y:b});if(c.touchScroll===2){a.setRefreshOnIdle(false)}}},setViewSize:function(c,o){var u=this,e=u.store,m=u.view,h=m.all,d=h.getCount(),b,a,g=u.view.lockingPartner&&u.view.lockingPartner.bufferedRenderer,n=d-c,q,p,r,k,t,s=e.getCount(),l=Math.max(0,s-1);if(g&&!o&&g.view.componentLayoutCounter){if(g.viewSize>c){c=g.viewSize}else{g.setViewSize(c,true)}}n=d-c;if(n){u.scrollTop=m.getScrollY();u.viewSize=c;if(e.isBufferedStore){e.setViewSize(c)}if(d){b=Math.max(0,Math.min(h.startIndex,l-c+1));a=Math.min(b+c-1,l);if(b===h.startIndex&&a===h.endIndex){if(n<0){u.handleViewScroll(-1)}}else{if(g){g.disable()}if(n<0){if(s>c&&s>d){e.getRange(h.endIndex+1,a,{callback:function(i,j){t=m.doAdd(i,j);m.fireEvent("itemadd",i,j,t);u.setBodyTop(u.bodyTop)}})}else{u.refreshView(0)}}else{b=h.endIndex-(n-1);a=h.endIndex;k=h.slice(b,a+1);h.removeRange(b,a,true);if(m.hasListeners.itemremove){r=e.getRange(b,a);for(q=a,p=r.length-1;p>=0;--q,--p){m.fireEvent("itemremove",r[p],q,k[p])}}u.setBodyTop(u.bodyTop)}if(g){g.enable()}}}}return c},getViewRange:function(){var e=this,a=e.view,h=a.all,c=h.getCount(),d=a.lockingPartner&&a.lockingPartner.all,b=e.store,i=0,g;if(!b.data.getCount()){return[]}if(!c&&d&&d.getCount()){i=d.startIndex;g=Math.min(d.endIndex,i+e.viewSize-1,b.getCount()-1)}else{if(c){i=h.startIndex}else{if(b.isBufferedStore){if(!b.currentPage){b.currentPage=1}i=h.startIndex=(b.currentPage-1)*(b.pageSize||1);b.currentPage=1}}g=i+(e.viewSize||b.defaultViewSize)-1}return b.getRange(i,g)},onReplace:function(j,k,e,g){var h=this,i=h.view,m=i.all,a,d=m.getCount(),c=k+e.length-1,l=g.length-e.length,b=l*h.rowHeight;if(k>=m.startIndex+h.viewSize){h.refreshSize();return}if(d&&c<m.startIndex&&m.getCount()>=h.viewSize){m.moveBlock(l);h.refreshSize();a=m.startIndex;if(l>0){h.doNotMirror=true;h.handleViewScroll(-1);h.doNotMirror=false}if(m.startIndex===a){if(m.startIndex){h.setBodyTop(h.bodyTop+=b);i.suspendEvent("scroll");i.scrollBy(0,b);i.resumeEvent("scroll");h.position=h.scrollTop=i.getScrollY()}}else{i.suspendEvent("scroll");i.scrollBy(0,(a-m.startIndex)*h.rowHeight);i.resumeEvent("scroll")}i.refreshSize(m.getCount()!==d);return}if(d&&k>m.endIndex){h.refreshSize();if(l>0){h.onRangeFetched(null,m.startIndex,Math.min(j.getCount(),m.startIndex+h.viewSize)-1,null,true)}i.refreshSize(m.getCount()!==d);return}if(k<m.startIndex&&c<=m.endIndex){h.refreshView(m.startIndex-e.length+g.length);return}if(k<m.startIndex&&c<=m.endIndex&&b){i.suspendEvent("scroll");i.setScrollY(h.position=h.scrollTop+=b);i.resumeEvent("scroll")}h.refreshView()},scrollTo:function(n,q){var h=arguments,j=this,l=j.view,g=l.lockingPartner&&l.lockingPartner.grid.isVisible()&&l.lockingPartner.bufferedRenderer,o=j.store,k=o.getCount(),i,b,a,p,c,d,e,m;if(q!==undefined&&!(q instanceof Object)){q={select:h[1],callback:h[2],scope:h[3]}}if((c=l.dataSource.groupingFeature)&&(c.collapsible)){if(n.isEntity){e=n}else{e=l.store.getAt(Math.min(Math.max(n,0),l.store.getCount()-1))}d=c.getMetaGroup(e);if(d&&d.isCollapsed){if(!c.isExpandingOrCollapsing){c.expand(c.getGroup(e).getGroupKey());k=o.getCount();n=c.indexOf(e)}else{e=d.placeholder;n=c.indexOfPlaceholder(e)}}else{n=c.indexOf(e)}}else{if(n.isEntity){e=n;n=o.indexOf(e);if(n===-1){return}}else{n=Math.min(Math.max(n,0),k-1);e=o.getAt(n)}}if(e&&(a=l.getNode(e))){l.grid.ensureVisible(e,q);j.onViewScroll();j.onViewScrollEnd();return}if(n<l.all.startIndex){m=-1;i=Math.max(Math.min(n-(Math.floor((j.leadingBufferZone+j.trailingBufferZone)/2)),k-j.viewSize+1),0);b=Math.min(i+j.viewSize-1,k-1)}else{m=1;b=Math.min(n+(Math.floor((j.leadingBufferZone+j.trailingBufferZone)/2)),k-1);i=Math.max(b-(j.viewSize-1),0)}p=Math.max(i*j.rowHeight,0);o.getRange(i,b,{callback:function(s,t,r){j.renderRange(t,r,true,true);e=o.data.getRange(n,n+1)[0];a=l.getNode(e);l.body.translate(null,j.bodyTop=p);if(m===1){j.refreshSize()}if(g){g.renderRange(t,r,true,true);j.syncRowHeights();g.view.body.translate(null,g.bodyTop=p);if(m===1){g.refreshSize()}}if(!a){return}l.grid.ensureVisible(e,q);j.scrollTop=j.position=j.view.getScrollY();if(g){g.position=g.scrollTop=j.scrollTop}}})},onViewItemMouseDown:function(){var a=this;Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a,single:true});a.preservePointerEvents=true},onDocumentMouseUp:function(){this.preservePointerEvents=false},onViewScroll:function(){var d=this,b=d.store,a=(b.getCount()),c,g,e=d.scrollTop=d.view.getScrollY();if(d.needsPointerEventsFix&&!d.preservePointerEvents){d.view.body.dom.style.pointerEvents="none"}if(!(d.disabled||a<d.viewSize)){c=e-d.position;g=c>0?1:-1;if(Math.abs(c)>=20||(g!==d.lastScrollDirection)){d.lastScrollDirection=g;d.handleViewScroll(d.lastScrollDirection,c)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents="";this.preservePointerEvents=false}},handleViewScroll:function(h,b){var e=this,l=e.view.all,j=e.store,d=j.getCount(),g=e.viewSize,c=d-1,i=Math.max(0,d-g),a,k;if(h===-1){if(l.startIndex){if(e.topOfViewCloseToEdge()){a=Math.max(0,e.getLastVisibleRowIndex()+e.trailingBufferZone-g);if(a>l.startIndex){a=l.startIndex+Math.floor(b/e.rowHeight)}}}}else{if(l.endIndex<c){if(e.bottomOfViewCloseToEdge()){a=Math.max(0,Math.min(e.getFirstVisibleRowIndex()-e.trailingBufferZone,i))}}}if(a==null){e.position=e.scrollTop;e.loadId++}else{k=Math.min(a+g-1,c);if(e.variableRowHeight&&k===l.endIndex&&k<c){k++;a++}if(a!==l.startIndex||k!==l.endIndex){e.renderRange(a,k);return true}}},bottomOfViewCloseToEdge:function(){var a=this;if(a.variableRowHeight){return a.bodyTop+a.view.body.dom.offsetHeight<a.scrollTop+a.view.lastBox.height+(a.numFromEdge*a.rowHeight)}else{return(a.view.all.endIndex-a.getLastVisibleRowIndex())<a.numFromEdge}},topOfViewCloseToEdge:function(){var a=this;if(a.variableRowHeight){return a.bodyTop>a.scrollTop-(a.numFromEdge*a.rowHeight)}else{return(a.getFirstVisibleRowIndex()-a.view.all.startIndex)<a.numFromEdge}},refreshView:function(j){var e=this,g=e.viewSize,h=e.view,k=h.all,i=e.store,d=i.getCount(),a=Math.max(0,d-1),b=h.lockingPartner&&h.lockingPartner.all,c;if(!d){return e.doRefreshView([],0,0)}else{if(d<g){j=0;c=a}else{if(j==null&&!k.getCount()&&b&&b.getCount()){j=b.startIndex;c=b.endIndex}else{if(j==null){if(e.nextRefreshStartIndex!=null){j=e.nextRefreshStartIndex;e.nextRefreshStartIndex=null}else{j=k.startIndex}}j=Math.max(0,Math.min(j,a-g+1));c=Math.min(j+g-1,a);if(c-j+1>g){j=c-g+1}}}}if(j===0&&c===-1){e.doRefreshView([],0,0)}else{i.getRange(j,c,{callback:e.doRefreshView,scope:e})}},doRefreshView:function(n,h,c,e){var s=this,m=s.view,d=m.getNavigationModel(),r=d.getPosition(),k=m.all,q=k.startIndex,g=k.endIndex,i,a,b=k.getCount(),l,j=h!==k.startIndex,p,o;m.refreshing=s.refreshing=true;if(m.refreshCounter){if(r&&r.view===m){if(r.rowIdx<h||r.rowIdx>c){r=null}else{r=r.clone()}d.setPosition()}else{r=null}m.clearViewEl(true);m.refreshCounter++;if(n.length){l=m.doAdd(n,h);if(j){i=k.item(q,true);a=k.item(g,true);if(i){o=-i.offsetTop}else{if(a){o=k.last(true).offsetTop-a.offsetTop}}if(o){s.bodyTop=Math.max(s.bodyTop+o,0);s.scrollTop=s.bodyTop?s.scrollTop+o:0}else{s.bodyTop=p=h*s.rowHeight;s.scrollTop=Math.max(p-s.rowHeight*(p<s.bodyTop?s.leadingBufferZone:s.trailingBufferZone,0))}}}else{if(s.scrollTop){s.bodyTop=s.scrollTop=0}m.addEmptyText()}if(j){s.setBodyTop(s.bodyTop);m.suspendEvent("scroll");m.setScrollY(s.position=s.scrollTop);m.resumeEvent("scroll")}s.refreshSize();m.refreshSize(k.getCount()!==b);m.fireEvent("refresh",m,n);if(r){m.cellFocused=true;d.setPosition(r,null,null,null,true)}m.headerCt.setSortState()}else{m.refresh()}m.refreshNeeded=m.refreshing=s.refreshing=false},renderRange:function(h,a,g,c){var d=this,e=d.view.all,b=d.store;if(!(h===e.startIndex&&a===e.endIndex)){if(b.rangeCached(h,a)){d.cancelLoad();if(d.synchronousRender||g){d.onRangeFetched(null,h,a,null,c)}else{if(!d.renderTask){d.renderTask=new Ext.util.DelayedTask(d.onRangeFetched,d,null,false)}d.renderTask.delay(1,null,null,[null,h,a,null,c])}}else{d.attemptLoad(h,a,d.scrollTop)}}},onRangeFetched:function(n,g,e,d,o){var w=this,m=w.view,c,l=m.all,h,v=0,r,j,k=(m.lockingPartner&&!o&&!w.doNotMirror)&&m.lockingPartner.bufferedRenderer,s,b,t,a,q,p=w.variableRowHeight,u;if(m.isDestroyed){return}if(n){if(!o){w.scrollTop=w.view.getScrollY()}}else{n=w.store.getRange(g,e);if(!n){return}}r=g*w.rowHeight;if(g<l.startIndex&&e>l.endIndex){t=l.startIndex-g;m.clearViewEl(true);s=m.doAdd(n,g);m.fireEvent("itemadd",n,g,s);for(q=0;q<t;q++){v-=s[q].offsetHeight}j=w.bodyTop+v}else{u=w.teleported||g>l.endIndex||e<l.startIndex;if(u){m.clearViewEl(true);w.teleported=false}if(!l.getCount()){s=m.doAdd(n,g);m.fireEvent("itemadd",n,g,s);j=r;if(u&&p){a=w.scrollTop<w.position?w.leadingBufferZone:w.trailingBufferZone;j=Math.max(w.scrollTop-l.item(l.startIndex+a-1,true).offsetTop,0)}}else{if(e>l.endIndex){h=Math.max(g-l.startIndex,0);if(p){v=l.item(l.startIndex+h,true).offsetTop}s=l.scroll(Ext.Array.slice(n,l.endIndex+1-g),1,h);if(p){j=w.bodyTop+v}else{j=r}}else{h=Math.max(l.endIndex-e,0);c=l.startIndex;s=l.scroll(Ext.Array.slice(n,0,l.startIndex-g),-1,h);if(p){j=w.bodyTop-l.item(c,true).offsetTop;if(!l.startIndex){if(j){m.setScrollY(w.position=(w.scrollTop-=j));j=0}}else{if(j<0){v=l.startIndex*w.rowHeight;m.setScrollY(w.position=(w.scrollTop+=v));j=w.bodyTop+v}}}else{j=r}}}w.position=w.scrollTop}j=Math.max(Math.floor(j),0);if(m.positionBody){w.setBodyTop(j)}if(s&&k&&!k.disabled){k.scrollTop=k.position=w.scrollTop;if(k.view.ownerCt.isVisible()){b=k.onRangeFetched(n,g,e,d,true);if(m.ownerGrid.syncRowHeight||(k.variableRowHeight!==p)){w.syncRowHeights(s,b)}}if(k.bodyTop!==j){k.setBodyTop(j)}k.view.setScrollY(w.scrollTop)}return s},syncRowHeights:function(g,a){var j=this,h=0,l=1,k=[],b=[],d=Ext.grid.locking.RowSynchronizer,c,e;if(g&&a){h=g.length;l=a.length}if(h!==l){g=j.view.all.slice();a=j.view.lockingPartner.all.slice();h=l=g.length}for(c=0;c<h;c++){k[c]=e=new d(j.view,g[c]);e.measure()}for(c=0;c<l;c++){b[c]=e=new d(j.view.lockingPartner,a[c]);e.measure()}for(c=0;c<h;c++){k[c].finish(b[c]);b[c].finish(k[c])}j.syncRowHeightsFinish()},syncRowHeightsFinish:function(){var c=this,a=c.view,b=a.lockingPartner.bufferedRenderer;if(a.componentLayoutCounter){delete c.rowHeight;c.refreshSize();if(b.rowHeight!==c.rowHeight){delete b.rowHeight;b.refreshSize()}}c.bodyHeight=b.bodyHeight=a.body.dom.offsetHeight},setBodyTop:function(d){var e=this,b=e.view,g=b.all,c=e.store,a=b.body;if(!a.dom){return}e.translateBody(a,d);if(e.variableRowHeight){if(g.endIndex===c.getCount()-1){e.scrollHeight=e.bodyTop+a.dom.offsetHeight-1}else{e.scrollHeight=e.getScrollHeight()}e.stretchView(b,e.scrollHeight)}},translateBody:function(a,b){a.translate(null,this.bodyTop=b)},getFirstVisibleRowIndex:function(k,c,b,g){var h=this,i=h.view,m=i.all,a=m.elements,d=h.viewClientHeight,e,l,j=h.bodyTop;if(m.getCount()&&h.variableRowHeight){if(!arguments.length){k=m.startIndex;c=m.endIndex;b=h.scrollTop;g=b+d;if(j>g||j+i.body.dom.offsetHeight<b){h.teleported=true;return Math.floor(h.scrollTop/h.rowHeight)}e=k+Math.min(h.numFromEdge+((h.lastScrollDirection===-1)?h.leadingBufferZone:h.trailingBufferZone),Math.floor((c-k)/2))}else{e=k+Math.floor((c-k)/2)}l=j+a[e].offsetTop;if(l+a[e].offsetHeight<=b){return h.getFirstVisibleRowIndex(e+1,c,b,g)}if(l<=b){return e}else{if(e!==k){return h.getFirstVisibleRowIndex(k,e-1,b,g)}}}return Math.floor(h.scrollTop/h.rowHeight)},getLastVisibleRowIndex:function(l,c,b,g){var i=this,j=i.view,n=j.all,a=n.elements,d=i.viewClientHeight,e,m,h,k=i.bodyTop;if(n.getCount()&&i.variableRowHeight){if(!arguments.length){l=n.startIndex;c=n.endIndex;b=i.scrollTop;g=b+d;if(k>g||k+j.body.dom.offsetHeight<b){i.teleported=true;return Math.floor(i.scrollTop/i.rowHeight)+Math.ceil(d/i.rowHeight)}e=c-Math.min(i.numFromEdge+((i.lastScrollDirection===1)?i.leadingBufferZone:i.trailingBufferZone),Math.floor((c-l)/2))}else{e=l+Math.floor((c-l)/2)}m=k+a[e].offsetTop;if(m>g){return i.getLastVisibleRowIndex(l,e-1,b,g)}h=m+a[e].offsetHeight;if(h>=g){return e}else{if(e!==c){return i.getLastVisibleRowIndex(e+1,c,b,g)}}}return i.getFirstVisibleRowIndex()+Math.ceil(d/i.rowHeight)},getScrollHeight:function(){var c=this,e=c.view,j=e.all,g=c.store,k=g.getCount(),d=j.getCount(),i,b,a,h;if(!k){return 0}if(!e.hasOwnProperty("rowHeight")){if(d){if(c.variableRowHeight){c.rowHeight=Math.floor(e.body.dom.offsetHeight/d)}else{i=j.first();b=i.getHeight();if(Ext.isIE8){a=i.getBorderWidth("b");if(a>0){b-=a}}c.rowHeight=b}}else{delete c.rowHeight}}if(c.variableRowHeight){if(j.endIndex===k-1){h=c.bodyTop+e.body.dom.offsetHeight-1}else{h=Math.floor((k-d)*c.rowHeight)+e.body.dom.offsetHeight;h+=c.bodyTop-j.startIndex*c.rowHeight}}else{h=Math.floor(k*c.rowHeight)}return(c.scrollHeight=h)},attemptLoad:function(d,a,c){var b=this;if(b.scrollToLoadBuffer){if(!b.loadTask){b.loadTask=new Ext.util.DelayedTask()}b.loadTask.delay(b.scrollToLoadBuffer,b.doAttemptLoad,b,[d,a,c])}else{b.doAttemptLoad(d,a,c)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(d,a,c){var b=this;if(!b.destroyed){b.store.getRange(d,a,{loadId:++b.loadId,callback:function(g,i,e,h){if(h.loadId===b.loadId&&b.scrollTop===c){b.onRangeFetched(g,i,e,h)}},fireEvent:false})}},destroy:function(){var b=this,a=b.view;b.cancelLoad();if(a&&a.el){a.un("scroll",b.onViewScroll,b)}Ext.destroy(b.viewListeners,b.storeListeners);b.viewListeners=b.storeListeners=null;b.callParent()}},0,0,0,0,["plugin.bufferedrenderer"],0,[Ext.grid.plugin,"BufferedRenderer"],function(a){if(Ext.supports.Touch){a.prototype.leadingBufferZone=a.prototype.trailingBufferZone=2;a.prototype.numFromEdge=1}}));Ext.define("Ext.rtl.grid.plugin.BufferedRenderer",{override:"Ext.grid.plugin.BufferedRenderer",translateBody:function(a,b){if(this.isRTL&&Ext.supports.xOriginBug&&this.view.scrollFlags.y){a.translate(Ext.getScrollbarSize().width,this.bodyTop=b)}else{arguments.callee.$previous.call(this,a,b)}}});(Ext.cmd.derive("Ext.grid.plugin.Editing",Ext.plugin.Abstract,{clicksToEdit:2,triggerEvent:undefined,relayedEvents:["beforeedit","edit","validateedit","canceledit"],defaultFieldUI:"default",defaultFieldXType:"textfield",editStyle:"",constructor:function(a){var b=this;Ext.plugin.Abstract.prototype.constructor.call(this,a);b.mixins.observable.constructor.call(b);b.on("edit",function(c,d){b.fireEvent("afteredit",c,d)})},init:function(a){var b=this;b.grid=a;b.view=a.view;b.initEvents();if(a.rendered){b.setup()}else{b.mon(a,{beforereconfigure:b.onBeforeReconfigure,reconfigure:b.onReconfigure,scope:b,beforerender:{fn:b.onBeforeRender,single:true,scope:b}})}a.relayEvents(b,b.relayedEvents);if(b.grid.ownerLockable){b.grid.ownerLockable.relayEvents(b,b.relayedEvents)}a.isEditable=true;a.editingPlugin=a.view.editingPlugin=b},onBeforeReconfigure:function(){this.reconfiguring=true},onReconfigure:function(){this.setup();delete this.reconfiguring},onBeforeRender:function(){this.setup()},setup:function(){this.initFieldAccessors(this.grid.getTopLevelColumnManager().getColumns())},destroy:function(){var b=this,a=b.grid;Ext.destroy(b.keyNav);b.clearListeners();if(a){a.editingPlugin=a.view.editingPlugin=b.grid=b.view=b.editor=b.keyNav=null}},getEditStyle:function(){return this.editStyle},initFieldAccessors:function(d){if(d.isGroupHeader){d=d.getGridColumns()}else{if(!Ext.isArray(d)){d=[d]}}var h=this,j,i=d.length,b=function(c,k){return h.getColumnField(this,k)},a=function(){return h.hasColumnField(this)},g=function(c){h.setColumnField(this,c)},e;for(j=0;j<i;j++){e=d[j];if(!e.getEditor){e.getEditor=b}if(!e.hasEditor){e.hasEditor=a}if(!e.setEditor){e.setEditor=g}}},removeFieldAccessors:function(a){if(a.isGroupHeader){a=a.getGridColumns()}else{if(!Ext.isArray(a)){a=[a]}}var e,d=a.length,b;for(e=0;e<d;e++){b=a[e];b.getEditor=b.hasEditor=b.setEditor=b.field=b.editor=null}},getColumnField:function(c,a){var b=this,d=c.field;if(!(d&&d.isFormField)){d=c.field=b.createColumnField(c,a)}if(d&&d.ui==="default"&&!d.hasOwnProperty("ui")){d.ui=b.defaultFieldUI}return d},hasColumnField:function(a){return !!(a.field&&a.field.isComponent)},setColumnField:function(a,b){a.field=b;a.field=this.createColumnField(a)},createColumnField:function(c,a){var d=c.field,b;if(!d&&c.editor){d=c.editor;c.editor=null}if(!d&&a){d=a}if(d){b=c.dataIndex;if(d.isComponent){d.column=c}else{if(Ext.isString(d)){d={name:b,xtype:d,column:c}}else{d=Ext.apply({name:b,column:c},d)}d=Ext.ComponentManager.create(d,this.defaultFieldXType)}d.dataIndex=b;d.isEditorComponent=true;c.field=d}return d},initEvents:function(){var a=this;a.initEditTriggers();a.initCancelTriggers()},initCancelTriggers:Ext.emptyFn,initEditTriggers:function(){var b=this,a=b.view;if(b.triggerEvent==="cellfocus"){b.mon(a,"cellfocus",b.onCellFocus,b)}else{if(b.triggerEvent==="rowfocus"){b.mon(a,"rowfocus",b.onRowFocus,b)}else{if(a.getSelectionModel().isCellModel){a.onCellFocus=b.beforeViewCellFocus.bind(b)}b.mon(a,b.triggerEvent||("cell"+(b.clicksToEdit===1?"click":"dblclick")),b.onCellClick,b)}}b.initAddRemoveHeaderEvents();b.view.getNavigationModel().addKeyBindings({esc:b.onEscKey,scope:b})},beforeViewCellFocus:function(a){if(this.view.selModel.keyNavigation||!this.editing||!this.isCellEditable||!this.isCellEditable(a.row,a.columnHeader)){this.view.focusCell.apply(this.view,arguments)}},onRowFocus:function(a,c,b){this.startEdit(c,0)},onCellFocus:function(c,b,a){this.startEdit(a.row,a.column)},onCellClick:function(j,k,c,g,l,a,i){var d=j.expanderSelector,b=j.ownerCt.getColumnManager().getHeaderAtIndex(c),h=b.getEditor(g);if(this.shouldStartEdit(h)&&(!d||!i.getTarget(d))){this.startEdit(g,b)}},initAddRemoveHeaderEvents:function(){var a=this,b=a.grid.headerCt;a.mon(b,{scope:a,add:a.onColumnAdd,columnmove:a.onColumnMove,beforedestroy:a.beforeGridHeaderDestroy})},onColumnAdd:function(a,b){this.initFieldAccessors(b)},onColumnMove:Ext.emptyFn,onEscKey:function(b){if(this.editing){var a=Ext.getCmp(b.getTarget().getAttribute("componentId"));if(!(a&&a.isPickerField&&a.isExpanded)){return this.cancelEdit()}}},beforeEdit:Ext.emptyFn,shouldStartEdit:function(a){return !!a},startEdit:function(b,e){var d=this,c,a=d.grid.lockable?d.grid:d.view;if(!a.componentLayoutCounter){a.on({boxready:Ext.Function.bind(d.startEdit,d,[b,e]),single:true});return false}if(d.disabled||d.grid.collapsed||!d.grid.view.isVisible(true)){return false}c=d.getEditingContext(b,e);if(c==null){return false}if(!d.preventBeforeCheck){if(d.beforeEdit(c)===false||d.fireEvent("beforeedit",d,c)===false||c.cancel){return false}}return c},getEditingContext:function(e,c){var h=this,a=h.grid,g=a.visibleColumnManager,i,j,b,d,k;if(Ext.isNumber(c)){c=g.getHeaderAtIndex(c)}if(!c){return}if(c.hidden){c=c.next(":not([hidden])")||c.prev(":not([hidden])")}i=c.getRootHeaderCt().view;a.ensureVisible(e,{column:c});j=i.getRow(e);if(!j){return}d=g.getHeaderIndex(c);if(Ext.isNumber(e)){b=e;e=i.getRecord(j)}else{b=i.indexOf(j)}if(!e){return}k=new Ext.grid.CellContext(i).setAll(i,b,d,e,c);k.grid=a;k.store=i.dataSource;k.field=c.dataIndex;k.value=k.originalValue=e.get(c.dataIndex);k.row=j;k.node=i.getNode(e);return k},cancelEdit:function(){var a=this;a.editing=false;a.fireEvent("canceledit",a,a.context)},completeEdit:function(){var a=this;if(a.editing&&a.validateEdit()){a.fireEvent("edit",a,a.context)}a.context=null;a.editing=false},validateEdit:function(){var b=this,a=b.context;return b.fireEvent("validateedit",b,a)!==false&&!a.cancel}},1,0,0,0,["editing.editing"],[["observable",Ext.util.Observable]],[Ext.grid.plugin,"Editing"],0));(Ext.cmd.derive("Ext.grid.plugin.CellEditing",Ext.grid.plugin.Editing,{lockableScope:"both",init:function(a){var c=this,b=c.lockingPartner;Ext.grid.plugin.Editing.prototype.init.apply(this,arguments);if(b){if(b.editors){c.editors=b.editors}else{c.editors=b.editors=new Ext.util.MixedCollection(false,function(d){return d.editorId})}}else{c.editors=new Ext.util.MixedCollection(false,function(d){return d.editorId})}},beforeGridHeaderDestroy:function(h){var g=this,c=g.grid.getColumnManager().getColumns(),a=c.length,b,e,d;for(b=0;b<a;b++){e=c[b];d=g.editors.getByKey(e.getItemId());if(!d){d=e.editor||e.field}Ext.destroy(d);g.removeFieldAccessors(e)}},onReconfigure:function(c,a,b){if(b){this.editors.clear()}Ext.grid.plugin.Editing.prototype.onReconfigure.call(this)},destroy:function(){var a=this;if(a.editors){a.editors.each(Ext.destroy,Ext);a.editors.clear()}Ext.grid.plugin.Editing.prototype.destroy.apply(this,arguments)},initCancelTriggers:function(){var b=this,a=b.grid;b.mon(a,{columnresize:b.cancelEdit,columnmove:b.cancelEdit,scope:b})},isCellEditable:function(a,d){var c=this,b=c.getEditingContext(a,d);if(c.grid.view.isVisible(true)&&b){d=b.column;a=b.record;if(d&&c.getEditor(a,d)){return true}}},startEdit:function(c,h,d){var g=this,b,i,e,a;if(!d){g.preventBeforeCheck=true;d=Ext.grid.plugin.Editing.prototype.startEdit.apply(this,arguments);delete g.preventBeforeCheck;if(d===false){return false}}if(d&&d.view.isVisible(true)){a=d.view;c=d.record;h=d.column;if(h&&!h.getEditor(c)){return false}i=g.getActiveEditor();e=g.getEditor(c,h);if(i){b=e===i;g.completeEdit(!!e);if(g.editing){return false}else{if(!a.getRow(d.record)){i.hide();return false}}}if(g.beforeEdit(d)===false||g.fireEvent("beforeedit",g,d)===false||d.cancel){return}g.context=d;e=g.getEditor(c,d.column);a.scrollCellIntoView(a.getCell(c,h));if(e){if(b){e.editing=false;if(Ext.isIE){e.selectSameEditor=true}}g.showEditor(e,d,d.value);if(i&&!b){i.hide()}return true}return false}},showEditor:function(e,a,j){var h=this,d=a.record,i=a.view,c=a.column,b=i.getSelectionModel(),g;if(!c.up(h.view.ownerCt)){return h.lockingPartner.showEditor(e,h.lockingPartner.getEditingContext(d,c),j)}h.setEditingContext(a);g=b.getSelectionMode();if(!b.isCellSelected(i,d,c)&&(g!=="MULTI"||!b.getSelection().length||(b.getSelection().length===1&&b.isSelected(d)))){b.selectByPosition({row:d,column:c,view:i},g==="MULTI")}if(!i.cellFocused){i.getNavigationModel().setPosition(a,null,null,null,true)}i.getNavigationModel().setPosition();e.startEdit(i.getCell(d,c),j,a);if(e.editing){h.setActiveEditor(e);h.setActiveRecord(d);h.setActiveColumn(c);h.editing=true;h.scroll=i.el.getScroll()}else{i.getNavigationModel().setPosition(a,null,null,null,true)}},completeEdit:function(a){var b=this.getActiveEditor();if(b){b.completeEdit(a)}},setEditingContext:function(a){this.context=a;if(this.lockingPartner){this.lockingPartner.context=a}},setActiveEditor:function(a){this.activeEditor=a;if(this.lockingPartner){this.lockingPartner.activeEditor=a}},getActiveEditor:function(){return this.activeEditor},setActiveColumn:function(a){this.activeColumn=a;if(this.lockingPartner){this.lockingPartner.activeColumn=a}},getActiveColumn:function(){return this.activeColumn},setActiveRecord:function(a){this.activeRecord=a;if(this.lockingPartner){this.lockingPartner.activeRecord=a}},getActiveRecord:function(){return this.activeRecord},getEditor:function(a,e){var h=this,g=h.editors,d=e.getItemId(),c=g.getByKey(d),b=e.getView();if(!c){c=e.getEditor(a);if(!c){return false}if(c instanceof Ext.grid.CellEditor){c.floating=true}else{c=new Ext.grid.CellEditor({floating:true,editorId:d,field:c})}c.field.excludeForm=true;if(c.ownerCmp!==b){c.ownerCmp=b;c.on({scope:h,specialkey:h.onSpecialKey,complete:h.onEditComplete,canceledit:h.cancelEdit});e.on("removed",h.onColumnRemoved,h)}g.add(c)}if(e.isTreeColumn){c.isForTree=e.isTreeColumn;c.addCls("x-tree-cell-editor")}c.setGrid(h.grid);c.editingPlugin=h;return c},onColumnRemoved:function(d){var e=this,b=e.context,c,a=d.getView();if(b&&b.column===d){e.cancelEdit()}d.un("removed",e.onColumnRemoved,e);if(d.getEditor&&(c=d.getEditor())&&c.ownerCmp===a){c.ownerCmp=null;c.un({scope:e,specialkey:e.onSpecialKey,complete:e.onEditComplete,canceledit:e.cancelEdit})}},setColumnField:function(b,c){var a=this.editors.getByKey(b.getItemId());Ext.destroy(a,b.field);this.editors.removeAtKey(b.getItemId());Ext.grid.plugin.Editing.prototype.setColumnField.apply(this,arguments)},getCell:function(a,b){return this.grid.getView().getCell(a,b)},onSpecialKey:function(a,d,c){var b=this.context,g;if(c.getKey()===c.TAB){c.stopEvent();c.position=b;if(a){a.onEditorTab(c)}g=a.getRefOwner().getSelectionModel();b.setRow(b.record);return g.onEditorTab(a.editingPlugin,c)}},onEditComplete:function(h,l,c){var j=this,a=j.getActiveColumn(),i=j.getActiveEditor(),b=j.context,e=null,k,g,d;if(i){k=b.view;g=b.record;j.setActiveEditor(null);j.setActiveColumn(null);j.setActiveRecord(null);b.value=l;if(!g.isEqual(l,c)){g.set(a.dataIndex,l);b.rowIdx=k.indexOf(g)}if(i.el.contains(Ext.Element.getActiveElement())||i.currentlyFocused){d=k.getSelectionModel();e=d.getSelectionMode()==="MULTI"&&(d.getSelection().length>1||!d.isSelected(g));k.getNavigationModel().setPosition(b,null,null,null,e);i.currentlyFocused=null}j.fireEvent("edit",j,b);j.editing=false}},cancelEdit:function(){var e=this,c=e.context,d=e.getActiveEditor(),b,i,a,h,g;if(d&&!d.isDestroyed){e.setActiveEditor(null);e.setActiveColumn(null);e.setActiveRecord(null);b=c.view;g=d.field;if(g){e.context.value="editedValue" in d?d.editedValue:d.getValue()}if(d.el.contains(Ext.Element.getActiveElement())){i=b.getSelectionModel();h=i.getSelectionMode()==="MULTI"&&(i.getSelection().length>1||!i.isSelected(a));if(g){d.cancelEdit()}b.getNavigationModel().setPosition(c,null,null,null,h)}Ext.grid.plugin.Editing.prototype.cancelEdit.apply(this,arguments);return}return true},startEditByPosition:function(b){var d=this,a=d.grid.getColumnManager(),c;if(!b.isCellContext){b=new Ext.grid.CellContext(d.view).setPosition(b.row,d.grid.getColumnManager().getColumns()[b.column])}c=a.getHeaderIndex(b.column);b.column=a.getVisibleHeaderClosestToIndex(c);return d.startEdit(b.record,b.column)}},0,0,0,0,["plugin.cellediting"],0,[Ext.grid.plugin,"CellEditing"],0));(Ext.cmd.derive("Ext.plugin.AbstractClipboard",Ext.plugin.Abstract,{cachedConfig:{formats:{text:{get:"getTextData",put:"putTextData"}}},config:{memory:null,source:"system",system:"text"},destroy:function(){var a=this,c=a.keyMap,b=a.shared;if(c){a.keyMap=Ext.destroy(c);if(!--b.counter){b.textArea=Ext.destroy(b.textArea)}}else{a.renderListener=Ext.destroy(a.renderListener)}a.callParent()},init:function(a){var b=this;if(a.rendered){this.finishInit(a)}else{b.renderListener=a.on({render:function(){b.renderListener=null;b.finishInit(a)},destroyable:true,single:true})}},getTarget:function(a){return a.el},privates:{shared:{counter:0,data:null,textArea:null},applyMemory:function(a){a=this.applySource(a);return a},applySource:function(a){if(a){if(Ext.isString(a)){a=[a]}else{if(a.length===0){a=null}}}return a||null},doCutCopy:function(e,b){var d=this,a=d.allFormats||d.syncFormats(),h=d.getData(b,a),i=d.getMemory(),c=d.getSystem(),g;if(d.validateAction(e)===false){return}d.shared.data=i&&h;if(c){g=h[c];if(a[c]<3){delete h[c]}d.setClipboardData(g)}},doPaste:function(c,b){var a=this.getFormats();this[a[c].put](b,c)},finishInit:function(a){var b=this;b.keyMap=new Ext.util.KeyMap({target:b.getTarget(a),binding:[{ctrl:true,key:"x",fn:b.onCut,scope:b},{ctrl:true,key:"c",fn:b.onCopy,scope:b},{ctrl:true,key:"v",fn:b.onPaste,scope:b}]});++b.shared.counter;a.on({destroy:"destroy",scope:b})},getData:function(d,j){var e=this,a=e.getFormats(),g,c,b,h;if(Ext.isString(j)){g=e[a[j].get](j,d)}else{g={};h=[];if(j){for(b in j){h.push(b)}}else{h=Ext.Object.getAllKeys(a)}for(c=h.length;c-->0;){g[b]=e[a[b].get](b,d&&!c)}}return g},getHiddenTextArea:function(){var a=this.shared;return a.textArea||(a.textArea=Ext.getBody().createChild({tag:"textarea",tabIndex:-1,style:{position:"absolute",top:"-1000px",width:"1px",height:"1px"}}))},onCopy:function(b,a){this.doCutCopy(a,false)},onCut:function(b,a){this.doCutCopy(a,true)},onPaste:function(h,e){var d=this,a=d.shared.data,g=d.getSource(),b,j,c;if(d.validateAction(e)===false){return}if(g){for(b=0,j=g.length;b<j;++b){c=g[b];if(c==="system"){c=d.getSystem();d.pasteClipboardData(c);break}else{if(a&&(c in a)){d.doPaste(c,a[c]);break}}}}},pasteClipboardData:function(e){var d=this,a=window.clipboardData,c,b;if(a&&a.getData){d.doPaste(e,a.getData("text"))}else{b=Ext.Element.getActiveElement();c=d.getHiddenTextArea().dom;c.value="";c.focus();Ext.defer(function(){if(b){b.focus()}d.doPaste(e,c.value);c.value=""},100,d)}},setClipboardData:function(e){var a=window.clipboardData;if(a&&a.setData){a.setData("text",e)}else{var d=this,c=d.getHiddenTextArea().dom,b=Ext.Element.getActiveElement();c.value=e;c.focus();c.select();Ext.defer(function(){c.value="";if(b){b.focus()}},50)}},syncFormats:function(){var d=this,e={},g=d.getMemory(),c=d.getSystem(),a,b;if(c){e[c]=1}if(g){for(a=g.length;a-->0;){b=g[a];e[b]=e[b]?3:2}}return d.allFormats=e},updateMemory:function(){this.allFormats=null},updateSystem:function(){this.allFormats=null},validateAction:Ext.privateFn}},0,0,0,0,0,0,[Ext.plugin,"AbstractClipboard"],0));(Ext.cmd.derive("Ext.grid.plugin.Clipboard",Ext.plugin.AbstractClipboard,{formats:{cell:{get:"getCells"},html:{get:"getCellData"},raw:{get:"getCellData",put:"putCellData"}},getCellData:function(m,b){var j=this.getCmp(),g=j.getSelectionModel(),h=[],l=m==="raw",e=m==="text",p,n,c,k,a,d,o,i;g.getSelected().eachCell(function(q){i=q.column.getView();d=q.record;if(a!==d){a=d;h.push(o=[])}k=q.column.dataIndex;if(l){c=d.data[k]}else{p=i.all.item(q.rowIdx);if(!p){p=Ext.fly(i.createRowElement(d,q.rowIdx))}n=p.down(q.column.getCellInnerSelector());c=n.dom.innerHTML;if(e){c=Ext.util.Format.stripTags(c)}}o.push(c);if(b&&k){d.set(k,null)}});return Ext.util.TSV.encode(h)},getCells:function(i,b){var g=this.getCmp(),d=g.getSelectionModel(),e=[],h,a,c,j;d.getSelected().eachCell(function(k){c=k.record;if(a!==c){a=c;e.push(j={model:c.self,fields:[]})}h=k.column.dataIndex;j.fields.push({name:h,value:c.data[h]});if(b&&h){c.set(h,null)}});return e},getTextData:function(b,a){return this.getCellData(b,a)},putCellData:function(g,m){var o=Ext.util.TSV.decode(g),p,q=o.length,n=q?o[0].length:0,h,k,j=this.getCmp().getView(),a=j.dataSource.getCount()-1,e=j.getVisibleColumnManager().getColumns().length-1,c=j.getNavigationModel(),i=c.getPosition(),l,b,d={};if(!i){j.getSelectionModel().getSelected().eachCell(function(r){i=r;return false})}if(i){i=new Ext.grid.CellContext(j).setPosition(i.record,i.column)}else{i=new Ext.grid.CellContext(j).setPosition(0,0)}b=i.colIdx;for(h=0;h<q;h++){p=o[h];for(k=0;k<n;k++){l=i.column.dataIndex;if(l){switch(m){case"raw":d[l]=p[k];break;case"text":d[l]=p[k];break;case"html":break}}if(i.colIdx===e){break}i.setColumn(i.colIdx+1)}i.record.set(d);if(i.rowIdx===a){break}i.setPosition(i.rowIdx+1,b)}},putTextData:function(a,b){this.putCellData(a,b)},getTarget:function(a){return a.body},privates:{validateAction:function(b){var a=this.getCmp().getView();if(a.editingPlugin&&a.editingPlugin.editing){return false}}}},0,0,0,0,["plugin.clipboard"],0,[Ext.grid.plugin,"Clipboard"],0));(Ext.cmd.derive("Ext.grid.plugin.DragDrop",Ext.plugin.Abstract,{dragText:"{0} selected row{1}",ddGroup:"GridDD",enableDrop:true,enableDrag:true,containerScroll:false,init:function(a){Ext.applyIf(a,{copy:this.copy,allowCopy:this.allowCopy});a.on("render",this.onViewRender,this,{single:true})},destroy:function(){Ext.destroy(this.dragZone,this.dropZone)},enable:function(){var a=this;if(a.dragZone){a.dragZone.unlock()}if(a.dropZone){a.dropZone.unlock()}(arguments.callee.$previous||Ext.plugin.Abstract.prototype.enable).call(this)},disable:function(){var a=this;if(a.dragZone){a.dragZone.lock()}if(a.dropZone){a.dropZone.lock()}(arguments.callee.$previous||Ext.plugin.Abstract.prototype.disable).call(this)},onViewRender:function(a){var b=this,c=a.ownerCt.ownerGrid||a.ownerCt,d;c.relayEvents(a,["beforedrop","drop"]);if(b.enableDrag){if(b.containerScroll){d=a.getEl()}b.dragZone=new Ext.view.DragZone(Ext.apply({view:a,ddGroup:b.dragGroup||b.ddGroup,dragText:b.dragText,containerScroll:b.containerScroll,scrollEl:d},b.dragZone))}if(b.enableDrop){b.dropZone=new Ext.grid.ViewDropZone(Ext.apply({view:a,ddGroup:b.dropGroup||b.ddGroup},b.dropZone))}}},0,0,0,0,["plugin.gridviewdragdrop"],0,[Ext.grid.plugin,"DragDrop"],0));(Ext.cmd.derive("Ext.grid.plugin.RowEditing",Ext.grid.plugin.Editing,{lockableScope:"top",editStyle:"row",autoCancel:true,errorSummary:true,constructor:function(){var a=this;Ext.grid.plugin.Editing.prototype.constructor.apply(this,arguments);if(!a.clicksToMoveEditor){a.clicksToMoveEditor=a.clicksToEdit}a.autoCancel=!!a.autoCancel},destroy:function(){Ext.destroy(this.editor);Ext.grid.plugin.Editing.prototype.destroy.apply(this,arguments)},onBeforeReconfigure:function(){Ext.grid.plugin.Editing.prototype.onBeforeReconfigure.apply(this,arguments);this.cancelEdit()},onReconfigure:function(d,b,c){var a=this.editor;Ext.grid.plugin.Editing.prototype.onReconfigure.apply(this,arguments);if(c&&a&&a.rendered){a.needsSyncFieldWidths=true}},shouldStartEdit:function(a){return true},startEdit:function(a,e){var d=this,c=d.getEditor(),b;if(Ext.isEmpty(e)){e=d.grid.getTopLevelVisibleColumnManager().getHeaderAtIndex(0)}if(c.beforeEdit()!==false){b=Ext.grid.plugin.Editing.prototype.startEdit.call(this,a,e);if(b){d.context=b;if(d.lockingPartner){d.lockingPartner.cancelEdit()}c.startEdit(b.record,b.column,b);d.editing=true;return true}}return false},onEnterKey:function(d){var b=this,a=b.grid,c;if(b.editing){c=Ext.getCmp(d.getTarget().getAttribute("componentId"));if(!(c&&c.isPickerField&&c.isExpanded)){b.completeEdit()}}},cancelEdit:function(){var a=this;if(a.editing){a.getContextFieldValues();a.getEditor().cancelEdit();Ext.grid.plugin.Editing.prototype.cancelEdit.apply(this,arguments);return}return true},completeEdit:function(){var a=this;if(a.editing&&a.validateEdit()){a.editing=false;a.fireEvent("edit",a,a.context)}},validateEdit:function(){this.getContextFieldValues();return Ext.grid.plugin.Editing.prototype.validateEdit.apply(this,arguments)&&this.getEditor().completeEdit()},getEditor:function(){var a=this;if(!a.editor){a.editor=a.initEditor()}return a.editor},getContextFieldValues:function(){var g=this.editor,b=this.context,e=b.record,l={},c={},j=g.query(">[isFormField]"),h=j.length,d,a,k;for(d=0;d<h;d++){k=j[d];a=k.dataIndex;l[a]=k.getValue();c[a]=e.get(a)}Ext.apply(b,{newValues:l,originalValues:c})},initEditor:function(){return new Ext.grid.RowEditor(this.initEditorConfig())},initEditorConfig:function(){var h=this,c=h.grid,i=h.view,d=c.headerCt,e=["saveBtnText","cancelBtnText","errorsText","dirtyText"],j,a=e.length,g={autoCancel:h.autoCancel,errorSummary:h.errorSummary,fields:d.getGridColumns(),hidden:true,view:i,editingPlugin:h},k;for(j=0;j<a;j++){k=e[j];if(Ext.isDefined(h[k])){g[k]=h[k]}}return g},initEditTriggers:function(){var b=this,a=b.view,c=b.clicksToMoveEditor===1?"click":"dblclick";Ext.grid.plugin.Editing.prototype.initEditTriggers.apply(this,arguments);if(b.clicksToMoveEditor!==b.clicksToEdit){b.mon(a,"cell"+c,b.moveEditorByClick,b)}a.on({render:function(){b.mon(b.grid.headerCt,{scope:b,columnresize:b.onColumnResize,columnhide:b.onColumnHide,columnshow:b.onColumnShow})},single:true})},moveEditorByClick:function(){var a=this;if(a.editing){a.superclass.onCellClick.apply(a,arguments)}},onColumnAdd:function(a,c){if(c.isHeader){var d=this,b;d.initFieldAccessors(c);b=d.editor;if(b){b.onColumnAdd(c)}}},beforeGridHeaderDestroy:function(g){var c=this.grid.getColumnManager().getColumns(),a=c.length,b,d,e;for(b=0;b<a;b++){d=c[b];if(d.hasEditor){if(d.hasEditor()&&(e=d.getEditor())){e.destroy()}this.removeFieldAccessors(d)}}},onColumnResize:function(a,d,c){if(d.isHeader){var e=this,b=e.getEditor();if(b){b.onColumnResize(d,c)}}},onColumnHide:function(a,c){var d=this,b=d.getEditor();if(b){b.onColumnHide(c)}},onColumnShow:function(a,c){var d=this,b=d.getEditor();if(b){b.onColumnShow(c)}},onColumnMove:function(a,d,c,g){var e=this,b=e.getEditor();e.initFieldAccessors(d);if(b){b.onColumnMove(d,c,g)}},setColumnField:function(b,d){var c=this,a=c.getEditor();if(a){a.destroyColumnEditor(b)}Ext.grid.plugin.Editing.prototype.setColumnField.apply(this,arguments);if(a){a.insertColumnEditor(b)}},createColumnField:function(c,a){var b=this.editor,d;if(b){d=b.getDefaultFieldCfg()}return Ext.grid.plugin.Editing.prototype.createColumnField.call(this,c,a||d)}},1,0,0,0,["plugin.rowediting"],0,[Ext.grid.plugin,"RowEditing"],0));Ext.define("Ext.rtl.grid.plugin.RowEditing",{override:"Ext.grid.plugin.RowEditing",initEditorConfig:function(){var a=arguments.callee.$previous.call(this);a.rtl=this.grid.getInherited().rtl;return a}});(Ext.cmd.derive("Ext.grid.plugin.RowExpander",Ext.plugin.Abstract,{lockableScope:"normal",columnWidth:24,rowBodyTpl:null,lockedTpl:null,expandOnEnter:true,expandOnDblClick:true,selectRowOnExpand:false,headerWidth:24,bodyBefore:false,rowBodyTrSelector:".x-grid-rowbody-tr",rowBodyHiddenCls:"x-grid-row-body-hidden",rowCollapsedCls:"x-grid-row-collapsed",addCollapsedCls:{fn:function(b,a,c){var d=this.rowExpander;if(!d.recordsExpanded[a.record.internalId]){a.itemClasses.push(d.rowCollapsedCls)}this.nextTpl.applyOut(a,b,c)},syncRowHeights:function(a,b){this.rowExpander.syncRowHeights(a,b)},priority:20000},setCmp:function(a){var c=this,b;Ext.plugin.Abstract.prototype.setCmp.apply(this,arguments);c.recordsExpanded={};c.rowBodyTpl=Ext.XTemplate.getTpl(c,"rowBodyTpl");b=c.getFeatureConfig(a);if(a.features){a.features=Ext.Array.push(b,a.features)}else{a.features=b}},getFeatureConfig:function(a){var c=this,b=[],d={ftype:"rowbody",rowExpander:c,bodyBefore:c.bodyBefore,recordsExpanded:c.recordsExpanded,rowBodyHiddenCls:c.rowBodyHiddenCls,rowCollapsedCls:c.rowCollapsedCls,setupRowData:c.getRowBodyFeatureData,setup:c.setup};b.push(Ext.apply({lockableScope:"normal",getRowBodyContents:c.getRowBodyContentsFn(c.rowBodyTpl)},d));if(a.enableLocking){b.push(Ext.apply({lockableScope:"locked",getRowBodyContents:c.lockedTpl?c.getRowBodyContentsFn(c.lockedTpl):function(){return""}},d))}return b},getRowBodyContentsFn:function(a){var b=this;return function(c){a.owner=b;return a.applyTemplate(c.record.getData())}},init:function(b){if(b.lockable){b=b.normalGrid}var d=this,e=b.ownerLockable,a,c;Ext.plugin.Abstract.prototype.init.apply(this,arguments);d.grid=b;a=d.view=b.getView();d.bindView(a);a.addRowTpl(d.addCollapsedCls).rowExpander=d;if(e){d.addExpander(e.lockedGrid.headerCt.items.getCount()?e.lockedGrid:b);c=e.lockedGrid.getView();d.bindView(c);c.addRowTpl(d.addCollapsedCls).rowExpander=d;e.syncRowHeight=true;e.mon(e,{processcolumns:d.onLockableProcessColumns,lockcolumn:d.onColumnLock,unlockcolumn:d.onColumnUnlock,scope:d});d.viewListeners=a.on({itemadd:Ext.Function.createAnimationFrame(e.syncRowHeights,e)})}else{d.addExpander(b);b.on("beforereconfigure",d.beforeReconfigure,d)}},beforeReconfigure:function(d,a,c,g,b){var e=this;if(e.viewListeners){e.viewListeners.destroy()}if(c){e.expanderColumn=new Ext.grid.Column(e.getHeaderConfig());c.unshift(e.expanderColumn)}},onLockableProcessColumns:function(c,b,a){this.addExpander(b.length?c.lockedGrid:c.normalGrid)},addExpander:function(b){var a=this,c=a.getHeaderConfig();if(b.isLocked&&b.ownerLockable.shrinkWrapLocked){b.width+=c.width;a.grid=b}a.expanderColumn=b.headerCt.insert(0,c);b.getSelectionModel().injectCheckbox=1},getRowBodyFeatureData:function(b,a,d){var c=this;c.self.prototype.setupRowData.apply(c,arguments);d.rowBody=c.getRowBodyContents(d);d.rowBodyCls=c.recordsExpanded[b.internalId]?"":c.rowBodyHiddenCls},bindView:function(a){if(this.expandOnEnter){a.on("itemkeydown",this.onKeyDown,this)}if(this.expandOnDblClick){a.on("itemdblclick",this.onDblClick,this)}},onKeyDown:function(k,g,l,a,h){if(h.getKey()===h.ENTER){var b=k.store,c=k.getSelectionModel().getSelection(),j=c.length,d=0;for(;d<j;d++){a=b.indexOf(c[d]);this.toggleRow(a,c[d])}}},onDblClick:function(b,a,g,c,d){this.toggleRow(c,a)},toggleRow:function(b,g){var j=this,k=j.view,m=k.bufferedRenderer,h=k.getScrollable(),n=k,c=k.getNode(b),e=Ext.fly(c),d,i=e.down(j.rowBodyTrSelector,true),o=e.hasCls(j.rowCollapsedCls),l=o?"removeCls":"addCls",a=j.grid.ownerLockable;e[l](j.rowCollapsedCls);Ext.fly(i)[l](j.rowBodyHiddenCls);j.recordsExpanded[g.internalId]=o;if(j.grid.ownerLockable){n=a.getView();if(a.lockedGrid.isVisible()){k=a.view.lockedGrid.view;d=Ext.fly(k.getNode(b));if(d){d[l](j.rowCollapsedCls);i=d.down(j.rowBodyTrSelector,true);Ext.fly(i)[l](j.rowBodyHiddenCls)}}}n.fireEvent(o?"expandbody":"collapsebody",c,g,i);k.refreshSize(true);if(h){if(m){m.refreshSize()}else{h.refresh(true)}}},syncRowHeights:function(a,h){var d=this,c=Ext.fly(a).down(d.rowBodyTrSelector),b=Ext.fly(h).down(d.rowBodyTrSelector),g,e;if(b.isVisible()){if((g=c.getHeight())!==(e=b.getHeight())){if(g>e){b.setHeight(g)}else{c.setHeight(e)}}}else{c.dom.style.height=b.dom.style.height=""}},onColumnUnlock:function(c,a){var b=this,d;c=b.grid.ownerLockable;d=c.lockedGrid.visibleColumnManager.getColumns();if(d.length===1){c.normalGrid.removeCls("x-grid-hide-row-expander-spacer");c.lockedGrid.addCls("x-grid-hide-row-expander-spacer");if(d[0]===b.expanderColumn){c.unlock(b.expanderColumn);b.grid=c.normalGrid}else{c.lock(b.expanderColumn,0)}}},onColumnLock:function(c,a){var b=this,e,d;c=b.grid.ownerLockable;e=c.lockedGrid.visibleColumnManager.getColumns();if(e.length===1){b.grid=d=c.lockedGrid;d.headerCt.insert(0,b.expanderColumn);c.normalGrid.addCls("x-grid-hide-row-expander-spacer");c.lockedGrid.removeCls("x-grid-hide-row-expander-spacer")}},getHeaderConfig:function(){var b=this,a=b.grid.ownerLockable;return{width:b.headerWidth,lockable:false,autoLock:true,sortable:false,resizable:false,draggable:false,hideable:false,menuDisabled:true,tdCls:"x-grid-cell-special",innerCls:"x-grid-cell-inner-row-expander",renderer:function(){return'<div class="x-grid-row-expander" role="presentation"></div>'},processEvent:function(i,g,c,k,h,j,d){if(j.getTarget(".x-grid-row-expander")){if(i==="click"){b.toggleRow(k,d);return b.selectRowOnExpand}}},isLocked:function(){return a&&(a.lockedGrid.isVisible()||this.locked)},editRenderer:function(){return"&#160;"}}}},0,0,0,0,["plugin.rowexpander"],0,[Ext.grid.plugin,"RowExpander"],0));(Ext.cmd.derive("Ext.grid.property.Grid",Ext.grid.Panel,{alternateClassName:"Ext.grid.PropertyGrid",valueField:"value",nameField:"name",inferTypes:true,enableColumnMove:false,columnLines:true,stripeRows:false,trackMouseOver:false,clicksToEdit:1,enableHdMenu:false,gridCls:"x-property-grid",initComponent:function(){var a=this;a.source=a.source||{};a.addCls(a.gridCls);a.plugins=a.plugins||[];a.plugins.push(new Ext.grid.plugin.CellEditing({clicksToEdit:a.clicksToEdit,startEdit:function(b,c){return this.self.prototype.startEdit.call(this,b,a.valueColumn)}}));a.selModel={type:"cellmodel",onCellSelect:function(b){b.column=a.valueColumn;b.colIdx=a.valueColumn.getVisibleIndex();return this.self.prototype.onCellSelect.call(this,b)}};a.sourceConfig=Ext.apply({},a.sourceConfig);if(!a.store){a.propStore=a.store=new Ext.grid.property.Store(a,a.source)}a.configure(a.sourceConfig);if(a.sortableColumns){a.store.sort("name","ASC")}a.columns=new Ext.grid.property.HeaderContainer(a,a.store);Ext.grid.Panel.prototype.initComponent.call(this);a.getView().walkCells=this.walkCells;a.editors={date:new Ext.grid.CellEditor({field:new Ext.form.field.Date({selectOnFocus:true})}),string:new Ext.grid.CellEditor({field:new Ext.form.field.Text({selectOnFocus:true})}),number:new Ext.grid.CellEditor({field:new Ext.form.field.Number({selectOnFocus:true})}),"boolean":new Ext.grid.CellEditor({field:new Ext.form.field.ComboBox({editable:false,store:[[true,a.headerCt.trueText],[false,a.headerCt.falseText]]})})};a.store.on("update",a.onUpdate,a)},configure:function(b){var h=this,k=h.store,d=0,e=h.store.getCount(),l=h.nameField,m=h.valueField,a,j,c,g;h.configureLegacy(b);if(h.inferTypes){for(;d<e;++d){c=k.getAt(d);a=c.get(l);if(!h.getConfigProp(a,"type")){j=c.get(m);if(Ext.isDate(j)){g="date"}else{if(Ext.isNumber(j)){g="number"}else{if(Ext.isBoolean(j)){g="boolean"}else{g="string"}}}h.setConfigProp(a,"type",g)}}}},getConfigProp:function(e,d,a){var c=this.sourceConfig[e],b;if(c){b=c[d]}return b||a},setConfigProp:function(e,b,c){var a=this.sourceConfig,d=a[e];if(!d){d=a[e]={__copied:true}}else{if(!d.__copied){d=Ext.apply({__copied:true},d);a[e]=d}}d[b]=c;return c},configureLegacy:function(a){var b=this;b.copyLegacyObject(a,b.customRenderers,"renderer");b.copyLegacyObject(a,b.customEditors,"editor");b.copyLegacyObject(a,b.propertyNames,"displayName")},copyLegacyObject:function(a,d,c){var b;for(b in d){if(d.hasOwnProperty(b)){if(!a[b]){a[b]={}}a[b][c]=d[b]}}},onUpdate:function(d,a,c){var g=this,b,e;if(g.rendered&&c===Ext.data.Model.EDIT){b=a.get(g.valueField);e=a.modified.value;if(g.fireEvent("beforepropertychange",g.source,a.getId(),b,e)!==false){if(g.source){g.source[a.getId()]=b}a.commit();g.fireEvent("propertychange",g.source,a.getId(),b,e)}else{a.reject()}}},walkCells:function(j,i,h,g,a,c){var d=this,b=d.ownerCt.valueColumn;if(i==="left"){i="up"}else{if(i==="right"){i="down"}}j=Ext.view.Table.prototype.walkCells.call(d,j,i,h,g,a,c);j.column=b;j.colIdx=b.getVisibleIndex();return j},getCellEditor:function(d,b){var h=this,c=d.get(h.nameField),a=d.get(h.valueField),e=h.getConfigProp(c,"editor"),i=h.getConfigProp(c,"type"),g=h.editors,j;if(e){if(!(e instanceof Ext.grid.CellEditor)){if(!(e instanceof Ext.form.field.Base)){e=Ext.ComponentManager.create(e,"textfield")}e=h.setConfigProp(c,"editor",new Ext.grid.CellEditor({field:e}))}}else{if(i){switch(i){case"date":e=g.date;break;case"number":e=g.number;break;case"boolean":e=h.editors["boolean"];break;default:e=g.string}}else{if(Ext.isDate(a)){e=g.date}else{if(Ext.isNumber(a)){e=g.number}else{if(Ext.isBoolean(a)){e=g["boolean"]}else{e=g.string}}}}}j=e.field;if(j&&j.ui==="default"&&!j.hasOwnProperty("ui")){j.ui=h.editingPlugin.defaultFieldUI}e.editorId=c;e.field.column=h.valueColumn;return e},beforeDestroy:function(){var a=this;Ext.grid.Panel.prototype.beforeDestroy.call(this);a.destroyEditors(a.editors);a.destroyEditors(a.customEditors);delete a.source},destroyEditors:function(b){for(var a in b){if(b.hasOwnProperty(a)){Ext.destroy(b[a])}}},setSource:function(b,c){var a=this;a.source=b;if(c!==undefined){a.sourceConfig=Ext.apply({},c);a.configure(a.sourceConfig)}a.propStore.setSource(b)},getSource:function(){return this.propStore.getSource()},getProperty:function(a){return this.propStore.getProperty(a)},setProperty:function(c,b,a){this.propStore.setValue(c,b,a)},removeProperty:function(a){this.propStore.remove(a)}},0,["propertygrid"],["component","box","container","panel","tablepanel","gridpanel","grid","propertygrid"],{component:true,box:true,container:true,panel:true,tablepanel:true,gridpanel:true,grid:true,propertygrid:true},["widget.propertygrid"],0,[Ext.grid.property,"Grid",Ext.grid,"PropertyGrid"],0));(Ext.cmd.derive("Ext.grid.property.HeaderContainer",Ext.grid.header.Container,{alternateClassName:"Ext.grid.PropertyColumnModel",nameWidth:115,nameText:"Name",valueText:"Value",dateFormat:"m/j/Y",trueText:"true",falseText:"false",nameColumnCls:"x-grid-property-name",nameColumnInnerCls:"x-grid-cell-inner-property-name",constructor:function(b,a){var c=this;c.grid=b;c.store=a;Ext.grid.header.Container.prototype.constructor.call(this,{isRootHeader:true,enableColumnResize:Ext.isDefined(b.enableColumnResize)?b.enableColumnResize:c.enableColumnResize,enableColumnMove:Ext.isDefined(b.enableColumnMove)?b.enableColumnMove:c.enableColumnMove,items:[{header:c.nameText,width:b.nameColumnWidth||c.nameWidth,sortable:b.sortableColumns,dataIndex:b.nameField,scope:c,renderer:c.renderProp,itemId:b.nameField,menuDisabled:true,tdCls:c.nameColumnCls,innerCls:c.nameColumnInnerCls},{header:c.valueText,scope:c,renderer:c.renderCell,getEditor:c.getCellEditor.bind(c),sortable:b.sortableColumns,flex:1,fixed:true,dataIndex:b.valueField,itemId:b.valueField,menuDisabled:true}]});c.grid.valueColumn=c.items.getAt(1)},getCellEditor:function(a){return this.grid.getCellEditor(a,this)},renderProp:function(a){return this.getPropertyName(a)},renderCell:function(h,e,g){var c=this,b=c.grid,d=b.getConfigProp(g.get(b.nameField),"renderer"),a=h;if(d){return d.apply(c,arguments)}if(Ext.isDate(h)){a=c.renderDate(h)}else{if(Ext.isBoolean(h)){a=c.renderBool(h)}}return Ext.util.Format.htmlEncode(a)},renderDate:Ext.util.Format.date,renderBool:function(a){return this[a?"trueText":"falseText"]},getPropertyName:function(a){return this.grid.getConfigProp(a,"displayName",a)}},1,0,["component","box","container","headercontainer"],{component:true,box:true,container:true,headercontainer:true},0,0,[Ext.grid.property,"HeaderContainer",Ext.grid,"PropertyColumnModel"],0));(Ext.cmd.derive("Ext.grid.property.Property",Ext.data.Model,{alternateClassName:"Ext.PropGridProperty",fields:[{name:"name",type:"string"},{name:"value"}],idProperty:"name",constructor:function(b,a){if(!Ext.isObject(b)){b={name:b,value:a}}Ext.data.Model.prototype.constructor.call(this,b)}},1,0,0,0,0,0,[Ext.grid.property,"Property",Ext,"PropGridProperty"],0));(Ext.cmd.derive("Ext.grid.property.Reader",Ext.data.reader.Reader,{successProperty:null,totalProperty:null,messageProperty:null,read:function(a){return this.readRecords(a)},readRecords:function(b){var e=this.getModel(),a={records:[],success:true},d,c;for(c in b){if(b.hasOwnProperty(c)){d=b[c];if(this.isEditableValue(d)){a.records.push(new e({name:c,value:d}))}}}a.total=a.count=a.records.length;return new Ext.data.ResultSet(a)},isEditableValue:function(a){return Ext.isPrimitive(a)||Ext.isDate(a)||a===null}},0,0,0,0,0,0,[Ext.grid.property,"Reader"],0));(Ext.cmd.derive("Ext.grid.property.Store",Ext.data.Store,{alternateClassName:"Ext.grid.PropertyStore",remoteSort:true,constructor:function(a,c){var b=this;b.grid=a;b.source=c;Ext.data.Store.prototype.constructor.call(this,{data:c,model:Ext.grid.property.Property,proxy:b.getProxy()})},getProxy:function(){var a=this.proxy;if(!a){a=this.proxy=new Ext.data.proxy.Memory({model:Ext.grid.property.Property,reader:this.getReader()})}return a},getReader:function(){var a=this.reader;if(!a){a=this.reader=new Ext.grid.property.Reader({model:Ext.grid.property.Property})}return a},setSource:function(a){var b=this;b.source=a;b.suspendEvents();b.removeAll();b.getProxy().setData(a);b.load();b.resumeEvents();b.fireEvent("datachanged",b);b.fireEvent("refresh",b)},getProperty:function(c){var b=Ext.isNumber(c)?this.getAt(c):this.getById(c),a=null;if(b){a=b.get("value")}return a},setValue:function(e,c,a){var b=this,d=b.getRec(e);if(d){d.set("value",c);b.source[e]=c}else{if(a){b.source[e]=c;d=new Ext.grid.property.Property({name:e,value:c},e);b.add(d)}}},remove:function(b){var a=this.getRec(b);if(a){Ext.data.Store.prototype.remove.call(this,a);delete this.source[b]}},getRec:function(a){return this.getById(a)},getSource:function(){return this.source},onDestroy:function(){Ext.destroy(this.reader,this.proxy);Ext.data.Store.prototype.onDestroy.call(this)}},1,0,0,0,0,0,[Ext.grid.property,"Store",Ext.grid,"PropertyStore"],0));(Ext.cmd.derive("Ext.grid.selection.Selection",Ext.Base,{constructor:function(a){this.view=a.ownerGrid.view}},1,0,0,0,0,0,[Ext.grid.selection,"Selection"],0));(Ext.cmd.derive("Ext.grid.selection.Cells",Ext.grid.selection.Selection,{type:"cells",isCells:true,clone:function(){var b=this,a=new b.self(b.view);if(b.startCell){a.startCell=b.startCell.clone();a.endCell=b.endCell.clone()}return a},contains:function(a){var b;if(!a||!a.isCellContext){return false}if(this.startCell){b=this.getRowRange();if(a.rowIdx>=b[0]&&a.rowIdx<=b[1]){b=this.getColumnRange();return(a.colIdx>=b[0]&&a.colIdx<=b[1])}}return false},eachRow:function(c,b){var e=this,g=e.getRowRange(),a=new Ext.grid.CellContext(e.view),d;for(d=g[0];d<=g[1];d++){a.setRow(d);if(c.call(b||e,a.record)===false){return}}},eachColumn:function(d,c){var e=this,a=e.getColumnRange(),b=new Ext.grid.CellContext(e.view),g;for(g=a[0];g<=a[1];g++){b.setColumn(g);if(d.call(c||e,b.column,g)===false){return}}},eachCell:function(d,c){var g=this,h=g.getRowRange(),a=g.getColumnRange(),b=new Ext.grid.CellContext(g.view),e,i;for(e=h[0];e<=h[1];e++){b.setRow(e);for(i=a[0];i<=a[1];i++){b.setColumn(i);if(d.call(c||g,b,i,e)===false){return}}}},getFirstRowIndex:function(){return this.startCell?Math.min(this.startCell.rowIdx,this.endCell.rowIdx):0},getLastRowIndex:function(){return this.startCell?Math.max(this.startCell.rowIdx,this.endCell.rowIdx):-1},getFirstColumnIndex:function(){return this.startCell?Math.min(this.startCell.colIdx,this.endCell.colIdx):0},getLastColumnIndex:function(){return this.startCell?Math.max(this.startCell.colIdx,this.endCell.colIdx):-1},privates:{clear:function(){var b=this,a=b.view;b.eachCell(function(c){a.onCellDeselect(c)});b.startCell=b.endCell=null},setRangeStart:function(a){this.startCell=(this.endCell=a.clone()).clone();this.view.onCellSelect(a)},setRangeEnd:function(b){var k=this,i,h,c,j,g,n,a,e,l=k.view,o=l.all,m=new Ext.grid.CellContext(l),d=l.getVisibleColumnManager().getColumns().length-1;k.endCell=b.clone();i=k.getRange();h=k.lastRange||i;c=Math.max(Math.min(i[0][1],h[0][1]),o.startIndex);j=Math.min(Math.max(i[1][1],h[1][1]),o.endIndex);g=Math.min(i[0][0],h[0][0]);n=Math.min(Math.max(i[1][0],h[1][0]),d);for(a=c;a<=j;a++){for(e=g;e<=n;e++){m.setPosition(a,e);if(a<i[0][1]||a>i[1][1]||e<i[0][0]||e>i[1][0]){l.onCellDeselect(m)}else{l.onCellSelect(m)}}}k.lastRange=i},getRange:function(){return[[this.getFirstColumnIndex(),this.getFirstRowIndex()],[this.getLastColumnIndex(),this.getLastRowIndex()]]},getRangeSize:function(){return this.getCount()},getCount:function(){var a=this.getRange();return(a[1][0]-a[0][0]+1)*(a[1][1]-a[0][1]+1)},selectAll:function(){var b=this,a=b.view;b.clear();b.setRangeStart(new Ext.grid.CellContext(a).setPosition(0,0));b.setRangeEnd(new Ext.grid.CellContext(a).setPosition(a.dataSource.getCount()-1,a.getVisibleColumnManager().getColumns().length-1))},isAllSelected:function(){var b=this.rangeStart,a=this.rangeEnd;if(b){if(!b.colIdx&&!b.rowIdx){return a.colIdx===a.view.getVisibleColumnManager().getColumns().length-1&&a.rowIdx===a.view.dataSource.getCount-1}}return false},getColumnRange:function(){return[this.getFirstColumnIndex(),this.getLastColumnIndex()]},getRowRange:function(){return[this.getFirstRowIndex(),this.getLastRowIndex()]}}},0,0,0,0,0,0,[Ext.grid.selection,"Cells"],0));(Ext.cmd.derive("Ext.grid.selection.Columns",Ext.grid.selection.Selection,{type:"columns",isColumns:true,clone:function(){var c=this,a=new c.self(c.view),b=c.selectedColumns;if(b){a.selectedColumns=Ext.Array.slice(b)}return a},eachRow:function(c,b){var a=this.selectedColumns;if(a&&a.length){this.view.dataSource.each(c,b||this)}},eachColumn:function(h,g){var j=this,b=j.view,e=j.selectedColumns,a,d,c=new Ext.grid.CellContext(b);if(e){a=e.length;for(d=0;d<a;d++){c.setColumn(e[d]);if(h.call(g||j,c.column,c.colIdx)===false){return false}}}},eachCell:function(h,g){var j=this,b=j.view,e=j.selectedColumns,a,d,c=new Ext.grid.CellContext(b);if(e){a=e.length;b.dataSource.each(function(i){c.setRow(i);for(d=0;d<a;d++){c.setColumn(e[d]);if(h.call(g||j,c,c.colIdx,c.rowIdx)===false){return false}}})}},contains:function(b){var a=this.selectedColumns;if(b&&b.isColumn&&a&&a.length){return Ext.Array.contains(a,b)}return false},getCount:function(){var a=this.selectedColumns;return a?a.length:0},getColumns:function(){return this.selectedColumns||[]},privates:{add:function(a){Ext.Array.include((this.selectedColumns||(this.selectedColumns=[])),a);this.refreshColumns(a)},clear:function(){var a=this,b=a.selectedColumns;if(b&&b.length){a.selectedColumns=[];a.refreshColumns.apply(a,b)}},setRangeStart:function(a){var b=this,c=b.getColumns();b.startColumn=a;b.selectedColumns=[a];c.push(a);b.refreshColumns.apply(b,c)},setRangeEnd:function(h){var d=this,g=d.getColumns(),c=this.view.ownerGrid.getVisibleColumnManager().getColumns(),e=d.startColumn.getVisibleIndex(),a=h.getVisibleIndex(),b;if(a<e){b=e;e=a;a=b}d.selectedColumns=[];for(b=e;b<=a;b++){d.selectedColumns.push(c[b]);g.push(c[b])}d.refreshColumns.apply(d,g)},isAllSelected:function(){var a=this.selectedColumns;return a&&a.length===this.view.ownerGrid.getVisibleColumnManager().getColumns().length},refreshColumns:function(b){var i=this,j=i.view,k=j.all,a,c=arguments,h=c.length,e,g=new Ext.grid.CellContext(j),d=[];if(j.rendered){for(e=0;e<h;e++){d[e]=i.contains(c[e])}for(a=k.startIndex;a<=k.endIndex;a++){g.setRow(a);for(e=0;e<h;e++){g.setColumn(c[e]);if(d[e]){j.onCellSelect(g)}else{j.onCellDeselect(g)}}}}},remove:function(a){if(this.selectedColumns){Ext.Array.remove(this.selectedColumns,a);if(a.getView()&&a.isVisible()){this.refreshColumns(a)}}},selectAll:function(){var a=this;a.clear();a.selectedColumns=a.view.getVisibleColumnManager().getColumns();a.refreshColumns.apply(a,a.selectedColumns)}}},0,0,0,0,0,0,[Ext.grid.selection,"Columns"],0));(Ext.cmd.derive("Ext.grid.selection.Rows",Ext.grid.selection.Selection,{type:"rows",isRows:true,clone:function(){var b=this,a=new b.self(b.view);if(b.selectedRecords){a.selectedRecords=b.selectedRecords.clone()}if(b.rangeStart){a.setRangeStart(b.rangeStart);a.setRangeEnd(b.rangeEnd)}return a},add:function(a){var b=this.selectedRecords||(this.selectedRecords=this.createRecordCollection());if(!b.byInternalId.get(a.internalId)){b.add(a);this.view.onRowSelect(a)}},remove:function(a){var b=this;if(b.selectedRecords&&b.selectedRecords.byInternalId.get(a.internalId)){b.selectedRecords.remove(a);b.view.onRowDeselect(a);b.allSelected=false;return true}},contains:function(c){if(!c||!c.isModel){return false}var e=this,b=false,g=e.selectedRecords,a,d;if(e.allSelected){e.add(c);return true}if(g){b=!!g.byInternalId.get(c.internalId)}if(!b&&e.rangeStart!=null){d=e.getRange();a=e.view.dataSource.indexOf(c);b=a>=d[0]&&a<=d[1]}return b},getCount:function(){var e=this,g=e.selectedRecords,a=g?g.getCount():0,c=e.getRange(),d,b=e.view.dataSource;for(d=c[0];d<=c[1];d++){if(!g||!g.byInternalId.get(b.getAt(d).internalId)){a++}}return a},getRecords:function(){var a=this.selectedRecords;return a?a.getRange():[]},selectAll:function(){var a=this;a.clear();a.setRangeStart(0);a.setRangeEnd(a.view.dataSource.getCount()-1);a.addRange();a.allSelected=true},eachRow:function(b,a){var c=this.selectedRecords;if(c){c.each(b,a||this)}},eachColumn:function(e,d){var c=this.view.getVisibleColumnManager().getColumns(),a=c.length,b;if(this.selectedRecords){for(b=0;b<a;b++){if(e.call(this||d,c[b],b)===false){return}}}},eachCell:function(k,o){var h=this,m=h.selectedRecords,l=h.view,b=l.ownerGrid.getVisibleColumnManager().getColumns(),n,e,c,a,g,p,d=false;if(b){n=b.length;a=new Ext.grid.CellContext(l);if(m){m.each(function(i){a.setRow(i);for(e=0;e<n;e++){a.setColumn(b[e]);if(k.call(o||h,a,a.colIdx,a.rowIdx)===false){d=true;return false}}})}if(!d&&h.rangeStart!=null){g=h.getRange();h.view.dataSource.getRange(g[0],g[1],{callback:function(i){p=i.length;for(e=0;!d&&e<p;e++){a.setRow(i[e]);for(c=0;!d&&c<n;c++){a.setColumn(b[c]);if(k.call(o||h,a,a.colIdx,a.rowIdx)===false){d=true}}}}})}}},beginUpdate:function(){var a=this.selectedRecords;if(a){a.beginUpdate()}},endUpdate:function(){var a=this.selectedRecords;if(a){a.endUpdate()}},destroy:function(){this.selectedRecords=Ext.destroy(this.selectedRecords)},privates:{clear:function(){var b=this,a=b.view;b.allSelected=false;if(b.selectedRecords){b.eachRow(function(c){a.onRowDeselect(c)});b.selectedRecords.clear()}},isAllSelected:function(){return !!this.allSelected},setRangeStart:function(a){this.allSelected=false;this.rangeStart=this.rangeEnd=a;this.view.onRowSelect(a)},setRangeEnd:function(c){var h=this,g,e,a,l,i=h.view,j=i.dataSource,k=i.all,d=h.selectedRecords,b;h.rangeEnd=c;g=h.getRange();e=h.lastRange||g;for(a=Math.max(Math.min(g[0],e[0]),k.startIndex),c=Math.min(Math.max(g[1],e[1]),k.endIndex);a<=c;a++){l=k.item(a);if(a<g[0]||a>g[1]){if(d&&(b=d.byInternalId.get(j.getAt(a).internalId))){d.remove(b)}i.onRowDeselect(a)}else{i.onRowSelect(a)}}h.lastRange=g},getRange:function(){var b=this.rangeStart,a=this.rangeEnd;if(b==null){return[0,-1]}else{if(b<=a){return[b,a]}}return[a,b]},getRangeSize:function(){var a=this.getRange();return a[1]-a[0]+1},createRecordCollection:function(){var a=new Ext.util.Collection({rootProperty:"data",extraKeys:{byInternalId:{rootProperty:false,property:"internalId"}}});return a},addRange:function(){var c=this,a,b;if(c.rangeStart!=null){a=c.getRange();b=c.selectedRecords||(c.selectedRecords=c.createRecordCollection());c.view.dataSource.getRange(a[0],a[1],{callback:function(d){b.add.apply(b,d)}});c.setRangeStart(c.lastRange=null)}}}},0,0,0,0,0,0,[Ext.grid.selection,"Rows"],0));(Ext.cmd.derive("Ext.selection.RowModel",Ext.selection.DataViewModel,{enableKeyNav:true,isRowModel:true,deselectOnContainerClick:false,onUpdate:function(b){var d=this,a=d.view,c;if(a&&d.isSelected(b)){c=a.indexOf(b);a.onRowSelect(c);if(b===d.lastFocused){a.onRowFocus(c,true)}}},onSelectChange:function(g,b,l,a){var j=this,m=j.views||[j.view],c=m.length,d=j.store.indexOf(g),h=b?"select":"deselect",e,k;if((l||j.fireEvent("before"+h,j,g,d))!==false&&a()!==false){for(e=0;e<c;e++){k=m[e];d=k.indexOf(g);if(k.indexOf(g)!==-1){if(b){k.onRowSelect(d,l)}else{k.onRowDeselect(d,l)}}}if(!l){j.fireEvent(h,j,g,d)}}},onEditorTab:function(d,j){var g=this,c=d.context.view,b=d.getActiveRecord(),a=d.context,i=j.shiftKey?"left":"right",h;do{h=a;a=c.walkCells(a,i,j,g.preventWrap);if(h&&h.isEqual(a)){return}}while(a&&(!a.column.getEditor(b)||!d.startEditByPosition(a)))},getCurrentPosition:function(){var a=this.selected.getAt(0);if(a){return new Ext.grid.CellContext(this.view).setPosition(this.store.indexOf(a),0)}},selectByPosition:function(a,b){if(!a.isCellContext){a=new Ext.grid.CellContext(this.view).setPosition(a.row,a.column)}this.select(a.record,b)},selectNext:function(h,c){var g=this,b=g.store,e=g.getSelection(),a=e[e.length-1],d=g.view.indexOf(a)+1,i;if(d===b.getCount()||d===0){i=false}else{g.doSelect(d,h,c);i=true}return i},selectPrevious:function(g,b){var e=this,d=e.getSelection(),a=d[0],c=e.view.indexOf(a)-1,h;if(c<0){h=false}else{e.doSelect(c,g,b);h=true}return h},isRowSelected:function(a){return this.isSelected(a)},isCellSelected:function(b,a,c){return this.isSelected(a)}},0,0,0,0,["selection.rowmodel"],0,[Ext.selection,"RowModel"],0));(Ext.cmd.derive("Ext.grid.selection.SpreadsheetModel",Ext.selection.Model,{isSpreadsheetModel:true,config:{columnSelect:{$value:false,lazy:true},cellSelect:{$value:true,lazy:true},rowSelect:{$value:true,lazy:true},dragSelect:{$value:true,lazy:true},selected:null},checkboxSelect:false,checkboxColumnIndex:0,showHeaderCheckbox:true,checkboxHeaderWidth:24,rowNumbererHeaderWidth:46,columnSelectCls:"x-ssm-column-select",rowNumbererHeaderCls:"x-ssm-row-numberer-hd",rowNumbererTdCls:Ext.grid.column.RowNumberer.prototype.tdCls+" x-ssm-row-numberer-cell",checkerOnCls:"x-grid-hd-checker-on",tdCls:"x-grid-cell-special x-grid-cell-row-checker",bindComponent:function(a){var c=this,b,d;if(c.view!==a){if(c.view){c.navigationModel=null;Ext.destroy(c.viewListeners,c.navigationListeners)}c.view=a;if(a){c.getCellSelect();d=a.ownerGrid.lockedGrid;if(d){c.hasLockedHeader=true;c.onViewCreated(d,d.getView())}else{a.grid.on({viewcreated:c.onViewCreated,scope:c,single:true})}c.gridListeners=a.ownerGrid.on({columnschanged:c.onColumnsChanged,scope:c,destroyable:true});b=c.getViewListeners();b.scope=c;b.destroyable=true;c.viewListeners=a.on(b);c.navigationModel=a.getNavigationModel();c.navigationListeners=c.navigationModel.on({navigate:c.onNavigate,scope:c,destroyable:true});if(c.getColumnSelect()){a.ownerGrid.addCls(c.columnSelectCls)}c.updateHeaderState()}}},getCheckboxHeaderConfig:function(){var a=this,b=a.showHeaderCheckbox!==false;return{isCheckerHd:b,text:"&#160;",clickTargetName:"el",width:a.checkboxHeaderWidth,sortable:false,draggable:false,resizable:false,hideable:false,menuDisabled:true,dataIndex:"",tdCls:a.tdCls,cls:b?"x-column-header-checkbox ":"",defaultRenderer:a.checkboxRenderer.bind(a),editRenderer:"&#160;",locked:a.hasLockedHeader}},checkboxRenderer:function(){return'<div class="x-grid-row-checker" role="presentation">&#160;</div>'},onHeaderClick:function(d,g,c){var a=this,b=a.selected;if(g===a.numbererColumn||g===a.checkColumn){c.stopEvent();if(!b||!b.isAllSelected()){a.selectAll(d.view)}else{a.deselectAll()}a.updateHeaderState()}else{if(a.columnSelect){if(a.isColumnSelected(g)){a.deselectColumn(g)}else{a.selectColumn(g,c.ctrlKey)}}}},updateHeaderState:function(){var e=this,c=e.view.dataSource,b=e.views,g=e.selected,d=e.checkColumn,a=e.checkerOnCls,i=false,h;if(c){h=c.getCount();i=g&&g.isRows&&!c.isBufferedStore&&h>0&&(h===g.getCount())}if(b&&b.length){if(d){if(i){d.addCls(a)}else{d.removeCls(a)}}}},onBindStore:function(a,c,b){if(!b){this.onStoreRefresh()}},onBeforeReconfigure:function(e,a,d,h,c){var g=this,b=g.checkboxColumnIndex;if(d){Ext.suspendLayouts();if(g.numbererColumn){g.numbererColumn.ownerCt.remove(g.numbererColumn,false);d.unshift(g.numbererColumn)}if(g.checkColumn){if(b==="first"){b=0}else{if(b==="last"){b=d.length}}g.checkColumn.ownerCt.remove(g.checkColumn,false);Ext.Array.insert(d,b,[g.checkColumn])}Ext.resumeLayouts()}},getCellContext:function(a,b){return new Ext.grid.CellContext(this.view.ownerGrid.getView()).setPosition(a,b)},select:function(b,m,l){var h=this,a=h.selected,j=h.view,k=j.dataSource,g,d,e,c=false;if(!a||!a.isRows||a.view!==j){h.resetSelection(true);a=h.selected=new Ext.grid.selection.Rows(j)}else{if(!m){a.clear()}}if(!Ext.isArray(b)){b=[b]}g=b.length;for(d=0;d<g;d++){e=b[d];if(typeof e==="number"){e=k.getAt(e)}if(!a.contains(e)){a.add(e);c=true}}if(c){h.updateHeaderState();if(l){h.fireSelectionChange()}}},deselect:function(b,k){var h=this,a=h.selected,j=h.view.dataSource,g,d,e,c=false;if(a&&a.isRows){if(!Ext.isArray(b)){b=[b]}g=b.length;for(d=0;d<g;d++){e=b[d];if(typeof e==="number"){e=j.getAt(e)}c=c||a.remove(e)}}if(c){h.updateHeaderState();if(!k){h.fireSelectionChange()}}},selectCells:function(g,e,b){var c=this,a=c.view.ownerGrid.view,d;g=g.isCellContext?g.clone():new Ext.grid.CellContext(a).setPosition(g);e=e.isCellContext?e.clone():new Ext.grid.CellContext(a).setPosition(e);c.resetSelection(true);c.selected=d=new Ext.grid.selection.Cells(g.view);d.setRangeStart(g);d.setRangeEnd(e);if(!b){c.fireSelectionChange()}},selectAll:function(c){var d=this,e=d.selected,a,b=d.view;if(d.rowSelect){if(!e||!e.isRows){d.resetSelection(true);d.selected=e=new Ext.grid.selection.Rows(b)}a=true}else{if(d.cellSelect){if(!e||!e.isCells){d.resetSelection(true);d.selected=e=new Ext.grid.selection.Cells(b)}a=true}else{if(d.columnSelect){if(!e||!e.isColumns){d.resetSelection(true);d.selected=e=new Ext.grid.selection.Columns(b)}a=true}}}if(a){e.selectAll();d.updateHeaderState();if(!c){d.fireSelectionChange()}}},deselectAll:function(a){var b=this.selected;if(b&&b.getCount()){b.clear();if(!a){this.fireSelectionChange()}}},selectRows:function(j,e,c){var g=this,h=g.selected,b=h&&h.isRows,a=j.length,d;if(!e||!b){g.resetSelection(true)}if(!b){g.selected=h=new Ext.grid.selection.Rows(g.view)}if(j.isEntity){h.add(j)}else{for(d=0;d<a;d++){h.add(j[d])}}if(!c){g.fireSelectionChange()}},isSelected:function(a){return this.isRowSelected(a)},selectColumn:function(d,c,b){var e=this,g=e.selected,a=d.getView();if(!g||!g.isColumns||g.view!==a.ownerGrid.view){e.resetSelection(true);e.selected=g=new Ext.grid.selection.Columns(a)}if(!g.contains(d)){if(!c){g.clear()}g.add(d);e.updateHeaderState();if(!b){e.fireSelectionChange()}}},deselectColumn:function(b,a){var c=this,d=c.getSelected();if(d&&d.isColumns&&d.contains(b)){d.remove(b);c.updateHeaderState();if(!a){c.fireSelectionChange()}}},getSelection:function(){var a=this.selected;if(a&&a.isRows){return a.getRecords()}return[]},destroy:function(){var b=this,a=b.scrollEls;Ext.destroy(b.gridListeners,b.viewListeners,b.selected,b.navigationListeners);if(a){Ext.dd.ScrollManager.unregister(a)}b.selected=b.gridListeners=b.viewListeners=b.selectionData=b.navigationListeners=b.scrollEls=null;Ext.selection.Model.prototype.destroy.call(this)},privates:{getViewListeners:function(){return{beforerefresh:this.onBeforeViewRefresh,keyup:{element:"el",fn:this.onViewKeyUp,scope:this}}},onViewKeyUp:function(b){var a=this.selected;if(b.keyCode===b.SHIFT&&a&&a.isRows&&a.getRangeSize()){a.addRange()}},onColumnsChanged:function(){var e=this.selected,g,d,h,c,a,b;if(e&&e.isCells){a=e.view;b=new Ext.grid.CellContext(a);g=e.getRowRange();d=a.getVisibleColumnManager().getColumns().length;for(c=g[0];c<=g[1];c++){b.setRow(c);for(h=0;h<d;h++){b.setColumn(h);a.onCellDeselect(b)}}}},onBeforeViewRefresh:function(a){var b=this.selected;if(a.refreshCounter){if(b&&b.isCells){this.resetSelection()}}},resetSelection:function(a){var b=this.selected;if(b){b.clear();if(!a){this.fireSelectionChange()}}},onViewCreated:function(b,a){var c=this,e=a.ownerGrid,g=a.headerCt,d=e.shrinkWrapLocked;if(!e.lockable||a.isLockedView){if(c.getRowSelect()&&!g.down("rownumberer")){c.numbererColumn=g.add(0,{xtype:"rownumberer",width:c.rowNumbererHeaderWidth,editRenderer:"&#160;",tdCls:c.rowNumbererTdCls,cls:c.rowNumbererHeaderCls,locked:c.hasLockedHeader});if(d){b.width+=c.numbererColumn.width}}if(c.checkboxSelect){c.addCheckbox(a,true);if(d){b.width+=c.checkColumn.width}}c.mon(a.ownerGrid,"beforereconfigure",c.onBeforeReconfigure,c)}g.sortOnClick=!c.getColumnSelect();if(c.getDragSelect()){a.on("render",c.onViewRender,c,{single:true})}},onViewRender:function(c){var g=this,e=c.getEl(),b=g.views,a=b.length,d;for(d=0;d<a;d++){b[d].headerCt.sortOnClick=!g.columnSelect}e.ddScrollConfig={vthresh:50,hthresh:50,frequency:300,increment:100};Ext.dd.ScrollManager.register(e);(g.scrollEls||(g.scrollEls=[])).push(e);c.on("cellmousedown",g.handleMouseDown,g);if(c.lockingPartner){c.lockingPartner.on("cellmousedown",g.handleMouseDown,g)}},handleMouseDown:function(m,c,l,h,j,a,i){var k=this,b=k.selected,g=i.position.column,d,n;if(i.button||i.shiftKey||i.altKey||i.pointerType==="touch"){return}if(g){d=g===k.checkColumn;if(d){k.checkCellClicked=i.position.getCell(true)}if(g===k.numbererColumn||d||!k.cellSelect){if(k.rowSelect){if(b&&b.isRows){if(!i.ctrlKey&&!d){b.clear()}}else{if(b){b.clear()}b=k.selected=new Ext.grid.selection.Rows(m)}n=true}else{if(k.columnSelect){if(b&&b.isColumns){if(!i.ctrlKey&&!d){b.clear()}}else{if(b){b.clear()}b=k.selected=new Ext.grid.selection.Columns(m)}n=true}else{return false}}}else{if(b){b.clear()}if(!b||!b.isCells){b=k.selected=new Ext.grid.selection.Cells(m)}n=true}k.lastOverRecord=k.lastOverColumn=null;Ext.getBody().on("mouseup",k.onMouseUp,k,{single:true,view:b.view});if(n){b.view.el.on("mousemove",k.onMouseMove,k,{view:b.view})}}},onMouseMove:function(h,i,a){var l=this,n=a.view,g,b,o=h.getTarget(n.cellSelector),d=a.view.getHeaderByCell(o),k=l.selected,m,j,c;if(l.checkCellClicked){if(o===l.checkCellClicked){if(!l.lastOverRecord){l.lastOverRecord=n.getRecord(o.parentNode)}return}else{l.checkCellClicked=null;if(l.lastOverRecord){l.select(l.lastOverRecord);k.setRangeStart(l.store.indexOf(l.lastOverRecord))}}}if(d){g=n.getRecord(o.parentNode);b=l.store.indexOf(g);j=g!==l.lastOverRecord;c=d!==l.lastOverColumn;if(j||c){m=l.getCellContext(g,d)}if(k.isRows){if(j){if(l.lastOverRecord){k.setRangeEnd(b)}else{k.setRangeStart(b)}}}else{if(k.isCells){if(j||c){if(l.lastOverRecord){k.setRangeEnd(m)}else{k.setRangeStart(m)}}}else{if(k.isColumns){if(c){if(l.lastOverColumn){k.setRangeEnd(m.column)}else{k.setRangeStart(m.column)}}}}}if(j||c){n.getNavigationModel().setPosition(new Ext.grid.CellContext(d.getView()).setPosition(g,d))}l.lastOverColumn=d;l.lastOverRecord=g}},onMouseUp:function(i,h,g){var d=this,c=g.view,a,b;d.checkCellClicked=null;if(c&&!c.isDestroyed){if(!i.position){a=i.getTarget(c.cellSelector);if(a){b=c.getRecord(a);if(b){i.position=new Ext.grid.CellContext(c).setPosition(b,c.getHeaderByCell(a))}}}c.el.un("mousemove",d.onMouseMove,d);if(d.selected.isRows){d.selected.addRange()}if(!i.position||!i.position.isEqual(d.mousedownPosition)){d.fireSelectionChange()}}},addCheckbox:function(a,b){var c=this,d=c.checkboxColumnIndex,e=a.headerCt;if(d!==false){if(d==="first"){d=0}else{if(d==="last"){d=e.getColumnCount()}}c.checkColumn=e.add(d,c.getCheckboxHeaderConfig())}if(b!==true){a.refresh()}},onNavigate:function(g){var i=this,k=g.view.ownerGrid.view,d=g.record,b=i.selected,j=new Ext.grid.CellContext(k).setPosition(d,g.column),e=g.keyEvent,a=e.ctrlKey,h=e.shiftKey,l=e.getKey(),c;if(e.stopSelection){return}if(a&&(l===e.UP||l===e.LEFT||l===e.RIGHT||l===e.DOWN)){return}if(b&&(b.isCells||(b.isColumns&&!(a||h)))&&b.getCount()>1&&!e.shiftKey&&e.type==="click"){return}if(!(i.cellSelect||i.columnSelect||i.rowSelect)||!g.record||e.type==="mousedown"){return}if(a&&e.keyCode===e.A){if(!b||b.getCount()<2){i.selectAll()}else{i.deselectAll()}i.updateHeaderState();return}if(h){if(j.column===i.numbererColumn||j.column===i.checkColumn||!(i.cellSelect||i.columnSelect)||(b&&b.isRows)){if(i.rowSelect){if(!b||!b.isRows||b.view!==k){i.resetSelection(true);b=i.selected=new Ext.grid.selection.Rows(k)}if(!b.getRangeSize()){b.setRangeStart(g.previousRecordIndex||0)}b.setRangeEnd(g.recordIndex);c=true}}else{if(i.cellSelect){if(!b||!b.isCells||b.view!==k){i.resetSelection(true);b=i.selected=new Ext.grid.selection.Cells(k)}if(!b.getRangeSize()){b.setRangeStart(g.previousPosition||i.getCellContext(0,0))}b.setRangeEnd(j);c=true}else{if(i.columnSelect){if(!b||!b.isColumns||b.view!==k){i.resetSelection(true);b=i.selected=new Ext.grid.selection.Columns(k)}if(!b.getCount()){b.setRangeStart(j.column)}b.setRangeEnd(g.position.column);c=true}}}}else{if(j.column===i.numbererColumn||j.column===i.checkColumn||!(i.cellSelect||i.columnSelect)){if(i.rowSelect){if(!b||!b.isRows||b.view!==k){i.resetSelection(true);b=i.selected=new Ext.grid.selection.Rows(k)}if(a||j.column===i.checkColumn){if(b.contains(d)){b.remove(d)}else{b.add(d)}}else{b.clear();b.add(d)}c=true}}else{if(i.cellSelect){if(!b||!b.isCells||b.view!==k){i.resetSelection(true);i.selected=b=new Ext.grid.selection.Cells(k)}else{b.clear()}b.setRangeStart(j);c=true}else{if(i.columnSelect){if(!b||!b.isColumns||b.view!==k){i.resetSelection(true);i.selected=b=new Ext.grid.selection.Columns(k)}if(a){if(b.contains(j.column)){b.remove(j.column)}else{b.add(j.column)}}else{b.setRangeStart(j.column)}c=true}}}}if(c){if(b.isRows){i.updateHeaderState()}i.fireSelectionChange()}},isRowSelected:function(a){var b=this,c=b.selected;if(c&&c.isRows){a=Ext.isNumber(a)?b.store.getAt(a):a;return c.contains(a)}else{return false}},isColumnSelected:function(a){var b=this,c=b.selected;if(c&&c.isColumns){return c.contains(a)}else{return false}},isCellSelected:function(a,g,c){var d=this,b,e=d.selected;a=a.ownerGrid.view;if(e){if(e.isColumns){if(typeof c==="number"){c=a.getVisibleColumnManager().getColumns()[c]}return e.contains(c)}if(e.isCells){b=new Ext.grid.CellContext(a).setPosition({row:g,column:c});return e.contains(b)}}return false},applySelected:function(a){return a},updateSelected:function(g,h){var c,e,b,d,a;if(h){h.clear()}if(g&&g.getCount()){c=g.view;if(g.isRows){g.eachRow(c.onRowSelect,c)}else{if(g.isColumns){e=g.getColumns();b=e.length;if(b){a=new Ext.grid.CelContext(c);c.store.each(function(i){a.setRow(i);for(d=0;d<b;d++){a.setColumn(e[d]);c.onCellSelect(a)}})}}else{if(g.isCells){g.eachCell(c.onCellSelect,c)}}}}},updateRowSelect:function(c){var b=this,d=b.selected,a=b.view;if(a&&a.rendered){if(a.isNormalView){a=a.lockingPartner}if(c){if(b.checkColumn){b.checkColumn.show()}if(b.numbererColumn){b.numbererColumn.show()}else{b.numbererColumn=a.headerCt.add(0,{xtype:"rownumberer",width:b.rowNumbererHeaderWidth,editRenderer:"&#160;",tdCls:b.rowNumbererTdCls,cls:b.rowNumbererHeaderCls,locked:b.hasLockedHeader})}}else{if(b.checkColumn){b.checkColumn.hide()}if(b.numbererColumn){b.numbererColumn.hide()}}if(!c&&d&&d.isRows){d.clear();b.fireSelectionChange()}}},updateColumnSelect:function(g){var d=this,e=d.selected,b=d.views,a=b?b.length:0,c;for(c=0;c<a;c++){b[c].headerCt.sortOnClick=!g}if(!g&&e&&e.isColumns){e.clear();d.fireSelectionChange()}if(g){d.view.ownerGrid.addCls(d.columnSelectCls)}else{d.view.ownerGrid.removeCls(d.columnSelectCls)}},updateCellSelect:function(a){var b=this,c=b.selected;if(!a&&c&&c.isCells){c.clear();b.fireSelectionChange()}},fireSelectionChange:function(){var a=this.view.ownerGrid;a.fireEvent("selectionchange",a,this.selected)},onIdChanged:function(a,e,d,b){var c=this.selected;if(c&&c.isRows&&c.selectedRecords){c.selectedRecords.updateKey(e,d)}},onPageAdd:function(d,c,e){var j=this.selected,a=e.length,g,b,h=j&&j.selectedRecords;if(h&&j.isRows){for(g=0;g<a;g++){b=e[g];if(h.get(b.id)){h.replace(b)}}}},refresh:function(){var a=this.getSelected();if(a&&a.isRows){Ext.selection.Model.prototype.refresh.call(this)}},onStoreAdd:function(){var a=this.getSelected();if(a&&a.isRows){Ext.selection.Model.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()}},onStoreClear:function(){this.resetSelection()},onStoreLoad:function(){var a=this.getSelected();if(a&&a.isRows){Ext.selection.Model.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()}},onStoreRefresh:function(){var a=this.selected;if(a&&a.isRows&&a.selectedRecords){this.updateSelectedInstances(a.selectedRecords)}if(this.view){this.updateHeaderState()}},onStoreRemove:function(){var a=this.getSelected();if(a&&a.isRows){Ext.selection.Model.prototype.onStoreRemove.apply(this,arguments)}},selectByPosition:function(b){var a=this;if(!b.isCellContext){b=new Ext.grid.CellContext(a.view).setPosition(b.row,b.column)}if(a.getCellSelect()){a.selectCells(b,b)}else{if(a.getRowSelect()){this.selectRows([b.record])}else{if(a.getColumnSelect()){a.selectColumn(b.column)}}}}}},0,0,0,0,["selection.spreadsheet"],0,[Ext.grid.selection,"SpreadsheetModel"],function(){this.borrow(Ext.selection.RowModel,["onEditorTab"])}));(Ext.cmd.derive("Ext.util.Queue",Ext.Base,{constructor:function(){this.clear()},add:function(c){var b=this,a=b.getKey(c);if(!b.map[a]){++b.length;b.items.push(c);b.map[a]=c}return c},clear:function(){var b=this,a=b.items;b.items=[];b.map={};b.length=0;return a},contains:function(b){var a=this.getKey(b);return this.map.hasOwnProperty(a)},getCount:function(){return this.length},getKey:function(a){return a.id},remove:function(e){var d=this,c=d.getKey(e),a=d.items,b;if(d.map[c]){b=Ext.Array.indexOf(a,e);Ext.Array.erase(a,b,1);delete d.map[c];--d.length}return e}},1,0,0,0,0,0,[Ext.util,"Queue"],0));(Ext.cmd.derive("Ext.layout.ContextItem",Ext.Base,{heightModel:null,widthModel:null,sizeModel:null,optOut:false,ownerSizePolicy:null,boxChildren:null,boxParent:null,children:[],dirty:null,dirtyCount:0,hasRawContent:true,isContextItem:true,isTopLevel:false,consumersContentHeight:0,consumersContentWidth:0,consumersContainerHeight:0,consumersContainerWidth:0,consumersHeight:0,consumersWidth:0,ownerCtContext:null,remainingChildDimensions:0,props:null,state:null,wrapsComponent:false,constructor:function(r){var s=this,p=Ext.layout.SizeModel.sizeModels,k=p.configured,j=p.shrinkWrap,b,q,n,m,g,d,t,e,o,l,c,i,h,a;Ext.apply(s,r);t=s.target;b=s.el;s.id=t.id;s.flushedProps={};s.props=g={};s.styles={};if(!t.isComponent){q=b.lastBox}else{s.wrapsComponent=true;s.framing=t.frameSize||null;s.isComponentChild=t.ownerLayout&&t.ownerLayout.isComponentLayout;q=t.lastBox;n=t.ownerCt;if(n&&(m=n.el&&s.context.items[n.el.id])){s.ownerCtContext=m}s.sizeModel=d=t.getSizeModel(m&&m.widthModel.pairsByHeightOrdinal[m.heightModel.ordinal]);s.widthModel=i=d.width;s.heightModel=h=d.height;if(q&&q.invalid===false){l=(t.width===(e=q.width));c=(t.height===(o=q.height));if(i===j&&h===j){a=true}else{if(i===k&&l){a=h===j||(h===k&&c)}}if(a){s.optOut=true;g.width=e;g.height=o}}}s.lastBox=q},init:function(j,c){var t=this,a=t.props,d=t.dirty,l=t.ownerCtContext,p=t.target.ownerLayout,h=!t.state,u=j||h,e,o,m,q,b,v,w=t.heightModel,g=t.widthModel,k,r,s=0;t.dirty=t.invalid=false;t.props={};t.remainingChildDimensions=0;if(t.boxChildren){t.boxChildren.length=0}if(!h){t.clearAllBlocks("blocks");t.clearAllBlocks("domBlocks")}if(!t.wrapsComponent){return u}v=t.target;t.state={};if(h){if(v.beforeLayout&&v.beforeLayout!==Ext.emptyFn){v.beforeLayout()}if(!l&&(q=v.ownerCt)){l=t.context.items[q.el.id]}if(l){t.ownerCtContext=l;t.isBoxParent=p&&p.isItemBoxParent(t)}else{t.isTopLevel=true}t.frameBodyContext=t.getEl("frameBody")}else{l=t.ownerCtContext;t.isTopLevel=!l;e=t.children;for(o=0,m=e.length;o<m;++o){e[o].init(true)}}t.hasRawContent=!(v.isContainer&&v.items.items.length>0);if(j){t.widthModel=t.heightModel=null;b=v.getSizeModel(l&&l.widthModel.pairsByHeightOrdinal[l.heightModel.ordinal]);if(h){t.sizeModel=b}t.widthModel=b.width;t.heightModel=b.height;if(l&&!t.isComponentChild){if(p.needsItemSize||!v.liquidLayout){l.remainingChildDimensions+=2}else{if(t.widthModel.calculated){++l.remainingChildDimensions}if(t.heightModel.calculated){++l.remainingChildDimensions}}}}else{if(a){t.recoverProp("x",a,d);t.recoverProp("y",a,d);if(t.widthModel.calculated){t.recoverProp("width",a,d)}else{if("width" in a){++s}}if(t.heightModel.calculated){t.recoverProp("height",a,d)}else{if("height" in a){++s}}if(l&&!t.isComponentChild){l.remainingChildDimensions+=s}}}if(a&&p&&p.manageMargins){t.recoverProp("margin-top",a,d);t.recoverProp("margin-right",a,d);t.recoverProp("margin-bottom",a,d);t.recoverProp("margin-left",a,d)}if(c){k=c.heightModel;r=c.widthModel;if(r&&k&&g&&w){if(g.shrinkWrap&&w.shrinkWrap){if(r.constrainedMax&&k.constrainedMin){k=null}}}if(r){t.widthModel=r}if(k){t.heightModel=k}if(c.state){Ext.apply(t.state,c.state)}}return u},initContinue:function(e){var h=this,d=h.ownerCtContext,a=h.target,c=h.widthModel,g=a.getInherited(),b;if(c.fixed){g.inShrinkWrapTable=false}else{delete g.inShrinkWrapTable}if(e){if(d&&c.shrinkWrap){b=d.isBoxParent?d:d.boxParent;if(b){b.addBoxChild(h)}}else{if(c.natural){h.boxParent=d}}}return e},initDone:function(d){var b=this,a=b.props,c=b.state;if(b.remainingChildDimensions===0){a.containerChildrenSizeDone=true}if(d){a.containerLayoutDone=true}if(b.boxChildren&&b.boxChildren.length&&b.widthModel.shrinkWrap){b.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var b=this,c=b.target,a=b.ownerCtContext;if(a&&a.isTopLevel){b.animatePolicy=c.ownerLayout.getAnimatePolicy(b)}else{if(!a&&c.isCollapsingOrExpanding&&c.animCollapse){b.animatePolicy=c.componentLayout.getAnimatePolicy(b)}}if(b.animatePolicy){b.context.queueAnimation(b)}},addBlock:function(b,d,e){var c=this,g=c[b]||(c[b]={}),a=g[e]||(g[e]={});if(!a[d.id]){a[d.id]=d;++d.blockCount;++c.context.blockCount}},addBoxChild:function(d){var c=this,b,a=d.widthModel;d.boxParent=this;d.measuresBox=a.shrinkWrap?d.hasRawContent:a.natural;if(d.measuresBox){b=c.boxChildren;if(b){b.push(d)}else{c.boxChildren=[d]}}},addPositionStyles:function(d,b){var a=b.x,e=b.y,c=0;if(a!==undefined){d.left=a+"px";++c}if(e!==undefined){d.top=e+"px";++c}return c},addTrigger:function(g,h){var e=this,a=h?"domTriggers":"triggers",i=e[a]||(e[a]={}),b=e.context,d=b.currentLayout,c=i[g]||(i[g]={});if(!c[d.id]){c[d.id]=d;++d.triggerCount;c=b.triggers[h?"dom":"data"];(c[d.id]||(c[d.id]=[])).push({item:this,prop:g});if(e.props[g]!==undefined){if(!h||!(e.dirty&&(g in e.dirty))){++d.firedTriggers}}}},boxChildMeasured:function(){var b=this,c=b.state,a=(c.boxesMeasured=(c.boxesMeasured||0)+1);if(a===b.boxChildren.length){c.clearBoxWidth=1;++b.context.progressCount;b.markDirty()}},borderNames:["border-top-width","border-right-width","border-bottom-width","border-left-width"],marginNames:["margin-top","margin-right","margin-bottom","margin-left"],paddingNames:["padding-top","padding-right","padding-bottom","padding-left"],trblNames:["top","right","bottom","left"],cacheMissHandlers:{borderInfo:function(a){var b=a.getStyles(a.borderNames,a.trblNames);b.width=b.left+b.right;b.height=b.top+b.bottom;return b},marginInfo:function(a){var b=a.getStyles(a.marginNames,a.trblNames);b.width=b.left+b.right;b.height=b.top+b.bottom;return b},paddingInfo:function(b){var a=b.frameBodyContext||b,c=a.getStyles(b.paddingNames,b.trblNames);c.width=c.left+c.right;c.height=c.top+c.bottom;return c}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(a){var c=this[a],b;if(c){for(b in c){this.clearBlocks(a,b)}}},clearBlocks:function(c,g){var h=this[c],b=h&&h[g],d,e,a;if(b){delete h[g];d=this.context;for(a in b){e=b[a];--d.blockCount;if(!--e.blockCount&&!e.pending&&!e.done){d.queueLayout(e)}}}},block:function(a,b){this.addBlock("blocks",a,b)},domBlock:function(a,b){this.addBlock("domBlocks",a,b)},fireTriggers:function(b,g){var h=this[b],d=h&&h[g],c=this.context,e,a;if(d){for(a in d){e=d[a];++e.firedTriggers;if(!e.done&&!e.blockCount&&!e.pending){c.queueLayout(e)}}}},flush:function(){var b=this,a=b.dirty,c=b.state,d=b.el;b.dirtyCount=0;if("attributes" in b){d.set(b.attributes);delete b.attributes}if("innerHTML" in b){d.innerHTML=b.innerHTML;delete b.innerHTML}if(c&&c.clearBoxWidth){c.clearBoxWidth=0;b.el.setStyle("width",null);if(!--c.blocks){b.context.queueItemLayouts(b)}}if(a){delete b.dirty;b.writeProps(a,true)}},flushAnimations:function(){var o=this,c=o.previousSize,l,n,e,h,g,d,i,m,k,a,b;if(c){l=o.target;n=l.getAnimationProps();e=n.duration;h=Ext.Object.getKeys(o.animatePolicy);g=Ext.apply({},{from:{},to:{},duration:e||Ext.fx.Anim.prototype.duration},n);for(d=0,i=0,m=h.length;i<m;i++){k=h[i];a=c[k];b=o.peek(k);if(a!==b){k=o.translateProps[k]||k;g.from[k]=a;g.to[k]=b;++d}}if(d){if(o.isCollapsingOrExpanding===1){l.componentLayout.undoLayout(o)}else{o.writeProps(g.from)}o.el.animate(g);g=Ext.fx.Manager.getFxQueue(o.el.id)[0];l.$layoutAnim=g;g.on({afteranimate:function(){delete l.$layoutAnim;if(o.isCollapsingOrExpanding===1){l.componentLayout.redoLayout(o);l.afterCollapse(true)}else{if(o.isCollapsingOrExpanding===2){l.afterExpand(true)}}}})}else{if(o.isCollapsingOrExpanding===2){l.afterExpand(true)}}}},getBorderInfo:function(){var a=this,b=a.borderInfo;if(!b){a.borderInfo=b=a.checkCache("borderInfo")}return b},getEl:function(c,a){var e=this,g,d,b;if(c){if(c.dom){d=c}else{g=e.target;if(a){g=a}d=g[c];if(typeof d==="function"){d=d.call(g);if(d===e.el){return this}}}if(d){b=e.context.getEl(e,d)}}return b||null},getFrameInfo:function(){var c=this,d=c.frameInfo,b,a;if(!d){b=c.framing;a=c.getBorderInfo();c.frameInfo=d=b?{top:b.top+a.top,right:b.right+a.right,bottom:b.bottom+a.bottom,left:b.left+a.left,width:b.width+a.width,height:b.height+a.height}:a}return d},getMarginInfo:function(){var d=this,g=d.marginInfo,b,a,e,c;if(!g){if(!d.wrapsComponent){g=d.checkCache("marginInfo")}else{b=d.target;e=b.ownerLayout;c=e?e.id:null;a=e&&e.manageMargins;g=b.margin$;if(g&&g.ownerId!==c){g=null}if(!g){g=d.parseMargins(b,b.margin)||d.checkCache("marginInfo");if(a){d.setProp("margin-top",0);d.setProp("margin-right",0);d.setProp("margin-bottom",0);d.setProp("margin-left",0)}g.ownerId=c;b.margin$=g}g.width=g.left+g.right;g.height=g.top+g.bottom}d.marginInfo=g}return g},clearMarginCache:function(){delete this.marginInfo;delete this.target.margin$},getPaddingInfo:function(){var a=this,b=a.paddingInfo;if(!b){a.paddingInfo=b=a.checkCache("paddingInfo")}return b},getProp:function(c){var b=this,a=b.props[c];b.addTrigger(c);return a},getDomProp:function(c){var b=this,a=(b.dirty&&(c in b.dirty))?undefined:b.props[c];b.addTrigger(c,true);return a},getStyle:function(a){var c=this,b=c.styles,e,d;if(a in b){d=b[a]}else{e=c.styleInfo[a];d=c.el.getStyle(a);if(e&&e.parseInt){d=parseInt(d,10)||0}b[a]=d}return d},getStyles:function(p,b){var m=this,e=m.styles,q={},g=0,d=p.length,k,j,l,a,c,h,r,o;b=b||p;for(k=0;k<d;++k){a=p[k];if(a in e){q[b[k]]=e[a];++g;if(k&&g===1){j=p.slice(0,k);l=b.slice(0,k)}}else{if(g){(j||(j=[])).push(a);(l||(l=[])).push(b[k])}}}if(g<d){j=j||p;l=l||b;h=m.styleInfo;r=m.el.getStyle(j);for(k=j.length;k--;){a=j[k];c=h[a];o=r[a];if(c&&c.parseInt){o=parseInt(o,10)||0}q[l[k]]=o;e[a]=o}}return q},hasProp:function(a){return this.getProp(a)!=null},hasDomProp:function(a){return this.getDomProp(a)!=null},invalidate:function(a){this.context.queueInvalidate(this,a)},markDirty:function(){if(++this.dirtyCount===1){this.context.queueFlush(this)}},onBoxMeasured:function(){var a=this.boxParent,b=this.state;if(a&&a.widthModel.shrinkWrap&&!b.boxMeasured&&this.measuresBox){b.boxMeasured=1;a.boxChildMeasured()}},parseMargins:function(a,d){if(d===true){d=5}var c=typeof d,b;if(c==="string"||c==="number"){b=a.parseBox(d)}else{if(d){b={top:0,right:0,bottom:0,left:0};if(d){d=Ext.apply(b,a.parseBox(d))}}}return b},peek:function(a){return this.props[a]},recoverProp:function(g,b,a){var e=this,d=e.props,c;if(g in b){d[g]=b[g];if(a&&g in a){c=e.dirty||(e.dirty={});c[g]=a[g]}}},redo:function(b){var e=this,c,a,d;e.revertProps(e.props);if(b&&e.wrapsComponent){if(e.childItems){for(d=0,c=e.childItems,a=c.length;d<a;d++){c[d].redo(b)}}for(d=0,c=e.children,a=c.length;d<a;d++){c[d].redo()}}},removeEl:function(b,a){var d=this,e,c;if(b){if(b.dom){c=b}else{e=d.target;if(a){e=a}c=e[b];if(typeof c==="function"){c=c.call(e);if(c===d.el){return this}}}if(c){d.context.removeEl(d,c)}}},revertProps:function(d){var a,b=this.flushedProps,c={};for(a in d){if(b.hasOwnProperty(a)){c[a]=d[a]}}this.writeProps(c)},setAttribute:function(a,c){var b=this;if(!b.attributes){b.attributes={}}b.attributes[a]=c;b.markDirty()},setBox:function(b){var a=this;if("left" in b){a.setProp("x",b.left)}if("top" in b){a.setProp("y",b.top)}a.setSize(b.width,b.height)},setContentHeight:function(a,b){if(!b&&this.hasRawContent){return 1}return this.setProp("contentHeight",a)},setContentWidth:function(b,a){if(!a&&this.hasRawContent){return 1}return this.setProp("contentWidth",b)},setContentSize:function(c,a,b){return this.setContentWidth(c,b)+this.setContentHeight(a,b)===2},setProp:function(d,c,a){var b=this,g=typeof c,e;if(g==="undefined"||(g==="number"&&isNaN(c))){return 0}if(b.props[d]===c){return 1}b.props[d]=c;++b.context.progressCount;if(a===false){b.fireTriggers("domTriggers",d);b.clearBlocks("domBlocks",d)}else{e=b.styleInfo[d];if(e){if(!b.dirty){b.dirty={}}b.dirty[d]=c;b.markDirty()}}b.fireTriggers("triggers",d);b.clearBlocks("blocks",d);return 1},setHeight:function(k,a){var g=this,d=g.target,c=g.ownerCtContext,h,e,b,j,i;if(k<0){k=0}if(!g.wrapsComponent){if(!g.setProp("height",k,a)){return NaN}}else{b=g.collapsedVert?0:(d.minHeight||0);k=Ext.Number.constrain(k,b,d.maxHeight);j=g.props.height;if(!g.setProp("height",k,a)){return NaN}if(c&&!g.isComponentChild&&isNaN(j)){i=--c.remainingChildDimensions;if(!i){c.setProp("containerChildrenSizeDone",true)}}h=g.frameBodyContext;if(h){e=g.getFrameInfo();h[g.el.vertical?"setWidth":"setHeight"](k-e.height,a)}}return k},setWidth:function(b,a){var i=this,g=i.target,e=i.ownerCtContext,j,h,d,c,k;if(b<0){b=0}if(!i.wrapsComponent){if(!i.setProp("width",b,a)){return NaN}}else{d=i.collapsedHorz?0:(g.minWidth||0);b=Ext.Number.constrain(b,d,g.maxWidth);c=i.props.width;if(!i.setProp("width",b,a)){return NaN}if(e&&!i.isComponentChild&&isNaN(c)){k=--e.remainingChildDimensions;if(!k){e.setProp("containerChildrenSizeDone",true)}}j=i.frameBodyContext;if(j){h=i.getFrameInfo();j.setWidth(b-h.width,a)}}return b},setSize:function(c,a,b){this.setWidth(c,b);this.setHeight(a,b)},translateProps:{x:"left",y:"top"},undo:function(b){var e=this,c,a,d;e.revertProps(e.lastBox);if(b&&e.wrapsComponent){if(e.childItems){for(d=0,c=e.childItems,a=c.length;d<a;d++){c[d].undo(b)}}for(d=0,c=e.children,a=c.length;d<a;d++){c[d].undo()}}},unsetProp:function(b){var a=this.dirty;delete this.props[b];if(a){delete a[b]}},writeProps:function(e,d){if(!(e&&typeof e==="object")){return}var s=this,c=s.el,i={},g=0,b=s.styleInfo,r,j,m,o=e.width,k=e.height,t=s.target,h,a,n,p,q,l;if("displayed" in e){c.setDisplayed(e.displayed)}for(j in e){if(d){s.fireTriggers("domTriggers",j);s.clearBlocks("domBlocks",j);s.flushedProps[j]=1}r=b[j];if(r&&r.dom){if(r.suffix&&(m=parseInt(e[j],10))){i[j]=m+r.suffix}else{i[j]=e[j]}++g}}if("x" in e||"y" in e){if(t.isComponent){t.setPosition(e.x,e.y)}else{g+=s.addPositionStyles(i,e)}}if(s.wrapsComponent&&Ext.isIE9){if((h=o!==undefined&&s.hasOverflowY)||(a=k!==undefined&&s.hasOverflowX)){n=s.isAbsolute;if(n===undefined){n=false;l=s.target.getTargetEl();q=l.getStyle("position");s.isAbsolute=n=(q==="absolute")}if(n){p=Ext.getScrollbarSize();if(h){o=parseInt(o,10)+p.width;i.width=o+"px";++g}if(a){k=parseInt(k,10)+p.height;i.height=k+"px";++g}}}}if(g){c.setStyle(i)}}},1,0,0,0,0,0,[Ext.layout,"ContextItem"],function(){var c={dom:true,parseInt:true,suffix:"px"},b={dom:true},a={dom:false};this.prototype.styleInfo={containerChildrenSizeDone:a,containerLayoutDone:a,displayed:a,done:a,x:a,y:a,columnsChanged:a,rowHeights:a,viewOverflowY:a,left:c,top:c,right:c,bottom:c,width:c,height:c,"border-top-width":c,"border-right-width":c,"border-bottom-width":c,"border-left-width":c,"margin-top":c,"margin-right":c,"margin-bottom":c,"margin-left":c,"padding-top":c,"padding-right":c,"padding-bottom":c,"padding-left":c,"line-height":b,display:b,clear:b}}));Ext.define("Ext.rtl.layout.ContextItem",{override:"Ext.layout.ContextItem",addPositionStyles:function(d,b){var a=b.x,e=b.y,c=0;if(a!==undefined){d[this.parent.target.getInherited().rtl?"right":"left"]=a+"px";++c}if(e!==undefined){d.top=e+"px";++c}return c}});(Ext.cmd.derive("Ext.layout.Context",Ext.Base,{remainingLayouts:0,state:0,cycleWatchDog:200,constructor:function(a){var b=this;Ext.apply(b,a);b.items={};b.layouts={};b.blockCount=0;b.cycleCount=0;b.flushCount=0;b.calcCount=0;b.animateQueue=b.newQueue();b.completionQueue=b.newQueue();b.finalizeQueue=b.newQueue();b.finishQueue=b.newQueue();b.flushQueue=b.newQueue();b.invalidateData={};b.layoutQueue=b.newQueue();b.invalidQueue=[];b.triggers={data:{},dom:{}}},callLayout:function(b,a){this.currentLayout=b;b[a](this.getCmp(b.owner))},cancelComponent:function(j,a,m){var p=this,h=j,l=!j.isComponent,b=l?h.length:1,d,c,o,n,g,s,q,r,t,e;for(d=0;d<b;++d){if(l){j=h[d]}if(m&&j.ownerCt){e=this.items[j.ownerCt.el.id];if(e){Ext.Array.remove(e.childItems,p.getCmp(j))}}if(!a){q=p.invalidQueue;o=q.length;if(o){p.invalidQueue=s=[];for(c=0;c<o;++c){r=q[c];t=r.item.target;if(t!==j&&!t.up(j)){s.push(r)}}}}g=j.componentLayout;p.cancelLayout(g);if(g.getLayoutItems){n=g.getLayoutItems();if(n.length){p.cancelComponent(n,true)}}if(j.isContainer&&!j.collapsed){g=j.layout;p.cancelLayout(g);n=g.getVisibleItems();if(n.length){p.cancelComponent(n,true)}}}},cancelLayout:function(b){var a=this;a.completionQueue.remove(b);a.finalizeQueue.remove(b);a.finishQueue.remove(b);a.layoutQueue.remove(b);if(b.running){a.layoutDone(b)}b.ownerContext=null},clearTriggers:function(g,h){var a=g.id,e=this.triggers[h?"dom":"data"],j=e&&e[a],b=(j&&j.length)||0,d,k,c;for(d=0;d<b;++d){c=j[d];k=c.item;e=h?k.domTriggers:k.triggers;delete e[c.prop][a]}},flush:function(){var d=this,a=d.flushQueue.clear(),c=a.length,b;if(c){++d.flushCount;for(b=0;b<c;++b){a[b].flush()}}},flushAnimations:function(){var d=this,b=d.animateQueue.clear(),a=b.length,c;if(a){for(c=0;c<a;c++){if(b[c].target.animate!==false){b[c].flushAnimations()}}Ext.fx.Manager.runner()}},flushInvalidates:function(){var h=this,a=h.invalidQueue,g=a&&a.length,b,e,d,c;h.invalidQueue=[];if(g){e=[];for(c=0;c<g;++c){b=(d=a[c]).item.target;if(!b.container.isDetachedBody){e.push(b);if(d.options){h.invalidateData[b.id]=d.options}}}h.invalidate(e,null)}},flushLayouts:function(h,a,c){var g=this,j=c?g[h].items:g[h].clear(),e=j.length,b,d;if(e){for(b=0;b<e;++b){d=j[b];if(!d.running){g.callLayout(d,a)}}g.currentLayout=null}},getCmp:function(a){return this.getItem(a,a.el)},getEl:function(b,a){var c=this.getItem(a,a);if(!c.parent){c.parent=b;if(b.children.length){b.children.push(c)}else{b.children=[c]}}return c},getItem:function(d,b){var e=b.id,a=this.items,c=a[e]||(a[e]=new Ext.layout.ContextItem({context:this,target:d,el:b}));return c},handleFailure:function(){var c=this.layouts,b,a;Ext.failedLayouts=(Ext.failedLayouts||0)+1;for(a in c){b=c[a];if(c.hasOwnProperty(a)){b.running=false;b.ownerContext=null}}},invalidate:function(l,n){var p=this,m=!l.isComponent,c,q,a,g,k,r,o,b,h,j,e,d,s;for(g=0,b=m?l.length:1;g<b;++g){k=m?l[g]:l;if(k.rendered&&!k.hidden){q=k.ownerLayout;h=k.componentLayout;a=!h.ownerContext;s=false;if((!q||!q.needsItemSize)&&k.liquidLayout){s=true}if(!s||(q&&q.setsItemSize)){r=p.getCmp(k);j=(k.isContainer&&!k.collapsed)?k.layout:null;e=p.invalidateData[r.id];delete p.invalidateData[r.id];d=r.init(n,e)}if(s){continue}if(e){p.processInvalidate(e,r,"before")}if(h.beforeLayoutCycle){h.beforeLayoutCycle(r)}if(j&&j.beforeLayoutCycle){j.beforeLayoutCycle(r)}d=r.initContinue(d);c=true;if(h.getLayoutItems){h.renderChildren();o=h.getLayoutItems();if(o.length){p.invalidate(o,true)}}if(j){c=false;j.renderChildren();if(j.needsItemSize||j.activeItemCount){o=j.getVisibleItems();if(o.length){p.invalidate(o,true)}}}r.initDone(c);p.resetLayout(h,r,a);if(j){p.resetLayout(j,r,a)}r.initAnimation();if(e){p.processInvalidate(e,r,"after")}}}p.currentLayout=null},isDescendant:function(a,b){if(a.isContainer){for(var d=b.ownerCt;d;d=d.ownerCt){if(d===a){return true}}}return false},layoutDone:function(a){var b=a.ownerContext;a.running=false;if(a.isComponentLayout){if(b.measuresBox){b.onBoxMeasured()}b.setProp("done",true)}else{b.setProp("containerLayoutDone",true)}--this.remainingLayouts;++this.progressCount},newQueue:function(){return new Ext.util.Queue()},processInvalidate:function(b,e,a){if(b[a]){var d=this,c=d.currentLayout;d.currentLayout=b.layout||null;b[a](e,b);d.currentLayout=c}},queueAnimation:function(a){this.animateQueue.add(a)},queueCompletion:function(a){this.completionQueue.add(a)},queueFinalize:function(a){this.finalizeQueue.add(a)},queueFlush:function(a){this.flushQueue.add(a)},chainFns:function(a,i,g){var d=this,c=a.layout,e=i.layout,b=a[g],h=i[g];return function(j){var k=d.currentLayout;if(b){d.currentLayout=c;b.call(a.scope||a,j,a)}d.currentLayout=e;h.call(i.scope||i,j,i);d.currentLayout=k}},purgeInvalidates:function(){var h=this,k=[],i=h.invalidQueue,e=i.length,j,l,d,c,b,g,a;for(j=0;j<e;++j){b=i[j];g=b.item.target;a=true;for(l=k.length;l--;){d=k[l];c=d.item.target;if(g.isLayoutChild(c)){a=false;break}if(c.isLayoutChild(g)){Ext.Array.erase(k,l,1)}}if(a){k.push(b)}}h.invalidQueue=k},queueInvalidate:function(k,l){var h=this,j=[],i=h.invalidQueue,g=i.length,d,b,e,a,c;if(k.isComponent){k=h.getCmp(d=k)}else{d=k.target}k.invalid=true;while(g--){b=i[g];e=b.item.target;if(!d.isFloating&&d.up(e)){return}if(e===d){if(!(a=b.options)){b.options=l}else{if(l){if(l.widthModel){a.widthModel=l.widthModel}if(l.heightModel){a.heightModel=l.heightModel}if(!(c=a.state)){a.state=l.state}else{if(l.state){Ext.apply(c,l.state)}}if(l.before){a.before=h.chainFns(a,l,"before")}if(l.after){a.after=h.chainFns(a,l,"after")}}}return}if(!e.isLayoutChild(d)){j.push(b)}}j.push({item:k,options:l});h.invalidQueue=j},queueItemLayouts:function(c){var a=c.isComponent?c:c.target,b=a.componentLayout;if(!b.pending&&!b.invalid&&!b.done){this.queueLayout(b)}b=a.layout;if(b&&!b.pending&&!b.invalid&&!b.done&&!a.collapsed){this.queueLayout(b)}},queueLayout:function(a){this.layoutQueue.add(a);a.pending=true},removeEl:function(d,c){var e=c.id,b=d.children,a=this.items;if(b){Ext.Array.remove(b,a[e])}delete a[e]},resetLayout:function(b,c,d){var a=this;a.currentLayout=b;b.done=false;b.pending=true;b.firedTriggers=0;a.layoutQueue.add(b);if(d){a.layouts[b.id]=b;b.running=true;if(b.finishedLayout){a.finishQueue.add(b)}++a.remainingLayouts;++b.layoutCount;b.ownerContext=c;b.beginCount=0;b.blockCount=0;b.calcCount=0;b.triggerCount=0;if(!b.initialized){b.initLayout()}b.beginLayout(c)}else{++b.beginCount;if(!b.running){++a.remainingLayouts;b.running=true;if(b.isComponentLayout){c.unsetProp("done")}a.completionQueue.remove(b);a.finalizeQueue.remove(b)}}b.beginLayoutCycle(c,d)},run:function(){var c=this,b=false,a=c.cycleWatchDog;c.purgeInvalidates();c.flushInvalidates();c.state=1;c.totalCount=c.layoutQueue.getCount();c.flush();while((c.remainingLayouts||c.invalidQueue.length)&&a--){if(c.invalidQueue.length){c.flushInvalidates()}if(c.runCycle()){b=false}else{if(!b){c.flush();b=true;c.flushLayouts("completionQueue","completeLayout")}else{if(!c.invalidQueue.length){c.state=2;break}}}if(!(c.remainingLayouts||c.invalidQueue.length)){c.flush();c.flushLayouts("completionQueue","completeLayout");c.flushLayouts("finalizeQueue","finalizeLayout")}}return c.runComplete()},runComplete:function(){var a=this;a.state=2;if(a.remainingLayouts){a.handleFailure();return false}a.flush();a.flushLayouts("finishQueue","finishedLayout",true);a.flushLayouts("finishQueue","notifyOwner");a.flush();a.flushAnimations();return true},runCycle:function(){var c=this,d=c.layoutQueue.clear(),b=d.length,a;++c.cycleCount;c.progressCount=0;for(a=0;a<b;++a){c.runLayout(c.currentLayout=d[a])}c.currentLayout=null;return c.progressCount>0},runLayout:function(b){var a=this,c=a.getCmp(b.owner);b.pending=false;if(c.state.blocks){return}b.done=true;++b.calcCount;++a.calcCount;b.calculate(c);if(b.done){a.layoutDone(b);if(b.completeLayout){a.queueCompletion(b)}if(b.finalizeLayout){a.queueFinalize(b)}}else{if(!b.pending&&!b.invalid&&!(b.blockCount+b.triggerCount-b.firedTriggers)){a.queueLayout(b)}}},setItemSize:function(h,g,b){var d=h,a=1,c,e;if(h.isComposite){d=h.elements;a=d.length;h=d[0]}else{if(!h.dom&&!h.el){a=d.length;h=d[0]}}for(e=0;e<a;){c=this.get(h);c.setSize(g,b);h=d[++e]}}},1,0,0,0,0,0,[Ext.layout,"Context"],0));(Ext.cmd.derive("Ext.layout.component.Body",Ext.layout.component.Auto,{type:"body",beginLayout:function(a){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);a.bodyContext=a.getEl("body")},beginLayoutCycle:function(d,b){var c=this,g=c.lastWidthModel,e=c.lastHeightModel,a=c.owner.body;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(g&&g.fixed&&d.widthModel.shrinkWrap){a.setWidth(null)}if(e&&e.fixed&&d.heightModel.shrinkWrap){a.setHeight(null)}},calculateOwnerHeightFromContentHeight:function(c,b){var a=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments);if(c.targetContext!==c){a+=c.getPaddingInfo().height}return a},calculateOwnerWidthFromContentWidth:function(c,a){var b=Ext.layout.component.Auto.prototype.calculateOwnerWidthFromContentWidth.apply(this,arguments);if(c.targetContext!==c){b+=c.getPaddingInfo().width}return b},measureContentWidth:function(a){return a.bodyContext.setWidth(a.bodyContext.el.dom.offsetWidth,false)},measureContentHeight:function(a){return a.bodyContext.setHeight(a.bodyContext.el.dom.offsetHeight,false)},publishInnerHeight:function(c,a){var d=a-c.getFrameInfo().height,b=c.targetContext;if(b!==c){d-=c.getPaddingInfo().height}return c.bodyContext.setHeight(d,!c.heightModel.natural)},publishInnerWidth:function(d,c){var a=c-d.getFrameInfo().width,b=d.targetContext;if(b!==d){a-=d.getPaddingInfo().width}d.bodyContext.setWidth(a,!d.widthModel.natural)}},0,0,0,0,["layout.body"],0,[Ext.layout.component,"Body"],0));(Ext.cmd.derive("Ext.layout.component.FieldSet",Ext.layout.component.Body,{type:"fieldset",defaultCollapsedWidth:100,beforeLayoutCycle:function(a){if(a.target.collapsed){a.heightModel=this.sizeModels.shrinkWrap}},beginLayout:function(b){var a=this.owner.legend;Ext.layout.component.Body.prototype.beginLayout.call(this,b);if(a){b.legendContext=b.context.getCmp(a)}},beginLayoutCycle:function(b){var c=b.target,a;Ext.layout.component.Body.prototype.beginLayoutCycle.apply(this,arguments);if(c.collapsed){b.setContentHeight(0);b.restoreMinHeight=c.minHeight;delete c.minHeight;if(b.widthModel.shrinkWrap){a=this.lastComponentSize;b.setContentWidth((a&&a.contentWidth)||this.defaultCollapsedWidth)}}},finishedLayout:function(c){var a=this.owner,b=c.restoreMinHeight;Ext.layout.component.Body.prototype.finishedLayout.apply(this,arguments);if(b){a.minHeight=b}},calculateOwnerWidthFromContentWidth:function(c,a){var b=c.legendContext;if(b){a=Math.max(a,b.getProp("width"))}return Ext.layout.component.Body.prototype.calculateOwnerWidthFromContentWidth.call(this,c,a)},calculateOwnerHeightFromContentHeight:function(d,c){var a=d.getBorderInfo(),b=d.legendContext;return d.getProp("contentHeight")+d.getPaddingInfo().height+(Ext.isIE8?d.bodyContext.getPaddingInfo().top:0)+(b?b.getProp("height"):a.top)+a.bottom},publishInnerHeight:function(d,a){var c=d.legendContext,b=0;if(c){b=c.getProp("height")}if(b===undefined){this.done=false}else{Ext.layout.component.Body.prototype.publishInnerHeight.call(this,d,a-b)}},getLayoutItems:function(){var a=this.owner.legend;return a?[a]:[]}},0,0,0,0,["layout.fieldset"],0,[Ext.layout.component,"FieldSet"],0));(Ext.cmd.derive("Ext.layout.container.Absolute",Ext.layout.container.Anchor,{alternateClassName:"Ext.layout.AbsoluteLayout",targetCls:"x-abs-layout-ct",itemCls:"x-abs-layout-item",type:"absolute",adjustWidthAnchor:function(c,b){var d=this.targetPadding,a=b.getStyle("left");return c-a+d.left},adjustHeightAnchor:function(a,b){var c=this.targetPadding,d=b.getStyle("top");return a-d+c.top},isItemShrinkWrap:function(a){return true},onContentChange:function(a,c){var b=false;if(a.anchor&&c&&c.show){b=Ext.layout.container.Anchor.prototype.onContentChange.call(this,a,c)}return b},beginLayout:function(b){var a=this,c=a.getTarget();Ext.layout.container.Anchor.prototype.beginLayout.call(this,b);if(c.dom!==document.body){c.position()}a.targetPadding=b.targetContext.getPaddingInfo()},isItemBoxParent:function(a){return true},calculateContentSize:function(m,k){var u=this,d=(k||0)|((m.widthModel.shrinkWrap?1:0)|(m.heightModel.shrinkWrap?2:0)),c=(d&1)||undefined,h=(d&2)||undefined,b=m.childItems,g=b.length,r=0,p=0,l=0,e=m.props,t,j,n,o,s,a,q;if(c){if(isNaN(e.contentWidth)){++l}else{c=undefined}}if(h){if(isNaN(e.contentHeight)){++l}else{h=undefined}}if(l){for(s=0;s<g;++s){n=b[s];j=n.target;o=h&&n.getProp("height");q=c&&n.getProp("width");a=n.getMarginInfo();o+=a.bottom;q+=a.right;r=Math.max(r,(j.y||0)+o);p=Math.max(p,(j.x||0)+q);if(isNaN(r)&&isNaN(p)){u.done=false;return}}if(c||h){t=m.targetContext.getPaddingInfo()}if(c&&!m.setContentWidth(p+t.width)){u.done=false}if(h&&!m.setContentHeight(r+t.height)){u.done=false}}}},0,0,0,0,["layout.absolute"],0,[Ext.layout.container,"Absolute",Ext.layout,"AbsoluteLayout"],0));Ext.define("Ext.rtl.layout.container.Absolute",{override:"Ext.layout.container.Absolute",adjustWidthAnchor:function(c,b){if(this.owner.getInherited().rtl){var d=this.targetPadding,a=b.getStyle("right");return c-a+d.right}else{return(arguments.callee.$previous||Ext.layout.container.Anchor.prototype.adjustWidthAnchor).call(this,c,b)}}});(Ext.cmd.derive("Ext.layout.container.Accordion",Ext.layout.container.VBox,{type:"accordion",alternateClassName:"Ext.layout.AccordionLayout",targetCls:"x-accordion-layout-ct",itemCls:["x-box-item","x-accordion-item"],align:"stretch",enableSplitters:false,fill:true,titleCollapse:true,hideCollapseTool:false,collapseFirst:undefined,animate:true,activeOnTop:false,multi:false,panelCollapseMode:"header",defaultAnimatePolicy:{y:true,height:true},constructor:function(){var a=this;Ext.layout.container.VBox.prototype.constructor.apply(this,arguments);if(a.animate){a.animatePolicy={};a.animatePolicy[a.names.x]=true;a.animatePolicy[a.names.width]=true}else{a.animatePolicy=null}},beforeRenderItems:function(h){var j=this,g=h.length,b=j.owner,k=j.collapseFirst,a=Ext.isDefined(k),l=j.getExpanded(true)[0],e=j.multi,d,c;for(c=0;c<g;c++){d=h[c];if(!d.rendered){if(!e||d.collapsible!==false){d.collapsible=true}if(d.collapsible){if(a){d.collapseFirst=k}if(j.hideCollapseTool){d.hideCollapseTool=j.hideCollapseTool;d.titleCollapse=true}else{if(j.titleCollapse&&d.titleCollapse===undefined){d.titleCollapse=j.titleCollapse}}}d.hideHeader=d.width=null;d.title=d.title||"&#160;";d.addBodyCls("x-accordion-body");if(!e){if(l){d.collapsed=l!==d}else{if(d.hasOwnProperty("collapsed")&&d.collapsed===false){l=d}else{d.collapsed=true}}b.mon(d,"show",j.onComponentShow,j)}d.headerOverCls="x-accordion-hd-over"}}if(!j.processing&&!e){if(!l){if(g){h[0].collapsed=false}}else{if(j.activeOnTop){l.collapsed=false;j.configureItem(l);if(b.items.indexOf(l)>0){b.insert(0,l)}}}}},getItemsRenderTree:function(a){this.beforeRenderItems(a);return Ext.layout.container.VBox.prototype.getItemsRenderTree.apply(this,arguments)},renderItems:function(a,b){this.beforeRenderItems(a);Ext.layout.container.VBox.prototype.renderItems.apply(this,arguments)},configureItem:function(a){Ext.layout.container.VBox.prototype.configureItem.apply(this,arguments);a.ignoreHeaderBorderManagement=true;a.animCollapse=false;if(this.fill){a.flex=1}},beginLayout:function(a){Ext.layout.container.VBox.prototype.beginLayout.apply(this,arguments);this.updatePanelClasses(a)},updatePanelClasses:function(e){var c=e.visibleItems,d=c.length,a=true,b,h,g;for(b=0;b<d;b++){h=c[b];g=h.header;g.addCls("x-accordion-hd");if(a){g.removeCls("x-accordion-hd-sibling-expanded")}else{g.addCls("x-accordion-hd-sibling-expanded")}if(b+1===d&&h.collapsed){g.addCls("x-accordion-hd-last-collapsed")}else{g.removeCls("x-accordion-hd-last-collapsed")}a=h.collapsed}},onBeforeComponentExpand:function(i){var d=this,a=d.owner,h=d.multi,g=!h&&!d.animate&&d.activeOnTop,c,b,e;if(!d.processing){d.processing=true;b=a.deferLayouts;a.deferLayouts=true;if(!h){c=d.getExpanded()[0];if(c&&c!==i){e=c.$layoutAnim;if(e){e.jumpToEnd()}c.collapse()}}if(g){Ext.suspendLayouts();a.insert(0,i);Ext.resumeLayouts()}a.deferLayouts=b;d.processing=false}},onBeforeComponentCollapse:function(d){var e=this,a=e.owner,g,c,b;if(e.owner.items.getCount()===1){return false}if(!e.processing){e.processing=true;b=a.deferLayouts;a.deferLayouts=true;g=d.next()||d.prev();if(e.multi){c=e.getExpanded();if(c.length===1){g.expand()}}else{if(g){g.expand()}}a.deferLayouts=b;e.processing=false}},onComponentShow:function(a){this.onBeforeComponentExpand(a)},onAdd:function(b){var a=this;Ext.layout.container.VBox.prototype.onAdd.apply(this,arguments);if(b.collapseMode==="placeholder"){b.collapseMode=a.panelCollapseMode}b.collapseDirection=b.headerPosition;if(a.layoutCount&&!a.multi&&a.owner.items.getCount()>1){a.processing=true;b.collapse();a.processing=false}},onRemove:function(a,d){var c=this,b;Ext.layout.container.VBox.prototype.onRemove.apply(this,arguments);if(!c.owner.destroying&&!c.multi&&!a.collapsed){b=c.owner.items.first();if(b){b.expand()}}},getExpanded:function(h){var b=this.owner.items.items,a=b.length,d=0,c=[],g,e;for(;d<a;++d){e=b[d];if(!e.hidden){if(h){g=e.hasOwnProperty("collapsed")&&e.collapsed===false}else{g=!e.collapsed}if(g){c.push(e)}}}return c},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn},1,0,0,0,["layout.accordion"],0,[Ext.layout.container,"Accordion",Ext.layout,"AccordionLayout"],0));(Ext.cmd.derive("Ext.resizer.BorderSplitter",Ext.resizer.Splitter,{collapseTarget:null,getTrackerConfig:function(){var a=Ext.resizer.Splitter.prototype.getTrackerConfig.call(this);a.xclass="Ext.resizer.BorderSplitterTracker";return a},onTargetCollapse:function(a){Ext.resizer.Splitter.prototype.onTargetCollapse.call(this,a);if(this.performCollapse!==false&&a.collapseMode=="mini"){a.addCls(a.baseCls+"-"+a.collapsedCls+"-mini")}},onTargetExpand:function(a){Ext.resizer.Splitter.prototype.onTargetExpand.call(this,a);if(this.performCollapse!==false&&a.collapseMode=="mini"){a.removeCls(a.baseCls+"-"+a.collapsedCls+"-mini")}}},0,["bordersplitter"],["component","box","splitter","bordersplitter"],{component:true,box:true,splitter:true,bordersplitter:true},["widget.bordersplitter"],0,[Ext.resizer,"BorderSplitter"],0));(Ext.cmd.derive("Ext.layout.container.Border",Ext.layout.container.Container,{alternateClassName:"Ext.layout.BorderLayout",targetCls:"x-border-layout-ct",itemCls:["x-border-item","x-box-item"],type:"border",isBorderLayout:true,padding:undefined,percentageRe:/(\d+)%/,horzPositionProp:"left",padOnContainerProp:"left",padNotOnContainerProp:"right",axisProps:{horz:{borderBegin:"west",borderEnd:"east",horizontal:true,posProp:"x",sizeProp:"width",sizePropCap:"Width"},vert:{borderBegin:"north",borderEnd:"south",horizontal:false,posProp:"y",sizeProp:"height",sizePropCap:"Height"}},centerRegion:null,manageMargins:true,panelCollapseAnimate:true,panelCollapseMode:"placeholder",regionWeights:{north:20,south:10,center:0,west:-10,east:-20},beginAxis:function(m,b,w){var u=this,c=u.axisProps[w],r=!c.horizontal,l=c.sizeProp,p=0,a=m.childItems,g=a.length,t,q,o,h,s,e,k,n,d,v,j;for(q=0;q<g;++q){o=a[q];s=o.target;o.layoutPos={};if(s.region){o.region=e=s.region;o.isCenter=s.isCenter;o.isHorz=s.isHorz;o.isVert=s.isVert;o.weight=s.weight||u.regionWeights[e]||0;s.weight=o.weight;b[s.id]=o;if(s.isCenter){t=o;h=s.flex;m.centerRegion=t;continue}if(r!==o.isVert){continue}o.reverseWeighting=(e===c.borderEnd);n=s[l];d=typeof n;if(!s.collapsed){if(d==="string"&&(k=u.percentageRe.exec(n))){o.percentage=parseInt(k[1],10)}else{if(s.flex){p+=o.flex=s.flex}}}}}if(t){v=t.target;if((j=v.placeholderFor)){if(!h&&r===j.collapsedVertical()){h=0;t.collapseAxis=w}}else{if(v.collapsed&&(r===v.collapsedVertical())){h=0;t.collapseAxis=w}}}if(h==null){h=1}p+=h;return Ext.apply({before:r?"top":"left",totalFlex:p},c)},beginLayout:function(d){var l=this,k=l.getLayoutItems(),e=l.padding,m=typeof e,p=false,q,o,b,h,g,a,c,j,n;if(e){if(m==="string"||m==="number"){e=Ext.util.Format.parseBox(e)}}else{e=d.getEl("getTargetEl").getPaddingInfo();p=true}d.outerPad=e;d.padOnContainer=p;for(h=0,b=k.length;h<b;++h){o=k[h];a=l.getSplitterTarget(o);if(a){c=undefined;j=!!o.hidden;if(!a.split){if(a.isCollapsingOrExpanding){c=!!a.collapsed}}else{if(j!==a.hidden){c=!a.hidden}}if(c){o.show()}else{if(c===false){o.hide()}}}}Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);k=d.childItems;b=k.length;g={};d.borderAxisHorz=l.beginAxis(d,g,"horz");d.borderAxisVert=l.beginAxis(d,g,"vert");for(h=0;h<b;++h){q=k[h];a=l.getSplitterTarget(q.target);if(a){n=g[a.id];if(!n){n=d.getEl(a.el,l);n.region=a.region}q.collapseTarget=a=n;q.weight=a.weight;q.reverseWeighting=a.reverseWeighting;a.splitter=q;q.isHorz=a.isHorz;q.isVert=a.isVert}}l.sortWeightedItems(k,"reverseWeighting");l.setupSplitterNeighbors(k)},calculate:function(d){var m=this,a=m.getContainerSize(d),j=d.childItems,c=j.length,b=d.borderAxisHorz,k=d.borderAxisVert,e=d.outerPad,o=d.padOnContainer,h,q,l,p,n,g;b.begin=e[m.padOnContainerProp];k.begin=e.top;n=b.end=b.flexSpace=a.width+(o?e[m.padOnContainerProp]:-e[m.padNotOnContainerProp]);g=k.end=k.flexSpace=a.height+(o?e.top:-e.bottom);for(h=0;h<c;++h){q=j[h];l=q.getMarginInfo();if(q.isHorz||q.isCenter){b.addUnflexed(l.width);n-=l.width}if(q.isVert||q.isCenter){k.addUnflexed(l.height);g-=l.height}if(!q.flex&&!q.percentage){if(q.isHorz||(q.isCenter&&q.collapseAxis==="horz")){p=q.getProp("width");b.addUnflexed(p);if(q.collapseTarget){n-=p}}else{if(q.isVert||(q.isCenter&&q.collapseAxis==="vert")){p=q.getProp("height");k.addUnflexed(p);if(q.collapseTarget){g-=p}}}}}for(h=0;h<c;++h){q=j[h];l=q.getMarginInfo();if(q.percentage){if(q.isHorz){p=Math.ceil(n*q.percentage/100);p=q.setWidth(p);b.addUnflexed(p)}else{if(q.isVert){p=Math.ceil(g*q.percentage/100);p=q.setHeight(p);k.addUnflexed(p)}}}}for(h=0;h<c;++h){q=j[h];if(!q.isCenter){m.calculateChildAxis(q,b);m.calculateChildAxis(q,k)}}if(m.finishAxis(d,k)+m.finishAxis(d,b)<2){m.done=false}else{m.finishPositions(j)}},calculateChildAxis:function(l,c){var a=l.collapseTarget,h="set"+c.sizePropCap,e=c.sizeProp,d=l.getMarginInfo()[e],j,b,g,i,k;if(a){j=a.region}else{j=l.region;g=l.flex}b=j===c.borderBegin;if(!b&&j!==c.borderEnd){l[h](c.end-c.begin-d);i=c.begin}else{if(g){k=Math.ceil(c.flexSpace*(g/c.totalFlex));k=l[h](k)}else{if(l.percentage){k=l.peek(e)}else{k=l.getProp(e)}}k+=d;if(b){i=c.begin;c.begin+=k}else{c.end=i=c.end-k}}l.layoutPos[c.posProp]=i},eachItem:function(h,d,c){var g=this,a=g.getLayoutItems(),b=0,e;if(Ext.isFunction(h)){d=h;c=d}for(b;b<a.length;b++){e=a[b];if(!h||e.region===h){if(d.call(c,e)===false){break}}}},finishAxis:function(d,c){var b=c.end-c.begin,a=d.centerRegion;if(a){a["set"+c.sizePropCap](b-a.getMarginInfo()[c.sizeProp]);a.layoutPos[c.posProp]=c.begin}return Ext.isNumber(b)?1:0},finishPositions:function(e){var c=e.length,b,a,d=this.horzPositionProp;for(b=0;b<c;++b){a=e[b];a.setProp("x",a.layoutPos.x+a.marginInfo[d]);a.setProp("y",a.layoutPos.y+a.marginInfo.top)}},getLayoutItems:function(){var a=this.owner,e=(a&&a.items&&a.items.items)||[],d=e.length,b=[],c=0,g,h;for(;c<d;c++){g=e[c];h=g.placeholderFor;if(g.hidden||((!g.floated||g.isCollapsingOrExpanding===2)&&!(h&&h.isCollapsingOrExpanding===2))){b.push(g)}}return b},getPlaceholder:function(a){return a.getPlaceholder&&a.getPlaceholder()},getMaxWeight:function(a){return this.getMinMaxWeight(a)},getMinWeight:function(a){return this.getMinMaxWeight(a,true)},getMinMaxWeight:function(d,a){var b=this,c=null;b.eachItem(d,function(e){if(e.hasOwnProperty("weight")){if(c===null){c=e.weight;return}if((a&&e.weight<c)||e.weight>c){c=e.weight}}},this);return c},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return true},isItemShrinkWrap:function(a){return true},insertSplitter:function(d,c,g,b){var h=d.region,e=Ext.apply({xtype:"bordersplitter",collapseTarget:d,id:d.id+"-splitter",hidden:g,canResize:d.splitterResize!==false,splitterFor:d,synthetic:true},b),a=c+((h==="south"||h==="east")?0:1);if(d.collapseMode==="mini"){e.collapsedCls=d.collapsedCls}d.splitter=this.owner.add(a,e)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(a,c){var b;if(c&&c.splitter){b=c.region;if(b==="south"||b==="east"){c=c.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,a,c)},onAdd:function(j,d){var g=this,c=j.placeholderFor,i=j.region,e,h,a,b;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(i){Ext.apply(j,g.regionFlags[i]);if(j.initBorderRegion){j.initBorderRegion()}e=i==="center";if(e){g.centerRegion=j}else{h=j.split;a=!!j.hidden;if(typeof h==="object"){b=h;h=true}if((j.isHorz||j.isVert)&&(h||j.collapseMode==="mini")){g.insertSplitter(j,d,a||!h,b)}}if(!e&&!j.hasOwnProperty("collapseMode")){j.collapseMode=g.panelCollapseMode}if(!j.hasOwnProperty("animCollapse")){if(j.collapseMode!=="placeholder"){j.animCollapse=false}else{j.animCollapse=g.panelCollapseAnimate}}}else{if(c){Ext.apply(j,g.regionFlags[c.region]);j.region=c.region;j.weight=c.weight}}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(b,d){var e=this,i=b.region,g=b.splitter,a=e.owner,h=a.destroying,c;if(i){if(b.isCenter){e.centerRegion=null}delete b.isCenter;delete b.isHorz;delete b.isVert;if(g&&!a.destroying){a.doRemove(g,true)}delete b.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!h&&!d&&b.rendered){c=b.getEl();if(c){c.setStyle("top","");c.setStyle(e.horzPositionProp,"")}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:true,isHorz:false,isVert:false},north:{isCenter:false,isHorz:false,isVert:true,collapseDirection:"top"},south:{isCenter:false,isHorz:false,isVert:true,collapseDirection:"bottom"},west:{isCenter:false,isHorz:true,isVert:false,collapseDirection:"left"},east:{isCenter:false,isHorz:true,isVert:false,collapseDirection:"right"}},setupSplitterNeighbors:function(m){var p={},e=m.length,o=this.touchedRegions,h,g,a,l,d,k,n,b,c;for(h=0;h<e;++h){k=m[h].target;n=k.region;if(k.isCenter){a=k}else{if(n){c=o[n];for(g=0,l=c.length;g<l;++g){d=p[c[g]];if(d){d.neighbors.push(k)}}if(k.placeholderFor){b=k.placeholderFor.splitter}else{b=k.splitter}if(b){b.neighbors=[]}p[n]=b}}}if(a){c=o.center;for(g=0,l=c.length;g<l;++g){d=p[c[g]];if(d){d.neighbors.push(a)}}}},touchedRegions:{center:["north","south","east","west"],north:["north","east","west"],south:["south","east","west"],east:["east","north","south"],west:["west","north","south"]},sizePolicies:{vert:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},horz:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},flexAll:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(e){var d=this,a=this.sizePolicies,c,b,g,h;if(e.isCenter){h=e.placeholderFor;if(h){if(h.collapsedVertical()){return a.vert}return a.horz}if(e.collapsed){if(e.collapsedVertical()){return a.vert}return a.horz}return a.flexAll}c=e.collapseTarget;if(c){return c.isVert?a.vert:a.horz}if(e.region){if(e.isVert){b=e.height;g=a.vert}else{b=e.width;g=a.horz}if(e.flex||(typeof b==="string"&&d.percentageRe.test(b))){return a.flexAll}return g}return d.autoSizePolicy}},0,0,0,0,["layout.border"],0,[Ext.layout.container,"Border",Ext.layout,"BorderLayout"],function(){var a={addUnflexed:function(c){this.flexSpace=Math.max(this.flexSpace-c,0)}},b=this.prototype.axisProps;Ext.apply(b.horz,a);Ext.apply(b.vert,a)}));Ext.define("Ext.rtl.layout.container.Border",{override:"Ext.layout.container.Border",initLayout:function(){var a=this;if(a.owner.getInherited().rtl){a.padOnContainerProp="right";a.padNotOnContainerProp="left";a.horzPositionProp="right"}(arguments.callee.$previous||Ext.layout.container.Container.prototype.initLayout).apply(this,arguments)}});(Ext.cmd.derive("Ext.layout.container.Card",Ext.layout.container.Fit,{alternateClassName:"Ext.layout.CardLayout",type:"card",hideInactive:true,deferredRender:false,getRenderTree:function(){var a=this,b=a.getActiveItem();if(b){if(b.hasListeners.beforeactivate&&b.fireEvent("beforeactivate",b)===false){b=a.activeItem=a.owner.activeItem=null}else{if(b.hasListeners.activate){b.on({boxready:function(){b.fireEvent("activate",b)},single:true})}}if(a.deferredRender){if(b){return a.getItemsRenderTree([b])}}else{return Ext.layout.container.Fit.prototype.getRenderTree.apply(this,arguments)}}},renderChildren:function(){var a=this,b=a.getActiveItem();if(!a.deferredRender){Ext.layout.container.Fit.prototype.renderChildren.call(this)}else{if(b){a.renderItems([b],a.getRenderTarget())}}},isValidParent:function(c,d,a){var b=c.el?c.el.dom:Ext.getDom(c);return(b&&b.parentNode===(d.dom||d))||false},getActiveItem:function(){var c=this,b=c.activeItem===undefined?(c.owner&&c.owner.activeItem):c.activeItem,a=c.parseActiveItem(b);if(a&&c.owner.items.indexOf(a)!==-1){c.activeItem=a}return a==null?null:(c.activeItem||c.owner.activeItem)},parseActiveItem:function(a){var b;if(a&&a.isComponent){b=a}else{if(typeof a==="number"||a===undefined){b=this.getLayoutItems()[a||0]}else{if(a===null){b=null}else{b=this.owner.getComponent(a)}}}return b},configureItem:function(a){a.setHiddenState(a!==this.getActiveItem());Ext.layout.container.Fit.prototype.configureItem.apply(this,arguments)},onAdd:function(a,b){Ext.layout.container.Fit.prototype.onAdd.call(this,a,b);this.setItemHideMode(a)},onRemove:function(a){var b=this;Ext.layout.container.Fit.prototype.onRemove.call(this,a);b.resetItemHideMode(a);if(a===b.activeItem){b.activeItem=undefined}},getAnimation:function(b,a){var c=(b||{}).cardSwitchAnimation;if(c===false){return false}return c||a.cardSwitchAnimation},getNext:function(){var c=arguments[0],a=this.getLayoutItems(),b=Ext.Array.indexOf(a,this.activeItem);return a[b+1]||(c?a[0]:false)},next:function(){var b=arguments[0],a=arguments[1];return this.setActiveItem(this.getNext(a),b)},getPrev:function(){var c=arguments[0],a=this.getLayoutItems(),b=Ext.Array.indexOf(a,this.activeItem);return a[b-1]||(c?a[a.length-1]:false)},prev:function(){var b=arguments[0],a=arguments[1];return this.setActiveItem(this.getPrev(a),b)},setActiveItem:function(b){var e=this,a=e.owner,d=e.activeItem,h=a.rendered,c,g;b=e.parseActiveItem(b);c=a.items.indexOf(b);if(c===-1){c=a.items.items.length;Ext.suspendLayouts();b=a.add(b);Ext.resumeLayouts()}if(b&&d!==b){if(b.fireEvent("beforeactivate",b,d)===false){return false}if(d&&d.fireEvent("beforedeactivate",d,b)===false){return false}if(h){Ext.suspendLayouts();if(!b.rendered){e.renderItem(b,e.getRenderTarget(),a.items.length)}if(d){if(e.hideInactive){g=d.el.contains(Ext.Element.getActiveElement());d.hide();if(d.hidden){d.hiddenByLayout=true;d.fireEvent("deactivate",d,b)}else{return false}}}if(b.hidden){b.show()}if(b.hidden){e.activeItem=b=null}else{e.activeItem=b;if(g){if(!b.defaultFocus){b.defaultFocus=":focusable"}b.focus()}}Ext.resumeLayouts(true)}else{e.activeItem=b}b.fireEvent("activate",b,d);return e.activeItem}return false},resetItemHideMode:function(a){a.hideMode=a.originalHideMode;delete a.originalHideMode},setItemHideMode:function(a){a.originalHideMode=a.hideMode;a.hideMode="offsets"}},0,0,0,0,["layout.card"],0,[Ext.layout.container,"Card",Ext.layout,"CardLayout"],0));(Ext.cmd.derive("Ext.layout.container.Center",Ext.layout.container.Fit,{alternateClassName:"Ext.ux.layout.Center",type:"center",percentRe:/^\d+(?:\.\d+)?\%$/,itemCls:"x-center-layout-item",childEls:["targetEl"],renderTpl:['<div id="{ownerId}-targetEl" data-ref="targetEl" class="{targetElCls}" role="presentation">{%this.renderBody(out, values)%}</div>'],targetElCls:"x-center-target",beginLayout:function(b){var k=this,c=k.percentRe,g,j,d,a,l,h,e;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);g=b.childItems;for(d=0,j=g.length;d<j;++d){a=g[d];l=a.target;h=a.widthModel;e=a.heightModel;if(c.test(l.width)){l.getEl().setStyle("width","")}if(c.test(l.height)){l.getEl().setStyle("height","")}}b.targetElContext=b.getEl("targetEl",k)},beginLayoutCycle:function(b,a){var c=this.targetEl;Ext.layout.container.Fit.prototype.beginLayoutCycle.call(this,b,a);c.setStyle("width","");c.setStyle("height","")},getRenderData:function(){var a=Ext.layout.container.Fit.prototype.getRenderData.call(this);a.targetElCls=this.targetElCls;return a},getRenderTarget:function(){return this.targetEl},getItemSizePolicy:function(c,e){var b=this,a=e||b.owner.getSizeModel(),d=b.percentRe,g=((a.width.shrinkWrap||!d.test(c.width))?0:1)|((a.height.shrinkWrap||!d.test(c.height))?0:2);return b.sizePolicies[g]},isItemShrinkWrap:function(a){return true},calculate:function(b){var a=b.targetElContext,c;Ext.layout.container.Fit.prototype.calculate.call(this,b);c=b.state.info;if(b.widthModel.shrinkWrap){a.setWidth(c.contentWidth)}if(b.heightModel.shrinkWrap){a.setHeight(c.contentHeight)}},getPos:function(c,e,d){var a=d+"Model",b=c.props[d],g=0;if(!c[a].calculated){b+=e.margins[d]}if(!e.ownerContext[a].shrinkWrap){g=Math.round((e.targetSize[d]-b)/2);if(isNaN(g)){this.done=false}}return Math.max(g,0)},positionItemX:function(a,c){var b=this.getPos(a,c,"width");a.setProp("x",b)},positionItemY:function(a,c){var b=this.getPos(a,c,"height");a.setProp("y",b)},setItemHeight:function(b,c){var a=parseFloat(b.target.height)/100;b.setHeight(Math.round((c.targetSize.height-c.margins.height)*a))},setItemWidth:function(b,c){var a=parseFloat(b.target.width)/100;b.setWidth(Math.round((c.targetSize.width-c.margins.width)*a))}},0,0,0,0,["layout.center","layout.ux.center"],0,[Ext.layout.container,"Center",Ext.ux.layout,"Center"],0));(Ext.cmd.derive("Ext.layout.container.Form",Ext.layout.container.Auto,{alternateClassName:"Ext.layout.FormLayout",type:"form",formWrapCls:"x-form-layout-wrap",formWrapAutoLabelCls:"x-form-layout-auto-label",formWrapSizedLabelCls:"x-form-layout-sized-label",formColGroupCls:"x-form-layout-colgroup",formColumnCls:"x-form-layout-column",formLabelColumnCls:"x-form-layout-label-column",childEls:["formWrap","labelColumn"],beforeBodyTpl:'<div id="{ownerId}-formWrap" data-ref="formWrap" class="{formWrapCls}"<tpl if="itemSpacing"> style="border-spacing:{itemSpacing}px"</tpl>><div class="{formColGroupCls}"><div id="{ownerId}-labelColumn" data-ref="labelColumn" class="{formColumnCls} {formLabelColumnCls}"<tpl if="labelWidth"> style="width:{labelWidth}"</tpl>></div><div class="{formColumnCls}"></div></div>',afterBodyTpl:"</div>",getRenderData:function(){var c=this,a=c.labelWidth,b=c.formWrapCls,d=Ext.layout.container.Auto.prototype.getRenderData.call(this);if(a){if(typeof a==="number"){a+="px"}d.labelWidth=a;b+=" "+c.formWrapSizedLabelCls}else{b+=" "+c.formWrapAutoLabelCls}d.formWrapCls=b;d.formColGroupCls=c.formColGroupCls;d.formColumnCls=c.formColumnCls;d.formLabelColumnCls=c.formLabelColumnCls;return d},getRenderTarget:function(){return this.formWrap}},0,0,0,0,["layout.form"],0,[Ext.layout.container,"Form",Ext.layout,"FormLayout"],0));(Ext.cmd.derive("Ext.menu.ColorPicker",Ext.menu.Menu,{hideOnClick:true,pickerId:null,initComponent:function(){var b=this,a=Ext.apply({},b.initialConfig);delete a.listeners;Ext.apply(b,{plain:true,showSeparator:false,bodyPadding:0,items:Ext.applyIf({cls:"x-menu-color-item",margin:0,id:b.pickerId,xtype:"colorpicker"},a)});Ext.menu.Menu.prototype.initComponent.apply(this,arguments);b.picker=b.down("colorpicker");b.relayEvents(b.picker,["select"]);if(b.hideOnClick){b.on("select",b.hidePickerOnSelect,b)}},hidePickerOnSelect:function(){Ext.menu.Manager.hideAll()}},0,["colormenu"],["component","box","container","panel","menu","colormenu"],{component:true,box:true,container:true,panel:true,menu:true,colormenu:true},["widget.colormenu"],0,[Ext.menu,"ColorPicker"],0));(Ext.cmd.derive("Ext.menu.DatePicker",Ext.menu.Menu,{ariaRole:"dialog",ariaLabel:"Date picker",hideOnClick:true,pickerId:null,initComponent:function(){var b=this,a=Ext.apply({},b.initialConfig);delete a.listeners;Ext.apply(b,{showSeparator:false,plain:true,bodyPadding:0,items:Ext.applyIf({cls:"x-menu-date-item",margin:0,border:false,id:b.pickerId,xtype:"datepicker"},a)});Ext.menu.Menu.prototype.initComponent.apply(this,arguments);b.picker=b.down("datepicker");b.relayEvents(b.picker,["select"]);if(b.hideOnClick){b.on("select",b.hidePickerOnSelect,b)}},hidePickerOnSelect:function(){Ext.menu.Manager.hideAll()}},0,["datemenu"],["component","box","container","panel","menu","datemenu"],{component:true,box:true,container:true,panel:true,menu:true,datemenu:true},["widget.datemenu"],0,[Ext.menu,"DatePicker"],0));(Ext.cmd.derive("Ext.panel.Pinnable",Ext.Mixin,{mixinId:"pinnable",pinnable:true,pinnedTip:"Unpin this item",unpinnedTip:"Pin this item",initPinnable:function(){var b=this,a=b.isPinned();b.addTool(b.pinTool=Ext.widget({xtype:"tool",type:a?"unpin":"pin",callback:"togglePin",scope:b,tooltip:a?b.pinnedTip:b.unpinnedTip}))},isPinned:function(){return !this.floating},setPinned:function(b){var c=this,a;if(b!==c.isPinned()){a=[c,b];if(c.fireEventArgs("beforepinchange",a)!==false){c.updatePinned(b);c.fireEventArgs("pinchange",a)}}},togglePin:function(){this.setPinned(!this.isPinned())},updatePinned:function(b){var c=this,a=c.pinTool;a.setTooltip(b?c.pinnedTip:c.unpinnedTip);a.setType(b?"unpin":"pin")}},0,0,0,0,0,0,[Ext.panel,"Pinnable"],0));(Ext.cmd.derive("Ext.plugin.Manager",Ext.Base,{alternateClassName:["Ext.PluginManager","Ext.PluginMgr"],singleton:true,typeName:"ptype",create:function(b,e,d){var a,c;if(b.init){a=b}else{if(d){b=Ext.apply({},b);b.cmp=d}else{d=b.cmp}if(b.xclass){a=Ext.create(b)}else{c="plugin."+(b.ptype||e);a=Ext.ClassManager.instantiateByAlias(c,b)}}if(a&&d&&a.setCmp&&!a.setCmpCalled){a.setCmp(d);a.setCmpCalled=true}return a}},0,0,0,0,0,0,[Ext.plugin,"Manager",Ext,"PluginManager",Ext,"PluginMgr"],0));(Ext.cmd.derive("Ext.resizer.BorderSplitterTracker",Ext.resizer.SplitterTracker,{getPrevCmp:null,getNextCmp:null,calculateConstrainRegion:function(){var z=this,a=z.splitter,o=a.collapseTarget,d=a.defaultSplitMin,h=a.vertical?"Width":"Height",c="min"+h,v="max"+h,j="get"+h,u=a.neighbors,e=u.length,n=o.el.getBox(),g=n.x,p=n.y,y=n.right,k=n.bottom,r=a.vertical?(y-g):(k-p),x,l,s,m,w,t,q,b;m=(o[c]||Math.min(r,d))-r;w=o[v];if(!w){w=1000000000}else{w-=r}b=r;for(x=0;x<e;++x){l=u[x];r=l[j]();s=l[v];if(s===null){s=undefined}t=r-s;q=r-(l[c]||Math.min(r,d));if(!isNaN(t)){if(m<t){m=t}}if(w>q){w=q}}if(w-m<2){return null}n=new Ext.util.Region(p,y,k,g);z.constraintAdjusters[z.getCollapseDirection()](n,m,w,a);z.dragInfo={minRange:m,maxRange:w,targetSize:b};return n},constraintAdjusters:{left:function(c,a,b,d){c[0]=c.x=c.left=c.right+a;c.right+=b+d.getWidth()},top:function(c,a,b,d){c[1]=c.y=c.top=c.bottom+a;c.bottom+=b+d.getHeight()},bottom:function(c,a,b,d){c.bottom=c.top-a;c.top-=b+d.getHeight()},right:function(c,a,b,d){c.right=c.left-a;c[0]=c.x=c.left=c.x-b+d.getWidth()}},onBeforeStart:function(k){var g=this,h=g.splitter,d=h.collapseTarget,b=h.neighbors,c=b.length,a,j;if(d.collapsed){return false}for(a=0;a<c;++a){j=b[a];if(j.collapsed&&j.isHorz===d.isHorz){return false}}if(!(g.constrainTo=g.calculateConstrainRegion())){return false}return true},performResize:function(j,i){var k=this,b=k.splitter,h=b.getCollapseDirection(),a=b.collapseTarget,g=k.splitAdjusters[b.vertical?"horz":"vert"],l=i[g.index],d=k.dragInfo,c;if(h==="right"||h==="bottom"){l=-l}l=Math.min(Math.max(d.minRange,l),d.maxRange);if(l){(c=b.ownerCt).suspendLayouts();g.adjustTarget(a,d.targetSize,l);c.resumeLayouts(true)}},splitAdjusters:{horz:{index:0,adjustTarget:function(b,a,c){b.flex=null;b.setSize(a+c)}},vert:{index:1,adjustTarget:function(b,a,c){b.flex=null;b.setSize(undefined,a+c)}}},getCollapseDirection:function(){return this.splitter.getCollapseDirection()}},0,0,0,0,0,0,[Ext.resizer,"BorderSplitterTracker"],0));Ext.define("Ext.rtl.resizer.BorderSplitterTracker",{override:"Ext.resizer.BorderSplitterTracker",rtlDirections:{top:"top",right:"left",bottom:"bottom",left:"right"},getCollapseDirection:function(){var a=this.splitter.getCollapseDirection();if(!this.splitter.getInherited().rtl!==!Ext.rootInheritedState.rtl){a=this.rtlDirections[a]}return a}});(Ext.cmd.derive("Ext.resizer.Handle",Ext.Component,{handleCls:"",baseHandleCls:"x-resizable-handle",region:"",ariaRole:"presentation",beforeRender:function(){var a=this;Ext.Component.prototype.beforeRender.call(this);a.protoEl.unselectable();a.addCls(a.baseHandleCls,a.baseHandleCls+"-"+a.region,a.handleCls)}},0,0,["component","box"],{component:true,box:true},0,0,[Ext.resizer,"Handle"],0));(Ext.cmd.derive("Ext.resizer.ResizeTracker",Ext.dd.DragTracker,{dynamic:true,preserveRatio:false,constrainTo:null,proxyCls:"x-resizable-proxy",constructor:function(b){var d=this,c,a,e;if(!b.el){if(b.target.isComponent){d.el=b.target.getEl()}else{d.el=b.target}}Ext.dd.DragTracker.prototype.constructor.apply(this,arguments);if(d.preserveRatio&&d.minWidth&&d.minHeight){c=d.minWidth/d.el.getWidth();a=d.minHeight/d.el.getHeight();if(a>c){d.minWidth=d.el.getWidth()*a}else{d.minHeight=d.el.getHeight()*c}}if(d.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(d,arguments)},d.throttle);d.resize=function(h,i,g){if(g){Ext.resizer.ResizeTracker.prototype.resize.apply(d,arguments)}else{e.apply(null,arguments)}}}},onBeforeStart:function(a){this.startBox=this.target.getBox()},getProxy:function(){var a=this;if(!a.dynamic&&!a.proxy){a.proxy=a.createProxy(a.target||a.el);a.hideProxy=true}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(c){var b,a=this.proxyCls;if(c.isComponent){b=c.getProxy().addCls(a)}else{b=c.createProxy({tag:"div",role:"presentation",cls:a,id:c.id+"-rzproxy"},Ext.getBody())}b.removeCls("x-proxy-el");return b},onStart:function(a){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(b,a){Ext.dd.DragTracker.prototype.onMouseDown.call(this,b,a);Ext.dom.Element.maskIframes()},onMouseUp:function(a){Ext.dd.DragTracker.prototype.onMouseUp.call(this,a);Ext.dom.Element.unmaskIframes()},onDrag:function(a){if(this.dynamic||this.proxy){this.updateDimensions(a)}},updateDimensions:function(q,m){var r=this,c=r.activeResizeHandle.region,g=r.getOffset(r.constrainTo?"dragTarget":null),k=r.startBox,h,o=0,s=0,j,p,a=0,u=0,t,i,b,d,n,l;c=r.convertRegionName(c);switch(c){case"south":s=g[1];b=2;break;case"north":s=-g[1];u=-s;b=2;break;case"east":o=g[0];b=1;break;case"west":o=-g[0];a=-o;b=1;break;case"northeast":s=-g[1];u=-s;o=g[0];i=[k.x,k.y+k.height];b=3;break;case"southeast":s=g[1];o=g[0];i=[k.x,k.y];b=3;break;case"southwest":o=-g[0];a=-o;s=g[1];i=[k.x+k.width,k.y];b=3;break;case"northwest":s=-g[1];u=-s;o=-g[0];a=-o;i=[k.x+k.width,k.y+k.height];b=3;break}d={width:k.width+o,height:k.height+s,x:k.x+a,y:k.y+u};j=Ext.Number.snap(d.width,r.widthIncrement);p=Ext.Number.snap(d.height,r.heightIncrement);if(j!==d.width||p!==d.height){switch(c){case"northeast":d.y-=p-d.height;break;case"north":d.y-=p-d.height;break;case"southwest":d.x-=j-d.width;break;case"west":d.x-=j-d.width;break;case"northwest":d.x-=j-d.width;d.y-=p-d.height}d.width=j;d.height=p}if(d.width<r.minWidth||d.width>r.maxWidth){d.width=Ext.Number.constrain(d.width,r.minWidth,r.maxWidth);if(a){d.x=k.x+(k.width-d.width)}}else{r.lastX=d.x}if(d.height<r.minHeight||d.height>r.maxHeight){d.height=Ext.Number.constrain(d.height,r.minHeight,r.maxHeight);if(u){d.y=k.y+(k.height-d.height)}}else{r.lastY=d.y}if(r.preserveRatio||q.shiftKey){h=r.startBox.width/r.startBox.height;n=Math.min(Math.max(r.minHeight,d.width/h),r.maxHeight);l=Math.min(Math.max(r.minWidth,d.height*h),r.maxWidth);if(b===1){d.height=n}else{if(b===2){d.width=l}else{t=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(t>h){d.height=n}else{d.width=l}if(c==="northeast"){d.y=k.y-(d.height-k.height)}else{if(c==="northwest"){d.y=k.y-(d.height-k.height);d.x=k.x-(d.width-k.width)}else{if(c==="southwest"){d.x=k.x-(d.width-k.width)}}}}}}r.setPosition=d.x!==r.startBox.x||d.y!==r.startBox.y;r.resize(d,m)},resize:function(d,a){var c=this,e,b=c.setPosition;if(c.dynamic||(!c.dynamic&&a)){if(b){c.target.setBox(d)}else{c.target.setSize(d.width,d.height)}}if(!a){e=c.getProxy();if(e&&e!==c.target){if(b||c.hideProxy){e.setBox(d)}else{e.setSize(d.width,d.height)}}}},onEnd:function(a){this.updateDimensions(a,true);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,"ResizeTracker"],0));Ext.define("Ext.rtl.resizer.ResizeTracker",{override:"Ext.resizer.ResizeTracker",_rtlRegionNames:{south:"south",north:"north",east:"west",west:"east",northeast:"northwest",southeast:"southwest",southwest:"southeast",northwest:"northeast"},convertRegionName:function(a){return(Ext.rootInheritedState.rtl)?this._rtlRegionNames[a]:a}});(Ext.cmd.derive("Ext.resizer.Resizer",Ext.Base,{alternateClassName:"Ext.Resizable",handleCls:"x-resizable-handle",overCls:"x-resizable-handle-over",pinnedCls:"x-resizable-pinned",wrapCls:"x-resizable-wrap",wrappedCls:"x-resizable-wrapped",delimiterRe:/(?:\s*[,;]\s*)|\s+/,dynamic:true,handles:"s e se",height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:false,preserveRatio:false,transparent:false,possiblePositions:{n:"north",s:"south",e:"east",w:"west",se:"southeast",sw:"southwest",nw:"northwest",ne:"northeast"},ariaRole:"presentation",constructor:function(b){var l=this,q=l.handles,k=Ext.dom.Element.unselectableCls,o=[],p,c,n,s,h,e,m,a,g,d,r,j;if(Ext.isString(b)||Ext.isElement(b)||b.dom){p=b;b=arguments[1]||{};b.target=p}l.mixins.observable.constructor.call(l,b);p=l.target;if(p){if(p.isComponent){p.addClsWithUI("resizable");if(p.minWidth){l.minWidth=p.minWidth}if(p.minHeight){l.minHeight=p.minHeight}if(p.maxWidth){l.maxWidth=p.maxWidth}if(p.maxHeight){l.maxHeight=p.maxHeight}if(p.floating){if(!l.hasOwnProperty("handles")){l.handles="n ne e se s sw w nw"}}l.el=p.getEl()}else{p=l.el=l.target=Ext.get(p)}}else{p=l.target=l.el=Ext.get(l.el)}l.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(l.width)){l.width=Ext.Number.constrain(l.width,l.minWidth,l.maxWidth)}if(Ext.isNumber(l.height)){l.height=Ext.Number.constrain(l.height,l.minHeight,l.maxHeight)}if(l.width!==null||l.height!==null){l.target.setSize(l.width,l.height)}s=l.el.dom.tagName.toUpperCase();if(s==="TEXTAREA"||s==="IMG"||s==="TABLE"){l.originalTarget=l.target;d=p.isComponent?p.getEl():p;l.el.addCls(l.wrappedCls);l.target=l.el=l.el.wrap({role:"presentation",cls:l.wrapCls,id:l.el.id+"-rzwrap",style:d.getStyle(["margin-top","margin-bottom"])});r=d.getPositioning();l.el.setPositioning(r);d.clearPositioning();g=d.getBox();if(r.position!=="absolute"){g.x=0;g.y=0}l.el.setBox(g);d.setStyle("position","absolute");l.isTargetWrapped=true}l.el.position();if(l.pinned){l.el.addCls(l.pinnedCls)}l.resizeTracker=new Ext.resizer.ResizeTracker({disabled:l.disabled,target:p,el:l.el,constrainTo:l.constrainTo,handleCls:l.handleCls,overCls:l.overCls,throttle:l.throttle,proxy:l.originalTarget?l.el:null,dynamic:l.originalTarget?true:l.dynamic,originalTarget:l.originalTarget,delegate:"."+l.handleCls,preserveRatio:l.preserveRatio,heightIncrement:l.heightIncrement,widthIncrement:l.widthIncrement,minHeight:l.minHeight,maxHeight:l.maxHeight,minWidth:l.minWidth,maxWidth:l.maxWidth});l.resizeTracker.on({mousedown:l.onBeforeResize,drag:l.onResize,dragend:l.onResizeEnd,scope:l});if(l.handles==="all"){l.handles="n s e w ne nw se sw"}q=l.handles=l.handles.split(l.delimiterRe);n=l.possiblePositions;h=q.length;c=l.handleCls+" "+l.handleCls+"-{0}";if(l.target.isComponent){j=l.target.baseCls;c+=" "+j+"-handle "+j+"-handle-{0}";if(Ext.supports.CSS3BorderRadius){c+=" "+j+"-handle-{0}-br"}}for(e=0;e<h;e++){if(q[e]&&n[q[e]]){m=n[q[e]];o.push('<div id="',l.el.id,"-",m,'-handle" class="',Ext.String.format(c,m)," ",k,'" unselectable="on" role="presentation"',"></div>")}}Ext.DomHelper.append(l.el,o.join(""));o.length=0;for(e=0;e<h;e++){if(q[e]&&n[q[e]]){m=n[q[e]];a=l[m]=l.el.getById(l.el.id+"-"+m+"-handle");o.push(a);a.region=m;if(l.transparent){a.setOpacity(0)}}}l.resizeTracker.handleEls=o},disable:function(){this.disabled=true;this.resizeTracker.disable()},enable:function(){this.disabled=false;this.resizeTracker.enable()},onBeforeResize:function(a,b){return this.fireResizeEvent("beforeresize",a,b)},onResize:function(a,b){return this.fireResizeEvent("resizedrag",a,b)},onResizeEnd:function(a,b){return this.fireResizeEvent("resize",a,b)},fireResizeEvent:function(a,d,g){var c=this,b;if(c.hasListeners[a]){b=c.el.getBox();return c.fireEvent(a,c,b.width,b.height,g)}},resizeTo:function(b,a){var c=this;c.target.setSize(b,a);c.fireEvent("resize",c,b,a,null)},getEl:function(){return this.el},getTarget:function(){return this.target},destroy:function(){var e=this,d,c=e.handles,a=c.length,b=e.possiblePositions,g;e.resizeTracker.destroy();if(e.isTargetWrapped){e.target.destroy()}for(d=0;d<a;d++){if((g=e[b[c[d]]])){g.destroy()}}}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.resizer,"Resizer",Ext,"Resizable"],0));(Ext.cmd.derive("Ext.selection.CellModel",Ext.selection.DataViewModel,{isCellModel:true,deselectOnContainerClick:false,enableKeyNav:true,preventWrap:false,bindComponent:function(a){var c=this,b;if(c.view&&c.gridListeners){c.gridListeners.destroy()}Ext.selection.DataViewModel.prototype.bindComponent.call(this,a);if(a){b=a.grid||a.ownerCt;if(b.optimizedColumnMove!==false){c.gridListeners=b.on({columnmove:c.onColumnMove,scope:c,destroyable:true})}}},getViewListeners:function(){var a=Ext.selection.DataViewModel.prototype.getViewListeners.call(this);a.refresh=this.onViewRefresh;return a},getHeaderCt:function(){var b=this.navigationModel.getPosition(),a=b?b.view:this.primaryView;return a.headerCt},onNavigate:function(a){if(!a.record||a.keyEvent.stopSelection){return}this.setPosition(a.position)},selectWithEvent:function(a,b){this.select(a)},select:function(h,e,b){var d=this,g,c=d.getPosition(),a=d.view.store;if(h||h===0){if(h.isModel){g=a.indexOf(h);if(g!==-1){h={row:g,column:c?c.column:0}}else{h=null}}else{if(typeof h==="number"){h={row:h,column:0}}}}if(h){d.selectByPosition(h,b)}else{d.deselect()}},getCurrentPosition:function(){var a=this.selecting?this.nextSelection:this.selection;return a?{view:a.view,record:a.record,row:a.rowIdx,columnHeader:a.column,column:a.view.getColumnManager().indexOf(a.column)}:a},getPosition:function(){return(this.selecting?this.nextSelection:this.selection)||null},setCurrentPosition:function(c,a,b){if(c&&!c.isCellContext){c=new Ext.grid.CellContext(this.view).setPosition({row:c.row,column:typeof c.column==="number"?this.view.getColumnManager().getColumns()[c.column]:c.column})}return this.setPosition(c,a,b)},setPosition:function(e,a,d){var c=this,b=c.selection;if(e){e=e.isCellContext?e.clone():new Ext.grid.CellContext(c.view).setPosition(e)}if(!d&&b){if(e&&(e.record===b.record&&e.column===b.column&&e.view===b.view)){e=null}else{c.onCellDeselect(c.selection,a)}}if(e){c.nextSelection=e;c.selecting=true;c.onCellSelect(c.nextSelection,a);c.selecting=false;return(c.selection=e)}},isCellSelected:function(a,e,c){var d=this,b,g=d.getPosition();if(g&&g.view===a){b=new Ext.grid.CellContext(a).setPosition({row:e,column:typeof c==="number"?a.getColumnManager().getColumns()[c]:c});return(b.record===g.record)&&(b.column===g.column)}},onStoreRemove:function(b,a,d){var c=this,e=c.getPosition();Ext.selection.DataViewModel.prototype.onStoreRemove.apply(this,arguments);if(e&&b.isMoving(e.record)){return}if(e&&b.getCount()&&b.indexOf(e.record)!==-1){e.setRow(e.record)}else{c.selection=null}},onStoreClear:function(){Ext.selection.DataViewModel.prototype.onStoreClear.apply(this,arguments);this.selection=null},onStoreAdd:function(){var a=this,b=a.getPosition();Ext.selection.DataViewModel.prototype.onStoreAdd.apply(this,arguments);if(b){b.setRow(b.record)}else{a.selection=null}},onCellClick:function(c,a,g,b,i,d,h){if(d!==-1){this.setPosition(h.position)}},onCellSelect:function(a,b){if(a&&a.rowIdx!==undefined&&a.rowIdx>-1){this.doSelect(a.record,false,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(b,e,d,h){var g=this,i,c,a;if(e){i=g.nextSelection;c="select"}else{i=g.selection;c="deselect"}a=i.view||g.primaryView;if((d||g.fireEvent("before"+c,g,b,i.rowIdx,i.colIdx))!==false&&h()!==false){if(e){a.onCellSelect(i)}else{a.onCellDeselect(i);delete g.selection}if(!d){g.fireEvent(c,g,b,i.rowIdx,i.colIdx)}}},onEditorTab:function(b,g){var c=this,d=g.shiftKey?"left":"right",h=g.position,a=h.view.walkCells(h,d,g,c.preventWrap);if(a){if(b.startEdit(a.record,a.column)){c.wasEditing=false}else{a.view.getNavigationModel().setPosition(a,null,g);c.wasEditing=true}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(d,e,b,c){var a=d.up("tablepanel");if(a){this.onViewRefresh(a.view)}},onUpdate:function(a){var b=this,c;if(b.isSelected(a)){c=b.selecting?b.nextSelection:b.selection;b.view.onCellSelect(c)}},onViewRefresh:function(b){var e=this,h=e.getPosition(),c,g=b.headerCt,a,d;if(h&&h.view===b){a=h.record;d=h.column;if(!d.isDescendantOf(g)){d=g.queryById(d.id)||g.down('[text="'+d.text+'"]')||g.down('[dataIndex="'+d.dataIndex+'"]')}if(h.record){if(d&&(b.store.indexOfId(a.getId())!==-1)){c=new Ext.grid.CellContext(b).setPosition({row:a,column:d});e.setPosition(c)}}else{e.selection=null}}},selectByPosition:function(a,b){this.setPosition(a,b)}},0,0,0,0,["selection.cellmodel"],0,[Ext.selection,"CellModel"],0));(Ext.cmd.derive("Ext.selection.CheckboxModel",Ext.selection.RowModel,{mode:"MULTI",injectCheckbox:0,checkOnly:false,showHeaderCheckbox:undefined,checkSelector:".x-grid-row-checker",allowDeselect:true,headerWidth:24,checkerOnCls:"x-grid-hd-checker-on",tdCls:"x-grid-cell-special x-grid-cell-row-checker",constructor:function(){var a=this;Ext.selection.RowModel.prototype.constructor.apply(this,arguments);if(a.mode==="SINGLE"){a.showHeaderCheckbox=false}},beforeViewRender:function(b){var c=this,a,d=b.grid.ownerLockable;Ext.selection.RowModel.prototype.beforeViewRender.apply(this,arguments);if(c.injectCheckbox!==false){if(d&&!c.lockListeners){c.lockListeners=d.mon(d,{lockcolumn:c.onColumnLock,unlockcolumn:c.onColumnUnlock,scope:c,destroyable:true})}if(!d||(b.isLockedView&&c.hasLockedHeader())||(b.isNormalView&&!c.column)){c.addCheckbox(b,true);a=b.ownerCt;if(b.headerCt.lockedCt){a=a.ownerCt}c.mon(b.ownerGrid,{beforereconfigure:c.onBeforeReconfigure,reconfigure:c.onReconfigure,scope:c})}}},onColumnUnlock:function(c,a){var b=this,d=b.injectCheckbox,e=c.lockedGrid.visibleColumnManager.getColumns();if(e.length===1&&e[0]===b.column){if(d==="first"){d=0}else{if(d==="last"){d=c.normalGrid.visibleColumnManager.getColumns().length}}c.unlock(b.column,d)}},onColumnLock:function(c,a){var b=this,d=b.injectCheckbox,e=c.lockedGrid.visibleColumnManager.getColumns();if(e.length===1){if(d==="first"){d=0}else{if(d==="last"){d=c.lockedGrid.visibleColumnManager.getColumns().length}}c.lock(b.column,d)}},bindComponent:function(a){this.sortable=false;Ext.selection.RowModel.prototype.bindComponent.apply(this,arguments)},hasLockedHeader:function(){var c=this.view.ownerGrid.getVisibleColumnManager().getColumns(),a=c.length,b;for(b=0;b<a;b++){if(c[b].locked){return true}}return false},addCheckbox:function(a){var b=this,c=b.injectCheckbox,d=a.headerCt;if(c!==false){if(c==="first"){c=0}else{if(c==="last"){c=d.getColumnCount()}}Ext.suspendLayouts();if(a.getStore().isBufferedStore){b.showHeaderCheckbox=false}b.column=d.add(c,b.column||b.getHeaderConfig());Ext.resumeLayouts()}},onBeforeReconfigure:function(d,a,c,h,b){var e=this.column,g=e.ownerCt;if(c&&g){g.remove(e,false)}},onReconfigure:function(c,a,b){var d=this;if(b){if(c.lockable){if(c.lockedGrid.isVisible()){c.lock(d.column,0)}else{c.unlock(d.column,0)}}else{d.addCheckbox(d.view)}c.view.refreshView()}},toggleUiHeader:function(e){var b=this.views[0],d=b.headerCt,c=d.child("gridcolumn[isCheckerHd]"),a=this.checkerOnCls;if(c){if(e){c.addCls(a)}else{c.removeCls(a)}}},onHeaderClick:function(b,h,k){var l=this,n=l.store,d,c,g,j,a,m;if(l.showHeaderCheckbox!==false&&h===l.column&&l.mode!=="SINGLE"){k.stopEvent();d=h.el.hasCls("x-grid-hd-checker-on");if(d){c=[];a=this.getSelection();for(g=0,j=a.length;g<j;++g){m=a[g];if(n.indexOf(m)>-1){c.push(m)}}if(c.length>0){l.deselect(c)}}else{l.selectAll()}}},getHeaderConfig:function(){var a=this,b=a.showHeaderCheckbox!==false;return{xtype:"gridcolumn",isCheckerHd:b,text:"&#160;",clickTargetName:"el",width:a.headerWidth,sortable:false,draggable:false,resizable:false,hideable:false,menuDisabled:true,dataIndex:"",tdCls:a.tdCls,cls:b?"x-column-header-checkbox ":"",defaultRenderer:a.renderer.bind(a),editRenderer:a.editRenderer||a.renderEmpty,locked:a.hasLockedHeader()}},renderEmpty:function(){return"&#160;"},refresh:function(){Ext.selection.RowModel.prototype.refresh.apply(this,arguments);this.updateHeaderState()},renderer:function(g,c,b,h,e,d,a){return'<div class="x-grid-row-checker" role="presentation">&#160;</div>'},selectByPosition:function(a,b){if(!a.isCellContext){a=new Ext.grid.CellContext(this.view).setPosition(a.row,a.column)}if(!this.checkOnly||a.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,a,b)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.updateHeaderState()}},onStoreLoad:function(){Ext.selection.RowModel.prototype.onStoreLoad.apply(this,arguments);this.updateHeaderState()},onStoreAdd:function(){Ext.selection.RowModel.prototype.onStoreAdd.apply(this,arguments);this.updateHeaderState()},onStoreRemove:function(){Ext.selection.RowModel.prototype.onStoreRemove.apply(this,arguments);this.updateHeaderState()},onStoreRefresh:function(){Ext.selection.RowModel.prototype.onStoreRefresh.apply(this,arguments);this.updateHeaderState()},maybeFireSelectionChange:function(a){if(a&&!this.suspendChange){this.updateHeaderState()}Ext.selection.RowModel.prototype.maybeFireSelectionChange.apply(this,arguments)},resumeChanges:function(){Ext.selection.RowModel.prototype.resumeChanges.call(this);if(!this.suspendChange){this.updateHeaderState()}},updateHeaderState:function(){var g=this,h=g.store,e=h.getCount(),j=g.views,k=false,a=0,b,d,c;if(!h.isBufferedStore&&e>0){b=g.selected;k=true;for(c=0,d=b.getCount();c<d;++c){if(h.indexOfId(b.getAt(c).id)>-1){++a}}k=e===a}if(j&&j.length){g.toggleUiHeader(k)}},vetoSelection:function(g){var c=this,b=c.column,a,d,h;if(c.checkOnly){d=g.type==="click"&&g.getTarget(c.checkSelector);h=g.getKey()===g.SPACE&&g.position.column===b;a=!(d||h)}return a||Ext.selection.RowModel.prototype.vetoSelection.call(this,g)},destroy:function(){this.column=null;Ext.selection.RowModel.prototype.destroy.call(this)},privates:{onBeforeNavigate:function(a){var b=a.keyEvent;if(this.selectionMode!=="SINGLE"){a.ctrlKey=a.ctrlKey||b.ctrlKey||(b.type==="click"&&!b.shiftKey)||b.getKey()===b.SPACE}},selectWithEventMulti:function(a,d,b){var c=this;if(!d.shiftKey&&!d.ctrlKey&&d.getTarget(c.checkSelector)){if(b){c.doDeselect(a)}else{c.doSelect(a,true)}}else{Ext.selection.RowModel.prototype.selectWithEventMulti.call(this,a,d,b)}}}},1,0,0,0,["selection.checkboxmodel"],0,[Ext.selection,"CheckboxModel"],0));(Ext.cmd.derive("Ext.selection.TreeModel",Ext.selection.RowModel,{selectOnExpanderClick:false,constructor:function(a){var b=this;Ext.selection.RowModel.prototype.constructor.call(this,a);if(b.pruneRemoved){b.pruneRemoved=false;b.pruneRemovedNodes=true}},getStoreListeners:function(){var b=this,a=Ext.selection.RowModel.prototype.getStoreListeners.call(this);a.noderemove=b.onNodeRemove;return a},onNodeRemove:function(c,d,a){if(!a){var b=[];this.gatherSelected(d,b);if(b.length){this.deselect(b)}}},pruneRemovedOnRefresh:function(){return this.pruneRemovedNodes},vetoSelection:function(d){var c=this.view,b=this.selectOnExpanderClick,a=!b&&d.type==="click"&&d.getTarget(c.expanderSelector||(c.lockingPartner&&c.lockingPartner.expanderSelector));return a||Ext.selection.RowModel.prototype.vetoSelection.call(this,d)},privates:{gatherSelected:function(d,c){var e=d.childNodes,b,a,g;if(this.selected.containsKey(d.id)){c.push(d)}if(e){for(b=0,a=e.length;b<a;++b){g=e[b];this.gatherSelected(g,c)}}}}},1,0,0,0,["selection.treemodel"],0,[Ext.selection,"TreeModel"],0));(Ext.cmd.derive("Ext.slider.Thumb",Ext.Base,{overCls:"x-slider-thumb-over",constructor:function(a){var b=this;Ext.apply(b,a||{},{cls:"x-slider-thumb",constrain:false});b.callParent([a])},render:function(){var a=this;a.el=a.slider.innerEl.insertFirst(a.getElConfig());a.onRender()},onRender:function(){if(this.disabled){this.disable()}this.initEvents()},getElConfig:function(){var c=this,b=c.slider,a={};a[b.vertical?"bottom":b.horizontalProp]=b.calculateThumbPosition(b.normalizeValue(c.value))+"%";return{style:a,id:this.id,cls:this.cls,role:"presentation"}},move:function(j,b){var g=this,c=g.el,a=g.slider,d=a.vertical?"bottom":a.horizontalProp,h,i,e;j+="%";if(!b){c.dom.style[d]=j}else{h={};h[d]=j;if(!Ext.supports.GetPositionPercentage){i={};i[d]=c.dom.style[d]}e={target:c,duration:350,from:i,to:h,scope:g,callback:g.onAnimComplete};if(b!==true){Ext.apply(e,b)}g.anim=new Ext.fx.Anim(e)}},onAnimComplete:function(){this.anim=null},enable:function(){var a=this.el;this.disabled=false;if(a){a.removeCls(this.slider.disabledCls)}},disable:function(){var a=this.el;this.disabled=true;if(a){a.addCls(this.slider.disabledCls)}},initEvents:function(){var a=this;a.tracker=new Ext.dd.DragTracker({el:a.el,onBeforeStart:a.onBeforeDragStart.bind(a),onStart:a.onDragStart.bind(a),onDrag:a.onDrag.bind(a),onEnd:a.onDragEnd.bind(a),tolerance:3,autoStart:300});a.el.hover(a.addOverCls,a.removeOverCls,a)},addOverCls:function(){var a=this;if(!a.disabled){a.el.addCls(a.overCls)}},removeOverCls:function(){this.el.removeCls(this.overCls)},onBeforeDragStart:function(d){var c=this,b=c.el,a=c.tracker.getXY(),g=c.pointerOffset=b.getXY();if(c.disabled){return false}else{g[0]+=Math.floor(b.getWidth()/2)-a[0];g[1]+=Math.floor(b.getHeight()/2)-a[1];c.slider.promoteThumb(c);return true}},onDragStart:function(c){var b=this,a=b.slider;a.onDragStart(b,c);b.el.addCls("x-slider-thumb-drag");b.dragging=b.slider.dragging=true;b.dragStartValue=b.value;a.fireEvent("dragstart",a,c,b)},onDrag:function(h){var d=this,c=d.slider,b=d.index,g=d.getValueFromTracker(),a,i;if(g!==undefined){if(d.constrain){a=c.thumbs[b+1];i=c.thumbs[b-1];if(i!==undefined&&g<=i.value){g=i.value}if(a!==undefined&&g>=a.value){g=a.value}}c.setValue(b,g,false);c.fireEvent("drag",c,h,d)}},getValueFromTracker:function(){var b=this.slider,a=this.tracker.getXY(),c;a[0]+=this.pointerOffset[0];a[1]+=this.pointerOffset[1];c=b.getTrackpoint(a);if(c!==undefined){return b.reversePixelValue(c)}},onDragEnd:function(d){var b=this,a=b.slider,c=b.value;a.onDragEnd(b,d);b.el.removeCls("x-slider-thumb-drag");b.dragging=a.dragging=false;a.fireEvent("dragend",a,d);if(b.dragStartValue!==c){a.fireEvent("changecomplete",a,c,b)}},destroy:function(){var a=this,b=this.anim;if(b){b.end()}a.el=a.tracker=a.anim=Ext.destroy(a.el,a.tracker)}},1,0,0,0,0,0,[Ext.slider,"Thumb"],0));(Ext.cmd.derive("Ext.slider.Tip",Ext.tip.Tip,{minWidth:10,offsets:null,align:null,position:"",defaultVerticalPosition:"left",defaultHorizontalPosition:"top",isSliderTip:true,init:function(c){var b=this,d,a;if(!b.position){b.position=c.vertical?b.defaultVerticalPosition:b.defaultHorizontalPosition}switch(b.position){case"top":a=[0,-10];d="b-t?";break;case"bottom":a=[0,10];d="t-b?";break;case"left":a=[-10,0];d="r-l?";break;case"right":a=[10,0];d="l-r?"}if(!b.align){b.align=d}if(!b.offsets){b.offsets=a}c.on({scope:b,dragstart:b.onSlide,drag:b.onSlide,dragend:b.hide,destroy:b.destroy})},onSlide:function(c,d,a){var b=this;b.show();b.update(b.getText(a));b.el.alignTo(a.el,b.align,b.offsets)},getText:function(a){return String(a.value)}},0,["slidertip"],["component","box","container","panel","tip","slidertip"],{component:true,box:true,container:true,panel:true,tip:true,slidertip:true},["widget.slidertip"],0,[Ext.slider,"Tip"],0));(Ext.cmd.derive("Ext.slider.Multi",Ext.form.field.Base,{alternateClassName:"Ext.slider.MultiSlider",focusable:true,needArrowKeys:true,tabIndex:0,focusCls:"slider-focus",childEls:["endEl","innerEl"],fieldSubTpl:['<div id="{id}" role="{role}" {inputAttrTpl} class="x-slider {fieldCls} {vertical}','{childElCls}"','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>','<tpl if="isVertical"> aria-orientation="vertical"<tpl else> aria-orientation="horizontal"</tpl>',">",'<div id="{cmpId}-endEl" data-ref="endEl" class="x-slider-end" role="presentation">','<div id="{cmpId}-innerEl" data-ref="innerEl" class="x-slider-inner" role="presentation">',"{%this.renderThumbs(out, values)%}","</div>","</div>","</div>",{renderThumbs:function(g,e){var j=e.$comp,h=0,c=j.thumbs,b=c.length,d,a;for(;h<b;h++){d=c[h];a=d.getElConfig();a.id=j.id+"-thumb-"+h;Ext.DomHelper.generateMarkup(a,g)}},disableFormats:true}],horizontalProp:"left",vertical:false,minValue:0,maxValue:100,decimalPrecision:0,keyIncrement:1,increment:0,clickRange:[5,15],clickToChange:true,animate:true,dragging:false,constrainThumbs:true,useTips:true,tipText:null,ariaRole:"slider",defaultBindProperty:"values",initValue:function(){var e=this,b=Ext.valueFrom,c=b(e.values,[b(e.value,b(e.minValue,0))]),d=0,a=c.length;e.originalValue=c;for(;d<a;d++){e.addThumb(e.normalizeValue(c[d]))}},initComponent:function(){var e=this,c,d,g,b,a;e.thumbs=[];e.keyIncrement=Math.max(e.increment,e.keyIncrement);e.extraFieldBodyCls="x-slider-ct-"+(e.vertical?"vert":"horz");Ext.form.field.Base.prototype.initComponent.call(this);if(e.useTips){if(Ext.isObject(e.useTips)){c=Ext.apply({},e.useTips)}else{c=e.tipText?{getText:e.tipText}:{}}a=e.plugins=e.plugins||[];b=a.length;for(g=0;g<b;g++){if(a[g].isSliderTip){d=true;break}}if(!d){e.plugins.push(new Ext.slider.Tip(c))}}},addThumb:function(c){var b=this,a=new Ext.slider.Thumb({ownerCt:b,value:c,slider:b,index:b.thumbs.length,constrain:b.constrainThumbs,disabled:!!b.readOnly});b.thumbs.push(a);if(b.rendered){a.render()}return a},promoteThumb:function(b){var a=this.thumbStack||(this.thumbStack=Ext.Array.slice(this.thumbs)),d=a.length,e=10000,c;if(a[0]!==b){Ext.Array.remove(a,b);a.unshift(b)}for(c=0;c<d;c++){a[c].el.setStyle("zIndex",e);e-=1000}},getSubTplData:function(a){var b=this;return Ext.apply(Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments),{$comp:b,isVertical:b.vertical,vertical:b.vertical?"x-slider-vert":"x-slider-horz",minValue:b.minValue,maxValue:b.maxValue,value:b.value,tabIdx:b.tabIndex,childElCls:""})},onRender:function(){var e=this,b=e.thumbs,a=b.length,d=0,c;(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).apply(this,arguments);for(d=0;d<a;d++){c=b[d];c.el=e.el.getById(e.id+"-thumb-"+d);c.onRender()}},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.mon(a.el,{scope:a,mousedown:a.onMouseDown,keydown:a.onKeyDown})},onDragStart:Ext.emptyFn,onDragEnd:Ext.emptyFn,getTrackpoint:function(h){var g=this,d=g.vertical,c=g.innerEl,b,a,e;if(d){e="top";b=c.getHeight()}else{e=g.horizontalProp;b=c.getWidth()}h=g.transformTrackPoints(c.translatePoints(h));a=Ext.Number.constrain(h[e],0,b);return d?b-a:a},transformTrackPoints:Ext.identityFn,checkChange:Ext.emptyFn,onMouseDown:function(j){var d=this,h=false,c=0,b=d.thumbs,a=b.length,g;if(d.disabled){return}for(;!h&&c<a;c++){h=h||j.target===b[c].el.dom}d.focus();if(d.clickToChange&&!h){g=d.getTrackpoint(j.getXY());if(g!==undefined){d.onClickChange(g)}}},onClickChange:function(d){var c=this,a,b;a=c.getNearest(d);if(!a.disabled){b=a.index;c.setValue(b,Ext.util.Format.round(c.reversePixelValue(d),c.decimalPrecision),undefined,true)}},getNearest:function(j){var k=this,g=k.reversePixelValue(j),l=k.getRange()+5,b=null,e=k.thumbs,c=0,d=e.length,a,m,h;for(;c<d;c++){a=k.thumbs[c];m=a.value;h=Math.abs(m-g);if(Math.abs(h)<=l){if(b&&b.value==m&&m>g&&a.index>b.index){continue}b=a;l=h}}return b},onKeyDown:function(c){var b=this,a,d;a=c.getKey();if(b.disabled||b.thumbs.length!==1){if(a!==c.TAB){c.preventDefault()}return}switch(a){case c.UP:case c.RIGHT:c.stopEvent();d=c.ctrlKey?b.maxValue:b.getValue(0)+b.keyIncrement;b.setValue(0,d,undefined,true);break;case c.DOWN:case c.LEFT:c.stopEvent();d=c.ctrlKey?b.minValue:b.getValue(0)-b.keyIncrement;b.setValue(0,d,undefined,true);break}},normalizeValue:function(b){var c=this,a=c.zeroBasedSnapping?"snap":"snapInRange";b=Ext.Number[a](b,c.increment,c.minValue,c.maxValue);b=Ext.util.Format.round(b,c.decimalPrecision);b=Ext.Number.constrain(b,c.minValue,c.maxValue);return b},setMinValue:function(g){var e=this,b=e.thumbs,a=b.length,c,d;e.minValue=g;for(d=0;d<a;++d){c=b[d];if(c.value<g){e.setValue(d,g,false)}}e.syncThumbs()},setMaxValue:function(g){var e=this,b=e.thumbs,a=b.length,c,d;e.maxValue=g;for(d=0;d<a;++d){c=b[d];if(c.value>g){e.setValue(d,g,false)}}e.syncThumbs()},setValue:function(e,k,b,d){var j=this,h=j.thumbs,a,g,c,l;if(Ext.isArray(e)){l=e;b=k;for(c=0,g=l.length;c<g;++c){a=h[c];if(a){j.setValue(c,l[c],b)}}return j}a=j.thumbs[e];k=j.normalizeValue(k);if(k!==a.value&&j.fireEvent("beforechange",j,k,a.value,a)!==false){a.value=k;if(j.rendered){if(Ext.isDefined(b)){b=b===false?false:b}else{b=j.animate}a.move(j.calculateThumbPosition(k),b);j.fireEvent("change",j,k,a);j.checkDirty();if(d){j.fireEvent("changecomplete",j,k,a)}}}return j},calculateThumbPosition:function(a){var b=this,c=b.minValue,d=(a-c)/b.getRange()*100;if(isNaN(d)){d=0}return d},getRatio:function(){var b=this,d=b.innerEl,a=b.vertical?d.getHeight():d.getWidth(),c=b.getRange();return c===0?a:(a/c)},getRange:function(){return this.maxValue-this.minValue},reversePixelValue:function(a){return this.minValue+(a/this.getRatio())},reversePercentageValue:function(a){return this.minValue+this.getRange()*(a/100)},onDisable:function(){var g=this,d=0,b=g.thumbs,a=b.length,c,e,h;Ext.form.field.Base.prototype.onDisable.call(this);for(;d<a;d++){c=b[d];e=c.el;c.disable();if(Ext.isIE){h=e.getXY();e.hide();g.innerEl.addCls(g.disabledCls).dom.disabled=true;if(!g.thumbHolder){g.thumbHolder=g.endEl.createChild({role:"presentation",cls:"x-slider-thumb "+g.disabledCls})}g.thumbHolder.show().setXY(h)}}},onEnable:function(){var g=this,d=0,b=g.thumbs,a=b.length,c,e;Ext.form.field.Base.prototype.onEnable.call(this);for(;d<a;d++){c=b[d];e=c.el;c.enable();if(Ext.isIE){g.innerEl.removeCls(g.disabledCls).dom.disabled=false;if(g.thumbHolder){g.thumbHolder.hide()}e.show();g.syncThumbs()}}},syncThumbs:function(){if(this.rendered){var a=this.thumbs,c=a.length,b=0;for(;b<c;b++){a[b].move(this.calculateThumbPosition(a[b].value))}}},getValue:function(a){return Ext.isNumber(a)?this.thumbs[a].value:this.getValues()},getValues:function(){var c=[],d=0,b=this.thumbs,a=b.length;for(;d<a;d++){c.push(b[d].value)}return c},getSubmitValue:function(){var a=this;return(a.disabled||!a.submitValue)?null:a.getValue()},reset:function(){var e=this,b=[].concat(e.originalValue),c=0,d=b.length,g;for(;c<d;c++){g=b[c];e.setValue(c,g)}e.clearInvalid();delete e.wasValid},setReadOnly:function(e){var d=this,b=d.thumbs,a=b.length,c=0;Ext.form.field.Base.prototype.setReadOnly.apply(this,arguments);e=d.readOnly;for(;c<a;++c){if(e){b[c].disable()}else{b[c].enable()}}},beforeDestroy:function(){var e=this,b=e.thumbs,d=0,a=b.length,c;if(e.rendered){for(;d<a;d++){c=b[d];Ext.destroy(c)}}Ext.form.field.Base.prototype.beforeDestroy.call(this)}},0,["multislider"],["component","box","field","multislider"],{component:true,box:true,field:true,multislider:true},["widget.multislider"],0,[Ext.slider,"Multi",Ext.slider,"MultiSlider"],0));Ext.define("Ext.rtl.slider.Multi",{override:"Ext.slider.Multi",initComponent:function(){if(this.getInherited().rtl){this.horizontalProp="right"}(arguments.callee.$previous||Ext.form.field.Base.prototype.initComponent).call(this)},onDragStart:function(){arguments.callee.$previous.apply(this,arguments);this._rtlInnerWidth=this.innerEl.getWidth()},onDragEnd:function(){arguments.callee.$previous.apply(this,arguments);delete this._rtlInnerWidth},onKeyDown:function(b){var a;if(this.getInherited().rtl){a=b.getKey();if(a===b.RIGHT){b.keyCode=b.LEFT}else{if(a===b.LEFT){b.keyCode=b.RIGHT}}}return(arguments.callee.$previous||Ext.form.field.Base.prototype.onKeyDown).call(this,b)},transformTrackPoints:function(c){var b,a;if(this.isOppositeRootDirection()){b=c.left;delete c.left;a=typeof this._rtlInnerWidth!=="undefined"?this._rtlInnerWidth:this.innerEl.getWidth();c.right=a-b;return c}else{return arguments.callee.$previous.apply(this,arguments)}}});(Ext.cmd.derive("Ext.slider.Single",Ext.slider.Multi,{alternateClassName:["Ext.Slider","Ext.form.SliderField","Ext.slider.SingleSlider","Ext.slider.Slider"],defaultBindProperty:"value",initComponent:function(){if(this.publishOnComplete){this.valuePublishEvent="changecomplete"}Ext.slider.Multi.prototype.initComponent.call(this)},publishOnComplete:true,getValue:function(){return Ext.slider.Multi.prototype.getValue.call(this,0)},setValue:function(d,b){var c=arguments,a=c.length;if(a===1||(a<=3&&typeof c[1]!=="number")){c=Ext.toArray(c);c.unshift(0)}return Ext.slider.Multi.prototype.setValue.apply(this,c)},getNearest:function(){return this.thumbs[0]}},0,["slider","sliderfield"],["component","box","field","multislider","slider","sliderfield"],{component:true,box:true,field:true,multislider:true,slider:true,sliderfield:true},["widget.slider","widget.sliderfield"],0,[Ext.slider,"Single",Ext,"Slider",Ext.form,"SliderField",Ext.slider,"SingleSlider",Ext.slider,"Slider"],0));(Ext.cmd.derive("Ext.slider.Widget",Ext.Widget,{cachedConfig:{vertical:false},config:{clickToChange:true,ui:"widget",value:0,minValue:0,maxValue:100,publishOnComplete:true,twoWayBindable:{value:1}},decimalPrecision:0,defaultBindProperty:"value",element:{reference:"element",cls:"x-slider",listeners:{mousedown:"onMouseDown",dragstart:"cancelDrag",drag:"cancelDrag",dragend:"cancelDrag"},children:[{reference:"endEl",cls:"x-slider-end",children:[{reference:"innerEl",cls:"x-slider-inner"}]}]},thumbCls:"x-slider-thumb",horizontalProp:"left",animateOnSetValue:undefined,applyValue:function(e){var d=this,b=d.animateOnSetValue,c,a;if(Ext.isArray(e)){e=Ext.Array.from(e);for(c=0,a=e.length;c<a;++c){d.setThumbValue(c,e[c]=d.normalizeValue(e[c]),b,true)}}else{e=d.normalizeValue(e);d.setThumbValue(0,e,b,true)}return e},updateVertical:function(a,b){this.element.removeCls("x-slider-"+(b?"vert":"horz"));this.element.addCls("x-slider-"+(a?"vert":"horz"))},doSetHeight:function(a){Ext.Widget.prototype.doSetHeight.apply(this,arguments);this.endEl.dom.style.height=this.innerEl.dom.style.height="100%"},cancelDrag:function(a){a.stopPropagation()},getThumb:function(c){var d=this,b,a=(d.thumbs||(d.thumbs=[]))[c];if(!a){b={cls:d.thumbCls,style:{}};b["data-thumbIndex"]=c;a=d.thumbs[c]=d.innerEl.createChild(b)}return a},getThumbPositionStyle:function(){return this.getVertical()?"bottom":this.horizontalProp},update:function(){var d=this,b=d.getValue(),a=b.length,c;for(c=0;c<a;c++){this.thumbs[c].dom.style[d.getThumbPositionStyle()]=d.calculateThumbPosition(b[c])+"%"}},updateMaxValue:function(a){this.onRangeAdjustment(a,"min")},updateMinValue:function(a){this.onRangeAdjustment(a,"max")},onRangeAdjustment:function(a,b){var c=this._value,d;if(!isNaN(c)){d=Math[b](c,a)}if(d!==undefined){this.setValue(d)}},onMouseDown:function(d){var b=this,a,c=d.getXY(),g;if(!b.disabled&&d.button===0){Ext.getDoc().on({scope:b,capture:true,selectstart:b.stopSelect});a=d.getTarget("."+b.thumbCls,null,true);if(a){b.animateOnSetValue=false;b.promoteThumb(a);b.captureMouse(b.onMouseMove,b.onMouseUp,[a],1);g=b.pointerOffset=a.getXY();g[0]+=Math.floor(a.getWidth()/2)-c[0];g[1]+=Math.floor(a.getHeight()/2)-c[1]}else{if(b.getClickToChange()){c=b.getTrackpoint(c);if(c!=null){b.onClickChange(c)}}}}},onClickChange:function(e){var c=this,a,b,d;a=c.getNearest(e);b=parseInt(a.getAttribute("data-thumbIndex"),10);d=Ext.util.Format.round(c.reversePixelValue(e),c.decimalPrecision);if(b){c.setThumbValue(b,d,undefined,true)}else{c.setValue(d)}},getNearest:function(j){var k=this,g=k.reversePixelValue(j),l=k.getRange()+5,b=null,e=k.thumbs,c=0,d=e.length,a,m,h;for(;c<d;c++){a=e[c];m=k.reversePercentageValue(parseInt(a.dom.style[k.getThumbPositionStyle()],10));h=Math.abs(m-g);if(Math.abs(h)<=l){b=a;l=h}}return b},promoteThumb:function(b){var a=this.thumbStack||(this.thumbStack=Ext.Array.slice(this.thumbs)),d=a.length,e=10000,c;if(a[0]!==b){Ext.Array.remove(a,b);a.unshift(b)}for(c=0;c<d;c++){a[c].el.setStyle("zIndex",e);e-=1000}},doMouseMove:function(j,b,g){var d=this,a=j.getXY(),i,c,h;a[0]+=d.pointerOffset[0];a[1]+=d.pointerOffset[1];h=d.getTrackpoint(a);if(h){i=d.reversePixelValue(h);c=parseInt(b.getAttribute("data-thumbIndex"),10);if(c||(!g&&d.getPublishOnComplete())){d.setThumbValue(c,i,false,g)}else{d.setValue(i)}}},onMouseMove:function(b,a){this.doMouseMove(b,a,false)},onMouseUp:function(c,a){var b=this;b.doMouseMove(c,a,true);Ext.getDoc().un({scope:b,capture:true,selectstart:b.stopSelect});delete b.animateOnSetValue},stopSelect:function(a){a.stopEvent();return false},setThumbValue:function(g,k,b,d){var j=this,a,e,h,c,l;if(Ext.isArray(g)){l=g;b=k;for(c=0,h=l.length;c<h;++c){j.setThumbValue(c,l[c],b,d)}return j}a=j.getThumb(g);e=j.reversePercentageValue(parseInt(a.dom.style[j.getThumbPositionStyle()],10));k=j.normalizeValue(k);if(k!==e&&j.fireEvent("beforechange",j,k,e,a)!==false){if(j.element.dom){j.element.set({"aria-valuenow":k,"aria-valuetext":k});j.moveThumb(a,j.calculateThumbPosition(k),Ext.isDefined(b)?b!==false:j.animate);j.fireEvent("change",j,k,a)}}return j},getValue:function(a){var b=this,c;if(Ext.isNumber(a)){c=b.thumbs[a].dom.style[b.getThumbPositionStyle()];c=b.reversePercentageValue(parseInt(c,10))}else{c=b.getValues();if(c.length===1){c=c[0]}}return c},getValues:function(){var e=this,c=[],d=0,b=e.thumbs,a=b.length;for(;d<a;d++){c.push(e.reversePercentageValue(parseInt(e.thumbs[d].dom.style[e.getThumbPositionStyle()],10)))}return c},moveThumb:function(d,c,b){var e=this,a=e.getThumbPositionStyle(),h,g;c+="%";if(!b){d.dom.style[a]=c}else{h={};h[a]=c;if(!Ext.supports.GetPositionPercentage){g={};g[a]=d.dom.style[a]}new Ext.fx.Anim({target:d,duration:350,from:g,to:h})}},normalizeValue:function(b){var c=this,a=c.zeroBasedSnapping?"snap":"snapInRange";b=Ext.Number[a](b,c.increment,c.minValue,c.maxValue);b=Ext.util.Format.round(b,c.decimalPrecision);b=Ext.Number.constrain(b,c.minValue,c.maxValue);return b},getTrackpoint:function(h){var g=this,d=g.getVertical(),c=g.innerEl,b,a,e;if(d){e="top";b=c.getHeight()}else{e=g.horizontalProp;b=c.getWidth()}h=g.transformTrackPoints(c.translatePoints(h));a=Ext.Number.constrain(h[e],0,b);return d?b-a:a},transformTrackPoints:Ext.identityFn,calculateThumbPosition:function(a){var b=this,c=(a-b.getMinValue())/b.getRange()*100;if(isNaN(c)){c=0}return c},getRatio:function(){var b=this,d=b.innerEl,a=b.getVertical()?d.getHeight():d.getWidth(),c=b.getRange();return c===0?a:(a/c)},getRange:function(){return this.getMaxValue()-this.getMinValue()},reversePixelValue:function(a){return this.getMinValue()+(a/this.getRatio())},reversePercentageValue:function(a){return this.getMinValue()+this.getRange()*(a/100)},captureMouse:function(h,b,d,a){var g=this,c,e;h=h&&Ext.Function.bind(h,g,d,a);b=b&&Ext.Function.bind(b,g,d,a);c=function(){Ext.getDoc().un(e);if(b){b.apply(g,arguments)}};e={mousemove:h,mouseup:c};Ext.getDoc().on(e)}},0,["sliderwidget"],["widget","sliderwidget"],{widget:true,sliderwidget:true},["widget.sliderwidget"],0,[Ext.slider,"Widget"],0));Ext.define("Ext.rtl.slider.Widget",{override:"Ext.slider.Widget",constructor:function(a){(arguments.callee.$previous||Ext.Widget.prototype.constructor).call(this,a);if(this.getInherited().rtl){this.horizontalProp="right"}}});(Ext.cmd.derive("Ext.sparkline.Shape",Ext.Base,{constructor:function(c,d,b,a){this.target=c;this.id=d;this.type=b;this.args=a},append:function(){this.target.appendShape(this);return this}},1,0,0,0,0,0,[Ext.sparkline,"Shape"],0));(Ext.cmd.derive("Ext.sparkline.CanvasBase",Ext.Base,{shapeCount:0,_pxregex:/(\d+)(px)?\s*$/i,constructor:function(a){this.owner=a},setWidth:function(a){this.pixelWidth=a},setHeight:function(a){this.pixelHeight=a},drawLine:function(c,e,b,d,g,a){return this.drawShape([[c,e],[b,d]],g,a)},drawShape:function(c,b,d,a){return this._genShape("Shape",[c,b,d,a])},drawCircle:function(c,g,b,d,e,a){return this._genShape("Circle",[c,g,b,d,e,a])},drawPieSlice:function(b,h,a,d,c,e,g){return this._genShape("PieSlice",[b,h,a,d,c,e,g])},drawRect:function(b,g,c,a,d,e){return this._genShape("Rect",[b,g,c,a,d,e])},getElement:function(){return this.el},getLastShapeId:function(){return this.lastShapeId},reset:function(){},_genShape:function(b,a){var c=this.shapeCount++;a.unshift(c);return new Ext.sparkline.Shape(this,c,b,a)},appendShape:function(a){},replaceWithShape:function(b,a){},insertAfterShape:function(b,a){},removeShapeId:function(a){},getShapeAt:function(a,b){},render:function(){}},1,0,0,0,0,0,[Ext.sparkline,"CanvasBase"],0));(Ext.cmd.derive("Ext.sparkline.CanvasCanvas",Ext.sparkline.CanvasBase,{statics:{contextOverrides:(function(){var a=window.devicePixelRatio||1;return{moveTo:function(b,c){this.$moveTo(b*a,c*a)},lineTo:function(b,c){this.$lineTo(b*a,c*a)},arc:function(c,h,b,g,d,e){this.$arc(c*a,h*a,b*a,g,d,e)},clearRect:function(c,e,d,b){this.$clearRect(c*a,e*a,d*a,b*a)}}})()},setWidth:function(a){Ext.sparkline.CanvasBase.prototype.setWidth.apply(this,arguments);this.owner.element.dom.width=a*(window.devicePixelRatio||1)},setHeight:function(a){Ext.sparkline.CanvasBase.prototype.setHeight.apply(this,arguments);this.owner.element.dom.height=a*(window.devicePixelRatio||1)},onOwnerUpdate:function(){var a=this;a.el=a.owner.element;a.interact=!a.owner.initialConfig.disableInteraction;a.shapes={};a.shapeseq=[];a.currentTargetShapeId=a.lastShapeId=null},_getContext:function(d,g,a){var c=this.el.dom.getContext("2d"),e=Ext.sparkline.CanvasCanvas.contextOverrides,b;if(!this.context){for(b in e){c["$"+b]=c[b]}Ext.apply(c,e);this.context=c}if(d!=null){c.strokeStyle=d}c.lineWidth=a||1;if(g!=null){c.fillStyle=g}return c},reset:function(){var a=this._getContext();a.clearRect(0,0,this.pixelWidth,this.pixelHeight);this.shapes={};this.shapeseq=[];this.currentTargetShapeId=this.lastShapeId=null},_drawShape:function(h,g,e,j,a){var c=this._getContext(e,j,a),b,d;c.beginPath();c.moveTo(g[0][0]+0.5,g[0][1]+0.5);for(b=1,d=g.length;b<d;b++){c.lineTo(g[b][0]+0.5,g[b][1]+0.5)}if(e!=null){c.stroke()}if(j!=null){c.fill()}if(this.targetX!=null&&this.targetY!=null&&c.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=h}},_drawCircle:function(g,c,i,b,e,h,a){var d=this._getContext(e,h,a);d.beginPath();d.arc(c,i,b,0,2*Math.PI,false);if(this.targetX!=null&&this.targetY!=null&&d.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=g}if(e!==undefined){d.stroke()}if(h!==undefined){d.fill()}},_drawPieSlice:function(e,j,h,d,g,c,i,b){var a=this._getContext(i,b);a.beginPath();a.moveTo(j,h);a.arc(j,h,d,g,c,false);a.lineTo(j,h);a.closePath();if(i!=null){a.stroke()}if(b){a.fill()}if(this.targetX!==undefined&&this.targetY!==undefined&&a.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=e}},_drawRect:function(e,b,h,c,a,d,g){return this._drawShape(e,[[b,h],[b+c,h],[b+c,h+a],[b,h+a],[b,h]],d,g)},appendShape:function(a){this.shapes[a.id]=a;this.shapeseq.push(a.id);this.lastShapeId=a.id;return a.id},replaceWithShape:function(c,a){var d=this.shapeseq,b;this.shapes[a.id]=a;for(b=d.length;b--;){if(d[b]==c){d[b]=a.id}}delete this.shapes[c]},replaceWithShapes:function(c,b){var h=this.shapeseq,e={},a,d,g;for(d=c.length;d--;){e[c[d]]=true}for(d=h.length;d--;){a=h[d];if(e[a]){h.splice(d,1);delete this.shapes[a];g=d}}for(d=b.length;d--;){h.splice(g,0,b[d].id);this.shapes[b[d].id]=b[d]}},insertAfterShape:function(c,a){var d=this.shapeseq,b;for(b=d.length;b--;){if(d[b]===c){d.splice(b+1,0,a.id);this.shapes[a.id]=a;return}}},removeShapeId:function(b){var c=this.shapeseq,a;for(a=c.length;a--;){if(c[a]===b){c.splice(a,1);break}}delete this.shapes[b]},getShapeAt:function(a,b){this.targetX=a;this.targetY=b;this.render();return this.currentTargetShapeId},render:function(){var h=this.shapeseq,a=this.shapes,e=h.length,d=this._getContext(),g,b,c;d.clearRect(0,0,this.pixelWidth,this.pixelHeight);for(c=0;c<e;c++){g=h[c];b=a[g];this["_draw"+b.type].apply(this,b.args)}if(!this.interact){this.shapes={};this.shapeseq=[]}}},0,0,0,0,0,0,[Ext.sparkline,"CanvasCanvas"],0));(Ext.cmd.derive("Ext.sparkline.VmlCanvas",Ext.sparkline.CanvasBase,{setWidth:function(a){var b=this;Ext.sparkline.CanvasBase.prototype.setWidth.apply(this,arguments);b.owner.groupEl.dom.coordsize=b.width+" "+(b.height||0);b.owner.groupEl.dom.style.width=a+"px"},setHeight:function(a){var b=this;Ext.sparkline.CanvasBase.prototype.setHeight.apply(this,arguments);b.owner.groupEl.dom.coordsize=(b.width||0)+" "+b.height;b.owner.groupEl.dom.style.height=a+"px"},onOwnerUpdate:function(){var a=this;a.group=a.owner.groupEl;a.el=a.owner.element;a.prerender=[]},_drawShape:function(g,n,j,a,d){var k=[],h,m,l,e,b,c;for(c=0,b=n.length;c<b;c++){k[c]=(n[c][0])+","+(n[c][1])}h=k.splice(0,1);d=d==null?1:d;m=j==null?' stroked="false" ':' strokeWeight="'+d+'px" strokeColor="'+j+'" ';l=a==null?' filled="false"':' fillColor="'+a+'" filled="true" ';e=k[0]===k[k.length-1]?"x ":"";return['<svml:shape coordorigin="0 0" coordsize="',this.pixelWidth," ",this.pixelHeight,'" id="jqsshape',g,'" ',m,l,' style="position:absolute;height:',this.pixelHeight,"px;width:",this.pixelWidth,'px" ',' path="m ',h," l ",k.join(", ")," ",e,'e"></svml:shape>'].join("")},_drawCircle:function(d,i,g,c,h,a,b){var e=c*2,k,j;i-=c;g-=c;k=h==null?' stroked="false" ':' strokeWeight="'+b+'px" strokeColor="'+h+'" ';j=a==null?' filled="false"':' fillColor="'+a+'" filled="true" ';return['<svml:oval id="jqsshape',d,'" ',k,j,' style="position:absolute;top:',g,"px; left:",i,"px;width:",e,"px;height:",e,'px"></svml:oval>'].join("")},_drawPieSlice:function(j,o,m,i,k,e,n,d){var l,c=this.pixelWidth,p=this.pixelHeight,b,a,h,g,r=n==null?' stroked="false" ':' strokeWeight="1px" strokeColor="'+n+'" ',q=d==null?' filled="false"':' fillColor="'+d+'" filled="true" ';if(k===e){return""}if((e-k)===(2*Math.PI)){k=0;e=(2*Math.PI)}b=o+Math.round(Math.cos(k)*i);a=m+Math.round(Math.sin(k)*i);h=o+Math.round(Math.cos(e)*i);g=m+Math.round(Math.sin(e)*i);if(b===h&&a===g){if((e-k)<Math.PI){return""}b=h=o+i;a=g=m}if(b===h&&a===g&&(e-k)<Math.PI){return""}l=[o-i,m-i,o+i,m+i,b,a,h,g];return['<svml:shape coordorigin="0 0" coordsize="',c," ",p,'" id="jqsshape',j,'" ',r,q,' style="position:absolute;height:',p,"px;width:",c,'px" path="m ',o,",",m," wa ",l.join(", "),' x e"></svml:shape>'].join("")},_drawRect:function(e,b,h,c,a,d,g){return this._drawShape(e,[[b,h],[b,h+a],[b+c,h+a],[b+c,h],[b,h]],d,g)},reset:function(){Ext.fly(this.group).empty()},appendShape:function(a){this.prerender.push(this["_draw"+a.type].apply(this,a.args));this.lastShapeId=a.id;return a.id},replaceWithShape:function(d,a){var c=this.el.getById("jqsshape"+d,true),b=this["_draw"+a.type].apply(this,a.args);c.outerHTML=b},replaceWithShapes:function(b,a){var e=this.el.getById("jqsshape"+b[0],true),d="",g=a.length,c;for(c=0;c<g;c++){d+=this["_draw"+a[c].type].apply(this,a[c].args)}e.outerHTML=d;for(c=1;c<b.length;c++){this.el.getById("jqsshape"+b[c]).destroy()}},insertAfterShape:function(d,a){var c=this.el.getById("jqsshape"+d,true),b=this["_draw"+a.type].apply(this,a.args);c.insertAdjacentHTML("afterEnd",b)},removeShapeId:function(b){var a=this.el.getById("jqsshape"+b,true);this.group.removeChild(a)},getShapeAt:function(a,c){var b=this.el.id.substr(8);return b},render:function(){this.group.dom.innerHTML=this.prerender.join("")}},0,0,0,0,0,0,[Ext.sparkline,"VmlCanvas"],function(){Ext.onInternalReady(function(){var a=document;if(a.namespaces&&!a.namespaces.svml){a.namespaces.add("svml","urn:schemas-microsoft-com:vml","#default#VML")}})}));(Ext.cmd.derive("Ext.sparkline.Base",Ext.Widget,{cachedConfig:{baseCls:"x-sparkline",lineColor:"#157fcc",fillColor:"#def",defaultPixelsPerValue:3,tagValuesAttribute:"values",enableTagOptions:false,enableHighlight:true,highlightColor:null,highlightLighten:1.4,tooltipSkipNull:true,tooltipPrefix:"",tooltipSuffix:"",disableTooltips:false,disableInteraction:false,tipTpl:null},config:{values:null},element:{tag:"canvas",reference:"element",style:{display:"inline-block",verticalAlign:"top"},listeners:{mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},width:0,height:0},defaultBindProperty:"values",redrawQueue:{},inheritableStatics:{sparkLineTipClass:"x-sparkline-tip-target",onClassCreated:function(a){var c=a.prototype,d=a.getConfigurator().configs,b;for(b in d){if(b!=="tipTpl"){c[Ext.Config.get(b).names.apply]=c.applyConfigChange}}}},constructor:function(a){var b=this;b.canvas=Ext.supports.Canvas?new Ext.sparkline.CanvasCanvas(b):new Ext.sparkline.VmlCanvas(b);if(!b.getDisableTooltips()){b.element.cls=Ext.sparkline.Base.sparkLineTipClass}Ext.apply(b,a);Ext.Widget.prototype.constructor.call(this,a);b.el=b.element},all:function(d,b,a){var c;for(c=b.length;c--;){if(a&&b[c]===null){continue}if(b[c]!==d){return false}}return true},applyConfigChange:function(b){var a=this;a.redrawQueue[a.getId()]=a;if(!a.redrawTimer){Ext.sparkline.Base.prototype.redrawTimer=Ext.Function.requestAnimationFrame(a.processRedrawQueue)}return b},applyTipTpl:function(a){if(!a.isTemplate){a=new Ext.XTemplate(a)}return a},normalizeValue:function(b){var a;switch(b){case"undefined":b=undefined;break;case"null":b=null;break;case"true":b=true;break;case"false":b=false;break;default:a=parseFloat(b);if(b==a){b=a}}return b},normalizeValues:function(c){var b,a=[];for(b=c.length;b--;){a[b]=this.normalizeValue(c[b])}return a},doSetWidth:function(a){var b=this,c=b.element.dom;Ext.Widget.prototype.doSetWidth.apply(this,arguments);b.canvas.setWidth(a);b.width=a;if(b.height==null){b.setHeight(parseInt(b.measurer.getCachedStyle(c.parentNode,"line-height"),10))}else{b.redrawQueue[b.getId()]=b}},doSetHeight:function(a){var b=this;Ext.Widget.prototype.doSetHeight.apply(this,arguments);b.canvas.setHeight(a);b.height=a;b.redrawQueue[b.getId()]=b},updateValues:function(a){this.values=a},redraw:function(){var a=this;if(a.getValues()){a.onUpdate();a.canvas.onOwnerUpdate();a.renderGraph()}},onUpdate:Ext.emptyFn,renderGraph:function(){var a=true;if(this.disabled){this.canvas.reset();a=false}return a},onMouseEnter:function(a){this.onMouseMove(a)},onMouseMove:function(a){this.tooltip.triggerEvent=a;this.currentPageXY=a.getPoint();this.redraw()},onMouseLeave:function(){var a=this;a.currentPageXY=a.targetX=a.targetY=null;a.redraw();a.tooltip.target=null;a.tooltip.hide()},updateDisplay:function(){var c=this,b=c.getValues(),g,d=c.tooltip,a,e;if(b&&b.length&&c.currentPageXY&&c.el.getRegion().contains(c.currentPageXY)){g=c.canvas.el.getXY();e=c.getRegion(c.currentPageXY[0]-g[0],c.currentPageXY[1]-g[1]);if(e!=null&&e<b.length){if(!c.disableHighlight){c.renderHighlight(e)}a=c.getRegionTooltip(e)}c.fireEvent("sparklineregionchange",c);if(a){if(!c.lastTooltipHTML||a[0]!==c.lastTooltipHTML[0]||a[1]!==c.lastTooltipHTML[1]){d.setTitle(a[0]);d.update(a[1]);c.lastTooltipHTML=a}d.target=c.el;d.onTargetOver(d.triggerEvent)}}if(!a){d.target=null;d.hide()}},getRegion:Ext.emptyFn,getRegionTooltip:function(o){var n=this,e=n.tooltipChartTitle,g=[],q=n.getTipTpl(),h,k,d,l,b,p,m,c,a;h=n.getRegionFields(o);p=n.tooltipFormatter;if(p){return p(n,n,h)}if(!q){return""}if(!Ext.isArray(h)){h=[h]}k=n.tooltipFormatFieldlist;d=n.tooltipFormatFieldlistKey;if(k&&d){l=[];for(c=h.length;c--;){b=h[c][d];if((a=Ext.Array.indexOf(b,k))!==-1){l[a]=h[c]}}h=l}m=h.length;for(a=0;a<m;a++){if(!h[a].isNull||!n.getTooltipSkipNull()){Ext.apply(h[a],{prefix:n.getTooltipPrefix(),suffix:n.getTooltipSuffix()});g.push(q.apply(h[a]))}}if(e||g.length){return[e,g.join("<br>")]}return""},getRegionFields:Ext.emptyFn,calcHighlightColor:function(a){var d=this,j=d.getHighlightColor(),c=d.getHighlightLighten(),h,g,e,b;if(j){return j}if(c){h=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(a)||/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(a);if(h){e=[];g=a.length===4?16:1;for(b=0;b<3;b++){e[b]=Ext.Number.constrain(Math.round(parseInt(h[b+1],16)*g*c),0,255)}return"rgb("+e.join(",")+")"}}return a},destroy:function(){delete this.redrawQueue[this.getId()];Ext.Widget.prototype.destroy.call(this)}},1,0,["widget"],{widget:true},0,0,[Ext.sparkline,"Base"],function(b){var a=b.prototype;Ext.onInternalReady(function(){a.tooltip=new Ext.tip.ToolTip({id:"sparklines-tooltip",showDelay:0,dismissDelay:0,hideDelay:400})});b.onClassCreated(b);a.processRedrawQueue=function(){var c=a.redrawQueue,d;for(d in c){c[d].redraw()}a.redrawQueue={};a.redrawTimer=0};if(!Ext.supports.Canvas){b.prototype.element={tag:"span",reference:"element",listeners:{mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousemove:"onMouseMove"},style:{display:"inline-block",position:"relative",overflow:"hidden",margin:"0px",padding:"0px",verticalAlign:"top",cursor:"default"},children:[{tag:"svml:group",reference:"groupEl",coordorigin:"0 0",coordsize:"0 0",style:"position:absolute;width:0;height:0;pointer-events:none"}]}}}));(Ext.cmd.derive("Ext.sparkline.BarBase",Ext.sparkline.Base,{renderHighlight:function(a){this.renderRegion(a,true)},renderGraph:function(){var h=this,b=h.values,d=h.canvas,k=h.regionShapes||(h.regionShapes={}),a,g,e,c;if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}for(e=b.length;e--;){a=h.renderRegion(e);if(a){if(Ext.isArray(a)){g=[];for(c=a.length;c--;){a[c].append();g.push(a[c].id)}k[e]=g}else{a.append();k[e]=a.id}}else{k[e]=null}}if(h.currentPageXY){h.currentRegion=null;h.updateDisplay()}d.render()}},0,0,["widget"],{widget:true},0,0,[Ext.sparkline,"BarBase"],0));(Ext.cmd.derive("Ext.sparkline.RangeMap",Ext.Base,{constructor:function(d){var c,a,b=[];for(c in d){if(d.hasOwnProperty(c)&&typeof c==="string"&&c.indexOf(":")>-1){a=c.split(":");a[0]=a[0].length===0?-Infinity:parseFloat(a[0]);a[1]=a[1].length===0?Infinity:parseFloat(a[1]);a[2]=d[c];b.push(a)}}this.map=d;this.rangelist=b||false},get:function(e){var d=this.rangelist,c,b,a;if((a=this.map[e])!==undefined){return a}if(d){for(c=d.length;c--;){b=d[c];if(b[0]<=e&&b[1]>=e){return b[2]}}}}},1,0,0,0,0,0,[Ext.sparkline,"RangeMap"],0));(Ext.cmd.derive("Ext.sparkline.Bar",Ext.sparkline.BarBase,{config:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:null,nullColor:null,zeroAxis:true,barWidth:4,barSpacing:1,chartRangeMin:null,chartRangeMax:null,chartRangeClip:false,colorMap:null,tipTpl:new Ext.XTemplate("&#9679; {prefix}{value}{suffix}")},remove:function(e,c){var b,d,a=[];for(b=0,d=e.length;b<d;b++){if(e[b]!==c){a.push(e[b])}}return a},all:function(b,d,a){var c;for(c=b.length;c--;){if(a&&b[c]===null){continue}if(b[c]!==d){return false}}return true},applyColorMap:function(a){var b=this;if(Ext.isArray(a)){b.colorMapByIndex=a;b.colorMapByValue=null}else{b.colorMapByIndex=null;b.colorMapByValue=a;if(b.colorMapByValue&&b.colorMapByValue.get==null){b.colorMapByValue=new Ext.sparkline.RangeMap(a)}}return a},onUpdate:function(){var I=this,c=I.values,t=I.getBarWidth(),q=I.getBarSpacing(),k=I.getChartRangeMin(),l=I.getChartRangeMax(),m=I.getChartRangeClip(),D=Infinity,G=-Infinity,v,r,u,e,g,B,h,s,z=I.getZeroAxis(),o,x,A,C,F,E,w,y,H,p,J,n,d,b=[],a=[];for(B=0,h=c.length;B<h;B++){J=c[B];v=typeof(J)==="string"&&J.indexOf(":")>-1;if(v||Ext.isArray(J)){E=true;if(v){J=c[B]=I.normalizeValues(J.split(":"))}J=I.remove(J,null);r=Math.min.apply(Math,J);u=Math.max.apply(Math,J);if(r<D){D=r}if(u>G){G=u}}}I.stacked=E;I.regionShapes={};I.totalBarWidth=t+q;I.width=(c.length*t)+((c.length-1)*q);if(m){C=k==null?-Infinity:k;F=l==null?Infinity:l}g=[];e=E?[]:g;for(B=0,h=c.length;B<h;B++){if(E){w=c[B];c[B]=p=[];b[B]=0;e[B]=a[B]=0;for(y=0,H=w.length;y<H;y++){J=p[y]=m?Ext.Number.constrain(w[y],C,F):w[y];if(J!==null){if(J>0){b[B]+=J}if(D<0&&G>0){if(J<0){a[B]+=Math.abs(J)}else{e[B]+=J}}else{e[B]+=Math.abs(J-(J<0?G:D))}g.push(J)}}}else{J=m?Ext.Number.constrain(c[B],C,F):c[B];J=c[B]=I.normalizeValue(J);if(J!==null){g.push(J)}}}I.max=A=Math.max.apply(Math,g);I.min=x=Math.min.apply(Math,g);I.stackMax=G=E?Math.max.apply(Math,b):A;I.stackMin=D=E?Math.min.apply(Math,g):x;if(k!=null&&(m||k<x)){x=k}if(l!=null&&(m||l>A)){A=l}if(x<=0&&A>=0&&z){o=0}else{if(!z){o=x}else{if(x>0){o=x}else{o=A}}}I.xAxisOffset=o;s=E?(Math.max.apply(Math,e)+Math.max.apply(Math,a)):A-x;I.canvasHeightEf=(z&&x<0)?I.getHeight()-2:I.getHeight()-1;if(x<o){d=(E&&A>=0)?G:A;n=(d-o)/s*I.getHeight();if(n!==Math.ceil(n)){I.canvasHeightEf-=2;n=Math.ceil(n)}}else{n=I.getHeight()}I.yoffset=n;I.range=s},getRegion:function(b,c){var a=Math.floor(b/this.totalBarWidth);return(a<0||a>=this.values.length)?undefined:a},getRegionFields:function(e){var b=Ext.Array.from(this.values[e]),a=[],d,c;for(c=b.length;c--;){d=b[c];a.push({isNull:d===null,value:d,color:this.calcColor(c,d,e),offset:e})}return a},calcColor:function(j,i,d){var g=this,b=g.colorMapByIndex,h=g.colorMapByValue,a,e,c=g.getZeroColor();if(this.stacked){a=g.getStackedBarColor()}else{a=(i<0)?g.getNegBarColor():g.getBarColor()}if(i===0&&c!==undefined){a=c}if(h&&(e=h.get(i))){a=e}else{if(b&&b.length>d){a=b[d]}}return Ext.isArray(a)?a[j%a.length]:a},renderRegion:function(l,e){var z=this,n=z.values[l],a=z.xAxisOffset,o=z.range,w=z.stacked,c=z.canvas,q=z.getBarWidth(),j=l*z.totalBarWidth,b=z.canvasHeightEf,k=z.yoffset,h,r,t,s,g,u,d,A,v,m,p=z.getNullColor();n=Ext.isArray(n)?n:[n];d=n.length;A=n[0];s=z.all(n,null);m=z.all(n,a,true);if(s){if(p){t=e?p:z.calcHighlightColor(p,z);h=(k>0)?k-1:k;c.drawRect(j,h,q-1,0,t,t).append()}return}g=k;for(u=0;u<d;u++){A=n[u];if(w&&A===a){if(!m||v){continue}v=true}if(o>0){r=Math.floor(b*((Math.abs(A-a)/o)))+1}else{r=1}if(A<a||(A===a&&k===0)){h=g;g+=r}else{h=k-r;k-=r}t=z.calcColor(u,A,l);if(e){t=z.calcHighlightColor(t,z)}c.drawRect(j,h,q-1,r-1,t,t).append()}}},0,["sparklinebar"],["widget","sparklinebar"],{widget:true,sparklinebar:true},["widget.sparklinebar"],0,[Ext.sparkline,"Bar"],function(a){a.onClassCreated(a)}));(Ext.cmd.derive("Ext.sparkline.Box",Ext.sparkline.Base,{config:{raw:false,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:true,outlierIQR:1.5,spotRadius:1.5,target:null,targetColor:"#4a2",chartRangeMin:null,chartRangeMax:null,tipTpl:new Ext.XTemplate("{field:this.fields}: {value}",{fields:function(b){var a={lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"};return a[b]}}),tooltipFormatFieldlistKey:"field"},quartile:function(a,c){var b;if(c===2){b=Math.floor(a.length/2);return a.length%2?a[b]:(a[b-1]+a[b])/2}else{if(a.length%2){b=(a.length*c+c)/4;return b%1?(a[Math.floor(b)]+a[Math.floor(b)-1])/2:a[b-1]}else{b=(a.length*c+2)/4;return b%1?(a[Math.floor(b)]+a[Math.floor(b)-1])/2:a[b-1]}}},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);return a},getRegion:function(){return 1},getRegionFields:function(){var a=[{field:"lq",value:this.quartiles[0]},{field:"med",value:this.quartiles[1]},{field:"uq",value:this.quartiles[2]}];if(this.loutlier!==undefined){a.push({field:"lo",value:this.loutlier})}if(this.routlier!==undefined){a.push({field:"ro",value:this.routlier})}if(this.lwhisker!==undefined){a.push({field:"lw",value:this.lwhisker})}if(this.rwhisker!==undefined){a.push({field:"rw",value:this.rwhisker})}return a},renderHighlight:Ext.emptyFn,renderGraph:function(){var E=this,l=E.canvas,h=E.values,o=h.length,D=E.getWidth(),e=E.getHeight(),q=E.getChartRangeMin(),t=E.getChartRangeMax(),x=q==null?Math.min.apply(Math,h):q,C=t==null?Math.max.apply(Math,h):t,z=0,w,B,j,s,r,p,b,m,A,y,g,F=E.getSpotRadius(),a=E.getOutlierLineColor(),k=E.getOutlierFillColor(),v=E.getShowOutliers(),u=E.getOutlierIQR(),d=E.getLineColor(),c=E.getWhiskerColor(),n=E.getTargetColor();if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}if(E.raw){if(v&&h.length>5){B=h[0];w=h[1];s=h[2];r=h[3];p=h[4];b=h[5];m=h[6]}else{w=h[0];s=h[1];r=h[2];p=h[3];b=h[4]}}else{h.sort(function(G,i){return G-i});s=E.quartile(h,1);r=E.quartile(h,2);p=E.quartile(h,3);j=p-s;if(v){w=b=null;for(A=0;A<o;A++){if(w==null&&h[A]>s-(j*u)){w=h[A]}if(h[A]<p+(j*u)){b=h[A]}}B=h[0];m=h[o-1]}else{w=h[0];b=h[o-1]}}E.quartiles=[s,r,p];E.lwhisker=w;E.rwhisker=b;E.loutlier=B;E.routlier=m;g=D/(C-x+1);if(v){z=Math.ceil(F);D-=2*Math.ceil(F);g=D/(C-x+1);if(B<w){l.drawCircle((B-x)*g+z,e/2,F,a,k).append()}if(m>b){l.drawCircle((m-x)*g+z,e/2,F,a,k).append()}}l.drawRect(Math.round((s-x)*g+z),Math.round(e*0.1),Math.round((p-s)*g),Math.round(e*0.8),E.getBoxLineColor(),E.getBoxFillColor()).append();l.drawLine(Math.round((w-x)*g+z),Math.round(e/2),Math.round((s-x)*g+z),Math.round(e/2),d).append();l.drawLine(Math.round((w-x)*g+z),Math.round(e/4),Math.round((w-x)*g+z),Math.round(e-e/4),c).append();l.drawLine(Math.round((b-x)*g+z),Math.round(e/2),Math.round((p-x)*g+z),Math.round(e/2),d).append();l.drawLine(Math.round((b-x)*g+z),Math.round(e/4),Math.round((b-x)*g+z),Math.round(e-e/4),c).append();l.drawLine(Math.round((r-x)*g+z),Math.round(e*0.1),Math.round((r-x)*g+z),Math.round(e*0.9),E.getMedianColor()).append();if(E.target){y=Math.ceil(E.spotRadius);l.drawLine(Math.round((E.target-x)*g+z),Math.round((e/2)-y),Math.round((E.target-x)*g+z),Math.round((e/2)+y),n).append();l.drawLine(Math.round((E.target-x)*g+z-y),Math.round(e/2),Math.round((E.target-x)*g+z+y),Math.round(e/2),n).append()}if(E.currentPageXY&&E.el.getRegion().contains(E.currentPageXY)){E.currentRegion=null;E.updateDisplay()}l.render()}},0,["sparklinebox"],["widget","sparklinebox"],{widget:true,sparklinebox:true},["widget.sparklinebox"],0,[Ext.sparkline,"Box"],0));(Ext.cmd.derive("Ext.sparkline.Bullet",Ext.sparkline.Base,{config:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:null,tipTpl:new Ext.XTemplate("{fieldkey:this.fields} - {value}",{fields:function(a){if(a==="r"){return"Range"}if(a==="p"){return"Performance"}if(a==="t"){return"Target"}}})},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),this.normalizeValue);this.disabled=!(a&&a.length);return a},onUpdate:function(){var d=this,b=d.values,c,a,g,e=d.getBase();Ext.sparkline.Base.prototype.onUpdate.apply(this,arguments);g=b.slice();g[0]=g[0]===null?g[2]:g[0];g[1]=b[1]===null?g[2]:g[1];c=Math.min.apply(Math,b);a=Math.max.apply(Math,b);if(e==null){c=c<0?c:0}else{c=e}d.min=c;d.max=a;d.range=a-c;d.shapes={};d.valueShapes={};d.regiondata={};if(!b.length){d.disabled=true}},getRegion:function(a,c){var b=this.canvas.getShapeAt(a,c);return(b!==undefined&&this.shapes[b]!==undefined)?this.shapes[b]:undefined},getRegionFields:function(a){return{fieldkey:a.substr(0,1),value:this.values[a.substr(1)],region:a}},renderHighlight:function(a){switch(a.substr(0,1)){case"r":this.renderRange(a.substr(1),true).append();break;case"p":this.renderPerformance(true).append();break;case"t":this.renderTarget(true).append();break}},renderRange:function(e,b){var d=this.values[e],c=Math.round(this.getWidth()*((d-this.min)/this.range)),a=this.getRangeColors()[e-2];if(b){a=this.calcHighlightColor(a)}return this.canvas.drawRect(0,0,c-1,this.getHeight()-1,a,a)},renderPerformance:function(b){var d=this.values[1],c=Math.round(this.getWidth()*((d-this.min)/this.range)),a=this.getPerformanceColor();if(b){a=this.calcHighlightColor(a)}return this.canvas.drawRect(0,Math.round(this.getHeight()*0.3),c-1,Math.round(this.getHeight()*0.4)-1,a,a)},renderTarget:function(c){var h=this.values[0],e=this.getTargetWidth(),a=Math.round(this.getWidth()*((h-this.min)/this.range)-(e/2)),g=Math.round(this.getHeight()*0.1),d=this.getHeight()-(g*2),b=this.getTargetColor();if(c){b=this.calcHighlightColor(b)}return this.canvas.drawRect(a,g,e-1,d-1,b,b)},renderGraph:function(){var g=this,h=g.values.length,d=g.canvas,e,c,b=g.shapes||(g.shapes={}),a=g.valueShapes||(g.valueShapes={});if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}for(e=2;e<h;e++){c=g.renderRange(e).append();b[c.id]="r"+e;a["r"+e]=c.id}if(g.values[1]!==null){c=g.renderPerformance().append();b[c.id]="p1";a.p1=c.id}if(g.values[0]!==null){c=this.renderTarget().append();b[c.id]="t0";a.t0=c.id}if(g.currentPageXY&&g.el.getRegion().contains(g.currentPageXY)){g.updateDisplay()}d.render()}},0,["sparklinebullet"],["widget","sparklinebullet"],{widget:true,sparklinebullet:true},["widget.sparklinebullet"],0,[Ext.sparkline,"Bullet"],0));(Ext.cmd.derive("Ext.sparkline.Discrete",Ext.sparkline.BarBase,{config:{lineHeight:"auto",thresholdColor:null,thresholdValue:0,chartRangeMax:null,chartRangeMin:null,chartRangeClip:false,tipTpl:new Ext.XTemplate("{prefix}{value}{suffix}")},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);return a},onUpdate:function(){var c=this,b=c.values,a=c.getChartRangeMin(),d=c.getChartRangeMax(),e=c.getChartRangeClip();Ext.sparkline.BarBase.prototype.onUpdate.apply(this,arguments);c.regionShapes={};c.min=Math.min.apply(Math,b);c.max=Math.max.apply(Math,b);c.range=c.max-c.min;c.width=c.getWidth();c.interval=Math.floor(c.width/b.length);c.itemWidth=c.width/b.length;if(a!=null&&(e||a<c.min)){c.min=a}if(d!=null&&(e||d>c.max)){c.max=d}if(c.canvas){if(c.getLineHeight()==="auto"){c.setLineHeight(Math.round(c.getHeight()*0.3))}}},getRegion:function(a,b){return Math.floor(a/this.itemWidth)},getRegionFields:function(a){return{isNull:this.values[a]===undefined,value:this.values[a],offset:a}},renderRegion:function(k,e){var m=this,r=m.values,h=m.min,n=m.max,j=m.range,c=m.interval,b=m.canvas,i=m.getHeight(),q=m.getLineHeight(),l=i-q,a,d,g,p,o=m.getThresholdColor();d=Ext.Number.constrain(r[k],h,n);p=k*c;a=Math.round(l-l*((d-h)/j));g=(o&&d<m.getThresholdValue())?o:m.getLineColor();if(e){g=m.calcHighlightColor(g)}b.drawLine(p,a,p,a+q,g).append()}},0,["sparklinediscrete"],["widget","sparklinediscrete"],{widget:true,sparklinediscrete:true},["widget.sparklinediscrete"],0,[Ext.sparkline,"Discrete"],0));(Ext.cmd.derive("Ext.sparkline.Line",Ext.sparkline.Base,{config:{spotColor:"#f80",highlightSpotColor:"#5f5",highlightLineColor:"#f22",spotRadius:1.5,minSpotColor:"#f80",maxSpotColor:"#f80",lineWidth:1,normalRangeMin:null,normalRangeMax:null,normalRangeColor:"#ccc",drawNormalOnTop:false,chartRangeMin:null,chartRangeMax:null,chartRangeMinX:null,chartRangeMaxX:null,tipTpl:new Ext.XTemplate("&#9679; {prefix}{y}{suffix}"),valueSpots:null},applyValueSpots:function(a){if(a&&!a.get){a=new Ext.sparkline.RangeMap(a)}return a},onUpdate:function(){this.vertices=[];this.regionMap=[];this.xvalues=[];this.yvalues=[];this.yminmax=[]},getRegion:function(a,d){var b,c=this.regionMap;for(b=c.length;b--;){if(c[b]!==null&&a>=c[b][0]&&a<=c[b][1]){return c[b][2]}}return undefined},getRegionFields:function(a){return{isNull:this.yvalues[a]===null,x:this.xvalues[a],y:this.yvalues[a],color:this.getLineColor(),fillColor:this.getFillColor(),offset:a}},renderHighlight:function(g){var c=this,a=c.canvas,e=c.vertices[g],b=c.getSpotRadius(),h=c.getHighlightSpotColor(),d=c.getHighlightLineColor();if(!e){return}if(b&&h){a.drawCircle(e[0],e[1],b,null,h).append()}if(d){a.drawLine(e[0],c.canvasTop,e[0],c.canvasTop+c.getHeight(),d).append()}},scanValues:function(){var k=this,l=k.values,c=l.length,a=k.xvalues,h=k.yvalues,m=k.yminmax,e,d,j,g,b;for(e=0;e<c;e++){d=l[e];j=typeof(l[e])==="string";g=typeof(l[e])==="object"&&l[e] instanceof Array;b=j&&l[e].split(":");if(j&&b.length===2){a.push(Number(b[0]));h.push(Number(b[1]));m.push(Number(b[1]))}else{if(g){a.push(d[0]);h.push(d[1]);m.push(d[1])}else{a.push(e);if(l[e]===null||l[e]==="null"){h.push(null)}else{h.push(Number(d));m.push(Number(d))}}}}if(k.xvalues){a=k.xvalues}k.maxy=k.maxyorg=Math.max.apply(Math,m);k.miny=k.minyorg=Math.min.apply(Math,m);k.maxx=Math.max.apply(Math,a);k.minx=Math.min.apply(Math,a);k.xvalues=a;k.yvalues=h;k.yminmax=m},processRangeOptions:function(){var d=this,c=d.getNormalRangeMin(),g=d.getNormalRangeMax(),a=d.getChartRangeMin(),b=d.getChartRangeMinX(),e=d.getChartRangeMax(),h=d.getChartRangeMaxX();if(c!=null){if(c<d.miny){d.miny=c}if(g>d.maxy){d.maxy=g}}if(a!=null&&(d.chartRangeClip||a<d.miny)){d.miny=a}if(e!=null&&(d.chartRangeClip||e>d.maxy)){this.maxy=e}if(b!=null&&(d.chartRangeClipX||b<d.minx)){d.minx=b}if(h!=null&&(d.chartRangeClipX||h>d.maxx)){d.maxx=h}},drawNormalRange:function(c,h,g,d,i){var a=this.getNormalRangeMin(),e=this.getNormalRangeMax(),b=h+Math.round(g-(g*((e-this.miny)/i))),j=Math.round((g*(e-a))/i);this.canvas.drawRect(c,b,d,j,undefined,this.normalRangeColor).append()},renderGraph:function(){var q=this,k=q.canvas,M=q.getWidth(),m=q.getHeight(),d=q.vertices,L=q.getSpotRadius(),O=q.regionMap,B,g,C,t,r,s,J,A,F,E,j,w,n,p,h,K,e,D,o,c=q.getValueSpots(),H,u,G,I,N,l=q.getSpotColor(),b=q.getMinSpotColor(),z=q.getMaxSpotColor(),v=q.getNormalRangeMin(),a=q.getDrawNormalOnTop();if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}q.scanValues();q.processRangeOptions();G=q.xvalues;I=q.yvalues;if(!q.yminmax.length||q.yvalues.length<2){return}t=r=0;B=q.maxx-q.minx===0?1:q.maxx-q.minx;g=q.maxy-q.miny===0?1:q.maxy-q.miny;C=q.yvalues.length-1;if(L&&(M<(L*4)||m<(L*4))){L=0}if(L){H=q.getHighlightSpotColor()&&!q.disableInteraction;if(H||b||(l&&I[C]===q.miny)){m-=Math.ceil(L)}if(H||z||(l&&I[C]===q.maxy)){m-=Math.ceil(L);t+=Math.ceil(L)}if(H||((b||z)&&(I[0]===q.miny||I[0]===q.maxy))){r+=Math.ceil(L);M-=Math.ceil(L)}if(H||l||(b||z&&(I[C]===q.miny||I[C]===q.maxy))){M-=Math.ceil(L)}}m--;if(v!=null&&!a){q.drawNormalRange(r,t,m,M,g)}J=[];A=[J];p=h=null;K=I.length;for(N=0;N<K;N++){F=G[N];j=G[N+1];E=I[N];w=r+Math.round((F-q.minx)*(M/B));n=N<K-1?r+Math.round((j-q.minx)*(M/B)):M;h=w+((n-w)/2);O[N]=[p||0,h,N];p=h;if(E===null){if(N){if(I[N-1]!==null){J=[];A.push(J)}d.push(null)}}else{if(E<q.miny){E=q.miny}if(E>q.maxy){E=q.maxy}if(!J.length){J.push([w,t+m])}s=[w,t+Math.round(m-(m*((E-this.miny)/g)))];J.push(s);d.push(s)}}e=[];D=[];o=A.length;for(N=0;N<o;N++){J=A[N];if(J.length){if(q.fillColor){J.push([J[J.length-1][0],(t+m)]);D.push(J.slice(0));J.pop()}if(J.length>2){J[0]=[J[0][0],J[1][1]]}e.push(J)}}o=D.length;for(N=0;N<o;N++){k.drawShape(D[N],q.fillColor,q.fillColor).append()}if(v!=null&&a){q.drawNormalRange(r,t,m,M,g)}o=e.length;for(N=0;N<o;N++){k.drawShape(e[N],q.getLineColor(),null,q.getLineWidth()).append()}if(L&&c){if(c.get==null){c=new Ext.sparkline.RangeMap(c)}for(N=0;N<K;N++){u=c.get(I[N]);if(u){k.drawCircle(r+Math.round((G[N]-q.minx)*(M/B)),t+Math.round(m-(m*((I[N]-q.miny)/g))),L,null,u).append()}}}if(L&&l&&I[C]!=null){k.drawCircle(r+Math.round((G[G.length-1]-q.minx)*(M/B)),t+Math.round(m-(m*((I[C]-q.miny)/g))),L,null,l).append()}if(q.maxy!==q.minyorg){if(L&&b){F=G[Ext.Array.indexOf(I,q.minyorg)];k.drawCircle(r+Math.round((F-q.minx)*(M/B)),t+Math.round(m-(m*((q.minyorg-q.miny)/g))),L,null,b).append()}if(L&&z){F=G[Ext.Array.indexOf(I,q.maxyorg)];k.drawCircle(r+Math.round((F-q.minx)*(M/B)),t+Math.round(m-(m*((q.maxyorg-q.miny)/g))),L,null,z).append()}}q.canvasTop=t;if(q.currentPageXY&&q.el.getRegion().contains(q.currentPageXY)){q.updateDisplay()}k.render()}},0,["sparklineline"],["widget","sparklineline"],{widget:true,sparklineline:true},["widget.sparklineline"],0,[Ext.sparkline,"Line"],0));(Ext.cmd.derive("Ext.sparkline.Pie",Ext.sparkline.Base,{config:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tipTpl:new Ext.XTemplate('&#9679; {value} ({percent:number("0.0")}%)')},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);return a},onUpdate:function(){var d=this,a=d.values,c=0,b;Ext.sparkline.Base.prototype.onUpdate.apply(this,arguments);d.shapes={};d.valueShapes={};if(a.length>0){for(b=a.length;b--;){c+=a[b]}}d.total=c;d.radius=Math.floor(Math.min(d.getWidth(),d.getHeight())/2)},getRegion:function(a,d){var b=window.devicePixelRatio||1,c=this.canvas.getShapeAt(a*b,d*b);return(c!=null&&this.shapes[c]!=null)?this.shapes[c]:null},getRegionFields:function(b){var a=this.getSliceColors();return{isNull:this.values[b]==null,value:this.values[b],percent:this.values[b]/this.total*100,color:a[b%a.length],offset:b}},renderHighlight:function(a){this.renderSlice(a,true).append()},renderSlice:function(m,e){var o=this,d=o.canvas,n=o.radius,a=o.getBorderWidth(),j=o.getOffset(),b=2*Math.PI,s=o.values,p=o.total,l=j?(2*Math.PI)*(j/360):0,c,h,k,q,g,r=this.getSliceColors();q=s.length;for(k=0;k<q;k++){c=l;h=l;if(p>0){h=l+(b*(s[k]/p))}if(m===k){g=r[k%r.length];if(e){g=o.calcHighlightColor(g)}return d.drawPieSlice(n,n,n-a,c,h,null,g)}l=h}},renderGraph:function(){var h=this,c=h.canvas,k=h.values,e=h.radius,a=h.getBorderWidth(),g,d,b=h.shapes||(h.shapes={}),j=h.valueShapes||(h.valueShapes={});if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}if(a){c.drawCircle(e,e,Math.floor(e-(a/2)),h.getBorderColor(),null,a).append()}for(d=k.length;d--;){if(k[d]){g=h.renderSlice(d).append();j[d]=g.id;b[g.id]=d}}if(h.currentPageXY&&h.el.getRegion().contains(h.currentPageXY)){h.currentRegion=null;h.updateDisplay()}c.render()}},0,["sparklinepie"],["widget","sparklinepie"],{widget:true,sparklinepie:true},["widget.sparklinepie"],0,[Ext.sparkline,"Pie"],0));(Ext.cmd.derive("Ext.sparkline.TriState",Ext.sparkline.BarBase,{config:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tipTpl:new Ext.XTemplate("&#9679; {value:this.states}",{states:function(a){var b=Number(a);if(b===-1){return"Loss"}if(b===0){return"Draw"}if(b===1){return"Win"}return a}})},applyColorMap:function(a){var b=this;if(Ext.isArray(a)){b.colorMapByIndex=a;b.colorMapByValue=null}else{b.colorMapByIndex=null;b.colorMapByValue=a;if(b.colorMapByValue&&b.colorMapByValue.get==null){b.colorMapByValue=new Ext.sparkline.RangeMap(a)}}return a},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);return a},onUpdate:function(){this.totalBarWidth=this.getBarWidth()+this.getBarSpacing()},getBarWidth:function(){var a=this.values;return this._barWidth||(this.getWidth()-(a.length-1)*this.getBarSpacing())/a.length},getRegion:function(a,b){return Math.floor(a/this.totalBarWidth)},getRegionFields:function(a){return{isNull:this.values[a]==null,value:this.values[a],color:this.calcColor(this.values[a],a),offset:a}},calcColor:function(g,h){var e=this,b=e.values,i=e.colorMapByIndex,d=e.colorMapByValue,a,c;if(d&&(c=d.get(g))){a=c}else{if(i&&i.length>h){a=i[h]}else{if(b[h]<0){a=e.getNegBarColor()}else{if(b[h]>0){a=e.getPosBarColor()}else{a=e.getZeroBarColor()}}}}return a},renderRegion:function(e,b){var h=this,k=h.values,a=h.canvas,d,l,g,j,i,c;d=a.pixelHeight;g=Math.round(d/2);j=e*h.totalBarWidth;if(k[e]<0){i=g;l=g-1}else{if(k[e]>0){i=0;l=g-1}else{i=g-1;l=2}}c=h.calcColor(k[e],e);if(c==null){return}if(b){c=h.calcHighlightColor(c)}a.drawRect(j,i,h.getBarWidth()-1,l-1,c,c).append()}},0,["sparklinetristate"],["widget","sparklinetristate"],{widget:true,sparklinetristate:true},["widget.sparklinetristate"],0,[Ext.sparkline,"TriState"],0));(Ext.cmd.derive("Ext.state.CookieProvider",Ext.state.Provider,{constructor:function(a){var b=this;b.path="/";b.expires=new Date(Ext.Date.now()+(1000*60*60*24*7));b.domain=null;b.secure=false;Ext.state.Provider.prototype.constructor.apply(this,arguments);b.state=b.readCookies()},set:function(a,c){var b=this;if(typeof c==="undefined"||c===null){b.clear(a);return}b.setCookie(a,c);Ext.state.Provider.prototype.set.apply(this,arguments)},clear:function(a){this.clearCookie(a);Ext.state.Provider.prototype.clear.apply(this,arguments)},readCookies:function(){var e={},j=document.cookie+";",d=/\s?(.*?)=(.*?);/g,i=this.prefix,a=i.length,h,b,g;while((h=d.exec(j))!=null){b=h[1];g=h[2];if(b&&b.substring(0,a)===i){e[b.substr(a)]=this.decodeValue(g)}}return e},setCookie:function(a,c){var b=this;document.cookie=b.prefix+a+"="+b.encodeValue(c)+((b.expires==null)?"":("; expires="+b.expires.toUTCString()))+((b.path==null)?"":("; path="+b.path))+((b.domain==null)?"":("; domain="+b.domain))+(b.secure?"; secure":"")},clearCookie:function(a){var b=this;document.cookie=b.prefix+a+"=null; expires=Thu, 01-Jan-1970 00:00:01 GMT"+((b.path==null)?"":("; path="+b.path))+((b.domain==null)?"":("; domain="+b.domain))+(b.secure?"; secure":"")}},1,0,0,0,0,0,[Ext.state,"CookieProvider"],0));(Ext.cmd.derive("Ext.state.LocalStorageProvider",Ext.state.Provider,{constructor:function(){var a=this;Ext.state.Provider.prototype.constructor.apply(this,arguments);a.store=a.getStorageObject();if(a.store){a.state=a.readLocalStorage()}else{a.state={}}},readLocalStorage:function(){var a=this.store,e={},d=a.getKeys(),c=d.length,b;while(c--){b=d[c];e[b]=this.decodeValue(a.getItem(b))}return e},set:function(a,c){var b=this;b.clear(a);if(c!=null){b.store.setItem(a,b.encodeValue(c));Ext.state.Provider.prototype.set.apply(this,arguments)}},clear:function(a){this.store.removeItem(a);Ext.state.Provider.prototype.clear.apply(this,arguments)},getStorageObject:function(){var a=this.prefix,c=a,b=c.length-1;if(c.charAt(b)==="-"){c=c.substring(0,b)}return new Ext.util.LocalStorage({id:c,prefix:a})}},1,0,0,0,["state.localstorage"],0,[Ext.state,"LocalStorageProvider"],0));(Ext.cmd.derive("Ext.tab.Tab",Ext.button.Button,{isTab:true,tabIndex:-1,baseCls:"x-tab",closeElOverCls:"x-tab-close-btn-over",closeElPressedCls:"x-tab-close-btn-pressed",config:{rotation:"default",tabPosition:"top"},closable:true,closeText:"Close Tab",active:false,childEls:["closeEl"],scale:false,ariaRole:"tab",_btnWrapCls:"x-tab-wrap",_btnCls:"x-tab-button",_baseIconCls:"x-tab-icon-el",_glyphCls:"x-tab-glyph",_innerCls:"x-tab-inner",_textCls:"x-tab-text",_noTextCls:"x-tab-no-text",_hasIconCls:"x-tab-icon",_activeCls:"x-tab-active",_closableCls:"x-tab-closable",overCls:"x-tab-over",_pressedCls:"x-tab-pressed",_disabledCls:"x-tab-disabled",_rotateClasses:{1:"x-tab-rotate-right",2:"x-tab-rotate-left"},_positions:{top:{"default":"top",0:"top",1:"left",2:"right"},right:{"default":"top",0:"right",1:"top",2:"bottom"},bottom:{"default":"bottom",0:"bottom",1:"right",2:"left"},left:{"default":"top",0:"left",1:"bottom",2:"top"}},_defaultRotations:{top:0,right:1,bottom:0,left:2},initComponent:function(){var a=this;if(a.card){a.setCard(a.card)}Ext.button.Button.prototype.initComponent.apply(this,arguments)},getActualRotation:function(){var a=this.getRotation();return(a!=="default")?a:this._defaultRotations[this.getTabPosition()]},updateRotation:function(){this.syncRotationAndPosition()},updateTabPosition:function(){this.syncRotationAndPosition()},syncRotationAndPosition:function(){var h=this,c=h._rotateClasses,b=h.getTabPosition(),g=h.getActualRotation(),e=h._rotateCls,i=h._rotateCls=c[g],d=h._positionCls,a=h._positionCls=h._positions[b][g];if(e!==i){if(e){h.removeCls(e)}if(i){h.addCls(i)}}if(d!==a){if(d){h.removeClsWithUI(d)}if(a){h.addClsWithUI(a)}if(h.rendered){h.updateFrame()}}if(h.rendered){h.setElOrientation()}},onAdded:function(b,c,a){Ext.button.Button.prototype.onAdded.call(this,b,c,a);this.syncRotationAndPosition()},getTemplateArgs:function(){var b=this,a=Ext.button.Button.prototype.getTemplateArgs.call(this);a.closable=b.closable;a.closeText=b.closeText;return a},beforeRender:function(){var b=this,a=b.up("tabbar"),c=b.up("tabpanel");Ext.button.Button.prototype.beforeRender.call(this);if(b.active){b.addCls(b._activeCls)}b.syncClosableCls();if(!b.minWidth){b.minWidth=(a)?a.minTabWidth:b.minWidth;if(!b.minWidth&&c){b.minWidth=c.minTabWidth}if(b.minWidth&&b.iconCls){b.minWidth+=25}}if(!b.maxWidth){b.maxWidth=(a)?a.maxTabWidth:b.maxWidth;if(!b.maxWidth&&c){b.maxWidth=c.maxTabWidth}}},onRender:function(){var a=this;a.setElOrientation();Ext.button.Button.prototype.onRender.apply(this,arguments);if(a.closable){a.closeEl.addClsOnOver(a.closeElOverCls);a.closeEl.addClsOnClick(a.closeElPressedCls)}a.initKeyNav()},initKeyNav:function(){var a=this;a.keyNav=new Ext.util.KeyNav(a.el,{enter:a.onEnterKey,del:a.onDeleteKey,scope:a})},setElOrientation:function(){var c=this,a=c.getActualRotation(),b=c.el;if(a){b.setVertical(a===1?90:270)}else{b.setHorizontal()}},enable:function(a){var b=this;Ext.button.Button.prototype.enable.apply(this,arguments);b.removeCls(b._disabledCls);return b},disable:function(a){var b=this;Ext.button.Button.prototype.disable.apply(this,arguments);b.addCls(b._disabledCls);return b},onDestroy:function(){var a=this;Ext.destroy(a.keyNav);delete a.keyNav;Ext.button.Button.prototype.onDestroy.apply(this,arguments)},setClosable:function(a){var b=this;a=(!arguments.length||!!a);if(b.closable!==a){b.closable=a;if(b.card){b.card.closable=a}b.syncClosableCls();if(b.rendered){b.syncClosableElements();b.updateLayout()}}},syncClosableElements:function(){var a=this,b=a.closeEl;if(a.closable){if(!b){b=a.closeEl=a.btnWrap.insertSibling({tag:"a",role:"presentation",cls:a.baseCls+"-close-btn",href:"#",title:a.closeText},"after")}b.addClsOnOver(a.closeElOverCls);b.addClsOnClick(a.closeElPressedCls)}else{if(b){b.destroy();delete a.closeEl}}},syncClosableCls:function(){var b=this,a=b._closableCls;if(b.closable){b.addCls(a)}else{b.removeCls(a)}},setCard:function(a){var b=this;b.card=a;if(a.iconAlign){b.setIconAlign(a.iconAlign)}if(a.textAlign){b.setTextAlign(a.textAlign)}b.setText(b.title||a.title);b.setIconCls(b.iconCls||a.iconCls);b.setIcon(b.icon||a.icon);b.setGlyph(b.glyph||a.glyph)},onCloseClick:function(){var a=this;if(a.fireEvent("beforeclose",a)!==false){if(a.tabBar){if(a.tabBar.closeTab(a)===false){return}}else{a.fireClose()}}},fireClose:function(){this.fireEvent("close",this)},onEnterKey:function(b){var a=this;if(a.tabBar){a.tabBar.onClick(b,a.el)}},onDeleteKey:function(a){if(this.closable){this.onCloseClick()}},beforeClick:function(a){if(!a){this.focus()}},activate:function(b){var a=this;a.active=true;a.addCls(a._activeCls);if(b!==true){a.fireEvent("activate",a)}},deactivate:function(b){var a=this;a.active=false;a.removeCls(a._activeCls);if(b!==true){a.fireEvent("deactivate",a)}},privates:{getFramingInfoCls:function(){return this.baseCls+"-"+this.ui+"-"+this._positionCls},wrapPrimaryEl:function(a){Ext.Button.superclass.wrapPrimaryEl.call(this,a)}}},0,["tab"],["component","box","button","tab"],{component:true,box:true,button:true,tab:true},["widget.tab"],0,[Ext.tab,"Tab"],0));(Ext.cmd.derive("Ext.tab.Bar",Ext.panel.Bar,{baseCls:"x-tab-bar",componentLayout:"body",isTabBar:true,config:{tabRotation:"default",tabStretchMax:true,activateOnFocus:true},defaultType:"tab",plain:false,ensureActiveVisibleOnChange:true,ariaRole:"tablist",childEls:["body","strip"],_stripCls:"x-tab-bar-strip",_baseBodyCls:"x-tab-bar-body",renderTpl:'<div id="{id}-body" data-ref="body" role="presentation" class="{baseBodyCls} {baseBodyCls}-{ui} {bodyCls} {bodyTargetCls}{childElCls}"<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>{%this.renderContainer(out,values)%}</div><div id="{id}-strip" data-ref="strip" role="presentation" class="{stripCls} {stripCls}-{ui}{childElCls}"></div>',_reverseDockNames:{left:"right",right:"left"},_layoutAlign:{top:"end",right:"begin",bottom:"begin",left:"end"},initComponent:function(){var d=this,a=d.initialConfig.layout,c=a&&a.align,b=a&&a.overflowHandler;if(d.plain){d.addCls(d.baseCls+"-plain")}Ext.panel.Bar.prototype.initComponent.call(this);d.setLayout({align:c||(d.getTabStretchMax()?"stretchmax":d._layoutAlign[d.dock]),overflowHandler:b||"scroller"});d.on({click:d.onClick,element:"el",scope:d})},ensureTabVisible:function(b){var c=this,d=c.tabPanel,a=c.layout.overflowHandler;if(c.rendered&&a&&c.tooNarrow&&a.scrollToItem){if(b||b===0){if(!b.isTab){if(Ext.isNumber(b)){b=this.items.getAt(b)}else{if(b.isComponent&&d&&d.items.contains(b)){b=b.tab}}}}if(!b){b=c.activeTab}if(b){a.scrollToItem(b)}}},initRenderData:function(){var a=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:a.bodyCls,baseBodyCls:a._baseBodyCls,bodyTargetCls:a.bodyTargetCls,stripCls:a._stripCls,dock:a.dock})},setDock:function(h){var g=this,a=g.items,c=g.ownerCt,e,b,d;a=a&&a.items;if(a){for(b=0,d=a.length;b<d;b++){e=a[b];if(e.isTab){e.setTabPosition(h)}}}if(g.rendered){g.resetItemMargins();if(c&&c.isHeader){c.resetItemMargins()}g.needsScroll=true}Ext.panel.Bar.prototype.setDock.call(this,h)},updateTabRotation:function(g){var e=this,a=e.items,b,d,c;a=a&&a.items;if(a){for(b=0,d=a.length;b<d;b++){c=a[b];if(c.isTab){c.setRotation(g)}}}if(e.rendered){e.resetItemMargins();e.needsScroll=true;e.updateLayout()}},onRender:function(){var b=this,a=this.layout.overflowHandler;Ext.panel.Bar.prototype.onRender.call(this);if(Ext.isIE8&&b.vertical){b.el.on({mousemove:b.onMouseMove,scope:b})}if(a&&a.type==="menu"){a.menu.on("click","onOverflowMenuItemClick",b)}},afterLayout:function(){this.adjustTabPositions();Ext.panel.Bar.prototype.afterLayout.apply(this,arguments)},onAdd:function(b,c){var a=this.onTabContentChange;if(this.ensureActiveVisibleOnChange){b.barListeners=b.on({scope:this,destroyable:true,glyphchange:a,iconchange:a,textchange:a})}Ext.panel.Bar.prototype.onAdd.call(this,b,c)},onAdded:function(b,c,a){if(b.isHeader){this.addCls(b.baseCls+"-"+b.ui+"-tab-bar")}Ext.panel.Bar.prototype.onAdded.call(this,b,c,a)},onRemove:function(a,c){var b=this;if(b.ensureActiveVisibleOnChange){if(!c){a.barListeners.destroy()}a.barListeners=null}if(a===b.previousTab){b.previousTab=null}Ext.panel.Bar.prototype.onRemove.call(this,a,c)},onRemoved:function(b){var a=this.ownerCt;if(a.isHeader){this.removeCls(a.baseCls+"-"+a.ui+"-tab-bar")}Ext.panel.Bar.prototype.onRemoved.call(this,b)},onTabContentChange:function(a){if(a===this.activeTab){this.ensureTabVisible(a)}},afterComponentLayout:function(c){var d=this,b=d.needsScroll,a=d.layout.overflowHandler;Ext.panel.Bar.prototype.afterComponentLayout.apply(this,arguments);if(a&&b&&d.tooNarrow&&a.scrollToItem){a.scrollToItem(d.activeTab)}delete d.needsScroll},onMouseMove:function(g){var d=this,b=d._overTab,a,c;if(g.getTarget(".x-box-scroller")){return}a=d.getTabInfoFromPoint(g.getXY());c=a.tab;if(c!==b){if(b&&b.rendered){b.onMouseLeave(g);d._overTab=null}if(c){c.onMouseEnter(g);d._overTab=c;if(!c.disabled){d.el.setStyle("cursor","pointer")}}else{d.el.setStyle("cursor","default")}}},onMouseLeave:function(b){var a=this._overTab;if(a&&a.rendered){a.onMouseLeave(b)}},getTabInfoFromPoint:function(g){var A=this,w=A.items.items,e=w.length,o=A.layout.innerCt,u=o.getXY(),t=new Ext.util.Point(g[0],g[1]),v=0,x,b,a,p,y,j,h,d,r,l,k,n,m,s,q,z,c;for(;v<e;v++){c=w[v];x=c.lastBox;if(!x||!c.isTab){continue}l=u[0]+x.x;k=u[1]-o.dom.scrollTop+x.y;n=x.width;m=x.height;b=new Ext.util.Region(k,l+n,k+m,l);if(b.contains(t)){a=c.closeEl;if(a){if(A._isTabReversed===undefined){A._isTabReversed=q=(c.btnWrap.dom.currentStyle.filter.indexOf("rotation=2")!==-1)}z=q?this._reverseDockNames[A.dock]:A.dock;d=a.getWidth();r=a.getHeight();y=A.getCloseXY(a,l,k,n,m,d,r,z);j=y[0];h=y[1];s=new Ext.util.Region(h,j+d,h+r,j);p=s.contains(t)}break}}return{tab:c,close:p}},getCloseXY:function(c,k,i,g,l,j,d,h){var e=c.getXY(),b,a;if(h==="right"){b=k+g-((e[1]-i)+d);a=i+(e[0]-k)}else{b=k+(e[1]-i);a=i+k+l-e[0]-j}return[b,a]},closeTab:function(c){var d=this,b=c.card,e=d.tabPanel,a;if(b&&b.fireEvent("beforeclose",b)===false){return false}a=d.findNextActivatable(c);Ext.suspendLayouts();if(e&&b){delete c.ownerCt;b.fireEvent("close",b);e.remove(b);if(!e.getComponent(b)){c.fireClose();d.remove(c)}else{c.ownerCt=d;Ext.resumeLayouts(true);return false}}if(a){if(e){e.setActiveTab(a.card)}else{d.setActiveTab(a)}a.focus()}Ext.resumeLayouts(true)},findNextActivatable:function(a){var b=this;if(a.active&&b.items.getCount()>1){return(b.previousTab&&b.previousTab!==a&&!b.previousTab.disabled)?b.previousTab:(a.next("tab[disabled=false]")||a.prev("tab[disabled=false]"))}},setActiveTab:function(b,a){var c=this;if(!b.disabled&&b!==c.activeTab){if(c.activeTab){if(c.activeTab.isDestroyed){c.previousTab=null}else{c.previousTab=c.activeTab;c.activeTab.deactivate();c.deactivateFocusable(c.activeTab)}}b.activate();c.activateFocusable(b);c.activeTab=b;c.needsScroll=true;if(!a){c.fireEvent("change",c,b,b.card);c.updateLayout()}}},privates:{adjustTabPositions:function(){var h=this,a=h.items.items,d=a.length,g,b,e,c,j;if(!Ext.isIE8){j=h._getTabAdjustProp();while(d--){g=a[d];e=g.el;b=g.lastBox;c=g.isTab?g.getActualRotation():0;if(c===1&&g.isVisible()){e.setStyle(j,(b.x+b.width)+"px")}else{if(c===2&&g.isVisible()){e.setStyle(j,(b.x-b.height)+"px")}}}}},applyTargetCls:function(a){this.bodyTargetCls=a},_getTabAdjustProp:function(){return"left"},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(h,g){var d=this,i,c,b,a;if(h.getTarget(".x-box-scroller")){return}if(Ext.isIE8&&d.vertical){a=d.getTabInfoFromPoint(h.getXY());c=a.tab;b=a.close}else{i=h.getTarget("."+Ext.tab.Tab.prototype.baseCls);c=i&&Ext.getCmp(i.id);b=c&&c.closeEl&&(g===c.closeEl.dom)}if(b){h.preventDefault()}if(c&&c.isDisabled&&!c.isDisabled()){c.beforeClick(b);if(c.closable&&b){c.onCloseClick()}else{d.doActivateTab(c)}}},onOverflowMenuItemClick:function(h,d,g,b){var c=d&&d.masterComponent,a=this.layout.overflowHandler;if(c&&!c.isDisabled()){this.doActivateTab(c);if(a.menuTrigger){a.menuTrigger.focus()}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else{this.setActiveTab(a)}},onFocusableContainerFocus:function(c){var b=this,a=b.mixins.focusablecontainer,d;d=a.onFocusableContainerFocus.call(b,c);if(d&&d.isTab){b.doActivateTab(d)}},onFocusableContainerFocusEnter:function(c){var b=this,a=b.mixins.focusablecontainer,d;d=a.onFocusableContainerFocusEnter.call(b,c);if(d&&d.isTab){b.doActivateTab(d)}},focusChild:function(e,b){var c=this,a=c.mixins.focusablecontainer,d;d=a.focusChild.call(c,e,b);if(c.activateOnFocus&&d&&d.isTab){c.doActivateTab(d)}}}},0,["tabbar"],["component","box","container","tabbar"],{component:true,box:true,container:true,tabbar:true},["widget.tabbar"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.tab,"Bar"],0));Ext.define("Ext.rtl.tab.Bar",{override:"Ext.tab.Bar",privates:{_getTabAdjustProp:function(){return this.getInherited().rtl?"right":"left"},getCloseXY:function(c,k,i,g,l,j,d,h){var e,b,a,m;if(this.isOppositeRootDirection()){e=c.getXY();if(h==="right"){b=k+e[1]-i;a=i+l-(e[0]-(k+g-l))-j}else{b=k+g-(e[1]-i)-d;a=i+(e[0]-(k+g-l))}m=[b,a]}else{m=arguments.callee.$previous.apply(this,arguments)}return m}}});(Ext.cmd.derive("Ext.tab.Panel",Ext.panel.Panel,{alternateClassName:["Ext.TabPanel"],config:{tabBar:undefined,tabPosition:"top",tabRotation:"default",tabStretchMax:true},removePanelHeader:true,plain:false,itemCls:"x-tabpanel-child",minTabWidth:undefined,maxTabWidth:undefined,deferredRender:true,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var g=this,c=g.activeTab!==null?(g.activeTab||0):null,e=g.dockedItems,h=g.header,d=g.tabBarHeaderPosition,b=g.getTabBar(),a;g.layout=new Ext.layout.container.Card(Ext.apply({owner:g,deferredRender:g.deferredRender,itemCls:g.itemCls,activeItem:c},g.layout));if(d!=null){h=g.header=Ext.apply({},h);a=h.items=(h.items?h.items.slice():[]);h.itemPosition=d;a.push(b);h.hasTabBar=true}else{e=[].concat(g.dockedItems||[]);e.push(b);g.dockedItems=e}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=g.activeTab=g.getComponent(c);if(c){b.setActiveTab(c.tab,true)}},onRender:function(){var b=this.items.items,a=b.length,c;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(c=0;c<a;++c){b[c].getBind()}},setActiveTab:function(a){var c=this,b;if(!Ext.isObject(a)||a.isComponent){a=c.getComponent(a)}b=c.getActiveTab();if(a){Ext.suspendLayouts();if(!a.isComponent){a=c.add(a)}if(b===a||c.fireEvent("beforetabchange",c,a,b)===false){Ext.resumeLayouts(true);return b}c.activeTab=a;c.layout.setActiveItem(a);a=c.activeTab=c.layout.getActiveItem();if(a&&a!==b){c.tabBar.setActiveTab(a.tab);Ext.resumeLayouts(true);if(b!==a){c.fireEvent("tabchange",c,a,b)}}else{Ext.resumeLayouts(true)}return a}return b},setActiveItem:function(a){return this.setActiveTab(a)},getActiveTab:function(){var b=this,a=b.getComponent(b.activeTab);if(a&&b.items.indexOf(a)!==-1){b.activeTab=a}else{b.activeTab=undefined}return b.activeTab},applyTabBar:function(a){var c=this,b=(c.tabBarHeaderPosition!=null)?c.getHeaderPosition():c.getTabPosition();return new Ext.tab.Bar(Ext.apply({ui:c.ui,dock:b,tabRotation:c.getTabRotation(),vertical:(b==="left"||b==="right"),plain:c.plain,tabStretchMax:c.getTabStretchMax(),tabPanel:c},a))},updateHeaderPosition:function(c,b){var a=this.getTabBar();if(a&&(this.tabBarHeaderPosition!=null)){a.setDock(c)}Ext.panel.Panel.prototype.updateHeaderPosition.call(this,c,b)},updateTabPosition:function(b){var a=this.getTabBar();if(a&&(this.tabBarHeaderPosition==null)){a.setDock(b)}},updateTabRotation:function(b){var a=this.getTabBar();if(a){a.setTabRotation(b)}},onAdd:function(g,d){var e=this,c=Ext.apply({},g.tabConfig),b=e.getTabBar(),a={xtype:"tab",title:g.title,icon:g.icon,iconCls:g.iconCls,glyph:g.glyph,ui:b.ui,card:g,disabled:g.disabled,closable:g.closable,hidden:g.hidden&&!g.hiddenByLayout,tooltip:g.tooltip,tabBar:b,tabPosition:b.dock,rotation:b.getTabRotation()};if(g.closeText!==undefined){a.closeText=g.closeText}c=Ext.applyIf(c,a);g.tab=e.tabBar.insert(d,c);g.on({scope:e,enable:e.onItemEnable,disable:e.onItemDisable,beforeshow:e.onItemBeforeShow,iconchange:e.onItemIconChange,iconclschange:e.onItemIconClsChange,glyphchange:e.onItemGlyphChange,titlechange:e.onItemTitleChange});if(g.isPanel){if(e.removePanelHeader){if(g.rendered){if(g.header){g.header.hide()}}else{g.header=false}}if(g.isPanel&&e.border){g.setBorder(false)}}if(e.rendered){g.getBind()}if(e.rendered&&e.loader&&e.activeTab===undefined&&e.layout.activeItem!==null){e.setActiveTab(0)}},onMove:function(c,b,d){var a=this.getTabBar();Ext.panel.Panel.prototype.onMove.call(this,c,b,d);if(a.items.indexOf(c.tab)!==d){a.move(c.tab,d)}},onItemEnable:function(a){a.tab.enable()},onItemDisable:function(a){a.tab.disable()},onItemBeforeShow:function(a){if(a!==this.activeTab){this.setActiveTab(a);return false}},onItemGlyphChange:function(a,b){a.tab.setGlyph(b)},onItemIconChange:function(b,a){b.tab.setIcon(a)},onItemIconClsChange:function(b,a){b.tab.setIconCls(a)},onItemTitleChange:function(a,b){a.tab.setText(b)},onRemove:function(b,c){var a=this;b.un({scope:a,enable:a.onItemEnable,disable:a.onItemDisable,beforeshow:a.onItemBeforeShow,iconchange:a.onItemIconChange,iconclschange:a.onItemIconClsChange,glyphchange:a.onItemGlyphChange,titlechange:a.onItemTitleChange});if(b.tab&&!a.destroying&&b.tab.ownerCt===a.tabBar){a.tabBar.remove(b.tab)}},enable:function(){var c=this,a=c.activeTab!==null?(c.activeTab||0):null,b=c.disabled;Ext.panel.Panel.prototype.enable.apply(this,arguments);if(b){a=a.isComponent?a:c.getComponent(a);if(a){c.getTabBar().setActiveTab(a.tab)}}},privates:{doRemove:function(d,b){var c=this,a;if(c.removingAll||c.destroying||c.items.getCount()===1){c.activeTab=null}else{if(d.tab&&(a=c.tabBar.items.indexOf(c.tabBar.findNextActivatable(d.tab)))!==-1){c.setActiveTab(a)}}Ext.panel.Panel.prototype.doRemove.apply(this,arguments);if(d.tab){delete d.tab.card;delete d.tab}}}},0,["tabpanel"],["component","box","container","panel","tabpanel"],{component:true,box:true,container:true,panel:true,tabpanel:true},["widget.tabpanel"],0,[Ext.tab,"Panel",Ext,"TabPanel"],0));(Ext.cmd.derive("Ext.toolbar.Breadcrumb",Ext.Container,{isBreadcrumb:true,baseCls:"x-breadcrumb",layout:"hbox",config:{buttonUI:"plain-toolbar",displayField:"text",overflowHandler:null,showIcons:null,showMenuIcons:null,store:null,useSplitButtons:true},renderConfig:{selection:"root"},publishes:["selection"],twoWayBindable:["selection"],_breadcrumbCls:"x-breadcrumb",_btnCls:"x-breadcrumb-btn",_folderIconCls:"x-breadcrumb-icon-folder",_leafIconCls:"x-breadcrumb-icon-leaf",initComponent:function(){var c=this,b=c.layout,a=c.getOverflowHandler();if(typeof b==="string"){b={type:b}}if(a){b.overflowHandler=a}c.layout=b;c.defaultButtonUI=c.getButtonUI();c._buttons=[];c.addCls([c._breadcrumbCls,c._breadcrumbCls+"-"+c.ui]);Ext.container.Container.prototype.initComponent.call(this)},onDestroy:function(){var a=this;a._buttons=Ext.destroy(a._buttons);a.setStore(null);Ext.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,b){Ext.container.Container.prototype.onRemove.call(this,a,b);delete a._breadcrumbNodeId},afterComponentLayout:function(){var b=this,a=b.layout.overflowHandler;Ext.container.Container.prototype.afterComponentLayout.apply(this,arguments);if(a&&b.tooNarrow&&a.scrollToItem){a.scrollToItem(b.getSelection().get("depth"))}},applySelection:function(b){var a=this.getStore();if(a){b=(b==="root")?this.getStore().getRoot():b}else{b=null}return b},updateSelection:function(l){var r=this,o=r._buttons,h=[],q=r.items.getCount(),k=r._needsSync,m=r.getDisplayField(),d,e,b,p,s,c,g,a,j,t,n;Ext.suspendLayouts();if(l){c=l;t=l.get("depth");s=t+1;n=t;while(c){j=c.getId();a=o[n];if(!k&&a&&a._breadcrumbNodeId===j){break}g=c.get(m);if(a){a.setText(g)}else{a=o[n]=Ext.create({xtype:r.getUseSplitButtons()?"splitbutton":"button",ui:r.getButtonUI(),cls:r._btnCls+" "+r._btnCls+"-"+r.ui,text:g,showEmptyMenu:true,menu:{listeners:{click:"_onMenuClick",beforeshow:"_onMenuBeforeShow",scope:this}},handler:"_onButtonClick",scope:r})}d=this.getShowIcons();if(d!==false){e=c.get("glyph");p=c.get("icon");b=c.get("iconCls");if(e){a.setGlyph(e);a.setIcon(null);a.setIconCls(b)}else{if(p){a.setGlyph(null);a.setIconCls(null);a.setIcon(p)}else{if(b){a.setGlyph(null);a.setIcon(null);a.setIconCls(b)}else{if(d){a.setGlyph(null);a.setIcon(null);a.setIconCls((c.isLeaf()?r._leafIconCls:r._folderIconCls)+"-"+r.ui)}else{a.setGlyph(null);a.setIcon(null);a.setIconCls(null)}}}}}a.setArrowVisible(c.hasChildNodes());a._breadcrumbNodeId=c.getId();c=c.parentNode;n--}if(s>q){h=o.slice(q,t+1);r.add(h)}else{for(n=q-1;n>=s;n--){r.remove(r.items.items[n],false)}}}else{r.removeAll(false)}Ext.resumeLayouts(true);r.fireEvent("selectionchange",r,l);r._needsSync=false},applyUseSplitButtons:function(b,a){if(this.rendered&&b!==a){Ext.Error.raise("Cannot reconfigure 'useSplitButtons' config of Ext.toolbar.Breadcrumb after initial render")}return b},applyStore:function(a){if(a){a=Ext.data.StoreManager.lookup(a)}return a},updateStore:function(a,b){this._needsSync=true;if(a&&!this.isConfiguring){this.setSelection(a.getRoot())}},privates:{_onButtonClick:function(a,b){if(this.getUseSplitButtons()){this.setSelection(this.getStore().getNodeById(a._breadcrumbNodeId))}},_onMenuClick:function(c,a,b){if(a){this.setSelection(this.getStore().getNodeById(a._breadcrumbNodeId))}},_onMenuBeforeShow:function(c){var k=this,d=k.getStore().getNodeById(c.ownerCmp._breadcrumbNodeId),g=k.getDisplayField(),a=k.getShowMenuIcons(),o,b,l,j,e,m,n,h,p;if(d.hasChildNodes()){o=d.childNodes;j=[];for(e=0,h=o.length;e<h;e++){b=o[e];p={text:b.get(g),_breadcrumbNodeId:b.getId()};if(a!==false){l=b.get("glyph");m=b.get("icon");n=b.get("iconCls");if(l){p.glyph=l;p.iconCls=n}else{if(m){p.icon=m}else{if(n){p.iconCls=n}else{if(a){p.iconCls=(b.isLeaf()?k._leafIconCls:k._folderIconCls)+"-"+k.ui}}}}}j.push(p)}c.removeAll();c.add(j)}else{return false}}}},0,["breadcrumb"],["component","box","container","breadcrumb"],{component:true,box:true,container:true,breadcrumb:true},["widget.breadcrumb"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.toolbar,"Breadcrumb"],0));(Ext.cmd.derive("Ext.toolbar.Fill",Ext.Component,{alternateClassName:"Ext.Toolbar.Fill",ariaRole:"presentation",isFill:true,flex:1},0,["tbfill"],["component","box","tbfill"],{component:true,box:true,tbfill:true},["widget.tbfill"],0,[Ext.toolbar,"Fill",Ext.Toolbar,"Fill"],0));(Ext.cmd.derive("Ext.toolbar.Spacer",Ext.Component,{alternateClassName:"Ext.Toolbar.Spacer",baseCls:"x-toolbar-spacer",ariaRole:"presentation"},0,["tbspacer"],["component","box","tbspacer"],{component:true,box:true,tbspacer:true},["widget.tbspacer"],0,[Ext.toolbar,"Spacer",Ext.Toolbar,"Spacer"],0));(Ext.cmd.derive("Ext.tree.Column",Ext.grid.column.Column,{tdCls:"x-grid-cell-treecolumn",autoLock:true,lockable:false,draggable:false,hideable:false,iconCls:"x-tree-icon",checkboxCls:"x-tree-checkbox",elbowCls:"x-tree-elbow",expanderCls:"x-tree-expander",textCls:"x-tree-node-text",innerCls:"x-grid-cell-inner-treecolumn",isTreeColumn:true,cellTpl:['<tpl for="lines">','<img src="{parent.blankUrl}" class="{parent.childCls} {parent.elbowCls}-img ','{parent.elbowCls}-<tpl if=".">line<tpl else>empty</tpl>" role="presentation"/>',"</tpl>",'<img src="{blankUrl}" class="{childCls} {elbowCls}-img {elbowCls}','<tpl if="isLast">-end</tpl><tpl if="expandable">-plus {expanderCls}</tpl>" role="presentation"/>','<tpl if="checked !== null">','<input type="button" {ariaCellCheckboxAttr}',' class="{childCls} {checkboxCls}<tpl if="checked"> {checkboxCls}-checked</tpl>"/>',"</tpl>",'<img src="{blankUrl}" role="presentation" class="{childCls} {baseIconCls} ','{baseIconCls}-<tpl if="leaf">leaf<tpl else>parent</tpl> {iconCls}"','<tpl if="icon">style="background-image:url({icon})"</tpl>/>','<tpl if="href">','<a href="{href}" role="link" target="{hrefTarget}" class="{textCls} {childCls}">{value}</a>',"<tpl else>",'<span class="{textCls} {childCls}">{value}</span>',"</tpl>"],uiFields:{checked:1,icon:1,iconCls:1},rowFields:{expanded:1,loaded:1,expandable:1,leaf:1,loading:1,qtip:1,qtitle:1,cls:1},initComponent:function(){var a=this;a.rendererScope=a.scope;a.setupRenderer();a.innerRenderer=a.renderer;a.renderer=a.treeRenderer;Ext.grid.column.Column.prototype.initComponent.call(this);a.scope=a;a.hasCustomRenderer=a.innerRenderer&&a.innerRenderer.length>1},treeRenderer:function(i,a,e,b,c,j,h){var g=this,k=e.get("cls"),d;if(a&&k){a.tdCls+=" "+k}d=g.initTemplateRendererData(i,a,e,b,c,j,h);return g.getTpl("cellTpl").apply(d)},initTemplateRendererData:function(l,a,g,b,e,m,j){var i=this,c=i.innerRenderer,d=g.data,k=g.parentNode,n=j.rootVisible,o=[],h;while(k&&(n||k.data.depth>0)){h=k.data;o[n?h.depth:h.depth-1]=k.isLastVisible()?0:1;k=k.parentNode}return{record:g,baseIconCls:i.iconCls,iconCls:d.iconCls,icon:d.icon,checkboxCls:i.checkboxCls,checked:d.checked,elbowCls:i.elbowCls,expanderCls:i.expanderCls,textCls:i.textCls,leaf:d.leaf,expandable:g.isExpandable(),isLast:g.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:d.href,hrefTarget:d.hrefTarget,lines:o,metaData:a,childCls:i.getChildCls?i.getChildCls()+" ":"",value:c?c.apply(i.rendererScope,arguments):l}},shouldUpdateCell:function(b,d){var e=this,c=0,a,g;if(d){a=d.length;for(;c<a;++c){g=d[c];if(e.rowFields[g]){return 1}if(e.uiFields[g]){return 2}}}return Ext.grid.column.Column.prototype.shouldUpdateCell.call(this,b,d)}},0,["treecolumn"],["component","box","container","headercontainer","gridcolumn","treecolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true,treecolumn:true},["widget.treecolumn"],0,[Ext.tree,"Column"],0));Ext.define("Ext.rtl.tree.Column",{override:"Ext.tree.Column",getChildCls:function(){return this._childCls||(this._childCls=(this.getInherited().rtl?"x-rtl":""))}});(Ext.cmd.derive("Ext.tree.NavigationModel",Ext.grid.NavigationModel,{initKeyNav:function(a){var c=this,b=c.view.ownerGrid.columns;c.isTreeGrid=b&&b.length>1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,a);c.keyNav.map.addBinding([{key:"8",shift:true,handler:c.onAsterisk,scope:c},{key:Ext.event.Event.NUM_MULTIPLY,handler:c.onAsterisk,scope:c}]);c.view.grid.on({columnschanged:c.onColumnsChanged,scope:c})},onColumnsChanged:function(){this.isTreeGrid=this.view.ownerGrid.getVisibleColumnManager().getColumns().length>1},onKeyLeft:function(d){var c=this,b=d.view,a=c.record;if(c.isTreeGrid&&!d.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,d)}if(d.position.column.isTreeColumn&&a.isExpanded()){b.collapse(a)}else{a=a.parentNode;if(a&&!(a.isRoot()&&!b.rootVisible)){c.setPosition(a,null,d)}}},onKeyRight:function(c){var b=this,a=b.record;if(b.isTreeGrid&&!c.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,c)}if(!a.isLeaf()){if(c.position.column.isTreeColumn&&!a.isExpanded()){c.view.expand(a)}else{if(a.isExpanded()){a=a.childNodes[0];if(a){b.setPosition(a)}}}}},onKeyEnter:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else{Ext.grid.NavigationModel.prototype.onKeyEnter.call(this,a)}},onKeySpace:function(a){if(this.record.data.checked!=null){this.toggleCheck(a)}else{Ext.grid.NavigationModel.prototype.onKeySpace.call(this,a)}},toggleCheck:function(a){this.view.onCheckChange(this.record)},onAsterisk:function(a){this.view.ownerGrid.expandAll()}},0,0,0,0,["view.navigation.tree"],0,[Ext.tree,"NavigationModel"],0));(Ext.cmd.derive("Ext.tree.View",Ext.view.Table,{config:{selectionModel:{type:"treemodel"}},isTreeView:true,loadingCls:"x-grid-tree-loading",expandedCls:"x-grid-tree-node-expanded",leafCls:"x-grid-tree-node-leaf",expanderSelector:".x-tree-expander",checkboxSelector:".x-tree-checkbox",expanderIconOverCls:"x-tree-expander-over",nodeAnimWrapCls:"x-tree-animator-wrap",ariaRole:"tree",loadMask:false,rootVisible:true,expandDuration:250,collapseDuration:250,toggleOnDblClick:true,stripeRows:false,treeRowTpl:["{%","this.processRowValues(values);","this.nextTpl.applyOut(values, out, parent);","%}",{priority:10,processRowValues:function(c){var b=c.record,a=c.view;c.rowAttr["data-qtip"]=b.get("qtip")||"";c.rowAttr["data-qtitle"]=b.get("qtitle")||"";if(b.isExpanded()){c.rowClasses.push(a.expandedCls)}if(b.isLeaf()){c.rowClasses.push(a.leafCls)}if(b.isLoading()){c.rowClasses.push(a.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=false}else{if(a.initialConfig.animate===undefined){a.animate=Ext.enableFx}}a.store=a.panel.getStore();a.onRootChange(a.store.getRoot());a.animQueue={};a.animWraps={};Ext.view.Table.prototype.initComponent.call(this);a.store.setRootVisible(a.rootVisible);a.addRowTpl(Ext.XTemplate.getTpl(a,"treeRowTpl"))},onFillComplete:function(e,d,b){var c=this,a=c.store,g=a.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||g===-1){return}c.onAdd(c.store,b,g);c.refreshPartner()},refreshPartner:function(){var a=this.lockingPartner;if(a){a.refresh()}},afterRender:function(){var a=this;Ext.view.Table.prototype.afterRender.call(this);a.el.on({scope:a,delegate:a.expanderSelector,mouseover:a.onExpanderMouseOver,mouseout:a.onExpanderMouseOut,click:{delegate:a.checkboxSelector,fn:a.onCheckboxChange,scope:a}})},afterComponentLayout:function(c,b,d,e){var a=this.getScrollable();Ext.view.Table.prototype.afterComponentLayout.call(this,c,b,d,e);if(a&&!this.bufferedRenderer){a.refresh()}},processUIEvent:function(a){if(a.getTarget("."+this.nodeAnimWrapCls,this.el)){return false}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},onCheckboxChange:function(d,a){var c=this,b=d.getTarget(c.getItemSelector(),c.getTargetEl());if(b){c.onCheckChange(c.getRecord(b))}},onCheckChange:function(a){var b=a.get("checked");if(Ext.isBoolean(b)){b=!b;a.set("checked",b);this.fireEvent("checkchange",a,b)}},getChecked:function(){var a=[];this.node.cascadeBy(function(b){if(b.get("checked")){a.push(b)}});return a},isItemChecked:function(a){return a.get("checked")},createAnimWrap:function(a,b){var e=this,d=e.getNode(a),c;c=Ext.fly(d).insertSibling({role:"presentation",tag:"div",cls:e.nodeAnimWrapCls},"after");return{record:a,node:d,el:c,expanding:false,collapsing:false,animateEl:c,targetEl:c}},getAnimWrap:function(d,a){if(!this.animate){return null}var b=this.animWraps,c=b[d.internalId];if(a!==false){while(!c&&d){d=d.parentNode;if(d){c=b[d.internalId]}}}return c},doAdd:function(b,g){var h=this,d=b[0],i=d.parentNode,j=h.all,n,c=h.getAnimWrap(i),l,k,e,m,a;if(!c||!c.expanding){return Ext.view.Table.prototype.doAdd.call(this,b,g)}m=h.bufferRender(b,g,true);a=m.children;i=c.record;l=c.targetEl;k=l.dom.childNodes;e=k.length;n=g-h.indexInStore(i)-1;if(!e||n>=e){l.appendChild(m.fragment,true)}else{Ext.fly(k[n]).insertSibling(a,"before",true)}j.insert(g,a);return a},onRemove:function(g,a,b){var d=this,e,c;if(d.viewReady){e=d.store.getCount()===0;if(d.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,g,a,b)}if(e){d.refresh()}else{for(c=a.length-1,b+=c;c>=0;--c,--b){d.doRemove(a[c],b)}d.refreshSizePending=true}if(d.hasListeners.itemremove){for(c=a.length-1,b+=c;c>=0;--c,--b){d.fireEvent("itemremove",a[c],b,d)}}}},doRemove:function(a,c){var h=this,d=h.all,b=h.getAnimWrap(a),g=d.item(c),e=g?g.dom:null;if(!e||!b||!b.collapsing){return Ext.view.Table.prototype.doRemove.call(this,a,c)}b.targetEl.dom.insertBefore(e,b.targetEl.dom.firstChild);d.removeElement(c)},onBeforeExpand:function(d,b,c){var e=this,a;if(e.rendered&&e.all.getCount()&&e.animate){if(e.getNode(d)){a=e.getAnimWrap(d,false);if(!a){a=e.animWraps[d.internalId]=e.createAnimWrap(d);a.animateEl.setHeight(0)}else{if(a.collapsing){a.targetEl.select(e.itemSelector).destroy()}}a.expanding=true;a.collapsing=false}}},onExpand:function(i){var h=this,e=h.animQueue,a=i.getId(),c=h.getNode(i),g=c?h.indexOf(c):-1,d,b,j;if(h.singleExpand){h.ensureSingleExpand(i)}if(g===-1){return}d=h.getAnimWrap(i,false);if(!d){i.isExpandingOrCollapsing=false;h.fireEvent("afteritemexpand",i,g,c);return}b=d.animateEl;j=d.targetEl;b.stopAnimation();e[a]=true;Ext.on("idle",function(){b.dom.style.height="0px"},null,{single:true});b.animate({from:{height:0},to:{height:j.dom.scrollHeight},duration:h.expandDuration,listeners:{afteranimate:function(){var k=j.dom.childNodes,l=Ext.Element.getActiveElement();if(k.length){if(!j.contains(l)){l=null}d.el.insertSibling(k,"before",true);if(l){l.focus()}}d.el.destroy();h.animWraps[d.record.internalId]=e[a]=null}},callback:function(){i.isExpandingOrCollapsing=false;if(!h.isDestroyed){h.refreshSize(true)}h.fireEvent("afteritemexpand",i,g,c)}})},onBeforeCollapse:function(e,b,c,h,d){var g=this,a;if(g.rendered&&g.all.getCount()){if(g.animate){if(e.isVisible()){a=g.getAnimWrap(e);if(!a){a=g.animWraps[e.internalId]=g.createAnimWrap(e,c)}else{if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}}a.expanding=false;a.collapsing=true;a.callback=h;a.scope=d}}else{g.onCollapseCallback=h;g.onCollapseScope=d}}},onCollapse:function(d){var g=this,a=g.animQueue,i=d.getId(),e=g.getNode(d),c=e?g.indexOf(e):-1,b=g.getAnimWrap(d),h;if(!g.all.getCount()||!d.isVisible()){return}if(!b){d.isExpandingOrCollapsing=false;g.fireEvent("afteritemcollapse",d,c,e);Ext.callback(g.onCollapseCallback,g.onCollapseScope);g.onCollapseCallback=g.onCollapseScope=null;return}h=b.animateEl;a[i]=true;h.stopAnimation();h.animate({to:{height:0},duration:g.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();g.animWraps[b.record.internalId]=a[i]=null}},callback:function(){d.isExpandingOrCollapsing=false;if(!g.isDestroyed){g.refreshSize(true)}g.fireEvent("afteritemcollapse",d,c,e);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(d,c,h,e){var g=this,b=!!g.animate,a;if(!b||!d.isExpandingOrCollapsing){if(!d.isLeaf()){d.isExpandingOrCollapsing=b}Ext.suspendLayouts();a=d.expand(c,h,e);Ext.resumeLayouts(true);return a}},collapse:function(c,b,g,d){var e=this,a=!!e.animate;if(!a||!c.isExpandingOrCollapsing){if(!c.isLeaf()){c.isExpandingOrCollapsing=a}return c.collapse(b,g,d)}},toggle:function(b,a,d,c){if(b.isExpanded()){this.collapse(b,a,d,c)}else{this.expand(b,a,d,c)}},onItemDblClick:function(a,g,c,h){var d=this,b=d.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,g,c,h);if(d.toggleOnDblClick&&a.isExpandable()&&!(b&&b.clicksToEdit===2)){d.toggle(a)}},onBeforeItemMouseDown:function(a,c,b,d){if(d.getTarget(this.expanderSelector,c)){return false}return Ext.view.Table.prototype.onBeforeItemMouseDown.call(this,a,c,b,d)},onItemClick:function(a,c,b,d){if(d.getTarget(this.expanderSelector,c)&&a.isExpandable()){this.toggle(a,d.ctrlKey);if(this.getSizeModel().height.auto){this.scrollRowIntoView(this.getRow(a))}return false}return Ext.view.Table.prototype.onItemClick.call(this,a,c,b,d)},onExpanderMouseOver:function(b,a){b.getTarget(this.cellSelector,10,true).addCls(this.expanderIconOverCls)},onExpanderMouseOut:function(b,a){b.getTarget(this.cellSelector,10,true).removeCls(this.expanderIconOverCls)},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(a,c,d,e){var b=e&&e.getRootNode(),g=a&&a.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,a,c,d,e);if(g!==b){this.onRootChange(g,b)}},onRootChange:function(d,a){var c=this,b=c.grid;if(a){c.rootListeners.destroy();c.rootListeners=null}if(d){c.rootListeners=d.on({beforeexpand:c.onBeforeExpand,expand:c.onExpand,beforecollapse:c.onBeforeCollapse,collapse:c.onCollapse,destroyable:true,scope:c});b.addRelayers(d)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(c){if(c!==b&&c.isExpanded()){c.collapse()}})}},privates:{deferRefreshForLoad:function(a){var c=Ext.view.Table.prototype.deferRefreshForLoad.call(this,a),b,d;if(c){b=a.lastOptions;d=b&&b.node;if(d&&d!==a.getRoot()){c=false}}return c}}},0,["treeview"],["component","box","dataview","tableview","gridview","treeview"],{component:true,box:true,dataview:true,tableview:true,gridview:true,treeview:true},["widget.treeview"],0,[Ext.tree,"View"],0));(Ext.cmd.derive("Ext.tree.Panel",Ext.panel.Table,{alternateClassName:["Ext.tree.TreePanel","Ext.TreePanel"],viewType:"treeview",treeCls:"x-tree-panel",rowLines:false,lines:true,useArrows:false,singleExpand:false,ddConfig:{enableDrag:true,enableDrop:true},rootVisible:true,displayField:"text",root:null,normalCfgCopy:["displayField","root","singleExpand","useArrows","lines","rootVisible","scroll"],lockedCfgCopy:["displayField","root","singleExpand","useArrows","lines","rootVisible"],isTree:true,arrowCls:"x-tree-arrows",linesCls:"x-tree-lines",noLinesCls:"x-tree-no-lines",autoWidthCls:"x-autowidth-table",constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.panel.Table.prototype.constructor.call(this,a)},initComponent:function(){var d=this,b=[d.treeCls],c=d.store,a;if(d.useArrows){b.push(d.arrowCls);d.lines=false}if(d.lines){b.push(d.linesCls)}else{if(!d.useArrows){b.push(d.noLinesCls)}}c=d.applyStore(d.store);if(!c.getRoot()){c.setRoot({})}c.setRootVisible(d.rootVisible);d.viewConfig=Ext.apply({rootVisible:d.rootVisible,animate:d.enableAnimations,singleExpand:d.singleExpand,node:c.getRoot(),hideHeaders:d.hideHeaders,navigationModel:"tree"},d.viewConfig);if(!d.columns){if(d.initialConfig.hideHeaders===undefined){d.hideHeaders=true}d.addCls(d.autoWidthCls);d.columns=[{xtype:"treecolumn",text:"Name",flex:1,dataIndex:d.displayField}]}if(d.cls){b.push(d.cls)}d.cls=b.join(" ");Ext.panel.Table.prototype.initComponent.call(this);a=d.getView();d.relayEvents(a,["checkchange","afteritemexpand","afteritemcollapse"])},applyStore:function(a){var b=this;if(Ext.isString(a)){a=b.store=Ext.StoreMgr.lookup(a)}else{if(!a||!a.isStore){a=Ext.apply({type:"tree",proxy:"memory"},a);if(b.root){a.root=b.root}if(b.fields){a.fields=b.fields}else{if(b.model){a.model=b.model}}if(b.folderSort){a.folderSort=b.folderSort}a=b.store=Ext.StoreMgr.lookup(a)}else{if(b.root){a=b.store=Ext.data.StoreManager.lookup(a);a.setRoot(b.root);if(b.folderSort!==undefined){a.folderSort=b.folderSort;a.sort()}}}}return a},setStore:function(a){var b=this;a=b.applyStore(a);if(!a.getRoot()){a.setRoot({})}a.setRootVisible(b.rootVisible);if(b.enableLocking){b.reconfigure(a)}else{if(b.view){b.view.setRootNode(a.getRootNode())}b.bindStore(a)}},bindStore:function(b,c){var d=this,a=b.getRoot(),e=d.bufferedRenderer;Ext.panel.Table.prototype.bindStore.apply(this,arguments);if(e){if(e.store){e.bindStore(b)}}b.singleExpand=d.singleExpand;d.storeListeners=d.mon(b,{destroyable:true,rootchange:d.onRootChange,scope:d});d.storeRelayers=d.relayEvents(b,["beforeload","load"]);if(!d.rootVisible&&!b.autoLoad&&!(a.isExpanded()||a.isLoading())){if(a.isLoaded()){a.data.expanded=true;b.onNodeExpand(a,a.childNodes)}else{if(b.autoLoad!==false&&!b.hasPendingLoad()){a.data.expanded=false;a.expand()}}}b.ownerTree=d;if(!c){d.view.setRootNode(a)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:true,append:a.createRelayer("itemappend"),remove:a.createRelayer("itemremove"),move:a.createRelayer("itemmove",[0,4]),insert:a.createRelayer("iteminsert"),beforeappend:a.createRelayer("beforeitemappend"),beforeremove:a.createRelayer("beforeitemremove"),beforemove:a.createRelayer("beforeitemmove"),beforeinsert:a.createRelayer("beforeiteminsert"),expand:a.createRelayer("itemexpand",[0,1]),collapse:a.createRelayer("itemcollapse",[0,1]),beforeexpand:a.createRelayer("beforeitemexpand",[0,1]),beforecollapse:a.createRelayer("beforeitemcollapse",[0,1]),scope:a})},unbindStore:function(){var b=this,a=b.store;if(a){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(b.storeListeners,b.storeRelayers,b.rootRelayers);delete a.ownerTree;a.singleExpand=null}},setRootNode:function(){return this.store.setRoot.apply(this.store,arguments)},getRootNode:function(){return this.store.getRoot()},onRootChange:function(a){this.view.setRootNode(a)},getChecked:function(){return this.getView().getChecked()},isItemChecked:function(a){return a.get("checked")},expandNode:function(b,a,d,c){return this.getView().expand(b,a,d,c||this)},collapseNode:function(b,a,d,c){return this.getView().collapse(b,a,d,c||this)},expandAll:function(d,b){var c=this,a=c.getRootNode();if(a){Ext.suspendLayouts();a.expand(true,d,b||c);Ext.resumeLayouts(true)}},collapseAll:function(e,c){var d=this,b=d.getRootNode(),a=d.getView();if(b){Ext.suspendLayouts();c=c||d;if(a.rootVisible){b.collapse(true,e,c)}else{b.collapseChildren(true,e,c)}Ext.resumeLayouts(true)}},expandPath:function(o,q){var e=arguments,g=this,h=g.view,i=(q&&q.field)||g.store.model.idProperty,j,p,b=(q&&q.separator)||"/",k,n,d,c,m,a,l;if(q&&typeof q==="object"){i=q.field||g.store.model.idProperty;b=q.separator||"/";k=q.callback;n=q.scope;j=q.select;p=q.focus}else{i=e[1]||g.store.model.idProperty;b=e[2]||"/";k=e[3];n=e[4]}if(Ext.isEmpty(o)){return Ext.callback(k,n||g,[false,null])}m=o.split(b);a=!m[0];if(a){d=g.getRootNode();c=1}else{d=g.store.findNode(i,m[0]);c=0}if(!d||(a&&(d.get(i)+"")!==m[1])){return Ext.callback(k,n||g,[false,d])}l=function(v){var t=this,r,s,u;if(++c===m.length){if(j){h.getSelectionModel().select(t)}if(p){h.getNavigationModel().setPosition(t,0)}return Ext.callback(k,n||g,[true,t,h.getNode(t)])}for(s=0,r=v?v.length:0;s<r;s++){t=v[s];u=t.get(i);if(u||u===0){u=u.toString()}if(u===m[c]){return t.expand(false,l)}}t=this;Ext.callback(k,n||g,[false,t,h.getNode(t)])};d.expand(false,l)},ensureVisible:function(m,n){if(m.isEntity||typeof m==="number"){return Ext.panel.Table.prototype.ensureVisible.call(this,m,n)}var g=this,h=(n&&n.field)||g.store.model.idProperty,e=(n&&n.separator)||"/",j,l,k,a,i,b,d,c=function(r,p,o,q){if(!q&&r&&p){q=p.findChild(h,i)}if(q){g.doEnsureVisible(q,n)}else{Ext.callback(j,l||g,[false,p])}};if(n){j=n.callback;l=n.scope}k=m.split(e);a=!k[0];i=k.pop();if(k.length&&!(a&&k.length===1)){g.expandPath(k.join(e),h,e,c)}else{b=g.store.findNode(h,i);if(b){d=b.parentNode;if(d&&!d.isExpanded()){d.expand()}c(true,null,null,b)}else{Ext.callback(j,l||g,[false,null])}}},selectPath:function(d,c,b,e,a){this.ensureVisible(d,{field:c,separator:b,select:true,callback:e,scope:a})}},1,["treepanel"],["component","box","container","panel","tablepanel","treepanel"],{component:true,box:true,container:true,panel:true,tablepanel:true,treepanel:true},["widget.treepanel"],0,[Ext.tree,"Panel",Ext.tree,"TreePanel",Ext,"TreePanel"],0));(Ext.cmd.derive("Ext.view.DragZone",Ext.dd.DragZone,{containerScroll:false,constructor:function(b){var e=this,a,d,c;Ext.apply(e,b);if(!e.ddGroup){e.ddGroup="view-dd-zone-"+e.view.id}a=e.view;d=a.ownerCt;if(d){c=d.getTargetEl().dom}else{c=a.el.dom.parentNode}Ext.dd.DragZone.prototype.constructor.call(this,c);e.ddel=document.createElement("div");e.ddel.className="x-grid-dd-wrap"},init:function(e,a,c){var d=this,b={itemmousedown:d.onItemMouseDown,scope:d};if(d.view.touchScroll){b.itemlongpress=d.onItemMouseDown;b.contextmenu={element:"el",fn:function(g){g.preventDefault()}}}d.initTarget(e,a,c);d.view.mon(d.view,b)},onValidDrop:function(b,a,c){Ext.dd.DragZone.prototype.onValidDrop.call(this,b,a,c);b.el.focus()},onItemMouseDown:function(b,a,g,c,i){var d,h=Ext.Component.fromElement(i.getTarget(),g);if(i.pointerType==="touch"&&i.type!=="longpress"||(h&&h.isFocusable&&h.isFocusable())){return}if(!this.isPreventDrag(i,a,g,c)){d=b.getNavigationModel();if(i.position){d.setPosition(i.position)}else{d.setPosition(c)}this.handleMouseDown(i)}},isPreventDrag:function(d,a,c,b){return !!d.isInputFieldEvent},getDragData:function(c){var a=this.view,b=c.getTarget(a.getItemSelector());if(b){return{copy:a.copy||(a.allowCopy&&c.ctrlKey),event:c,view:a,ddel:this.ddel,item:b,records:a.getSelectionModel().getSelection(),fromPosition:Ext.fly(b).getXY()}}},onInitDrag:function(b,h){var e=this,g=e.dragData,d=g.view,a=d.getSelectionModel(),c=d.getRecord(g.item);if(!a.isSelected(c)){a.selectWithEvent(c,e.DDMInstance.mousedownEvent)}g.records=a.getSelection();Ext.fly(e.ddel).setHtml(e.getDragText());e.proxy.update(e.ddel);e.onStartDrag(b,h);return true},getDragText:function(){var a=this.dragData.records.length;return Ext.String.format(this.dragText,a,a===1?"":"s")},getRepairXY:function(b,a){return a?a.fromPosition:false}},1,0,0,0,0,0,[Ext.view,"DragZone"],0));(Ext.cmd.derive("Ext.tree.ViewDragZone",Ext.view.DragZone,{isPreventDrag:function(b,a){return(a.get("allowDrag")===false)||!!b.getTarget(this.view.expanderSelector)},getDragText:function(){var a=this.dragData.records,c=a.length,e=a[0].get(this.displayField),d="s",b=/\{\d+\}/,g=this.dragText;if(b.test(g)&&c===1&&e){return e}else{if(!e){d=""}}return Ext.String.format(g,c,d)},afterRepair:function(){var h=this,a=h.view,i=a.selectedItemCls,b=h.dragData.records,g,e=b.length,c=Ext.fly,d;if(Ext.enableFx&&h.repairHighlight){for(g=0;g<e;g++){d=a.getNode(b[g]);c(d.firstChild).highlight(h.repairHighlightColor,{listeners:{beforeanimate:function(){if(a.isSelected(d)){c(d).removeCls(i)}},afteranimate:function(){if(a.isSelected(d)){c(d).addCls(i)}}}})}}h.dragging=false}},0,0,0,0,0,0,[Ext.tree,"ViewDragZone"],0));(Ext.cmd.derive("Ext.tree.ViewDropZone",Ext.view.DropZone,{allowParentInserts:false,allowContainerDrops:false,appendOnly:false,expandDelay:500,indicatorCls:"x-tree-ddindicator",expandNode:function(b){var a=this.view;this.expandProcId=false;if(!b.isLeaf()&&!b.isExpanded()){a.expand(b);this.expandProcId=false}},queueExpand:function(a){this.expandProcId=Ext.Function.defer(this.expandNode,this.expandDelay,this,[a])},cancelExpand:function(){if(this.expandProcId){clearTimeout(this.expandProcId);this.expandProcId=false}},getPosition:function(g,b){var j=this.view,c=j.getRecord(b),h=g.getY(),k=c.isLeaf(),a=false,i=Ext.fly(b).getRegion(),d;if(c.isRoot()){return"append"}if(this.appendOnly){return k?false:"append"}if(!this.allowParentInserts){a=c.hasChildNodes()&&c.isExpanded()}d=(i.bottom-i.top)/(k?2:3);if(h>=i.top&&h<(i.top+d)){return"before"}else{if(!a&&(k||(h>=(i.bottom-d)&&h<=i.bottom))){return"after"}else{return"append"}}},isValidDropPoint:function(b,j,n,k,g){if(!b||!g.item){return false}var o=this.view,l=o.getRecord(b),d=g.records,a=d.length,m=d.length,c,h;if(!(l&&j&&a)){return false}for(c=0;c<m;c++){h=d[c];if(h.isNode&&h.contains(l)){return false}}if(j==="append"&&l.get("allowDrop")===false){return false}else{if(j!=="append"&&l.parentNode.get("allowDrop")===false){return false}}if(Ext.Array.contains(d,l)){return false}return o.fireEvent("nodedragover",l,j,g,k)!==false},onNodeOver:function(a,i,g,c){var d=this.getPosition(g,a),b=this.dropNotAllowed,j=this.view,h=j.getRecord(a),k=this.getIndicator(),l=0;this.cancelExpand();if(d==="append"&&!this.expandProcId&&!Ext.Array.contains(c.records,h)&&!h.isLeaf()&&!h.isExpanded()){this.queueExpand(h)}if(this.isValidDropPoint(a,d,i,g,c)){this.valid=true;this.currentPosition=d;this.overRecord=h;k.setWidth(Ext.fly(a).getWidth());l=Ext.fly(a).getY()-Ext.fly(j.el).getY()-1;if(j.touchScroll===2){l+=j.getScrollY()}if(d==="before"){b=h.isFirst()?"x-tree-drop-ok-above":"x-tree-drop-ok-between";k.showAt(0,l);i.proxy.show()}else{if(d==="after"){b=h.isLast()?"x-tree-drop-ok-below":"x-tree-drop-ok-between";l+=Ext.fly(a).getHeight();k.showAt(0,l);i.proxy.show()}else{b="x-tree-drop-ok-append";k.hide()}}}else{this.valid=false}this.currentCls=b;return b},onNodeOut:function(d,a,c,b){this.valid=false;this.getIndicator().hide()},onContainerOver:function(a,c,b){return this.allowContainerDrops?this.dropAllowed:c.getTarget("."+this.indicatorCls)?this.currentCls:this.dropNotAllowed},onContainerDrop:function(a,c,b){if(this.allowContainerDrops){this.valid=true;this.currentPosition="append";this.overRecord=this.view.store.getRoot();this.onNodeDrop(this.overRecord,a,c,b)}},notifyOut:function(){Ext.view.DropZone.prototype.notifyOut.apply(this,arguments);this.cancelExpand()},handleNodeDrop:function(g,n,j){var p=this,a=p.view,k=n?n.parentNode:a.panel.getRootNode(),b=a.store.getModel(),c,e,m,h,d,l,o,q;if(g.copy){c=g.records;g.records=[];for(e=0,m=c.length;e<m;e++){h=c[e];if(h.isNode){g.records.push(h.copy())}else{g.records.push(new b(Ext.apply({},h.data)))}}}p.cancelExpand();if(j==="before"){d=k.insertBefore;l=[null,n];n=k}else{if(j==="after"){if(n.nextSibling){d=k.insertBefore;l=[null,n.nextSibling]}else{d=k.appendChild;l=[null]}n=k}else{if(!(n.isExpanded()||n.isLoading())){o=true}d=n.appendChild;l=[null]}}q=function(){var i,r;Ext.suspendLayouts();for(e=0,m=g.records.length;e<m;e++){h=g.records[e];if(!h.isNode){if(h.isModel){h=new b(h.data,h.getId())}else{h=new b(h)}g.records[e]=h}l[0]=h;d.apply(n,l);a.getNavigationModel().setPosition(h)}if(p.sortOnDrop){n.sort(n.getOwnerTree().store.getSorters().sortFn)}Ext.resumeLayouts(true);if(Ext.enableFx&&p.dropHighlight){i=p.dropHighlightColor;for(e=0;e<m;e++){r=a.getNode(g.records[e]);if(r){Ext.fly(r).highlight(i)}}}};if(o){n.expand(false,q)}else{if(n.isLoading()){n.on({expand:q,delay:1,single:true})}else{q()}}}},0,0,0,0,0,0,[Ext.tree,"ViewDropZone"],0));(Ext.cmd.derive("Ext.tree.plugin.TreeViewDragDrop",Ext.plugin.Abstract,{dragText:"{0} selected node{1}",allowParentInserts:false,allowContainerDrops:false,appendOnly:false,ddGroup:"TreeDD",containerScroll:false,expandDelay:1000,enableDrop:true,enableDrag:true,nodeHighlightColor:"c3daf9",nodeHighlightOnDrop:Ext.enableFx,displayField:"text",init:function(a){Ext.applyIf(a,{copy:this.copy,allowCopy:this.allowCopy});a.on("render",this.onViewRender,this,{single:true})},destroy:function(){Ext.destroy(this.dragZone,this.dropZone)},onViewRender:function(a){var b=this,c=a.ownerCt.ownerGrid||a.ownerCt,d;c.relayEvents(a,["beforedrop","drop"]);if(b.enableDrag){if(b.containerScroll){d=a.getEl()}b.dragZone=new Ext.tree.ViewDragZone(Ext.apply({view:a,ddGroup:b.dragGroup||b.ddGroup,dragText:b.dragText,displayField:b.displayField,repairHighlightColor:b.nodeHighlightColor,repairHighlight:b.nodeHighlightOnRepair,scrollEl:d},b.dragZone))}if(b.enableDrop){b.dropZone=new Ext.tree.ViewDropZone(Ext.apply({view:a,ddGroup:b.dropGroup||b.ddGroup,allowContainerDrops:b.allowContainerDrops,appendOnly:b.appendOnly,allowParentInserts:b.allowParentInserts,expandDelay:b.expandDelay,dropHighlightColor:b.nodeHighlightColor,dropHighlight:b.nodeHighlightOnDrop,sortOnDrop:b.sortOnDrop,containerScroll:b.containerScroll},b.dropZone))}}},0,0,0,0,["plugin.treeviewdragdrop"],0,[Ext.tree.plugin,"TreeViewDragDrop"],function(){var a=this.prototype;a.nodeHighlightOnDrop=a.nodeHighlightOnRepair=Ext.enableFx}));(Ext.cmd.derive("Ext.util.CSS",Ext.Base,function(){var c,e=null,d=document,b=/(-[a-z])/gi,a=function(g,h){return h.charAt(1).toUpperCase()};return{singleton:true,rules:e,initialized:false,constructor:function(){c=this},createStyleSheet:function(i,k){var h,g=d.getElementsByTagName("head")[0],j=d.createElement("style");j.setAttribute("type","text/css");if(k){j.setAttribute("id",k)}h=j.styleSheet;if(h){g.appendChild(j);h.cssText=i}else{j.appendChild(d.createTextNode(i));g.appendChild(j);h=j.sheet}c.cacheStyleSheet(h);return h},removeStyleSheet:function(h){var g=d.getElementById(h);if(g){g.parentNode.removeChild(g)}},swapStyleSheet:function(i,g){var h;c.removeStyleSheet(i);h=d.createElement("link");h.setAttribute("rel","stylesheet");h.setAttribute("type","text/css");h.setAttribute("id",i);h.setAttribute("href",g);d.getElementsByTagName("head")[0].appendChild(h)},cacheStyleSheet:function(m){if(!e){e=c.rules={}}try{var p=m.cssRules||m.rules,l=p.length-1,h=m.imports,g=h?h.length:0,o,k;for(k=0;k<g;++k){c.cacheStyleSheet(h[k])}for(;l>=0;--l){o=p[l];if(o.styleSheet){c.cacheStyleSheet(o.styleSheet)}c.cacheRule(o,m)}}catch(n){}},cacheRule:function(h,l){if(h.styleSheet){return c.cacheStyleSheet(h.styleSheet)}var k=h.selectorText,i,g;if(k){k=k.split(",");i=k.length;for(g=0;g<i;g++){e[Ext.String.trim(k[g]).toLowerCase()]={parentStyleSheet:l,cssRule:h}}}},getRules:function(i){var h={},g;if(e===null||i){c.refreshCache()}for(g in e){h[g]=e[g].cssRule}return h},refreshCache:function(){var j=d.styleSheets,h=0,g=j.length;e=c.rules={};for(;h<g;h++){try{if(!j[h].disabled){c.cacheStyleSheet(j[h])}}catch(k){}}},getRule:function(h,k,j){var l,g;if(!e||k){c.refreshCache()}if(!Ext.isArray(h)){g=e[h.toLowerCase()];if(g&&!j){g=g.cssRule}return g||null}for(l=0;l<h.length;l++){if(e[h[l]]){return j?e[h[l].toLowerCase()]:e[h[l].toLowerCase()].cssRule}}return null},createRule:function(l,h,j){var g,k=l.cssRules||l.rules,i=k.length;if(l.insertRule){l.insertRule(h+" {"+j+"}",i)}else{l.addRule(h,j||" ")}c.cacheRule(g=k[i],l);return g},updateRule:function(g,l,k){var m,h,j;if(!Ext.isArray(g)){m=c.getRule(g);if(m){if(arguments.length===2){j=Ext.Element.parseStyles(l);for(l in j){m.style[l.replace(b,a)]=j[l]}}else{m.style[l.replace(b,a)]=k}return true}}else{for(h=0;h<g.length;h++){if(c.updateRule(g[h],l,k)){return true}}}return false},deleteRule:function(g){var i=c.getRule(g,false,true),j,h;if(i){j=i.parentStyleSheet;h=Ext.Array.indexOf(j.cssRules||j.rules,i.cssRule);if(j.deleteRule){j.deleteRule(h)}else{j.removeRule(h)}delete e[g]}}}},1,0,0,0,0,0,[Ext.util,"CSS"],0));(Ext.cmd.derive("Ext.util.Cookies",Ext.Base,{singleton:true,set:function(c,e){var a=arguments,i=arguments.length,b=(i>2)?a[2]:null,h=(i>3)?a[3]:"/",d=(i>4)?a[4]:null,g=(i>5)?a[5]:false;document.cookie=c+"="+escape(e)+((b===null)?"":("; expires="+b.toUTCString()))+((h===null)?"":("; path="+h))+((d===null)?"":("; domain="+d))+((g===true)?"; secure":"")},get:function(c){var g=document.cookie.split("; "),a=g.length,e,d,b;for(d=0;d<a;++d){e=g[d].split("=");if(e[0]===c){b=e[1];return b?unescape(b):""}}return null},clear:function(a,b){if(this.get(a)){b=b||"/";document.cookie=a+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path="+b}}},0,0,0,0,0,0,[Ext.util,"Cookies"],0));(Ext.cmd.derive("Ext.view.MultiSelectorSearch",Ext.panel.Panel,{layout:"fit",floating:true,resizable:true,minWidth:200,minHeight:200,border:true,defaultListenerScope:true,referenceHolder:true,searchText:"Search...",initComponent:function(){var h=this,a=h.owner,d=h.makeItems(),e,g,c,b;h.dockedItems=h.makeDockedItems();h.items=d;b=Ext.data.StoreManager.lookup(h.store);for(e=d.length;e--;){if((g=d[e]).xtype==="grid"){g.store=b;g.isSearchGrid=true;g.selModel=g.selModel||{type:"checkboxmodel",pruneRemoved:false,listeners:{selectionchange:"onSelectionChange"}};Ext.merge(g,h.grid);if(!g.columns){g.hideHeaders=true;g.columns=[{flex:1,dataIndex:h.field}]}break}}Ext.panel.Panel.prototype.initComponent.call(this);c=h.getOwnerStore().getRange();if(!a.convertSelectionRecord.$nullFn){for(e=c.length;e--;){c[e]=a.convertSelectionRecord(c[e])}}if(b.isLoading()||(b.loadCount===0&&!b.getCount())){b.on("load",function(){if(!h.isDestroyed){h.selectRecords(c)}},null,{single:true})}else{h.selectRecords(c)}},getOwnerStore:function(){return this.owner.getStore()},afterShow:function(){var a=this.lookupReference("searchField");Ext.panel.Panel.prototype.afterShow.apply(this,arguments);if(a){a.focus()}},getSearchStore:function(){var a=this.lookupReference("searchGrid");return a.getStore()},makeDockedItems:function(){return[{xtype:"textfield",reference:"searchField",dock:"top",hideFieldLabel:true,emptyText:this.searchText,triggers:{clear:{cls:"x-form-clear-trigger",handler:"onClearSearch",hidden:true}},listeners:{change:"onSearchChange",buffer:300}}]},makeItems:function(){return[{xtype:"grid",reference:"searchGrid",trailingBufferZone:2,leadingBufferZone:2,viewConfig:{deferEmptyText:false,emptyText:"No results."}}]},getMatchingRecords:function(e){var d=this.lookupReference("searchGrid"),c=d.getStore(),h=[],g,b,a;e=Ext.isArray(e)?e:[e];for(g=0,a=e.length;g<a;g++){b=c.getById(e[g].getId());if(b){h.push(b)}}return h},selectRecords:function(b){var a=this.lookupReference("searchGrid");b=this.getMatchingRecords(b);return a.getSelectionModel().select(b)},deselectRecords:function(b){var a=this.lookupReference("searchGrid");b=this.getMatchingRecords(b);return a.getSelectionModel().deselect(b)},search:function(d){var c=this,a=c.searchFilter,b=c.getSearchStore().getFilters();if(d){b.beginUpdate();if(a){a.setValue(d)}else{c.searchFilter=a=new Ext.util.Filter({id:"search",property:c.field,value:d})}b.add(a);b.endUpdate()}else{if(a){b.remove(a)}}},privates:{onClearSearch:function(){var a=this.lookupReference("searchField");a.setValue(null);a.focus()},onSearchChange:function(c){var b=c.getValue(),a=c.getTrigger("clear");a.setHidden(!b);this.search(b)},onSelectionChange:function(j,k){var c=this.owner,l=c.getStore(),e=l.data,g=0,a={},m,d,b,h;for(d=k.length;d--;){h=k[d];b=h.id;a[b]=h;if(!e.containsKey(b)){(m||(m=[])).push(c.convertSearchRecord(h))}}for(d=e.length;d--;){h=e.getAt(d);if(!a[h.id]){(g||(g=[])).push(h)}}if(m||g){e.splice(e.length,g,m)}}}},0,["multiselector-search"],["component","box","container","panel","multiselector-search"],{component:true,box:true,container:true,panel:true,"multiselector-search":true},["widget.multiselector-search"],0,[Ext.view,"MultiSelectorSearch"],0));(Ext.cmd.derive("Ext.view.MultiSelector",Ext.grid.Panel,{config:{search:{xtype:"multiselector-search",width:200,height:200,store:{autoLoad:true}}},fieldName:"name",fieldTitle:null,removeRowText:"✖",removeRowTip:"Remove this item",emptyText:"Nothing selected",addToolText:"Search for items to add",initComponent:function(){var g=this,a=g.emptyText,c=g.getStore(),e=g.getSearch(),h=g.fieldTitle,b,d;b=e.store;if(b.isStore){d=b.getModel()}else{d=b.model}if(!c){g.store={model:d}}if(a&&!g.viewConfig){g.viewConfig={deferEmptyText:false,emptyText:a}}if(!g.columns){g.hideHeaders=!h;g.columns=[{text:h,dataIndex:g.fieldName,flex:1},g.makeRemoveRowColumn()]}Ext.grid.Panel.prototype.initComponent.call(this)},addTools:function(){this.addTool({type:"plus",tooltip:this.addToolText,callback:"onShowSearch",scope:this})},convertSearchRecord:Ext.identityFn,convertSelectionRecord:Ext.identityFn,makeRemoveRowColumn:function(){var a=this;return{width:22,menuDisabled:true,tdCls:"x-multiselector-remove",processEvent:a.processRowEvent.bind(a),renderer:a.renderRemoveRow,updater:Ext.emptyFn,scope:a}},processRowEvent:function(h,c,a,d,g,i,b,j){if(i.type!=="click"){return}if(Ext.fly(a).hasCls("x-multiselector-remove")){this.store.remove(b);if(this.searchPopup){this.searchPopup.deselectRecords(b)}}},renderRemoveRow:function(){return'<span data-qtip="'+this.removeRowTip+'" role="button">'+this.removeRowText+"</span>"},beforeDestroy:function(){Ext.un({mousedown:"onDismissSearch",scope:this});Ext.grid.Panel.prototype.beforeDestroy.call(this)},afterComponentLayout:function(c,a,e,g){var d=this,b=d.searchPopup;Ext.grid.Panel.prototype.afterComponentLayout.call(this,c,a,e,g);if(b&&b.isVisible()){b.showBy(d,d.popupAlign)}},privates:{popupAlign:"tl-tr?",onDismissSearch:function(b){var a=this.searchPopup;if(a&&!(a.owns(b.getTarget())||this.owns(b.getTarget()))){Ext.un({mousedown:"onDismissSearch",scope:this});a.hide()}},onShowSearch:function(b,d){var e=this,a=e.searchPopup,c=e.getStore();if(!a){a=Ext.merge({owner:e,field:e.fieldName,floating:true},e.getSearch());e.searchPopup=a=e.add(a);if(c.getCount()){a.selectRecords(c.getRange())}}a.showBy(e,e.popupAlign);Ext.on({mousedown:"onDismissSearch",scope:e})}}},0,["multiselector"],["component","box","container","panel","tablepanel","gridpanel","grid","multiselector"],{component:true,box:true,container:true,panel:true,tablepanel:true,gridpanel:true,grid:true,multiselector:true},["widget.multiselector"],0,[Ext.view,"MultiSelector"],0));(Ext.cmd.derive("Ext.window.Toast",Ext.window.Window,{isToast:true,cls:"x-toast",bodyPadding:10,autoClose:true,plain:false,draggable:false,resizable:false,closable:false,focusable:false,shadow:false,focus:Ext.emptyFn,anchor:null,useXAxis:false,align:"br",spacing:6,paddingX:30,paddingY:10,slideInAnimation:"easeIn",slideBackAnimation:"bounceOut",slideInDuration:500,slideBackDuration:500,hideDuration:500,autoCloseDelay:3000,stickOnClick:false,stickWhileHover:true,closeOnMouseDown:false,isHiding:false,isFading:false,destroyAfterHide:false,closeOnMouseOut:false,xPos:0,yPos:0,constructor:function(a){a=a||{};if(a.animate===undefined){a.animate=Ext.isBoolean(this.animate)?this.animate:Ext.enableFx}this.enableAnimations=a.animate;delete a.animate;Ext.window.Window.prototype.constructor.call(this,a)},initComponent:function(){var a=this;if(a.autoClose&&a.closable==null){a.closable=false}a.updateAlignment(a.align);a.setAnchor(a.anchor);Ext.window.Window.prototype.initComponent.call(this)},onRender:function(){var a=this;Ext.window.Window.prototype.onRender.apply(this,arguments);a.el.hover(a.onMouseEnter,a.onMouseLeave,a);if(a.closeOnMouseDown){Ext.getDoc().on("mousedown",a.onDocumentMousedown,a)}},alignmentProps:{br:{paddingFactorX:-1,paddingFactorY:-1,siblingAlignment:"br-br",anchorAlign:"tr-br"},bl:{paddingFactorX:1,paddingFactorY:-1,siblingAlignment:"bl-bl",anchorAlign:"tl-bl"},tr:{paddingFactorX:-1,paddingFactorY:1,siblingAlignment:"tr-tr",anchorAlign:"br-tr"},tl:{paddingFactorX:1,paddingFactorY:1,siblingAlignment:"tl-tl",anchorAlign:"bl-tl"},b:{paddingFactorX:0,paddingFactorY:-1,siblingAlignment:"b-b",useXAxis:0,anchorAlign:"t-b"},t:{paddingFactorX:0,paddingFactorY:1,siblingAlignment:"t-t",useXAxis:0,anchorAlign:"b-t"},l:{paddingFactorX:1,paddingFactorY:0,siblingAlignment:"l-l",useXAxis:1,anchorAlign:"r-l"},r:{paddingFactorX:-1,paddingFactorY:0,siblingAlignment:"r-r",useXAxis:1,anchorAlign:"l-r"},x:{br:{anchorAlign:"bl-br"},bl:{anchorAlign:"br-bl"},tr:{anchorAlign:"tl-tr"},tl:{anchorAlign:"tr-tl"}}},updateAlignment:function(e){var c=this,a=c.alignmentProps,b=a[e],d=a.x[e];if(d&&c.useXAxis){Ext.applyIf(c,d)}Ext.applyIf(c,b)},getXposAlignedToAnchor:function(){var c=this,g=c.align,a=c.anchor,d=a&&a.el,b=c.el,e=0;if(d&&d.dom){if(!c.useXAxis){e=b.getLeft()}else{if(g==="br"||g==="tr"||g==="r"){e+=d.getAnchorXY("r")[0];e-=(b.getWidth()+c.paddingX)}else{e+=d.getAnchorXY("l")[0];e+=c.paddingX}}}return e},getYposAlignedToAnchor:function(){var d=this,g=d.align,a=d.anchor,e=a&&a.el,b=d.el,c=0;if(e&&e.dom){if(d.useXAxis){c=b.getTop()}else{if(g==="br"||g==="bl"||g==="b"){c+=e.getAnchorXY("b")[1];c-=(b.getHeight()+d.paddingY)}else{c+=e.getAnchorXY("t")[1];c+=d.paddingY}}}return c},getXposAlignedToSibling:function(b){var c=this,e=c.align,a=c.el,d;if(!c.useXAxis){d=a.getLeft()}else{if(e==="tl"||e==="bl"||e==="l"){d=(b.xPos+b.el.getWidth()+b.spacing)}else{d=(b.xPos-a.getWidth()-c.spacing)}}return d},getYposAlignedToSibling:function(b){var d=this,e=d.align,a=d.el,c;if(d.useXAxis){c=a.getTop()}else{if(e==="tr"||e==="tl"||e==="t"){c=(b.yPos+b.el.getHeight()+b.spacing)}else{c=(b.yPos-a.getHeight()-b.spacing)}}return c},getToasts:function(){var a=this.anchor,c=this.anchorAlign,b=a.activeToasts||(a.activeToasts={});return b[c]||(b[c]=[])},setAnchor:function(a){var c=this,b;c.anchor=a=((typeof a==="string")?Ext.getCmp(a):a);if(!a){b=Ext.window.Toast;c.anchor=b.bodyAnchor||(b.bodyAnchor={el:Ext.getBody()})}},beforeShow:function(){var a=this;if(a.stickOnClick){a.body.on("click",function(){a.cancelAutoClose()})}if(a.autoClose){if(!a.closeTask){a.closeTask=new Ext.util.DelayedTask(a.doAutoClose,a)}}a.el.setX(-10000);a.el.setOpacity(1)},afterShow:function(){var e=this,b=e.el,d,a,c,g;Ext.window.Window.prototype.afterShow.apply(this,arguments);d=e.getToasts();c=d.length;a=c&&d[c-1];if(a){b.alignTo(a.el,e.siblingAlignment,[0,0]);e.xPos=e.getXposAlignedToSibling(a);e.yPos=e.getYposAlignedToSibling(a)}else{b.alignTo(e.anchor.el,e.anchorAlign,[(e.paddingX*e.paddingFactorX),(e.paddingY*e.paddingFactorY)],false);e.xPos=e.getXposAlignedToAnchor();e.yPos=e.getYposAlignedToAnchor()}Ext.Array.include(d,e);if(e.enableAnimations){g=b.getXY();b.animate({from:{x:g[0],y:g[1]},to:{x:e.xPos,y:e.yPos,opacity:1},easing:e.slideInAnimation,duration:e.slideInDuration,dynamic:true,callback:e.afterPositioned,scope:e})}else{e.setLocalXY(e.xPos,e.yPos);e.afterPositioned()}},afterPositioned:function(){if(this.autoClose){this.closeTask.delay(this.autoCloseDelay)}},onDocumentMousedown:function(a){if(this.isVisible()&&!this.owns(a.getTarget())){this.hide()}},slideBack:function(){var e=this,b=e.anchor,g=b&&b.el,c=e.el,d=e.getToasts(),a=Ext.Array.indexOf(d,e);if(!e.isHiding&&c&&c.dom&&g&&g.isVisible()){if(a){e.xPos=e.getXposAlignedToSibling(d[a-1]);e.yPos=e.getYposAlignedToSibling(d[a-1])}else{e.xPos=e.getXposAlignedToAnchor();e.yPos=e.getYposAlignedToAnchor()}e.stopAnimation();if(e.enableAnimations){c.animate({to:{x:e.xPos,y:e.yPos},easing:e.slideBackAnimation,duration:e.slideBackDuration,dynamic:true})}}},update:function(){var a=this;if(a.isVisible()){a.isHiding=true;a.hide()}Ext.window.Window.prototype.update.apply(this,arguments);a.show()},cancelAutoClose:function(){var a=this.closeTask;if(a){a.cancel()}},doAutoClose:function(){var a=this;if(!(a.stickWhileHover&&a.mouseIsOver)){a.close()}else{a.closeOnMouseOut=true}},onMouseEnter:function(){this.mouseIsOver=true},onMouseLeave:function(){var a=this;a.mouseIsOver=false;if(a.closeOnMouseOut){a.closeOnMouseOut=false;a.close()}},removeFromAnchor:function(){var c=this,b,a;if(c.anchor){b=c.getToasts();a=Ext.Array.indexOf(b,c);if(a!==-1){Ext.Array.erase(b,a,1);for(;a<b.length;a++){b[a].slideBack()}}}},getFocusEl:Ext.emptyFn,hide:function(){var b=this,a=b.el;b.cancelAutoClose();if(b.isHiding){if(!b.isFading){Ext.window.Window.prototype.hide.apply(this,arguments);b.removeFromAnchor();b.isHiding=false}}else{b.isHiding=true;b.isFading=true;b.cancelAutoClose();if(a){if(b.enableAnimations){a.fadeOut({opacity:0,easing:"easeIn",duration:b.hideDuration,listeners:{afteranimate:function(){b.isFading=false;b.hide(b.animateTarget,b.doClose,b)}}})}else{b.isFading=false;b.hide(b.animateTarget,b.doClose,b)}}}return b}},1,["toast"],["component","box","container","panel","window","toast"],{component:true,box:true,container:true,panel:true,window:true,toast:true},["widget.toast"],0,[Ext.window,"Toast"],function(a){Ext.toast=function(e,g,h,d){var c=e,b;if(Ext.isString(e)){c={title:g,html:e,iconCls:d};if(h){c.align=h}}b=new a(c);b.show();return b}}));