/*
This file is part of Ext JS 6.5.3.57

Copyright (c) 2011-2018 Sencha Inc

license: http://www.sencha.com/legal/sencha-software-license-agreement
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 referenced above 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: 6.5.3.57 Build date: 2018-01-23 01:39:06 (79adf230ffe196c51f938f82140c44b1174dc392)

*/
var Ext=Ext||{};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.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.request){Ext.data.request={};}if(!Ext.data.schema){Ext.data.schema={};}if(!Ext.data.session){Ext.data.session={};}if(!Ext.data.summary){Ext.data.summary={};}if(!Ext.data.validator){Ext.data.validator={};}if(!Ext.data.virtual){Ext.data.virtual={};}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.drag){Ext.drag={};}if(!Ext.drag.proxy){Ext.drag.proxy={};}if(!Ext.draw){Ext.draw={};}if(!Ext.event){Ext.event={};}if(!Ext.event.gesture){Ext.event.gesture={};}if(!Ext.event.publisher){Ext.event.publisher={};}if(!Ext.field){Ext.field={};}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.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.override){Ext.override={};}if(!Ext.override.sparkline){Ext.override.sparkline={};}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.list){Ext.overrides.list={};}if(!Ext.overrides.mixin){Ext.overrides.mixin={};}if(!Ext.overrides.plugin){Ext.overrides.plugin={};}if(!Ext.overrides.util){Ext.overrides.util={};}if(!Ext.panel){Ext.panel={};}if(!Ext.parse){Ext.parse={};}if(!Ext.parse.symbol){Ext.parse.symbol={};}if(!Ext.perf){Ext.perf={};}if(!Ext.picker){Ext.picker={};}if(!Ext.plugin){Ext.plugin={};}if(!Ext.promise){Ext.promise={};}if(!Ext.resizer){Ext.resizer={};}if(!Ext.route){Ext.route={};}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(q){var e,p=['constructor','toString','valueOf','toLocaleString'],n={},m={},k=0,l,j,a,b,o,f,c,d,g,h,i,t=function(){var s,t;j=Ext.Base;a=Ext.ClassManager;b=Ext.Class;for(s=p.length;s-->0;){t=(1<<s);m[n[t]=p[s]]=t}for(s in m){k|=m[s]}k=~k;Function.prototype.$isFunction=1;i=!!a.addAlias;o=b.getPreprocessor('config').fn;f=b.getPreprocessor('cachedConfig');f=f&&f.fn;h=b.getPreprocessor('privates');h=h&&h.fn;d=b.getPreprocessor('platformConfig');d=d&&d.fn;c=a.postprocessors.platformConfig;c=c&&c.fn;g=a.postprocessors.deprecated;g=g&&g.fn;e=j.$staticMembers;if(!e){e=[];for(l in j){if(j.hasOwnProperty(l)){e.push(l)}}}q.derive=r;return r.apply(this,arguments)},s=function(f,d,o){var l=o.enumerableMembers,j=f.prototype,b,h,k,e,m;if(!d){return}if(i){f.addMembers(d)}else {for(b in d){e=d[b];if(e&&e.$isFunction&&!e.$isClass&&e!==Ext.emptyFn&&e!==Ext.identityFn){m=j.hasOwnProperty(b)&&j[b];if(m){e.$previous=m}j[b]=h=e;h.$owner=f;h.$name=b}else {j[b]=e}}for(k=1;l;k<<=1){if(l&k){l&=~k;b=n[k];j[b]=h=d[b];h.$owner=f;h.$name=b}}}if(d.platformConfig&&c){c.call(a,f.$className,f,d)}if(d.deprecated&&g){g.call(a,f.$className,f,d)}},r=function(u,Q,c,L,E,M,O,B,D,G,N){var g=function ctor(){return this.constructor.apply(this,arguments)||null},m=g,v={enumerableMembers:L&k,onCreated:N,onBeforeCreated:s,aliases:B},p=c.alternateClassName||[],P=Ext.global,F,z,l,K,y,C,H,r,x,w,n,I,t,J=a.alternateToName||a.maps.alternateToName,A=a.nameToAlternates||a.maps.nameToAlternates;for(l=e.length;l-->0;){H=e[l];g[H]=j[H]}if(c.$isFunction){c=c(g)}v.data=c;x=c.statics;delete c.statics;c.$className=u;if('$className' in c){g.$className=c.$className}g.extend(Q);r=g.prototype;if(E){g.xtype=c.xtype=E[0];r.xtypes=E}r.xtypesChain=M;r.xtypesMap=O;c.alias=B;m.triggerExtended(g,c,v);if(c.onClassExtended){g.onExtended(c.onClassExtended,g);delete c.onClassExtended}if(c.privates&&h){h.call(b,g,c)}if(x){if(i){g.addStatics(x)}else {for(w in x){if(x.hasOwnProperty(w)){t=x[w];if(t&&t.$isFunction&&!t.$isClass&&t!==Ext.emptyFn&&t!==Ext.identityFn){g[w]=I=t;I.$owner=g;I.$name=w}g[w]=t}}}}if(c.inheritableStatics){g.addInheritableStatics(c.inheritableStatics);delete c.inheritableStatics}if(r.onClassExtended){m.onExtended(r.onClassExtended,m);delete r.onClassExtended}if(c.platformConfig&&d){d.call(b,g,c);delete c.platformConfig}if(c.config){o.call(b,g,c)}if(c.cachedConfig&&f){f.call(b,g,c);delete c.cachedConfig}v.onBeforeCreated(g,v.data,v);for(l=0,y=D&&D.length;l<y;++l){g.mixin.apply(g,D[l])}for(l=0,y=B.length;l<y;l++){F=B[l];a.setAlias?a.setAlias(g,F):a.addAlias(g,F)}if(c.singleton){m=new g()}if(!(p instanceof Array)){p=[p]}n=a.getName(m);for(l=0,K=p.length;l<K;l++){z=p[l];a.classes[z]=m;if(i){a.addAlternate(g,z)}else {if(n){J[z]=n;p=A[n]||(A[n]=[]);p.push(z)}}}for(l=0,y=G.length;l<y;l+=2){C=G[l];if(!C){C=P}C[G[l+1]]=m}a.classes[u]=m;if(!i){if(n&&n!==u){J[u]=n;p=A[n]||(A[n]=[]);p.push(u)}}delete r.alternateClassName;if(v.onCreated){v.onCreated.call(m,m)}if(u){a.triggerCreated(u)}return m};q.derive=t}(Ext.cmd={}));var Ext=Ext||{};Ext.Boot=Ext.Boot||(function(f){var c=document,e=[],k={disableCaching:(/[?&](?:cache|disableCacheBuster)\b/i.test(location.search)||!(/http[s]?\:/i.test(location.href))||/(^|[ ;])ext-cache=1/.test(c.cookie))?!1:!0,disableCachingParam:'_dc',loadDelay:!1,preserveScripts:!0,charset:'UTF-8'},m={},n=/\.css(?:\?|$)/i,i=c.createElement('a'),j=typeof window!=='undefined',d={browser:j,node:!j&&(typeof require==='function'),phantom:(window&&(window._phantom||window.callPhantom))||/PhantomJS/.test(window.navigator.userAgent)},b=(Ext.platformTags={}),g=function(b,a,c){if(c){g(b,c)}if(b&&a&&typeof a==='object'){for(var d in a){b[d]=a[d]}}return b},l=function(){var d=!1,g=Array.prototype.shift.call(arguments),a,c,e,b;if(typeof arguments[arguments.length-1]==='boolean'){d=Array.prototype.pop.call(arguments)}e=arguments.length;for(a=0;a<e;a++){b=arguments[a];if(typeof b==='object'){for(c in b){g[d?c.toLowerCase():c]=b[c]}}}return g},h=(typeof Object.keys=='function')?function(a){if(!a){return []}return Object.keys(a)}:function(b){var c=[],a;for(a in b){if(b.hasOwnProperty(a)){c.push(a)}}return c},a={loading:0,loaded:0,apply:g,env:d,config:k,assetConfig:m,scripts:{},currentFile:null,suspendedQueue:[],currentRequest:null,syncMode:!1,useElements:!0,listeners:[],Request:Request,Entry:Entry,allowMultipleBrowsers:!1,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 c=this,e=navigator.userAgent,i=/Mobile(\/|\s)/.test(e),d=document.createElement('div'),k=function(e,c){if(c===undefined){c=window}var a='on'+e.toLowerCase(),b=(a in d);if(!b){if(d.setAttribute&&d.removeAttribute){d.setAttribute(a,'');b=typeof d[a]==='function';if(typeof d[a]!=='undefined'){d[a]=undefined}d.removeAttribute(a)}}return b},m=function(){var d={},j,g,l,i,b,n,h,a,k;n=c.browserPriority.length;for(b=0;b<n;b++){i=c.browserPriority[b];if(!k){l=c.browserPrefixes[i];h=e.match(new RegExp('('+l+')([\\w\\._]+)'));a=h&&h.length>1?parseInt(h[2]):0;if(a){k=!0}}else {a=0}d[i]=a}if(d.ie){var m=document.documentMode;if(m>=8){d.ie=m}}a=d.ie||!1;j=Math.max(a,c.maxIEVersion);for(b=8;b<=j;++b){g='ie'+b;d[g+'m']=a?a<=b:0;d[g]=a?a===b:0;d[g+'p']=a?a>=b:0}return d},j=function(){var j={},l,d,g,b,m,a,i,k,n;g=h(c.osPrefixes);m=g.length;for(b=0,n=0;b<m;b++){d=g[b];l=c.osPrefixes[d];a=e.match(new RegExp('('+l+')([^\\s;]+)'));i=a?a[1]:null;if(i&&(i==='HTC_'||i==='Silk/')){k=2.3}else {k=a&&a.length>1?parseFloat(a[a.length-1]):0}if(k){n++}j[d]=k}g=h(c.fallbackOSPrefixes);m=g.length;for(b=0;b<m;b++){d=g[b];if(n===0){l=c.fallbackOSPrefixes[d];a=e.toLowerCase().match(new RegExp(l));j[d]=a?!0:0}else {j[d]=0}}return j},n=function(){var g={},j,d,b,a,k,i;b=h(c.devicePrefixes);k=b.length;for(a=0;a<k;a++){d=b[a];j=c.devicePrefixes[d];i=e.match(new RegExp(j));g[d]=i?!0:0}return g},o=m(),q=j(),p=n(),g=a.loadPlatformsParam();l(b,o,q,p,g,!0);b.phone=!!((b.iphone||b.ipod)||(!b.silk&&(b.android&&(b.android<3||i)))||(b.blackberry&&i)||(b.windowsphone));b.tablet=!!(!b.phone&&(b.ipad||b.android||b.silk||b.rimtablet||(b.ie10&&/; Touch/.test(e))));b.touch=k('touchend')||navigator.maxTouchPoints||navigator.msMaxTouchPoints;b.desktop=!b.phone&&!b.tablet;b.cordova=b.phonegap=!!(window.PhoneGap||window.Cordova||window.cordova);b.webview=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e);b.androidstock=(b.android<=4.3)&&(b.safari||b.silk);l(b,g,!0)},loadPlatformsParam:function(){var k=window.location.search.substr(1),g=k.split("&"),e={},a,h={},b,i,d,j,c;for(a=0;a<g.length;a++){b=g[a].split("=");e[b[0]]=b[1]}if(e.platformTags){b=e.platformTags.split(",");for(i=b.length,a=0;a<i;a++){d=b[a].split(":");j=d[0];c=!0;if(d.length>1){c=d[1];if(c==='false'||c==='0'){c=!1}}h[j]=c}}return h},filterPlatform:function(g,d){g=e.concat(g||e);d=e.concat(d||e);var j=g.length,i=d.length,c=(!j&&i),a,h;for(a=0;a<j&&!c;a++){h=g[a];c=!!b[h]}for(a=0;a<i&&c;a++){h=d[a];c=!b[h]}return c},init:function(){var g=c.getElementsByTagName('script'),b=g[0],m=g.length,n=/\/ext(\-[a-z\-]+)?\.js$/,l,e,h,d,k,i,j;a.hasReadyState=("readyState" in b);a.hasAsync=("async" in b);a.hasDefer=("defer" in b);a.hasOnLoad=("onload" in b);a.isIE8=a.hasReadyState&&!a.hasAsync&&a.hasDefer&&!a.hasOnLoad;a.isIE9=a.hasReadyState&&!a.hasAsync&&a.hasDefer&&a.hasOnLoad;a.isIE10p=a.hasReadyState&&a.hasAsync&&a.hasDefer&&a.hasOnLoad;if(a.isIE8){a.isIE10=!1;a.isIE10m=!0}else {a.isIE10=(new Function('/*@cc_on return @_jscript_version @*/')())===10;a.isIE10m=a.isIE10||a.isIE9||a.isIE8}a.isIE11=a.isIE10p&&!a.isIE10;for(i=0;i<m;i++){e=(b=g[i]).src;if(!e){continue}h=b.readyState||null;if(!d&&n.test(e)){d=e}if(!a.scripts[k=a.canonicalUrl(e)]){l=new Entry({key:k,url:e,done:h===null||h==='loaded'||h==='complete',el:b,prop:'src'})}}if(!d){b=g[g.length-1];d=b.src}a.baseUrl=d.substring(0,d.lastIndexOf('/')+1);j=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?':'+window.location.port:'');a.origin=j;a.detectPlatformTags();Ext.filterPlatform=a.filterPlatform},canonicalUrl:function(g){i.href=g;var b=i.href,e=k.disableCachingParam,c=e?b.indexOf(e+'='):-1,d,a;if(c>0&&((d=b.charAt(c-1))==='?'||d==='&')){a=b.indexOf('&',c);a=(a<0)?'':b.substring(a);if(a&&d==='?'){++c;a=a.substring(1)}b=b.substring(0,c-1)+a}return b},getConfig:function(b){return b?a.config[b]:a.config},setConfig:function(b,d){if(typeof b==='string'){a.config[b]=d}else {for(var c in b){a.setConfig(c,b[c])}}return a},getHead:function(){return a.docHead||(a.docHead=c.head||c.getElementsByTagName('head')[0])},create:function(e,c,d){var b=d||{};b.url=e;b.key=c;return a.scripts[c]=new Entry(b)},getEntry:function(d,g,e){var c,b;c=e?d:a.canonicalUrl(d);b=a.scripts[c];if(!b){b=a.create(d,c,g);if(e){b.canonicalPath=!0}}return b},registerContent:function(e,c,b){var d={content:b,loaded:!0,css:c==='css'};return a.getEntry(e,d)},processRequest:function(a,b){a.loadEntries(b)},load:function(b){var b=new Request(b);if(b.sync||a.syncMode){return a.loadSync(b)}if(a.currentRequest){b.getEntries();a.suspendedQueue.push(b)}else {a.currentRequest=b;a.processRequest(b,!1)}return a},loadSync:function(b){var b=new Request(b);a.syncMode++;a.processRequest(b,!0);a.syncMode--;return a},loadBasePrefix:function(b){b=new Request(b);b.prependBaseUrl=!0;return a.load(b)},loadSyncBasePrefix:function(b){b=new Request(b);b.prependBaseUrl=!0;return a.loadSync(b)},requestComplete:function(c){var b;if(a.currentRequest===c){a.currentRequest=null;while(a.suspendedQueue.length>0){b=a.suspendedQueue.shift();if(!b.done){a.load(b);break}}}if(!a.currentRequest&&a.suspendedQueue.length==0){a.fireListeners()}},isLoading:function(){return !a.currentRequest&&a.suspendedQueue.length==0},fireListeners:function(){var b;while(a.isLoading()&&(b=a.listeners.shift())){b()}},onBootReady:function(b){if(!a.isLoading()){b()}else {a.listeners.push(b)}},getPathsFromIndexes:function(a,d){if(!('length' in a)){var c=[],b;for(b in a){if(!isNaN(+b)){c[+b]=a[b]}}a=c}return Request.prototype.getPathsFromIndexes(a,d)},createLoadOrderMap:function(a){return Request.prototype.createLoadOrderMap(a)},fetch:function(k,e,j,b){b=(b===undefined)?!!e:b;var a=new XMLHttpRequest(),c,i,h,g=!1,d=function(){if(a&&a.readyState==4){i=(a.status===1223)?204:(a.status===0&&((self.location||{}).protocol==='file:'||(self.location||{}).protocol==='ionp:'))?200:a.status;h=a.responseText;c={content:h,status:i,exception:g};if(e){e.call(j,c)}a.onreadystatechange=f;a=null}};if(b){a.onreadystatechange=d}try{a.open('GET',k,b);a.send(null)}catch(o){g=o;d();return c}if(!b){d()}return c},notifyAll:function(a){a.notifyRequests()}};function Request(b){if(b.$isRequest){return b}var b=b.url?b:{url:b},c=b.url,e=c.charAt?[c]:c,d=b.charset||a.config.charset;g(this,b);delete this.url;this.urls=e;this.charset=d}Request.prototype={$isRequest:!0,createLoadOrderMap:function(d){var e=d.length,c={},a,b;for(a=0;a<e;a++){b=d[a];c[b.path]=b}return c},getLoadIndexes:function(b,e,o,m,n){var g=[],k=[b],i=b.idx,k,j,d,c,h,l;if(e[i]){return g}e[i]=g[i]=!0;while(b=k.shift()){if(b.canonicalPath){j=a.getEntry(b.path,null,!0)}else {j=a.getEntry(this.prepareUrl(b.path))}if(!(n&&j.done)){if(m&&b.uses&&b.uses.length){d=b.requires.concat(b.uses)}else {d=b.requires}for(h=0,l=d.length;h<l;h++){c=d[h];if(!e[c]){e[c]=g[c]=!0;k.push(o[c])}}}}return g},getPathsFromIndexes:function(b,e){var c=[],a,d;for(a=0,d=b.length;a<d;a++){if(b[a]){c.push(e[a].path)}}return c},expandUrl:function(d,a,e,i,g,h){var c,b;if(a){c=e[d];if(c){b=this.getLoadIndexes(c,i,a,g,h);if(b.length){return this.getPathsFromIndexes(b,a)}}}return [d]},expandUrls:function(a,n){var e=this,j=e.loadOrder,c=[],k={},o=[],b,i,g,m,h,l,d;if(typeof a==="string"){a=[a]}if(j){b=e.loadOrderMap;if(!b){b=e.loadOrderMap=e.createLoadOrderMap(j)}}for(g=0,m=a.length;g<m;g++){i=this.expandUrl(a[g],j,b,o,n,!1);for(h=0,l=i.length;h<l;h++){d=i[h];if(!k[d]){k[d]=!0;c.push(d)}}}if(c.length===0){c=a}return c},expandLoadOrder:function(){var a=this,c=a.urls,b;if(!a.expanded){b=this.expandUrls(c,!0);a.expanded=!0}else {b=c}a.urls=b;if(c.length!=b.length){a.sequential=!0}return a},getUrls:function(){this.expandLoadOrder();return this.urls},prepareUrl:function(b){if(this.prependBaseUrl){return a.baseUrl+b}return b},getEntries:function(){var b=this,c=b.entries,e,h,d,g,i,j;if(!c){c=[];i=b.getUrls();if(b.loadOrder){e=b.loadOrderMap}for(d=0;d<i.length;d++){j=b.prepareUrl(i[d]);if(e){h=e[j]}g=a.getEntry(j,{buster:b.buster,charset:b.charset},h&&h.canonicalPath);g.requests.push(b);c.push(g)}b.entries=c}return c},loadEntries:function(g){var a=this,c=a.getEntries(),h=c.length,i=a.loadStart||0,d,c,e,b;if(g!==undefined){a.sync=g}a.loaded=a.loaded||0;a.loading=a.loading||h;for(b=i;b<h;b++){e=c[b];if(!e.loaded){d=c[b].load(a.sync)}else {d=!0}if(!d){a.loadStart=b;e.onDone(function(){a.loadEntries(g)});break}}a.processLoadedEntries()},processLoadedEntries:function(){var a=this,d=a.getEntries(),g=d.length,e=a.startIndex||0,c,b;if(!a.done){for(c=e;c<g;c++){b=d[c];if(!b.loaded){a.startIndex=c;return}if(!b.evaluated){b.evaluate()}if(b.error){a.error=!0}}a.notify()}},notify:function(){var b=this;if(!b.done){var e=b.error,d=b[e?'failure':'success'],c=('delay' in b)?b.delay:(e?1:a.config.chainDelay),g=b.scope||b;b.done=!0;if(d){if(c===0||c>0){setTimeout(function(){d.call(g,b)},c)}else {d.call(g,b)}}b.fireListeners();a.requestComplete(b)}},onDone:function(b){var a=this,c=a.listeners||(a.listeners=[]);if(a.done){b(a)}else {c.push(b)}},fireListeners:function(){var a=this.listeners,b;if(a){while((b=a.shift())){b(this)}}}};function Entry(c){if(c.$isEntry){return c}var j=c.charset||a.config.charset,i=Ext.manifest,e=i&&i.loader,d=(c.cache!==undefined)?c.cache:(e&&e.cache),b,h;if(a.config.disableCaching){if(d===undefined){d=!a.config.disableCaching}if(d===!1){b=+new Date()}else if(d!==!0){b=d}if(b){h=(e&&e.cacheParam)||a.config.disableCachingParam;b=h+"="+b}}g(this,c);this.charset=j;this.buster=b;this.requests=[]}Entry.prototype={$isEntry:!0,done:!1,evaluated:!1,loaded:!1,isCrossDomain:function(){var b=this;if(b.crossDomain===undefined){b.crossDomain=(b.getLoadUrl().indexOf(a.origin)!==0)}return b.crossDomain},isCss:function(){var b=this;if(b.css===undefined){if(b.url){var c=a.assetConfig[b.url];b.css=c?c.type==="css":n.test(b.url)}else {b.css=!1}}return this.css},getElement:function(e){var d=this,b=d.el;if(!b){if(d.isCss()){e=e||"link";b=c.createElement(e);if(e=="link"){b.rel='stylesheet';d.prop='href'}else {d.prop="textContent"}b.type="text/css"}else {e=e||"script";b=c.createElement(e);b.type='text/javascript';d.prop='src';if(d.charset){b.charset=d.charset}if(a.hasAsync){b.async=!1}}d.el=b}return b},getLoadUrl:function(){var b=this,c;c=b.canonicalPath?b.url:a.canonicalUrl(b.url);if(!b.loadUrl){b.loadUrl=!!b.buster?(c+(c.indexOf('?')===-1?'?':'&')+b.buster):c}return b.loadUrl},fetch:function(b){var e=this.getLoadUrl(),d=!!b.async,c=b.complete;a.fetch(e,c,this,d)},onContentLoaded:function(c){var a=this,b=c.status,e=c.content,g=c.exception,h=this.getLoadUrl();a.loaded=!0;if((g||b===0)&&!d.phantom){a.error=!0;a.evaluated=!0}else if((b>=200&&b<300)||b===304||d.phantom||(b===0&&e.length>0)){a.content=e}else {a.error=!0;a.evaluated=!0}},createLoadElement:function(b){var c=this,d=c.getElement();c.preserve=!0;d.onerror=function(){c.error=!0;if(b){b();b=null}};if(a.isIE10m){d.onreadystatechange=function(){if(this.readyState==='loaded'||this.readyState==='complete'){if(b){b();b=this.onreadystatechange=this.onerror=null}}}}else {d.onload=function(){b();b=this.onload=this.onerror=null}}d[c.prop]=c.getLoadUrl()},onLoadElementReady:function(){a.getHead().appendChild(this.getElement());this.evaluated=!0},inject:function(h,m){var g=this,d=a.getHead(),l=g.url,i=g.key,b,e,k,j;if(g.isCss()){g.preserve=!0;j=i.substring(0,i.lastIndexOf("/")+1);b=c.createElement('base');b.href=j;if(d.firstChild){d.insertBefore(b,d.firstChild)}else {d.appendChild(b)}b.href=b.href;if(l){h+="\n/*# sourceURL="+i+" */"}e=g.getElement("style");k=('styleSheet' in e);d.appendChild(b);if(k){d.appendChild(e);e.styleSheet.cssText=h}else {e.textContent=h;d.appendChild(e)}d.removeChild(b)}else {if(l){h+="\n//# sourceURL="+i}Ext.globalEval(h)}return g},loadCrossDomain:function(){var a=this,b=function(){a.el.onerror=a.el.onload=f;a.el=null;a.loaded=a.evaluated=a.done=!0;a.notifyRequests()};a.createLoadElement(function(){b()});a.evaluateLoadElement();return !1},loadElement:function(){var a=this,b=function(){a.el.onerror=a.el.onload=f;a.el=null;a.loaded=a.evaluated=a.done=!0;a.notifyRequests()};a.createLoadElement(function(){b()});a.evaluateLoadElement();return !0},loadSync:function(){var a=this;a.fetch({async:!1,complete:function(b){a.onContentLoaded(b)}});a.evaluate();a.notifyRequests()},load:function(c){var b=this;if(!b.loaded){if(b.loading){return !1}b.loading=!0;if(!c){if(a.isIE10||b.isCrossDomain()){return b.loadCrossDomain()}else if(!b.isCss()&&a.hasReadyState){b.createLoadElement(function(){b.loaded=!0;b.notifyRequests()})}else if(a.useElements&&!(b.isCss()&&d.phantom)){return b.loadElement()}else {b.fetch({async:!c,complete:function(a){b.onContentLoaded(a);b.notifyRequests()}})}}else {b.loadSync()}}return !0},evaluateContent:function(){this.inject(this.content);this.content=null},evaluateLoadElement:function(){a.getHead().appendChild(this.getElement())},evaluate:function(){var a=this;if(!a.evaluated){if(a.evaluating){return}a.evaluating=!0;if(a.content!==undefined){a.evaluateContent()}else if(!a.error){a.evaluateLoadElement()}a.evaluated=a.done=!0;a.cleanup()}},cleanup:function(){var c=this,a=c.el,b;if(!a){return}if(!c.preserve){c.el=null;a.parentNode.removeChild(a);for(b in a){try{if(b!==c.prop){a[b]=null}delete a[b]}catch(o){}}}a.onload=a.onerror=a.onreadystatechange=f},notifyRequests:function(){var b=this.requests,d=b.length,a,c;for(a=0;a<d;a++){c=b[a];c.processLoadedEntries()}if(this.done){this.fireListeners()}},onDone:function(b){var a=this,c=a.listeners||(a.listeners=[]);if(a.done){b(a)}else {c.push(b)}},fireListeners:function(){var a=this.listeners,b;if(a&&a.length>0){while((b=a.shift())){b(this)}}}};Ext.disableCacheBuster=function(b,d){var a=new Date();a.setTime(a.getTime()+(b?10*365:-1)*24*60*60*1000);a=a.toGMTString();c.cookie='ext-cache=1; expires='+a+'; path='+(d||'/')};a.init();return a}(function(){}));Ext.globalEval=Ext.globalEval||(this.execScript?function(a){execScript(a)}:function(a){eval.call(window,a)});if(!Function.prototype.bind){(function(){var a=Array.prototype.slice,b=function(d){var b=a.call(arguments,1),c=this;if(b.length){return function(){var e=arguments;return c.apply(d,e.length?b.concat(a.call(e)):b)}}b=null;return function(){return c.apply(d,arguments)}};Function.prototype.bind=b;b.$extjs=!0}())}Ext.setResourcePath=function(b,d){var a=Ext.manifest||(Ext.manifest={}),c=a.resources||(a.resources={});if(a){if(typeof b!=='string'){Ext.apply(c,b)}else {c[b]=d}a.resources=c}};Ext.getResourcePath=function(b,f,d){if(typeof b!=='string'){f=b.pool;d=b.packageName;b=b.path}var e=Ext.manifest,g=e&&e.resources,a=g[f],c=[];if(a==null){a=g.path;if(a==null){a='resources'}}if(a){c.push(a)}if(d){c.push(d)}c.push(b);return c.join('/')};var Ext=Ext||{};(function(){var d=this,l=Object.prototype,c=l.toString,b=['valueOf','toLocaleString','toString','constructor'],a=Ext.fireIdle=function(){},f=function(){},e=function(a){return a},k=function(){var a=k.caller.caller;return a.$owner.prototype[a.$name].apply(this,arguments)},o=Ext.manifest||{},p,m=/\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/,n=/^\\?\/Date\(([-+])?(\d+)(?:[+-]\d{4})?\)\\?\/$/,h,j,i,g;Ext.global=d;Ext.$nextIid=0;Ext.now=Date.now||(Date.now=function(){return +new Date()});Ext.ticks=(d.performance&&d.performance.now)?function(){return performance.now()}:Ext.now;Ext._startTime=Ext.ticks();a.$nullFn=e.$nullFn=a.$emptyFn=e.$identityFn=f.$nullFn=!0;f.$privacy='framework';a.$noClearOnDestroy=e.$noClearOnDestroy=!0;f.$noClearOnDestroy=!0;Ext['suspendLayouts']=Ext['resumeLayouts']=a;for(p in {toString:1}){b=null}Ext.enumerables=b;Ext.apply=function(c,a,g){if(c){if(g){Ext.apply(c,g)}if(a&&typeof a==='object'){var e,f,d;for(e in a){c[e]=a[e]}if(b){for(f=b.length;f--;){d=b[f];if(a.hasOwnProperty(d)){c[d]=a[d]}}}}}return c};function addInstanceOverrides(d,e,c){var a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];if(typeof b==='function'){b.$name=a;b.$owner=e;b.$previous=d.hasOwnProperty(a)?d[a]:k}d[a]=b}}}Ext.buildSettings=Ext.apply({baseCSSPrefix:'x-'},Ext.buildSettings||{});Ext.apply(Ext,{idSeed:0,idPrefix:'ext-',isRobot:!1,isSecure:/^https/i.test(window.location.protocol),enableGarbageCollector:!1,enableListenerCollection:!0,name:Ext.sandboxName||'Ext',privateFn:f,emptyFn:a,identityFn:e,frameStartTime:Ext.now(),manifest:o,enableAria:!0,startsWithHashRe:/^#/,validIdRe:/^[a-z_][a-z0-9\-_]*$/i,BLANK_IMAGE_URL:'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',makeIdSelector:function(a){return '#'+a},id:function(a,c){if(a&&a.id){return a.id}var b=(c||Ext.idPrefix)+(++Ext.idSeed);if(a){a.id=b}return b},returnId:function(a){return a.getId()},returnTrue:function(){return !0},emptyString:new String(),emptyArray:Object.freeze?Object.freeze([]):[],baseCSSPrefix:Ext.buildSettings.baseCSSPrefix,$eventNameMap:{},$vendorEventRe:/^(DOMMouse|Moz.+|MS.+|webkit.+)/,canonicalEventName:function(a){return Ext.$eventNameMap[a]||(Ext.$eventNameMap[a]=(Ext.$vendorEventRe.test(a)?a:a.toLowerCase()))},applyIf:function(b,a){if(b&&a&&typeof a==='object'){for(var c in a){if(b[c]===undefined){b[c]=a[c]}}}return b},destroy:function(){var c=arguments.length,b,a;for(b=0;b<c;b++){a=arguments[b];if(a){if(Ext.isArray(a)){this.destroy.apply(this,a)}else if(Ext.isFunction(a.destroy)&&!a.destroyed){a.destroy()}}}return null},destroyMembers:function(c){for(var a,d,b=1,e=arguments,f=e.length;b<f;b++){a=c[d=e[b]];if(a!=null){c[d]=Ext.destroy(a)}}},override:function(a,b){if(a.$isClass){a.override(b)}else if(typeof a==='function'){Ext.apply(a.prototype,b)}else {var c=a.self,d;if(c&&c.$isClass){d=b.privates;if(d){b=Ext.apply({},b);delete b.privates;addInstanceOverrides(a,c,d)}addInstanceOverrides(a,c,b)}else {Ext.apply(a,b)}}return a},valueFrom:function(a,b,c){return Ext.isEmpty(a,c)?b:a},isEmpty:function(a,b){return (a==null)||(!b?a==='':!1)||(Ext.isArray(a)&&a.length===0)},isArray:('isArray' in Array)?Array.isArray:function(a){return c.call(a)==='[object Array]'},isDate:function(a){return c.call(a)==='[object Date]'},isMSDate:function(a){if(!Ext.isString(a)){return !1}return n.test(a)},isObject:(c.call(null)==='[object Object]')?function(a){return a!=null&&c.call(a)==='[object Object]'&&a.ownerDocument===undefined}:function(a){return c.call(a)==='[object Object]'},isSimpleObject:function(a){return a instanceof Object&&a.constructor===Object},isPrimitive:function(b){var a=typeof b;return a==='string'||a==='number'||a==='boolean'},isFunction:(typeof document!=='undefined'&&typeof document.getElementsByTagName('body')==='function')?function(a){return !!a&&c.call(a)==='[object Function]'}:function(a){return !!a&&typeof a==='function'},isNumber:function(a){return typeof a==='number'&&isFinite(a)},isNumeric:function(a){return !isNaN(parseFloat(a))&&isFinite(a)},isString:function(a){return typeof a==='string'},isBoolean:function(a){return typeof a==='boolean'},isElement:function(a){return a?a.nodeType===1:!1},isTextNode:function(a){return a?a.nodeName==="#text":!1},isDefined:function(a){return typeof a!=='undefined'},isIterable:function(a){if(!a||typeof a.length!=='number'||typeof a==='string'||Ext.isFunction(a)){return !1}if(!a.propertyIsEnumerable){return !!a.item}if(a.hasOwnProperty('length')&&!a.propertyIsEnumerable('length')){return !0}return m.test(c.call(a))},isDebugEnabled:a,clone:function(a,g){if(a==null){return a}if(g!==!1&&a.nodeType&&a.cloneNode){return a.cloneNode(!0)}var h=c.call(a),e,j,f,d,i;if(h==='[object Date]'){return new Date(a.getTime())}if(h==='[object Array]'){e=a.length;d=[];while(e--){d[e]=Ext.clone(a[e],g)}}else if(h==='[object Object]'&&a.constructor===Object){d={};for(i in a){d[i]=Ext.clone(a[i],g)}if(b){for(j=b.length;j--;){f=b[j];if(a.hasOwnProperty(f)){d[f]=a[f]}}}}return d||a},getUniqueGlobalNamespace:function(){var a=this.uniqueGlobalNamespace,b;if(a===undefined){b=0;do{a='ExtBox'+(++b)}while(d[a]!==undefined);d[a]=Ext;this.uniqueGlobalNamespace=a}return a},functionFactoryCache:{},cacheableFunctionFactory:function(){var f=this,a=Array.prototype.slice.call(arguments),e=f.functionFactoryCache,d,b,c;if(Ext.isSandboxed){c=a.length;if(c>0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{log:function(b,a){if(b&&d.console){if(!a||!(a in d.console)){a='log'}b='['+a.toUpperCase()+'] '+b;d.console[a](b)}},verbose:function(a){this.log(a,'verbose')},info:function(a){this.log(a,'info')},warn:function(a){this.log(a,'warn')},error:function(a){throw new Error(a)},deprecate:function(a){this.log(a,'warn')}}||{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},ariaWarn:function(a,b){if(Ext.enableAria&&!Ext.slicer){if(!Ext.ariaWarn.first){Ext.ariaWarn.first=!0;Ext.log.warn("WAI-ARIA compatibility warnings can be suppressed by adding the following to application startup code:");Ext.log.warn("    Ext.ariaWarn = Ext.emptyFn;")}Ext.log.warn({msg:b,dump:a})}},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:(function(){var a={};return function(e,c){if(!e){return []}else if(!c){return [e]}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}})(),doElevate:function(){var c=j,b=h,a=g;j=h=g=null;i=b?c.apply(a,b):c.call(a);Ext.fireIdle()},elevate:function(d,b,a){var c;if(a&&!a.length){a=null}Ext._suppressIdle=!1;if(Ext.elevateFunction){j=d;g=b;h=a;Ext.elevateFunction(Ext.doElevate);c=i;i=null}else {c=a?d.apply(b,a):d.call(b);Ext.fireIdle()}return c},getExpando:function(b,c){var a=b.$expandos;return a&&a[c]||null},setExpando:function(b,d,c){var a=b.$expandos;if(c!==undefined){(a||(b.$expandos={}))[d]=c}else if(a){delete a[d]}}});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0}());Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?(b+'.'+a):b}return a||c||''}Ext.Error=function(b){if(Ext.isString(b)){b={msg:b}}var a=new Error();Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){a=a||{};if(Ext.isString(a)){a={msg:a}}var d=this,b=d.raise.caller,e,c;if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=(function(){var c=Array.prototype,b=c.slice,f=(function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){a.push("A")}a.splice(15,0,"F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F");b=a.length;a.splice(13,0,"XXX");if(b+1!==a.length){return !1}return !0}()),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;a<d;a++){c[a]=a}c.sort(function(a,c){return e(b[a],b[c])||(a-c)});for(a=0;a<d;a++){c[a]=b[c[a]]}for(a=0;a<d;a++){b[a]=c[a]}return b}try{if(typeof document!=='undefined'){b.call(document.getElementsByTagName('body'))}}catch(q){h=!1}var g=function(b,a){return (a<0)?Math.max(0,b.length+a):Math.min(b.length,a)},e=function(a,n,m,d){var e=d?d.length:0,i=a.length,f=g(a,n);if(f===i){if(e){a.push.apply(a,d)}}else {var k=Math.min(m,i-f),c=f+k,h=c+e-k,l=i-c,j=i-k,b;if(h<c){for(b=0;b<l;++b){a[h+b]=a[c+b]}}else if(h>c){for(b=l;b--;){a[h+b]=a[c+b]}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b<e;++b){a[f+b]=d[b]}}}return a},k=function(a,c,d,b){if(b&&b.length){if(c===0&&!d){a.unshift.apply(a,b)}else if(c<a.length){a.splice.apply(a,[c,d].concat(b))}else {a.push.apply(a,b)}}else {a.splice(c,d)}return a},o=function(b,c,a){return e(b,c,a)},m=function(a,c,b){a.splice(c,b);return a},n=function(a,h,c){var i=arguments.length,d=g(a,h),f;if(i<3){c=a.length-d}f=a.slice(h,g(a,d+c));if(i<4){e(a,d,c)}else {e(a,d,c,b.call(arguments,3))}return f},l=function(a){return a.splice.apply(a,b.call(arguments,1))},d=f?m:o,j=f?k:e,p=f?l:n,a={binarySearch:function(h,i,c,b,d){var g=h.length,e,f;if(c instanceof Function){d=c;c=0;b=g}else if(b instanceof Function){d=b;b=g}else {if(c===undefined){c=0}if(b===undefined){b=g}d=d||a.lexicalCompare}--b;while(c<=b){e=(c+b)>>1;f=d(i,h[e]);if(f>=0){c=e+1}else if(f<0){b=e-1}}return c},defaultCompare:function(a,b){return (a<b)?-1:((a>b)?1:0)},lexicalCompare:function(a,b){a=String(a);b=String(b);return (a<b)?-1:((a>b)?1:0)},each:function(c,e,d,g){c=a.from(c);var b,f=c.length;if(g!==!0){for(b=0;b<f;b++){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}else {for(b=f-1;b>-1;b--){if(e.call(d||c[b],c[b],b,c)===!1){return b}}}return !0},findInsertionIndex:function(e,d,c,b){var h=d.length,f,g;c=c||a.lexicalCompare;if(b<h){f=b>0?c(d[b-1],e):0;g=b<h-1?c(e,d[b]):0;if(f<1&&g<1){return b}}return a.binarySearch(d,e,c)},forEach:('forEach' in c)?function(a,c,b){a.forEach(c,b)}:function(b,d,c){for(var a=0,e=b.length;a<e;a++){d.call(c,b[a],a,b)}},indexOf:i?function(a,d,b){return a?c.indexOf.call(a,d,b):-1}:function(b,e,c){var a,d=b?b.length:0;for(a=(c<0)?Math.max(0,d+c):c||0;a<d;a++){if(b[a]===e){return a}}return -1},contains:i?function(a,b){return c.indexOf.call(a,b)!==-1}:function(b,d){var a,c;for(a=0,c=b.length;a<c;a++){if(b[a]===d){return !0}}return !1},toArray:function(a,d,c){if(!a||!a.length){return []}if(typeof a==='string'){a=a.split('')}if(h){return b.call(a,d||0,c||a.length)}var f=[],e;d=d||0;c=c?((c<0)?a.length+c:c):a.length;for(e=d;e<c;e++){f.push(a[e])}return f},pluck:function(b,f){var d=[],a,e,c;for(a=0,e=b.length;a<e;a++){c=b[a];d.push(c[f])}return d},map:('map' in c)?function(a,c,b){return a.map(c,b)}:function(b,f,e){var d=b.length,c=new Array(d),a;for(a=0;a<d;a++){c[a]=f.call(e,b[a],a,b)}return c},every:('every' in c)?function(a,c,b){return a.every(c,b)}:function(b,d,c){var a=0,e=b.length;for(;a<e;++a){if(!d.call(c,b[a],a,b)){return !1}}return !0},some:('some' in c)?function(a,c,b){return a.some(c,b)}:function(b,d,c){var a=0,e=b.length;for(;a<e;++a){if(d.call(c,b[a],a,b)){return !0}}return !1},equals:function(b,c){var d=b.length,e=c.length,a;if(b===c){return !0}if(d!==e){return !1}for(a=0;a<d;++a){if(b[a]!==c[a]){return !1}}return !0},clean:function(d){var c=[],b=0,e=d.length,a;for(;b<e;b++){a=d[b];if(!Ext.isEmpty(a)){c.push(a)}}return c},unique:function(e){var b=[],d=0,f=e.length,c;for(;d<f;d++){c=e[d];if(a.indexOf(b,c)===-1){b.push(c)}}return b},filter:('filter' in c)?function(a,c,b){return a.filter(c,b)}:function(b,e,d){var c=[],a=0,f=b.length;for(;a<f;a++){if(e.call(d,b[a],a,b)){c.push(b[a])}}return c},findBy:function(b,e,c){var a=0,d=b.length;for(;a<d;a++){if(e.call(c||b,b[a],a)){return b[a]}}return null},from:function(c,e){if(c===undefined||c===null){return []}if(Ext.isArray(c)){return (e)?b.call(c):c}var d=typeof c;if(c&&c.length!==undefined&&d!=='string'&&(d!=='function'||!c.apply)){return a.toArray(c)}return [c]},remove:function(b,e){var c=a.indexOf(b,e);if(c!==-1){d(b,c,1)}return b},removeAt:function(c,b,a){var e=c.length;if(b>=0&&b<e){a=a||1;a=Math.min(a,e-b);d(c,b,a)}return c},include:function(b,c){if(!a.contains(b,c)){b.push(c)}},clone:function(a){return b.call(a)},merge:function(){var e=b.call(arguments),d=[],c,f;for(c=0,f=e.length;c<f;c++){d=d.concat(e[c])}return a.unique(d)},intersect:function(){var m=[],f=b.call(arguments),g,o,r,e,k,j,q,n,p,l,c,h,i;if(!f.length){return m}g=f.length;for(c=k=0;c<g;c++){j=f[c];if(!e||j.length<e.length){e=j;k=c}}e=a.unique(e);d(f,k,1);q=e.length;g=f.length;for(c=0;c<q;c++){n=e[c];l=0;for(h=0;h<g;h++){o=f[h];r=o.length;for(i=0;i<r;i++){p=o[i];if(n===p){l++;break}}}if(l===g){m.push(n)}}return m},difference:function(i,f){var c=b.call(i),h=c.length,e,a,g;for(e=0,g=f.length;e<g;e++){for(a=0;a<h;a++){if(c[a]===f[e]){d(c,a,1);a--;h--}}}return c},reduce:Array.prototype.reduce?function(b,a,c){if(arguments.length===3){return Array.prototype.reduce.call(b,a,c)}return Array.prototype.reduce.call(b,a)}:function(a,f,e){a=Object(a);var b=0,d=a.length>>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;b<d;++b){if(b in a){c=f(c,a[b],b,a)}}return c},slice:([1,2].slice(1,undefined).length?function(a,c,d){return b.call(a,c,d)}:function(a,c,d){if(typeof c==='undefined'){return b.call(a)}if(typeof d==='undefined'){return b.call(a,c)}return b.call(a,c,d)}),sort:function(c,b){return stableSort(c,b||a.lexicalCompare)},flatten:function(b){var a=[];function rFlatten(f){var c,e,d;for(c=0,e=f.length;c<e;c++){d=f[c];if(Ext.isArray(d)){rFlatten(d)}else {a.push(d)}}return a}return rFlatten(b)},min:function(d,e){var b=d[0],c,f,a;for(c=0,f=d.length;c<f;c++){a=d[c];if(e){if(e(b,a)===1){b=a}}else {if(a<b){b=a}}}return b},max:function(d,e){var b=d[0],c,f,a;for(c=0,f=d.length;c<f;c++){a=d[c];if(e){if(e(b,a)===-1){b=a}}else {if(a>b){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;a<e;a++){c=b[a];d+=c}return d},toMap:function(b,d,e){if(!b){return null}var c={},a=b.length;if(typeof b==='string'){c[b]=1}else if(!d){while(a--){c[b[a]]=a+1}}else if(typeof d==='string'){while(a--){c[b[a][d]]=a+1}}else {while(a--){c[d.call(e,b[a])]=a+1}}return c},toValueMap:function(g,d,k,f){var b={},e=g.length,j,i,h,l,c,a;if(!d){while(e--){a=g[e];b[a]=a}}else {if(!(l=(typeof d!=='string'))){f=k}i=f===1;j=f===2;while(e--){a=g[e];c=l?d.call(k,a):a[d];if(i){if(c in b){b[c].push(a)}else {b[c]=[a]}}else if(j&&(c in b)){if((h=b[c]) instanceof Array){h.push(a)}else {b[c]=[h,a]}}else {b[c]=a}}}return b},erase:d,insert:function(a,b,c){return j(a,b,0,c)},move:function(c,b,d){if(d===b){return}var f=c[b],e=d>b?1:-1,a;for(a=b;a!=d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments,e=d.length,b,c;if(a===undefined){a=[]}else if(!Ext.isArray(a)){a=[a]}for(b=1;b<e;b++){c=d[b];Array.prototype.push[Ext.isIterable(c)?'apply':'call'](a,c)}return a},numericSortFn:function(a,b){return a-b}};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 n=/^[\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,o=/('|\\)/g,i=/([-.*+?\^${}()|\[\]\/\\])/g,l=/^\s+|\s+$/g,k=/\s+/,m=/(^[^a-z]*|[^\w])/gi,c,a,b,d,h=function(b,a){return c[a]},g=function(c,b){return (b in a)?a[b]:String.fromCharCode(parseInt(b.substr(2),10))},e=function(b,a){if(b===null||b===undefined||a===null||a===undefined){return !1}return a.length<=b.length},j=String.fromCharCode,f;return f={fromCodePoint:String.fromCodePoint||function(){var a,e='',b=[],c=-1,d=arguments.length;while(++c<d){a=Number(arguments[c]);if(!isFinite(a)||a<0||a>1114111||Math.floor(a)!==a){Ext.raise('Invalid code point: '+a)}if(a<=65535){b.push(a)}else {a-=65536;b.push((a>>10)+55296,(a%1024)+56320)}if(c+1===d){e+=j(b);b.length=0}}return e},insert:function(b,c,a){if(!b){return c}if(!c){return b}var d=b.length;if(!a&&a!==0){a=d}if(a<0){a*=-1;if(a>=d){a=0}else {a=d-a}}if(a===0){b=c+b}else if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(m,'')},htmlEncode:function(a){return (!a)?a:String(a).replace(b,h)},htmlDecode:function(a){return (!a)?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};)','g')},resetCharacterEntities:function(){c={};a={};this.addCharacterEntities({'&amp;':'&','&gt;':'>','&lt;':'<','&quot;':'"','&#39;':"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf('?')===-1?'?':'&')+b}return a},trim:function(a){if(a){a=a.replace(n,"")}return a||''},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||''},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||''},ellipsis:function(a,c,e){if(a&&a.length>c){if(e){var b=a.substr(0,c-2),d=Math.max(b.lastIndexOf(' '),b.lastIndexOf('.'),b.lastIndexOf('!'),b.lastIndexOf('?'));if(d!==-1&&d>=(c-15)){return b.substr(0,d)+"..."}}return a.substr(0,c-3)+"..."}return a},escapeRegex:function(a){return a.replace(i,"\\$1")},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,(c!==!1)?'i':'')}return a},escape:function(a){return a.replace(o,"\\$1")},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||" ";while(a.length<d){a=b+a}return a},repeat:function(c,a,d){if(a<1){a=0}for(var b=[],e=a;e--;){b.push(c)}return b.join(d||'')},splitWords:function(a){if(a&&typeof a=='string'){return a.replace(l,'').split(k)}return a||[]}}}());Ext.String.resetCharacterEntities();Ext.htmlEncode=Ext.String.htmlEncode;Ext.htmlDecode=Ext.String.htmlDecode;Ext.urlAppend=Ext.String.urlAppend;Ext.Date=(function(){var a,b=Date,d=/(\\.)/g,h=/([gGhHisucUOPZ]|MS)/,g=/([djzmnYycU]|MS)/,k=/\\/gi,e=/\{(\d+)\}/g,f=new RegExp('\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/'),c=Ext.String.leftPad,i={F:!0,m:!0,M:!0,n:!0},j={o:!0,Y:!0,y:!0},l=["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 a=this;return c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(e,function(d,c){return b[c]})}a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+"-"+c(a.getMonth()+1,2,'0')+"-"+c(a.getDate(),2,'0')+"T"+c(a.getHours(),2,'0')+":"+c(a.getMinutes(),2,'0')+":"+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||"{0}"):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{"MS":function(c,d){var a=(c||'').match(f);return a?new b(((a[1]||'')+a[2])*1):null},"time":function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},"timestamp":function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{"MS":function(){return '\\/Date('+this.getTime()+')\\/'},"time":function(){return this.getTime().toString()},"timestamp":function(){return a.format(this,'U')}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",DAYS_IN_WEEK:7,MONTHS_IN_YEAR:12,MAX_DAYS_IN_MONTH:31,SUNDAY:0,MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6,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',defaultTimeFormat:'h:i A',firstDayOfWeek:0,weekendDays:[0,6],getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return h.test(a.replace(d,''))},formatContainsDateInfo:function(a){return g.test(a.replace(d,''))},isMonthFormat:function(a){return !!i[a]},isYearFormat:function(a){return !!j[a]},unescapeFormat:function(a){return a.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 e="Y-m-dTH:i:sP",d=[],b,f=e.length,c;for(b=0;b<f;++b){c=e.charAt(b);d.push(c==="T"?"'T'":a.getFormatCode(c))}return d.join(" + ")},C:function(){return 'm.toISOString()'},U:"Math.round(m.getTime() / 1000)"},isValid:function(d,i,j,h,f,g,e){h=h||0;f=f||0;g=g||0;e=e||0;var c=a.add(new b(d<100?100:d,i-1,j,h,f,g,e),a.YEAR,d<100?d-100:0);return d===c.getFullYear()&&i===c.getMonth()+1&&j===c.getDate()&&h===c.getHours()&&f===c.getMinutes()&&g===c.getSeconds()&&e===c.getMilliseconds()},parse:function(e,b,c){var d=a.parseFunctions;if(d[b]==null){a.createParser(b)}return d[b].call(a,e,Ext.isDefined(c)?c:a.useStrict)},parseDate:function(d,b,c){return a.parse(d,b,c)},getFormatCode:function(c){var b=a.formatCodes[c];if(b){b=typeof b==='function'?b():b;a.formatCodes[c]=b}return b||("'"+Ext.String.escape(c)+"'")},createFormat:function(f){var d=[],c=!1,b='',e;for(e=0;e<f.length;++e){b=f.charAt(e);if(!c&&b==="\\"){c=!0}else if(c){c=!1;d.push("'"+Ext.String.escape(b)+"'")}else {if(b==='\n'){d.push("'\\n'")}else {d.push(a.getFormatCode(b))}}}a.formatFunctions[f]=Ext.functionFactory("var m=this;return "+d.join('+'))},createParser:function(f){var j=a.parseRegexes.length,i=1,d=[],g=[],c=!1,e="",h=0,m=f.length,k=[],b;for(;h<m;++h){e=f.charAt(h);if(!c&&e==="\\"){c=!0}else if(c){c=!1;g.push(Ext.String.escape(e))}else {b=a.formatCodeToRegex(e,i);i+=b.g;g.push(b.s);if(b.g&&b.c){if(b.calcAtEnd){k.push(b.c)}else {d.push(b.c)}}}}d=d.concat(k);a.parseRegexes[j]=new RegExp("^"+g.join('')+"$",'i');a.parseFunctions[f]=Ext.functionFactory("input","strict",xf(l,j,d.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 c=[],b=0;b<7;c.push(a.getShortDayName(b)),++b){}return {g:0,c:null,s:"(?:"+c.join("|")+")"}},l:function(){return {g:0,c:null,s:"(?:"+a.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:"("+a.monthNames.join("|")+")"}},M:function(){for(var c=[],b=0;b<12;c.push(a.getShortMonthName(b)),++b){}return Ext.applyIf({s:"("+c.join("|")+")"},a.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:!0},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:!0},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 d=[],b=[a.formatCodeToRegex("Y",1),a.formatCodeToRegex("m",2),a.formatCodeToRegex("d",3),a.formatCodeToRegex("H",4),a.formatCodeToRegex("i",5),a.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){",a.formatCodeToRegex("P",8).c,"}else{",a.formatCodeToRegex("O",8).c,"}","}"].join('\n')}],c,e;for(c=0,e=b.length;c<e;++c){d.push(b[c].c)}return {g:1,c:d.join(""),s:[b[0].s,"(?:","-",b[1].s,"(?:","-",b[2].s,"(?:","(?:T| )?",b[3].s,":",b[4].s,"(?::",b[5].s,")?","(?:(?:\\.|,)(\\d+))?","(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?",")?",")?",")?"].join("")}},U:{g:1,c:"u = parseInt(results[{0}], 10);\n",s:"(-?\\d+)"}},dateFormat:function(c,b){return a.format(c,b)},isEqual:function(a,b){if(a&&b){return (a.getTime()===b.getTime())}return !(a||b)},format:function(d,b){var c=a.formatFunctions;if(!Ext.isDate(d)){return ''}if(c[b]==null){a.createFormat(b)}return c[b].call(d)+''},getTimezone:function(a){return a.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,5})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getGMTOffset:function(c,b){var a=c.getTimezoneOffset();return (a>0?"-":"+")+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,"0")+(b?":":"")+Ext.String.leftPad(Math.abs(a%60),2,"0")},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d<f;b.setMonth(++d)){e+=a.getDaysInMonth(b)}return e+c.getDate()-1},getWeekOfYear:(function(){var a=86400000,c=7*a;return function(d){var f=b.UTC(d.getFullYear(),d.getMonth(),d.getDate()+3)/a,e=Math.floor(f/7),g=new b(e*c).getUTCFullYear();return e-Math.floor(b.UTC(g,0,7)/c)+1}}()),isLeapYear:function(b){var a=b.getFullYear();return !!((a&3)===0&&(a%100||(a%400===0&&a)))},getFirstDayOfMonth:function(b){var a=(b.getDay()-(b.getDate()-1))%7;return (a<0)?(a+7):a},getLastDayOfMonth:function(b){return a.getLastDateOfMonth(b).getDay()},getFirstDateOfMonth:function(a){return new b(a.getFullYear(),a.getMonth(),1)},getLastDateOfMonth:function(c){return new b(c.getFullYear(),c.getMonth(),a.getDaysInMonth(c))},getDaysInMonth:(function(){var b=[31,28,31,30,31,30,31,31,30,31,30,31];return function(c){var d=c.getMonth();return d===1&&a.isLeapYear(c)?29:b[d]}}()),getSuffix:function(a){switch(a.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(a){return new b(a.getTime())},isDST:function(a){return new b(a.getFullYear(),0,1).getTimezoneOffset()!==a.getTimezoneOffset()},clearTime:function(b,f){if(isNaN(b.getTime())){return b}if(f){return a.clearTime(a.clone(b))}var e=b.getDate(),c,d;b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0);if(b.getDate()!==e){for(c=1,d=a.add(b,a.HOUR,c);d.getDate()!==e;c++,d=a.add(b,a.HOUR,c)){}b.setDate(e);b.setHours(d.getHours())}return b},add:function(f,i,c,g){var b=a.clone(f),e=0,d,h;if(!i||c===0){return b}h=c-parseInt(c,10);c=parseInt(c,10);if(c){switch(i.toLowerCase()){case a.MILLI:if(g){b.setMilliseconds(b.getMilliseconds()+c)}else {b.setTime(b.getTime()+c)};break;case a.SECOND:if(g){b.setSeconds(b.getSeconds()+c)}else {b.setTime(b.getTime()+c*1000)};break;case a.MINUTE:if(g){b.setMinutes(b.getMinutes()+c)}else {b.setTime(b.getTime()+c*60*1000)};break;case a.HOUR:if(g){b.setHours(b.getHours()+c)}else {b.setTime(b.getTime()+c*60*60*1000)};break;case a.DAY:b.setDate(b.getDate()+c);break;case a.MONTH:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(h){switch(i.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=(a.isLeapYear(b)?366:365);e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*h)}}return b},subtract:function(e,c,d,b){return a.add(e,c,-d,b)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},isWeekend:function(a){return Ext.Array.indexOf(this.weekendDays,a.getDay())>-1},utcToLocal:function(a){return new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds())},localToUtc:function(b){return a.utc(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds())},utc:function(c,a,d,b,e,g,f){return new Date(Date.UTC(c,a,d,b||0,e||0,g||0,f||0))},compat:function(){var c,g=['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'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;d<j;d++){f=g[d];b[f]=a[f]}for(c=0;c<i;c++){e=h[c];b.prototype[e]=function(){var b=Array.prototype.slice.call(arguments);b.unshift(this);return a[e].apply(a,b)}}},diff:function(e,d,f){var b,c=+d-e;switch(f){case a.MILLI:return c;case a.SECOND:return Math.floor(c/1000);case a.MINUTE:return Math.floor(c/60000);case a.HOUR:return Math.floor(c/3600000);case a.DAY:return Math.floor(c/86400000);case 'w':return Math.floor(c/604800000);case a.MONTH:b=(d.getFullYear()*12+d.getMonth())-(e.getFullYear()*12+e.getMonth());if(a.add(e,f,b)>d){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}}};a.parseCodes.C=a.parseCodes.c;return a}());Ext.Function=(function(){var i=0,g,d=[],l=[],n=0,f={},b=Array.prototype.slice,e=window,c=Ext.global,h=!Ext.disableImmediate&&!!(c.setImmediate&&c.clearImmediate),k=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(d){var b=Ext.now(),a=Math.max(0,16-(b-i)),f=function(){d(b+a)},c;c=e.setTimeout(f,a);i=b+a;return c},m=function(){var h=d.length,e,b,a;g=null;for(b=0;b<h;b++){a=d[b];e=a[3];if(f[e]){delete f[e];a[0].apply(a[1]||c,a[2]||l)}}d=d.slice(h)},j=function(){Ext.elevate(m)},a={flexSetter:function(a){return function(b,e){var c,d;if(b!==null){if(typeof b!=='string'){for(c in b){if(b.hasOwnProperty(c)){a.call(this,c,b[c])}}if(Ext.enumerables){for(d=Ext.enumerables.length;d--;){c=Ext.enumerables[d];if(b.hasOwnProperty(c)){a.call(this,c,b[c])}}}}else {a.call(this,b,e)}}return this}},bind:function(f,e,d,a){if(arguments.length<=2){return f.bind(e)}var g=f;return function(){var h=d||arguments;if(a===!0){h=b.call(arguments,0);h=h.concat(d)}else if(typeof a==='number'){h=b.call(arguments,0);Ext.Array.insert(h,a,d)}return g.apply(e||c,h)}},bindCallback:function(c,f,a,e,d){return function(){var g=b.call(arguments);return Ext.callback(c,f,a?a.concat(g):g,e,d)}},pass:function(c,a,b){if(!Ext.isArray(a)){if(Ext.isIterable(a)){a=Ext.Array.clone(a)}else {a=a!==undefined?[a]:[]}}return function(){var d=a.slice();d.push.apply(d,arguments);return c.apply(b||this,d)}},alias:function(a,b){return function(){return a[b].apply(a,arguments)}},clone:function(a){var c,b;c=function(){return a.apply(this,arguments)};for(b in a){if(a.hasOwnProperty(b)){c[b]=a[b]}}return c},createInterceptor:function(b,d,e,a){if(!Ext.isFunction(d)){return b}else {a=Ext.isDefined(a)?a:null;return function(){var g=this,f=arguments;return (d.apply(e||g||c,f)!==!1)?b.apply(g||c,f):a}}},createDelayed:function(e,g,c,d,f){var a=e;if(c||d){a=Ext.Function.bind(e,c,d,f)}return function(){var k=this,j=b.call(arguments),h,i;h=function(){Ext.elevate(a,k,j)};i=setTimeout(h,g)}},defer:function(h,e,f,g,b){var d=0,c,a;if(!f&&!g&&!b){a=h}else {a=Ext.Function.bind(h,f,g,b)}if(e>0){c=function(){Ext.elevate(a)};d=setTimeout(c,e)}else {a()}return d},interval:function(h,e,f,g,d){var b,c,a;a=Ext.Function.bind(h,f,g,d);b=function(){Ext.elevate(a)};c=setInterval(b,e);return c},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(g,d,e,f){var a,c=function(){var i=f||b.call(arguments,0),j=e||this,h;if(a){Ext.undefer(a)}h=function(){Ext.elevate(g,j,i)};c.timer=a=setTimeout(h,d)};return c},createAnimationFrame:function(h,f,g,d){var e,c;d=d||3;e=function(){var i,j=g||b.call(arguments,0);f=f||this;if(d===3&&c){a.cancelAnimationFrame(c)}if((d&1)||!c){i=function(){c=e.timerId=null;h.apply(f,j)};c=e.timerId=a.requestAnimationFrame(i)}};return e},requestAnimationFrame:function(i,e,h){var a=++n,c=b.call(arguments,0);c[3]=a;f[a]=1;d.push(c);if(!g){g=k(j)}return a},cancelAnimationFrame:function(a){delete f[a]},createThrottled:function(h,f,d){var e=0,c,b,a,g=function(){h.apply(d,b);e=Ext.now();b=a=null};return function(){if(!d){d=this}c=Ext.now()-e;b=Ext.Array.slice(arguments);if(c>=f){Ext.undefer(a);g()}else if(!a){a=Ext.defer(g,f-c)}}},createBarrier:function(b,d,c){var a=function(){if(!--b){d.apply(c,arguments)}};return a},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return (b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f})},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return (b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)})},interceptAfterOnce:function(d,a,f,e){var b=d[a],c;c=function(){var g;if(b){b.apply(this,arguments)}g=f.apply(e||this,arguments);d[a]=b;d=a=f=e=b=c=null;return g};d[a]=c;return c},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}},toCode:function(a){var b=a?a.toString():'';return b}};Ext.asap=h?function(g,f,b){var c=g,d,e;if(f!=null||b!=null){c=a.bind(g,f,b)}d=function(){Ext.elevate(c)};e=setImmediate(d);return e}:function(g,f,b){var c=g,d,e;if(f!=null||b!=null){c=a.bind(g,f,b)}d=function(){Ext.elevate(c)};e=setTimeout(d,0,!0);return e};Ext.unasap=h?function(a){if(a){clearImmediate(a)}return null}:function(a){return Ext.undefer(a)};Ext.asapCancel=function(a){return Ext.unasap(a)};Ext.defer=a.defer;Ext.undefer=function(a){if(a){clearTimeout(a)}return null};Ext.interval=a.interval;Ext.uninterval=function(a){if(a){clearInterval(a)}return null};Ext.pass=a.pass;Ext.bind=a.bind;Ext.raf=function(){return a.requestAnimationFrame.apply(a,arguments)};Ext.unraf=function(b){a.cancelAnimationFrame(b)};return a})();Ext.Number=(new function(){var b=this,d=(0.9).toFixed()!=='1',a=Math,c={count:!1,inclusive:!1,wrap:!0};Number.MIN_SAFE_INTEGER=Number.MIN_SAFE_INTEGER||-(a.pow(2,53)-1);Number.MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||a.pow(2,53)-1;Ext.apply(b,{MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,floatRe:/^[-+]?(?:\d+|\d*\.\d*)(?:[Ee][+-]?\d+)?$/,intRe:/^[-+]?\d+(?:[Ee]\+?\d+)?$/,Clip:{DEFAULT:c,COUNT:Ext.applyIf({count:!0},c),INCLUSIVE:Ext.applyIf({inclusive:!0},c),NOWRAP:Ext.applyIf({wrap:!1},c)},parseFloat:function(a){if(a===undefined){a=null}if(a!==null&&typeof a!=='number'){a=String(a);a=b.floatRe.test(a)?+a:null;if(isNaN(a)){a=null}}return a},parseInt:function(a){if(a===undefined){a=null}if(typeof a==='number'){a=Math.floor(a)}else if(a!==null){a=String(a);a=b.intRe.test(a)?+a:null}return a},binarySearch:function(e,f,a,b){if(a===undefined){a=0}if(b===undefined){b=e.length}--b;var c,d;while(a<=b){c=(a+b)>>>1;d=e[c];if(f===d){return c}if(d<f){a=c+1}else {b=c-1}}return a},bisectTuples:function(e,f,g,a,b){if(a===undefined){a=0}if(b===undefined){b=e.length}--b;var c,d;while(a<=b){c=(a+b)>>>1;d=e[c][g];if(f===d){return c}if(d<f){a=c+1}else {b=c-1}}return a},clipIndices:function(d,b,f){f=f||c;var h=0,i=f.wrap,g,a,e;b=b||[];for(e=0;e<2;++e){g=a;a=b[e];if(a==null){a=h}else if(e&&f.count){a+=g;a=(a>d)?d:a}else {if(i){a=(a<0)?(d+a):a}if(e&&f.inclusive){++a}a=(a<0)?0:((a>d)?d:a)}h=d}b[0]=g;b[1]=(a<g)?g:a;return b},constrain:function(c,b,a){var d=parseFloat(c);if(b===null){b=c}if(a===null){a=c}return (d<b)?b:((d>a)?a:d)},snap:function(a,c,e,f){var d;if(a===undefined||a<e){return e||0}if(c){d=a%c;if(d!==0){a-=d;if(d*2>=c){a+=c}else if(d*2<-c){a-=c}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=(c||0);if(a===undefined||a<c){return c}if(d&&(f=((a-c)%d))){a-=f;f*=2;if(f>=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},roundToNearest:function(c,b){b=b||1;return b*a.round(c/b)},roundToPrecision:function(d,c){var b=a.pow(10,c||1);return a.round(d*b)/b},truncateToPrecision:function(d,c){var b=a.pow(10,c||1);return parseInt(d*b,10)/b},sign:a.sign||function(a){a=+a;if(a===0||isNaN(a)){return a}return (a>0)?1:-1},log10:a.log10||function(b){return a.log(b)*a.LOG10E},isEqual:function(c,d,b){return a.abs(c-d)<b},isFinite:Number.isFinite||function(a){return typeof a==='number'&&isFinite(a)},isInteger:Number.isInteger||function(a){return ~~(a+0)===a},toFixed:d?function(d,b){b=b||0;var c=a.pow(10,b);return (a.round(d*c)/c).toFixed(b)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(b,c){return a.floor(a.random()*(c-b+1)+b)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}());(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a=Ext.Object={chain:Object.create||function(a){b.prototype=a;var c=new b();b.prototype=null;return c},clear:function(a){for(var b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(var d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b<h;b++){if(f){d=d.concat(g(e+'['+b+']',c[b],!0))}else {d.push({name:e,value:c[b]})}}}else if(Ext.isObject(c)){for(b in c){if(c.hasOwnProperty(b)){if(f){d=d.concat(g(e+'['+b+']',c[b],!0))}else {d.push({name:e,value:c[b]})}}}}else {d.push({name:e,value:c})}return d},toQueryString:function(g,j){var c=[],h=[],d,e,i,f,b;for(d in g){if(g.hasOwnProperty(d)){c=c.concat(a.toQueryObjects(d,g[d],j))}}for(e=0,i=c.length;e<i;e++){f=c[e];b=f.value;if(Ext.isEmpty(b)){b=''}else if(Ext.isDate(b)){b=Ext.Date.toString(b)}h.push(encodeURIComponent(f.name)+'='+encodeURIComponent(String(b)))}return h.join('&')},fromQueryString:function(u,v){var s=u.replace(d,'').split('&'),i={},j,o,a,g,n,t,q,h,l,m,r,k,b,p;for(n=0,t=s.length;n<t;n++){q=s[n];if(q.length>0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h<l;h++){b=m[h];b=(b.length===2)?'':b.substring(1,b.length-1);k.push(b)}k.unshift(a);j=i;for(h=0,l=k.length;h<l;h++){b=k[h];if(h===l-1){if(Ext.isArray(j)&&b===''){j.push(g)}else {j[b]=g}}else {if(j[b]===undefined||typeof j[b]==='string'){p=k[h+1];j[b]=(Ext.isNumeric(p)||p==='')?[]:{}}j=j[b]}}}}}return i},each:function(a,f,c){var d=Ext.enumerables,e,b;if(a){c=c||a;for(b in a){if(a.hasOwnProperty(b)){if(f.call(c,b,a[b],a)===!1){return}}}if(d){for(e=d.length;e--;){if(a.hasOwnProperty(b=d[e])){if(f.call(c,b,a[b],a)===!1){return}}}}}},eachValue:function(a,f,c){var d=Ext.enumerables,e,b;c=c||a;for(b in a){if(a.hasOwnProperty(b)){if(f.call(c,a[b])===!1){return}}}if(d){for(e=d.length;e--;){if(a.hasOwnProperty(b=d[e])){if(f.call(c,a[b])===!1){return}}}}},merge:function(d){var g=1,h=arguments,k=h.length,j=a.merge,i=Ext.clone,f,c,b,e;for(;g<k;g++){f=h[g];for(c in f){b=f[c];if(b&&b.constructor===Object){e=d[c];if(e&&e.constructor===Object){j(e,b)}else {d[c]=i(b)}}else {d[c]=b}}}return d},mergeIf:function(c){var e=1,g=arguments.length,f=Ext.clone,d,b,a;for(;e<g;e++){d=arguments[e];for(b in d){if(!(b in c)){a=d[b];if(a&&a.constructor===Object){c[b]=f(a)}else {c[b]=a}}}}return c},getAllKeys:function(c){var b=[],a;for(a in c){b.push(a)}return b},getKey:function(b,c){for(var a in b){if(b.hasOwnProperty(a)&&b[a]===c){return a}}return null},getValues:function(b){var c=[],a;for(a in b){if(b.hasOwnProperty(a)){c.push(b[a])}}return c},getKeys:(typeof Object.keys=='function')?function(a){if(!a){return []}return Object.keys(a)}:function(b){var c=[],a;for(a in b){if(b.hasOwnProperty(a)){c.push(a)}}return c},getSize:function(b){var c=0,a;for(a in b){if(b.hasOwnProperty(a)){c++}}return c},isEmpty:function(a){for(var b in a){if(a.hasOwnProperty(b)){return !1}}return !0},equals:(function(){var a=function(b,c){var a;for(a in b){if(b.hasOwnProperty(a)){if(b[a]!==c[a]){return !1}}}return !0};return function(b,c){if(b===c){return !0}if(b&&c){return a(b,c)&&a(c,b)}else if(!b&&!c){return b===c}else {return !1}}})(),fork:function(c){var d,e,b;if(c&&c.constructor===Object){d=a.chain(c);for(e in c){b=c[e];if(b){if(b.constructor===Object){d[e]=a.fork(b)}else if(b instanceof Array){d[e]=Ext.Array.clone(b)}}}}else {d=c}return d},defineProperty:('defineProperty' in Object)?Object.defineProperty:function(b,c,a){if(!Object.prototype.__defineGetter__){return}if(a.get){b.__defineGetter__(c,a.get)}if(a.set){b.__defineSetter__(c,a.set)}},classify:function(c){var h=c,e=[],f={},g=function(){var b=0,d=e.length,a;for(;b<d;b++){a=e[b];this[a]=new f[a]()}},b,d;for(b in c){if(c.hasOwnProperty(b)){d=c[b];if(d&&d.constructor===Object){e.push(b);f[b]=a.classify(d)}}}g.prototype=h;return g}};Ext.merge=Ext.Object.merge;Ext.mergeIf=Ext.Object.mergeIf}());Ext.apply(Ext,{_namedScopes:{'this':{isThis:1},controller:{isController:1},owner:{isOwner:1},self:{isSelf:1},'self.controller':{isSelf:1,isController:1}},escapeId:(function(){var c=/^[a-zA-Z_][a-zA-Z0-9_\-]*$/i,e=/([\W]{1})/g,a=/^(\d)/g,d=function(b,a){return "\\"+a},b=function(b,a){return '\\00'+a.charCodeAt(0).toString(16)+' '};return function(f){return c.test(f)?f:f.replace(e,d).replace(a,b)}}()),callback:function(b,a,e,g,c,f){if(!b){return}var d=(a in Ext._namedScopes);if(b.charAt){if(b[2]==='.'){b=b.substr(3);for(a=c.up();a&&!a[b];a=a.up()){}}else if((!a||d)&&c){a=c.resolveListenerScope(d?a:f)}b=a[b]}else if(d){a=f||c}else if(!a){a=c}var h;if(b&&Ext.isFunction(b)){a=a||Ext.global;if(g){Ext.defer(b,g,a,e)}else {h=e?b.apply(a,e):b.call(a)}}return h},coerce:function(a,e){var d=Ext.typeOf(a),c=Ext.typeOf(e),b=typeof a==='string';if(d!==c){switch(c){case 'string':return String(a);case 'number':return Number(a);case 'boolean':return b&&(!a||a==='false'||a==='0')?!1:Boolean(a);case 'null':return b&&(!a||a==='null')?null:!1;case 'undefined':return b&&(!a||a==='undefined')?undefined:!1;case 'date':return b&&isNaN(a)?Ext.Date.parse(a,Ext.Date.defaultFormat):Date(Number(a));}}return a},copyTo:function(e,d,a,f){if(typeof a==='string'){a=a.split(Ext.propertyNameSplitRe)}for(var b,c=0,g=a?a.length:0;c<g;c++){b=a[c];if(f||d.hasOwnProperty(b)){e[b]=d[b]}}return e},copy:function(e,c,a,f){if(typeof a==='string'){a=a.split(Ext.propertyNameSplitRe)}for(var b,d=0,g=a?a.length:0;d<g;d++){b=a[d];if(c.hasOwnProperty(b)||(f&&b in c)){e[b]=c[b]}}return e},propertyNameSplitRe:/[,;\s]+/,copyToIf:function(c,e,a){if(typeof a==='string'){a=a.split(Ext.propertyNameSplitRe)}for(var b,d=0,f=a?a.length:0;d<f;d++){b=a[d];if(c[b]===undefined){c[b]=e[b]}}return c},copyIf:function(c,e,a){if(typeof a==='string'){a=a.split(Ext.propertyNameSplitRe)}for(var b,d=0,f=a?a.length:0;d<f;d++){b=a[d];if(!(b in c)&&(b in e)){c[b]=e[b]}}return c},extend:(function(){var a=Object.prototype.constructor,b=function(b){var a;for(a in b){if(!b.hasOwnProperty(a)){continue}this[a]=b[a]}};return function(c,d,g){if(Ext.isObject(d)){g=d;d=c;c=g.constructor!==a?g.constructor:function(){d.apply(this,arguments)}}var h=function(){},e,f=d.prototype;h.prototype=f;e=c.prototype=new h();e.constructor=c;c.superclass=f;if(f.constructor===a){f.constructor=d}c.override=function(a){Ext.override(c,a)};e.override=b;e.proto=e;c.override(g);c.extend=function(a){return Ext.extend(c,a)};return c}}()),isOnline:function(){return Ext.global.navigator.onLine},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)}},_resourcePoolRe:/^[<]([^<>@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(f){var b=Ext._scrollbarSize;if(f||!b){var e=document.body,a=document.createElement('div'),c,d;a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';e.appendChild(a);Ext._scrollbarSize=b={width:d=a.offsetWidth-a.clientWidth,height:c=a.offsetHeight-a.clientHeight};b.reservedWidth=d?'calc(100% - '+d+'px)':'';b.reservedHeight=c?'calc(100% - '+c+'px)':'';e.removeChild(a)}return b},typeOf:(function(){var a=/\S/,d=Object.prototype.toString,c={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(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}()),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else if('xclass' in a){c=Ext.create(a.xclass,a)}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},convertKeyedItems:function(b,g,f){if(b&&!b.isInstance&&Ext.isObject(b)){var c=b,a,e,d;b=[];if(c.xtype||c.xclass||c.itemId||c.id){b.push(c)}else {for(e in c){a=c[e];if(a){if(a===!0){a={}}else if(typeof a==='function'){d=a;a={};a[f]=d}else if(typeof a==='string'){d=a;a={};a[g||'xtype']=d}else {a=Ext.apply({},a)}a.itemId=e;b.push(a)}}}}return b},weightSortFn:function(a,b){return (a.weight||0)-(b.weight||0)},concat:function(a,c){var d=c==null,b=Ext.emptyArray;return (a==null)?(d?a:b.concat(c)):(d?b.concat(a):b.concat(a,c))},log:(function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}())});(function(){var b=[''],c=/([^\d\.])/,f=/[^\d]/g,g=/[\-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;b<l;b++){c=(b<h)?j[b]:m;d=(b<i)?k[b]:n;if(c<d){return -1}if(c>d){return 1}}c=g.releaseValue;d=e.releaseValue;if(c<d){return -1}if(c>d){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(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return [a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(a,{aliases:{from:{extjs:'ext',core:'core',touch:'modern'},to:{ext:['extjs'],'core':['core'],modern:['touch']}},releaseValueMap:{dev:-6,alpha:-5,a:-5,beta:-4,b:-4,rc:-3,'#':-2,p:-1,pl:-1},getComponentValue:function(a){return !a?0:(isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10))},compare:function(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l<t;++l){if(!Ext.isString(d=q[l])){f=Ext.checkVersion(d.and||d.or,!d.or);if(d.not){f=!f}}else {if(d.indexOf(' ')>=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else if(j){return !1}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})}());(function(c){var d=(c&&c.packages)||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];if(e&&e.version){Ext.setVersion(a,e.version)}}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','6.5.3.57');Ext.setVersion('core','6.5.3.57')}})(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,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,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())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else if(!e||!(a in b)){b[a]=!0}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var g=this.name,a=this.names,e=a.internal,f=a.get,d=a.apply,c=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?e:g,i=a[h];delete a[f];if(!a[d]||(b=a[d](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[c]){a[c](b,i)}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var i=this.name,a=this.names,f=a.internal,h=a.get,d=a.apply,b=a.update,e=a.changeEvent,g=function(a,c,e,d){a[d]=c;if(a[b]){a[b](c,e)}},c;c=function(c){var a=this,k=a.$configPrefixed?f:i,j=a[k];delete a[h];if(!a[d]||(c=a[d](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(e,[a,c,j],g,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(t,l){var i=this,n=i.cls,k=i.configs,v=i.cachedConfigs,q=i.initMap,g=n.prototype,s=l&&l.$config.configs,u=i.values,m,f,p,h,b,j,e,r,o,d;for(e in t){d=t[e];m=d&&d.constructor===Object;f=m&&'$value' in d?d:null;p=!1;if(f){p=!!f.cached;d=f.$value;m=d&&d.constructor===Object}h=f&&f.merge;b=k[e];if(b){if(l){h=b.merge;if(!h){continue}f=null}else {h=h||b.merge}j=u[e];if(h){d=h.call(b,d,j,n,l)}else if(m){if(j&&j.constructor===Object){d=a.merge({},j,d)}}}else {if(s){b=s[e];f=null}else {b=c.get(e)}k[e]=b;if(b.cached||p){v[e]=!0}r=b.names;if(!g[o=r.get]){g[o]=b.getter||b.getGetter()}if(!g[o=r.set]){g[o]=(f&&f.evented)?(b.eventedSetter||b.getEventedSetter()):(b.setter||b.getSetter())}}if(f){if(b.owner!==n){k[e]=b=Ext.Object.chain(b);b.owner=n}Ext.apply(b,f);delete b.$value}if(!i.needsFork&&d&&(d.constructor===Object||d instanceof Array)){i.needsFork=!0}if(d!==null){q[e]=!0}else {if(g.$configPrefixed){g[k[e].names.internal]=null}else {g[k[e].name]=null}if(e in q){q[e]=!1}}u[e]=d}},configure:function(c,h){var k=this,u=k.configs,w=k.initMap,q=k.initListMap,o=k.initList,j=k.cls.prototype,i=k.values,r=0,v=!o,n,b,m,d,p,l,f,e,g,t,s,x;i=k.needsFork?a.fork(i):a.chain(i);c.isConfiguring=!0;if(v){k.initList=o=[];k.initListMap=q={};c.isFirstInstance=!0;for(e in w){b=u[e];t=b.cached;if(w[e]){f=b.names;g=i[e];if(!j[f.set].$isDefault||j[f.apply]||j[f.update]||typeof g==='object'){if(t){(n||(n=[])).push(b)}else {o.push(b);q[e]=!0}c[f.get]=b.initGetter||b.getInitGetter()}else {j[b.getInternalName(j)]=g}}else if(t){j[b.getInternalName(j)]=undefined}}}l=n&&n.length;if(l){for(d=0;d<l;++d){p=n[d].getInternalName(j);c[p]=null}for(d=0;d<l;++d){f=(b=n[d]).names;m=f.get;if(c.hasOwnProperty(m)){c[f.set](i[b.name]);delete c[m]}}for(d=0;d<l;++d){p=n[d].getInternalName(j);j[p]=c[p];delete c[p]}}if(h&&h.platformConfig){h=k.resolvePlatformConfig(c,h)}if(v){if(c.afterCachedConfig&&!c.afterCachedConfig.$nullFn){c.afterCachedConfig(h)}}c.config=i;for(d=0,l=o.length;d<l;++d){b=o[d];c[b.names.get]=b.initGetter||b.getInitGetter()}if(c.transformInstanceConfig){h=c.transformInstanceConfig(h)}if(h){for(e in h){g=h[e];b=u[e];if(!b){c[e]=g}else {if(!b.lazy){++r}if(!q[e]){c[b.names.get]=b.initGetter||b.getInitGetter()}if(b.merge){g=b.merge(g,i[e],c)}else if(g&&g.constructor===Object){s=i[e];if(s&&s.constructor===Object){g=a.merge(i[e],g)}else {g=Ext.clone(g,!1)}}}i[e]=g}}if(c.beforeInitConfig&&!c.beforeInitConfig.$nullFn){if(c.beforeInitConfig(h)===!1){return}}if(h){for(e in h){if(!r){break}b=u[e];if(b&&!b.lazy){--r;f=b.names;m=f.get;if(c.hasOwnProperty(m)){c[f.set](i[e]);delete c[f.get]}}}}for(d=0,l=o.length;d<l;++d){b=o[d];f=b.names;m=f.get;if(!b.lazy&&c.hasOwnProperty(m)){c[f.set](i[b.name]);delete c[m]}}delete c.isConfiguring},getCurrentConfig:function(c){var e=c.defaultConfig,d={},a;for(a in e){d[a]=c[b[a].names.get]()}return d},merge:function(g,c,f){var h=this.configs,b,a,d,e;for(b in f){a=f[b];e=h[b];if(e){if(e.merge){a=e.merge(a,c[b],g)}else if(a&&a.constructor===Object){d=c[b];if(d&&d.constructor===Object){a=Ext.Object.merge(d,a)}else {a=Ext.clone(a,!1)}}}c[b]=a}return c},reconfigure:function(c,f,g){var n=c.config,i=[],p=c.$configStrict&&!(g&&g.strict===!1),l=this.configs,o=g&&g.defaults,d,j,h,m,a,e,k;for(a in f){d=l[a];if(o&&c.hasOwnProperty(d&&c.$configPrefixed?d.names.internal:a)){continue}n[a]=f[a];if(d){c[d.names.get]=d.initGetter||d.getInitGetter()}else {k=c.self.prototype[a];if(p){if((typeof k==='function')&&!k.$nullFn){continue}}}i.push(a)}for(h=0,m=i.length;h<m;h++){a=i[h];d=l[a];if(d){e=d.names;j=e.get;if(c.hasOwnProperty(j)){c[e.set](f[a]);delete c[j]}}else {d=b[a]||Ext.Config.get(a);e=d.names;if(c[e.set]){c[e.set](f[a])}else {c[a]=f[a]}}}},resolvePlatformConfig:function(g,e){var f=e&&e.platformConfig,b=e,c,a,d;if(f){a=Ext.getPlatformConfigKeys(f);d=a.length;if(d){b=Ext.merge({},b);for(c=0,d=a.length;c<d;++c){this.merge(g,b,f[a[c]])}}}return b}}}());Ext.Base=(function(k){var d=[],e,h=[],j=function(a){return function(){return this[a].apply(this,arguments)}},l=Ext.Version,i=/^\d/,g={},f={},b=function(){},c=b.prototype,a;Ext.Reaper=a={delay:100,queue:[],timer:null,add:function(b){if(!a.timer){a.timer=Ext.defer(a.tick,a.delay)}a.queue.push(b)},flush:function(){if(a.timer){Ext.undefer(a.timer);a.timer=null}var d=a.queue,e=d.length,c,b;a.queue=[];for(c=0;c<e;++c){b=d[c];if(b&&b.$reap){b.$reap()}}},tick:function(){a.timer=null;a.flush()}};Ext.apply(b,{$className:'Ext.Base',$isClass:!0,create:function(){return Ext.create.apply(Ext,[this].concat(Array.prototype.slice.call(arguments,0)))},addDeprecations:function(o){var s=this,n=[],t=Ext.getCompatVersion(o.name),c,g,r,u,e,h,p,f,m,b,v,a,q,d;for(g in o){if(i.test(g)){d=new Ext.Version(g);d.deprecations=o[g];n.push(d)}}n.sort(l.compare);for(r=n.length;r--;){c=(d=n[r]).deprecations;e=s.prototype;q=c.statics;h=t&&t.lt(d);if(!h){break}while(c){m=c.methods;if(m){for(b in m){a=m[b];f=null;if(!a){}else if(Ext.isString(a)){if(h){f=j(a)}}else {u='';if(a.message||a.fn){a=a.fn}p=e.hasOwnProperty(b)&&e[b];if(h&&a){a.$owner=s;a.$name=b;if(p){a.$previous=p}f=a}}if(f){e[b]=f}}}c=q;q=null;e=s}}},extend:function(d){var b=this,f=d.prototype,e,a,g;e=b.prototype=Ext.Object.chain(f);e.self=b;b.superclass=e.superclass=f;if(!d.$isClass){for(a in c){if(a in e){e[a]=c[a]}}}g=f.$inheritableStatics;if(g){for(a in g){if(!b.hasOwnProperty(a)){b[a]=d[a]}}}if(d.$onExtended){b.$onExtended=d.$onExtended.slice()}b.getConfigurator()},$onExtended:[],triggerExtended:function(){var c=this.$onExtended,d=c.length,a,b;if(d>0){for(a=0;a<d;a++){b=c[a];b.fn.apply(b.scope||this,arguments)}}},onExtended:function(b,a){this.$onExtended.push({fn:b,scope:a});return this},addStatics:function(a){this.addMembers(a,!0);return this},addInheritableStatics:function(e){var b=this,g=b.prototype,d=b.$inheritableStatics,a,f,c;if(!d){d=Ext.apply({},g.$inheritableStatics);b.$inheritableStatics=g.$inheritableStatics=d}for(a in e){if(e.hasOwnProperty(a)){f=e[a];c=b[a];if(typeof c==='function'&&!c.$isClass&&!c.$nullFn){f.$previous=c}b[a]=f;d[a]=!0}}return b},addMembers:function(d,f,q){var e=this,m=Ext.Function.clone,c=f?e:e.prototype,n=!f&&c.defaultConfig,l=Ext.enumerables,g=d.privates,h,i,p,a,b,o,j;if(g){delete d.privates;if(!f){j=g.statics;delete g.statics}e.addMembers(g,f,o);if(j){e.addMembers(j,!0,o)}}for(b in d){if(d.hasOwnProperty(b)){a=d[b];if(typeof a==='function'&&!a.$isClass&&!a.$nullFn){if(a.$owner){a=m(a)}if(c.hasOwnProperty(b)){a.$previous=c[b]}a.$owner=e;a.$name=b}else if(n&&(b in n)&&!c.config.hasOwnProperty(b)){(h||(h={}))[b]=a;continue}c[b]=a}}if(h){e.addConfig(h)}if(l){for(i=0,p=l.length;i<p;++i){if(d.hasOwnProperty(b=l[i])){a=d[b];if(a&&!a.$nullFn){if(a.$owner){a=m(a)}a.$owner=e;a.$name=b;if(c.hasOwnProperty(b)){a.$previous=c[b]}}c[b]=a}}}return this},addMember:function(a,b){g[a]=b;this.addMembers(g);delete g[a];return this},borrow:function(f,a){var g=f.prototype,d={},b,e,c;a=Ext.Array.from(a);for(b=0,e=a.length;b<e;b++){c=a[b];d[c]=g[c]}return this.addMembers(d)},override:function(a){var b=this,d=a.statics,c=a.inheritableStatics,e=a.config,g=a.mixins,f=a.cachedConfig;if(d||c||e){a=Ext.apply({},a)}if(d){b.addMembers(d,!0);delete a.statics}if(c){b.addInheritableStatics(c);delete a.inheritableStatics}if(a.platformConfig){b.addPlatformConfig(a)}if(e){b.addConfig(e);delete a.config}if(f){b.addCachedConfig(f);delete a.cachedConfig}delete a.mixins;b.addMembers(a);if(g){b.mixin(g)}return b},addPlatformConfig:function(n){var m=this,j=m.prototype,h=n.platformConfig,a,i,e,d,g,b,f,c,l;delete j.platformConfig;d=m.getConfigurator();i=d.configs;g=Ext.getPlatformConfigKeys(h);for(c=0,l=g.length;c<l;++c){e=h[g[c]];a=null;for(b in e){f=e[b];if(b in i){(a||(a={}))[b]=f}else {j[b]=f}}if(a){d.add(a)}}},callParent:function(b){var a;return (a=this.callParent.caller)&&(a.$previous||((a=a.$owner?a:a.caller)&&a.$owner.superclass.self[a.$name])).apply(this,b||d)},callSuper:function(b){var a;return (a=this.callSuper.caller)&&((a=a.$owner?a:a.caller)&&a.$owner.superclass.self[a.$name]).apply(this,b||d)},mixin:function(n,f){var c=this,a,b,d,m,h,o,l,j,e,i,g;if(typeof n!=='string'){e=n;if(e instanceof Array){for(h=0,o=e.length;h<o;h++){a=e[h];c.mixin(a.prototype.mixinId||a.$className,a)}}else {for(l in e){c.mixin(l,e[l])}}return}a=f.prototype;b=c.prototype;if(a.onClassMixedIn){a.onClassMixedIn.call(f,c)}if(!b.hasOwnProperty('mixins')){if('mixins' in b){b.mixins=Ext.Object.chain(b.mixins)}else {b.mixins={}}}for(d in a){j=a[d];if(d==='mixins'){Ext.applyIf(b.mixins,j)}else if(!(d==='mixinId'||d==='config'||d==='$inheritableStatics')&&(b[d]===undefined)){b[d]=j}}m=a.$inheritableStatics;if(m){i={};for(g in m){if(!c.hasOwnProperty(g)){i[g]=f[g]}}c.addInheritableStatics(i)}if('config' in a){c.addConfig(a.config,f)}b.mixins[n]=a;if(a.afterClassMixedIn){a.afterClassMixedIn.call(f,c)}return c},addConfig:function(b,a){var c=this.$config||this.getConfigurator();c.add(b,a)},addCachedConfig:function(c,d){var b={},a;for(a in c){b[a]={cached:!0,$value:c[a]}}this.addConfig(b,d)},getConfigurator:function(){return this.$config||new Ext.Configurator(this)},getName:function(){return Ext.getClassName(this)},createAlias:k(function(a,b){f[a]=function(){return this[b].apply(this,arguments)};this.override(f);delete f[a]})});for(e in b){if(b.hasOwnProperty(e)){h.push(e)}}b.$staticMembers=h;b.getConfigurator();b.addMembers({$className:'Ext.Base',isInstance:!0,$configPrefixed:!0,$configStrict:!0,isConfiguring:!1,isFirstInstance:!1,destroyed:!1,clearPropertiesOnDestroy:!0,clearPrototypeOnDestroy:!1,statics:function(){var a=this.statics.caller,b=this.self;if(!a){return b}return a.$owner},callParent:function(c){var a,b=(a=this.callParent.caller)&&(a.$previous||((a=a.$owner?a:a.caller)&&a.$owner.superclass[a.$name]));return b.apply(this,c||d)},callSuper:function(c){var a,b=(a=this.callSuper.caller)&&((a=a.$owner?a:a.caller)&&a.$owner.superclass[a.$name]);return b.apply(this,c||d)},self:b,constructor:function(){return this},initConfig:function(b){var a=this,c=a.self.getConfigurator();a.initConfig=Ext.emptyFn;a.initialConfig=b||{};c.configure(a,b);return a},beforeInitConfig:Ext.emptyFn,getConfig:function(d,g,f){var a=this,b,e,c;if(d){e=a.self.$config.configs[d];if(e){c=a.$configPrefixed?e.names.internal:d;if(f){b=a.hasOwnProperty(c)?a[c]:null}else if(g){b=a.hasOwnProperty(c)?a[c]:a.config[d]}else {b=a[e.names.get]()}}else {b=a[d]}}else {b=a.getCurrentConfig()}return b},destroyMembers:function(){var b=this,f=b.self.$config.configs,g=arguments.length,e,a,d,c;for(c=0;c<g;c++){a=arguments[c];e=f[a];a=e&&b.$configPrefixed?e.names.internal:a;d=b.hasOwnProperty(a)&&b[a];if(d){Ext.destroy(d);b[a]=null}}},freezeConfig:function(d){var a=this,c=Ext.Config.get(d),b=c.names,e=a[b.get]();a[b.set]=function(b){return a}},setConfig:function(b,e,g){var a=this,d,c,f;if(b){d=a.self.getConfigurator();if(typeof b==='string'){c=d.configs[b];if(!c){if(a.$configStrict){f=a.self.prototype[b];if((typeof f==='function')&&!f.$nullFn){return a}}c=Ext.Config.map[b]||Ext.Config.get(b)}if(a[c.names.set]){a[c.names.set](e)}else {a[b]=e}}else {d.reconfigure(a,b,g||e)}}return a},getCurrentConfig:function(){var a=this.self.getConfigurator();return a.getCurrentConfig(this)},hasConfig:function(a){return a in this.defaultConfig},getInitialConfig:function(b){var a=this.config;if(!b){return a}return a[b]},$links:null,link:function(c,b){var a=this,d=a.$links||(a.$links={});d[c]=!0;a[c]=b;return b},unlink:function(e){var d=this,b,f,c,a;for(b=0,f=e.length;b<f;b++){c=e[b];a=d[c];if(a){if(a.isInstance&&!a.destroyed){a.destroy()}else if(a.parentNode&&'nodeType' in a){a.parentNode.removeChild(a)}}d[c]=null}return d},$reap:function(){var a=this,g=a.$noClearOnDestroy,d,b,e,f,c,h;d=Ext.Object.getKeys(a);for(c=0,h=d.length;c<h;c++){b=d[c];if(!g||!g[b]){e=a[b];f=typeof e;if(f==='object'||(f==='function'&&!e.$noClearOnDestroy)){a[b]=null}}}a.$nulled=!0},destroy:function(){var b=this,d=b.$links,c=b.clearPropertiesOnDestroy;if(d){b.$links=null;b.unlink(Ext.Object.getKeys(d))}b.destroy=Ext.emptyFn;b.isDestroyed=b.destroyed=!0;if(c===!0){if(!b.isObservable){b.$reap()}}else if(c){a.add(b)}}});c.callOverridden=c.callParent;return b}(Ext.Function.flexSetter));(function(b,a){(Ext.util||(Ext.util={})).LRU=b=function(e){var d=this,c;if(e){Ext.apply(d,e)}d.head=c={key:null,value:null};d.map={};c.next=c.prev=c};b.prototype=a={count:0,add:function(e,g){var d=this,f=d.map,c=f[e];if(c){d.unlink(c);--d.count}f[e]=c={key:e,value:g};d.link(c);++d.count;return c},clear:function(e,g){var f=this,d=f.head,c=d.next;d.next=d.prev=d;f.count=0;if(e&&!e.$nullFn){for(;c!==d;c=c.next){e.call(g||f,c.key,c.value)}}},each:function(f,d){d=d||this;for(var e=this.head,c=e.next;c!==e;c=c.next){if(f.call(d,c.key,c.value)){break}}},prune:function(f,g){var c=this,d=c.head.prev,e;if(c.count){e=d.value;c.unlink(d);--c.count;if(f){f.call(g||c,d.key,e)}}return e},remove:function(f){var d=this,g=d.map,c=g[f],e;if(c){d.unlink(c);e=c.value;delete g[f];--d.count}return e},touch:function(f){var d=this,e=d.head,c=d.map[f];if(c&&c.prev!==e){d.unlink(c);d.link(c)}},trim:function(d,e,c){while(this.count>d){this.prune(e,c)}},link:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlink:function(c){var d=c.next,e=c.prev;e.next=d;d.prev=e}};a.destroy=function(){this.clear.apply(this,arguments)}}());(function(a,c,b){Ext.util.Cache=b=function(d){a.call(this,d)};c.prototype=a.prototype;b.prototype=Ext.apply(new c(),{maxSize:100,clear:function(){a.prototype.clear.call(this,this.evict)},get:function(f){var d=this,g=d.map[f],e;if(g){e=g.value;d.touch(f)}else {e=d.miss.apply(d,arguments);d.add(f,e);d.trim(d.maxSize,d.evict)}return e},evict:Ext.emptyFn})}(Ext.util.LRU,function(){}));(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return (a.length-b.length)||((a<b)?-1:((a>b)?1:0))};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g<n;g++){b=j[g];if(typeof b=='string'){b=o[b];c=b.properties;if(c===!0){d.push(b.fn)}else if(c){for(h=0,m=c.length;h<m;h++){i=c[h];if(f.hasOwnProperty(i)){d.push(b.fn);break}}}}else {d.push(b)}}e.onCreated=k?k:Ext.emptyFn;e.preprocessors=d;this.doProcess(l,f,e)},doProcess:function(f,g,b){var c=this,d=b.preprocessors,a=d.shift(),e=c.doProcess;for(;a;a=d.shift()){if(a.call(c,f,g,b,e)===!1){return}}b.onBeforeCreated.apply(c,arguments)},preprocessors:{},registerPreprocessor:function(a,e,b,c,d){if(!c){c='last'}if(!b){b=[a]}this.preprocessors[a]={name:a,properties:b||!1,fn:e};this.setDefaultPreprocessorPosition(a,c,d);return this},getPreprocessor:function(a){return this.preprocessors[a]},getPreprocessors:function(){return this.preprocessors},defaultPreprocessors:[],getDefaultPreprocessors:function(){return this.defaultPreprocessors},setDefaultPreprocessors:function(a){this.defaultPreprocessors=Ext.Array.from(a);return this},setDefaultPreprocessorPosition:function(d,a,e){var b=this.defaultPreprocessors,c;if(typeof a=='string'){if(a==='first'){b.unshift(d);return this}else if(a==='last'){b.push(d);return this}a=(a==='after')?1:-1}c=Ext.Array.indexOf(b,e);if(c!==-1){Ext.Array.splice(b,Math.max(0,c+a),0,d)}return this}});a.registerPreprocessor('extend',function(b,c,i){var h=Ext.Base,g=h.prototype,f=c.extend,a,e,d;delete c.extend;if(f&&f!==Object){a=f}else {a=h}e=a.prototype;if(!a.$isClass){for(d in g){if(!e[d]){e[d]=g[d]}}}b.extend(a);b.triggerExtended.apply(b,arguments);if(c.onClassExtended){b.onExtended(c.onClassExtended,b);delete c.onClassExtended}},!0);a.registerPreprocessor('privates',function(d,e){var a=e.privates,c=a.statics,b=a.privacy||!0;delete e.privates;delete a.statics;d.addMembers(a,!1,b);if(c){d.addMembers(c,!0,b)}});a.registerPreprocessor('statics',function(b,a){b.addStatics(a.statics);delete a.statics});a.registerPreprocessor('inheritableStatics',function(b,a){b.addInheritableStatics(a.inheritableStatics);delete a.inheritableStatics});Ext.createRuleFn=function(a){return new Function('$c','with($c) { try { return ('+a+'); } catch(e) { return false;}}')};Ext.expressionCache=new Ext.util.Cache({miss:Ext.createRuleFn});Ext.ruleKeySortFn=c;Ext.getPlatformConfigKeys=function(e){var b=[],a,d;for(a in e){d=Ext.expressionCache.get(a);if(d(Ext.platformTags)){b.push(a)}}b.sort(c);return b};a.registerPreprocessor('config',function(b,a){if(a.hasOwnProperty('$configPrefixed')){b.prototype.$configPrefixed=a.$configPrefixed}b.addConfig(a.config);delete a.config});a.registerPreprocessor('cachedConfig',function(b,a){if(a.hasOwnProperty('$configPrefixed')){b.prototype.$configPrefixed=a.$configPrefixed}b.addCachedConfig(a.cachedConfig);delete a.cachedConfig});a.registerPreprocessor('mixins',function(e,b,a){var d=b.mixins,c=a.onCreated;delete b.mixins;a.onCreated=function(){a.onCreated=c;e.mixin(d);return a.onCreated.apply(this,arguments)}});Ext.extend=function(d,c,b){if(arguments.length===2&&Ext.isObject(c)){b=c;c=d;d=null}var e;if(!c){throw new Error("[Ext.extend] Attempting to extend from a class which has not been loaded on the page.")}b.extend=c;b.preprocessors=['extend','statics','inheritableStatics','mixins','config'];if(d){e=new a(d,b);e.prototype.constructor=d}else {e=new a(b)}e.prototype.override=function(e){for(var a in e){if(e.hasOwnProperty(a)){this[a]=e[a]}}};return e}}());Ext.Inventory=function(){var a=this;a.names=[];a.paths={};a.alternateToName={};a.aliasToName={};a.nameToAliases={};a.nameToAlternates={};a.nameToPrefix={}};Ext.Inventory.prototype={_array1:[0],prefixes:null,dotRe:/\./g,wildcardRe:/\*/g,addAlias:function(a,c,b){return this.addMapping(a,c,this.aliasToName,this.nameToAliases,b)},addAlternate:function(b,a){return this.addMapping(b,a,this.alternateToName,this.nameToAlternates)},addMapping:function(h,m,k,j,n){var f=h.$className||h,c=f,l=this._array1,d,a,b,e,i,g;if(Ext.isString(f)){c={};c[f]=m}for(b in c){a=c[b];if(Ext.isString(a)){l[0]=a;a=l}i=a.length;g=j[b]||(j[b]=[]);for(e=0;e<i;++e){if(!(d=a[e])){continue}if(k[d]!==b){k[d]=b;g.push(d)}}}},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(k,e,r){var g=this,q=g.aliasToName,p=g.alternateToName,m=g.nameToAliases,o=g.nameToAlternates,i=r?e:{},l=[],n=Ext.isString(k)?[k]:k,t=n.length,s=g.wildcardRe,f,j,c,b,d,a,h;for(j=0;j<t;++j){if((f=n[j]).indexOf('*')<0){if(!(a=q[f])){if(!(a=p[f])){a=f}}if(!(a in i)&&!(e&&(a in e))){i[a]=1;l.push(a)}}else {h=new RegExp('^'+f.replace(s,'(.*?)')+'$');for(a in m){if(!(a in i)&&!(e&&(a in e))){if(!(b=h.test(a))){d=(c=m[a]).length;while(!b&&d-->0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var c=this,e=c.paths,b='',d;if(a in e){b=e[a]}else {d=c.nameToPrefix[a]||(c.nameToPrefix[a]=c.getPrefix(a));if(d){a=a.substring(d.length+1);b=e[d];if(b){b+='/'}}b+=a.replace(c.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}else if(a in this.nameToPrefix){return this.nameToPrefix[a]}var i=this.getPrefixes(),b=a.length,c,f,h,e,d,g;while(b-->0){c=i[b];if(c){f=a.charAt(b);if(f!=='.'){continue}h=a.substring(0,b);for(d=0,g=c.length;d<g;d++){e=c[d];if(e===a.substring(0,b)){return e}}}}return ''},getPrefixes:function(){var f=this,a=f.prefixes,d,e,c,g,b,h;if(!a){d=f.names.slice(0);f.prefixes=a=[];for(b=0,h=d.length;b<h;b++){e=d[b];c=e.length;g=a[c]||(a[c]=[]);g.push(e)}}return a},removeName:function(a){var c=this,j=c.aliasToName,h=c.alternateToName,i=c.nameToAliases,g=c.nameToAlternates,f=i[a],e=g[a],b,d;delete i[a];delete g[a];delete c.nameToPrefix[a];if(f){for(b=f.length;b--;){if(a===j[d=f[b]]){delete j[d]}}}if(e){for(b=e.length;b--;){if(a===h[d=e[b]]){delete h[d]}}}},resolveName:function(a){var c=this,b;if(!(a in c.nameToAliases)){if(!(b=c.aliasToName[a])){b=c.alternateToName[a]}}return b||a},select:function(b,f){var e=this,a={},d={excludes:a,exclude:function(){e.getNamesByExpression(arguments[0],a,!0);return this}},c;for(c in b){d[c]=e.selectMethod(a,b[c],f||b)}return d},selectMethod:function(a,c,b){var d=this;return function(f){var e=Ext.Array.slice(arguments,1);e.unshift(d.getNamesByExpression(f,a));return c.apply(b,e)}},setPath:Ext.Function.flexSetter(function(b,c){var a=this;a.paths[b]=c;a.names.push(b);a.prefixes=null;a.nameToPrefix={};return a})};Ext.ClassManager=(function(n,e,o,g,r){var q=Ext.Class.makeCtor,i=[],b={Ext:{name:'Ext',value:Ext}},a=Ext.apply(new Ext.Inventory(),{classes:{},classState:{},existCache:{},instantiators:[],isCreated:function(b){if(a.classes[b]||a.existCache[b]){return !0}if(!a.lookupName(b,!1)){return !1}a.triggerCreated(b);return !0},createdListeners:[],nameCreatedListeners:{},existsListeners:[],nameExistsListeners:{},overrideMap:{},triggerCreated:function(b,c){a.existCache[b]=c||1;a.classState[b]+=40;a.notify(b,a.createdListeners,a.nameCreatedListeners)},onCreated:function(d,c,b){a.addListener(d,c,b,a.createdListeners,a.nameCreatedListeners)},notify:function(k,c,m){var l=a.getAlternatesByName(k),f=[k],b,i,j,p,d,h;for(b=0,i=c.length;b<i;b++){d=c[b];d.fn.call(d.scope,k)}while(f){for(b=0,i=f.length;b<i;b++){h=f[b];c=m[h];if(c){for(j=0,p=c.length;j<p;j++){d=c[j];d.fn.call(d.scope,h)}delete m[h]}}f=l;l=null}},addListener:function(b,f,a,h,c){if(Ext.isArray(a)){b=Ext.Function.createBarrier(a.length,b,f);for(d=0;d<a.length;d++){this.addListener(b,null,a[d],h,c)}return}var d,i={fn:b,scope:f};if(a){if(this.isCreated(a)){b.call(f,a);return}if(!c[a]){c[a]=[]}c[a].push(i)}else {h.push(i)}},$namespaceCache:b,addRootNamespaces:function(c){for(var a in c){b[a]={name:a,value:c[a]}}},clearNamespaceCache:function(){i.length=0;for(var a in b){if(!b[a].value){delete b[a]}}},getNamespaceEntry:function(c){if(typeof c!=='string'){return c}var d=b[c],f;if(!d){f=c.lastIndexOf('.');if(f<0){d={name:c}}else {d={name:c.substring(f+1),parent:a.getNamespaceEntry(c.substring(0,f))}}b[c]=d}return d},lookupName:function(j,h){var k=a.getNamespaceEntry(j),c=Ext.global,d=0,b,f;for(b=k;b;b=b.parent){i[d++]=b}while(c&&d-->0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j<q;j++){d=m[j];if(typeof d==='string'){d=s[d];h=d.properties;if(h===!0){i.push(d.fn)}else if(h){for(k=0,p=h.length;k<p;k++){l=h[k];if(b.hasOwnProperty(l)){i.push(d.fn);break}}}}else {i.push(d)}}b.postprocessors=i;b.createdFn=f;a.processCreate(c,this,b)})},processCreate:function(a,b,d){var c=this,f=d.postprocessors.shift(),h=d.createdFn;if(!f){if(a){c.set(a,b)}delete b._classHooks;if(h){h.call(b,b)}if(a){c.triggerCreated(a)}return}if(f.call(c,a,b,d,c.processCreate)!==!1){c.processCreate(a,b,d)}},createOverride:function(i,c,m){var h=this,f=c.override,p=c.requires,q=c.uses,b=c.mixins,l,d=1,k,j=function(){var a,s,d,t,u;if(!k){s=p?p.slice(0):[];if(b){if(!(l=b instanceof Array)){for(t in b){if(Ext.isString(a=b[t])){s.push(a)}}}else {for(d=0,u=b.length;d<u;++d){if(Ext.isString(a=b[d])){s.push(a)}}}}k=!0;if(s.length){Ext.require(s,j);return}}if(l){for(d=0,u=b.length;d<u;++d){if(Ext.isString(a=b[d])){b[d]=Ext.ClassManager.get(a)}}}else if(b){for(t in b){if(Ext.isString(a=b[t])){b[t]=Ext.ClassManager.get(a)}}}a=f.$isClass?f:h.get(f);delete c.override;delete c.compatibility;delete c.requires;delete c.uses;Ext.override(a,c);Ext.Loader.history.push(i);if(q){Ext['Loader'].addUsedClasses(q)}if(m){m.call(a,a)}};if(i){a.overrideMap[i]=!0}if('compatibility' in c){d=c.compatibility;if(!d){d=!1}else if(typeof d==='number'){d=!0}else if(typeof d!=='boolean'){d=Ext.checkVersion(d)}}if(d){if(f.$isClass){j()}else {h.onCreated(j,h,f)}}h.triggerCreated(i,2);return h},instantiateByAlias:function(){var c=arguments[0],a=o.call(arguments),b=this.getNameByAlias(c);a[0]=b;return Ext.create.apply(Ext,a)},instantiate:function(){return Ext.create.apply(Ext,arguments)},dynInstantiate:function(b,a){a=g(a,!0);a.unshift(b);return Ext.create.apply(Ext,a)},getInstantiator:function(c){var f=this.instantiators,b,a,d;b=f[c];if(!b){a=c;d=[];for(a=0;a<c;a++){d.push('a['+a+']')}b=f[c]=new Function('c','a','return new c('+d.join(',')+')')}return b},postprocessors:{},defaultPostprocessors:[],registerPostprocessor:function(a,f,b,c,d){if(!c){c='last'}if(!b){b=[a]}this.postprocessors[a]={name:a,properties:b||!1,fn:f};this.setDefaultPostprocessorPosition(a,c,d);return this},setDefaultPostprocessors:function(a){this.defaultPostprocessors=g(a);return this},setDefaultPostprocessorPosition:function(d,a,f){var b=this.defaultPostprocessors,c;if(typeof a==='string'){if(a==='first'){b.unshift(d);return this}else if(a==='last'){b.push(d);return this}a=(a==='after')?1:-1}c=Ext.Array.indexOf(b,f);if(c!==-1){Ext.Array.splice(b,Math.max(0,c+a),0,d)}return this}});a.registerPostprocessor('platformConfig',function(c,a,b){a.addPlatformConfig(b)});a.registerPostprocessor('alias',function(h,f,d){var b=Ext.Array.from(d.alias),a,c;for(a=0,c=b.length;a<c;a++){e=b[a];this.addAlias(f,e)}},['xtype','alias']);a.registerPostprocessor('singleton',function(b,c,a,d){if(a.singleton){d.call(this,b,new c(),a)}else {return !0}return !1});a.registerPostprocessor('alternateClassName',function(i,h,f){var a=f.alternateClassName,b,d,c;if(!(a instanceof Array)){a=[a]}for(b=0,d=a.length;b<d;b++){c=a[b];this.set(c,h)}});a.registerPostprocessor('debugHooks',function(d,a,c){var b=a.isInstance?a.self:a;delete b.prototype.debugHooks});a.registerPostprocessor('deprecated',function(d,a,c){var b=a.isInstance?a.self:a;b.addDeprecations(c.deprecated);delete b.prototype.deprecated});Ext.apply(Ext,{create:function(){var b=arguments[0],f=typeof b,c=o.call(arguments,1),d;if(f==='function'){d=b}else {if(f!=='string'&&c.length===0){c=[b];if(!(b=b.xclass)){b=c[0].xtype;if(b){b='widget.'+b}}}b=a.resolveName(b);d=a.get(b)}if(!d){Ext.syncRequire(b);d=a.get(b)}return a.getInstantiator(c.length)(d,c)},widget:function(i,b){var f=i,d,c,h;if(typeof f!=='string'){b=i;f=b.xtype;c=b.xclass}else {b=b||{}}if(b.isComponent){return b}if(!c){d='widget.'+f;c=a.getNameByAlias(d)}if(c){h=a.get(c)}if(!h){return Ext.create(c||d,b)}return new h(b)},createByAlias:e(a,'instantiateByAlias'),define:function(b,c,d){if(c.override){a.classState[b]=20;return a.createOverride.apply(a,arguments)}a.classState[b]=10;return a.create.apply(a,arguments)},undefine:function(b){var h=a.classes;delete h[b];delete a.existCache[b];delete a.classState[b];a.removeName(b);Ext.Factory.clearCaches();var d=a.getNamespaceEntry(b),f=d.parent?a.lookupName(d.parent,!1):Ext.global,c;if(f){c=d.name;try{delete f[c]}catch(t){f[c]=undefined}}},getClassName:e(a,'getName'),getDisplayName:function(a){if(a){if(a.displayName){return a.displayName}if(a.$name&&a.$class){return Ext.getClassName(a.$class)+'#'+a.$name}if(a.$className){return a.$className}}return 'Anonymous'},getClass:e(a,'getClass'),namespace:function(){var c=r,b;for(b=arguments.length;b-->0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(m,f){var q=m.prototype,c=g(f.xtype),i=g(f.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(q.xtypesChain||[]),h=Ext.merge({},q.xtypesMap||{}),a,d,l,b;for(a=0,d=i.length;a<d;a++){l=i[a];if(l.substring(0,p)===j){b=l.substring(p);Ext.Array.include(c,b)}}m.xtype=f.xtype=c[0];f.xtypes=c;for(a=0,d=c.length;a<d;a++){b=c[a];if(!h[b]){h[b]=!0;k.push(b)}}f.xtypesChain=k;f.xtypesMap=h;Ext.Function.interceptAfterOnce(m,'onClassCreated',function(){var q=this,p=q.prototype,i=p.mixins,j,l;for(j in i){if(i.hasOwnProperty(j)){l=i[j];c=l.xtypes;if(c){for(a=0,d=c.length;a<d;a++){b=c[a];if(!h[b]){h[b]=!0;k.push(b)}}}}}});for(a=0,d=c.length;a<d;a++){b=c[a];Ext.Array.include(i,j+b)}f.alias=i},['xtype','alias']);if(Ext.manifest){var k=Ext.manifest,m=k.classes,d=k.paths,l={},j={},c,f,s,h,p;if(d){if(k.bootRelative){p=Ext.Boot.baseUrl;for(h in d){if(d.hasOwnProperty(h)){d[h]=p+d[h]}}}a.setPath(d)}if(m){for(c in m){j[c]=[];l[c]=[];f=m[c];if(f.alias){l[c]=f.alias}if(f.alternates){j[c]=f.alternates}}}a.addAlias(l);a.addAlternate(j)}return a}(Ext.Class,Ext.Function.alias,Array.prototype.slice,Ext.Array.from,Ext.global));(Ext.env||(Ext.env={})).Browser=function(d,q){var m=this,r=Ext.Boot.browserPrefixes,i=Ext.Boot.browserNames,s=m.enginePrefixes,j=m.engineNames,f=d.match(new RegExp('((?:'+Ext.Object.getValues(r).join(')|(?:')+'))([\\w\\._]+)')),n=d.match(new RegExp('((?:'+Ext.Object.getValues(s).join(')|(?:')+'))([\\w\\._]+)')),a=i.other,g=j.other,e='',k='',b='',p=!1,t=/(Edge\/)([\w.]+)/,u='',c,o,h;m.userAgent=d;this.is=function(a){return !!this.is[a]};if(/Edge\//.test(d)){f=d.match(t);n=d.match(t)}if(f){a=i[Ext.Object.getKey(r,f[1])];if(a==='Safari'&&/^Opera/.test(d)){a='Opera'}e=new Ext.Version(f[2])}if(n){g=j[Ext.Object.getKey(s,n[1])];k=new Ext.Version(n[2])}if(g==='Trident'&&a!=='IE'){a='IE';var l=d.match(/.*rv:(\d+.\d+)/);if(l&&l.length){l=l[1];e=new Ext.Version(l)}}if(a&&e){Ext.setVersion(a,e)}if(d.match(/FB/)&&a==='Other'){a=i.safari;g=j.webkit}else if(d.match(/Android.*Chrome/g)){a='ChromeMobile'}else {f=d.match(/OPR\/(\d+.\d+)/);if(f){a='Opera';e=new Ext.Version(f[1])}}Ext.apply(this,{engineName:g,engineVersion:k,name:a,version:e});this.setFlag(a,!0,q);if(e){b=e.getMajor()||'';if(m.is.IE){b=document.documentMode||parseInt(b,10);for(c=7;c<=11;++c){o='isIE'+c;Ext[o]=b===c;Ext[o+'m']=b<=c;Ext[o+'p']=b>=c}}if(m.is.Opera&&parseInt(b,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?b:0;Ext.firefoxVersion=Ext.isFirefox?b:0;Ext.ieVersion=Ext.isIE?b:0;Ext.operaVersion=Ext.isOpera?b:0;Ext.safariVersion=Ext.isSafari?b:0;Ext.webKitVersion=Ext.isWebKit?b:0;this.setFlag(a+b,!0,q);this.setFlag(a+e.getShortVersion())}for(c in i){if(i.hasOwnProperty(c)){h=i[c];this.setFlag(h,a===h)}}this.setFlag(h);if(k){this.setFlag(g+(k.getMajor()||''));this.setFlag(g+k.getShortVersion())}for(c in j){if(j.hasOwnProperty(c)){h=j[c];this.setFlag(h,g===h,q)}}this.setFlag('Standalone',!!navigator.standalone);try{u=window.top.ripple}catch(v){}this.setFlag('Ripple',!!document.getElementById("tinyhippos-injected")&&!Ext.isEmpty(u));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){p=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(d)){p=!0}this.setFlag('WebView',p);this.isStrict=Ext.isStrict=document.compatMode==="CSS1Compat";this.isSecure=Ext.isSecure;this.identity=a+b+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{edge:'Edge',webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{edge:'Edge/',webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},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:''},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?'javascript:\'\'':'about:blank'}(Ext.global.navigator.userAgent));Ext.env.OS=function(h,i,b){var n=this,g=Ext.Boot.osNames,j=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,k,e;b=b||Ext.browser;for(d in j){if(j.hasOwnProperty(d)){l=j[d];f=h.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==="HTC_"){c=new Ext.Version("2.3")}else if(e&&e==="Silk/"){c=new Ext.Version("2.3")}else {c=new Ext.Version(f[f.length-1])}break}}}if(!a){a=g[(h.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(h.match(/ipad/i)){i='iPad'}if(i){this.setFlag(i.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){k=g[d];if(!m.hasOwnProperty(a)){this.setFlag(k,(a===k))}}}if(this.name==="iOS"&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag("AndroidStock")}if(this.is.Android4){b.setFlag("AndroidStock");b.setFlag("AndroidStock4")}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=(Ext.is||(Ext.is={})),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;Ext.isApple=Ext.isMac||Ext.isiOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else if(g==='iPhone'){b='Phone'}else if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS|ChromeOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||(a.is.Android&&i.search(/mobile/i)===-1)){b='Tablet'}else {b='Phone'}}a.setFlag(b,!0);a.deviceType=b;delete e.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(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=(b in a);if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=(b?b.getComputedStyle(a,null):a.currentStyle);return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else if(a in c){return a}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.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(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a<c;++a){b.push(this.has[this.tests[a].name]?1:0)}Ext.log(Ext.browser.identity+': ['+b.join(',')+']')},preDetected:{},tests:[{name:'CloneNodeCopiesExpando',fn:function(){var a=document.createElement('div');a.expandoProp={};return a.cloneNode().expandoProp===a.expandoProp}},{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:'CSS3NegationSelector',fn:function(a){try{a.querySelectorAll("foo:not(bar)")}catch(b){return !1}return !0}},{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 a=this.getTestElement(),b=!1;a.innerHTML="<!--[if vml]><br><![endif]-->";b=(a.childNodes.length===1);a.innerHTML="";return b}},{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:'PointerEvents',fn:function(){return !!(window.PointerEvent&&!Ext.supports.TouchEvents)}},{name:'MSPointerEvents',fn:function(){return Ext.isIE10}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'TouchAction',ready:!0,fn:function(h,e){if(!window.getComputedStyle){return 0}var c=['pan-x','pan-y','pinch-zoom','double-tap-zoom'],f=[1,2,4,8],g=c.length,d=0,a,b;for(a=0;a<g;a++){b=c[a];e.style.touchAction=b;if(getComputedStyle(e).touchAction===b){d|=f[a]}}return d}},{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():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return ('history' in window&&'pushState' in window.history)}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{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 !0}}catch(a){}return !1}},{name:'XmlQuerySelector',fn:function(){var b='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><root></root>',a;if(window.ActiveXObject){a=new ActiveXObject("Microsoft.xmlDOM");a.async=!1;a.loadXML(b)}else if(window.DOMParser){var c=new DOMParser();a=c.parseFromString(b,'text/xml')}return a?!!a.lastChild.querySelector:!1}},{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 !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.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:!0,fn:function(c,b,a){a=c.defaultView;return !(a&&a.getComputedStyle(b.lastChild,null).backgroundColor!=='transparent')}},{name:'ComputedStyle',ready:!0,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:!0,fn:function(d){var b=['borderRadius','BorderRadius','MozBorderRadius','WebkitBorderRadius','OBorderRadius','KhtmlBorderRadius'],c=!1,a;for(a=0;a<b.length;a++){if(d.documentElement.style[b[a]]!==undefined){c=!0}}return c&&!Ext.isIE9}},{name:'CSS3LinearGradient',fn:function(i,c){var a='background-image:',e='-webkit-gradient(linear, left top, right bottom, from(black), to(white))',b='linear-gradient(left top, black, white)',g='-moz-'+b,h='-ms-'+b,f='-o-'+b,d=[a+e,a+b,a+g,a+h,a+f];c.style.cssText=d.join(';');return ((""+c.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(b,a){if(Ext.isIE8){return !1}a.firstChild.style.cssText='opacity:0.73';return a.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:!0,fn:function(e){var d=e.body,c=!1,b=e.createElement('div'),a=b.style;if(b.getBoundingClientRect){a.position='absolute';a.top="0";a.WebkitTransform=a.MozTransform=a.msTransform=a.OTransform=a.transform='rotate(90deg)';a.width='100px';a.height='30px';d.appendChild(b);c=b.getBoundingClientRect().height!==100;d.removeChild(b)}return c}},{name:'ChildContentClearedWhenSettingInnerHTML',ready:!0,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:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return ('maxlength' in a.createElement('textarea'))}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement('div',!0);b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['<div style="display:table;height:100%;">','<div style="width:51px;"></div>','</div>'].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.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 a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return (c.left!==a.left&&d.right!==a.right)}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='<span style="display:inline-block;zoom:1;height:60px;width:60px;"></span>';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='<div style="height:100px;width:100px;direction:rtl;overflow:scroll"><div style="width:20px;height:200px;"></div></div>';var a=c.firstChild,b=a.firstChild;return (b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth)}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(e,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,b=c.style,d=b.position;b.position='absolute';a.offsetHeight;b.position=d;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(a){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(!(Ext.isGecko||Ext.isIE||Ext.isEdge)||(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:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !(Ext.isGecko&&Ext.firefoxVersion<52)}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}for(var d=0;d<c.length;d++){e+=parseInt(c[d])}return e}b=f.createElement('div');c=f.createElement('img');a=b.style;Ext.apply(a,{width:'2px',position:'absolute',clip:'rect(1px,1px,1px,1px)',borderWidth:'1px',borderStyle:'solid',borderTopTolor:'#f00',borderRightColor:'#ff0',backgroundColor:'#fff',backgroundImage:'url('+Ext.BLANK_IMAGE_URL+')'});c.alt='';c.src=Ext.BLANK_IMAGE_URL;b.appendChild(c);g.appendChild(b);a=b.currentStyle||b.style;d=a.backgroundImage;e={Images:c.offsetWidth===1&&c.readyState!=='uninitialized',BackgroundImages:!(d!==null&&(d==="none"||d==="url(invalid-url:)")),BorderColors:a.borderTopColor!==a.borderRightColor,LightOnDark:getColor(a.color)-getColor(a.backgroundColor)>0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},{name:'ViewportUnits',ready:!0,fn:function(f){if(Ext.isIE8){return !1}var d=f.body,a=document.createElement('div'),e=a.currentStyle||a.style,c,b;d.appendChild(a);Ext.apply(e,{width:'50vw'});c=parseInt(window.innerWidth/2,10);b=parseInt((window.getComputedStyle?getComputedStyle(a,null):a.currentStyle).width,10);d.removeChild(a);a=null;return c===b}},{name:'CSSVariables',ready:!1,fn:function(b){if(!window.getComputedStyle){return !1}var a=window.getComputedStyle(b.documentElement);return a.getPropertyValue&&!!a.getPropertyValue('--x-supports-variables')}},{name:'Selectors2',ready:!1,fn:function(a){try{return !!a.querySelectorAll(':scope')}catch(b){return !1}}},{name:'CSSScrollSnap',ready:!1,fn:function(b){var a=b.documentElement.style;return 'scrollSnapType' in a||'webkitScrollSnapType' in a||'msScrollSnapType' in a}},{name:'TranslateYCausesHorizontalScroll',ready:!0,fn:function(b,a){a.innerHTML='<div style="position: relative; overflow: auto; height: 200px; width: 200px;"><div><div style="transform: translateY(260px); width: 50px;">a</div></div></div>';return a.firstChild.scrollWidth>a.firstChild.clientWidth}},{name:'PercentageSizeFlexBug',ready:!0,fn:function(c,b){if(Ext.isIE9m){return !1}var a=b.style;a.display='flex';a.flexDirection='column';a.height=a.width='100px';b.innerHTML='<div style="flex: 1 1;"><div style="height:50%"></div></div>';return b.firstChild.firstChild.offsetHeight!==50}},{name:'CannotScrollExactHeight',fn:function(){return Ext.isIE10p}},{name:'WebKitInputTableBoxModelBug',ready:!0,fn:function(i,j){var c=document.createElement('div'),d=document.createElement('div'),b=document.createElement('input'),e=c.style,h=d.style,a=b.style,g=i.body,f;b.type='text';e.display='table';e.height='100px';h.display='table-cell';a.border='0';a.padding='10px';a.boxSizing='border-box';a.height='100%';d.appendChild(b);c.appendChild(d);g.appendChild(c);f=b.offsetHeight===80;g.removeChild(c);return f}},{name:'PassiveEventListener',fn:function(d,c){var b=!1,a;try{a=Object.defineProperty({},'passive',{get:function(){b=!0}});window.addEventListener('e',null,a);window.removeEventListener('e',null,a)}catch(e){}return b}},{name:'CSSMinContent',ready:!0,fn:function(b,a){a.innerHTML='<div style="height:4px;width:4px;min-height:-webkit-min-content;min-height:-moz-min-content;min-height:min-content"><div style="height:8px;width:8px"></div></div>';return a.firstChild.offsetHeight===8}},{name:'ComputedSizeIncludesPadding',ready:!0,fn:function(f,e){var b=!1,c=document.body,a,d;if(window.getComputedStyle){a=document.createElement('div');a.style.cssText='width:10px;padding:2px;-webkit-box-sizing:border-box;box-sizing:border-box;';c.appendChild(a);d=window.getComputedStyle(a,null).width;b=d==='10px';c.removeChild(a)}return b}},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:!1,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,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);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.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.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(a,b){return -((a.phase-b.phase)||(b.priority-a.priority)||(a.id-b.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,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}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 b=document,c;try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else if(a.pollScroll()){return}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.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)){Ext.undefer(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:!0};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 a=this,b=Ext.ClassManager,h=Ext.Boot,n=Ext.Class,c=Ext.env.Ready,j=Ext.Function.alias,g=['extend','mixins','requires'],i={},l=[],e=[],f=[],k={},d={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},m={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:i,isLoading:!1,history:l,config:d,readyListeners:e,optionalRequires:f,requiresMap:k,hasFileLoadError:!1,scriptsLoading:0,classesLoading:{},missingCount:0,missingQueue:{},syncModeEnabled:!1,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,p,o,q,i,j,f,e;if(!b.getPath("Ext")){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,f=0;f<j;f++){e=d[f];e.path=i+e.path;e.canonicalPath=!0}}}if(h){c.block();h.onMicroloaderReady(function(){c.unblock()})}},setConfig:Ext.Function.flexSetter(function(b,e){if(b==='paths'){a.setPath(e)}else {d[b]=e;var c=m[b];if(c){h.setConfig((c===!0)?b:c,e)}}return a}),getConfig:function(a){return a?d[a]:d},setPath:function(){b.setPath.apply(b,arguments);return a},addClassPathMappings:function(c){b.setPath(c);return a},addBaseUrlClassPathMappings:function(a){for(var b in a){a[b]=h.baseUrl+a[b]}Ext.Loader.addClassPathMappings(a)},getPath:function(a){return b.getPath(a)},require:function(c,f,e,d){if(d){return a.exclude(d).require(c,f,e)}var g=b.getNamesByExpression(c);return a.load(g,f,e)},syncRequire:function(){var b=a.syncModeEnabled;a.syncModeEnabled=!0;var c=a.require.apply(a,arguments);a.syncModeEnabled=b;return c},exclude:function(d){var c=b.select({require:function(b,e,c){return a.load(b,e,c)},syncRequire:function(b,g,e){var c=a.syncModeEnabled;a.syncModeEnabled=!0;var f=a.load(b,g,e);a.syncModeEnabled=c;return f}});c.exclude(d);return c},load:function(g,c,k){if(c){if(c.length){c=a.makeLoadCallback(g,c)}c=c.bind(k||Ext.global)}var n=b.classState,f=[],l=[],j={},m=g.length,o,e,h,i;for(h=0;h<m;++h){e=b.resolveName(g[h]);if(!b.isCreated(e)){f.push(e);if(!n[e]){j[e]=a.getPath(e);l.push(j[e])}}}i=f.length;if(i){a.missingCount+=i;b.onCreated(function(){if(c){Ext.callback(c,k,arguments)}a.checkReady()},a,f);if(!d.enabled){Ext.raise("Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class"+((f.length>1)?"es":"")+": "+f.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:f,_urlByClass:j})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(g[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(h){var d=this,f=h.entries||[],g=d.onError,b,e,c;a.hasFileLoadError=!0;--a.scriptsLoading;if(g){for(c=0;c<f.length;c++){e=f[c];if(e.error){b=new Error('Failed to load: '+e.url);break}}b=b||new Error('Failed to load');g.call(d.userScope,d,b,h)}a.checkReady()},onLoadSuccess:function(){var c=this,g=c.onLoad,f=c._classNames,j=c._urlByClass,k=b.classState,i=a.missingQueue,d,e,h;--a.scriptsLoading;if(g){g.call(c.userScope,c)}for(e=0,h=f.length;e<h;e++){d=f[e];if(!k[d]){i[d]=j[d]}}a.checkReady()},onReady:function(g,f,h,d){if(h){c.on(g,f,d)}else {var b=c.makeListener(g,f,d);if(a.isLoading){e.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=(typeof b==='string')?[b]:b;for(d=0,e=b.length;d<e;d++){c=b[d];if(typeof c==='string'&&!Ext.Array.contains(f,c)){f.push(c)}}}return a},triggerReady:function(){var d,b=f;if(a.isLoading&&b.length){f=[];a.require(b)}else {a.isLoading=!1;e.sort(c.sortFn);while(e.length&&!a.isLoading){d=e.pop();c.invoke(d)}c.unblock()}},historyPush:function(c){if(c&&!i[c]&&!b.overrideMap[c]){i[c]=!0;l.push(c)}return a},loadScripts:function(g){var c=Ext.manifest,f=c&&c.loadOrder,e=c&&c.loadOrderMap,b;++a.scriptsLoading;if(f&&!e){c.loadOrderMap=e=h.createLoadOrderMap(f)}a.checkReady();b=Ext.apply({loadOrder:f,loadOrderMap:e,charset:d.scriptCharset,success:a.onLoadSuccess,failure:a.onLoadFailure,sync:a.syncModeEnabled,_classNames:[]},g);b.userScope=b.scope;b.scope=b;h.load(b)},loadScriptsSync:function(c){var b=a.syncModeEnabled;a.syncModeEnabled=!0;a.loadScripts({url:c});a.syncModeEnabled=b},loadScriptsSyncBasePrefix:function(c){var b=a.syncModeEnabled;a.syncModeEnabled=!0;a.loadScripts({url:c,prependBaseUrl:!0});a.syncModeEnabled=b},loadScript:function(b){var d=typeof b==='string',e=b instanceof Array,c=!e&&!d,j=c?b.url:b,f=c&&b.onError,h=c&&b.onLoad,i=c&&b.scope,g={url:j,scope:i,onLoad:h,onError:f,_classNames:[]};a.loadScripts(g)},checkMissingQueue:function(){var d=a.missingQueue,e={},c,f=0;for(c in d){if(!(b.classState[c]||b.isCreated(c))){e[c]=d[c];f++}}a.missingCount=f;a.missingQueue=e},checkReady:function(){var d=a.isLoading,b;a.checkMissingQueue();b=a.missingCount+a.scriptsLoading;if(b&&!d){c.block();a.isLoading=!!b}else if(!b&&d){a.triggerReady()}}});Ext.require=j(a,'require');Ext.syncRequire=j(a,'syncRequire');Ext.exclude=j(a,'exclude');n.registerPreprocessor('loader',function(o,h,q,p){var r=this,j=[],t,l=b.getName(o),i,e,n,m,d,f,c,s;for(i=0,n=g.length;i<n;i++){f=g[i];if(h.hasOwnProperty(f)){c=h[f];if(typeof c==='string'){j.push(c)}else if(c instanceof Array){for(e=0,m=c.length;e<m;e++){d=c[e];if(typeof d==='string'){j.push(d)}}}else if(typeof c!=='function'){for(e in c){if(c.hasOwnProperty(e)){d=c[e];if(typeof d==='string'){j.push(d)}}}}}}if(j.length===0){return}if(l){k[l]=j}(l?a.exclude(l):a).require(j,function(){for(i=0,n=g.length;i<n;i++){f=g[i];if(h.hasOwnProperty(f)){c=h[f];if(typeof c==='string'){h[f]=b.get(c)}else if(c instanceof Array){for(e=0,m=c.length;e<m;e++){d=c[e];if(typeof d==='string'){h[f][e]=b.get(d)}}}else if(typeof c!=='function'){for(var a in c){if(c.hasOwnProperty(a)){d=c[a];if(typeof d==='string'){h[f][a]=b.get(d)}}}}}}p.call(r,o,h,q)});return !1},!0,'after','className');b.registerPostprocessor('uses',function(f,g,d){var e=d.uses,c;if(e){c=b.getNamesByExpression(d.uses);a.addUsedClasses(c)}});b.onCreated(a.historyPush);a.init()}());Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}(Ext.cmd.derive('Ext.Mixin',Ext.Base,function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(k,c){var b=c.mixinConfig,d=c.xhooks,j=k.superclass,i=c.onClassMixedIn,h,f,g,e;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){h=j.mixinConfig;if(h){c.mixinConfig=b=Ext.merge({},h,b)}c.mixinId=b.id;f=b.before;g=b.after;d=b.on;e=b.extended}if(f||g||d||e){c.onClassMixedIn=function(b){var h=this.prototype,l=b.prototype,j;if(f){Ext.Object.each(f,function(e,d){b.addMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.addMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(j in d){a.addHook(d[j],l,j,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(i){i.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,'Mixin'],0));Ext.util=Ext.util||{};Ext.util.DelayedTask=function(c,b,g,d,e){var a=this,f,h=function(){a.id=null;if(!(b&&b.destroyed)){g?c.apply(b,g):c.call(b)}if(e===!1){Ext._suppressIdle=!0}};d=typeof d==='boolean'?d:!0;a.id=null;a.delay=function(i,l,j,k){if(d){a.cancel()}if(typeof i==='number'){f=i}c=l||c;b=j||b;g=k||g;a.delayTime=f;if(!a.id){if(f===-1){a.id=Ext.raf(h)}else {a.id=Ext.defer(h,f||1)}}return a.id};a.cancel=function(){if(a.id){if(a.delayTime===-1){Ext.unraf(a.id)}else {Ext.undefer(a.id)}a.id=null}};a.flush=function(){if(a.id){a.cancel();var f=e;e=!0;h();e=f}};a.stop=function(h,f){if(h&&h===c&&(!f||f===b)){a.cancel()}}};(Ext.cmd.derive('Ext.util.Event',Ext.Base,function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(p,o,b,u,j){var a=this,t=!1,m=a.observable,s=a.name,e,n,i,h,g,l,k,d,f,q,r;if(a.findListener(p,o)===-1){n=a.createListener(p,o,b,u,j);if(a.firing){a.listeners=a.listeners.slice(0)}e=a.listeners;d=k=e.length;i=b&&b.priority;g=a._highestNegativePriorityIndex;l=g!==undefined;if(i){h=(i<0);if(!h||l){for(f=(h?g:0);f<k;f++){q=e[f].o?e[f].o.priority||0:0;if(q<i){d=f;break}}}else {a._highestNegativePriorityIndex=d}}else if(l){d=g}if(!h&&d<=g){a._highestNegativePriorityIndex++}if(d===k){e[k]=n}else {c(e,d,[n])}if(m.isElement){m._getPublisher(s,b.translate===!1).subscribe(m,s,b.delegated!==!1,b.capture)}if(j){r=j.managedListeners||(j.managedListeners=[]);r.push({item:a.observable,ename:(b&&b.managedName)||a.name,fn:p,scope:o,options:b})}t=!0}return t},createListener:function(h,e,a,k,j){var f=this,i=Ext._namedScopes[e],c={fn:h,scope:e,ev:f,caller:k,manager:j,namedScope:i,defaultScope:i?(e||f.observable):undefined,lateBound:typeof h==='string'},b=h,d=!1,g;if(a){c.o=a;if(a.single){b=f.createSingle(b,c,a,e);d=!0}if(a.target){b=f.createTargeted(b,c,a,e,d);d=!0}if(a.onFrame){b=f.createAnimFrame(b,c,a,e,d);d=!0}if(a.delay){b=f.createDelayed(b,c,a,e,d);d=!0}if(a.buffer){b=f.createBuffered(b,c,a,e,d);d=!0}if(f.observable.isElement){g=a.type;if(g){c.type=g}}}c.fireFn=b;c.wrapped=d;return c},findListener:function(e,d){var c=this.listeners,b=c.length,a;while(b--){a=c[b];if(a){if(a.fn===e&&a.scope==d){return b}}}return -1},removeListener:function(m,l,c){var a=this,k=!1,h=a.observable,i=a.name,b,g,j,e,f,d;c=c!=null?c:a.findListener(m,l);if(c!==-1){b=a.listeners[c];if(a.firing){a.listeners=a.listeners.slice(0)}a.listeners.splice(c,1);if(a._highestNegativePriorityIndex){if(c<a._highestNegativePriorityIndex){a._highestNegativePriorityIndex--}else if(c===a._highestNegativePriorityIndex&&c===a.listeners.length){delete a._highestNegativePriorityIndex}}if(b){g=b.o;if(b.task){b.task.cancel();delete b.task}d=b.tasks&&b.tasks.length;if(d){while(d--){b.tasks[d].cancel()}delete b.tasks}b.fireFn.timerId=Ext.undefer(b.fireFn.timerId);j=b.manager;if(j){e=j.managedListeners;if(e){for(d=e.length;d--;){f=e[d];if(f.item===a.observable&&f.ename===i&&f.fn===m&&f.scope===l){e.splice(d,1)}}}}if(h.isElement){h._getPublisher(i,g.translate===!1).unsubscribe(h,i,g.delegated!==!1,g.capture)}}k=!0}return k},clearListeners:function(){var b=this.listeners,c=b.length,a;while(c--){a=b[c];this.removeListener(a.fn,a.scope)}},suspend:function(){++this.suspended},resume:function(){if(this.suspended){--this.suspended}},isSuspended:function(){return this.suspended>0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var e=this,x=Ext.ComponentQuery,s=e.listeners,t=s.length,q=e.observable,n=q.isElement,w=q.isComponent,v=e.firingObservable,b,f,h,l,c,i,u,m,o,r,j,p,a,k,g;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(n){a=c[0]}for(l=0;l<t;l++){i=s[l];if(!i){continue}b=i.o;if(n){if(o){a.setCurrentTarget(o)}r=i.type;if(r){j=a;a=c[0]=j.chain({type:r,isGesture:!1})}Ext.EventObject=a}p=c;if(b){f=b.delegate;if(f){if(n){m=a.getTarget(typeof f==='function'?f:'#'+a.currentTarget.id+' '+f);if(m){c[1]=m;o=a.currentTarget;a.setCurrentTarget(m)}else {continue}}else if(w&&!x.is(v,f,q)){continue}}if(n){if(b.preventDefault){a.preventDefault()}if(b.stopPropagation){a.stopPropagation()}if(b.stopEvent){a.stopEvent()}}c[u]=b;if(b.args){p=b.args.concat(c)}}h=e.getFireInfo(i);k=h.fn;g=h.scope;h.fn=h.scope=null;if(g&&g.destroyed){e.removeListener(k,g,l);k=null}if(k&&k.apply(g,p)===!1){Ext.EventObject=null;return (e.firing=!1)}if(b){c.length--}if(j){a=c[0]=j;j=null}Ext.EventObject=null}}e.firing=!1;return !0},getFireInfo:function(b,g){var f=this.observable,h=b.fireFn,c=b.scope,d=b.namedScope,e;if(!g&&b.wrapped){a.fn=h;return a}e=g?b.fn:h;if(b.lateBound){if(!c||d){c=(b.caller||f).resolveListenerScope(b.defaultScope)}e=c[e]}else if(d&&d.isController){c=(b.caller||f).resolveListenerScope(b.defaultScope)}else if(!c||d){c=f}a.fn=e;a.scope=c;return a},createAnimFrame:function(c,b,f,d,e){var a;if(!e){a=b.ev.getFireInfo(b,!0);c=a.fn;d=a.scope;a.fn=a.scope=null}return Ext.Function.createAnimationFrame(c,d,f.args)},createTargeted:function(b,a,e,c,d){return function(){if(e.target===arguments[0]){var f;if(!d){f=a.ev.getFireInfo(a,!0);b=f.fn;c=f.scope;f.fn=f.scope=null}return b.apply(c,arguments)}}},createBuffered:function(c,a,f,d,e){a.task=new Ext.util.DelayedTask();return function(){if(a.task){var g;if(!e){g=a.ev.getFireInfo(a,!0);c=g.fn;d=g.scope;g.fn=g.scope=null}a.task.delay(f.buffer,c,d,b(arguments))}}},createDelayed:function(c,a,f,d,e){return function(){var h=new Ext.util.DelayedTask(),g;if(!e){g=a.ev.getFireInfo(a,!0);c=g.fn;d=g.scope;g.fn=g.scope=null}if(!a.tasks){a.tasks=[]}a.tasks.push(h);h.delay(f.delay||10,c,d,b(arguments))}},createSingle:function(c,b,e,a,d){return function(){var g=b.ev,h=g.observable,i=b.fn,f;if(h){if(!h.destroyed){h.removeListener(g.name,i,a)}}else {g.removeListener(i,a)}if(!d){f=g.getFireInfo(b,!0);c=f.fn;a=f.scope;f.fn=f.scope=null}return c.apply(a,arguments)}}}},1,0,0,0,0,0,[Ext.util,'Event'],0));(Ext.cmd.derive('Ext.mixin.Identifiable',Ext.Base,{statics:{uniqueIds:{}},isIdentifiable:!0,mixinId:'identifiable',idCleanRegex:/\.|[^\w\-]/g,defaultIdPrefix:'ext-',defaultIdSeparator:'-',getOptimizedId:function(){return this.id},getUniqueId:function(){var e=this.id,c,b,f,d,a;if(!(e||e===0)){c=this.self.prototype;b=this.defaultIdSeparator;d=Ext.mixin.Identifiable.uniqueIds;if(!c.hasOwnProperty('identifiablePrefix')){f=this.xtype;if(f){a=this.defaultIdPrefix+f.replace(this.idCleanRegex,b)+b}else if(!(a=c.$className)){a=this.defaultIdPrefix+'anonymous'+b}else {a=a.replace(this.idCleanRegex,b).toLowerCase()+b}c.identifiablePrefix=a}a=this.identifiablePrefix;if(!d.hasOwnProperty(a)){d[a]=0}e=this.id=this.id=a+(++d[a])}this.getUniqueId=this.getOptimizedId;return e},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(d){var e=Ext.emptyFn,g=[],f=Array.prototype,b=f.slice,a=function(c){if(c instanceof a){return c}this.observable=c;if(arguments[1].isObservable){this.managedListeners=!0}this.args=b.call(arguments,1)},c=['events','hasListeners','managedListeners','eventedBeforeEventNames'];a.prototype.destroy=function(){var b=this,c=b.args,a=b.observable,e=c[0].element||(c[3]&&c[3].element);if(e){a=a[e]}if(!a.destroyed){a[b.managedListeners?'mun':'un'].apply(a,b.args)}b.destroy=Ext.emptyFn};return {mixinConfig:{id:'observable',after:{destroy:'destroyObservable'}},statics:{releaseCapture:function(a){a.fireEventArgs=this.prototype.fireEventArgs},capture:function(e,c,a){var b=function(b,f){return c.apply(a,[b].concat(f))};this.captureArgs(e,b,a)},captureArgs:function(a,c,b){a.fireEventArgs=Ext.Function.createInterceptor(a.fireEventArgs,c,b)},observe:function(a,b){if(a){if(!a.isObservable){Ext.applyIf(a,new this());this.captureArgs(a.prototype,a.fireEventArgs,a)}if(Ext.isObject(b)){a.on(b)}}return a},prepareClass:function(a,f,o){var k=a.listeners=[],l=o||a.prototype,e=l.listeners,i=f?f.listeners:a.superclass.self.listeners,p,b,h,g,m;if(i){k.push(i)}if(e){b=e.scope;if(!b){e.scope='self'}else {h=Ext._namedScopes[b];if(h&&h.isController){e.scope='self.controller'}}k.push(e);l.listeners=null}if(!a.HasListeners){var j=function(){},n=a.superclass.HasListeners||(f&&f.HasListeners)||d.HasListeners;a.prototype.HasListeners=a.HasListeners=j;j.prototype=a.hasListeners=new n()}b=a.prototype.$noClearOnDestroy||{};for(g=0,m=c.length;g<m;g++){b[c[g]]=!0}a.prototype.$noClearOnDestroy=b}},isObservable:!0,$vetoClearingPrototypeOnDestroy:!0,eventsSuspended:0,constructor:function(c){var a=this,h=a.self,f,b,g,i,e;if(a.$observableInitialized){return}a.$observableInitialized=!0;a.hasListeners=a.hasListeners=new a.HasListeners();a.eventedBeforeEventNames={};a.events=a.events||{};f=h.listeners;if(f&&!a._addDeclaredListeners(f)){h.listeners=null}b=(c&&c.listeners)||a.listeners;if(b){if(b instanceof Array){for(e=0,i=b.length;e<i;++e){a.addListener(b[e])}}else {a.addListener(b)}}g=(c&&c.bubbleEvents)||a.bubbleEvents;if(g){a.enableBubble(g)}if(a.$applyConfigs){if(c){Ext.apply(a,c)}}else {a.initConfig(c)}if(b){a.listeners=null}},onClassExtended:function(a,b){if(!a.HasListeners){d.prepareClass(a,a.prototype.$observableMixedIn?undefined:b)}},$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(b){var a=this;if(b instanceof Array){Ext.each(b,a._addDeclaredListeners,a)}else {a._addedDeclaredListeners=!0;a.addListener(b)}return a._addedDeclaredListeners},addManagedListener:function(h,c,j,i,b,l){var f=this,m=f.managedListeners=f.managedListeners||[],g,k;if(typeof c!=='string'){k=arguments.length>4?b:c;b=c;for(c in b){if(b.hasOwnProperty(c)){g=b[c];if(!h.$eventOptions[c]){f.addManagedListener(h,c,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==e){h.doAddListener(c,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,c,j,i)}}}},removeManagedListener:function(e,a,k,j){var f=this,b,c,h,i,g;if(e.$observableDestroyed){return}if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){c=b[a];if(!e.$eventOptions[a]){f.removeManagedListener(e,a,c.fn||c,c.scope||b.scope||j)}}}}else {h=f.managedListeners?f.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(g=0,i=h.length;g<i;g++){f.removeManagedListenerItem(!1,h[g],e,a,k,j)}}},fireEvent:function(a){return this.fireEventArgs(a,b.call(arguments,1))},resolveListenerScope:function(a){var b=Ext._namedScopes[a];if(b){if(b.isSelf||b.isThis){a=null}}return a||this},fireEventArgs:function(a,h){a=Ext.canonicalEventName(a);var b=this,c=b.events,e=c&&c[a],f=!0;if(b.hasListeners[a]){f=b.doFireEvent(a,h||g,e?e.bubble:!1)}return f},fireAction:function(c,g,b,e,a,f){if(typeof b==='string'&&!e){b=this[b]}a=a?Ext.Object.chain(a):{};a.single=!0;a.priority=((f==='after')?-99.5:99.5);this.doAddListener(c,b,e,a);this.fireEventArgs(c,g)},$eventedController:{_paused:1,pause:function(){++this._paused},resume:function(){var a=this,b=a.fn,c=a.scope,g=a.fnArgs,h=a.owner,e,f;if(!--a._paused){if(b){e=Ext.Array.slice(g||a.args);if(g===!1){e.shift()}a.fn=null;e.push(a);if(Ext.isFunction(b)){f=b.apply(c,e)}else if(c&&Ext.isString(b)&&Ext.isFunction(c[b])){f=c[b].apply(c,e)}if(f===!1){return !1}}if(!a._paused){return a.owner.fireEventArgs(a.eventName,a.args)}}}},fireEventedAction:function(a,b,k,j,i){var c=this,e=c.eventedBeforeEventNames,h=e[a]||(e[a]='before'+a),f=Ext.apply({owner:c,eventName:a,fn:k,scope:j,fnArgs:i,args:b},c.$eventedController),g;b.push(f);g=c.fireEventArgs(h,b);b.pop();if(g===!1){return !1}return f.resume()},doFireEvent:function(e,g,h){var a=this,f,b,c=!0;do{if(a.eventsSuspended){if((f=a.eventQueue)){f.push([e,g])}return c}else {b=a.events&&a.events[e];if(b&&b!==!0){if((c=b.fire.apply(b,g))===!1){break}}}}while(h&&(a=a.getBubbleParent()));return c},getBubbleParent:function(){var b=this,a=b.getBubbleTarget&&b.getBubbleTarget();if(a&&a.isObservable){return a}return null},addListener:function(e,o,h,b,n,m){var c=this,l=Ext._namedScopes,g,f,j,i,k;if(typeof e!=='string'){b=e;h=b.scope;f=h&&l[h];j=f&&f.isSelf;k=((c.isComponent||c.isWidget)&&b.element)?c.$elementEventOptions:c.$eventOptions;for(e in b){g=b[e];if(!k[e]){i=g.scope;if(i&&j){f=l[i];if(f&&f.isController){i='self.controller'}}c.doAddListener(e,g.fn||g,i||h,g.fn?g:b,n,m)}}if(b&&b.destroyable){return new a(c,b)}}else {c.doAddListener(e,o,h,b,n,m);if(b&&b.destroyable){return new a(c,e,o,h,b)}}return c},removeListener:function(a,h,g,f){var c=this,e,b;if(typeof a!=='string'){b=a;f=f||c.$eventOptions;for(a in b){if(b.hasOwnProperty(a)){e=b[a];if(!c.$eventOptions[a]){c.doRemoveListener(a,e.fn||e,e.scope||b.scope)}}}}else {c.doRemoveListener(a,h,g)}return c},onBefore:function(a,e,c,b){return this.addListener(a,e,c,b,'before')},onAfter:function(a,e,c,b){return this.addListener(a,e,c,b,'after')},unBefore:function(a,e,c,b){return this.removeListener(a,e,c,b,'before')},unAfter:function(a,e,c,b){return this.removeListener(a,e,c,b,'after')},addBeforeListener:function(){return this.onBefore.apply(this,arguments)},addAfterListener:function(){return this.onAfter.apply(this,arguments)},removeBeforeListener:function(){return this.unBefore.apply(this,arguments)},removeAfterListener:function(){return this.unAfter.apply(this,arguments)},clearListeners:function(){var c=this,a=c.events,f=c.hasListeners,e,b;if(a){for(b in a){if(a.hasOwnProperty(b)){e=a[b];if(e.isEvent){delete f[b];e.clearListeners()}}}c.events=null}c.clearManagedListeners()},clearManagedListeners:function(){var b=this,a=b.managedListeners,c,e;if(a){b.managedListeners=null;for(c=0,e=a.length;c<e;c++){b.removeManagedListenerItem(!0,a[c])}a.length=0}b.managedListeners=a},removeManagedListenerItem:function(b,a,g,f,e,c){if(b||(a.item===g&&a.ename===f&&(!e||a.fn===e)&&(!c||a.scope===c))){if(!a.item.destroyed){a.item.doRemoveListener(a.ename,a.fn,a.scope,a.options)}if(!b){Ext.Array.remove(this.managedListeners,a)}}},hasListener:function(a){a=Ext.canonicalEventName(a);return !!this.hasListeners[a]},isSuspended:function(a){var b=this.eventsSuspended>0,c=this.events;if(!b&&a&&c){a=c[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var e=this,f=e.events,g=arguments.length,c,b,a;for(c=0;c<g;c++){a=arguments[c];a=Ext.canonicalEventName(a);b=f[a];if(!b||!b.isEvent){b=e._initEvent(a)}b.suspend()}},resumeEvent:function(){var c=this.events||0,f=c&&arguments.length,b,a,e;for(b=0;b<f;b++){e=Ext.canonicalEventName(arguments[b]);a=c[e];if(a&&a.resume){a.resume()}}},resumeEvents:function(f){var a=this,c=a.eventQueue,e,b;if(a.eventsSuspended&&!--a.eventsSuspended){delete a.eventQueue;if(!f&&c){e=c.length;for(b=0;b<e;b++){a.fireEventArgs.apply(a,c[b])}}}},relayEvents:function(i,c,j){var g=this,k=c.length,b=0,f,h,e={};if(Ext.isObject(c)){for(b in c){h=c[b];e[b]=g.createRelayer(h)}}else {for(;b<k;b++){f=c[b];e[f]=g.createRelayer(j?j+f:f)}}g.mon(i,e,null,null,undefined);return new a(g,i,e)},createRelayer:function(e,a){var c=this;return function(){return c.fireEventArgs.call(c,e,a?b.apply(arguments,a):arguments)}},enableBubble:function(e){if(e){var f=this,h=(typeof e=='string')?arguments:e,g=f.events,i=g&&h.length,a,b,c;for(c=0;c<i;++c){a=h[c];a=Ext.canonicalEventName(a);b=g[a];if(!b||!b.isEvent){b=f._initEvent(a)}f.hasListeners._incr_(a);b.bubble=!0}}},destroy:function(){this.clearListeners();this.callParent();this.destroyObservable(!0)},destroyObservable:function(c){var a=this,b=a.clearPropertiesOnDestroy;if(a.$observableDestroyed){return}if(!c){a.clearListeners()}if(a.destroyed){if(b){if(b===!0&&!a.$nulled){a.$reap()}if(!a.clearPrototypeOnDestroy){a.fireEvent=a.fireEventArgs=a.fireAction=a.fireEventedAction=Ext.emptyFn}a.events=a.managedListeners=a.eventedBeforeEventNames=null;a.$observableDestroyed=!0}}},privates:{doAddListener:function(c,l,g,a,h,m,i){var b=this,k=!1,f,j;h=h||(a&&a.order);if(h){j=(a&&a.priority);if(!j){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[h]}}c=Ext.canonicalEventName(c);f=(b.events||(b.events={}))[c];if(!f||!f.isEvent){f=b._initEvent(c)}if(l!==e){if(!i&&(g&&g.isObservable&&(g!==b))){i=g}if(f.addListener(l,g,a,m,i)){b.hasListeners._incr_(c);k=!0}}return k},doRemoveListener:function(a,h,g){var f=this,e=!1,c=f.events,b;a=Ext.canonicalEventName(a);b=c&&c[a];if(b&&b.isEvent){if(b.removeListener(h,g)){f.hasListeners._decr_(a);e=!0}}return e},_initEvent:function(a){return (this.events[a]=new Ext.util.Event(this,a))}},deprecated:{'5.0':{methods:{addEvents:null}}}}},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.mixin,'Observable'],function(){var a=this,c=a.prototype,d=function(){},b=function(c){if(!c.HasListeners){var d=c.prototype;d.$observableMixedIn=1;a.prepareClass(c,this);c.onExtended(function(d,b){a.prepareClass(d,null,b)});if(d.onClassMixedIn){Ext.override(c,{onClassMixedIn:function(a){b.call(this,a);this.callParent(arguments)}})}else {d.onClassMixedIn=function(a){b.call(this,a)}}}e.call(this,c)},e=c.onClassMixedIn;d.prototype={_decr_:function(b,a){if(a==null){a=1}if(!(this[b]-=a)){delete this[b]}},_incr_:function(a){if(this.hasOwnProperty(a)){++this[a]}else {this[a]=1}}};c.HasListeners=a.HasListeners=d;a.createAlias({on:'addListener',un:'removeListener',mon:'addManagedListener',mun:'removeManagedListener',setListeners:'addListener'});a.observeClass=a.observe;function getMethodEvent(e){var a=(this.methodEvents=this.methodEvents||{})[e],c,b,d,f=this,g;if(!a){f.methodEvents[e]=a={};a.originalFn=f[e];a.methodName=e;a.before=[];a.after=[];g=function(g,a,h){a=a||f;if(typeof g==='string'){g=a[g]}if((b=g.apply(a,h))!==undefined){if(typeof b=='object'){if(b.returnValue!==undefined){c=b.returnValue}else {c=b}d=!!b.cancel}else if(b===!1){d=!0}else {c=b}}};f[e]=function(){var i=Array.prototype.slice.call(arguments,0),l=i.length,h,j,k;c=b=undefined;d=!1;for(j=0,k=a.before.length;j<k;j++){h=a.before[j];if(h.extraArgs){i.push.apply(i,h.extraArgs)}g(h.fn,h.scope,i);i.length=l;if(d||h.preventDefault){return c}}if((b=a.originalFn.apply(f,i))!==undefined){c=b}for(j=0,k=a.after.length;j<k;j++){h=a.after[j];if(h.extraArgs){i.push.apply(i,h.extraArgs)}g(h.fn,h.scope,i);i.length=l;if(d||h.preventDefault){return c}}return c}}return a}Ext.apply(c,{onClassMixedIn:b,beforeMethod:function(c,e,d,a,b){getMethodEvent.call(this,c).before.push({fn:e,scope:d,extraArgs:b,preventDefault:a})},afterMethod:function(c,e,d,a,b){getMethodEvent.call(this,c).after.push({fn:e,scope:d,extraArgs:b,preventDefault:a})},removeMethodListener:function(f,e,d){var b=getMethodEvent.call(this,f),a,c;for(a=0,c=b.before.length;a<c;a++){if(b.before[a].fn==e&&b.before[a].scope==d){Ext.Array.erase(b.before,a,1);return}}for(a=0,c=b.after.length;a<c;a++){if(b.after[a].fn==e&&b.after[a].scope==d){Ext.Array.erase(b.after,a,1);return}}},toggleEventLogging:function(a){Ext.util.Observable[a?'capture':'releaseCapture'](this,function(b){if(Ext.isDefined(Ext.global.console)){Ext.global.console.log(b,arguments)}})}})}));(Ext.cmd.derive('Ext.util.HashMap',Ext.Base,{generation:0,config:{keyFn:null},constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.clear(!0);b=a.getKeyFn();if(b){a.getKey=b}},getCount:function(){return this.length},getData:function(b,a){if(a===undefined){a=b;b=this.getKey(a)}return [b,a]},getKey:function(a){return a.id},add:function(c,b){var a=this;if(arguments.length===1){b=c;c=a.getKey(b)}if(a.containsKey(c)){return a.replace(c,b)}a.map[c]=b;++a.length;a.generation++;if(a.hasListeners.add){a.fireEvent('add',a,c,b)}return b},replace:function(b,c){var a=this,d=a.map,e;if(arguments.length===1){c=b;b=a.getKey(c)}if(!a.containsKey(b)){a.add(b,c)}e=d[b];d[b]=c;a.generation++;if(a.hasListeners.replace){a.fireEvent('replace',a,b,c,e)}return c},remove:function(b){var a=this.findKey(b);if(a!==undefined){return this.removeAtKey(a)}return !1},removeAtKey:function(b){var a=this,c;if(a.containsKey(b)){c=a.map[b];delete a.map[b];--a.length;a.generation++;if(a.hasListeners.remove){a.fireEvent('remove',a,b,c)}return !0}return !1},get:function(a){var b=this.map;return b.hasOwnProperty(a)?b[a]:undefined},clear:function(b){var a=this;if(b||a.generation){a.map={};a.length=0;a.generation=b?0:a.generation+1}if(b!==!0&&a.hasListeners.clear){a.fireEvent('clear',a)}return a},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(!0)},getValues:function(){return this.getArray(!1)},getArray:function(d){var c=[],a,b=this.map;for(a in b){if(b.hasOwnProperty(a)){c.push(d?a:b[a])}}return c},each:function(e,c){var b=Ext.apply({},this.map),a,d=this.length;c=c||this;for(a in b){if(b.hasOwnProperty(a)){if(e.call(c,a,b[a],d)===!1){break}}}return this},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])}}a.resumeEvents();return a},findKey:function(c){var a,b=this.map;for(a in b){if(b.hasOwnProperty(a)&&b[a]===c){return a}}return undefined}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.util,'HashMap'],function(b){var a=b.prototype;a.removeByKey=a.removeAtKey}));(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(a,b){this.types[a]=b;b[this.typeName]=a},isRegistered:function(a){return this.types[a]!==undefined},create:function(a,c){var d=a[this.typeName]||a.type||c,b=this.types[d];return new b(a)},onAvailable:function(d,f,e){var a=this.all,c,b;if(a.containsKey(d)){c=a.get(d);f.call(e||c,c)}else {b=function(h,g,c){if(g==d){f.call(e||c,c);a.un('add',b)}};a.on('add',b)}},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.promise.Consequence',Ext.Base,function(a){return {promise:null,deferred:null,onFulfilled:null,onRejected:null,onProgress:null,constructor:function(c,e,d){var b=this;b.onFulfilled=c;b.onRejected=e;b.onProgress=d;b.deferred=new Ext.promise.Deferred();b.promise=b.deferred.promise},trigger:function(e,d){var b=this,c=b.deferred;switch(e){case 'fulfill':b.propagate(d,b.onFulfilled,c,c.resolve);break;case 'reject':b.propagate(d,b.onRejected,c,c.reject);break;}},update:function(b){if(Ext.isFunction(this.onProgress)){b=this.onProgress(b)}this.deferred.update(b)},propagate:function(d,b,c,e){if(Ext.isFunction(b)){this.schedule(function(){try{c.resolve(b(d))}catch(f){c.reject(f)}})}else {e.call(this.deferred,d)}},schedule:function(c){var b=a.queueSize++;a.queue[b]=c;if(!b){Ext.asap(a.dispatch)}},statics:{queue:new Array(10000),queueSize:0,dispatch:function(){var c=a.queue,d,b;for(b=0;b<a.queueSize;++b){d=c[b];c[b]=null;d()}a.queueSize=0}}}},1,0,0,0,0,0,[Ext.promise,'Consequence'],0));(Ext.cmd.derive('Ext.promise.Deferred',Ext.Base,{promise:null,consequences:[],completed:!1,completionAction:null,completionValue:null,constructor:function(){var a=this;a.promise=new Ext.promise.Promise(a);a.consequences=[];a.completed=!1;a.completionAction=null;a.completionValue=null},then:function(c,e,d){var a=this,b=new Ext.promise.Consequence(c,e,d);if(a.completed){b.trigger(a.completionAction,a.completionValue)}else {a.consequences.push(b)}return b.promise},resolve:function(a){var b=this,c,d;if(b.completed){return}try{if(a===b.promise){throw new TypeError('A Promise cannot be resolved with itself.')}if(a!=null&&(typeof a==='object'||Ext.isFunction(a))&&Ext.isFunction(d=a.then)){c=!1;try{d.call(a,function(d){if(!c){c=!0;b.resolve(d)}},function(d){if(!c){c=!0;b.reject(d)}})}catch(e){if(!c){b.reject(e)}}}else {b.complete('fulfill',a)}}catch(f){b.reject(f)}},reject:function(a){if(this.completed){return}this.complete('reject',a)},update:function(e){var b=this.consequences,c,a,d;if(this.completed){return}for(a=0,d=b.length;a<d;a++){c=b[a];c.update(e)}},complete:function(f,g){var a=this,c=a.consequences,d,b,e;a.completionAction=f;a.completionValue=g;a.completed=!0;for(b=0,e=c.length;b<e;b++){d=c[b];d.trigger(a.completionAction,a.completionValue)}a.consequences=null}},1,0,0,0,0,0,[Ext.promise,'Deferred'],0));(Ext.cmd.derive('Ext.promise.Promise',Ext.Base,function(a){var b;return {statics:{CancellationError:Ext.global.CancellationError||Error,_ready:function(){b=Ext.promise.Deferred},all:function(c){return a.when(c).then(function(f){var g=new b(),e=f.length,h=new Array(e),d,j,k,i,l;if(!e){g.resolve(h)}else {k=function(d,b){return a.when(d).then(function(i){h[b]=i;if(!--e){g.resolve(h)}return i},function(e){return g.reject(e)})};for(d=i=0,l=f.length;i<l;d=++i){j=f[d];if(d in f){k(j,d)}else {e--}}}return g.promise})},is:function(b){return b!=null&&(typeof b==='object'||Ext.isFunction(b))&&Ext.isFunction(b.then)},race:function(e){var d=new b(),f=e.length,c;for(c=0;c<f;++c){d.resolve(e[c])}return d.promise},rethrowError:function(b){Ext.asap(function(){throw b})},when:function(d){var c=new b();c.resolve(d);return c.promise}},owner:null,constructor:function(b){this.owner=b},then:function(b,d,c,e){var f;if(arguments.length===1&&Ext.isObject(arguments[0])){f=arguments[0];b=f.success;d=f.failure;c=f.progress;e=f.scope}if(e){if(b){b=b.bind(e)}if(d){d=d.bind(e)}if(c){c=c.bind(e)}}return this.owner.then(b,d,c)},'catch':function(b,c){var d;if(arguments.length===1&&Ext.isObject(arguments[0])){d=arguments[0];b=d.fn;c=d.scope}if(c!=null){b=b.bind(c)}return this.owner.then(null,b)},otherwise:function(b,c){return this['catch'].apply(this,arguments)},always:function(b,c){var d;if(arguments.length===1&&Ext.isObject(arguments[0])){d=arguments[0];b=d.fn;c=d.scope}if(c!=null){b=b.bind(c)}return this.owner.then(function(d){try{b()}catch(e){a.rethrowError(e)}return d},function(d){try{b()}catch(e){a.rethrowError(e)}throw d})},done:function(){this.owner.then(null,a.rethrowError)},cancel:function(b){if(b==null){b=null}this.owner.reject(new this.self.CancellationError(b))},log:function(b){if(b==null){b=''}return this.owner.then(function(c){Ext.log(""+(b||'Promise')+" resolved with value: "+c);return c},function(c){Ext.log(""+(b||'Promise')+" rejected with reason: "+c);throw c})}}},1,0,0,0,0,0,[Ext.promise,'Promise'],function(a){a._ready()}));(Ext.cmd.derive('Ext.Promise',Ext.Base,function(){var a;return {statics:{_ready:function(){a=Ext.promise.Promise},all:function(){return a.all.apply(a,arguments)},race:function(){return a.race.apply(a,arguments)},reject:function(b){var a=new Ext.promise.Deferred();a.reject(b);return a.promise},resolve:function(b){var a=new Ext.promise.Deferred();a.resolve(b);return a.promise}},constructor:function(b){var a=new Ext.promise.Deferred();b(a.resolve.bind(a),a.reject.bind(a));return a.promise}}},1,0,0,0,0,0,[Ext,'Promise'],function(b){var a=Ext.global.Promise;if(a&&a.resolve&&!Ext.useExtPromises){Ext.Promise=a}else {b._ready()}}));(Ext.cmd.derive('Ext.Deferred',Ext.promise.Deferred,function(a){var b,c,d,e;return {statics:{_ready:function(){b=Ext.promise.Promise;e=Ext.Promise.resolve},all:function(){return b.all.apply(b,arguments)},any:function(b){return a.some(b,1).then(function(c){return c[0]},function(c){if(c instanceof Error&&c.message==='Too few Promises were resolved.'){Ext.raise('No Promises were resolved.')}else {throw c}})},delay:function(d,c){var b;if(arguments.length===1){c=d;d=undefined}c=Math.max(c,1);b=new a();b.timeoutId=Ext.defer(function(){delete b.timeoutId;b.resolve(d)},c);return b.promise},getCachedRejected:function(){if(!c){c=Ext.Promise.reject()}return c},getCachedResolved:function(){if(!d){d=Ext.Promise.resolve()}return d},map:function(b,c){return a.resolved(b).then(function(d){var e,g,j,h,k,f,i,l;h=d.length;f=new Array(d.length);e=new a();if(!h){e.resolve(f)}else {k=function(i,g){return a.resolved(i).then(function(e){return c(e,g,f)}).then(function(j){f[g]=j;if(!--h){e.resolve(f)}return j},function(f){return e.reject(f)})};for(g=i=0,l=d.length;i<l;g=++i){j=d[g];if(g in d){k(j,g)}else {h--}}}return e.promise})},memoize:function(e,b,d){var c=Ext.Function.memoize(e,b,d);return function(){return a.all(Ext.Array.slice(arguments)).then(function(f){return c.apply(b,f)})}},parallel:function(d,b){if(b==null){b=null}var c=Ext.Array.slice(arguments,2);return a.map(d,function(e){if(!Ext.isFunction(e)){throw new Error('Invalid parameter: expected a function.')}return e.apply(b,c)})},pipeline:function(d,c,b){if(b==null){b=null}return a.reduce(d,function(f,e){if(!Ext.isFunction(e)){throw new Error('Invalid parameter: expected a function.')}return e.call(b,f)},c)},race:function(){return b.race.apply(b,arguments)},reduce:function(e,d,c){var b=arguments.length===3;return a.resolved(e).then(function(f){var g=[f,function(b,g,h){return a.resolved(b).then(function(i){return a.resolved(g).then(function(j){return d(i,j,h,f)})})}];if(b){g.push(c)}return Ext.Array.reduce.apply(Ext.Array,g)})},rejected:function(c){var b=new Ext.Deferred();b.reject(c);return b.promise},resolved:function(c){var b=new Ext.Deferred();b.resolve(c);return b.promise},sequence:function(d,b){if(b==null){b=null}var c=Ext.Array.slice(arguments,2);return a.reduce(d,function(e,f){if(!Ext.isFunction(f)){throw new Error('Invalid parameter: expected a function.')}return a.resolved(f.apply(b,c)).then(function(c){e.push(c);return e})},[])},some:function(c,b){return a.resolved(c).then(function(e){var f,g,m,l,k,h,d,i,j,n;i=[];d=b;h=(e.length-d)+1;f=new a();if(e.length<b){f.reject(new Error('Too few Promises were resolved.'))}else {l=function(g){if(d>0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j<n;g=++j){k=e[g];if(g in e){a.resolved(k).then(l,m)}}}return f.promise})},timeout:function(d,e){var c=new a(),b;b=Ext.defer(function(){if(b){c.reject(new Error('Promise timed out.'))}},e);a.resolved(d).then(function(f){Ext.undefer(b);b=null;c.resolve(f)},function(f){Ext.undefer(b);b=null;c.reject(f)});return c.promise}}}},0,0,0,0,0,0,[Ext,'Deferred'],function(a){a._ready()}));Ext.Factory=function(b){var a=this;a.aliasPrefix=b+'.';a.cache={};a.name=b.replace(a.fixNameRe,a.fixNameFn);a.type=b;a.creator='create'+Ext.String.capitalize(a.name)};Ext.Factory.prototype={defaultProperty:'type',instanceProp:'isInstance',typeProperty:'type',create:function(a,f){var e=this,g=Ext.ClassManager,j=e.cache,i=e.typeProperty,h,d,b,c;if(a){if(a[e.instanceProp]){return a}if(typeof a==='string'){c=a;a={};a[e.defaultProperty]=c}d=a.xclass;c=a[i]}if(f&&f.constructor===Object){a=Ext.apply({},a,f);f=f[i]}if(d){if(!(b=g.get(d))){return g.instantiate(d,a)}}else {if(!(c=c||f||e.defaultType)){b=e.defaultClass}if(!b&&!(b=j[c])){h=e.aliasPrefix+c;d=g.getNameByAlias(h);if(!(b=d&&g.get(d))){return g.instantiateByAlias(h,a)}j[c]=b}}return b.isInstance?b:new b(a)},fixNameRe:/\.[a-z]/ig,fixNameFn:function(a){return a.substring(1).toUpperCase()},clearCache:function(){this.cache={};this.instanceCache={}},hook:function(c){var a=this,b=a.create;a.create=function(f,e){var d=c.call(a,b,f,e);if(d===undefined){d=b.call(a,f,e)}return d}},update:function(c,a,h,g,j){var f=this,d,e,i,b;if(!a||a.isInstance){if(c&&c!==a){c.destroy()}return a}if(typeof a==='string'){b=a;a={};a[f.defaultProperty]=b}if(c){if(a===!0){return c}if(!(b=a.xclass)){if(!(b=a.xtype)){b=a[f.typeProperty];if(b){b=f.aliasPrefix+b;d=c.self.prototype;if(d.hasOwnProperty('alias')){d=d.alias;if(d){i=d===b||d.indexOf(b)>-1}}}}else {i=c.isXType(b,!0)}}else {i=c.$className===b}if(i){c.setConfig(a);return c}c.destroy()}if(a===!0){a={}}if(h){if(j){e=Ext.Config.map[j];e=h[e.names.get]();if(e){a=Ext.merge(Ext.clone(e),a)}}g=g||f.creator;if(h[g]){a=h[g](a)}}return f.create(a)}};Ext.Factory.define=function(e,b){var d=Ext.Factory,g=b&&b.cacheable,f,a,c;if(e.constructor===Object){Ext.Object.each(e,d.define,d)}else {a=new Ext.Factory(e);if(b){if(b.constructor===Object){Ext.apply(a,b);if(typeof (f=a.xclass)==='string'){a.defaultClass=Ext.ClassManager.get(f)}}else {a.defaultType=b}}d[a.name]=c=function(d,c){return a.create(d,c)};if(g){a.instanceCache={};a.hook(function(g,c,f){var d=this.instanceCache,a;if(typeof c==='string'&&!(a=d[c])){a=g.call(this,c,f);if(a.cacheable!==!1){d[c]=a}}return a})}c.instance=a;c.update=function(f,h,g,d,c){return a.update(f,h,g,d,c)}}return c};Ext.Factory.clearCaches=function(){var b=Ext.Factory,c,a;for(c in b){a=b[c];a=a.instance;if(a){a.clearCache()}}};Ext.Factory.on=function(a,b){Ext.Factory[a].instance.hook(b)};(Ext.cmd.derive('Ext.mixin.Factoryable',Ext.Base,{mixinId:'factoryable',onClassMixedIn:function(c){var d=c.prototype,f=d.factoryConfig,a=d.alias,b={},e,g;a=a&&a.length&&a[0];if(a&&(e=a.lastIndexOf('.'))>0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}},0,0,0,0,0,0,[Ext.mixin,'Factoryable'],0));(Ext.cmd.derive('Ext.data.request.Base',Ext.Base,{factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){var a=this,c=a.result,b=new Ext.Deferred();if(a.completed){if(a.success){b.resolve(c)}else {b.reject(c)}}a.deferred=b;return b},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}a.completed=!0},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){this.timer=Ext.undefer(this.timer)},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.request,'Base'],0));(Ext.cmd.derive('Ext.data.flash.BinaryXhr',Ext.Base,{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById("ext-flash-polyfill");Ext.GlobalEvents.fireEvent("flashready")},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.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'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a="/plugins/flash/FlashPlugin.swf";if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d="11.4.0";var e="playerProductInstall.swf";var f={};var b={};b.quality="high";b.bgcolor="#ffffff";b.allowscriptaccess="sameDomain";b.allowfullscreen="true";var c={};c.id="ext-flash-polyfill";c.name="polyfill";c.align="middle";swfobject.embedSWF(a,"ext-flash-polyfill","0","0",d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:"",responseBytes:null,javascriptId:null,constructor:function(b){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var a=this;Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState==4){return}a.aborted=!0;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(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return (a&&a[b])||null},open:function(c,f,d,e,b){var a=this;a.method=c;a.url=f;a.async=d!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener("flashready",a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b,c;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};c=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!=b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders["content-type"]=b.mimeType}if(a.reason=="complete"){this.responseBytes=a.data;b.responseHeaders["content-length"]=a.data.length}else if(a.reason=="error"||a.reason=="securityError"){this.statusText=a.text;b.responseHeaders["content-length"]=0}},onFlashStateChange:function(b,c){var a=this;if(b==4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}},1,0,0,0,0,0,[Ext.data.flash,'BinaryXhr'],0));(Ext.cmd.derive('Ext.data.request.Ajax',Ext.data.request.Base,{statics:{parseStatus:function(a,b){var c;if(b){if(b.responseType==='arraybuffer'){c=b.byteLength}else if(b.responseText){c=b.responseText.length}}a=a==1223?204:a;var e=(a>=200&&a<300)||a==304||(a==0&&Ext.isNumber(c)),d=!1;if(!e){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:d=!0;break;}}return {success:e,isException:d}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b,g;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){g=a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=a.bindStateChange()}}if(d){a.processXdrRequest(a,b)}Ext.data.request.Base.prototype.start.call(this,f);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();Ext.data.request.Base.prototype.abort.call(this,c);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(d,b,f,e,g){var c=this,a=c.newRequest(d);if(e){a.open(b.method,b.url,f,e,g)}else {if(c.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(d.binary||c.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}if(d.withCredentials||c.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else if(h&&Ext.isDefined(h)){e='application/json'}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:(function(){var c=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject('MSXML2.XMLHTTP.3.0')},function(){return new ActiveXObject('MSXML2.XMLHTTP')},function(){return new ActiveXObject('Microsoft.XMLHTTP')}],b=0,d=c.length,a;for(;b<d;++b){try{a=c[b];a();break}catch(e){}}return a}()),processXdrRequest:function(a,b){var c=this;delete a.headers;a.contentType=a.options.contentType||c.defaultXdrContentType;b.onload=c.bindStateChange(!0);b.onerror=b.ontimeout=c.bindStateChange(!1)},processXdrResponse:function(a,b){a.getAllResponseHeaders=function(){return []};a.getResponseHeader=function(){return ''};a.contentType=b.contentType||this.defaultXdrContentType},bindStateChange:function(a){var b=this;return function(){Ext.elevate(function(){b.onStateChange(a)})}},onStateChange:function(c){var a=this,b=a.xhr;if((b&&b.readyState==4)||a.isXdr){a.clearTimer();a.onComplete(c);a.cleanup()}},onComplete:function(h){var b=this,d=b.owner,a=b.options,e=b.xhr,i={success:!1,isException:!1},f,g,c;if(!e||b.destroyed){return b.result=i}try{f=Ext.data.request.Ajax.parseStatus(e.status,e);if(f.success){f.success=e.readyState===4}}catch(j){f=i}g=b.success=b.isXdr?h:f.success;if(g){c=b.createResponse(e);if(d.hasListeners.requestcomplete){d.fireEvent('requestcomplete',d,c,a)}if(a.success){Ext.callback(a.success,a.scope,[c,a])}}else {if(f.isException||b.aborted||b.timedout){c=b.createException(e)}else {c=b.createResponse(e)}if(d.hasListeners.requestexception){d.fireEvent('requestexception',d,c,a)}if(a.failure){Ext.callback(a.failure,a.scope,[c,a])}}b.result=c;if(a.callback){Ext.callback(a.callback,a.scope,[a,g,c])}d.onRequestComplete(b);Ext.data.request.Base.prototype.onComplete.call(this,h);return c},createResponse:function(a){var d=this,h=d.isXdr,f={},i=h?[]:a.getAllResponseHeaders().replace(/\r\n/g,'\n').split('\n'),g=i.length,e,c,j,b,k;while(g--){e=i[g];c=e.indexOf(':');if(c>=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)==' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {b.responseText=a.responseText;b.responseXML=a.responseXML}return b},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else if(window.Uint8Array){a=e?new Uint8Array(e):[]}else if(Ext.isIE9p){try{a=new VBArray(g).toArray()}catch(i){a=[]}}else if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c<f;c++){a.push(d.charCodeAt(c)&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=!0}}},0,0,0,0,["request.ajax"],0,[Ext.data.request,'Ajax'],0));(Ext.cmd.derive('Ext.data.request.Form',Ext.data.request.Base,{start:function(d){var a=this,c=a.options,b=a.requestOptions;Ext.data.request.Base.prototype.start.call(this,d);a.form=a.upload(c.form,b.url,b.data,c);return a},abort:function(c){var b=this,a;if(b.isLoading()){try{a=b.frame.dom;if(a.stop){a.stop()}else {a.document.execCommand('Stop')}}catch(d){}}Ext.data.request.Base.prototype.abort.call(this,c);b.onComplete();b.cleanup()},cleanup:function(){var a=this,b=a.frame;if(b){b.un('load',a.onComplete,a);Ext.removeNode(b)}a.frame=a.form=null},isLoading:function(){return !!this.frame},upload:function(a,s,o,n){a=Ext.getDom(a);n=n||{};var m=document.createElement('iframe'),e=Ext.get(m),g=e.id,j=[],l='multipart/form-data',r={target:a.target,method:a.method,encoding:a.encoding,enctype:a.enctype,action:a.action},k=function(c,b){d=document.createElement('input');Ext.fly(d).set({type:'hidden',value:b,name:c});a.appendChild(d);j.push(d)},d,f,b,c,q,i,p,h;e.set({name:g,cls:'x-hidden-display',src:Ext.SSL_SECURE_URL,tabIndex:-1});document.body.appendChild(m);document.body.appendChild(a);if(document.frames){document.frames[g].name=g}Ext.fly(a).set({target:g,method:'POST',enctype:l,encoding:l,action:s||r.action});if(o){f=Ext.Object.fromQueryString(o)||{};for(c in f){if(f.hasOwnProperty(c)){b=f[c];if(Ext.isArray(b)){q=b.length;for(i=0;i<q;i++){k(c,b[i])}}else {k(c,b)}}}}this.frame=e;e.on({load:this.onComplete,scope:this,single:!Ext.isOpera});a.submit();document.body.removeChild(a);Ext.fly(a).set(r);for(p=j.length,h=0;h<p;h++){Ext.removeNode(j[h])}return a},getDoc:function(){var a=this.frame.dom;return (a&&(a.contentWindow.document||a.contentDocument))||(window.frames[a.id]||{}).document},getTimeout:function(){return this.options.timeout},onComplete:function(){var b=this,h=b.frame,i=b.owner,d=b.options,g,c,f,e,a;if(!h){return}if(b.aborted||b.timedout){b.result=a=b.createException();a.responseXML=null;a.responseText=Ext.encode({success:!1,message:Ext.String.trim(a.statusText)});a.request=b;g=d.failure;f=!1}else {try{c=b.getDoc();b.result=a={responseText:'',responseXML:null,request:b};if(c){if(Ext.isOpera&&c.location==Ext.SSL_SECURE_URL){return}if(c.body){if((e=c.body.firstChild)&&/pre/i.test(e.tagName)){a.responseText=e.textContent||e.innerText}else if((e=c.getElementsByTagName('textarea')[0])){a.responseText=e.value}else {a.responseText=c.body.textContent||c.body.innerText}}a.responseXML=c.XMLDocument||c;g=d.success;f=!0;a.status=200}else {Ext.raise("Could not acquire a suitable connection for the file upload service.")}}catch(j){b.result=a=b.createException();a.status=400;a.statusText=(j.message||j.description)+'';a.responseText=Ext.encode({success:!1,message:Ext.String.trim(a.statusText)});a.responseXML=null;g=d.failure;f=!1}}b.frame=null;b.success=f;i.fireEvent(f?'requestcomplete':'requestexception',i,a,d);Ext.callback(g,d.scope,[a,d]);Ext.callback(d.callback,d.scope,[d,f,a]);i.onRequestComplete(b);Ext.asap(h.destroy,h);Ext.data.request.Base.prototype.onComplete.call(this)},destroy:function(){this.cleanup();Ext.data.request.Base.prototype.destroy.call(this)}},0,0,0,0,["request.form"],0,[Ext.data.request,'Form'],0));(Ext.cmd.derive('Ext.data.Connection',Ext.Base,{statics:{requestId:0},enctypeRe:/multipart\/form-data/i,config:{url:null,async:!0,username:'',password:'',disableCaching:!0,withCredentials:!1,binary:!1,cors:!1,isXdr:!1,defaultXdrContentType:'text/plain',disableCachingParam:'_dc',timeout:30000,extraParams:null,autoAbort:!1,method:null,defaultHeaders:null,defaultPostHeader:'application/x-www-form-urlencoded; charset=UTF-8',useDefaultXhrHeader:!0,defaultXhrHeader:'XMLHttpRequest'},constructor:function(a){this.mixins.observable.constructor.call(this,a);this.requests={}},request:function(a){a=a||{};var c=this,d,b;if(c.fireEvent('beforerequest',c,a)!==!1){d=c.setOptions(a,a.scope||Ext.global);b=c.createRequest(a,d);return b.start(d.data)}b={status:-1,statusText:'Request cancelled in beforerequest event handler'};Ext.callback(a.callback,a.scope,[a,!1,b]);return Ext.Deferred.rejected([a,!1,b])},createRequest:function(c,e){var a=this,d=c.type||e.type,b;if(!d){d=a.isFormUpload(c)?'form':'ajax'}if(c.autoAbort||a.getAutoAbort()){a.abort()}b=Ext.Factory.request({type:d,owner:a,options:c,requestOptions:e,ownerConfig:a.getConfig()});a.requests[b.id]=b;a.latestId=b.id;return b},isFormUpload:function(a){var b=this.getForm(a);if(b){return a.isUpload||this.enctypeRe.test(b.getAttribute('enctype'))}return !1},getForm:function(a){return Ext.getDom(a.form)},setOptions:function(a,k){var e=this,b=a.params||{},g=e.getExtraParams(),f=a.urlParams,c=a.url||e.getUrl(),l=a.cors,i=a.jsonData,h,j,d;if(l!==undefined){e.setCors(l)}if(Ext.isFunction(b)){b=b.call(k,a)}if(Ext.isFunction(c)){c=c.call(k,a)}c=this.setupUrl(a,c);d=a.rawData||a.binaryData||a.xmlData||i||null;if(i&&!Ext.isPrimitive(i)){d=Ext.encode(d)}if(a.binaryData){if(e.nativeBinaryPostSupport()){d=(new Uint8Array(a.binaryData));if((Ext.isChrome&&Ext.chromeVersion<22)||Ext.isSafari||Ext.isGecko){d=d.buffer}}}if(Ext.isObject(b)){b=Ext.Object.toQueryString(b)}if(Ext.isObject(g)){g=Ext.Object.toQueryString(g)}b=b+((g)?((b)?'&':'')+g:'');f=Ext.isObject(f)?Ext.Object.toQueryString(f):f;b=this.setupParams(a,b);h=(a.method||e.getMethod()||((b||d)?'POST':'GET')).toUpperCase();this.setupMethod(a,h);j=a.disableCaching!==!1?(a.disableCaching||e.getDisableCaching()):!1;if(h==='GET'&&j){c=Ext.urlAppend(c,(a.disableCachingParam||e.getDisableCachingParam())+'='+(new Date().getTime()))}if((h=='GET'||d)&&b){c=Ext.urlAppend(c,b);b=null}if(f){c=Ext.urlAppend(c,f)}return {url:c,method:h,data:d||b||null}},setupUrl:function(c,a){var b=this.getForm(c);if(b){a=a||b.action}return a},setupParams:function(c,a){var d=this.getForm(c),b;if(d&&!this.isFormUpload(c)){b=Ext.Element.serializeForm(d);a=a?(a+'&'+b):b}return a},setupMethod:function(a,b){if(this.isFormUpload(a)){return 'POST'}return b},isLoading:function(a){if(!a){a=this.getLatest()}return a?a.isLoading():!1},abort:function(a){if(!a){a=this.getLatest()}if(a&&a.isLoading()){a.abort()}},abortAll:function(){var a=this.requests,b;for(b in a){this.abort(a[b])}},getLatest:function(){var b=this.latestId,a;if(b){a=this.requests[b]}return a||null},clearTimeout:function(a){if(!a){a=this.getLatest()}if(a){a.clearTimer()}},onRequestComplete:function(a){delete this.requests[a.id]},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:!0,autoAbort:!1},0,0,0,0,0,0,[Ext,'Ajax'],0));(Ext.cmd.derive('Ext.AnimationQueue',Ext.Base,{singleton:!0,constructor:function(){var a=this;a.queue=[];a.taskQueue=[];a.runningQueue=[];a.idleQueue=[];a.isRunning=!1;a.isIdle=!0;a.run=a.run.bind(a);if(Ext.os.is.iOS){a.watchdogTimer=Ext.interval(a.watch,500,a)}},start:function(d,b,c){var a=this;a.queue.push(arguments);if(!a.isRunning){if(a.hasOwnProperty('idleTimer')){Ext.undefer(a.idleTimer);delete a.idleTimer}if(a.hasOwnProperty('idleQueueTimer')){Ext.undefer(a.idleQueueTimer);delete a.idleQueueTimer}a.isIdle=!1;a.isRunning=!0;a.doStart()}},clear:function(){var a=this;Ext.undefer(a.idleTimer);Ext.undefer(a.idleQueueTimer);Ext.unraf(a.animationFrameId);a.idleTimer=a.idleQueueTimer=a.animationFrameId=null;a.queue.length=a.taskQueue.length=a.runningQueue.length=a.idleQueue.length=0;a.isRunning=!1;a.isIdle=!0},watch:function(){if(this.isRunning&&Ext.now()-this.lastRunTime>=500){this.run()}},run:function(){var a=this,d,e;a.animationFrameId=null;if(!a.isRunning){return}var c=a.runningQueue,f=Ext.now(),b,g;a.lastRunTime=f;a.frameStartTime=f;b=a.queue.length;while(b--){d=a.queue[b];e=d[1]&&d[1].getElement&&d[1].getElement();if(e&&e.destroyed){a.queue.splice(b,1)}}c.push.apply(c,a.queue);for(b=0,g=c.length;b<g;b++){a.invoke(c[b])}c.length=0;if(!a.queue.length){a.stop()}if(a.isRunning){a.doIterate()}},doStart:function(){if(!this.animationFrameId){this.animationFrameId=Ext.raf(this.run)}this.lastRunTime=Ext.now()},doIterate:function(){if(!this.animationFrameId){this.animationFrameId=Ext.raf(this.run)}},doStop:function(){if(this.animationFrameId){Ext.unraf(this.animationFrameId)}this.animationFrameId=null},stop:function(h,f,g){var a=this;if(!a.isRunning){return}var d=a.queue,e=d.length,b,c;for(b=0;b<e;b++){c=d[b];if(c[0]===h&&c[1]===f&&c[2]===g){d.splice(b,1);b--;e--}}if(e===0){a.doStop();a.isRunning=!1;if(a.idleQueue.length&&!a.idleTimer){a.idleTimer=Ext.defer(a.whenIdle,100,a)}}},onIdle:function(h,f,g){var a=this,d=a.idleQueue,c,e,b;for(c=0,e=d.length;c<e;c++){b=d[c];if(h===b[0]&&f===b[1]&&g===b[2]){return}}d.push(arguments);if(a.isIdle){a.processIdleQueue()}else if(!a.idleTimer){a.idleTimer=Ext.defer(a.whenIdle,100,a)}},unIdle:function(h,f,g){var a=this,b=a.idleQueue,c,e,d;for(c=0,e=b.length;c<e;c++){d=b[c];if(h===d[0]&&f===d[1]&&g===d[2]){b.splice(c,1);return !0}}if(!b.length&&a.idleTimer){Ext.undefer(a.idleTimer);delete a.idleTimer}if(!b.length&&a.idleQueueTimer){Ext.undefer(a.idleQueueTimer);delete a.idleQueueTimer}return !1},queueTask:function(c,a,b){this.taskQueue.push(arguments);this.processTaskQueue()},dequeueTask:function(g,e,f){var c=this.taskQueue,a,d,b;for(a=0,d=c.length;a<d;a++){b=c[a];if(g===b[0]&&e===b[1]&&f===b[2]){c.splice(a,1);a--;d--}}},invoke:function(b){var a=b[0],c=b[1],d=b[2];a=(typeof a=='string'?c[a]:a);if(Ext.isArray(d)){a.apply(c,d)}else {a.call(c,d)}},whenIdle:function(){delete this.idleTimer;this.isIdle=!0;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()}}},1,0,0,0,0,0,[Ext,'AnimationQueue'],0));(Ext.cmd.derive('Ext.mixin.Bufferable',Ext.Mixin,function(a){return {mixinConfig:{id:'bufferable',before:{destroy:'cancelAllCalls'},extended:function(e,d,c){var b=c.bufferableMethods;if(b){delete c.bufferableMethods;a.processClass(d,b)}}},afterClassMixedIn:function(b){a.processClass(b)},privates:{cancelAllCalls:function(){var b=this.bufferables,c;if(b){for(c in b){b[c].cancel();delete b[c]}}},cancelBufferedCall:function(e,d){var c=this.bufferables,b=c&&c[e];if(b){b[d?'invoke':'cancel']()}return !!b},flushBufferedCall:function(b){return this.cancelBufferedCall(b,!0)},initBufferables:function(){var b=this,c=b.hasOwnProperty('bufferableMethods')&&b.bufferableMethods,d;if(c){a._canonicalize(c);d=b.self.prototype.bufferableMethods;b.bufferableMethods=Ext.merge(Ext.clone(d),c)}return (b.bufferables={})},isCallPending:function(d){var b=this.bufferables,c=b&&b[d];return !!c},statics:{SINGLE:{single:!0},_canonicalize:function(f){var d,b,e,c;for(c in f){e=Ext.String.capitalize(c);b=f[c];d=typeof b;if(d==='number'||d==='string'){f[c]=b={delay:b}}if(typeof (d=b.delay)==='string'){b[d]=!0;delete b.delay}b.capitalized=e;b.name=c;if(!b.fn){b.fn='do'+e}if(!b.flag){b.flag='is'+e+'Pending'}}},_canceller:function(){var b=this,c=b.id;if(c){if(b.delay){Ext.undefer(c)}else if(b.asap){Ext.unasap(c)}else if(b.idle){Ext.un('idle',c,null,a.SINGLE)}else if(b.raf){Ext.unraf(c)}b.id=null}b.args=null;b.target[b.flag]=!1},_invoker:function(){var b=this,d=b.args||Ext.emptyArray,c=b.target;b.cancel();c[b.fn].apply(c,d)},delayCall:function(e,c,i){var f=e.bufferables||e.initBufferables(),h=c.name,b=f[h]||(f[h]=Ext.apply({args:null,cancel:a._canceller,id:null,target:e,invoke:a._invoker},c)),g=c.delay,d=function(){if(b.id){b.id=null;b.invoke()}};if(b.id){b.cancel()}b.args=i;e[b.flag]=!0;if(g){b.id=Ext.defer(d,g)}else if(c.asap){b.id=Ext.asap(d)}else if(c.idle){b.id=d;Ext.on('idle',d,null,a.SINGLE)}else if(c.raf){b.id=Ext.raf(d)}else {b.invoke()}},processClass:function(g,b){var d=g.prototype,c=d.bufferableMethods,f,e;if(b){a._canonicalize(b);if(c){c=Ext.merge(Ext.clone(c),b)}d.bufferableMethods=c||b}else {b=c;a._canonicalize(b);d.bufferables=null}if(b){for(e in b){if(!d[e]){f=b[e];a.processMethod(d,f,Array.prototype.slice)}}}},processMethod:function(b,d,f){var c=d.name,e=d.capitalized;b[c]=function(){return a.delayCall(this,d,f.call(arguments))};b['cancel'+e]=function(){return this.cancelBufferedCall(c)};b['flush'+e]=function(){return this.flushBufferedCall(c)}}}}}},0,0,0,0,0,0,[Ext.mixin,'Bufferable'],0));(Ext.cmd.derive('Ext.ComponentManager',Ext.Base,{alternateClassName:'Ext.ComponentMgr',singleton:!0,count:0,referencesDirty:!0,referenceRepairs:0,typeName:'xtype',bufferableMethods:{handleDocumentMouseDown:'asap'},constructor:function(b){var a=this;Ext.apply(a,b);a.all={};a.byInstanceId={};a.holders={};a.names={};a.references={};a.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 b=this,d=a.getId(),c=b.onAvailableCallbacks;b.all[d]=a;b.byInstanceId[a.$iid]=a;if(a.reference){b.references[d]=a}if(a.name&&a.nameable){b.names[d]=a}if(a.nameHolder||a.referenceHolder){b.holders[d]=a}++b.count;if(!b.hasFocusListener){b.installFocusListener()}c=c&&c[d];if(c&&c.length){b.notifyAvailable(a)}},unregister:function(g){var b=this,h=b.all,f=b.byInstanceId,d=b.holders,c=b.references,e=b.names,a=g.getId();if(a in d){d[a]=null;delete d[a]}if(a in e){e[a]=null;delete e[a]}if(a in c){c[a]=null;delete c[a]}h[a]=null;delete h[a];a=g.$iid;f[a]=null;delete f[a];--b.count},markReferencesDirty:function(){var c=this,a=c.holders,b;if(!c.referencesDirty){for(b in a){a[b].refs=a[b].nameRefs=null}c.referencesDirty=!0}},fixReferences:function(){var a=this,c=a.references,d=a.names,b;if(a.referencesDirty){++a.referenceRepairs;for(b in c){c[b]._fixReference()}for(b in d){d[b]._fixName()}a.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){(b.shift())(a)}},each:function(b,a){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.from(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(b){var g=this,e=b.event,d=e.toComponent=b.toComponent=Ext.Component.from(b.toElement),c=e.fromComponent=b.fromComponent=Ext.Component.from(b.fromElement),f=g.getCommonAncestor(c,d),a;if(d!==c){if(c&&!c.destroyed&&!c.isDestructing()){if(c.handleBlurEvent){c.handleBlurEvent(b)}for(a=c;a&&a!==f;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){b.type='focusleave';a.onFocusLeave(e)}}}if(d&&!d.destroyed&&!d.isDestructing()){if(d.handleFocusEvent){d.handleFocusEvent(b)}for(a=d;a&&a!==f;a=a.getRefOwner()){b.type='focusenter';a.onFocusEnter(e)}}}for(a=f;a;a=a.getRefOwner()){if(!(a.destroying||a.destroyed)){a.onFocusMove(b)}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{doHandleDocumentMouseDown:function(c){var b=Ext.Widget.prototype.floatedSelector,a;if(b){a=Ext.Component.from(c.getTarget(b,Ext.getBody()));if(a){a.toFront(!0)}}},installFocusListener:function(){var a=this;Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0},clearAll:function(){this.all={};this.names={};this.references={};this.onAvailableCallbacks={}},from:function(b,c,f){if(b&&b.isEvent){b=b.target}var a=Ext.getDom(b),i=this.all,h=0,g,e,d;if(typeof c!=='number'){g=Ext.getDom(c);c=Number.MAX_VALUE}while(a&&a.nodeType===1&&h<c&&a!==g){e=a.getAttribute('data-componentid')||a.id;if(e){d=i[e];if(d&&(!f||Ext.ComponentQuery.is(d,f))){return d}h++}a=a.parentNode}return null}}},1,0,0,0,0,[[Ext.mixin.Bufferable.prototype.mixinId||Ext.mixin.Bufferable.$className,Ext.mixin.Bufferable]],[Ext,'ComponentManager',Ext,'ComponentMgr'],function(){var a=Ext.ComponentManager;a.fromElement=a.from;Ext.getCmp=function(b){return a.get(b)};Ext.iidToCmp=function(b){return a.byInstanceId[b]||null};Ext.doEv=function(e,c){var a,b,d;a=Ext.Component.from(c.target);if(a&&!a.destroying&&!a.destroyed&&a.getEventHandlers){b=a.getEventHandlers()[c.type];if(b&&a[b]){d=new Ext.event.Event(c);return a[b](d)}}return !0}}));Ext.ns('Ext.util').Operators={"=":function(a,b){return a==b},"!=":function(a,b){return a!=b},"^=":function(a,b){return a&&a.substr(0,b.length)==b},"$=":function(a,b){return a&&a.substr(a.length-b.length)==b},"*=":function(a,b){return a&&a.indexOf(b)!==-1},"%=":function(a,b){return (a%b)===0},"|=":function(a,b){return a&&(a==b||a.substr(0,b.length+1)==b+'-')},"~=":function(a,b){return a&&(' '+a+' ').indexOf(' '+b+' ')!=-1}};(Ext.cmd.derive('Ext.util.LruCache',Ext.util.HashMap,{config:{maxSize:null},add:function(d,e){var b=this,a,c;b.removeAtKey(d);c=b.last;a={prev:c,next:null,key:d,value:e};if(c){c.next=a}else {b.first=a}b.last=a;Ext.util.HashMap.prototype.add.call(this,d,a);b.prune();return e},insertBefore:function(f,d,a){var c=this,e,b;if(a=this.map[this.findKey(a)]){e=c.findKey(d);if(e){c.unlinkEntry(b=c.map[e])}else {b={prev:a.prev,next:a,key:f,value:d}}if(a.prev){b.prev.next=b}else {c.first=b}b.next=a;a.prev=b;c.prune();return d}else {return c.add(f,d)}},get:function(b){var a=this.map[b];if(a){if(a.next){this.moveToEnd(a)}return a.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.call(this,a)},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 b=[],a=this.first;while(a){b.push(c?a.key:a.value);a=a.next}return b},each:function(f,c,d){var b=this,a=d?b.last:b.first,e=b.length;c=c||b;while(a){if(f.call(c,a.key,a.value,e)===!1){break}a=d?a.prev:a.next}return b},findKey:function(c){var a,b=this.map;for(a in b){if(b.hasOwnProperty(a)&&b[a].value===c){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 a=this,c=a.getMaxSize(),b=c?(a.length-c):0;if(b>0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}}},0,0,0,0,0,0,[Ext.util,'LruCache'],0));(Ext.cmd.derive('Ext.ComponentQuery',Ext.Base,{singleton:!0},0,0,0,0,0,0,[Ext,'ComponentQuery'],function(){var a=this,h=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,d=/^(\s)+/,c=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['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(''),b=function(b,a){return a.method.apply(this,[b].concat(a.args))},g=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c<e;c++){a=d[c];if(a.getRefItems){b=b.concat(a.getRefItems(f))}}return b},e=function(d){var c=[],b=0,e=d.length,a;for(;b<e;b++){a=d[b];while(!!(a=a.getRefOwner())){c.push(a)}}return c},i=function(b,e,f){if(e==='*'){return b.slice()}else {var d=[],c=0,g=b.length,a;for(;c<g;c++){a=b[c];if(!a.destroyed&&a.isXType(e,f)){d.push(a)}}return d}},l=function(n,c,f,d){var e=[],k=0,o=n.length,i,l,b,a,g,m,j;if(c.charAt(0)==='@'){i=!0;c=c.substr(1)}if(c.charAt(0)==='?'){i=!0;l=!0;c=c.substr(1)}for(;k<o;k++){b=n[k];j=b.self&&b.self.getConfigurator&&b.self.$config.configs[c];if(j){a=b[j.names.get]()}else if(i&&!b.hasOwnProperty(c)){continue}else {a=b[c]}if(l){e.push(b)}else if(f==='~='){if(a){if(!Ext.isArray(a)){a=a.split(' ')}for(g=0,m=a.length;g<m;g++){if(h[f](Ext.coerce(a[g],d),d)){e.push(b);break}}}}else if(f==='/='){if(a!=null&&d.test(a)){e.push(b)}}else if(!d?!!a:h[f](Ext.coerce(a,d),d)){e.push(b)}}return e},f=function(e,h,f){var c=[],b=0,g=e.length,a,d;for(;b<g;b++){a=e[b];d=f?a.id:a.getItemId();if(d===h){c.push(a)}}return c},n=function(b,d,c){return a.pseudos[d](b,c)},p=/^(\s?([>\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:i,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(c,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(b){var g=b[0],f=b[1],e=b[2],a=b[4],d;if(a!==undefined){a=a.replace(c,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:f},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(c,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a<d;a++){e=c[a];b=b.concat(this._execute(f,e))}return b},_execute:function(c,h){var f=0,i=h.length,d,a;if(!c){a=Ext.ComponentManager.getAll()}else if(Ext.isIterable(c)){a=c}else if(c.isMixedCollection){a=c.items}for(;f<i;f++){d=h[f];if(d.mode==='^'){a=e(a||[c])}else if(d.mode){a=g(a||[c],d.mode)}else {a=b(a||g([c]),d)}if(f===i-1){return a}}return []},is:function(f,g){var c=this.operations,b=!1,d=c.length,e,a;if(d===0){return !0}for(a=0;a<d;a++){e=c[a];b=this._is(f,g,e);if(b){return b}}return !1},_is:function(o,n,m){var l=m.length,a=[o],i,d,h,c,j,k;for(d=l-1;d>=0;--d){i=m[d];c=i.mode;if(c){if(c==='^'){a=g(a,' ')}else if(c==='>'){j=[];for(h=0,l=a.length;h<l;++h){k=a[h].getRefOwner();if(k){j.push(k)}}a=j}else {a=e(a)}}else {a=b(a,i)}if(a.length===0){return !1}}if(n){if(!c){a=e(a)}if(a.length>0){a=b(a,{method:f,args:[n.id,!0]})}if(a.length===0){return !1}}return !0},getMatches:function(a,d){var e=d.length,c;for(c=0;c<e;++c){a=b(a,d[c]);if(a.length===0){break}}return a},isMultiMatch:function(){return this.operations.length>1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c<g;++c){b=d[c];if(!a.is(b,f)){e[++h]=b}}return e},first:function(a){var b=[];if(a.length>0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b<e;b++){a=d[b];if(a.isFocusable&&a.isFocusable()){c.push(a)}}return c},canfocus:function(d,e){var f=d.length,c=[],b=0,a;for(;b<f;b++){a=d[b];if(a.canFocus&&a.canFocus(!1,e)){c.push(a)}}return c},"nth-child":function(i,a){var d=[],h=r.exec(a==="even"&&"2n"||a==="odd"&&"2n+1"||!q.test(a)&&"n+"+a||a),g=(h[1]||1)-0,e=h[2]-0,b,f,c;for(b=0;f=i[b];b++){c=b+1;if(g===1){if(e===0||c===e){d.push(f)}}else if((c+e)%g===0){d.push(f)}}return d},scrollable:function(d){var e=d.length,c=[],b=0,a;for(;b<e;b++){a=d[b];if(a.scrollable||a._scrollable){c.push(a)}}return c},visible:function(e,a){a=a==='true';var f=e.length,d=[],c=0,b;for(;c<f;c++){b=e[c];if(b.isVisible(a)){d.push(b)}}return d}},query:function(c,j){if(!c){return Ext.ComponentManager.getAll()}var b=[],g=[],h={},d=a.cache.get(c),i,e,f;if(!d){d=a.cache.add(c,a.parse(c))}b=d.execute(j);if(d.isMultiMatch()){i=b.length;for(f=0;f<i;f++){e=b[f];if(!h[e.id]){g.push(e);h[e.id]=!0}}b=g}return b},visitPreOrder:function(c,e,f,d,b){a._visit(!0,c,e,f,d,b)},visitPostOrder:function(c,e,f,d,b){a._visit(!1,c,e,f,d,b)},_visit:function(i,c,b,l,k,e){var j=a.cache.get(c),g=[b],h,m=0,d,f;if(!j){j=a.cache.add(c,a.parse(c))}f=j.is(b);if(b.getRefItems){h=b.getRefItems();m=h.length}if(e){Ext.Array.push(g,e)}if(i){if(f){if(l.apply(k||b,g)===!1){return !1}}}for(d=0;d<m;d++){if(a._visit.call(a,i,c,h[d],l,k,e)===!1){return !1}}if(!i){if(f){if(l.apply(k||b,g)===!1){return !1}}}},is:function(d,b,e){if(!b){return !0}if(typeof b==='function'){return b(d)}else {var c=a.cache.get(b);if(!c){c=a.cache.add(b,a.parse(b))}return c.is(d,e)}},parse:function(g){var d=[],c,f,b,e;c=Ext.splitAndUnescape(g,',');for(b=0,e=c.length;b<e;b++){f=Ext.String.trim(c[b]);d.push(a._parse(f))}return new a.Query({operations:d})},_parse:function(a){var h=[],v=Ext.String.trim,t=k.length,r,e,n,s,j,b,m,l,g,u,q;while(a&&r!==a){r=a;e=a.match(o);if(e){s=e[1];n=v(e[2]).replace(c,'$1');if(s==='#'){h.push({method:f,args:[n]})}else {h.push({method:i,args:[n,Boolean(e[3])]})}a=a.replace(e[0],'').replace(d,'$1')}while(!(j=a.match(p))){for(l=0;a&&l<t;l++){g=k[l];b=a.match(g.re);u=g.method;m=g.argTransform;if(b){if(m){q=m(b)}else {q=b.slice(1)}h.push({method:Ext.isString(g.method)?Ext.functionFactory('items',Ext.String.format.apply(Ext.String,[u].concat(b.slice(1)))):g.method,args:q});a=a.replace(b[0],'').replace(d,'$1');break}if(l===(t-1)){Ext.raise('Invalid ComponentQuery selector: "'+arguments[0]+'"')}}}if(j[1]){h.push({mode:j[2]||j[1]});a=a.replace(j[0],'').replace(d,'')}}return h}});Ext.all=function(){return a.query.apply(a,arguments)};Ext.first=function(){var b=a.query.apply(a,arguments);return (b&&b[0])||null}}));(Ext.cmd.derive('Ext.Evented',Ext.Base,{alternateClassName:'Ext.EventedBase',initialized:!1,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.initialized=!0},onClassExtended:function(f,b){if(!b.hasOwnProperty('eventedConfig')){return}var e=b.config,a=b.eventedConfig,d,c;if(e){Ext.applyIf(e,a)}else {f.addConfig(a)}for(d in a){if(a.hasOwnProperty(d)){c=Ext.Config.get(d);b[c.names.set]=c.eventedSetter||c.getEventedSetter()}}}},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'],clippedCls:'x-clipped',afterSetPosition:Ext.emptyFn,adjustForConstraints:function(a,c){var b=this.getConstrainVector(c,a);if(b){a[0]+=b[0];a[1]+=b[1]}return a},alignTo:function(e,d,f,b){var a=this,c=a.el;return a.setXY(a.getAlignToXY(e,d,f),c.anim&&!!b?c.anim(b):!1)},calculateAnchorXY:function(c,d,e,b){var a=this.getRegion();a.setPosition(0,0);a.translateBy(d||0,e||0);if(b){a.setWidth(b.width);a.setHeight(b.height)}return a.getAnchorPoint(c)},convertPositionSpec:function(a){return Ext.util.Region.getAlignInfo(a)},getAlignToXY:function(b,c,d){var a=this.getAlignToRegion(b,c,d);return [a.x,a.y]},getAlignToRegion:function(a,c,g,h){var d=this,b,f,e;a=Ext.fly(a.el||a);if(!a||!a.dom){}c=d.convertPositionSpec(c);if(c.constrain){if(c.constrain==='!'){b=a}else {b=d.constrainTo||d.container||d.el.parent()}b=Ext.fly(b.el||b).getConstrainRegion()}if(a===Ext.getBody()){e=a.getScroll();g=[e.left,e.top]}f=d.getRegion().alignTo({target:a.getRegion(),inside:b,minHeight:h,offset:g,align:c,axisLock:!0});return f},getAnchorXY:function(g,h,b){var e=this,a=e.getRegion(),c=e.el,f=c.dom.nodeName==='BODY'||c.dom.nodeType===9,d=c.getScroll();if(h){a.setPosition(0,0)}else if(f){a.setPosition(d.left,d.top)}if(b){a.setWidth(b.width);a.setHeight(b.height)}return a.getAnchorPoint(g)},getBox:function(j,k){var a=this,i=k?a.getLocalXY():a.getXY(),e=i[0],f=i[1],d,c,b,g,h;if(a.el.dom.nodeName==='BODY'||a.el.dom.nodeType===9){d=Ext.Element.getViewportWidth();c=Ext.Element.getViewportHeight()}else {d=a.getWidth();c=a.getHeight()}if(j){b=a.getBorderPadding();g=b.beforeX;h=b.beforeY;e+=g;f+=h;d-=(g+b.afterX);c-=(h+b.afterY)}return {x:e,left:e,0:e,y:f,top:f,1:f,width:d,height:c,right:e+d,bottom:f+c}},calculateConstrainedPosition:function(h,c,j,l){var a=this,e,k=a.floatParent,i=k?k.getTargetEl():null,d,g,b,f=!1;if(j&&k){d=i.getXY();g=i.getBorderPadding();d[0]+=g.beforeX;d[1]+=g.beforeY;if(c){b=[c[0]+d[0],c[1]+d[1]]}}else {b=c}h=h||a.constrainTo||i||a.container||a.el.parent();if(j&&b){b=a.reverseTranslateXY(b)}e=((a.constrainHeader&&a.header.rendered)?a.header:a).getConstrainVector(h,b,l);if(e){f=c||a.getPosition(j);f[0]+=e[0];f[1]+=e[1]}return f},getConstrainRegion:function(){var k=this,a=k.el,j=a.dom.nodeName==='BODY',h=a.dom,g=a.getBorders(),i=a.getXY(),e=i[0]+g.beforeX,f=i[1]+g.beforeY,c,d,b;if(j){c=a.getScroll();e=c.left;f=c.top;d=Ext.Element.getViewportWidth();b=Ext.Element.getViewportHeight()}else {d=h.clientWidth;b=h.clientHeight}return new Ext.util.Region(f,e+d,f+b,e)},getConstrainVector:function(a,h,i){var e=this,b=e.getRegion(),d=[0,0],g=(e.shadow&&e.constrainShadow&&!e.shadowDisabled)?e.el.shadow.getShadowSize():undefined,f=!1,c=e.constraintInsets;if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a);a=a.getConstrainRegion()}if(c){c=Ext.isObject(c)?c:Ext.Element.parseBox(c);a.adjust(c.top,c.right,c.bottom,c.left)}if(h){b.translateBy(h[0]-b.x,h[1]-b.y)}if(i){b.right=b.left+i[0];b.bottom=b.top+i[1]}if(g){a.adjust(g[0],-g[1],-g[2],g[3])}if(b.right>a.right){f=!0;d[0]=(a.right-b.right)}if(b.left+d[0]<a.left){f=!0;d[0]=(a.left-b.left)}if(b.bottom>a.bottom){f=!0;d[1]=(a.bottom-b.bottom)}if(b.top+d[1]<a.top){f=!0;d[1]=(a.top-b.top)}return f?d:!1},getOffsetsTo:function(a){var c=this.getXY(),b=a.isRegion?[a.x,a.y]:Ext.fly(a.el||a).getXY();return [c[0]-b[0],c[1]-b[1]]},getRegion:function(b,c){var a=this.getBox(b,c);return new Ext.util.Region(a.top,a.right,a.bottom,a.left)},getClientRegion:function(){var i=this,d=i.el,f=d.dom,b=i.getBox(!0),e=f.offsetHeight>f.clientHeight,c=f.offsetWidth>f.clientWidth,a,g,h;if(e||c){g=Ext.getScrollbarSize();if(c){c=g.width;h=d.getStyle('direction')==='rtl'&&!Ext.supports.rtlVertScrollbarOnRight;if(h){a=d.getPadding('l');b.left-=a+Math.max(a,c)}else {a=d.getPadding('r');b.right+=a-Math.max(a,c)}}if(e){e=g.height;a=d.getPadding('b');b.bottom+=a-Math.max(a,e)}}return new Ext.util.Region(b.top,b.right,b.bottom,b.left)},getViewRegion:function(){var a=this,i=a.el,j=i.dom.nodeName==='BODY',d,f,h,c,b,g,e;if(j){f=i.getScroll();b=f.left;c=f.top;g=Ext.Element.getViewportWidth();e=Ext.Element.getViewportHeight()}else {d=a.getBorderPadding();h=a.getXY();b=h[0]+d.beforeX;c=h[1]+d.beforeY;g=a.getWidth(!0);e=a.getHeight(!0)}return new Ext.util.Region(c,b+g,c+e,b)},move:function(a,b,l){var j=this,k=j.getXY(),c=k[0],d=k[1],i=[c-b,d],g=[c+b,d],f=[c,d-b],e=[c,d+b],h={l:i,left:i,r:g,right:g,t:f,top:f,up:f,b:e,bottom:e,down:e};a=a.toLowerCase();j.setXY([h[a][0],h[a][1]],l)},setBox:function(a){var b=this,c,d;if(a.isRegion){a={x:a.left,y:a.top,width:a.right-a.left,height:a.bottom-a.top}}b.constrainBox(a);c=a.x;d=a.y;b.setXY([c,d]);b.setSize(a.width,a.height);b.afterSetPosition(c,d);return b},constrainBox:function(a){var c=this,b,d,e;if(c.constrain||c.constrainHeader){d=('x' in a)?a.x:a.left;e=('y' in a)?a.y:a.top;b=c.calculateConstrainedPosition(null,[d,e],!1,[a.width,a.height]);if(b){a.x=b[0];a.y=b[1]}}},translatePoints:function(b,c){var a=this.translateXY(b,c);return {left:a.x,top:a.y}},translateXY:function(a,g){var f=this,e=f.el,d=e.getStyle(f._positionTopLeft),h=d.position==='relative',b=parseFloat(d.left),c=parseFloat(d.top),i=f.getXY();if(Ext.isArray(a)){g=a[1];a=a[0]}if(isNaN(b)){b=h?0:e.dom.offsetLeft}if(isNaN(c)){c=h?0:e.dom.offsetTop}b=(typeof a==='number')?a-i[0]+b:undefined;c=(typeof g==='number')?g-i[1]+c:undefined;return {x:b,y:c}},reverseTranslateXY:function(d){var h=d,b=this.el,i=b.dom,a=i.offsetParent,g,c,e,f;if(a){g=b.isStyle('position','relative'),c=Ext.fly(a).getXY(),e=d[0]+c[0]+a.clientLeft;f=d[1]+c[1]+a.clientTop;if(g){e+=b.getPadding('l');f+=b.getPadding('t')}h=[e,f]}return h},privates:{clipTo:function(h,g){var f,b=this.el,j=b.getRegion(),e,c,a=[],l=this.clippedCls,d,i,k;if(h.isRegion){f=h}else {f=(h.isComponent?h.el:Ext.fly(h)).getConstrainRegion()}if(!g){g=15}if(g&1&&(e=f.top-j.top)>0){a[0]=e;i=!0}else {a[0]=-10000}if(g&2&&(e=j.right-f.right)>0){a[1]=Math.max(0,b.getWidth()-e);i=!0}else {a[1]=10000}if(g&4&&(e=j.bottom-f.bottom)>0){a[2]=Math.max(0,b.getHeight()-e);i=!0}else {a[2]=10000}if(g&8&&(e=f.left-j.left)>0){a[3]=e;i=!0}else {a[3]=-10000}d='rect(';for(c=0;c<4;++c){d+=Ext.Element.addUnits(a[c],'px');d+=(c===3)?')':','}b.dom.style.clip=d;b.addCls(l);if((k=b.shadow)&&(b=k.el)&&b.dom){a[2]-=k.offsets.y;a[3]-=k.offsets.x;d='rect(';for(c=0;c<4;++c){d+=Ext.Element.addUnits(a[c],'px');d+=(c===3)?')':','}b.dom.style.clip=d;if(i&&!Ext.supports.CSS3BoxShadow){b.dom.style.display='none'}else {b.dom.style.display='';b.addCls(l)}}},clearClip:function(){var a=this.el,b=this.clippedCls;a.dom.style.clip=Ext.isIE8?'auto':'';a.removeCls(b);if(a.shadow&&a.shadow.el&&a.shadow.el.dom){a.shadow.el.dom.style.clip=Ext.isIE8?'auto':'';if(!Ext.supports.CSS3BoxShadow){a.dom.style.display='';a.removeCls(b)}}}}},0,0,0,0,0,0,[Ext.util,'Positionable'],0));Ext.define('Ext.overrides.util.Positionable',{override:'Ext.util.Positionable',anchorTo:function(e,f,i,h,c,g){var a=this,d=!Ext.isEmpty(c),b=function(){a.mixins.positionable.alignTo.call(a,e,f,i,h);Ext.callback(g,a)},j=a.getAnchor();a.removeAnchor();Ext.apply(j,{fn:b,scroll:d});Ext.on('resize',b,null);if(d){Ext.getWin().on('scroll',b,null,{buffer:!isNaN(c)?c:50})}b();return a},getAnchor:function(){var c=this.el,b,a;if(!c||!c.dom){return}b=c.getData();a=b._anchor;if(!a){a=b._anchor={}}return a},alignTo:function(g,f,h,d){var a=this,e=a.el,b,c;if(a.isComponent&&a.getSizeModel().height.shrinkWrap){if(a.maxHeight){a.setMaxHeight(null)}b=!0}c=a.getAlignToRegion(g,f,h,a.minHeight||150);a.setXY([c.x,c.y],e.anim&&!!d?e.anim(d):!1);if(b&&(b=c.getHeight())!==a.getHeight()){a.setMaxHeight(b)}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(a,c){var b=this;if(a.isRegion){a={x:a.left,y:a.top,width:a.right-a.left,height:a.bottom-a.top}}if(c){b.constrainBox(a);b.animate(Ext.applyIf({to:a,listeners:{afteranimate:Ext.Function.bind(b.afterSetPosition,b,[a.x,a.y])}},c))}else {arguments.callee.$previous.call(this,a)}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);Ext.getDetachedBody().dom.appendChild(a.dom)},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){if(a.dom){a.hide();b.getPool().checkIn(a)}b.el=null}b.hidden=!0},realign:function(d,e,c,b){var h=this,g=h.el,f=h.target,a=h.offsets,i=Math.max;if(g){if(d==null){d=f.getX()}if(e==null){e=f.getY()}if(c==null){c=f.getWidth()}if(b==null){b=f.getHeight()}if(a){d=d+a.x;e=e+a.y;c=i(c+a.w,0);b=i(b+a.h,0)}g.setXY([d,e]);g.setSize(c,b)}},setZIndex:function(a){this.zIndex=a;if(this.el){this.el.setStyle("z-index",a)}},show:function(){var a=this,f=a.target,c=a.zIndex,b=a.el,e=a.getInsertionTarget().dom,d;if(!b){b=a.el=a.getPool().checkOut()}a.beforeShow();if(c==null){c=(parseInt(f.getStyle("z-index"),10))}if(c){b.setStyle("z-index",c)}b.setStyle('position',a.fixed?'fixed':'');d=b.dom;if(d.nextSibling!==e){f.dom.parentNode.insertBefore(d,e)}b.show();a.realign();a.hidden=!1}},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(f){var d=this,e,c,a,b;Ext.dom.Underlay.prototype.constructor.call(this,f);d.elementConfig={cls:d.cls,role:'presentation'};a=d.offset;b=Math.floor(a/2);d.opacity=50;switch(d.mode.toLowerCase()){case "drop":e={x:0,y:0,w:a,h:a};if(Ext.supports.CSS3BoxShadow){c={x:a,y:a,h:-a,w:-a}}else {c={x:-b,y:-b,h:-b,w:-b}};break;case "sides":e={x:-a,y:0,w:a*2,h:a};if(Ext.supports.CSS3BoxShadow){c={x:0,y:a,h:-a,w:0}}else {c={x:1+b-2*a,y:-(1+b),h:-1,w:b-1}};break;case "frame":e={x:-a,y:-a,w:a*2,h:a*2};if(Ext.supports.CSS3BoxShadow){c={x:0,y:0,h:0,w:0}}else {c={x:1+b-2*a,y:1+b-2*a,h:a-b-1,w:a-b-1}};break;case "bottom":e={x:-a,y:0,w:a*2,h:a};if(Ext.supports.CSS3BoxShadow){c={x:0,y:a,h:-a,w:0}}else {c={x:0,y:a,h:0,w:0}};break;}d.offsets=c;d.outerOffsets=e},getShadowSize:function(){var b=this,a=b.el?b.offset:0,c=[a,a,a,a],d=b.mode.toLowerCase();if(b.el&&d!=='frame'){c[0]=0;if(d=='drop'){c[3]=0}}return c},boxShadowProperty:(function(){var a='boxShadow',b=document.documentElement.style;if(!('boxShadow' in b)){if('WebkitBoxShadow' in b){a='WebkitBoxShadow'}else if('MozBoxShadow' in b){a='MozBoxShadow'}}return a}()),beforeShow:function(){var a=this,b=a.el.dom.style,c=a.shim;if(Ext.supports.CSS3BoxShadow){b[a.boxShadowProperty]='0 0 '+(a.offset+2)+'px #888'}else {b.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+a.opacity+") progid:DXImageTransform.Microsoft.Blur(pixelradius="+(a.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,f,a,e,d){var b=this,c=!1,g=b.name,j=Ext.event.publisher.Dom.instance.directEvents[g],k,l,i;a=a||{};if(a.delegated===!1||j){if(j&&a.delegate){a.capture=!0}if(a.capture){i=b.directCaptures||(b.directCaptures=new Ext.util.Event(b.observable,g));c=i.addListener(h,f,a,e,d)}else {l=b.directs||(b.directs=new Ext.util.Event(b.observable,g));c=l.addListener(h,f,a,e,d)}}else if(a.capture){k=b.captures||(b.captures=new Ext.util.Event(b.observable,g));c=k.addListener(h,f,a,e,d)}else {c=Ext.util.Event.prototype.addListener.call(this,h,f,a,e,d)}return c},removeListener:function(c,b){var e=this,g=e.captures,h=e.directs,f=e.directCaptures,d=!1,a=e.findListener(c,b);if(a!==-1){d=Ext.util.Event.prototype.removeListener.call(this,c,b,a)}else {if(h){a=h.findListener(c,b)}if(a!==-1){d=h.removeListener(c,b,a)}else {if(g){a=g.findListener(c,b)}if(a!==-1){d=g.removeListener(c,b,a)}else if(f){a=f.findListener(c,b);if(a!==-1){d=f.removeListener(c,b,a)}}}}return d},clearListeners:function(){var a=this,b=a.directCaptures,d=a.directs,c=a.captures;if(b){b.clearListeners()}if(d){d.clearListeners()}if(c){c.clearListeners()}Ext.util.Event.prototype.clearListeners.call(this)},suspend:function(){var a=this,b=a.directCaptures,d=a.directs,c=a.captures;if(b){b.suspend()}if(d){d.suspend()}if(c){c.suspend()}Ext.util.Event.prototype.suspend.call(this)},resume:function(){var a=this,b=a.directCaptures,d=a.directs,c=a.captures;if(b){b.resume()}if(d){d.resume()}if(c){c.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,{isEventPublisher:!0,$vetoClearingPrototypeOnDestroy:!0,handledEvents:[],statics:{publishers:{},publishersByEvent:{}},constructor:function(){var a=this,b=a.type;a.handles={};a.registerEvents();Ext.event.publisher.Publisher.publishers[b]=a},registerEvents:function(f){var c=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=f||c.handledEvents,g=d.length,b,a;for(a=0;a<g;a++){b=d[a];c.handles[b]=1;e[b]=c}},fire:function(c,b,d){var a;if(c.hasListeners[b]){a=c.events[b];if(a){a.fire.apply(a,d)}}}},1,0,0,0,0,0,[Ext.event.publisher,'Publisher'],0));(Ext.cmd.derive('Ext.util.Offset',Ext.Base,{statics:{fromObject:function(a){if(a instanceof this){return a}if(typeof a==='number'){return new this(a,a)}if(a.length){return new this(a[0],a[1])}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)},add:function(a){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,function(){var a=Ext.util,j=/([^\?!]*)(!|\?)?$/,p=/^(?:(?:([trbl])(\d+))|(tl|t|tc|tr|l|c|r|bl|b|bc|br))(?:-(?:(?:([trbl])(\d+))|(tl|t|tc|tr|l|c|r|bl|b|bc|br)))?$/i,e={l:0,r:100,t:0,b:100,c:50},f={l:100,r:0,t:0,b:100,c:50},d={b:0,l:1,t:2,r:3},o={"tl-tr":"l0-r0","tl-r":"l0-r50","bl-r":"l100-r50","bl-br":"l100-r100","tr-tl":"r0-l0","tr-l":"r0-l50","br-l":"r100-l50","br-bl":"r100-l100"},l={"tl-tr":"r0-l0","tl-r":"r0-l50","bl-r":"r100-l50","bl-br":"r100-l100","tr-tl":"l0-r0","tr-l":"l0-r50","br-l":"l100-r50","br-bl":"l100-r100"},b=[],m=new a.Offset(0,0),k=function(b){var g=a.Region,h=typeof b,f,d,c,e;if(b==null){return g.EMPTY}if(b.isRegion){return b}if(b.isElement||b.nodeType===1){return this.getRegion(b)}if(h==='string'){b=b.split(' ');switch(b.length){case 1:b[1]=b[2]=b[3]=b[0];break;case 2:b[2]=b[0];b[3]=b[1];break;case 3:b[3]=b[1];}f=parseInt(b[0],10)||0;d=parseInt(b[1],10)||0;c=parseInt(b[2],10)||0;e=parseInt(b[3],10)||0}else if(h==='number'){f=d=c=e=b}else if(typeof b.x==='number'){f=b.y;e=b.x;if(typeof b.right==='number'){d=b.right;c=b.bottom}else {d=e+b.width;c=f+b.height}}return new g(f,d,c,e)},n=[-1,1,1,-1],g=function(c,e,d){if(d!=null&&e){b[0]=b[1]=b[2]=b[3]=0;b[d]=e.y*n[d];c=a.Region.from(c);c.adjust.apply(c,b)}return c},c=function(d,b,i,m,l){var h=Math.ceil(m.x),k=Math.ceil(h/2)+3,g,f,c,e,j,n,o;if(l&&!l.intersect(d)){return}if(i!=null){if(i&1){if(b.getHeight()<h+4){return}g=d.top+k-b.height;f=d.bottom-k-1;b.setPosition(b.x,Math.min(Math.max(b.y,g),f));g=b.top+2;f=b.bottom-(h+2);e=i===3;n=e?b.right:b.left;j=new a.Region(Math.max(b.top,d.top),n,Math.min(b.bottom,d.bottom),n);c=new a.Region(0,0,0,0).setWidth(m.y).setHeight(h).alignTo({target:j,align:e?'l-r':'r-l',overlap:!0});c.setPosition(c.x,Math.min(Math.max(c.y,g),f));c.position=e?'right':'left'}else {if(b.getWidth()<h+4){return}g=d.left+k-b.width;f=d.right-k-1;b.setPosition(Math.min(Math.max(b.x,g),f),b.y);g=b.left+2;f=b.right-(h+2);e=i===0;o=e?b.bottom:b.top;j=new a.Region(o,Math.min(b.right,d.right),o,Math.max(b.left,d.left));c=new a.Region(0,0,0,0).setWidth(h).setHeight(m.y).alignTo({target:j,align:e?'t-b':'b-t',overlap:!0});c.setPosition(Math.min(Math.max(c.x,g),f),c.y);c.position=e?'bottom':'top'}if(l&&!l.contains(c)){return}b.anchor=c;b.anchor.align=i}},h=function(c,a,e,b){var d;if(c&&b){if(a.top>=e.bottom&&a.bottom>b.bottom){a.setHeight(Math.max(a.getHeight()+b.bottom-a.bottom,c));a.constrainHeight=!0}else if(a.bottom<=e.top&&a.top<b.top){d=Math.max(a.getHeight()+a.top-b.top,c);a.adjust(a.getHeight()-d);a.constrainHeight=!0}else if(a.getHeight()>b.getHeight()){a.setHeight(Math.max(c,b.getHeight()));a.setPosition(a.x,0);a.constrainHeight=!0}}},i=function(c,a,e,b){var d;if(c&&b){if(a.left>=e.right&&a.right>b.right){a.setWidth(Math.max(a.getWidth()+b.right-a.right,c));a.constrainWidth=!0}else if(a.right<=e.left&&a.left<b.left){d=Math.max(a.getWidth()+a.left-b.left,c);a.adjust(0,0,0,a.getWidth()-d);a.constrainWidth=!0}else if(a.getWidth()>b.getWidth()){a.setWidth(Math.max(c,b.getWidth()));a.setPosition(0,a.y);a.constrainWidth=!0}}};return {isRegion:!0,statics:{getRegion:function(a){return Ext.fly(a).getRegion()},from:function(a){return new this(a.top,a.right,a.bottom,a.left)},getAlignInfo:function(a,i){if(typeof a==='object'){return a}a=a?((a.indexOf('-')<0)?'tl-'+a:a):'tl-bl';g=j.exec(a);a=g[1];a=(i?l:o)[a]||a;var h=i?f:e,g,c=p.exec(a),b;b={myEdge:c[1],myOffset:c[2],otherEdge:c[4],otherOffset:c[5],constrain:g[2]};if(c[3]){b.myEdge=c[3][0];b.myOffset=h[c[3][1]];if(b.myOffset==null){b.myOffset=50}}if(c[6]){b.otherEdge=c[6][0];b.otherOffset=h[c[6][1]];if(b.otherOffset==null){b.otherOffset=50}}b.position=d[b.myEdge];return b}},constructor:function(e,c,b,d){var a=this;a.y=a.top=a[1]=e;a.right=c;a.bottom=b;a.x=a.left=a[0]=d;a.height=a.bottom-a.top;a.width=a.right-a.left},setPosition:function(a,b){if(arguments.length===1){b=a[1];a=a[0]}return this.translateBy(a-this.x,b-this.y)},contains:function(a){var b=this;return (a.x>=b.x&&(a.right||a.x)<=b.right&&a.y>=b.y&&(a.bottom||a.y)<=b.bottom)},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},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);a.height=a.bottom-a.top;a.width=a.right-a.left;return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e||0;a.left=a.x+=d||0;a.right+=c||0;a.bottom+=b||0;a.height=a.bottom-a.top;a.width=a.right-a.left;return a},getOutOfBoundOffset:function(c,b){if(!Ext.isObject(c)){if(c==='x'){return this.getOutOfBoundOffsetX(b)}else {return this.getOutOfBoundOffsetY(b)}}else {b=c;var d=new a.Offset();d.x=this.getOutOfBoundOffsetX(b.x);d.y=this.getOutOfBoundOffsetY(b.y);return d}},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(b,a){if(!Ext.isObject(b)){if(b==='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return (this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y))}},isOutOfBoundX:function(a){return (a<this.x||a>this.right)},isOutOfBoundY:function(a){return (a<this.y||a>this.bottom)},restrict:function(d,a,b){if(Ext.isObject(d)){var c;b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d==='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else if(a>=this.right){a-=(a-this.right)*b}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else if(a>=this.bottom){a-=(a-this.bottom)*b}return a},alignTo:function(h){var l=this,r=l.self,x=a.Offset,w=Ext.Element,e=k(h.target),p,o=h.rtl,q=h.overlap,f=h.align,i=h.anchorSize,m=h.offset,d=h.inside,j=h.position,t=h.allowXTranslate,u=h.allowYTranslate,n,b,v,s;if(m){m=x.fromObject(m)}if(i){i=x.fromObject(i)}if(d&&!d.isRegion){if(Ext.getDom(d)===document.body){d=new r(0,w.getDocumentWidth(),w.getDocumentHeight(),0)}else {d=Ext.fly(d).getRegion()}}if(j){if(j.length===2){j=new a.Point(j[0],j[1])}b=new r().copyFrom(l).setPosition(j.x,j.y)}else {f=l.getAlignInfo(f,o);if(d){if(e.x>=d.right){e.setPosition(d.right-1,e.y);if(f.position!==3){f=l.getAlignInfo('r-l',o)}}else if(e.right<d.x){e.setPosition(d.x-e.getWidth()+1,e.y);if(f.position!==1){f=l.getAlignInfo('l-r',o)}}if(e.y>=d.bottom){e.setPosition(e.x,d.bottom-1);if(f.position!==0){f=l.getAlignInfo('b-t',o)}}else if(e.bottom<d.y){e.setPosition(e.x,d.y-e.getHeight()+1);if(f.position!==2){f=l.getAlignInfo('t-b',o)}}}p=i?g(e,i,f.position):e;b=r.from(l).translateBy(l.getAlignToVector(p,f));q=!!b.intersect(p);if(m&&(q||!i)){b.translateBy(m)}if(i){c(e,b,f.position,i,d)}}if(d){v=b.copy();if(b.left<d.left){b.translateBy(d.left-b.left,0);n=!0}if(b.right>d.right&&b.left>d.left){b.translateBy(d.right-b.right,0);n=!0}if(b.top<d.top){b.translateBy(0,d.top-b.top);n=!0}if(b.bottom>d.bottom&&b.top>d.top){b.translateBy(0,d.bottom-b.bottom);n=!0}if(n&&!q){b.anchor=null;if(h.axisLock){if(f.position&1){u=!1}else {t=!1}}if(j){if(b.contains(j)){j.exclude(b,{inside:d,centerOnSideChange:!1})}}else {s=b.copy();if(b.intersect(p)){f.position=e.exclude(b,{initialPosition:v,defaultPosition:f.position,inside:d,minHeight:h.minHeight,minWidth:h.minWidth,allowX:t,allowY:u,offset:m,anchorHeight:i?i.y:0,centerOnSideChange:!!i})}else if(h.minWidth&&b.getWidth()>d.getWidth()){b.setPosition(0,b.y);b.setWidth(Math.max(d.getWidth(),h.minWidth));b.constrainWidth=!0}else if(h.minHeight&&b.getHeight()>d.getHeight()){b.setPosition(b.x,0);b.setHeight(Math.max(d.getHeight(),h.minHeight));b.constrainHeight=!0}b.align=f;if(d.contains(b)){if(i){c(e,b,f.position,i,d)}}else {b=s}}}}return b},exclude:function(d,e){e=e||{};var j=this,s=e.initialPosition||d,n=e.inside,r=e.defaultPosition,u=e.centerOnSideChange,v=e.minHeight,w=e.minWidth,x=e.allowX!==!1,y=e.allowY!==!1,k=e.anchorHeight,g=e.offset,l=[],c,b,t,f,q,p,o;if(!g){g=m}if(y){l.push([0,j.top-d.bottom-k+g.y,'b-t',0,Math.abs(j.top-s.bottom-k+g.y)]);l.push([0,j.bottom-d.top+k+g.y,'t-b',2,Math.abs(j.bottom-s.top+k+g.y)])}else {u=!1}if(x){l.push([j.left-d.right-k+g.x,0,'r-l',3,Math.abs(j.left-s.right-k+g.x)]);l.push([j.right-d.left+k+g.x,0,'l-r',1,Math.abs(j.right-s.left+k+g.x)])}else {u=!1}Ext.Array.sort(l,function(b,c){var a=b[4]-c[4];if(!a){if(b[3]===r){return -1}if(c[3]===r){return 1}}return a});if(n){for(t=0;t<l.length;t++){b=l[t];c=a.Region.from(d);c.translateBy.apply(c,b);if(n.contains(c)){d.copyFrom(c);o={align:b[2],position:b[3],distance:b[4]};break}if(v){h(v,c,j,n);if(n.contains(c)){if(!f||c.getArea()>f.region.getArea()){f={region:c,align:b[2],position:b[3],distance:b[4]}}}}if(w){i(w,c,j,n);if(n.contains(c)){if(!f||c.getArea()>f.region.getArea()){f={region:c,align:b[2],position:b[3],distance:b[4]}}}}p=n.intersect(c);if(p){p=p.getArea();if(!q||(p&&q.area<p)){q={region:c,align:b[2],position:b[3],distance:b[4],area:p}}}}if(!o){if(f){d.copyFrom(f.region);o=f;d.constrainWidth=f.region.constrainWidth;d.constrainHeight=f.region.constrainHeight}else if(q){d.copyFrom(q.region);o=q}}if(o){if((o.position&1)!==(r&1)){if(o.distance&&u){b=d.alignTo({align:o.align,target:j,anchorSize:k,offset:g,axisLock:!0,inside:n,minHeight:e.minHeight,minWidth:e.minWidth});if(n.contains(b)){d.setPosition(b.x,b.y)}}}return o.position}}else {d.translateBy.apply(d,l[0]);return l[0][3]}return r},getAlignToXY:function(b,c,d){var a=this.getAlignToVector(b,c,d);return [this.x+a[0],this.y+a[1]]},getAnchorPoint:function(a,b){a=(typeof a==='string')?this.getAlignInfo(a+'-tl',b):a;return this['getAnchorPoint_'+a.myEdge](a.myOffset)},getAlignToVector:function(d,a,e){a=(typeof a==='string')?this.getAlignInfo(a,e):a;var c=this['getAnchorPoint_'+a.myEdge](a.myOffset),b=d['getAnchorPoint_'+a.otherEdge](a.otherOffset);return [b[0]-c[0],b[1]-c[1]]},getAnchorPoint_t:function(a){return [this.x+Math.round(this.getWidth()*(a/100)),this.y]},getAnchorPoint_b:function(a){return [this.x+Math.round(this.getWidth()*(a/100)),this.bottom]},getAnchorPoint_l:function(a){return [this.x,this.y+Math.round(this.getHeight()*(a/100))]},getAnchorPoint_r:function(a){return [this.right,this.y+Math.round(this.getHeight()*(a/100))]},getAnchorPoint_c:function(){return [this.x+Math.round(this.getWidth()/2),this.y+Math.round(this.getHeight()/2)]},getCenter:function(){return [this.x+this.width/2,this.y+this.height/2]},getHeight:function(){return this.bottom-this.y},getWidth:function(){return this.right-this.x},getArea:function(){return this.getHeight()*this.getWidth()},setHeight:function(a){this.height=a;this.bottom=this.top+a;return this},setWidth:function(a){this.width=a;this.right=this.left+a;return this},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},setSize:function(b,a){if(a===undefined){a=b}this.setWidth(b);return this.setHeight(a)},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 a},toString:function(){return "Region["+this.top+","+this.right+","+this.bottom+","+this.left+"]"},translateBy:function(a,c){if(a.length){c=a[1];a=a[0]}else 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)},getOffsetsTo:function(a){return {x:this.x-a.x,y:this.y-a.y}}}},3,0,0,0,0,0,[Ext.util,'Region'],function(a){a.prototype.getAlignInfo=a.getAlignInfo;a.EMPTY=new a(0,0,0,0)}));(Ext.cmd.derive('Ext.util.Point',Ext.util.Region,{isPoint:!0,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+"]"},equals:function(a){return (this.x===a.x&&this.y===a.y)},isCloseTo:function(b,a){if(typeof a=='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return (this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-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(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*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',stopped:!1,claimed:!1,defaultPrevented:!1,isEvent:!0,geckoRelatedTargetEvents:{blur:1,dragenter:1,dragleave:1,focus:1},statics:{resolveTextNode:function(a){return (a&&a.nodeType===3)?a.parentNode:a},gestureEvents:{},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,focusin:1,focusenter:1},blurEvents:{blur:1,focusout:1,focusleave:1},pointerTypeMap:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'},keyEventRe:/^key/,keyFlags:{CTRL:'ctrlKey',CONTROL:'ctrlKey',ALT:'altKey',SHIFT:'shiftKey',CMD:'metaKey',COMMAND:'metaKey',CMDORCTRL:Ext.isMac?'metaKey':'ctrlKey',COMMANDORCONTROL:Ext.isMac?'metaKey':'ctrlKey',META:'metaKey'},modifierGlyphs:{ctrlKey:'⌃',altKey:'⌥',metaKey:Ext.isMac?'⌘':'⊞',shiftKey:'⇧'},specialKeyGlyphs:{BACKSPACE:'⌫',TAB:'⇥',ENTER:'⏎',RETURN:'⏎',SPACE:'␣',PAGE_UP:'⇞',PAGE_DOWN:'⇟',END:'⇲',HOME:'⌂',LEFT:'←',UP:'↑',RIGHT:'→',DOWN:'↓',PRINT_SCREEN:'⎙',INSERT:'⎀',DELETE:'⌦',CONTEXT_MENU:'☰'},_hyphenRe:/^[a-z]+\-/i,getKeyId:function(b){if(typeof b==='number'){b=this.keyCodes[b]}else {b=b.toUpperCase()}var c=this,e=c._hyphenRe.test(b)?'-':'+',f=(b===e)?[e]:b.split(e),g=f.length-1,i=f[g],a=[],h,d;for(d=0;d<g;d++){h=c.keyFlags[f[d]];a[h]=!0}if(a.ctrlKey){a.push(c.modifierGlyphs.ctrlKey)}if(a.altKey){a.push(c.modifierGlyphs.altKey)}if(a.shiftKey){a.push(c.modifierGlyphs.shiftKey)}if(a.metaKey){a.push(c.modifierGlyphs.metaKey)}a.push(this.specialKeyGlyphs[i]||i);return a.join('')},globalTabKeyDown:function(a){if(a.keyCode===9){Ext.event.Event.forwardTab=!a.shiftKey}},globalTabKeyUp:function(a){if(a.keyCode===9){delete Ext.event.Event.forwardTab}}},constructor:function(b){var a=this,c=a.self,g=a.self.resolveTextNode,i=b.changedTouches,f=i?i[0]:b,d=b.type,e,h;a.timeStamp=a.time=Ext.now();a.pageX=f.pageX;a.pageY=f.pageY;a.clientX=f.clientX;a.clientY=f.clientY;a.target=a.delegatedTarget=g(b.target);a.currentTarget=g(b.currentTarget);h=b.relatedTarget;if(h){if(Ext.isGecko&&a.geckoRelatedTargetEvents[d]){try{a.relatedTarget=g(h)}catch(j){a.relatedTarget=null}}else {a.relatedTarget=g(h)}}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.focusEvents[d]||c.blurEvents[d]){if(c.forwardTab!==undefined){a.forwardTab=c.forwardTab}if(c.focusEvents[d]){a.fromElement=b.relatedTarget;a.toElement=b.target}else {a.fromElement=b.target;a.toElement=b.relatedTarget}}else if(d!=='keydown'){delete c.forwardTab}if(c.mouseEvents[d]){e='mouse'}else if(c.clickEvents[d]){e=c.pointerTypeMap[b.pointerType]||(((Ext.now()-Ext.event.publisher.Dom.lastTouchEndTime)<1000)?'touch':'mouse')}else if(c.pointerEvents[d]){e=c.pointerTypeMap[b.pointerType]||'mouse'}else if(c.touchEvents[d]){e='touch'}if(e){a.pointerType=e}a.isMultitouch=b.isPrimary===!1||(b.touches&&b.touches.length>1)},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(a){var c=this.WHEEL_SCALE,b=Math.round(a/c);if(!b&&a){b=(a<0)?-1:1}return b},getChar:function(){var a=this.which();return String.fromCharCode(a)},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.type==='keypress'?String.fromCharCode(this.getCharCode()):this.keyCodes[this.keyCode]},key:function(){return this.browserEvent.key},which:function(){var c=this,b=c.browserEvent,a=b.which;if(a==null){if(c.self.keyEventRe.test(b.type)){a=b.charCode||b.keyCode}else if((a=b.button)!==undefined){a=(a&1)?1:((a&4)?2:((a&2)?3:0))}}return a},getClipboardData:function(a){var b=this.browserEvent.clipboardData,c=Ext.global.clipboardData,d=null,e;a=a||'text/plain';if(b&&b.getData){d=b.getData(a)}else if(c&&c.getData){e=this.ieMimeType[a];if(e){d=c.getData(e)}}return d},getPoint:function(){var b=this,a=b.point,c;if(!a){c=b.getXY();a=b.point=new Ext.util.Point(c[0],c[1])}return a},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a&&a.nodeType){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},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,a=d.browserEvent,c=0,b=0;if(Ext.isDefined(a.wheelDeltaX)){c=a.wheelDeltaX;b=a.wheelDeltaY}else if(a.wheelDelta){b=a.wheelDelta}else if('deltaX' in a){c=a.deltaX;b=-a.deltaY}else if(a.detail){b=-a.detail;if(b>100){b=3}else if(b<-100){b=-3}if(Ext.isDefined(a.axis)&&a.axis===a.HORIZONTAL_AXIS){c=b;b=0}}return {x:d.correctWheelDelta(c),y:d.correctWheelDelta(b)}},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return ((!d||Ext.isGecko)&&b>=33&&b<=40)||(!c&&(b===a.RETURN||b===a.TAB||b===a.ESC))},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return (d&&c&&b.charCode===0)||(this.isNavKeyPress())||(a===b.BACKSPACE)||(a===b.ENTER)||(a>=16&&a<=20)||((!c||d)&&a>=44&&a<=46)},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},mouseupEvents:{mouseup:1,pointerup:1,touchend:1},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}if(a.mouseupEvents[a.type]){Ext.GlobalEvents.fireMouseUp(a)}a.stopped=!0;if(c&&!a.isGesture){c.stopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},claimGesture:function(){var a=this,b=a.parentEvent;a.claimed=!0;if(b&&!a.isGesture){b.claimGesture()}else {a.preventDefault()}return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}if(!a||(c===!1&&a===Ext.getDom(b))){return !1}return Ext.fly(b).contains(a)},privates:{ieMimeType:{"text/plain":'Text'}},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},1,0,0,0,0,0,[Ext.event,'Event',Ext,'EventObjectImpl'],function(b){var 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,META:91,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:120},i={},f=b.gestureEvents,d=b.prototype,a,g,j,e,k,h;if(Ext.isGecko){c.WHEEL_SCALE=3}else if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){h=120}else {h=12}c.WHEEL_SCALE=3*h}Ext.apply(f,b.mouseEvents);Ext.apply(f,b.pointerEvents);Ext.apply(f,b.touchEvents);Ext.apply(b,c);Ext.apply(d,c);delete c.WHEEL_SCALE;delete c.RETURN;for(g in c){j=c[g];i[j]=g}b.keyCodes=d.keyCodes=i;if(!Ext.isIE9m){document.addEventListener('keydown',b.globalTabKeyDown,!0);document.addEventListener('keyup',b.globalTabKeyUp,!0)}d.getTrueXY=d.getXY;if(typeof KeyboardEvent!=='undefined'&&!('key' in KeyboardEvent.prototype)){d._keys=e={3:'Cancel',6:'Help',8:'Backspace',9:'Tab',12:'Clear',13:'Enter',16:'Shift',17:'Control',18:'Alt',19:'Pause',20:'CapsLock',27:'Escape',28:'Convert',29:'NonConvert',30:'Accept',31:'ModeChange',32:' ',33:'PageUp',34:'PageDown',35:'End',36:'Home',37:'ArrowLeft',38:'ArrowUp',39:'ArrowRight',40:'ArrowDown',41:'Select',42:'Print',43:'Execute',44:'PrintScreen',45:'Insert',46:'Delete',48:['0',')'],49:['1','!'],50:['2','@'],51:['3','#'],52:['4','$'],53:['5','%'],54:['6','^'],55:['7','&'],56:['8','*'],57:['9','('],91:'OS',93:'ContextMenu',144:'NumLock',145:'ScrollLock',181:'VolumeMute',182:'VolumeDown',183:'VolumeUp',186:[';',':'],187:['=','+'],188:[',','<'],189:['-','_'],190:['.','>'],191:['/','?'],192:['`','~'],219:['[','{'],220:['\\','|'],221:[']','}'],222:["'",'"'],224:'Meta',225:'AltGraph',246:'Attn',247:'CrSel',248:'ExSel',249:'EraseEof',250:'Play',251:'ZoomOut'};for(a=1;a<25;++a){e[a+111]='F'+a}for(a=0;a<26;++a){e[a]=[String.fromCharCode(a+97),String.fromCharCode(a+65)]}d.key=function(){var a=e[this.browserEvent.which||this.keyCode];if(a&&typeof a!=='string'){a=a[+this.shiftKey]}return a}}}));Ext.define('Ext.overrides.event.Event',{override:'Ext.event.Event',injectEvent:(function(){var a,b={},c;if(!Ext.isIE9m&&document.createEvent){a={createHtmlEvent:function(e,d,c,b){var a=e.createEvent('HTMLEvents');a.initEvent(d,c,b);return a},createMouseEvent:function(d,n,h,f,m,b,c,i,k,g,j,l,e){var a=d.createEvent('MouseEvents'),o=d.defaultView||window;if(a.initMouseEvent){a.initMouseEvent(n,h,f,o,m,b,c,b,c,i,k,g,j,l,e)}else {a=d.createEvent('UIEvents');a.initEvent(n,h,f);a.view=o;a.detail=m;a.screenX=b;a.screenY=c;a.clientX=b;a.clientY=c;a.ctrlKey=i;a.altKey=k;a.metaKey=j;a.shiftKey=g;a.button=l;a.relatedTarget=e}return a},createUIEvent:function(b,f,d,c,e){var a=b.createEvent('UIEvents'),g=b.defaultView||window;a.initUIEvent(f,d,c,g,e);return a},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else if(document.createEventObject){c={0:1,1:4,2:2};a={createHtmlEvent:function(d,e,c,b){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},createMouseEvent:function(n,o,i,g,m,b,d,j,l,h,k,e,f){var a=n.createEventObject();a.bubbles=i;a.cancelable=g;a.detail=m;a.screenX=b;a.screenY=d;a.clientX=b;a.clientY=d;a.ctrlKey=j;a.altKey=l;a.shiftKey=h;a.metaKey=k;a.button=c[e]||e;a.relatedTarget=f;return a},createUIEvent:function(d,f,c,b,e){var a=d.createEventObject();a.bubbles=c;a.cancelable=b;return a},fireEvent:function(a,c,b){a.fireEvent('on'+c,b)}}}Ext.Object.each({load:[!1,!1],unload:[!1,!1],select:[!0,!1],change:[!0,!1],submit:[!0,!0],reset:[!0,!1],resize:[!0,!1],scroll:[!0,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createHtmlEvent(c,f,e);a.fireEvent(b,c,g)}});function createMouseEventDispatcher(b,d){var c=(b!=='mousemove');return function(f,e){var g=e.getXY(),h=a.createMouseEvent(f.ownerDocument,b,!0,c,d,g[0],g[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget);a.fireEvent(f,b,h)}}Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(a){b[a]=createMouseEventDispatcher(a,1)});Ext.Object.each({focusin:[!0,!1],focusout:[!0,!1],activate:[!0,!0],focus:[!1,!1],blur:[!1,!1]},function(c,d){var f=d[0],e=d[1];b[c]=function(b,h){var g=a.createUIEvent(b.ownerDocument,c,f,e,1);a.fireEvent(b,c,g)}});if(!a){b={};a={}}function cannotInject(b,a){}return function(a){var c=this,d=b[c.type]||cannotInject,e=a?(a.dom||a):c.getTarget();d(e,c)}}()),preventDefault:function(g){var c=this,a=c.browserEvent,e=c.parentEvent,d,b,f;if(typeof a.type!=='unknown'){if(!g){c.defaultPrevented=!0}if(e){e.defaultPrevented=!0}if(a.preventDefault){a.preventDefault()}else {if(a.type==='mousedown'){b=a.target;d=b.getAttribute('unselectable');if(d!=='on'){b.setAttribute('unselectable','on');f=function(){b.setAttribute('unselectable',d)};Ext.defer(f,1)}}a.returnValue=!1;if(a.ctrlKey||a.keyCode>111&&a.keyCode<124){a.keyCode=-1}}}return c},deprecated:{'5.0':{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var b=this,a;if(Ext.isIE9m){a={0:0,1:0,4:1,2:2};b.override({statics:{enableIEAsync:function(b){var a,c={};for(a in b){c[a]=b[a]}return c}},constructor:function(b,f,e,d){var c=this;c.callParent([b,f,e,d]);c.button=a[b.button];if(b.type==='contextmenu'){c.button=2}c.toElement=b.toElement;c.fromElement=b.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(f,d,e){var a=this,c,b;if(!a.relatedTarget){c=a.type;if(a.mouseLeaveRe.test(c)){b=a.toElement}else if(a.mouseEnterRe.test(c)){b=a.fromElement}if(b){a.relatedTarget=a.self.resolveTextNode(b)}}return a.callParent([f,d,e])}});document.attachEvent('onkeydown',Ext.event.Event.globalTabKeyDown);document.attachEvent('onkeyup',Ext.event.Event.globalTabKeyUp);window.attachEvent('onunload',function(){document.detachEvent('onkeydown',Ext.event.Event.globalTabKeyDown);document.detachEvent('onkeyup',Ext.event.Event.globalTabKeyUp)})}});(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,online:1,offline: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,b=Ext.supports.PassiveEventListener;a.listenerOptions=b?{passive:!1}:!1;a.captureOptions=b?{passive:!1,capture:!0}:!0;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);a.registerDomEvents()},registerDomEvents:function(){var c=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=c.handledDomEvents,f=d.length,a,b;for(a=0;a<f;a++){b=d[a];c.handles[b]=1;e[b]=c}},onReady:function(){var a=this,c=a.handledDomEvents,d,b;if(c){for(b=0,d=c.length;b<d;b++){a.addDelegatedListener(c[b])}}Ext.getWin().on('unload',a.destroy,a,{priority:-10000})},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(b){var a=this;a.delegatedListeners[b]=1;a.target.addEventListener(b,a.onDelegatedEvent,a.captureEvents[b]?a.captureOptions:a.listenerOptions)},removeDelegatedListener:function(b){var a=this;delete a.delegatedListeners[b];a.target.removeEventListener(b,a.onDelegatedEvent,a.captureEvents[b]?a.captureOptions:a.listenerOptions)},addDirectListener:function(c,d,b){var a=this;d.dom.addEventListener(c,b?a.onDirectCaptureEvent:a.onDirectEvent,b?a.captureOptions:a.listenerOptions)},removeDirectListener:function(c,d,b){var a=this;d.dom.removeEventListener(c,b?a.onDirectCaptureEvent:a.onDirectEvent,b?a.captureOptions:a.listenerOptions)},subscribe:function(f,b,g,e){var c=this,a,d;if(g&&!c.directEvents[b]){a=e?c.captureSubscribers:c.bubbleSubscribers;if(!c.handles[b]&&!c.delegatedListeners[b]){c.addDelegatedListener(b)}if(a[b]){++a[b]}else {a[b]=1}}else {a=e?c.directCaptureSubscribers:c.directSubscribers;d=f.id;a=a[b]||(a[b]={});if(a[d]){++a[d]}else {a[d]=1;c.addDirectListener(b,f,e)}}},unsubscribe:function(h,b,i,g){var c=this,e,f,a,d;if(i&&!c.directEvents[b]){e=c.captureSubscribers;f=c.bubbleSubscribers;a=g?e:f;if(a[b]){--a[b]}if(!c.handles[b]&&!f[b]&&!e[b]){this.removeDelegatedListener(b)}}else {a=g?c.directCaptureSubscribers:c.directSubscribers;d=h.id;a=a[b];if(a[d]){--a[d]}if(!a[d]){delete a[d];c.removeDirectListener(b,h,g)}}},getPropagatingTargets:function(d){var a=d,c=[],b;while(a){c.push(a);b=a.parentNode;if(!b){b=a.defaultView}a=b}return c},publish:function(a,i,h){var f=this,j=!1,k=!1,c,m,l,e,d,n,b,g;h=h||!1;if(!i){l=a.target;if(f.captureEvents[a.type]){e=Ext.cache[l.id];i=e?[e]:[]}else {i=f.getPropagatingTargets(l)}}c=Ext.Array.from(a);n=i.length;g=c.length;for(d=0;d<g;d++){m=c[d].type;if(!j&&f.captureSubscribers[m]){j=!0}if(!k&&f.bubbleSubscribers[m]){k=!0}}if(j){for(d=n;d--;){e=Ext.cache[i[d].id];if(e){for(b=0;b<g;b++){a=c[b];f.fire(e,a.type,a,!1,!0);if(!h&&a.claimed){h=!0;b=f.filterClaimed(c,a);g=c.length}if(a.stopped){c.splice(b,1);b--;g--}}}}}if(k&&!a.stopped){for(d=0;d<n;d++){e=Ext.cache[i[d].id];if(e){for(b=0;b<g;b++){a=c[b];f.fire(e,a.type,a,!1,!1);if(!h&&a.claimed&&f.filterClaimed){h=!0;b=f.filterClaimed(c,a);g=c.length}if(a.stopped){c.splice(b,1);b--;g--}}}}}},publishDelegatedDomEvent:function(a){this.publish(a)},fire:function(b,d,c,f,e){var a;if(b.hasListeners[d]){a=b.events[d];if(a){if(e&&f){a=a.directCaptures}else if(e){a=a.captures}else if(f){a=a.directs}if(a){c.setCurrentTarget(b.dom);a.fire(c,c.target)}}}},onDelegatedEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDelegatedEvent,this,[a])}else {this.doDelegatedEvent(a)}},doDelegatedEvent:function(b){var a=this,c;b=new Ext.event.Event(b);c=b.time;if(!a.isEventBlocked(b)){a.beforeEvent(b);Ext.frameStartTime=c;a.reEnterCountAdjusted=!1;a.reEnterCount++;a.publishDelegatedDomEvent(b);if(!a.reEnterCountAdjusted){a.reEnterCount--}a.afterEvent(b)}},onDirectEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDirectEvent,this,[a,!1])}else {this.doDirectEvent(a,!1)}},onDirectCaptureEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDirectEvent,this,[a,!0])}else {this.doDirectEvent(a,!0)}},doDirectEvent:function(a,f){var b=this,e=a.currentTarget,d,c;a=new Ext.event.Event(a);d=a.time;if(b.isEventBlocked(a)){return}b.beforeEvent(a);Ext.frameStartTime=d;c=Ext.cache[e.id];if(c){b.reEnterCountAdjusted=!1;b.reEnterCount++;b.fire(c,a.type,a,!0,f);if(!b.reEnterCountAdjusted){b.reEnterCount--}}b.afterEvent(a)},beforeEvent:function(e){var c=e.browserEvent,d=Ext.event.publisher.Dom,a,b;if(c.type==='touchstart'){a=c.touches;if(a.length===1){b=a[0];d.lastTouchStartX=b.pageX;d.lastTouchStartY=b.pageY}}},afterEvent:function(b){var e=b.browserEvent,a=e.type,c=Ext.event.publisher.Dom,d=Ext.GlobalEvents;if(b.self.pointerEvents[a]&&b.pointerType!=='mouse'){c.lastScreenPointerEventTime=Ext.now()}if(a==='touchend'){c.lastTouchEndTime=Ext.now()}if(!this.reEnterCount&&!d.idleEventMask[a]){Ext.fireIdle()}},isEventBlocked:function(a){var d=this,c=a.type,b=Ext.event.publisher.Dom,e=Ext.now();if(Ext.isGecko&&a.type==='click'&&a.button===2){return !0}return (d.blockedPointerEvents[c]&&a.pointerType!=='mouse')||(d.blockedCompatibilityMouseEvents[c]&&(e-b.lastScreenPointerEventTime<1000))||(Ext.supports.TouchEvents&&a.self.mouseEvents[a.type]&&Math.abs(a.pageX-b.lastTouchStartX)<15&&Math.abs(a.pageY-b.lastTouchStartY)<15&&(Ext.now()-b.lastTouchEndTime)<1000)},destroy:function(){var b=Ext.dom['GarbageCollector'],a;for(a in this.delegatedListeners){this.removeDelegatedListener(a)}Ext.Reaper.flush();if(b){b.collect()}this.callParent()},reset:function(){var a=Ext.event.publisher.Dom;this.reEnterCount=0;a.lastScreenPointerEventTime=a.lastTouchEndTime=a.lastTouchStartX=a.lastTouchStartY=undefined}},1,0,0,0,0,0,[Ext.event.publisher,'Dom'],function(b){var d=document,a=d.defaultView,c=b.prototype;if((Ext.os.is.iOS&&Ext.os.version.getMajor()<5)||Ext.browser.is.AndroidStock||!(a&&a.addEventListener)){c.target=d}else {c.target=a}b.instance=new b()}));Ext.define('Ext.overrides.event.publisher.Dom',{override:'Ext.event.publisher.Dom'},function(b){var g={focus:!0,focusin:!0,focusout:!0,blur:!0};if(Ext.isIE10m){b.override({isEventBlocked:function(d){if(!g[d.type]){return this.callParent([d])}var e=document.body,a=d.browserEvent,c=Ext.synchronouslyFocusing;if(c&&((a.type==='focusout'&&(a.srcElement===c||a.srcElement===window)&&a.toElement===e)||(a.type==='focusin'&&(a.srcElement===e||a.srcElement===window)&&a.fromElement===c&&a.toElement===null))){return !0}return !1}})}if(Ext.isIE9m){var d=document.documentElement,e=document.body,a=b.prototype,c,f;a.target=document;a.directBoundListeners={};c=function(a,c,d){a.target=a.srcElement||window;a.currentTarget=this;if(d){c.onDirectCaptureEvent(a)}else {c.onDirectEvent(a)}};f=function(a,c){a.target=a.srcElement||window;a.currentTarget=this;c.onDirectCaptureEvent(a)};b.override({addDelegatedListener:function(a){this.delegatedListeners[a]=1;this.target.attachEvent('on'+a,this.onDelegatedEvent)},removeDelegatedListener:function(a){delete this.delegatedListeners[a];this.target.detachEvent('on'+a,this.onDelegatedEvent)},addDirectListener:function(a,i,h){var e=this,d=i.dom,g=Ext.Function.bind(c,d,[e,h],!0),f=e.directBoundListeners,j=f[a]||(f[a]={});j[d.id]=g;if(d.attachEvent){d.attachEvent('on'+a,g)}else {e.callParent([a,i,h])}},removeDirectListener:function(a,d,e){var c=d.dom;if(c.detachEvent){c.detachEvent('on'+a,this.directBoundListeners[a][c.id])}else {this.callParent([a,d,e])}},doDelegatedEvent:function(a){a.target=a.srcElement||window;if(a.type==='focusin'){a.relatedTarget=a.fromElement===e||a.fromElement===d?null:a.fromElement}else if(a.type==='focusout'){a.relatedTarget=a.toElement===e||a.toElement===d?null:a.toElement}return this.callParent([a])}});Ext.apply(a.directEvents,a.captureEvents);Ext.apply(a.directEvents,{change:1,input:1,paste:1});a.captureEvents={}}});(Ext.cmd.derive('Ext.event.publisher.Gesture',Ext.event.publisher.Dom,{type:'gesture',isCancelEvent:{touchcancel:1,pointercancel:1,MSPointerCancel:1},isEndEvent:{mouseup:1,touchend:1,pointerup:1,MSPointerUp:1},handledEvents:[],handledDomEvents:[],constructor:function(h){var a=this,c=a.handledDomEvents,g=Ext.supports,f=g.TouchEvents,d=a.onTouchStart,e=a.onTouchMove,b=a.onTouchEnd;a.handlers={touchstart:d,touchmove:e,touchend:b,touchcancel:b,pointerdown:d,pointermove:e,pointerup:b,pointercancel:b,MSPointerDown:d,MSPointerMove:e,MSPointerUp:b,MSPointerCancel:b,mousedown:d,mousemove:e,mouseup:b};a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.recognizers=[];a.eventToRecognizer={};a.cancelEvents=[];if(f){a.onTargetTouchMove=a.onTargetTouchMove.bind(a);a.onTargetTouchEnd=a.onTargetTouchEnd.bind(a)}if(g.PointerEvents){c.push('pointerdown','pointermove','pointerup','pointercancel');a.mousePointerType='mouse'}else if(g.MSPointerEvents){c.push('MSPointerDown','MSPointerMove','MSPointerUp','MSPointerCancel');a.mousePointerType=4}else if(f){c.push('touchstart','touchmove','touchend','touchcancel')}if(!c.length||(f&&Ext.os.is.Desktop)){c.push('mousedown','mousemove','mouseup')}a.initConfig(h);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(c,d){var a=c.priority,b=d.priority;return (a>b)?1:(a<b)?-1:0})},registerRecognizer:function(b){var a=this,d=b.handledEvents,f=d.length,e,c;b.setOnRecognized(a.onRecognized);b.setCallbackScope(a);for(c=0;c<f;c++){e=d[c];a.handledEvents.push(e);a.eventToRecognizer[e]=b}a.registerEvents(d);a.recognizers.push(b)},onRecognized:function(n,o,b,a,p){var c=this,h=b.touches,d=b.changedTouches,k=d.length,i=c.events,l=!i.length,m=c.cancelEvents,f,g,e,j;a=a||{};a.type=o;a.target=d[0].target;a.stopped=!1;a.claimed=!1;a.isGesture=!0;b=b.chain(a);if(!c.gestureTargets){if(k>1){f=[];for(e=0;e<k;e++){j=d[e];f.push(j.targets)}g=c.getCommonTargets(f)}else {g=d[0].targets}c.gestureTargets=g}if(p&&n.isSingleTouch&&(h.length>1)){b.target=h[0].target;m.push(b)}else {i.push(b)}if(l){c.publishGestures()}},getCommonTargets:function(e){var d=e[0],h=e.length;if(h===1){return d}var a=[],g=1,b,f,c;while(!0){b=d[d.length-g];if(!b){return a}for(c=1;c<h;c++){f=e[c];if(f[f.length-g]!==b){return a}}a.unshift(b);g++}return a},invokeRecognizers:function(d,f){var c=this.recognizers,e=c.length,a,b;if(d==='onStart'){for(a=0;a<e;a++){c[a].isActive=!0}}for(a=0;a<e;a++){b=c[a];if(b.isActive&&b[d].call(b,f)===!1){b.isActive=!1}}},filterClaimed:function(c,j){var i=this,g=i.eventToRecognizer,h=j.type,d=g[h],b,e,f,a;for(a=c.length;a--;){f=c[a].type;if(f===h){b=a}else {e=g[f];if(!d||(e&&(e!==d))){c.splice(a,1);if(b){b--}}}}i.claimRecognizer(d,c[0]);return b},claimRecognizer:function(f,g){var c=this,d=c.recognizers,b,e,a;for(b=0,e=d.length;b<e;b++){a=d[b];if(a!==f){a.isActive=!1;a.cancel(g)}}if(c.events.length){c.publishGestures(!0)}},publishGestures:function(e){var a=this,b=a.cancelEvents,c=a.events,d=a.gestureTargets;if(b.length){a.cancelEvents=[];a.publish(b,a.getPropagatingTargets(b[0].target),!0)}if(c.length){a.events=[];a.gestureTargets=null;a.publish(c,d||a.getPropagatingTargets(c[0].target),e)}},updateTouches:function(e){var d=this,m=e.browserEvent,o=e.type,n=m.changedTouches||[m],h=d.activeTouches,g=d.activeTouchesMap,l=[],b,c,a,i,f,p,j,k;for(f=0,p=n.length;f<p;f++){b=n[f];if('identifier' in b){c=b.identifier}else if('pointerId' in b){c=b.pointerId}else {c=1}a=g[c];if(!a){i=Ext.event.Event.resolveTextNode(b.target);a=g[c]={identifier:c,target:i,targets:d.getPropagatingTargets(i)};h.push(a)}if(d.isEndEvent[o]||d.isCancelEvent[o]){delete g[c];Ext.Array.remove(h,a)}j=b.pageX;k=b.pageY;a.pageX=j;a.pageY=k;a.point=new Ext.util.Point(j,k);l.push(a)}e.touches=Ext.Array.clone(h);e.changedTouches=l},publishDelegatedDomEvent:function(a){var b=this;if(!a.button||a.button<1){b.events=[a];a.browserEvent.$extHandled=!0;b.handlers[a.type].call(b,a)}else {Ext.event.publisher.Dom.prototype.publishDelegatedDomEvent.call(this,a)}},onTouchStart:function(b){var a=this,d=b.target,c=b.browserEvent.touches;if(b.browserEvent.type==='touchstart'){d.addEventListener('touchmove',a.onTargetTouchMove);d.addEventListener('touchend',a.onTargetTouchEnd);d.addEventListener('touchcancel',a.onTargetTouchEnd)}if(c&&c.length<=a.activeTouches.length){a.removeGhostTouches(c)}a.updateTouches(b);if(!a.isStarted){if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.pause()}a.isStarted=!0;a.invokeRecognizers('onStart',b)}a.invokeRecognizers('onTouchStart',b);a.publishGestures()},onTouchMove:function(a){var b=this,c=b.mousePointerType,d=b.isStarted;if(d||(a.pointerType!=='mouse')){b.updateTouches(a)}if(d){if(c&&a.browserEvent.pointerType===c&&a.buttons===0){a.type=Ext.dom.Element.prototype.eventMap.touchend;a.button=0;b.onTouchEnd(a);return}if(a.changedTouches.length>0){b.invokeRecognizers('onTouchMove',a)}}b.publishGestures()},onTouchEnd:function(b){var a=this,d=a.isStarted,c;if(d||(b.pointerType!=='mouse')){a.updateTouches(b)}if(!d){a.publishGestures();return}c=a.activeTouches.length;try{a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b)}finally{try{if(!c){a.isStarted=!1;a.invokeRecognizers('onEnd',b)}}finally{try{a.publishGestures()}finally{if(!c){if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}a.reEnterCountAdjusted=!0;a.reEnterCount--}}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(b){var a=this;if(!Ext.getBody().contains(b.target)){a.reEnterCountAdjusted=!1;a.reEnterCount++;this.onTouchMove(new Ext.event.Event(b));if(!a.reEnterCountAdjusted){a.reEnterCount--}}},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.reEnterCountAdjusted=!1;a.reEnterCount++;a.onTouchEnd(new Ext.event.Event(c));if(!a.reEnterCountAdjusted){a.reEnterCount--}}},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;a.gestureTargets=null;a.events=[];a.cancelEvents=[];for(b=0;b<e;b++){c=d[b];c.reset();c.isActive=!1}Ext.event.publisher.Dom.prototype.reset.call(this)},privates:{removeGhostTouches:function(c){var f={},g=c.length,b=this.activeTouches,h=this.activeTouchesMap,a,e,d;for(a=0;a<g;++a){f[c[a].identifier]=!0}a=b.length;while(a--){d=b[a];e=d.identifier;if(!c[e]){Ext.Array.remove(b,d);delete h[e]}}}}},1,0,0,0,0,0,[Ext.event.publisher,'Gesture'],function(a){var c=Event.prototype,b=c.stopPropagation;if(b){c.stopPropagation=function(){var d=this,c=a.instance,f=d.type,e;if(!d.$extHandled&&c.handles[f]){e=new Ext.event.Event(d);c.updateTouches(e);c.invokeRecognizers('onTouchCancel',e);c.reset();c.reEnterCountAdjusted=!0}b.apply(d,arguments)}}a.instance=Ext.$gesturePublisher=new a()}));Ext.define('Ext.overrides.event.publisher.Gesture',{override:'Ext.event.publisher.Gesture'},function(){if(Ext.isIE9m){this.override({updateTouches:function(a,d){var b=a.browserEvent,c=a.getXY();b.pageX=c[0];b.pageY=c[1];this.callParent([a,d])},doDelegatedEvent:function(a){this.callParent([Ext.event.Event.enableIEAsync(a)])}})}});(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(),!0));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 d=this.referenceAttributeName,e,c,b,g,a,f;e=this.elementTemplate.cloneNode(!0);c=e.querySelectorAll(this.referenceSelector);for(b=0,g=c.length;b<g;b++){a=c[b];f=a.getAttribute(d);a.removeAttribute(d);this.linkElement(f,a)}}},0,0,0,0,0,0,[Ext.mixin,'Templatable'],0));(Ext.cmd.derive('Ext.TaskQueue',Ext.Base,{singleton:!0,pending:!1,mode:!0,readQueue:[],writeQueue:[],readRequestId:0,writeRequestId:0,timer:null,constructor:function(){var a=this;a.run=a.run.bind(a);if(Ext.os.is.iOS){a.watchdogTimer=Ext.interval(this.watch,500,this)}},requestRead:function(d,b,c){var a={id:++this.readRequestId,fn:d,scope:b,args:c};this.readQueue.push(a);this.request(!0);return a.id},cancelRead:function(a){this.cancelRequest(this.readQueue,a,!0)},requestWrite:function(e,c,d){var a=this,b={id:++a.writeRequestId,fn:e,scope:c,args:d};a.writeQueue.push(b);a.request(!1);return b.id},cancelWrite:function(a){this.cancelRequest(this.writeQueue,a,!1)},request:function(c,b){var a=this;if(!a.pending){a.pendingTime=Date.now();a.pending=!0;a.mode=c;if(c){a.timer=Ext.defer(a[b]||a.run,1)}else {a.timer=Ext.raf(a[b]||a.run)}}},cancelRequest:function(a,d,c){for(var b=0;b<a.length;b++){if(a[b].id===d){a.splice(b,1);break}}if(!a.length&&this.mode===c&&this.timer){Ext.undefer(this.timer)}},watch:function(){if(this.pending&&Date.now()-this.pendingTime>=500){this.run()}},run:function(e,d,m){var b=this,h=null,f,g,i,c,a,k,j,l;e=e||b.readQueue;d=d||b.writeQueue;b.pending=!1;b.pending=b.timer=!1;if(b.mode){f=e;if(d.length>0){h=!1}}else {f=d;if(e.length>0){h=!0}}g=f.slice();f.length=0;for(j=0,l=g.length;j<l;j++){i=g[j];c=i.fn;a=i.scope;k=i.args;if(a&&(a.destroying||a.destroyed)){continue}if(typeof c==='string'){c=a[c]}if(k){c.apply(a,k)}else {c.call(a)}}g.length=0;if(h!==null){b.request(h,m)}},clear:function(){var a=this,b=a.timer;if(b){if(a.mode){Ext.undefer(b)}else {Ext.unraf(b)}}a.readQueue.length=a.writeQueue.length=0;a.pending=a.timer=!1;a.mode=!0}},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:null,height:null,contentWidth:null,contentHeight:null,constructor:function(b){var a=this;a.refresh=a.refresh.bind(a);a.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};a.initElement();a.initConfig(b);a.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer,!0);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.clientWidth},getContentHeight:function(){return this.detectorsContainer.clientHeight},refreshSize:function(){var e=this.getElement();if(!e||e.destroyed){return !1}var a=this,j=e.measure(),i=j.width,h=j.height,d=a.getContentWidth(),c=a.getContentHeight(),l=a.contentWidth,k=a.contentHeight,b=a.info,g=!1,f;a.width=i;a.height=h;a.contentWidth=d;a.contentHeight=c;f=((l!==d?1:0)+(k!==c?2:0));if(f>0){b.width=i;b.height=h;b.contentWidth=d;b.contentHeight=c;b.flag=f;g=!0;a.getCallback().apply(a.getScope(),a.getArgs())}return g},refresh:function(){if(this.destroying||this.destroyed){return}this.refreshSize();Ext.TaskQueue.requestWrite('refreshMonitors',this)},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls('x-size-monitored')}delete a._element;a.refresh=null;a.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.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=this.onScroll.bind(this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},onScroll:function(){if(!this.destroyed){Ext.TaskQueue.requestRead('refresh',this)}},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}},destroy:function(){this.onScroll=null;Ext.util.sizemonitor.Abstract.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'Scroll'],0));(Ext.cmd.derive('Ext.util.SizeMonitor',Ext.Base,{constructor:function(a){return new Ext.util.sizemonitor.Scroll(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 a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(b){var a=b.id,d=this.subscribers,e=this.monitors,c;if(d[a]&&!--d[a]){delete d[a];c=e[a];b.un('painted','forceRefresh',c);c.destroy();delete e[a]}if(b.activeRead){Ext.TaskQueue.cancelRead(b.activeRead)}},fireElementResize:function(a,b){delete a.activeRead;this.fire(a,'resize',[a,b])},onElementResize:function(a,b){if(!a.activeRead){a.activeRead=Ext.TaskQueue.requestRead('fireElementResize',this,[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=this.onElementPainted.bind(this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:['x-paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement,!0);a.addCls('x-paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls('x-paint-monitored');delete a._element}if(d){d.removeChild(c)}a.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',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(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(c){var a=c.id,b=this.subscribers,d=this.monitors;if(b[a]&&!--b[a]){delete b[a];d[a].destroy();delete d[a]}if(c.activeRead){Ext.TaskQueue.cancelRead(c.activeRead)}},fireElementPainted:function(a){delete a.activeRead;this.fire(a,'painted',[a])},onElementPainted:function(a){if(!a.activeRead){a.activeRead=Ext.TaskQueue.requestRead('fireElementPainted',this,[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(a){var j=window,b=document,i=b.documentElement,l=j.top,P=[],t,z,x,Q='width',O='height',aa='min-width',Z='min-height',_='max-width',Y='max-height',ao='top',aj='right',af='bottom',am='left',$='visibility',ag='hidden',M="display",C="none",ai="z-index",y="position",ab="relative",ah="static",ae=/\w/g,p=/\s+/,S=/[\s]+/,W=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/\?$/,al=/top/i,ak={},d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},h={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},A={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},L={b:'backward',back:'backward',f:'forward'},X=[h.l,h.r,h.t,h.b],I=[d.l,d.r,d.t,d.b],ac=/\d+$/,B=/\d+(px|r?em|%|vh|vw|vmin|vmax|en|ch|ex|pt|in|cm|mm|pc)$/i,J='px',an=/^-ms-/,ad=/(-[a-z])/gi,R=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,v=/^\d+(?:\.\d*)?px$/i,V=/(%|r?em|auto|vh|vw|vmin|vmax|ch|ex)$/i,H={},F='originalDisplay',T=function(c,b){return b.charAt(1).toUpperCase()},K=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;b<f;++b){K(c[b],e)}}}},e=function(b){return parseFloat(b)||0},o='x-hidden-opacity',m='x-hidden-visibility',k='x-hidden-display',n='x-hidden-offsets',q='x-hidden-clip',G=0,D=0,E=!1,s=!1,w=/text|password|search|tel|url/i,r,c,f,N,g,u;try{t=l.__elementIdCounter__}catch(ap){l=j}l.__elementIdCounter=t=(l.__elementIdCounter__||0)+1;z='ext-window-'+t;x='ext-document-'+t;return {alternateClassName:['Ext.Element'],observableType:'element',isElement:!0,skipGarbageCollection:!0,$applyConfigs:!0,identifiablePrefix:'ext-element-',_selectDir:L,styleHooks:{transform:{set:function(e,b,f){var c,d='';if(typeof b!=='string'){for(c in b){if(d){d+=' '}if(c.indexOf('translate')===0){d+=c+'('+a.addUnits(b[c],'px')+')'}else {d+=c+'('+b[c]+')'}}b=d}e.style.transform=b}}},validIdRe:Ext.validIdRe,blockedEvents:Ext.supports.EmulatedMouseOver?{mouseover:1}:{},longpressEvents:{longpress:1,taphold:1},constructor:function(d){var c=this,e;if(typeof d==='string'){d=b.getElementById(d)}if(!d){return null}c.dom=d;e=d.id;if(e){c.id=e}else {e=d.id=c.getUniqueId()}c.el=c;Ext.cache[e]=c;c.longpressListenerCount=0;c.mixins.observable.constructor.call(c)},inheritableStatics:{cache:Ext.cache={},editableSelector:'input,textarea,[contenteditable="true"]',VISIBILITY:1,DISPLAY:2,OFFSETS:3,CLIP:4,OPACITY:5,minKeyboardHeight:100,unitRe:B,useDelegatedEvents:!0,validNodeTypes:{1:1,9:1},selectableCls:'x-selectable',unselectableCls:'x-unselectable',maxRippleDiameter:75,addUnits:function(b,c){if(typeof b==='number'){return b+(c||J)}if(b===""||b==="auto"||b==null){return b||''}if(ac.test(b)){return b+(c||J)}if(!B.test(b)){return b||''}return b},create:function(d,j){var o=this,e,f,m,i,c,h,g,n,l;d=d||{};if(d.isElement){return j?d.dom:d}else if('nodeType' in d){return j?d:Ext.get(d)}if(typeof d==='string'){return b.createTextNode(d)}i=d.tag;if(!i){i='div'}if(d.namespace){f=b.createElementNS(d.namespace,i)}else {f=b.createElement(i)}m=f.style;for(h in d){if(h!=='tag'){c=d[h];switch(h){case 'style':if(typeof c==='string'){f.setAttribute(h,c)}else {for(g in c){if(c.hasOwnProperty(g)){m[g]=c[g]}}};break;case 'className':case 'cls':l=c.split(p);e=e?e.concat(l):l;break;case 'classList':e=e?e.concat(c):c;break;case 'text':f.textContent=c;break;case 'html':f.innerHTML=c;break;case 'hidden':if(e){e.push(k)}else {e=[k]};break;case 'children':if(c!=null){for(g=0,n=c.length;g<n;g++){f.appendChild(o.create(c[g],!0))}};break;default:if(c!=null){f.setAttribute(h,c)};}}}if(e){f.className=e.join(' ')}if(j){return f}else {return o.get(f)}},fly:function(c,b){return Ext.fly(c,b)},fromPoint:(function(){var c;if(Ext.isIE||Ext.isEdge){try{c=window.self!==window.top}catch(aq){c=!0}}return function(e,f,g){var d=null;d=b.elementFromPoint(e,f);if(!d&&c){d=b.elementFromPoint(e,f)}return g?d:Ext.get(d)}})(),fromPagePoint:function(d,e,c){var b=Ext.getDoc().getScroll();return a.fromPoint(d-b.left,e-b.top,c)},get:function(c){var m=this,g=Ext.cache,f,i,e,d,l,h,k;if(!c){return null}if(c.isFly){c=c.dom}if(typeof c==='string'){e=c;if(g.hasOwnProperty(e)){d=g[e];if(d.skipGarbageCollection||!Ext.isGarbage(d.dom)){return d}else {d.destroy()}}if(e===z){return a.get(j)}else if(e===x){return a.get(b)}i=Ext.getElementById?Ext.getElementById(e):b.getElementById(e);if(i){return new a(i)}}f=c.nodeType;if(f){l=(f===9);k=m.validNodeTypes[f]}else {h=(c.window==c)}if(k||h){e=c.id;if(g.hasOwnProperty(e)){d=g[e];if(d.skipGarbageCollection||c===d.dom||!Ext.isGarbage(d.dom)){return d}else {d.destroy()}}if(c===b){c.id=x}if(c==j){c.id=z}c=new a(c);if(h||l){c.skipGarbageCollection=!0}return c}if(c.isElement){return c}if(c.isComposite){return c}if(Ext.isIterable(c)){return m.select(c)}return null},getActiveElement:function(d){var c=b.activeElement;if(!c||!c.focus){c=b.body}return d?Ext.get(c):c},getDocumentHeight:function(){return Math.max(!Ext.isStrict?b.body.scrollHeight:i.scrollHeight,this.getViewportHeight())},getDocumentWidth:function(){return Math.max(!Ext.isStrict?b.body.scrollWidth:i.scrollWidth,this.getViewportWidth())},getOrientation:function(){if(Ext.supports.OrientationChange){return (j.orientation==0)?'portrait':'landscape'}return (j.innerHeight>j.innerWidth)?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return (c!=null)?c:i.clientHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return (c!=null)?c:i.clientWidth},getViewportScale:function(){var b=l;return ((Ext.isiOS||Ext.isAndroid)?1:(b.devicePixelRatio||b.screen.deviceXDPI/b.screen.logicalXDPI))*this.getViewportTouchScale()},getViewportTouchScale:function(e){var c=1,d=l,b;if(!e){b=this._viewportTouchScale;if(b){return b}}if(Ext.isIE10p||Ext.isEdge||Ext.isiOS){c=i.offsetWidth/j.innerWidth}else if(Ext.isChromeMobile){c=d.outerWidth/d.innerWidth}return c},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},hasUnit:function(b){return !!(b&&B.test(b))},isRelativeUnit:function(b){return !b||V.test(b)},maskIframes:function(){var b=document.getElementsByTagName('iframe'),c=new Ext.dom.Fly();Ext.each(b,function(d){var b;b=c.attach(d.parentNode).mask();b.setStyle('background-color','transparent')})},normalize:function(b){return H[b]||(H[b]=b.replace(an,'ms-').replace(ad,T))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){G=new Date();E=(b.type==='focusin'||b.type==='pointerup')}},_onWindowResize:function(){var c=i.clientWidth,b=i.clientHeight,g=new Date(),f=1000,d,e;d=c-a._documentWidth;e=b-a._documentHeight;a._documentWidth=c;a._documentHeight=b;if(((g-G)<f)||((g-D)<f)){if(d===0&&(E&&(e<=-a.minKeyboardHeight))){s=!0;return}}if(s&&(d===0)&&(e>=a.minKeyboardHeight)){s=!1;D=new Date()}if(s){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){c=c||0;var e=typeof c,b,d;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else if(e!=='string'){return c}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else if(d===2){b[2]=b[0];b[3]=b[1]}else if(d===3){b[3]=b[1]}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){R.lastIndex=0;while((b=R.exec(c))){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},unmaskIframes:function(){var b=document.getElementsByTagName('iframe'),c=new Ext.dom.Fly();Ext.each(b,function(b){c.attach(b.parentNode).unmask()})},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i<q;i++){c=m[i];h=c.name;d=c.type;k=c.options;if(!c.disabled&&h){if(/select-(one|multiple)/i.test(d)){p=k.length;for(j=0;j<p;j++){e=k[j];if(e.selected){o=e.hasAttribute('value');g+=Ext.String.format('{0}={1}&',f(h),f(o?e.value:e.text))}}}else if(!(/file|undefined|reset|button/i.test(d))){if(!(/radio|checkbox/i.test(d)&&!c.checked)&&!(d=='submit'&&n)){g+=f(h)+'='+f(c.value)+'&';n=/submit/i.test(d)}}}}return g.substr(0,g.length-1)},getCommonAncestor:function(d,e,c){f=f||new Ext.dom.Fly();f.attach(Ext.getDom(d));while(!f.isAncestor(e)){if(f.dom.parentNode){f.attach(f.dom.parentNode)}else {f.attach(b.body);break}}return c?f.dom:Ext.get(f)}},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},unselectable:function(){var b=this;if(Ext.isOpera){b.dom.unselectable='on'}b.removeCls(a.selectableCls);b.addCls(a.unselectableCls);return b},statics:{tabbableSelector:Ext.supports.CSS3NegationSelector?'a[href],button,iframe,input,select,textarea,[tabindex]:not([tabindex="-1"]),[contenteditable="true"]':'a[href],button,iframe,input,select,textarea,[tabindex],[contenteditable="true"]',naturallyFocusableTags:{BUTTON:!0,IFRAME:!0,EMBED:!0,INPUT:!0,OBJECT:!0,SELECT:!0,TEXTAREA:!0,HTML:Ext.isIE?!0:!1,BODY:Ext.isIE?!1:!0},naturallyTabbableTags:{BUTTON:!0,IFRAME:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,OBJECT:Ext.isIE8m?!0:!1},inputTags:{INPUT:!0,TEXTAREA:!0},tabbableSavedCounterAttribute:'data-tabindex-counter',tabbableSavedValueAttribute:'data-tabindex-value',splitCls:function(b){if(typeof b==='string'){b=b.split(p)}return b}},_init:function(b){b.tabbableSelector+=',['+b.tabbableSavedCounterAttribute+']'},addCls:function(d,b,c){return this.replaceCls(null,d,b,c)},addClsOnClick:function(c,d,f){var b=this,e=Ext.isFunction(d);b.on("mousedown",function(){if(e&&d.call(f||b,b)===!1){return !1}b.addCls(c);Ext.getDoc().on({mouseup:function(){if(b.dom){b.removeCls(c)}},single:!0})});return b},addClsOnFocus:function(c,d,f){var b=this,e=Ext.isFunction(d);b.on("focus",function(){if(e&&d.call(f||b,b)===!1){return !1}b.addCls(c)});b.on("blur",function(){if(b.dom){b.removeCls(c)}});return b},addClsOnOver:function(c,d,f){var b=this,e=Ext.isFunction(d);b.hover(function(){if(e&&d.call(f||b,b)===!1){return}b.addCls(c)},function(){b.removeCls(c)});return b},addStyles:function(i,h){var g=0,d=(i||'').match(ae),b,f=d.length,e,c=[];if(f===1){g=parseFloat(this.getStyle(h[d[0]]))||0}else if(f){for(b=0;b<f;b++){e=d[b];c.push(h[e])}c=this.getStyle(c);for(b=0;b<f;b++){e=d[b];g+=parseFloat(c[h[e]])||0}}return g},addUnits:function(c,b){return a.addUnits(c,b)},animate:function(b){b=new Ext.fx.Animation(b);b.setElement(this);this._activeAnimation=b;b.on({animationend:this._onAnimationEnd,scope:this});Ext.Animator.run(b);return b},_onAnimationEnd:function(){this._activeAnimation=null},getActiveAnimation:function(){return this._activeAnimation},append:function(){return this.appendChild.apply(this,arguments)},appendChild:function(c,d){var g=this,e,h,f;if(c.nodeType||c.dom||typeof c==='string'){c=Ext.getDom(c);g.dom.appendChild(c);return !d?Ext.get(c):c}else if(c.length){e=Ext.fly(b.createDocumentFragment());h=c.length;for(f=0;f<h;f++){e.appendChild(c[f],d)}c=Ext.Array.toArray(e.dom.childNodes);g.dom.appendChild(e.dom);return d?c:new Ext.dom.CompositeElementLite(c)}else {return g.createChild(c,null,d)}},appendTo:function(b){Ext.getDom(b).appendChild(this.dom);return this},applyStyles:function(b){if(b){if(typeof b==="function"){b=b.call()}if(typeof b==="string"){b=a.parseStyles(b)}if(typeof b==="object"){this.setStyle(b)}}return this},blur:function(){var d=this,c=d.dom;if(c!==b.body){try{c.blur()}catch(aq){}return d}else {return d.focus(undefined,c)}},cacheScrollValues:function(){var i=this,g=[],e=[],f,b,d,h;c=c||new Ext.dom.Fly();f=i.query('*');for(d=0,h=f.length;d<h;d++){b=f[d];if(b.scrollTop>0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b<f;b++){d=g[b];c.attach(e[b]);c.setScrollLeft(d.left);c.setScrollTop(d.top)}}},center:function(c){return this.alignTo(c||b,'c-c')},child:function(d,c){var b=this,e;if(Ext.supports.Selectors2){return b.selectNode(':scope>'+d,!!c)}else {e=b.id!=null?b.id:Ext.get(b).id;return b.selectNode(Ext.makeIdSelector(e)+" > "+d,!!c)}},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){K(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return (c===d.dom)||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}if(c.$ripples){c.destroyAllRipples()}c.collect()},detach:function(){var b=this.dom,c=this.component;if(b&&b.parentNode&&b.tagName!=='BODY'){if(c){c.revertFocus()}b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&(f!==i)){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||(e!==!1&&c.isVisible())){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||(e!==!1&&c.isVisible())){b.show()}else {b.hide()}b.disabled=!1;return b},findParent:function(f,c,g){var h=this,b=h.dom,d=i,e=0;if(c||c===0){if(typeof c!=='number'){d=Ext.getDom(c);c=Number.MAX_VALUE}}else {c=50}while(b&&b.nodeType===1&&e<c&&b!==d){if(Ext.fly(b).is(f)){return g?Ext.get(b):b}e++;b=b.parentNode}return null},findParentNode:function(c,e,d){var b=Ext.fly(this.dom.parentNode);return b?b.findParent(c,e,d):null},first:function(c,b){return this.matchNode('nextSibling','firstChild',c,b)},focus:function(d,b){var c=this;b=b||c.dom;if(Number(d)){Ext.defer(c.focus,d,c,[null,b])}else {Ext.GlobalEvents.fireEvent('beforefocus',b);b.focus()}return c},collect:function(){var b=this,e=b.dom,c=b.shadow,d=b.shim;if(!b.isFly){b.mixins.observable.destroy.call(b);delete Ext.cache[b.id];b.el=null}if(e){e._extData=b.dom=null}if(c){c.hide();b.shadow=null}if(d){d.hide();b.shim=null}},getAnchorToXY:function(e,b,d,c){return e.getAnchorXY(b,d,c)},getAttribute:function(b,d){var c=this.dom;return d?(c.getAttributeNS(d,b)||c.getAttribute(d+":"+b)):(c.getAttribute(b)||c[b]||null)},getAttributes:function(){var d=this.dom.attributes,e={},c,b,f;for(b=0,f=d.length;b<f;b++){c=d[b];e[c.name]=c.value}return e},getBottom:function(b){return (b?this.getLocalY():this.getY())+this.getHeight()},getById:function(d,e){var c=b.getElementById(d)||this.dom.querySelector(Ext.makeIdSelector(d));return e?c:(c?Ext.get(c):null)},getBorderPadding:function(){var c=this.getStyle(X),b=this.getStyle(I);return {beforeX:(parseFloat(b[d.l])||0)+(parseFloat(c[h.l])||0),afterX:(parseFloat(b[d.r])||0)+(parseFloat(c[h.r])||0),beforeY:(parseFloat(b[d.t])||0)+(parseFloat(c[h.t])||0),afterY:(parseFloat(b[d.b])||0)+(parseFloat(c[h.b])||0)}},getBorders:function(){var b=this.getStyle(I);return {beforeX:(parseFloat(b[d.l])||0),afterX:(parseFloat(b[d.r])||0),beforeY:(parseFloat(b[d.t])||0),afterY:(parseFloat(b[d.b])||0)}},getBorderWidth:function(b){return this.addStyles(b,d)},getClassMap:function(c){var b=this.getData();if(b){b=b.classMap;if(c!==!1){b=Ext.apply({},b)}}return b},getData:function(d){var c=this.dom,b;if(c){b=c._extData||(c._extData={});if(d!==!1&&!b.isSynchronized){this.synchronize()}}return b||null},getFirstChild:function(){return Ext.get(this.dom.firstElementChild)},getLastChild:function(){return Ext.get(this.dom.lastElementChild)},getHeight:function(g,f){var c=this,e=c.dom,h=c.isStyle('display','none'),b,d;if(h){return 0}if(e.nodeName==='BODY'){b=a.getViewportHeight()}else {if(f){b=e.getBoundingClientRect().height}else {b=e.offsetHeight;if(b==null){b=e.getBoundingClientRect().height}}}if(Ext.supports.Direct2DBug){d=c.adjustDirect2DDimension(O);if(f){b+=d}else if(d>0&&d<0.5){b++}}if(g){b-=c.getBorderWidth("tb")+c.getPadding("tb")}return (b<0)?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else if(v.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else if(v.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}if(!c||c==='auto'){c=0}else if(v.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else if(v.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}return b},getMargin:(function(){var c={t:"top",l:"left",r:"right",b:"bottom"},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in A){d[f]=d[c[f]]=parseFloat(e[A[f]])||0}}}else {d=h.addStyles(g,A)}return d}})(),getPadding:function(b){return this.addStyles(b,h)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=i,e,f,c=b.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(b,h,i,c){c=c||ak;var d=this,j=d.dom,g,f,e;if(b.isRegion){e=b.height;f=b.width}else {b=Ext.getDom(b);e=b.clientHeight;f=b.clientWidth}g=d.getOffsetsTo(b);return {y:d.calcScrollPos(g[1]+i,j.offsetHeight,i,e,c.y),x:d.calcScrollPos(g[0]+h,j.offsetWidth,h,f,c.x)}},calcScrollPos:function(e,h,g,c,b){var i=e+h,j=g+c,d=b&&!U.test(b),f=g;if(!d){if(b){b=b.slice(0,-1)}if(h>c||e<g){b=b||'start';d=!0}else if(i>j){b=b||'end';d=!0}}if(d){if(b==='start'){f=e}else if(b==='center'){f=Math.max(0,e-Math.floor((c/2)))}else if(b==='end'){f=Math.max(0,i-c)}}return f},getScrollLeft:function(){var c=this.dom;if(c===b||c===b.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===b.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l<q);return f},getStyleValue:function(b){return this.dom.style.getPropertyValue(b)},getCaretPos:function(){var d=this.dom,b,c;if(w.test(d.type)){b=d.selectionStart;c=(typeof b!=='number')&&this.getTextSelection();if(c){b=c[0]}}return b},setCaretPos:function(b){this.selectText(b,b)},getTextSelection:function(){var b=this.dom;if(w.test(b.type)){return [b.selectionStart,b.selectionEnd,b.selectionDirection]}else {return []}},selectText:function(c,d,e){var h=this,f,b=h.dom,g;if(b&&w.test(b.type)){c=c||0;g=b.value.length;if(d===undefined){d=g}e=L[e]||e||'forward';if(b.setSelectionRange){b.setSelectionRange(c,d,e)}else if(b.createTextRange){if(c>d){c=d}f=b.createTextRange();f.moveStart('character',c);f.moveEnd('character',-(g-d));f.select()}}return h},getTop:function(b){return b?this.getLocalY():this.getY()},getTouchAction:function(){return Ext.dom.TouchAction.get(this.dom)},getValue:function(c){var b=this.dom.value;return c?parseInt(b,10):b},getViewSize:function(){var c=this.dom;if(c===b||c===b.body){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}else {return {width:c.clientWidth,height:c.clientHeight}}},getVisibilityMode:function(){var d=this,c=d.getData(),b=c.visibilityMode;if(b===undefined){c.visibilityMode=b=a.DISPLAY}return b},getWidth:function(h,f){var c=this,g=c.dom,i=c.isStyle('display','none'),d,b,e;if(i){return 0}if(Ext.supports.BoundingClientRect){d=g.getBoundingClientRect();b=(c.vertical&&!Ext.supports.RotatedBoundingClientRect)?(d.bottom-d.top):(d.right-d.left);b=f?b:Math.ceil(b)}else {b=g.offsetWidth}if(Ext.supports.Direct2DBug&&!c.vertical){e=c.adjustDirect2DDimension(Q);if(f){b+=e}else if(e>0&&e<0.5){b++}}if(h){b-=c.getBorderWidth("lr")+c.getPadding("lr")}return (b<0)?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var f=Math.round,e=this.dom,g=b.body,h=0,i=0,c,d;if(e!==b&&e!==g){try{c=g.getBoundingClientRect();d=e.getBoundingClientRect();h=d.left-c.left;i=d.top-c.top}catch(aq){}}return [f(h),f(i)]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getClassMap();return b.hasOwnProperty(c)},hide:function(){return this.setVisible(!1)},hover:function(e,f,d,c){var b=this;b.on('mouseenter',e,d||b.dom,c);b.on('mouseleave',f,d||b.dom,c);return b},indexOf:function(c){var b=this.dom,d=c&&Ext.getDom(c);b=b&&b.childNodes;return (d&&b)?Array.prototype.indexOf.call(b,d):-1},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(c,l,g){var e=this,k=Ext.DomHelper,i=(l||'before').toLowerCase()==='after',d,h,j,f;if(Ext.isIterable(c)){j=c.length;h=Ext.fly(b.createDocumentFragment());if(Ext.isArray(c)){for(f=0;f<j;f++){d=h.appendChild(c[f],g)}}else {for(f=0;f<j;f++){h.dom.appendChild(d=c[0])}if(g===!1){d=Ext.get(d)}}e.dom.parentNode.insertBefore(h.dom,i?e.dom.nextSibling:e.dom);return d}c=c||{};if(c.nodeType||c.dom){d=e.dom.parentNode.insertBefore(Ext.getDom(c),i?e.dom.nextSibling:e.dom);if(!g){d=Ext.get(d)}}else {if(i&&!e.dom.nextSibling){d=k.append(e.dom.parentNode,c,!g)}else {d=k[i?'insertAfter':'insertBefore'](e.dom,c,!g)}}return d},is:function(c){var d=this.dom,b;if(!c){b=!0}else if(!d.tagName){b=!1}else if(Ext.isFunction(c)){b=c(d)}else {b=d[Ext.supports.matchesSelector](c)}return b},isAncestor:function(e){var d=!1,c=this.dom,b=Ext.getDom(e);if(c&&b){if(!b.nodeType){return !1}if(c.contains){return c.contains(b)}else if(c.compareDocumentPosition){return !!(c.compareDocumentPosition(b)&16)}else {while((b=b.parentNode)){d=b===c||d}}}return d},isPainted:(function(){return !Ext.browser.is.IE?function(){var b=this.dom;return Boolean(b&&b.offsetParent)}:function(){var b=this.dom;return Boolean(b&&(b.offsetHeight!==0||b.offsetWidth!==0))}})(),isScrollable:function(){var b=this.dom;return b.scrollHeight>b.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(f,d){var b=this.dom,c=!0,e;if(!b){return !1}d=d||3;if(!r){r=new Ext.dom.Fly()}for(e=b.ownerDocument.documentElement;b!==e;b=b.parentNode){if(!b||b.nodeType===11){c=!1}if(c){r.attach(b);if(d&1){c=!r.isStyle(M,C)}if(c&&(d&2)){c=!r.isStyle($,ag)}}if(!c||!f){break}}return c},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},measure:function(f){var m=this,g=m.dom,h=f!=='h',j=f!=='w',d=0,c=0,i=!Ext.supports.ComputedSizeIncludesPadding,b,l,k;if(g.nodeName==='BODY'){c=j&&a.getViewportHeight();d=h&&a.getViewportWidth()}else {k=g.offsetParent;b=g.ownerDocument.defaultView.getComputedStyle(g,null);i|=b.boxSizing==='content-box';if(k!==null||b.position==='fixed'){if(j){c=e(b.height);if(i){c+=e(b.paddingTop)+e(b.paddingBottom)+e(b.borderTopWidth)+e(b.borderBottomWidth)}}if(h){d=e(b.width);if(i){d+=e(b.paddingLeft)+e(b.paddingRight)+e(b.borderLeftWidth)+e(b.borderRightWidth)}}}}l=f?null:{width:d,height:c};return f?(h?d:c):l},measureContent:function(b){var c=this,g=b!=='h',d=c.measure(b),e=b?d:d.height,f=b?d:d.width;if(b!=='w'){e-=c.getBorderWidth('tb')+c.getPadding('tb')}if(g){f-=c.getBorderWidth('lr')+c.getPadding('lr')}return b?(g?f:e):{width:f,height:e}},monitorMouseLeave:function(f,e,g){var b=this,d,c={mouseleave:function(c){if(Ext.isIE9m){c.enableIEAsync()}d=Ext.defer(e,f,g||b,[c])},mouseenter:function(){Ext.undefer(d)},destroy:function(){Ext.undefer(d);if(!b.destroyed){b.un(c)}}};b.on(c);return c},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},peekData:function(){var b=this.dom;return b&&b._extData||null},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(y,ah)){b.setStyle(y,ab)}else if(c){b.setStyle(y,c)}if(d){b.setStyle(ai,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=(e!==!1);b=b.split(",");if(!j){g=[]}for(c=0,l=b.length;c<l;c++){if(typeof b[c]==='string'){if(j){h=i.querySelector(b[c]);return e?h:Ext.get(h)}f=i.querySelectorAll(b[c]);for(d=0,k=f.length;d<k;d++){g.push(e?f[d]:Ext.get(f[d]))}}}return g},radioCls:function(b){var e=this.dom.parentNode.childNodes,c;b=Ext.isArray(b)?b:[b];for(var d=0,f=e.length;d<f;d++){c=e[d];if(c&&c.nodeType===1){Ext.fly(c).removeCls(b)}}return this.addCls(b)},redraw:function(){var c=this.dom,b=c.style;b.display='none';c.offsetHeight;b.display=''},remove:function(){this.destroy()},removeChild:function(b){this.dom.removeChild(Ext.getDom(b));return this},removeCls:function(d,b,c){return this.replaceCls(d,null,b,c)},repaint:function(){var b=this;b.addCls('x-repaint');if(!b.repaintTimer){b.repaintTimer=Ext.defer(function(){b.repaintTimer=null;if(b.dom){b.removeCls('x-repaint')}},1)}return b},replace:function(b,f){b=Ext.getDom(b);var c=b.parentNode,e=b.id,d=this.dom;if(f!==!1&&e&&Ext.cache[e]){c.insertBefore(d,b);Ext.get(b).destroy()}else {c.replaceChild(d,b)}return this},replaceCls:function(n,e,c,d){var i=this,o=0,k=0,g=n,l=(e||n)&&i.getData(),m,h,f,j,b;if(l){m=l.classList;h=l.classMap;e=e?((typeof e==='string')?e.split(p):e):P;g=g?((typeof g==='string')?g.split(p):g):P;c=c||'';if(c&&c[c.length-1]!=='-'){c+='-'}d=d||'';if(d&&d[0]!=='-'){d='-'+d}for(f=0,j=g.length;f<j;f++){if(!(b=g[f])){continue}b=c+b+d;if(h[b]){delete h[b];++k}}for(f=0,j=e.length;f<j;f++){if(!(b=e[f])){continue}b=c+b+d;if(!h[b]){h[b]=!0;if(!k){m.push(b);++o}}}if(k){i.setClassMap(h,!0)}else if(o){i.dom.className=m.join(' ')}}return i},replaceWith:function(c){var b=this,e=b.dom,f=e.parentNode,g=Ext.cache,d;b.clearListeners();if(c.nodeType||c.dom||typeof c==='string'){c=Ext.get(c);d=f.insertBefore(c.dom,e)}else {d=Ext.DomHelper.insertBefore(e,c)}f.removeChild(e);b.dom=d;if(!b.isFly){delete g[b.id];g[b.id=Ext.id(d)]=b}return b},resolveListenerScope:function(c){var b=this.component;return b?b.resolveListenerScope(c):this},scroll:function(b,e,j){if(!this.isScrollable()){return !1}b=b.charAt(0);var f=this,i=f.dom,h=b==='r'||b==='l'?'left':'top',g=!1,c,d;if(b==='l'||b==='t'||b==='u'){e=-e}if(h==='left'){c=i.scrollLeft;d=f.constrainScrollLeft(c+e)}else {c=i.scrollTop;d=f.constrainScrollTop(c+e)}if(d!==c){this.scrollTo(h,d,j);g=!0}return g},scrollBy:function(b,c,e){var d=this,f=d.dom;if(b.length){e=c;c=b[1];b=b[0]}else if(typeof b!='number'){e=c;c=b.y;b=b.x}if(b){d.scrollTo('left',d.constrainScrollLeft(f.scrollLeft+b),e)}if(c){d.scrollTo('top',d.constrainScrollTop(f.scrollTop+c),e)}return d},scrollChildIntoView:function(c,b){Ext.fly(c).scrollIntoView(this,b)},scrollIntoView:function(b,e,d,c){b=Ext.getDom(b)||Ext.getBody().dom;return this.doScrollIntoView(b,e,d,c,'getScrollLeft','scrollTo')},scrollTo:function(h,e,d){var i=al.test(h),c=this,f=i?'scrollTop':'scrollLeft',g=c.dom,b;if(!d||!c.anim){g[f]=e;g[f]=e}else {b={to:{}};b.to[f]=e;if(Ext.isObject(d)){Ext.applyIf(b,d)}c.animate(b)}return c},select:function(c,e){var d,b;if(typeof c==="string"){b=this.query(c,!e)}else {b=c;d=!0}return e?new Ext.CompositeElement(b,!d):new Ext.CompositeElementLite(b,!0)},selectNode:function(b,c){return this.query(b,c,!0)},set:function(e,g){var f=this,d=f.dom,b,c;for(b in e){if(e.hasOwnProperty(b)){c=e[b];if(b==='style'){f.applyStyles(c)}else if(b==='cls'){d.className=c}else if(g!==!1){if(c===undefined){d.removeAttribute(b)}else {d.setAttribute(b,c)}}else {d[b]=c}}}return f},setBottom:function(b){this.dom.style[af]=a.addUnits(b);return this},setClassMap:function(b,e){var c=this.getData(!1),d;if(c){b=(e&&b)||Ext.apply({},b);c.classMap=b;c.classList=d=Ext.Object.getKeys(b);c.isSynchronized=!0;this.dom.className=d.join(' ')}},setCls:function(c){var h=this,e=h.getData(!1),d,g,f,b;if(typeof c==='string'){c=c.split(p)}e.classList=b=c.slice();e.classMap=f={};for(d=0,g=b.length;d<g;d++){f[b[d]]=!0}h.dom.className=b.join(' ')},setDisplayed:function(c){var b=this;if(typeof c==="boolean"){c=c?b._getDisplay():C}b.setStyle(M,c);if(b.shadow||b.shim){b.setUnderlaysVisible(c!==C)}return b},setHeight:function(c){var b=this;b.dom.style[O]=a.addUnits(c);if(b.shadow||b.shim){b.syncUnderlays()}return b},setHtml:function(b){if(this.dom){this.dom.innerHTML=b}return this},setId:function(c){var b=this,d=b.id,e=Ext.cache;if(d){delete e[d]}b.dom.id=c;b.id=c;e[c]=b;return b},setLeft:function(c){var b=this;b.dom.style[am]=a.addUnits(c);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocalX:function(d){var b=this,c=b.dom.style;c.right='';c.left=(d===null)?'auto':d+'px';if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocalXY:function(b,e){var d=this,c=d.dom.style;c.right='';if(b&&b.length){e=b[1];b=b[0]}if(b===null){c.left='auto'}else if(b!==undefined){c.left=b+'px'}if(e===null){c.top='auto'}else if(e!==undefined){c.top=e+'px'}if(d.shadow||d.shim){d.syncUnderlays()}return d},setLocalY:function(c){var b=this;b.dom.style.top=(c===null)?'auto':c+'px';if(b.shadow||b.shim){b.syncUnderlays()}return b},setMargin:function(b){var d=this,c=d.dom.style;if(b||b===0){b=d.self.unitizeBox((b===!0)?5:b);c.setProperty('margin',b,'important')}else {c.removeProperty('margin-top');c.removeProperty('margin-right');c.removeProperty('margin-bottom');c.removeProperty('margin-left')}},setMaxHeight:function(b){this.dom.style[Y]=a.addUnits(b);return this},setMaxWidth:function(b){this.dom.style[_]=a.addUnits(b);return this},setMinHeight:function(b){this.dom.style[Z]=a.addUnits(b);return this},setMinWidth:function(b){this.dom.style[aa]=a.addUnits(b);return this},setOpacity:function(c){var b=this;if(b.dom){b.setStyle('opacity',c)}return b},setPadding:function(b){var d=this,c=d.dom.style;if(b||b===0){b=d.self.unitizeBox((b===!0)?5:b);c.setProperty('padding',b,'important')}else {c.removeProperty('padding-top');c.removeProperty('padding-right');c.removeProperty('padding-bottom');c.removeProperty('padding-left')}},setRight:function(b){this.dom.style[aj]=a.addUnits(b);return this},setScrollLeft:function(b){this.dom.scrollLeft=b;return this},setScrollTop:function(b){this.dom.scrollTop=b;return this},setSize:function(b,d){var c=this,e=c.dom.style;if(Ext.isObject(b)){d=b.height;b=b.width}if(b!==undefined){e.width=a.addUnits(b)}if(d!==undefined){e.height=a.addUnits(d)}if(c.shadow||c.shim){c.syncUnderlays()}return c},setStyle:function(h,c){var e=this,f=e.dom,g=e.styleHooks,i=f.style,d=h,b;if(typeof d==='string'){b=g[d];if(!b){g[d]=b={name:a.normalize(d)}}c=(c==null)?'':c;if(b.set){b.set(f,c,e)}else {i[b.name]=c}if(b.afterSet){b.afterSet(f,c,e)}}else {for(d in h){if(h.hasOwnProperty(d)){b=g[d];if(!b){g[d]=b={name:a.normalize(d)}}c=h[d];c=(c==null)?'':c;if(b.set){b.set(f,c,e)}else {i[b.name]=c}if(b.afterSet){b.afterSet(f,c,e)}}}}return e},setText:function(b){this.dom.textContent=b},setTop:function(c){var b=this;b.dom.style[ao]=a.addUnits(c);if(b.shadow||b.shim){b.syncUnderlays()}return b},setTouchAction:function(b){Ext.dom.TouchAction.set(this.dom,b)},setUnderlaysVisible:function(d){var b=this.shadow,c=this.shim;if(b&&!b.disabled){if(d){b.show()}else {b.hide()}}if(c&&!c.disabled){if(d){c.show()}else {c.hide()}}},setVisibility:function(c){var b=this.dom.style;if(c){b.removeProperty('visibility')}else {b.setProperty('visibility','hidden','important')}},setVisibilityMode:function(b){this.getData().visibilityMode=b;return this},setVisible:function(d){var b=this,e=b.getVisibilityMode(),c=d?'removeCls':'addCls';switch(e){case a.DISPLAY:b.removeCls([m,n,q,o]);b[c](k);break;case a.VISIBILITY:b.removeCls([k,n,q,o]);b[c](m);break;case a.OFFSETS:b.removeCls([m,k,q,o]);b[c](n);break;case a.CLIP:b.removeCls([m,k,n,o]);b[c](q);break;case a.OPACITY:b.removeCls([m,k,n,q]);b[c](o);break;}if(b.shadow||b.shim){b.setUnderlaysVisible(d)}if(!d&&b.$ripples){b.destroyAllRipples()}return b},setWidth:function(c){var b=this;b.dom.style[Q]=a.addUnits(c);if(b.shadow||b.shim){b.syncUnderlays()}return b},setX:function(b){return this.setXY([b,!1])},setXY:function(f){var b=this,d=b.translatePoints(f),e=b.dom.style,c;b.position();e.right='';for(c in d){if(!isNaN(d[c])){e[c]=d[c]+'px'}}if(b.shadow||b.shim){b.syncUnderlays()}return b},setY:function(b){return this.setXY([!1,b])},setZIndex:function(c){var b=this;if(b.shadow){b.shadow.setZIndex(c)}if(b.shim){b.shim.setZIndex(c)}return b.setStyle('z-index',c)},show:function(){return this.setVisible(!0)},swallowEvent:function(b,g){var h=this,c,e,d={destroyable:!0},f=function(c){c.stopPropagation();if(g){c.preventDefault()}};if(Ext.isArray(b)){e=b.length;for(c=0;c<e;c++){d[b[c]]=f}}else {d[b]=f}return h.on(d)},swapCls:function(h,g,c,b){if(c===undefined){c=!0}var f=this,e=c?h:g,d=c?g:h;if(d){f.removeCls(b?b+'-'+d:d)}if(e){f.addCls(b?b+'-'+e:e)}return f},synchronize:function(){var e=this,i=e.dom,f={},g=i.className,b,c,j,h,d=e.getData(!1);if(g&&g.length>0){b=i.className.split(S);for(c=0,j=b.length;c<j;c++){h=b[c];f[h]=!0}}else {b=[]}d.classList=b;d.classMap=f;d.isSynchronized=!0;return e},syncUnderlays:function(){var b=this,c=b.shadow,d=b.shim,j=b.dom,e,h,i,g,f;if(b.isVisible()){e=b.getXY();h=e[0];i=e[1];g=j.offsetWidth;f=j.offsetHeight;if(c&&!c.hidden){c.realign(h,i,g,f)}if(d&&!d.hidden){d.realign(h,i,g,f)}}},toggleCls:function(b,c){if(c==null){c=!this.hasCls(b)}return c?this.addCls(b):this.removeCls(b)},toggle:function(){this.setVisible(!this.isVisible());return this},translate:function(){var c='webkitTransform' in b.createElement('div').style?'webkitTransform':'transform';return function(b,d,e){b=Math.round(b);d=Math.round(d);e=Math.round(e);this.dom.style[c]='translate3d('+(b||0)+'px, '+(d||0)+'px, '+(e||0)+'px)'}}(),unwrap:function(){var i=this.dom,f=i.parentNode,e=(u||(u=new Ext.dom.Fly())).attach(Ext.Element.getActiveElement()),d,c,h,j;g=g||new Ext.dom.Fly();c=Ext.cache[e.dom.id];if(c){e=c}if(this.contains(e)){if(c){c.suspendFocusEvents()}h=!0}if(f){d=f.parentNode;if(h){j=d.getAttribute('tabIndex');g.attach(d);g.set({tabIndex:-1});g.suspendFocusEvents();g.focus()}d.insertBefore(i,f);d.removeChild(f)}else {d=b.createDocumentFragment();d.appendChild(i)}if(h){if(c){c.focus();c.resumeFocusEvents()}else {e.focus()}if(g){g.resumeFocusEvents();g.set({tabIndex:j})}}return this},up:function(b,d,c){return this.findParentNode(b,d,!c)},update:function(b){return this.setHtml(b)},wrap:function(m,g,h){var l=this,k=l.dom,j=Ext.DomHelper.insertBefore(k,m||{tag:"div"},!g),c=(N||(N=new Ext.dom.Fly())).attach(Ext.getDom(j)),e=c,d=(u||(u=new Ext.dom.Fly())).attach(Ext.Element.getActiveElement()),b,f,i;b=Ext.cache[d.dom.id];if(b){d=b}if(h){e=c.selectNode(h,g)}if(l.contains(d)){if(b){b.suspendFocusEvents()}i=Ext.getDom(c).getAttribute('tabIndex');c.set({tabIndex:-1});c.suspendFocusEvents();c.focus();f=!0}(e.dom||e).appendChild(k);if(f){if(b){b.focus();b.resumeFocusEvents()}else {d.focus()}c.resumeFocusEvents();c.set({tabIndex:i})}return j},isFocusable:function(e){var b=this.dom,c=!1,d;if(b&&!b.disabled){d=b.nodeName;c=!!Ext.Element.naturallyFocusableTags[d]||((d==='A'||d==='LINK')&&!!b.href)||b.getAttribute('tabIndex')!=null||b.contentEditable==='true';if(Ext.isIE8&&d==='INPUT'&&b.type==='hidden'){c=!1}c=c&&(e||this.isVisible(!0))}return c},isInputField:function(){var b=this.dom,c=b.contentEditable;if((Ext.Element.inputTags[b.tagName]&&b.type!=='button')||(c===''||c==='true')){return !0}return !1},isTabbable:function(g){var d=this.dom,b=!1,f,e,c;if(d&&!d.disabled){f=d.nodeName;c=d.getAttribute('tabIndex');e=c!=null;c-=0;if(f==='A'||f==='LINK'){if(d.href){b=e&&c<0?!1:!0}else {if(d.contentEditable==='true'){b=!e||(e&&c>=0)?!0:!1}else {b=e&&c>=0?!0:!1}}}else if(d.contentEditable==='true'||Ext.Element.naturallyTabbableTags[f]){b=e&&c<0?!1:!0}else {if(e&&c>=0){b=!0}}if(Ext.isIE8&&f==='INPUT'&&d.type==='hidden'){b=!1}b=b&&(g||((!this.component||this.component.isVisible(!0))&&this.isVisible(!0)))}return b},ripplingCls:'x-rippling',ripplingTransitionCls:'x-ripple-transition',ripplingUnboundCls:'x-rippling-unbound',rippleBubbleCls:'x-ripple-bubble',rippleContainerCls:'x-ripple-container',rippleWrapperCls:'x-ripple-wrapper',noRippleDisplayMap:{table:1,'table-row':1,'table-row-group':1},noRippleTagMap:{TABLE:1,TR:1,TBODY:1},ripple:function(e,b){if(b===!0||!b){b={}}else if(Ext.isString(b)){b={color:b}}var d=this,c=Ext.isString(b.delegate)?d.down(b.delegate):d,t=Ext.isString(b.measureSelector)?d.down(b.measureSelector):null,J=window.getComputedStyle(c.dom).color,k=b.bound===!1,D=b.position,v=d.ripplingCls,z=d.ripplingTransitionCls,H=d.ripplingUnboundCls,B=d.rippleBubbleCls,l=d.rippleContainerCls,I=d.rippleWrapperCls,j,r,q,f,E,C,A,n,x,F,G,i,h,g,s,u,y,o,p,m,w;if(c){j=c.getXY();r=c.getWidth();q=c.getHeight();w=c.$rippleClearTimeout;if(w){c.$rippleClearTimeout=Ext.undefer(w)}if(t){C=t.getWidth();A=t.getHeight();f=Math.max(C,A)}else {f=r>q?r:q}if(b.diameterLimit===undefined||b.diameterLimit===!0){f=Math.min(f,a.maxRippleDiameter)}else if(b.diameterLimit&&b.diameterLimit!==!1&&b.diameterLimit!==0){f=Math.min(f,b.diameterLimit)}E=[j[0]+r/2,j[1]+q/2];if(k){if(b.fit!==!1){n=f*2.15;o=c.getRegion();o.setPosition(o.getCenter()).setSize(n).translateBy(-n/2,-n/2);p=d.up(function(c){var f=Ext.fly(c,'ripple');return !(c.tagName in d.noRippleTagMap)&&!(f.getStyle('display') in d.noRippleDisplayMap)&&(f.getRegion().contains(o))})||Ext.getBody()}else {p=c}}if(Ext.isString(e)){b.color=e;e=null}else if(e&&!e.isEvent){e=new Ext.event.Event(e)}if(e&&e.isEvent){if(e.browserEvent.$preventRipple){return}D=e.getXY();e.browserEvent.$preventRipple=!0}x=(!k&&!b.centered&&D)||E;F=x[0]-j[0]-(f/2);G=x[1]-j[1]-(f/2);c.addCls(z);if(!k){c.addCls(v);h=c.child('.'+l)}else {m=p.getData();i=m.rippleWrapper;if(!i){m.rippleWrapper=i=p.insertFirst({style:'position: absolute; top: 0; left: 0',cls:I+' '+v+' '+H})}}if(!h){if(k){h=i.append({cls:l});h.setXY(j)}else {h=c.append({cls:l})}}g=h.append({cls:B});if(b.color!=='default'){g.setStyle('backgroundColor',b.color||J)}g.setWidth(f);g.setHeight(f);g.setTop(G);g.setLeft(F);u=function(){if(!c.destroyed){c.$rippleClearTimeout=Ext.defer(function(){c.removeCls([v,z]);c.$rippleClearTimeout=null},50)}};s=function(){var f,j;g.destroy();if(d.$ripples){delete d.$ripples[g.id]}j=c.$rippleClearTimeout;if(j){c.$rippleClearTimeout=Ext.undefer(j)}if(k){h.destroy();f=i.child('.'+l);if(!f){m.rippleWrapper=null;i.destroy();u()}}else {f=h.child('.'+B);if(!f){h.destroy();u()}}};y=Ext.defer(s,b.destroyTime||1000,d);if(!d.$ripples){d.$ripples={}}d.$ripples[g.id]={timerId:y,destructor:s};g.addCls('x-ripple')}},destroyAllRipples:function(){var c=this,d,b;for(d in c.$ripples){b=c.$ripples[d];Ext.undefer(b.timerId);if(b.destructor){b.destructor()}}c.$ripples=null},privates:{findTabbableElements:function(e){var m,l,b,i,h,f=this.dom,o=Ext.Element.tabbableSavedCounterAttribute,c=[],q=0,j,d,p,g,k,n;if(!f){return c}if(e){m=e.skipSelf;l=e.skipChildren;b=e.excludeRoot;i=e.includeSaved;h=e.includeHidden}b=b&&Ext.getDom(b);if(b&&b.contains(f)){return c}if(!m&&((i&&f.hasAttribute(o))||this.isTabbable(h))){c[q++]=f}if(l){return c}j=f.querySelectorAll(Ext.Element.tabbableSelector);k=j.length;if(!k){return c}p=new Ext.dom.Fly();for(g=0;g<k;g++){d=j[g];n=+d.getAttribute('tabIndex');if(((i&&d.hasAttribute(o))||(!(n<0)&&p.attach(d).isTabbable(h)))&&!(b&&(b===d||b.contains(d)))){c[q++]=d}}return c},saveTabbableState:function(c){var f=Ext.Element.tabbableSavedCounterAttribute,h=Ext.Element.tabbableSavedValueAttribute,g,d,b,e,i;if(!c||c.includeSaved==null){c=Ext.Object.chain(c||null);c.includeSaved=!0}d=this.findTabbableElements(c);for(e=0,i=d.length;e<i;e++){b=d[e];g=+b.getAttribute(f);if(g>0){b.setAttribute(f,++g)}else {if(b.hasAttribute('tabIndex')){b.setAttribute(h,b.getAttribute('tabIndex'))}else {b.setAttribute(h,'none')}b.setAttribute('tabIndex','-1');b.setAttribute(f,'1')}}return d},restoreTabbableState:function(c){var i=this.dom,d=Ext.Element.tabbableSavedCounterAttribute,g=Ext.Element.tabbableSavedValueAttribute,e=[],m=c&&c.skipSelf,l=c&&c.skipChildren,n=c&&c.reset,j,h,b,f,k;if(!i){return this}if(!l){e=Ext.Array.from(i.querySelectorAll('['+d+']'))}if(!m){e.unshift(i)}for(f=0,k=e.length;f<k;f++){b=e[f];if(!b.hasAttribute(d)||!b.hasAttribute(g)){continue}h=+b.getAttribute(d);if(!n&&h>1){b.setAttribute(d,--h);continue}j=b.getAttribute(g);if(j==='none'){b.removeAttribute('tabIndex')}else {b.setAttribute('tabIndex',j)}b.removeAttribute(g);b.removeAttribute(d)}return e},setTabIndex:function(c){var b=this.dom,d=Ext.Element.tabbableSavedValueAttribute;if(b.hasAttribute(d)){if(c==null){b.setAttribute(d,'none');b.removeAttribute('tabIndex')}else {b.setAttribute(d,c)}}else {if(c==null){b.removeAttribute('tabIndex')}else {b.setAttribute('tabIndex',c)}}},doAddListener:function(b,l,k,c,j,i,f){var d=this,m=b,g,h,e;b=Ext.canonicalEventName(b);if(!d.blockedEvents[b]){g=d.mixins.observable.doAddListener;c=c||{};if(a.useDelegatedEvents===!1){c.delegated=c.delegated||!1}if(c.translate!==!1){h=d.additiveEvents[b];if(h){c.type=b;b=h;g.call(d,b,l,k,c,j,i,f)}e=d.eventMap[b];if(e){c.type=c.type||b;if(f){c.managedName=m}b=e}}if(g.call(d,b,l,k,c,j,i,f)){if(d.longpressEvents[b]&&(++d.longpressListenerCount===1)){d.on('MSHoldVisual','preventMsHoldVisual',d)}}if(f&&e){delete c.managedName}delete c.type}},doRemoveListener:function(c,i,h){var b=this,d,f,g,e;c=Ext.canonicalEventName(c);if(!b.blockedEvents[c]){d=b.mixins.observable.doRemoveListener;g=b.additiveEvents[c];if(g){c=g;d.call(b,c,i,h)}f=b.eventMap[c];if(f){e=d.call(b,f,i,h)}e=d.call(b,c,i,h)||e;if(e){if(b.longpressEvents[c]&&!--b.longpressListenerCount){b.un('MSHoldVisual','preventMsHoldVisual',b)}}}},_initEvent:function(b){return (this.events[b]=new Ext.dom.ElementEvent(this,b))},_getDisplay:function(){var c=this.getData(),b=c[F];if(b===undefined){c[F]=b=''}return b},_getPublisher:function(b,e){var d=Ext.event.publisher.Publisher,c=d.publishersByEvent[b],f=e&&!Ext.event.Event.gestureEvents[b];if(f||!c||(this.dom===window&&b==='resize')){c=d.publishers.dom}return c},isFocusSuspended:function(){var b=this.peekData();return b&&b.suspendFocusEvents},preventMsHoldVisual:function(b){b.preventDefault()},suspendFocusEvents:function(){if(!this.isFly){this.suspendEvent('focus','blur')}this.getData().suspendFocusEvents=!0},resumeFocusEvents:function(){function resumeFn(){var b;if(!this.destroyed){b=this.getData();if(b){b.suspendFocusEvents=!1}if(!this.isFly){this.resumeEvent('focus','blur')}}}if(!this.destroyed&&this.getData().suspendFocusEvents){if(Ext.isIE&&!this.isFly){this.resumeFocusEventsTimer=Ext.asap(resumeFn,this)}else {resumeFn.call(this)}}}},deprecated:{'5.0':{methods:{getHTML:'getHtml',getPageBox:function(l){var e=this,c=e.dom,d=c.nodeName==='BODY',k=d?a.getViewportWidth():c.offsetWidth,g=d?a.getViewportHeight():c.offsetHeight,b=e.getXY(),j=b[1],i=b[0]+k,f=b[1]+g,h=b[0];if(l){return new Ext.util.Region(j,i,f,h)}else {return {left:h,top:j,width:k,height:g,right:i,bottom:f}}},isTransparent:function(c){var b=this.getStyle(c);return b?W.test(b):!1},purgeAllListeners:'clearListeners',removeAllListeners:'clearListeners',setHTML:'setHtml'}}}}},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(b){var e=document,y=e.documentElement,i=b.prototype,n=Ext.supports,o='pointerdown',p='pointermove',q='pointerup',r='pointercancel',s='MSPointerDown',t='MSPointerMove',u='MSPointerUp',v='MSPointerCancel',g='mousedown',h='mousemove',c='mouseup',w='mouseover',x='mouseout',A='mouseenter',B='mouseleave',j='touchstart',k='touchmove',l='touchend',m='touchcancel',E='click',D='dblclick',F='tap',C='doubletap',a=i.eventMap={},d=i.additiveEvents={},z=Ext.id,f;i._init(b);delete i._init;Ext.id=function(c,f){var d=c&&Ext.getDom(c,!0),e,a;if(!d){a=z(c,f)}else if(!(a=d.id)){a=z(null,f||b.prototype.identifiablePrefix);if(Ext.isSandboxed){e=Ext.sandboxPrefix||(Ext.sandboxPrefix=Ext.sandboxName.toLowerCase()+'-');a=e+a}d.id=a}return a};if(n.PointerEvents){a[g]=o;a[h]=p;a[c]=q;a[j]=o;a[k]=p;a[l]=q;a[m]=r;a[w]='pointerover';a[x]='pointerout';a[A]='pointerenter';if(!Ext.isIE11){a[B]='pointerleave'}}else if(n.MSPointerEvents){a[o]=s;a[p]=t;a[q]=u;a[r]=v;a[g]=s;a[h]=t;a[c]=u;a[j]=s;a[k]=t;a[l]=u;a[m]=v;a[w]='MSPointerOver';a[x]='MSPointerOut'}else if(n.TouchEvents){a[o]=j;a[p]=k;a[q]=l;a[r]=m;a[g]=j;a[h]=k;a[c]=l;a[E]=F;a[D]=C;if(Ext.os.is.Desktop){a[j]=g;a[k]=h;a[l]=c;a[m]=c;d[g]=g;d[h]=h;d[c]=c;d[j]=j;d[k]=k;d[l]=l;d[m]=m;d[o]=g;d[p]=h;d[q]=c;d[r]=c}}else {a[o]=g;a[p]=h;a[q]=c;a[r]=c;a[j]=g;a[k]=h;a[l]=c;a[m]=c}if(Ext.isWebKit){a.transitionend=Ext.browser.getVendorProperyName('transitionEnd');a.animationstart=Ext.browser.getVendorProperyName('animationStart');a.animationend=Ext.browser.getVendorProperyName('animationEnd')}if(!Ext.supports.MouseWheel&&!Ext.isOpera){a.mousewheel='DOMMouseScroll'}f=i.$eventOptions=Ext.Object.chain(i.$eventOptions);f.translate=f.capture=f.delegate=f.delegated=f.stopEvent=f.preventDefault=f.stopPropagation=f.element=1;i.styleHooks.opacity={name:'opacity',afterSet:function(e,c,d){var a=d.shadow;if(a){a.setOpacity(c)}}};i.getTrueXY=i.getXY;Ext.getViewportHeight=b.getViewportHeight;Ext.getViewportWidth=b.getViewportWidth;Ext.select=b.select;Ext.query=b.query;Ext.apply(Ext,{get:function(a){return b.get(a)},getDom:function(a){if(!a||!e){return null}return typeof a==='string'?Ext.getElementById(a):'dom' in a?a.dom:a},getBody:function(){if(!Ext._bodyEl){if(!e.body){throw new Error("[Ext.getBody] document.body does not yet exist")}Ext._bodyEl=Ext.get(e.body);Ext._bodyEl.skipGarbageCollection=!0}return Ext._bodyEl},getHead:function(){if(!Ext._headEl){Ext._headEl=Ext.get(e.head||e.getElementsByTagName('head')[0]);Ext._headEl.skipGarbageCollection=!0}return Ext._headEl},getDoc:function(){if(!Ext._docEl){Ext._docEl=Ext.get(e);Ext._docEl.skipGarbageCollection=!0}return Ext._docEl},getWin:function(){if(!Ext._winEl){Ext._winEl=Ext.get(window);Ext._winEl.skipGarbageCollection=!0}return Ext._winEl},removeNode:function(a){a=a.dom||a;var e=a&&a.id,d=Ext.cache[e],c;if(d){d.destroy()}else if(a&&(a.nodeType===3||a.tagName.toUpperCase()!=='BODY')){c=a.parentNode;if(c){c.removeChild(a)}}}});Ext.isGarbage=function(a){return a&&a.nodeType===1&&a.tagName!=='BODY'&&a.tagName!=='HTML'&&(!a.parentNode||(a.offsetParent===null&&((Ext.isIE8?e.all[a.id]:e.getElementById(a.id))!==a)&&!(Ext.detachedBodyEl&&Ext.detachedBodyEl.isAncestor(a))))};Ext.onInternalReady(function(){var a=[],c;Ext.getDoc().on('selectstart',function(h,a){var g=b.selectableCls,f=b.unselectableCls,c=a&&a.tagName,d=new Ext.dom.Fly();c=c&&c.toLowerCase();if(c==='input'||c==='textarea'){return}while(a&&a.nodeType===1&&a!==e.documentElement){d.attach(a);if(d.hasCls(g)){return}if(d.hasCls(f)){h.stopEvent();return}a=a.parentNode}});if(Ext.os.is.Android||(Ext.os.is.Windows&&Ext.supports.Touch)){var d=Ext.getWin();b._documentWidth=b._viewportWidth=y.clientWidth;b._documentHeight=b._viewportHeight=y.clientHeight;d.on({focusin:'_onWindowFocusChange',focusout:'_onWindowFocusChange',pointerup:'_onWindowFocusChange',capture:!0,delegated:!1,delay:1,scope:b});d.on({resize:'_onWindowResize',priority:2000,scope:b})}if(n.Touch){a.push('x-touch')}if(Ext.isIE&&Ext.isIE9m){a.push('x-ie','x-ie9m');a.push('x-ie8p');if(Ext.isIE8){a.push('x-ie8')}else {a.push('x-ie9','x-ie9p')}if(Ext.isIE8m){a.push('x-ie8m')}}if(Ext.isIE10){a.push('x-ie10')}if(Ext.isIE10p){a.push('x-ie10p')}if(Ext.isIE11){a.push('x-ie11')}if(Ext.isEdge){a.push('x-edge')}if(Ext.isGecko){a.push('x-gecko')}if(Ext.isOpera){a.push('x-opera')}if(Ext.isOpera12m){a.push('x-opera12m')}if(Ext.isWebKit){a.push('x-webkit')}if(Ext.isSafari){a.push('x-safari')}if(Ext.isSafari&&Ext.browser.version.isLessThan(11)){a.push('x-safari10m')}if(Ext.isSafari9){a.push('x-safari9')}if(Ext.isSafari&&Ext.browser.version.isLessThan(9)){a.push('x-safari8m')}if(Ext.isChrome){a.push('x-chrome')}if(Ext.isMac){a.push('x-mac')}if(Ext.isWindows){a.push('x-windows')}if(Ext.isLinux){a.push('x-linux')}if(!n.CSS3BorderRadius){a.push('x-nbr')}if(!n.CSS3LinearGradient){a.push('x-nlg')}if(n.Touch){a.push('x-touch')}if(Ext.os.deviceType){a.push('x-'+Ext.os.deviceType.toLowerCase())}if(Ext.os.is.BlackBerry){a.push('x-bb');if(Ext.browser.userAgent.match(/Kbd/gi)){a.push('x-bb-keyboard')}}if(Ext.os.is.iOS&&Ext.isSafari){a.push('x-mobile-safari')}if(Ext.os.is.iOS&&Ext.browser.is.WebView&&!Ext.browser.is.Standalone){a.push('x-ios-native')}Ext.getBody().addCls(a);c=Ext.theme;if(c&&c.getDocCls){Ext.fly(document.documentElement).addCls(c.getDocCls())}},null,{priority:1500})}));(Ext.cmd.derive('Ext.util.Filter',Ext.Base,{isFilter:!0,config:{property:null,value:null,filterFn:null,id:null,anyMatch:!1,exactMatch:!1,caseSensitive:!1,disabled:!1,disableOnEmpty:!1,operator:null,root:null,serializer:null,convert:null},scope:null,$configStrict:!1,generation:0,statics:{createFilterFn:function(a){if(!a){return Ext.returnTrue}return function(f){var e=a.isCollection?a.items:a,g=e.length,d=!0,b,c;for(b=0;d&&b<g;b++){c=e[b];if(!c.getDisabled()){d=c.filter(f)}}return d}},isEqual:function(a,b){if(a.getProperty()!==b.getProperty()){return !1}if(a.getOperator()!==b.getOperator()){return !1}if(a.getValue()===b.getValue()){return !0}else if(Ext.isArray(a)&&Ext.isArray(b)&&Ext.Array.equals(a,b)){return !0}return !1},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 !1}},constructor:function(a){this.initConfig(a)},preventConvert:{'in':1,notin:1},filter:function(e){var a=this,d=a._filterFn||a.getFilterFn(),c=a.getConvert(),b=a._value;a._filterValue=b;a.isDateValue=Ext.isDate(b);if(a.isDateValue){a.dateValue=b.getTime()}if(c&&!a.preventConvert[a.getOperator()]){a._filterValue=c.call(a.scope||a,b)}return d.call(a.scope||a,e)},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 a=this,b=a._filterFn,c;if(!b){c=a.getOperator();if(c){b=a.operatorFns[c]}else {b=a.createRegexFilter()}a._filterFn=b;a.generatedFilterFn=!0}return b},createRegexFilter:function(){var a=this,b=!!a.getAnyMatch(),d=!!a.getExactMatch(),e=a.getValue(),c=Ext.String.createRegex(e,!b,!b&&d,!a.getCaseSensitive());return function(d){var b=a.getPropertyValue(d);return c?c.test(b):(b==null)}},getPropertyValue:function(a){var b=this._root,c=(b==null)?a:a[b];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(),c=this.getSerializer(),b;delete a.id;delete a.serializer;if(c){b=c.call(this,a);if(b){a=b}}return a},updateDisabled:function(){this.generation++},updateOperator:function(){this.onConfigMutation()},updateConvert:function(){this.onConfigMutation()},updateProperty:function(){this.onConfigMutation()},updateAnyMatch:function(){this.onConfigMutation()},updateExactMatch:function(){this.onConfigMutation()},updateCaseSensitive:function(){this.onConfigMutation()},updateValue:function(a){this.onConfigMutation();if(this.getDisableOnEmpty()){this.setDisabled(Ext.isEmpty(a))}},updateFilterFn:function(a){delete this.generatedFilterFn},onConfigMutation:function(){this.generation++;if(this.generatedFilterFn){this._filterFn=null}},updateDisableOnEmpty:function(a){if(a){this.setDisabled(Ext.isEmpty(this.getValue()))}},privates:{getCandidateValue:function(e,f,d){var b=this,c=b._convert,a=b.getPropertyValue(e);if(c){a=c.call(b.scope||b,a)}else if(!d){a=Ext.coerce(a,f)}return a}}},1,0,0,0,0,0,[Ext.util,'Filter'],function(){var b=this.prototype,a=(b.operatorFns={"<":function(b){var a=this._filterValue;return this.getCandidateValue(b,a)<a},"<=":function(b){var a=this._filterValue;return this.getCandidateValue(b,a)<=a},"=":function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a==c},"===":function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a===c},">=":function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},">":function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},"!=":function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!=c},"!==":function(a){var b=this,c=b._filterValue;a=b.getCandidateValue(a,c,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();c=b.dateValue}return a!==c},"in":function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1},"/=":function(c){var a=this,b=a._filterValue;c=a.getCandidateValue(c,b);if(b!==a.lastRegExpSource){a.lastRegExpSource=b;try{a.regex=new RegExp(b,'i')}catch(d){a.regex=null}}return a.regex?a.regex.test(c):!1}});a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']}));(Ext.cmd.derive('Ext.util.Observable',Ext.mixin.Observable,{$applyConfigs:!0},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:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length==1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b=='undefined'||b===null||typeof d=='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a<h;a++){if(e[a]==undefined){g.push(f[a])}}for(a=0;a<h;a++){if(c[a]==undefined){c[a]=g.shift()}}b.clear();b.addAll(c);b.resumeEvents()},updateKey:function(b,c){var a=this,e=a.map,d=a.indexOfKey(b),f=a.indexMap,g;if(d>-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a<d;a++){b=c[a];if(f.call(e||b,b,a,d)===!1){break}}},eachKey:function(f,e){var b=this.keys,d=this.items,a=0,c=b.length;for(;a<c;a++){f.call(e||window,b[a],d[a],a,c)}},findBy:function(f,c){var d=this.keys,b=this.items,a=0,e=b.length;for(;a<e;a++){if(f.call(c||window,b[a],d[a])){return b[a]}}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(c,b,d){var a;if(Ext.isIterable(b)){a=this.doInsert(c,b,d)}else {if(arguments.length>2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a<g;a++){e[a]=this.getKey(d[a])}}b.suspendEvents();for(a=0;a<g;a++){c=e[a];i=b.indexOfKey(c);if(i!==-1){if(i<f){f--}b.removeAt(i)}if(c!=null){if(h[c]!=null){l=!0;j--}h[c]=a}}b.resumeEvents();if(l){n=e;m=d;e=new Array(j);d=new Array(j);a=0;for(c in h){e[a]=n[h[c]];d[a]=m[h[c]];a++}g=j}k=f===b.length&&b.indexGeneration===b.generation;Ext.Array.insert(b.items,f,d);Ext.Array.insert(b.keys,f,e);b.length+=g;b.generation++;if(k){b.indexGeneration=b.generation}for(a=0;a<g;a++,f++){c=e[a];if(c!=null){b.map[c]=d[a];if(k){b.indexMap[c]=f}}if(o){b.fireEvent('add',f,d[a],c)}}return d},remove:function(d){var a=this,c,b;if(!a.useLinearSearch&&(c=a.getKey(d))){b=a.indexOfKey(c)}else {b=Ext.Array.indexOf(a.items,d)}return (b===-1)?!1:a.removeAt(b)},removeAll:function(b){var a=this,c;if(b||a.hasListeners.remove){if(b){for(c=b.length-1;c>=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b<a.length&&b>=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c<a.length&&c>=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d<e;d++){f=a.keys[d];if(f!=null){delete a.map[f];if(g){delete a.indexMap[f]}}}i=a.items[d-1];a.length-=b;a.generation++;if(g){a.indexGeneration=a.generation}if(h){a.items.length=a.keys.length=a.length}else {a.items.splice(c,b);a.keys.splice(c,b)}return i}return !1},removeAtKey:function(d){var b=this,c=b.keys,a;if(d==null){for(a=c.length-1;a>=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}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 b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;a<e;a++){d[c[a]]=a}b.indexGeneration=b.generation},get:function(a){var b=this,d=b.map[a],c=d!==undefined?d:(typeof a=='number')?b.items[a]:undefined;return typeof c!='function'||b.allowFunctions?c:null},getAt:function(a){return this.items[a]},getByKey:function(a){return this.map[a]},contains:function(a){var c=this,b;if(a!=null){if(!c.useLinearSearch&&(b=c.getKey(a))){return this.map[b]!=null}return Ext.Array.indexOf(this.items,a)!==-1}return !1},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(f,h,c,a){var d=this.extractValues(f,h),g=d.length,e=0,b;c=c||0;a=(a||a===0)?a:g-1;for(b=c;b<=a;b++){e+=d[b]}return e},collect:function(h,j,g){var e=this.extractValues(h,j),i=e.length,f={},d=[],a,c,b;for(b=0;b<i;b++){a=e[b];c=String(a);if((g||!Ext.isEmpty(a))&&!f[c]){f[c]=!0;d.push(a)}}return d},extractValues:function(c,b){var a=this.items;if(b){a=Ext.Array.pluck(a,b)}return Ext.Array.pluck(a,c)},hasRange:function(b,a){return (a<this.length)},getRange:function(b,a){var h=this,f=h.items,c=[],d=f.length,g,e;if(d<1){return c}if(b>a){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;b<f;b++){if(h.call(g||a,d[b],e[b])){c.add(e[b],d[b])}}c.useLinearSearch=a.useLinearSearch;return c},findIndex:function(d,a,e,c,b){if(Ext.isEmpty(a,!1)){return -1}a=this.createValueMatcher(a,c,b);return this.findIndexBy(function(f){return f&&a.test(f[d])},null,e)},findIndexBy:function(h,d,e){var b=this,f=b.keys,c=b.items,a=e||0,g=c.length;for(;a<g;a++){if(h.call(d||b,c[a],f[a])){return a}}return -1},createValueMatcher:function(a,e,c,d){if(!a.exec){var b=Ext.String.escapeRegex;a=String(a);if(e===!0){a=b(a)}else {a='^'+b(a);if(d===!0){a+='$'}}a=new RegExp(a,c?'':'i')}return a},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:!0,config:{property:null,sorterFn:null,root:null,transform:null,direction:"ASC",id:undefined},statics:{createComparator:function(b,a){a=a||0;return function(f,g){var e=b.isCollection?b.items:b,h=e.length,d,c;for(c=0;c<h;++c){d=e[c].sort(f,g);if(d){return d}}return a&&a(f,g)}}},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,e){var g=this,c=g._transform,f=g._root,h=g._property,a,b;if(f){d=d[f];e=e[f]}a=d[h];b=e[h];if(c){a=c(a);b=c(b)}return (a>b)?1:(a<b?-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(){var a=this,b={root:a.getRoot(),property:a.getProperty(),direction:a.getDirection()};if(a._id){b.id=a._id}return b},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:!0,$configPrefixed:!1,$configStrict:!1,config:{sorters:null},defaultSortDirection:"ASC",multiSortLimit:3,statics:{createComparator:function(a){return a&&a.length?function(d,e){var c=a[0].sort(d,e),f=a.length,b=1;for(;!c&&b<f;b++){c=a[b].sort.call(a[b],d,e)}return c}:function(){return 0}}},applySorters:function(b){var c=this,a=c.getSorters()||new Ext.util.MixedCollection(!1,Ext.returnId);if(b){a.addAll(c.decodeSorters(b))}return a},sort:function(a,f,e,h){var b=this,d,g,c=b.getSorters();if(!c){b.setSorters(null);c=b.getSorters()}if(Ext.isArray(a)){h=e;e=f}else if(Ext.isObject(a)){a=[a];h=e;e=f}else if(Ext.isString(a)){d=c.get(a);if(!d){d={property:a,direction:f}}else if(f==null){d.toggle()}else {d.setDirection(f)}a=[d]}if(a&&a.length){a=b.decodeSorters(a);switch(e){case "multi":c.insert(0,a[0]);g=c.getCount()-b.multiSortLimit;if(g>0){c.removeRange(b.multiSortLimit,g)};break;case "prepend":c.insert(0,a);break;case "append":c.addAll(a);break;case undefined:case null:case "replace":c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},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(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c<g;c++){a=b[c];if(!(a instanceof f)){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(e&&!a.transform){d=e.getField(a.property);a.transform=d&&d.sortType!==Ext.identityFn?d.sortType:undefined}b[c]=new Ext.util.Sorter(a)}}return b},getFirstSorter:function(){var c=this.getSorters().items,d=c.length,b=0,a;for(;b<d;++b){a=c[b];if(!a.isGrouper){return a}}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(h,j,g){var b=this,a,d,k=String(j).toUpperCase()=='DESC'?-1:1,c=[],i=b.keys,f=b.items,e;g=g||function(a,b){return a-b};for(a=0,d=f.length;a<d;a++){c[c.length]={key:i[a],value:f[a],index:a}}Ext.Array.sort(c,function(a,b){return g(a[h],b[h])*k||(a.index<b.index?-1:1)});for(a=0,d=c.length;a<d;a++){e=c[a];f[a]=e.value;i[a]=e.key;b.indexMap[e.key]=a}b.generation++;b.indexGeneration=b.generation;b.fireEvent('sort',b)},sortBy:function(h){var b=this,c=b.items,d,g=b.keys,e,f=c.length,a;for(a=0;a<f;a++){c[a].$extCollectionIndex=a}Ext.Array.sort(c,function(a,b){return h(a,b)||(a.$extCollectionIndex<b.$extCollectionIndex?-1:1)});for(a=0;a<f;a++){d=c[a];e=b.getKey(d);g[a]=e;b.indexMap[e]=a;delete d.$extCollectionIndex}b.generation++;b.indexGeneration=b.generation;b.fireEvent('sort',b,c,g)},findInsertionIndex:function(h,d){var g=this,f=g.items,b=0,e=f.length-1,a,c;if(!d){d=g.generateComparator()}while(b<=e){a=(b+e)>>1;c=d(h,f[a]);if(c>=0){b=a+1}else if(c<0){e=a-1}}return b},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(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:(c<d?-1:0)})}},1,0,0,0,0,[['sortable',Ext.util.Sortable]],[Ext.util,'MixedCollection'],0));(Ext.cmd.derive('Ext.util.TaskRunner',Ext.Base,{fireIdleEvent:null,interval:10,timerId:null,constructor:function(b){var a=this;if(typeof b==='number'){a.interval=b}else if(b){Ext.apply(a,b)}a.tasks=[];a.timerFn=a.onTick.bind(a)},newTask:function(b){var a=new Ext.util.TaskRunner.Task(b);a.manager=this;return a},start:function(a){var b=this,c=Ext.Date.now();if(!a.pending){b.tasks.push(a);a.pending=!0}a.stopped=!1;a.taskStartTime=c;a.taskRunTime=a.fireOnStart!==!1?0:a.taskStartTime;a.taskRunCount=0;if(!b.firing){if(a.fireOnStart!==!1){b.startTimer(0,c)}else {b.startTimer(a.interval,c)}}return a},stop:function(a,f){var e=this,d=e.tasks,c=0,b;if(!a.stopped){a.stopped=!0;a.pending=!1;if(a.onStop){a.onStop.call(a.scope||a,a)}}if(f){Ext.Array.remove(d,a)}for(b=0;!c&&b<d.length;b++){if(!d[b].stopped){c++}}if(!c){Ext.undefer(e.timerId);e.timerId=null}return a},stopAll:function(a){var b=this;Ext.each(this.tasks,function(c){b.stop(c,a)},null,!0)},firing:!1,nextExpires:1.0E99,onTick:function(){var b=this,i=b.tasks,f=b.fireIdleEvent,h=Ext.Date.now(),k=1.0E99,m=i.length,g,c,e,a,j,d,l;b.timerId=null;b.firing=!0;for(e=0;e<m||e<(m=i.length);++e){a=i[e];if(!(d=a.stopped)){g=a.taskRunTime+a.interval;if(g<=h){j=1;if(f===null&&a.fireIdleEvent!==!1){f=!0}a.taskRunCount++;if(a.args){l=a.addCountToArgs?a.args.concat([a.taskRunCount]):a.args}else {l=[a.taskRunCount]}try{j=a.run.apply(a.scope||a,l)}catch(n){try{if(a.onError){j=a.onError.call(a.scope||a,a,n)}}catch(o){}}a.taskRunTime=h;if(j===!1||a.taskRunCount===a.repeat){b.stop(a);d=!0}else {d=a.stopped;g=h+a.interval}}if(!d&&a.duration&&a.duration<=(h-a.taskStartTime)){b.stop(a);d=!0}}if(d){a.pending=!1;if(!c){c=i.slice(0,e)}}else {if(c){c.push(a)}if(k>g){k=g}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-h,Ext.Date.now())}if(f===null){f=!1}Ext._suppressIdle=!f},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){c=Ext.undefer(c)}if(!c){if(b<a.interval){b=a.interval}a.timerId=Ext.defer(a.timerFn,b);a.nextExpires=d}}},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:!0,stopped:!0,fireOnStart:!1,constructor:function(a){Ext.apply(this,a)},restart:function(a){if(a!==undefined){this.interval=a}this.manager.start(this)},start:function(a){if(this.stopped){this.restart(a)}},stop:function(a){this.manager.stop(this,a)},destroy:function(){this.stop(!0)}});a=b.Task.prototype;a.destroy=a.stop}));(Ext.cmd.derive('Ext.fx.target.Target',Ext.Base,{isAnimTarget:!0,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',constructor:function(a){Ext.fx.target.Target.prototype.constructor.call(this,a);this.isAbsoluteOnPage=this.target.dom.parentNode===document.body&&this.target.isStyle('position','absolute')},getElVal:function(c,b,a){if(a===undefined){if(b==='x'){a=c.getX()}else if(b==='y'){a=c.getY()}else if(b==='scrollTop'){a=c.getScroll().top}else if(b==='scrollLeft'){a=c.getScroll().left}else if(b==='height'){a=c.getHeight()}else if(b==='width'){a=c.getWidth()}else {a=c.getStyle(b)}}return a},getAttr:function(b,c){var a=this.target;return [[a,this.getElVal(a,b,c)]]},setAttr:function(f){var h=f.length,a,b,e,c,d,g;for(c=0;c<h;c++){a=f[c].attrs;for(b in a){if(a.hasOwnProperty(b)){g=a[b].length;for(d=0;d<g;d++){e=a[b][d];this.setElVal(e[0],b,e[1])}}}}},setElVal:function(a,c,b){if(c==='x'){if(this.isAbsoluteOnPage){a.setLocalX(b)}else {a.setXY([b,null])}}else if(c==='y'){if(this.isAbsoluteOnPage){a.setLocalY(b)}else {a.setXY([null,b])}}else if(c==='scrollTop'){a.scrollTo('top',b)}else if(c==='scrollLeft'){a.scrollTo('left',b)}else if(c==='width'){a.setWidth(b)}else if(c==='height'){a.setHeight(b)}else {a.setStyle(c,b)}}},1,0,0,0,0,0,[Ext.fx.target,'Element'],0));(Ext.cmd.derive('Ext.fx.target.ElementCSS',Ext.fx.target.Element,{setAttr:function(j,f){var d={attrs:[],duration:[],easing:[]},m=j.length,n=function(){this.setStyle(Ext.supports.CSS3Prefix+'TransitionProperty',null);this.setStyle(Ext.supports.CSS3Prefix+'TransitionDuration',null);this.setStyle(Ext.supports.CSS3Prefix+'TransitionTimingFunction',null)},o={single:!0},k,a,e,h,g,b,c,i,l;for(c=0;c<m;c++){a=j[c];g=a.duration;h=a.easing;a=a.attrs;for(e in a){if(Ext.Array.indexOf(d.attrs,e)==-1){d.attrs.push(e.replace(/[A-Z]/g,function(a){return '-'+a.toLowerCase()}));d.duration.push(g+'ms');d.easing.push(h)}}}k=d.attrs.join(',');g=d.duration.join(',');h=d.easing.join(', ');for(c=0;c<m;c++){a=j[c].attrs;for(e in a){l=a[e].length;for(i=0;i<l;i++){b=a[e][i];b[0].setStyle(Ext.supports.CSS3Prefix+'TransitionProperty',f?'':k);b[0].setStyle(Ext.supports.CSS3Prefix+'TransitionDuration',f?'':g);b[0].setStyle(Ext.supports.CSS3Prefix+'TransitionTimingFunction',f?'':h);b[0].setStyle(e,b[1]);if(f){b=b[0].dom.offsetWidth}else {b[0].on(Ext.supports.CSS3TransitionEnd,n,b[0],o)}}}}}},0,0,0,0,0,0,[Ext.fx.target,'ElementCSS'],0));(Ext.cmd.derive('Ext.fx.target.CompositeElement',Ext.fx.target.Element,{isComposite:!0,constructor:function(a){a.id=a.id||Ext.id(null,'ext-composite-');Ext.fx.target.Element.prototype.constructor.call(this,a)},getAttr:function(g,h){var e=[],d=this.target,c=d.elements,f=c.length,b,a;for(b=0;b<f;b++){a=c[b];if(a){a=d.getElement(a);e.push([a,this.getElVal(a,g,h)])}}return e},setAttr:function(g){var i=this.target,m=g.length,h=i.elements,l=h.length,j,f,a,b,c,d,e,k;for(d=0;d<m;d++){a=g[d].attrs;for(b in a){if(a.hasOwnProperty(b)){k=a[b].length;for(e=0;e<k;e++){j=a[b][e][1];for(f=0;f<l;++f){c=h[f];if(c){c=i.getElement(c);this.setElVal(c,b,j)}}}}}}},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,c){var a;switch(c){case 'rotate':case 'rotation':a=b.attr.rotation;return {x:a.x||0,y:a.y||0,degrees:a.degrees||0};case 'scale':case 'scaling':a=b.attr.scaling;return {x:a.x||1,y:a.y||1,cx:a.cx||0,cy:a.cy||0};case 'translate':case 'translation':a=b.attr.translation;return {x:a.x||0,y:a.y||0};default:return b.attr[c];}},getAttr:function(b,a){return [[this.target,a!==undefined?a:this.getFromPrim(this.target,b)]]},setAttr:function(n){var m=n.length,f=[],k,a,i,b,l,j,g,c,h,d,e,o;for(c=0;c<m;c++){k=n[c].attrs;for(a in k){i=k[a];o=i.length;for(h=0;h<o;h++){l=i[h][0];b=i[h][1];if(a==='translate'||a==='translation'){g={x:b.x,y:b.y}}else if(a==='rotate'||a==='rotation'){d=b.x;if(isNaN(d)){d=null}e=b.y;if(isNaN(e)){e=null}g={degrees:b.degrees,x:d,y:e}}else if(a==='scale'||a==='scaling'){d=b.x;if(isNaN(d)){d=null}e=b.y;if(isNaN(e)){e=null}g={x:d,y:e,cx:b.cx,cy:b.cy}}else if(a==='width'||a==='height'||a==='x'||a==='y'){g=parseFloat(b)}else {g=b}j=Ext.Array.indexOf(f,l);if(j===-1){f.push([l,{}]);j=f.length-1}f[j][1][a]=g}}}m=f.length;for(c=0;c<m;c++){f[c][0].setAttributes(f[c][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(g,e){var d=[],c=[].concat(this.target.items),f=c.length,a,b;for(a=0;a<f;a++){b=c[a];d.push([b,e!==undefined?e:this.getFromPrim(b,g)])}return d}},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(!0)[1]},left:function(){return this.getPosition(!0)[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(b,a){return [[this.target,a!==undefined?a:this.getPropMethod[b].call(this.target)]]},setAttr:function(k,q,o){var h=this,p=k.length,d,c,a,e,f,l,m,n,j,i,b={},g;for(e=0;e<p;e++){d=k[e].attrs;for(c in d){l=d[c].length;for(f=0;f<l;f++){a=d[c][f];g=b[h.setMethods[c]]||(b[h.setMethods[c]]={});g.target=a[0];g[c]=a[1]}}if(b.setPosition){a=b.setPosition;m=(a.left===undefined)?undefined:parseFloat(a.left);n=(a.top===undefined)?undefined:parseFloat(a.top);a.target.setPosition(m,n)}if(b.setPagePosition){a=b.setPagePosition;a.target.setPagePosition(a.x,a.y)}if(b.setSize){a=b.setSize;j=(a.width===undefined)?a.target.getWidth():parseFloat(a.width);i=(a.height===undefined)?a.target.getHeight():parseFloat(a.height);a.target.el.setSize(j,i);if(o||h.dynamic){Ext.GlobalEvents.on({idle:Ext.Function.bind(a.target.setSize,a.target,[j,i]),single:!0})}}if(b.setOpacity){a=b.setOpacity;a.target.el.setStyle('opacity',a.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(b){var a=this.targets.get(b);if(a){return a.fxDefaults}return {}},setFxDefaults:function(b,c){var a=this.targets.get(b);if(a){a.fxDefaults=Ext.apply(a.fxDefaults||{},c)}},stopAnimation:function(e,d){var f=this,c=f.getFxQueue(e),b=c.length,a;while(b){a=c[b-1];if(a){a.end(d)}b--}},getActiveAnimation:function(b){var a=this.getFxQueue(b);return (a&&!!a.length)?a[0]:!1},hasFxBlock:function(b){var a=this.getFxQueue(b);return a&&a[0]&&a[0].block},getFxQueue:function(a){if(!a){return !1}var c=this,b=c.fxQueue,e=b[a],d=c.targets.get(a);if(!d){return !1}if(!e){c.fxQueue[a]=b[a]=[];if(d.type!=='element'){d.target.on('destroy',function(){b[a]=null;delete b[a]})}}return c.fxQueue[a]},clearFxQueue:function(){Ext.Object.clear(this.fxQueue)},queueFx:function(a){var c=this,e=a.target,d=e.getId(),b,f;if(!e){return}b=c.getFxQueue(d);f=b.length;if(f){if(a.concurrent){a.paused=!1}else {b[f-1].on('afteranimate',function(){a.paused=!1})}}else {a.paused=!1}a.on('afteranimate',function(){Ext.Array.remove(b,a);if(b.length===0){c.targets.remove(a.target);c.fxQueue[d]=null;delete c.fxQueue[d]}if(a.remove){if(e.type==='element'){var f=Ext.get(d);if(f){f.destroy()}}}},c,{single:!0});b.push(a)}},1,0,0,0,0,0,[Ext.fx,'Queue'],0));(Ext.cmd.derive('Ext.fx.Manager',Ext.Base,{singleton:!0,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:!0,createTarget:function(a){var d=this,c=!d.forceJS&&Ext.supports.Transitions,b;d.useCSS3=c;if(a){if(a.tagName||Ext.isString(a)||a.isFly){a=Ext.get(a);b=new Ext.fx.target['Element'+(c?'CSS':'')](a)}else if(a.dom){b=new Ext.fx.target['Element'+(c?'CSS':'')](a)}else if(a.isComposite){b=new Ext.fx.target['CompositeElement'+(c?'CSS':'')](a)}else if(a.isSprite){b=new Ext.fx.target.Sprite(a)}else if(a.isCompositeSprite){b=new Ext.fx.target.CompositeSprite(a)}else if(a.isComponent){b=new Ext.fx.target.Component(a)}else if(a.isAnimTarget){return a}else {return null}d.targets.add(b);return b}else {return null}},addAnim:function(d){var a=this,c=a.items,b=a.task;c.add(d.id,d);if(!b&&c.length){b=a.task={run:a.runner,interval:a.interval,scope:a};a.taskRunner.start(b)}},removeAnim:function(d){var a=this,b=a.items,c=a.task;b.removeAtKey(d.id);if(c&&!b.length){a.taskRunner.stop(c);delete a.task}},runner:function(){var a=this,d=a.items.getRange(),b=0,e=d.length,c;a.targetArr={};a.timestamp=new Date();for(;b<e;b++){c=d[b];if(c.isReady()){a.startAnim(c)}}for(b=0;b<e;b++){c=d[b];if(c.isRunning()){a.runAnim(c)}}a.applyPendingAttrs();a.targetArr=null},startAnim:function(a){a.start(this.timestamp)},runAnim:function(a,h){if(!a){return}var d=this,g=d.useCSS3&&a.target.type==='element',e=d.timestamp-a.startTime,f=(e>=a.duration),b,c;if(h){e=a.duration;f=!0}b=d.collectTargetData(a,e,g,f);if(g){a.target.setAttr(b.anims[a.id].attributes,!0);d.collectTargetData(a,a.duration,g,f);a.paused=!0;b=a.target.target;if(a.target.isComposite){b=a.target.target.last()}c={};c[Ext.supports.CSS3TransitionEnd]=a.lastFrame;c.scope=a;c.single=!0;b.on(c)}return b},jumpToEnd:function(d){var a=this,b,c;if(!a.targetArr){a.targetArr={};c=!0}b=a.runAnim(d,!0);a.applyAnimAttrs(b,b.anims[d.id]);if(c){a.targetArr=null}},collectTargetData:function(a,d,f,e){var c=a.target.getId(),b=this.targetArr[c];if(!b){b=this.targetArr[c]={id:c,el:a.target,anims:{}}}b.anims[a.id]={id:a.id,anim:a,elapsed:d,isLastFrame:e,attributes:[{duration:a.duration,easing:(f&&a.reverse)?a.easingFn.reverse().toCSS3():a.easing,attrs:a.runAnim(d)}]};return b},applyAnimAttrs:function(c,a){var b=a.anim;if(a.attributes&&b.isRunning()){c.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){b.lastFrame()}}},applyPendingAttrs:function(){var c=this.targetArr,b,d,a,f,e;for(d in c){if(c.hasOwnProperty(d)){b=c[d];for(e in b.anims){if(b.anims.hasOwnProperty(e)){a=b.anims[e];f=a.anim;if(a.attributes&&f.isRunning()){b.el.setAttr(a.attributes,!1,a.isLastFrame);if(a.isLastFrame){f.lastFrame()}}}}}}},clear:function(){var a=this;if(a.taskRunner){a.taskRunner.stopAll(!0)}a.targetArr={};a.items.clear();a.targets.clear();a.clearFxQueue()}},1,0,0,0,0,[['queue',Ext.fx.Queue]],[Ext.fx,'Manager'],0));(Ext.cmd.derive('Ext.fx.Animator',Ext.Base,{isAnimator:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',running:!1,paused:!1,damper:1,iterations:1,currentIteration:0,keyframeStep:0,animKeyFramesRE:/^(from|to|\d+%?)$/,constructor:function(b){var a=this;b=Ext.apply(a,b||{});a.config=b;a.id=Ext.id(null,'ext-animator-');a.mixins.observable.constructor.call(a,b);a.timeline=[];a.createTimeline(a.keyframes);if(a.target){a.applyAnimator(a.target);Ext.fx.Manager.addAnim(a)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(e){var d=this,b=[],k=d.to||{},g=d.duration,h,j,c,i,a,f;for(a in e){if(e.hasOwnProperty(a)&&d.animKeyFramesRE.test(a)){f={attrs:Ext.apply(e[a],k)};if(a==="from"){a=0}else if(a==="to"){a=100}f.pct=parseInt(a,10);b.push(f)}}Ext.Array.sort(b,d.sorter);i=b.length;for(c=0;c<i;c++){h=(b[c-1])?g*(b[c-1].pct/100):0;j=g*(b[c].pct/100);d.timeline.push({duration:j-h,attrs:b[c].attrs})}},applyAnimator:function(j){var b=this,e=[],g=b.timeline,f=g.length,a,i,h,d,c;if(b.fireEvent('beforeanimate',b)!==!1){for(c=0;c<f;c++){a=g[c];d=a.attrs;i=d.easing||b.easing;h=d.damper||b.damper;delete d.easing;delete d.damper;a=new Ext.fx.Anim({target:j,easing:i,damper:h,duration:a.duration,paused:!0,to:d});e.push(a)}b.animations=e;b.target=a.target;for(c=0;c<f-1;c++){a=e[c];a.nextAnim=e[c+1];a.on('afteranimate',function(){this.nextAnim.paused=!1});a.on('afteranimate',function(){this.fireEvent('keyframe',this,++this.keyframeStep)},b)}e[f-1].on('afteranimate',function(){this.lastFrame()},b)}},start:function(b){var a=this,d=a.delay,c=a.delayStart,e;if(d){if(!c){a.delayStart=b;return}else {e=b-c;if(e<d){return}else {b=new Date(c.getTime()+d)}}}if(a.fireEvent('beforeanimate',a)!==!1){a.startTime=b;a.running=!0;a.animations[a.keyframeStep].paused=!1}},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b<c){a.startTime=new Date();a.currentIteration=b;a.keyframeStep=0;a.applyAnimator(a.target);a.animations[a.keyframeStep].paused=!1}else {a.currentIteration=0;a.end()}},end:function(){var a=this;a.fireEvent('afteranimate',a,a.startTime,new Date()-a.startTime)},isReady:function(){return this.paused===!1&&this.running===!1&&this.iterations>0},isRunning:function(){return !1}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Animator'],0));(Ext.cmd.derive('Ext.fx.CubicBezier',Ext.Base,{singleton:!0,cubicBezierAtTime:function(l,d,e,i,j,h){var a=3*d,b=3*(i-d)-a,f=1-a-b,c=3*e,g=3*(j-e)-c,k=1-c-g;function sampleCurveX(c){return ((f*c+b)*c+a)*c}function solve(f,b){var a=solveCurveX(f,b);return ((k*a+g)*a+c)*a}function solveCurveX(n,q){var g,k,c,m,o,p;for(c=n,p=0;p<8;p++){m=sampleCurveX(c)-n;if(Math.abs(m)<q){return c}o=(3*f*c+2*b)*c+a;if(Math.abs(o)<1.0E-6){break}c=c-m/o}g=0;k=1;c=n;if(c<g){return g}if(c>k){return k}while(g<k){m=sampleCurveX(c);if(Math.abs(m-n)<q){return c}if(n>m){g=c}else {k=c}c=(k-g)/2+g}return c}return solve(l,1/(200*h))},cubicBezier:function(b,d,c,e){var a=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,b,d,c,e,1)};a.toCSS3=function(){return 'cubic-bezier('+[b,d,c,e].join(',')+')'};a.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-c,1-e,1-b,1-d)};return a}},0,0,0,0,0,0,[Ext.fx,'CubicBezier'],0));(Ext.cmd.derive('Ext.fx.Easing',Ext.Base,function(){var b=Math,g=b.PI,a=b.pow,f=b.sin,e=b.sqrt,d=b.abs,c=1.70158;return {singleton:!0,linear:Ext.identityFn,ease:function(k){var c=0.07813-k/2,f=e(0.0066+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.25;return a(1-b,2)*3*b*0.1+(1-b)*3*b*b+b*b*b},easeIn:function(b){return a(b,1.7)},easeOut:function(b){return a(b,0.48)},easeInOut:function(k){var c=0.48-k/1.04,f=e(0.1734+c*c),g=f-c,i=a(d(g),1/3)*(g<0?-1:1),h=-f-c,j=a(d(h),1/3)*(h<0?-1:1),b=i+j+0.5;return (1-b)*3*b*b+b*b*b},backIn:function(a){return a*a*((c+1)*a-c)},backOut:function(a){a=a-1;return a*a*((c+1)*a+c)+1},elasticIn:function(b){if(b===0||b===1){return b}var c=0.3,d=c/4;return a(2,-10*b)*f((b-d)*(2*g)/c)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var d=7.5625,b=2.75,c;if(a<(1/b)){c=d*a*a}else {if(a<(2/b)){a-=(1.5/b);c=d*a*a+0.75}else {if(a<(2.5/b)){a-=(2.25/b);c=d*a*a+0.9375}else {a-=(2.625/b);c=d*a*a+0.984375}}}return c}}},0,0,0,0,0,0,[Ext.fx,'Easing'],function(c){var b=c.self,a=b.prototype;b.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:!0,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(c){if(!c){return null}var d={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=[],b=this;if(b.is(c,"array")&&b.is(c[0],"array")){a=b.pathClone(c)}if(!a.length){String(c).replace(b.pathCommandRE,function(i,g,h){var e=[],f=g.toLowerCase();h.replace(b.pathValuesRE,function(b,a){if(a){e.push(+a)}});if(f=="m"&&e.length>2){a.push([g].concat(Ext.Array.splice(e,0,2)));f="l";g=(g=="m")?"l":"L"}while(e.length>=d[f]){a.push([g].concat(Ext.Array.splice(e,0,d[f])));if(!d[f]){break}}})}a.toString=b.path2string;return a},pathClone:function(a){var d=[],c,f,b,e;if(!this.is(a,"array")||!this.is(a&&a[0],"array")){a=this.parsePathString(a)}for(b=0,e=a.length;b<e;b++){d[b]=[];for(c=0,f=a[b].length;c<f;c++){d[b][c]=a[b][c]}}d.toString=this.path2string;return d},pathToAbsolute:function(d){if(!this.is(d,"array")||!this.is(d&&d[0],"array")){d=this.parsePathString(d)}var i=[],f=0,g=0,j=0,k=0,h=0,l=d.length,b,a,c,e;if(l&&d[0][0]=="M"){f=+d[0][1];g=+d[0][2];j=f;k=g;h++;i[0]=["M",f,g]}for(;h<l;h++){b=i[h]=[];a=d[h];if(a[0]!=a[0].toUpperCase()){b[0]=a[0].toUpperCase();switch(b[0]){case "A":b[1]=a[1];b[2]=a[2];b[3]=a[3];b[4]=a[4];b[5]=a[5];b[6]=+(a[6]+f);b[7]=+(a[7]+g);break;case "V":b[1]=+a[1]+g;break;case "H":b[1]=+a[1]+f;break;case "M":j=+a[1]+f;k=+a[2]+g;default:c=1;e=a.length;for(;c<e;c++){b[c]=+a[c]+((c%2)?f:g)};}}else {c=0;e=a.length;for(;c<e;c++){i[h][c]=a[c]}}switch(b[0]){case "Z":f=j;g=k;break;case "H":f=b[1];break;case "V":g=b[1];break;case "M":a=i[h];e=a.length;j=a[e-2];k=a[e-1];default:a=i[h];e=a.length;f=a[e-2];g=a[e-1];}}i.toString=this.path2string;return i},interpolatePaths:function(o,n){var k=this,c=k.pathToAbsolute(o),b=k.pathToAbsolute(n),e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l=function(a,d){if(a[d].length>7){a[d].shift();var e=a[d];while(e.length){Ext.Array.splice(a,d++,0,["C"].concat(Ext.Array.splice(e,0,6)))}Ext.Array.erase(a,d,1);j=Math.max(c.length,b.length||0)}},m=function(d,f,e,g,a){if(d&&f&&d[a][0]=="M"&&f[a][0]!="M"){Ext.Array.splice(f,a,0,["M",g.x,g.y]);e.bx=0;e.by=0;e.x=d[a][1];e.y=d[a][2];j=Math.max(c.length,b.length||0)}},a,j,g,f,i,h;for(a=0,j=Math.max(c.length,b.length||0);a<j;a++){c[a]=k.command2curve(c[a],e);l(c,a);(b[a]=k.command2curve(b[a],d));l(b,a);m(c,b,e,d,a);m(b,c,d,e,a);g=c[a];f=b[a];i=g.length;h=f.length;e.x=g[i-2];e.y=g[i-1];e.bx=parseFloat(g[i-4])||e.x;e.by=parseFloat(g[i-3])||e.y;d.bx=(parseFloat(f[h-4])||d.x);d.by=(parseFloat(f[h-3])||d.y);d.x=f[h-2];d.y=f[h-1]}return [c,b]},command2curve:function(b,a){var c=this;if(!b){return ["C",a.x,a.y,a.x,a.y,a.x,a.y]}if(b[0]!="T"&&b[0]!="Q"){a.qx=a.qy=null}switch(b[0]){case "M":a.X=b[1];a.Y=b[2];break;case "A":b=["C"].concat(c.arc2curve.apply(c,[a.x,a.y].concat(b.slice(1))));break;case "S":b=["C",a.x+(a.x-(a.bx||a.x)),a.y+(a.y-(a.by||a.y))].concat(b.slice(1));break;case "T":a.qx=a.x+(a.x-(a.qx||a.x));a.qy=a.y+(a.y-(a.qy||a.y));b=["C"].concat(c.quadratic2curve(a.x,a.y,a.qx,a.qy,b[1],b[2]));break;case "Q":a.qx=b[1];a.qy=b[2];b=["C"].concat(c.quadratic2curve(a.x,a.y,b[1],b[2],b[3],b[4]));break;case "L":b=["C"].concat(a.x,a.y,b[1],b[2],b[1],b[2]);break;case "H":b=["C"].concat(a.x,a.y,b[1],a.y,b[1],a.y);break;case "V":b=["C"].concat(a.x,a.y,a.x,b[1],a.x,b[1]);break;case "Z":b=["C"].concat(a.x,a.y,a.X,a.Y,a.X,a.Y);break;}return b},quadratic2curve:function(g,h,c,d,e,f){var a=1/3,b=2/3;return [a*g+b*c,a*h+b*d,a*e+b*c,a*f+b*d,e,f]},rotate:function(d,e,b){var a=Math.cos(b),c=Math.sin(b),f=d*a-e*c,g=d*c+e*a;return {x:f,y:g}},arc2curve:function(m,n,d,c,K,X,v,e,f,o){var s=this,k=Math.PI,Y=s.radian,Q=k*120/180,w=Y*(+K||0),g=[],p=Math,B=p.cos,C=p.sin,N=p.sqrt,R=p.abs,M=p.asin,t,i,j,u,x,y,I,q,r,b,a,z,S,V,T,W,J,D,E,F,l,G,H,A,h,U,L,O,P;if(!o){t=s.rotate(m,n,-w);m=t.x;n=t.y;t=s.rotate(e,f,-w);e=t.x;f=t.y;i=(m-e)/2;j=(n-f)/2;u=(i*i)/(d*d)+(j*j)/(c*c);if(u>1){u=N(u);d=u*d;c=u*c}x=d*d;y=c*c;I=(X==v?-1:1)*N(R((x*y-x*j*j-y*i*i)/(x*j*j+y*i*i)));q=I*d*j/c+(m+e)/2;r=I*-c*i/d+(n+f)/2;b=M(((n-r)/c).toFixed(7));a=M(((f-r)/c).toFixed(7));b=m<q?k-b:b;a=e<q?k-a:a;if(b<0){b=k*2+b}if(a<0){a=k*2+a}if(v&&b>a){b=b-k*2}if(!v&&a>b){a=a-k*2}}else {b=o[0];a=o[1];q=o[2];r=o[3]}z=a-b;if(R(z)>Q){L=a;O=e;P=f;a=b+Q*(v&&a>b?1:-1);e=q+d*B(a);f=r+c*C(a);g=s.arc2curve(e,f,d,c,K,0,v,O,P,[a,L,q,r])}z=a-b;S=B(b);V=C(b);T=B(a);W=C(a);J=p.tan(z/4);D=4/3*d*J;E=4/3*c*J;F=[m,n];l=[m+D*V,n-E*S];G=[e+D*W,f-E*T];H=[e,f];l[0]=2*F[0]-l[0];l[1]=2*F[1]-l[1];if(o){return [l,G,H].concat(g)}else {g=[l,G,H].concat(g).join().split(",");A=[];U=g.length;for(h=0;h<U;h++){A[h]=h%2?s.rotate(g[h-1],g[h],w).y:s.rotate(g[h],g[h+1],w).x}return A}}},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(c,d,e,f,i){e=(typeof e=='number')?e:1;var g=this.unitRE,a=g.exec(c),h,b;if(a){c=a[1];b=a[2];if(!this.scrollRE.test(i)&&!b&&this.pixelDefaultsRE.test(i)){b='px'}}c=+c||0;a=g.exec(d);if(a){d=a[1];b=a[2]||b}d=+d||0;h=(f!=null)?f:c;return {from:c,delta:(d-h)*e,units:b}},get:function(b,e,i,h,j){var l=b.length,f=[],a,d,g,c,k;for(a=0;a<l;a++){if(h){d=h[a][1].from}if(Ext.isArray(b[a][1])&&Ext.isArray(e)){g=[];c=0;k=b[a][1].length;for(;c<k;c++){g.push(this.computeDelta(b[a][1][c],e[c],i,d,j))}f.push([b[a][0],g])}else {f.push([b[a][0],this.computeDelta(b[a][1],e,i,d,j)])}}return f},set:function(d,g){var i=d.length,e=[],b,a,f,h,c;for(b=0;b<i;b++){a=d[b][1];if(Ext.isArray(a)){f=[];c=0;h=a.length;for(;c<h;c++){f.push(a[c].from+a[c].delta*g+(a[c].units||0))}e.push([d[b][0],f])}else {e.push([d[b][0],a.from+a.delta*g+(a.units||0)])}}return e}},stringHandler:{computeDelta:function(a,b,d,c,e){return {from:a,delta:b}},get:function(b,g,e,i,f){var h=b.length,c=[],a,d;for(a=0;a<h;a++){c.push([b[a][0],this.computeDelta(b[a][1],g,e,d,f)])}return c},set:function(b,f){var e=b.length,c=[],a,d;for(a=0;a<e;a++){d=b[a][1];c.push([b[a][0],d.delta])}return c}},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(f,d){d=(typeof d=='number')?d:1;var g=!1,e=[this.hexRE,this.rgbRE,this.hex3RE],i=e.length,a,c,h,b;for(b=0;b<i;b++){h=e[b];c=(b%2===0)?16:10;a=h.exec(f);if(a&&a.length===4){if(b===2){a[1]+=a[1];a[2]+=a[2];a[3]+=a[3]}g={red:parseInt(a[1],c),green:parseInt(a[2],c),blue:parseInt(a[3],c)};break}}return g||f},computeDelta:function(d,a,c,e){d=this.parseColor(d);a=this.parseColor(a,c);var b=e?e:d,f=typeof b,g=typeof a;if(f==='string'||f==='undefined'||g==='string'||g==='undefined'){return a||b}return {from:d,delta:{red:Math.round((a.red-b.red)*c),green:Math.round((a.green-b.green)*c),blue:Math.round((a.blue-b.blue)*c)}}},get:function(b,g,f,c){var h=b.length,e=[],a,d;for(a=0;a<h;a++){if(c){d=c[a][1].from}e.push([b[a][0],this.computeDelta(b[a][1],g,f,d)])}return e},set:function(f,e){var i=f.length,h=[],b,a,g,d,c;for(b=0;b<i;b++){a=f[b][1];if(a){d=a.from;c=a.delta;a=(typeof a==='object'&&'red' in a)?'rgb('+a.red+', '+a.green+', '+a.blue+')':a;a=(typeof a==='object'&&a.length)?a[0]:a;if(typeof a==='undefined'){return []}g=typeof a==='string'?a:'rgb('+[(d.red+Math.round(c.red*e))%256,(d.green+Math.round(c.green*e))%256,(d.blue+Math.round(c.blue*e))%256].join(',')+')';h.push([f[b][0],g])}}return h}},object:{interpolate:function(c,a){a=(typeof a==='number')?a:1;var d={},b;for(b in c){d[b]=parseFloat(c[b])*a}return d},computeDelta:function(a,b,f,d){a=this.interpolate(a);b=this.interpolate(b,f);var g=d?d:a,e={},c;for(c in b){e[c]=b[c]-g[c]}return {from:a,delta:e}},get:function(b,g,f,c){var h=b.length,e=[],a,d;for(a=0;a<h;a++){if(c){d=c[a][1].from}e.push([b[a][0],this.computeDelta(b[a][1],g,f,d)])}return e},set:function(c,i){var j=c.length,h=[],f={},a,d,g,e,b;for(a=0;a<j;a++){e=c[a][1];d=e.from;g=e.delta;for(b in d){f[b]=d[b]+g[b]*i}h.push([c[a][0],f])}return h}},path:{computeDelta:function(b,c,a,d){a=(typeof a==='number')?a:1;var e;b=+b||0;c=+c||0;e=(d!=null)?d:b;return {from:b,delta:(c-e)*a}},forcePath:function(a){if(!Ext.isArray(a)&&!Ext.isArray(a[0])){a=Ext.fx.DrawPath.parsePathString(a)}return a},get:function(g,p,o,i){var f=this.forcePath(p),m=[],n=g.length,j,k,e,c,l,a,d,h,b;for(e=0;e<n;e++){b=this.forcePath(g[e][1]);c=Ext.fx.DrawPath.interpolatePaths(b,f);b=c[0];f=c[1];j=b.length;h=[];for(a=0;a<j;a++){c=[b[a][0]];k=b[a].length;for(d=1;d<k;d++){l=i&&i[0][1][a][d].from;c.push(this.computeDelta(b[a][d],f[a][d],o,l))}h.push(c)}m.push([g[e][0],h])}return m},set:function(g,k){var l=g.length,j=[],c,a,d,f,e,b,h,i;for(c=0;c<l;c++){b=g[c][1];f=[];h=b.length;for(a=0;a<h;a++){e=[b[a][0]];i=b[a].length;for(d=1;d<i;d++){e.push(b[a][d].from+b[a][d].delta*k)}f.push(e.join(','))}j.push([g[c][0],f.join(',')])}return j}}}},0,0,0,0,0,0,[Ext.fx,'PropertyHandler'],function(){var b=['outlineColor','backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor','fill','stroke'],d=b.length,a=0,c;for(;a<d;a++){c=b[a];this[c]=this.color}b=['cursor'];d=b.length;a=0;for(;a<d;a++){c=b[a];this[c]=this.stringHandler}}));(Ext.cmd.derive('Ext.fx.Anim',Ext.Base,{isAnimation:!0,duration:250,delay:0,delayStart:0,dynamic:!1,easing:'ease',damper:1,bezierRE:/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,reverse:!1,running:!1,paused:!1,iterations:1,autoEnd:!1,alternate:!1,currentIteration:0,startTime:0,frameCount:0,constructor:function(b){var a=this,c;b=b||{};if(b.keyframes){return new Ext.fx.Animator(b)}Ext.apply(a,b);if(a.from===undefined){a.from={}}a.propHandlers={};a.config=b;a.target=Ext.fx.Manager.createTarget(a.target);a.easingFn=Ext.fx.Easing[a.easing];a.target.dynamic=a.dynamic;if(!a.easingFn){a.easingFn=String(a.easing).match(a.bezierRE);if(a.easingFn&&a.easingFn.length===5){c=a.easingFn;a.easingFn=Ext.fx.CubicBezier.cubicBezier(+c[1],+c[2],+c[3],+c[4])}}a.id=Ext.id(null,'ext-anim-');a.mixins.observable.constructor.call(a);Ext.fx.Manager.addAnim(a);if(b.autoEnd){a.running=!0;a.jumpToEnd()}},setAttr:function(b,a){return Ext.fx.Manager.items.get(this.id).setAttr(this.target,b,a)},initAttrs:function(){var b=this,i=b.from,e=b.to,h=b.initialFrom||{},g={},f,d,c,a;for(a in e){if(e.hasOwnProperty(a)){f=b.target.getAttr(a,i[a]);d=e[a];if(!Ext.fx.PropertyHandler[a]){if(Ext.isObject(d)){c=b.propHandlers[a]=Ext.fx.PropertyHandler.object}else {c=b.propHandlers[a]=Ext.fx.PropertyHandler.defaultHandler}}else {c=b.propHandlers[a]=Ext.fx.PropertyHandler[a]}g[a]=c.get(f,d,b.damper,h[a],a)}}b.currentAttrs=g},start:function(b){var a=this,d=a.delay,c=a.delayStart,e;if(d){if(!c){a.delayStart=b;return}else {e=b-c;if(e<d){return}else {b=new Date(c.getTime()+d)}}}if(a.fireEvent('beforeanimate',a)!==!1){a.startTime=b;if(!a.paused&&!a.currentAttrs){a.initAttrs()}a.running=!0;a.frameCount=0}},jumpToEnd:function(b){var a=this;if(!a.endWasCalled){if(!a.currentAttrs){a.initAttrs()}Ext.fx.Manager.jumpToEnd(a);a.end(b)}},runAnim:function(b){var a=this,e=a.currentAttrs,d=a.duration,k=a.easingFn,j=a.propHandlers,i={},g,h,c,f;if(b>=d){b=d;f=!0}if(a.reverse){b=d-b}for(c in e){if(e.hasOwnProperty(c)){h=e[c];g=f?1:k(b/d);i[c]=j[c].set(h,g)}}a.frameCount++;return i},lastFrame:function(){var a=this,c=a.iterations,b=a.currentIteration;b++;if(b<c){if(a.alternate){a.reverse=!a.reverse}a.startTime=new Date();a.currentIteration=b;a.paused=!1}else {a.currentIteration=0;a.end();a.fireEvent('lastframe',a,a.startTime)}},endWasCalled:0,end:function(b){var a=this;if(a.endWasCalled++){return}a.startTime=0;a.paused=!1;a.running=!1;Ext.fx.Manager.removeAnim(a);if(!b){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===!1&&this.running===!1&&this.iterations>0},isRunning:function(){return this.paused===!1&&this.running===!0&&this.isAnimator!==!0}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.fx,'Anim'],0));Ext.enableFx=!0;(Ext.cmd.derive('Ext.util.Animate',Ext.Base,{mixinId:'animate',isAnimate:!0,animate:function(b){var a=this;if(Ext.fx.Manager.hasFxBlock(a.id)){return a}Ext.fx.Manager.queueFx(new Ext.fx.Anim(a.anim(b)));return this},anim:function(a){if(!Ext.isObject(a)){return (a)?{}:!1}var b=this;if(a.stopAnimation){b.stopAnimation()}Ext.applyIf(a,Ext.fx.Manager.getFxDefaults(b.id));return Ext.apply({target:b,paused:!0},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(a){Ext.fx.Manager.stopAnimation(this.id,a);return this},syncFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!0});return this},sequenceFx:function(){Ext.fx.Manager.setFxDefaults(this.id,{concurrent:!1});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:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(c){var a=this,b;if(!c){return a.detach()}a.dom=Ext.getDom(c);if(!Ext.cache[c.id]){b=a.peekData();if(b){b.isSynchronized=!1}}return a},detach:function(){return (this.dom=null)},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,'Fly',Ext.dom.Element,'Fly'],function(b){var c={},a;b.cache=c;Ext.fly=function(a,e){var d=null,h=Ext.fly,f,g;e=e||(h.caller&&(h.caller.$name||h.caller.name))||'_global';a=Ext.getDom(a);if(a){f=a.nodeType;if(b.prototype.validNodeTypes[f]||(!f&&(a.window==a))){d=Ext.cache[a.id];if(!d||d.dom!==a){d=c[e]||(c[e]=new b());d.dom=a;g=d.peekData();if(g){g.isSynchronized=!1}}}}return d};Ext.getDetachedBody=function(){if(!a){Ext.detachedBodyEl=a=new b(document.createElement('div'));a.isDetachedBody=!0}return a}}));(Ext.cmd.derive('Ext.dom.CompositeElementLite',Ext.Base,{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},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(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a=="string"){a=Ext.fly(e||document).query(a)}else if(a.isComposite){a=a.elements}else if(!Ext.isIterable(a)){a=[a]}for(b=0,c=a.length;b<c;++b){d.push(this.transformElement(a[b]))}return this},invoke:function(g,f){var b=this,e=b.elements,h=e.length,d,c,a;if(a!==0){d=(b.isLite?Ext.dom.Fly:Ext.dom.Element).prototype;for(a=0;a<h;a++){c=e[a];if(c){d[g].apply(b.getElement(c),f)}}}return b},item:function(c){var b=this.elements[c],a=null;if(b){a=this.getElement(b)}return a},slice:function(a,b){return Ext.Array.slice(this.elements,a,b)},each:function(g,e){var c=this,d=c.elements,f=d.length,b,a;for(b=0;b<f;b++){a=d[b];if(a){a=this.getElement(a);if(g.call(e||a,a,c,b)===!1){break}}}return c},fill:function(b){var a=this;a.elements=[];a.add(b);return a},insert:function(a,b){Ext.Array.insert(this.elements,a,b)},filter:function(e){var b=this,f=b.elements,i=f.length,g=[],d=0,h=typeof e=='function',c,a;for(;d<i;d++){a=f[d];c=!1;if(a){a=b.getElement(a);if(h){c=e.call(a,a,b,d)!==!1}else {c=a.is(e)}if(c){g.push(b.transformElement(a))}}}b.elements=g;return b},indexOf:function(a){return Ext.Array.indexOf(this.elements,this.transformElement(a))},replaceElement:function(d,a,e){var c=!isNaN(d)?d:this.indexOf(d),b;if(c>-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==="string"){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b<c;b++){e.push(Ext.get(a[b]))}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(b,g){b=[].concat(b);var f=this,e=f.elements,h=b.length,a,c,d;for(d=0;d<h;d++){a=b[d];if((c=(e[a]||e[a=f.indexOf(a)]))){if(g){if(c.dom){c.destroy()}else {Ext.removeNode(c)}}Ext.Array.erase(e,a,1)}}return f},destroy:function(){this.invoke('destroy',arguments);this.callParent()}},1,0,0,0,0,0,[Ext.dom,'CompositeElementLite',Ext,'CompositeElementLite'],function(a){var b=a.prototype;a.importElementMethods();b.on=b.addListener}));Ext.define('Ext.overrides.dom.Element',(function(){var a,w=window,b=document,e='hidden',g='isClipped',j='overflow',h='overflow-x',i='overflow-y',o='originalClip',L='height',u='width',q='visibility',d='display',v='none',J='offsets',P='clip',z='originalDisplay',s='visibilityMode',H='isVisible',C='x-hidden-offsets',G='x-hidden-clip',I=['<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(''),D=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,y=/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,O=/\ssrc=([\'\"])(.*?)\1/i,F=/\S/,N=/\stype=([\'\"])(.*?)\1/i,x=/table-row|table-.*-group/,Q=/^-ms-/,K=/(-[a-z])/gi,A=function(b,a){return a.charAt(1).toUpperCase()},t='x-masked',l='x-masked-relative',n='x-mask-msg',M=/^body/i,m={},E=function(d){var c=d.getData(),b=c[s];if(b===undefined){c[s]=b=a.VISIBILITY}return b},f=b.createRange?b.createRange():null,k;if(Ext.isIE8){var r=b.createElement('div'),c=[],p,B=function(){var b=c.length,a;for(a=0;a<b;a++){r.appendChild(c[a])}r.innerHTML='';c.length=0};p=Ext.Function.createBuffered(B,10)}return {override:'Ext.dom.Element',mixins:['Ext.util.Animate'],skipGarbageCollection:!1,_init:function(b){a=b},statics:{normalize:function(a){if(a==='float'){a=Ext.supports.Float?'cssFloat':'styleFloat'}return m[a]||(m[a]=a.replace(Q,'ms-').replace(K,A))}},addKeyListener:function(a,d,c){var b;if(typeof a!=='object'||Ext.isArray(a)){b={target:this,key:a,fn:d,scope:c}}else {b={target:this,key:a.key,shift:a.shift,ctrl:a.ctrl,alt:a.alt,fn:d,scope:c}}return new Ext.util.KeyMap(b)},addKeyMap:function(a){return new Ext.util.KeyMap(Ext.apply({target:this},a))},adjustDirect2DDimension:function(d){var f=this,a=f.dom,b=f.getStyle('display'),h=a.style.display,g=a.style.position,i=d===u?0:1,c=a.currentStyle,e;if(b==='inline'){a.style.display='inline-block'}a.style.position=b.match(x)?'absolute':'static';e=(parseFloat(c[d])||parseFloat(c.msTransformOrigin.split(' ')[i])*2)%1;a.style.position=g;if(b==='inline'){a.style.display=h}return e},afterAnimate:function(){var a=this.shadow;if(a&&!a.disabled&&!a.animate){a.show()}},anchorAnimX:function(a){var b=(a==='l')?'right':'left';this.dom.style[b]='0px'},anim:function(b){if(!Ext.isObject(b)){return (b)?{}:!1}var c=this,d=b.duration||Ext.fx.Anim.prototype.duration,e=b.easing||'ease',a;if(b.stopAnimation){c.stopAnimation()}Ext.applyIf(b,Ext.fx.Manager.getFxDefaults(c.id));Ext.fx.Manager.setFxDefaults(c.id,{delay:0});a={target:c.dom,remove:b.remove,alternate:b.alternate||!1,duration:d,easing:e,callback:b.callback,listeners:b.listeners,iterations:b.iterations||1,scope:b.scope,block:b.block,concurrent:b.concurrent,delay:b.delay||0,paused:!0,keyframes:b.keyframes,from:b.from||{},to:Ext.apply({},b),userConfig:b};Ext.apply(a.to,b.to);delete a.to.to;delete a.to.from;delete a.to.remove;delete a.to.alternate;delete a.to.keyframes;delete a.to.iterations;delete a.to.listeners;delete a.to.target;delete a.to.paused;delete a.to.callback;delete a.to.scope;delete a.to.duration;delete a.to.easing;delete a.to.concurrent;delete a.to.block;delete a.to.stopAnimation;delete a.to.delay;return a},animate:function(a){this.addAnimation(a);return this},addAnimation:function(a){var c=this,f=c.dom.id||Ext.id(c.dom),d,b,e;if(!Ext.fx.Manager.hasFxBlock(f)){if(a.listeners){d=a.listeners;delete a.listeners}if(a.internalListeners){a.listeners=a.internalListeners;delete a.internalListeners}e=a.autoEnd;delete a.autoEnd;b=new Ext.fx.Anim(c.anim(a));b.on({afteranimate:'afterAnimate',beforeanimate:'beforeAnimate',scope:c,single:!0});if(d){b.on(d)}Ext.fx.Manager.queueFx(b);if(e){b.jumpToEnd()}}return b},beforeAnimate:function(){var a=this.shadow;if(a&&!a.disabled&&!a.animate){a.hide()}},boxWrap:function(a){a=a||'x-box';var b=Ext.get(this.insertHtml("beforeBegin","<div class='"+a+"' role='presentation'>"+Ext.String.format(I,a)+"</div>"));b.selectNode('.'+a+'-mc').appendChild(this.dom);return b},clean:function(g){var c=this,d=c.dom,e=c.getData(),a=d.firstChild,f=-1,b;if(e.isCleaned&&g!==!0){return c}while(a){b=a.nextSibling;if(a.nodeType===3){if(!(F.test(a.nodeValue))){d.removeChild(a)}else if(b&&b.nodeType===3){a.appendData(Ext.String.trim(b.data));d.removeChild(b);b=a.nextSibling;a.nodeIndex=++f}}else {Ext.fly(a,'_clean').clean();a.nodeIndex=++f}a=b}e.isCleaned=!0;return c},empty:f?function(){var a=this.dom;if(a.firstChild){f.setStartBefore(a.firstChild);f.setEndAfter(a.lastChild);f.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||'';return this.setStyle({left:a,right:a,top:a,bottom:a,'z-index':'',position:'static'})},createProxy:function(b,e,f){b=(typeof b==='object')?b:{tag:"div",role:'presentation',cls:b};var d=this,c=e?Ext.DomHelper.append(e,b,!0):Ext.DomHelper.insertBefore(d.dom,b,!0);c.setVisibilityMode(a.DISPLAY);c.hide();if(f&&d.setBox&&d.getBox){c.setBox(d.getBox())}return c},clearOpacity:function(){return this.setOpacity('')},clip:function(){var a=this,c=a.getData(),b;if(!c[g]){c[g]=!0;b=a.getStyle([j,h,i]);c[o]={o:b[j],x:b[h],y:b[i]};a.setStyle(j,e);a.setStyle(h,e);a.setStyle(i,e)}return a},destroy:function(){var b=this,a=b.dom,f=b.peekData(),e,d;if(a){if(b.isAnimate){b.stopAnimation(!0)}b.removeAnchor()}if(b.deferredFocusTimer){Ext.undefer(b.deferredFocusTimer);b.deferredFocusTimer=null}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&(a.window!=a)&&(a.nodeType!==9)&&(a.tagName!=='BODY')&&(a.tagName!=='HTML')){c[c.length]=a;p()}if(f){e=f.maskEl;d=f.maskMsg;if(e){e.destroy()}if(d){d.destroy()}}},enableDisplayMode:function(c){var b=this;b.setVisibilityMode(a.DISPLAY);if(c!==undefined){b.getData()[z]=c}return b},fadeIn:function(c){var b=this,d=b.dom,a=new Ext.dom.Fly();b.animate(Ext.apply({},c,{opacity:1,internalListeners:{beforeanimate:function(b){a.attach(d);if(a.isStyle('display','none')){a.setDisplayed('')}else {a.show()}}}}));return this},fadeOut:function(b){var c=this,d=c.dom,a=new Ext.dom.Fly();b=Ext.apply({opacity:0,internalListeners:{afteranimate:function(c){if(c.to.opacity===0){a.attach(d);a.attach(d);if(b.useDisplay){a.setDisplayed(!1)}else {a.hide()}}}}},b);c.animate(b);return c},fixDisplay:function(){var a=this;if(a.isStyle(d,v)){a.setStyle(q,e);a.setStyle(d,a._getDisplay());if(a.isStyle(d,v)){a.setStyle(d,"block")}}},frame:function(c,d,a){var e=this,g=e.dom,b=new Ext.dom.Fly(),f;c=c||'#C3DAF9';d=d||1;a=a||{};f=function(){var i=this,e,f,h;b.attach(g);b.show();e=b.getBox();f=Ext.getBody().createChild({role:'presentation',id:b.dom.id+'-anim-proxy',style:{position:'absolute','pointer-events':'none','z-index':35000,border:'0px solid '+c}});h=new Ext.fx.Anim({target:f,duration:a.duration||1000,iterations:d,from:{top:e.y,left:e.x,borderWidth:0,opacity:1,height:e.height,width:e.width},to:{top:e.y-20,left:e.x-20,borderWidth:10,opacity:0,height:e.height+40,width:e.width+40}});h.on('afteranimate',function(){f.destroy();i.end()})};e.animate({duration:(Math.max(a.duration,500)*2)||2000,listeners:{beforeanimate:{fn:f}},callback:a.callback,scope:a.scope});return e},getColor:function(h,f,c){var a=this.getStyle(h),b=c||c===''?c:'#',d,g,e=0;if(!a||(/transparent|inherit/.test(a))){return f}if(/^r/.test(a)){a=a.slice(4,a.length-1).split(',');g=a.length;for(;e<g;e++){d=parseInt(a[e],10);b+=(d<16?'0':'')+d.toString(16)}}else {a=a.replace('#','');b+=a.length===3?a.replace(/^(\w)(\w)(\w)$/,'$1$1$2$2$3$3'):a}return (b.length>5?b.toLowerCase():f)},getLoader:function(){var c=this,b=c.getData(),a=b.loader;if(!a){b.loader=a=new Ext.ElementLoader({target:c})}return a},getPositioning:function(c){var a=this.getStyle(['left','top','position','z-index']),b=this.dom;if(c){if(a.left==='auto'){a.left=b.offsetLeft+'px'}if(a.top==='auto'){a.top=b.offsetTop+'px'}}return a},ghost:function(b,f){var c=this,e=c.dom,a=new Ext.dom.Fly(),d;b=b||"b";d=function(){a.attach(e);var h=a.getWidth(),g=a.getHeight(),d=a.getXY(),i=a.getPositioning(),c={opacity:0};switch(b){case 't':c.y=d[1]-g;break;case 'l':c.x=d[0]-h;break;case 'r':c.x=d[0]+h;break;case 'b':c.y=d[1]+g;break;case 'tl':c.x=d[0]-h;c.y=d[1]-g;break;case 'bl':c.x=d[0]-h;c.y=d[1]+g;break;case 'br':c.x=d[0]+h;c.y=d[1]+g;break;case 'tr':c.x=d[0]+h;c.y=d[1]-g;break;}this.to=c;this.on('afteranimate',function(){a.attach(e);if(a){a.hide();a.clearOpacity();a.setPositioning(i)}})};c.animate(Ext.applyIf(f||{},{duration:500,easing:'ease-out',listeners:{beforeanimate:d}}));return c},getTextSelection:function(){var a=arguments.callee.$previous.call(this);if(typeof a[0]!=='number'){var d=this.dom;var e=d.ownerDocument;var c=e.selection.createRange();var b=d.createTextRange();b.setEndPoint('EndToStart',c);a[0]=b.text.length;a[1]=a[0]+c.text.length}return a},hide:function(a){if(typeof a==='string'){this.setVisible(!1,a);return this}this.setVisible(!1,this.anim(a));return this},highlight:function(l,b){var g=this,e=g.dom,k={},i=new Ext.dom.Fly(),j,h,c,d,a,f;b=b||{};d=b.listeners||{};c=b.attr||'backgroundColor';k[c]=l||'ffff9c';if(!b.to){h={};h[c]=b.endColor||g.getColor(c,'ffffff','')}else {h=b.to}b.listeners=Ext.apply(Ext.apply({},d),{beforeanimate:function(){i.attach(e);j=e.style[c];i.clearOpacity();i.show();a=d.beforeanimate;if(a){f=a.fn||a;return f.apply(a.scope||d.scope||w,arguments)}},afteranimate:function(){if(e){e.style[c]=j}a=d.afteranimate;if(a){f=a.fn||a;f.apply(a.scope||d.scope||w,arguments)}}});g.animate(Ext.apply({},b,{duration:1000,easing:'ease-in',from:k,to:h}));return g},initDD:function(c,b,a){var d=new Ext.dd.DD(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDProxy:function(c,b,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),c,b);return Ext.apply(d,a)},initDDTarget:function(c,b,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),c,b);return Ext.apply(d,a)},isMasked:function(g){var b=this,f=b.getData(),e=f.maskEl,d=f.maskMsg,c=!1,a;if(e&&e.isVisible()){if(d){d.center(b)}c=!0}else if(g){a=b.findParentNode();if(a){return Ext.fly(a).isMasked(g)}}return c},load:function(a){this.getLoader().load(a);return this},mask:function(h,f,i){var c=this,d=c.dom,g=c.getData(),a=g.maskEl,e;if(!(M.test(d.tagName)&&c.getStyle('position')==='static')){c.addCls(l)}if(a){a.destroy()}a=Ext.DomHelper.append(d,{role:'presentation',cls:'x-mask x-border-box',children:{role:'presentation',cls:f?n+" "+f:n,cn:{tag:'div',role:'presentation',cls:'x-mask-msg-inner',cn:{tag:'div',role:'presentation',cls:'x-mask-msg-text',html:h||''}}}},!0);e=Ext.fly(a.dom.firstChild);g.maskEl=a;c.addCls(t);a.setDisplayed(!0);if(typeof h==='string'){e.setDisplayed(!0);e.center(c)}else {e.setDisplayed(!1)}if(d===b.body){a.addCls('x-mask-fixed')}c.saveTabbableState({skipSelf:d===b.body});if(Ext.isIE9m&&d!==b.body&&c.isStyle('height','auto')){a.setSize(undefined,i||c.getHeight())}return a},puff:function(b){var d=this,f=d.dom,a=new Ext.dom.Fly(),e,c=d.getBox(),g=d.getStyle(['width','height','left','right','top','bottom','position','z-index','font-size','opacity'],!0);b=Ext.applyIf(b||{},{easing:'ease-out',duration:500,useDisplay:!1});e=function(){a.attach(f);a.clearOpacity();a.show();this.to={width:c.width*2,height:c.height*2,x:c.x-(c.width/2),y:c.y-(c.height/2),opacity:0,fontSize:'200%'};this.on('afteranimate',function(){a.attach(f);if(b.useDisplay){a.setDisplayed(!1)}else {a.hide()}a.setStyle(g);Ext.callback(b.callback,b.scope)})};d.animate({duration:b.duration,easing:b.easing,listeners:{beforeanimate:{fn:e}}});return d},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{height:c}},a))}return b},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(d){var e=this,c,a;if(c){a=c.firstChild;if(!a||(a.nodeType!==3||a.nextSibling)){a=b.createTextNode();e.empty();c.appendChild(a)}if(d){a.data=d}}},setHtml:function(c,i,g,d){var a=this,f,e,h;if(!a.dom){return a}c=c||'';e=a.dom;if(i!==!0){e.innerHTML=c;Ext.callback(g,a);return a}f=Ext.id();c+='<span id="'+f+'" role="presentation"></span>';h=Ext.interval(function(){var o,e,l,k,j,n,m;if(!(n=b.getElementById(f))){return !1}Ext.uninterval(h);Ext.removeNode(n);o=Ext.getHead().dom;while((e=D.exec(c))){l=e[1];k=l?l.match(O):!1;if(k&&k[2]){m=b.createElement("script");m.src=k[2];j=l.match(N);if(j&&j[2]){m.type=j[2]}o.appendChild(m)}else if(e[2]&&e[2].length>0){if(d){Ext.functionFactory(e[2]).call(d)}else {Ext.globalEval(e[2])}}}Ext.callback(g,d||a)},20);e.innerHTML=c.replace(y,'');return a},setOpacity:function(c,b){var a=this;if(!a.dom){return a}if(!b||!a.anim){a.setStyle('opacity',c)}else {if(typeof b!='object'){b={duration:350,easing:'ease-in'}}a.animate(Ext.applyIf({to:{opacity:c}},b))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(e,d){var b=this,c=a.prototype;b.vertical=!0;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=(e===270)?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(c,e,d){var b=this;if(Ext.isObject(c)){d=e;e=c.height;c=c.width}if(!d||!b.anim){b.dom.style.width=a.addUnits(c);b.dom.style.height=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}}else {if(d===!0){d={}}b.animate(Ext.applyIf({to:{width:c,height:e}},d))}return b},setVisible:function(f,g){var b=this,i=b.dom,h,c=E(b);if(typeof g==='string'){switch(g){case d:c=a.DISPLAY;break;case q:c=a.VISIBILITY;break;case J:c=a.OFFSETS;break;case P:c=a.CLIP;break;}b.setVisibilityMode(c);g=!1}if(!g||!b.anim){if(c===a.DISPLAY){return b.setDisplayed(f)}else if(c===a.OFFSETS){b[f?'removeCls':'addCls'](C)}else if(c===a.CLIP){b[f?'removeCls':'addCls'](G)}else if(c===a.VISIBILITY){b.fixDisplay();i.style.visibility=f?'':e}}else {if(f){b.setOpacity(0.01);b.setVisible(!0)}if(!Ext.isObject(g)){g={duration:350,easing:'ease-in'}}h=new Ext.dom.Fly(),b.animate(Ext.applyIf({callback:function(){if(!f){h.attach(i).setVisible(!1).setOpacity(1)}},to:{opacity:(f)?1:0}},g))}b.getData()[H]=f;if(b.shadow||b.shim){b.setUnderlaysVisible(f)}return b},setWidth:function(c,a){var b=this;if(!a||!b.anim){arguments.callee.$previous.apply(this,arguments)}else {if(!Ext.isObject(a)){a={}}b.animate(Ext.applyIf({to:{width:c}},a))}return b},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a||!c.anim){arguments.callee.$previous.call(this,b)}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},show:function(a){if(typeof a==='string'){this.setVisible(!0,a);return this}this.setVisible(!0,this.anim(a));return this},slideIn:function(b,d,f){var c=this,e=c.dom,i=e.style,a=new Ext.dom.Fly(),k,g,h,j;b=b||"t";d=d||{};k=function(){a.attach(e);var p=this,o=d.listeners,k,n,m,l;if(!f){a.fixDisplay()}k=a.getBox();if((b==='t'||b==='b')&&k.height===0){k.height=e.scrollHeight}else if((b==='l'||b==='r')&&k.width===0){k.width=e.scrollWidth}n=a.getStyle(['width','height','left','right','top','bottom','position','z-index'],!0);a.setSize(k.width,k.height);if(d.preserveScroll){h=a.cacheScrollValues()}l=a.wrap({role:'presentation',id:Ext.id()+'-anim-wrap-for-'+e.id,style:{visibility:f?'visible':'hidden'}});j=l.dom.parentNode;l.setPositioning(a.getPositioning());if(l.isStyle('position','static')){l.position('relative')}a.clearPositioning('auto');l.clip();if(h){h()}a.setStyle({visibility:'',position:'absolute'});if(f){l.setSize(k.width,k.height)}switch(b){case 't':m={from:{width:k.width+'px',height:'0px'},to:{width:k.width+'px',height:k.height+'px'}};i.bottom='0px';break;case 'l':m={from:{width:'0px',height:k.height+'px'},to:{width:k.width+'px',height:k.height+'px'}};c.anchorAnimX(b);break;case 'r':m={from:{x:k.x+k.width,width:'0px',height:k.height+'px'},to:{x:k.x,width:k.width+'px',height:k.height+'px'}};c.anchorAnimX(b);break;case 'b':m={from:{y:k.y+k.height,width:k.width+'px',height:'0px'},to:{y:k.y,width:k.width+'px',height:k.height+'px'}};break;case 'tl':m={from:{x:k.x,y:k.y,width:'0px',height:'0px'},to:{width:k.width+'px',height:k.height+'px'}};i.bottom='0px';c.anchorAnimX('l');break;case 'bl':m={from:{y:k.y+k.height,width:'0px',height:'0px'},to:{y:k.y,width:k.width+'px',height:k.height+'px'}};c.anchorAnimX('l');break;case 'br':m={from:{x:k.x+k.width,y:k.y+k.height,width:'0px',height:'0px'},to:{x:k.x,y:k.y,width:k.width+'px',height:k.height+'px'}};c.anchorAnimX('r');break;case 'tr':m={from:{x:k.x+k.width,width:'0px',height:'0px'},to:{x:k.x,width:k.width+'px',height:k.height+'px'}};i.bottom='0px';c.anchorAnimX('r');break;}l.show();g=Ext.apply({},d);delete g.listeners;g=new Ext.fx.Anim(Ext.applyIf(g,{target:l,duration:500,easing:'ease-out',from:f?m.to:m.from,to:f?m.from:m.to}));g.on('afteranimate',function(){a.attach(e);a.setStyle(n);if(f){if(d.useDisplay){a.setDisplayed(!1)}else {a.hide()}}if(l.dom){if(l.dom.parentNode){l.dom.parentNode.insertBefore(e,l.dom)}else {j.appendChild(e)}l.destroy()}if(h){h()}p.end()});if(o){g.on(o)}};c.animate({duration:d.duration?Math.max(d.duration,500)*2:1000,listeners:{beforeanimate:k}});return c},slideOut:function(b,a){return this.slideIn(b,a,!0)},switchOff:function(b){var d=this,c=d.dom,a=new Ext.dom.Fly(),e;b=Ext.applyIf(b||{},{easing:'ease-in',duration:500,remove:!1,useDisplay:!1});e=function(){a.attach(c);var h=this,d=a.getSize(),g=a.getXY(),e,f;a.clearOpacity();a.clip();f=a.getPositioning();e=new Ext.fx.Animator({target:c,duration:b.duration,easing:b.easing,keyframes:{33:{opacity:0.3},66:{height:1,y:g[1]+d.height/2},100:{width:1,x:g[0]+d.width/2}}});e.on('afteranimate',function(){a.attach(c);if(b.useDisplay){a.setDisplayed(!1)}else {a.hide()}a.clearOpacity();a.setPositioning(f);a.setSize(d);h.end()})};d.animate({duration:(Math.max(b.duration,500)*2),listeners:{beforeanimate:{fn:e}},callback:b.callback,scope:b.scope});return d},syncContent:function(d){d=Ext.getDom(d);var j=d.childNodes,m=j.length,e=this.dom,l=e.childNodes,q=l.length,a,c,b,h,i,f,n,g,p,o=e._extData;if(!k){k=new Ext.dom.Fly()}f=d.attributes;n=f.length;for(a=0;a<n;a++){g=f[a].name;p=f[a].value;if(g!=='id'&&e.getAttribute(g)!==p){e.setAttribute(g,f[a].value)}}if(o){o.isSynchronized=!1}if(m!==q){e.innerHTML=d.innerHTML;return}for(a=0;a<m;a++){b=j[a];c=l[a];i=b.nodeType;h=b.style;if(i!==c.nodeType||(i===1&&b.tagName!==c.tagName)){e.innerHTML=d.innerHTML;return}if(!h){c.data=b.data}else {if(b.id&&c.id!==b.id){c.id=b.id}c.style.cssText=h.cssText;c.className=b.className;k.attach(c).syncContent(b)}}},toggle:function(b){var a=this;a.setVisible(!a.isVisible(),a.anim(b));return a},unmask:function(){var d=this,e=d.getData(),a=e.maskEl,c;if(a){c=a.dom.style;if(c.clearExpression){c.clearExpression('width');c.clearExpression('height')}if(a){a.destroy();delete e.maskEl}d.removeCls([t,l])}d.restoreTabbableState(d.dom===b.body)},unclip:function(){var b=this,c=b.getData(),a;if(c[g]){c[g]=!1;a=c[o];if(a.o){b.setStyle(j,a.o)}if(a.x){b.setStyle(h,a.x)}if(a.y){b.setStyle(i,a.y)}}return b},translate:function(a,b,c){if(Ext.supports.CssTransforms&&!Ext.isIE9m){arguments.callee.$previous.apply(this,arguments)}else {if(a!=null){this.dom.style.left=a+'px'}if(b!=null){this.dom.style.top=b+'px'}}},deprecated:{'4.0':{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,b,a){this.animate(Ext.apply({},a,{width:c,height:b}));return this},shift:function(a){this.animate(a);return this}}},'4.2':{methods:{moveTo:function(b,c,a){return this.setXY([b,c],a)},setBounds:function(d,e,c,b,a){return this.setBox({x:d,y:e,width:c,height:b},a)},setLeftTop:function(d,e){var b=this,c=b.dom.style;c.left=a.addUnits(d);c.top=a.addUnits(e);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocation:function(b,c,a){return this.setXY([b,c],a)}}},'5.0':{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(b,'c-c')},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(L))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(u))||0},getStyleSize:function(){var d=this,e=this.dom,h=(e===b||e===b.body),c,g,f;if(h){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}c=d.getStyle(['height','width'],!0);if(c.width&&c.width!=='auto'){g=parseFloat(c.width)}if(c.height&&c.height!=='auto'){f=parseFloat(c.height)}return {width:g||d.getWidth(!0),height:f||d.getHeight(!0)}},isBorderBox:function(){return !0},isDisplayed:function(){return !this.isStyle('display','none')},focusable:'isFocusable'}}}}})(),function(){var g=Ext.dom.Element,a=g.prototype,t=!Ext.isIE8,f=document,q=f.defaultView,p=/alpha\(opacity=(.*)\)/i,w=/^\s+|\s+$/g,d=a.styleHooks,e=Ext.supports,c,b,l,m,i,j,n;a._init(g);delete a._init;Ext.plainTableCls='x-table-plain';Ext.plainListCls='x-list-plain';if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!e.Opacity&&Ext.isIE){Ext.apply(d.opacity,{get:function(d){var c=d.style.filter,b,a;if(c.match){b=c.match(p);if(b){a=parseFloat(b[1]);if(!isNaN(a)){return a?a/100:0}}}return 1},set:function(d,a){var b=d.style,c=b.filter.replace(p,'').replace(w,'');b.zoom=1;if(typeof (a)==='number'&&a>=0&&a<1){a*=100;b.filter=c+(c.length?' ':'')+'alpha(opacity='+a+')'}else {b.filter=c}}})}if(!e.matchesSelector){var r=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,v=/\-/g,h,s=function(a,c){var b=new RegExp('(?:^|\\s+)'+c.replace(v,'\\-')+'(?:\\s+|$)');if(a&&a!=='*'){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},u=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},k={};a.matcherCache=k;a.is=function(a){if(!a){return !0}var b=this.dom,g,e,d,c,j,l,i;if(b.nodeType!==1){return !1}if(!(d=Ext.isFunction(a)?a:k[a])){if(!(e=a.match(r))){c=b.parentNode;if(!c){j=!0;c=h||(h=f.createDocumentFragment());h.appendChild(b)}l=Ext.Array.indexOf(Ext.fly(c,'_is').query(a),b)!==-1;if(j){h.removeChild(b)}return l}i=e[1];g=e[2];k[a]=d=g?s(i,g):u(i)}return d(b)}}if(!q||!q.getComputedStyle){a.getStyle=function(o,p){var j=this,e=j.dom,n=typeof o!=='string',a=o,i=a,r=1,m=p,l=j.styleHooks,q,h,d,c,f,b,k;if(n){d={};a=i[0];k=0;if(!(r=i.length)){return d}}if(!e||e.documentElement){return d||''}h=e.style;if(p){b=h}else {b=e.currentStyle;if(!b){m=!0;b=h}}do{c=l[a];if(!c){l[a]=c={name:g.normalize(a)}}if(c.get){f=c.get(e,j,m,b)}else {q=c.name;f=b[q]}if(!n){return f}d[a]=f;a=i[++k]}while(k<r);return d}}if(Ext.isIE8){n=function(c,d,b,a){if(a[this.styleName]==='none'){return '0px'}return a[this.name]};l=['Top','Right','Bottom','Left'];m=l.length;while(m--){i=l[m];j='border'+i+'Width';d['border-'+i.toLowerCase()+'-width']=d[j]={name:j,styleName:'border'+i+'Style',get:n}}var o='x-sync-repaint';a.syncRepaint=function(){this.addCls(o);this.getWidth();this.removeCls(o)}}if(Ext.isIE10m){Ext.override(g,{focus:function(c,a){var b=this,d;a=a||b.dom;if(b.deferredFocusTimer){Ext.undefer(b.deferredFocusTimer)}b.deferredFocusTimer=null;if(Number(c)){b.deferredFocusTimer=Ext.defer(b.focus,c,b,[null,a])}else {Ext.GlobalEvents.fireEvent('beforefocus',a);if(a&&(a.tagName==='INPUT'||a.tagname==='TEXTAREA')){Ext.synchronouslyFocusing=document.activeElement}try{a.focus()}catch(x){d=x}if(Ext.synchronouslyFocusing&&document.activeElement!==a&&!d){a.focus()}Ext.synchronouslyFocusing=null}return b}})}Ext.apply(Ext,{enableGarbageCollector:!0,isBorderBox:!0,useShims:!1,getElementById:function(c){var a=f.getElementById(c),b;if(!a&&(b=Ext.detachedBodyEl)){a=b.dom.querySelector(Ext.makeIdSelector(c))}return a},addBehaviors:function(d){if(!Ext.isReady){Ext.onInternalReady(function(){Ext.addBehaviors(d)})}else {var b={},c,e,a;for(e in d){if((c=e.split('@'))[1]){a=c[0];if(!b[a]){b[a]=Ext.fly(document).select(a,!0)}b[a].on(c[1],d[e])}}b=null}}});if(Ext.isIE9m){Ext.getElementById=function(c){var a=f.getElementById(c),b;if(!a&&(b=Ext.detachedBodyEl)){a=b.dom.all[c]}return a};a.getById=function(d,g){var e=this.dom,b=null,a,c;if(e){c=(t&&f.getElementById(d))||e.all[d];if(c){if(g){b=c}else {a=Ext.cache[d];if(a){if(a.skipGarbageCollection||!Ext.isGarbage(a.dom)){b=a}else {a.destroy()}}b=b||new Ext.Element(c)}}}return b}}else if(!f.querySelector){Ext.getDetachedBody=Ext.getBody;Ext.getElementById=function(a){return f.getElementById(a)};a.getById=function(c,b){var a=f.getElementById(c);return b?a:(a?Ext.get(a):null)}}if(Ext.isIE&&!(Ext.isIE9p&&f.documentMode>=9)){a.getAttribute=function(a,c){var d=this.dom,b;if(c){b=typeof d[c+":"+a];if(b!=='undefined'&&b!=='unknown'){return d[c+":"+a]||null}return null}if(a==="for"){a="htmlFor"}return d[a]||null}}Ext.onInternalReady(function(){var n=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,o=a.setWidth,m=a.setHeight,k=a.setSize,l=a.unselectable,p=/^\d+(?:\.\d*)?px$/i,f,j,i,h;if(e.FixedTableWidthBug){d.width={name:'width',set:function(c,e,f){var a=c.style,b=f._needsTableWidthFix,d=a.display;if(b){a.display='none'}a.width=e;if(b){c.scrollWidth;a.display=d}}};a.setWidth=function(g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}o.call(a,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a};a.setSize=function(h,g,b){var a=this,e=a.dom,c=e.style,d=a._needsTableWidthFix,f=c.display;if(d&&!b){c.display='none'}k.call(a,h,g,b);if(d&&!b){e.scrollWidth;c.display=f}return a}}if(Ext.isIE8){d.height={name:'height',set:function(f,b,e){var a=e.component,d,c;if(a&&a._syncFrameHeight&&e===a.el){c=a.frameBody.dom.style;if(p.test(b)){d=a.getFrameInfo();if(d){c.height=(parseInt(b,10)-d.height)+'px'}}else if(!b||b==='auto'){c.height=''}}f.style.height=b}};a.setHeight=function(b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=(b-d.height)+'px'}}}return m.call(this,b,e)};a.setSize=function(f,b,e){var a=this.component,d,c;if(a&&a._syncFrameHeight&&this===a.el){c=a.frameBody.dom.style;if(!b||b==='auto'){c.height=''}else {d=a.getFrameInfo();if(d){c.height=(b-d.height)+'px'}}}return k.call(this,f,b,e)};a.setText=function(b){var a=this.dom;if(!(a.childNodes.length===1&&a.firstChild.nodeType===3)){while(a.lastChild&&a.lastChild.nodeType!==3){a.removeChild(a.lastChild)}a.appendChild(document.createTextNode())}a.firstChild.data=b};a.unselectable=function(){l.call(this);this.dom.onselectstart=function(){return !1}}}function fixTransparent(d,e,c,b){var a=b[this.name]||'';return n.test(a)?'transparent':a}function makeSelectionRestoreFn(a,b,c){return function(){a.selectionStart=b;a.selectionEnd=c}}function getRightMarginFixCleaner(i){var h=e.DisplayChangeInputSelectionBug,f=e.DisplayChangeTextAreaSelectionBug,a,d,b,c;if(h||f){a=g.getActiveElement();d=a&&a.tagName;if((f&&d==='TEXTAREA')||(h&&d==='INPUT'&&a.type==='text')){if(Ext.fly(i).isAncestor(a)){b=a.selectionStart;c=a.selectionEnd;if(Ext.isNumber(b)&&Ext.isNumber(c)){return makeSelectionRestoreFn(a,b,c)}}}}return Ext.emptyFn}function fixRightMargin(c,g,f,e){var b=e.marginRight,a,d;if(b!=='0px'){a=c.style;d=a.display;a.display='inline-block';b=(f?e:c.ownerDocument.defaultView.getComputedStyle(c,null)).marginRight;a.display=d}return b}function fixRightMarginAndInputFocus(b,h,g,f){var c=f.marginRight,a,d,e;if(c!=='0px'){a=b.style;d=getRightMarginFixCleaner(b);e=a.display;a.display='inline-block';c=(g?f:b.ownerDocument.defaultView.getComputedStyle(b,'')).marginRight;a.display=e;d()}return c}if(!e.RightMargin){d.marginRight=d['margin-right']={name:'marginRight',get:(e.DisplayChangeInputSelectionBug||e.DisplayChangeTextAreaSelectionBug)?fixRightMarginAndInputFocus:fixRightMargin}}if(!e.TransparentColor){f=['background-color','border-color','color','outline-color'];for(j=f.length;j--;){i=f[j];h=g.normalize(i);d[i]=d[h]={name:h,get:fixTransparent}}}a.verticalStyleHooks90=c=Ext.Object.chain(d);a.verticalStyleHooks270=b=Ext.Object.chain(d);c.width=d.height||{name:'height'};c.height=d.width||{name:'width'};c['margin-top']={name:'marginLeft'};c['margin-right']={name:'marginTop'};c['margin-bottom']={name:'marginRight'};c['margin-left']={name:'marginBottom'};c['padding-top']={name:'paddingLeft'};c['padding-right']={name:'paddingTop'};c['padding-bottom']={name:'paddingRight'};c['padding-left']={name:'paddingBottom'};c['border-top']={name:'borderLeft'};c['border-right']={name:'borderTop'};c['border-bottom']={name:'borderRight'};c['border-left']={name:'borderBottom'};b.width=d.height||{name:'height'};b.height=d.width||{name:'width'};b['margin-top']={name:'marginRight'};b['margin-right']={name:'marginBottom'};b['margin-bottom']={name:'marginLeft'};b['margin-left']={name:'marginTop'};b['padding-top']={name:'paddingRight'};b['padding-right']={name:'paddingBottom'};b['padding-bottom']={name:'paddingLeft'};b['padding-left']={name:'paddingTop'};b['border-top']={name:'borderRight'};b['border-right']={name:'borderBottom'};b['border-bottom']={name:'borderLeft'};b['border-left']={name:'borderTop'};if(!Ext.scopeCss){Ext.getBody().addCls('x-body')}},null,{priority:1500})});(Ext.cmd.derive('Ext.GlobalEvents',Ext.mixin.Observable,{alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},windowListeners:{resize:{fn:'fireResize'}},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},setPressedComponent:function(c,d){var a=this,b=a.pressedComponent;if(b&&b.onRelease){b.onRelease(d)}a.pressedComponent=c;if(c){a.pressedScrollStart=Ext.on({scrollstart:function(){a.setPressedComponent(null,d)},destroyable:!0})}else {a.pressedScrollStart=Ext.destroy(a.pressedScrollStart)}},attachListeners:function(){var a=this,c=Ext.getWin(),b=a.windowListeners;a.onlineState=Ext.isOnline();a.curHeight=Ext.Element.getViewportHeight();a.curWidth=Ext.Element.getViewportWidth();c.on({scope:a,online:'handleOnlineChange',offline:'handleOnlineChange'});if(b){b.scope=a;if(Ext.isModern){b.resize.onFrame=!0}else {b.resize.buffer=a.resizeBuffer}c.on(b)}Ext.getDoc().on({touchstart:'fireMouseDown',mousedown:'fireMouseDown',mouseup:'fireMouseUp',touchend:'fireMouseUp',drop:'fireMouseUp',dragend:'fireMouseUp',scope:a})},fireMouseDown:function(a){this.fireEvent('mousedown',a);Ext.ComponentManager.handleDocumentMouseDown(a)},fireMouseUp:function(a){this.fireEvent('mouseup',a);this.setPressedComponent(null,a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;if(a.hasListeners.resize){a.fireEvent('resize',c,b)}}},handleOnlineChange:function(){var a=Ext.isOnline();if(a!==this.onlineState){this.onlineState=a;this.fireEvent('onlinechange',a)}}},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.fireEvent=function(){return a.fireEvent.apply(a,arguments)};Ext.fireIdle=function(){if(a.hasListeners.idle&&!Ext._suppressIdle){a.fireEventArgs('idle')}Ext._suppressIdle=!1};Ext._suppressIdle=!1}));Ext.define('Ext.overrides.GlobalEvents',{override:'Ext.GlobalEvents',attachListeners:function(){var a=this,b,c;if(Ext.isIE8){b=Ext.getDoc().dom.documentElement;c=Ext.Function.createBuffered(a.fireResize,a.resizeBuffer,a);Ext.getWin().dom.attachEvent('onresize',function(){if(b.clientWidth!==Ext.GlobalEvents.curWidth||b.clientHeight!==Ext.GlobalEvents.curHeight){c()}})}a.callParent()},deprecated:{5:{methods:{addListener:function(a,d,i,f,h,g,e){var c,b;if(a==='ready'){b=d}else if(typeof a!=='string'){for(c in a){if(c==='ready'){b=a[c]}}}if(b){Ext.onReady(b)}this.callParent([a,d,i,f,h,g,e])}}}}});(Ext.cmd.derive('Ext.Glyph',Ext.Base,{isGlyph:!0,constructor:function(a){a&&this.setGlyph(a)},setGlyph:function(a){var b;this.glyphConfig=a;if(typeof a==='string'){b=a.split('@');if(isNaN(a=isNaN(b[0])?parseInt('0'+b[0],16):parseInt(b[0],10))||!a){a=b[0].charCodeAt(0)}this.fontFamily=b[1]||Ext._glyphFontFamily}else {this.fontFamily=Ext._glyphFontFamily}this.codepoint=a;this.character=Ext.String.fromCodePoint(this.codepoint);return this},getStyle:function(){return {'font-family':this.fontFamily}},isEqual:function(a){return a&&a.isGlyph&&a.codepoint===this.codepoint&&a.fontFamily===this.fontFamily},statics:(function(){var a;return {fly:function(b){return b.isGlyph?b:(a||(a=new Ext.Glyph())).setGlyph(b)}}})()},1,0,0,0,0,0,[Ext,'Glyph'],0));Ext.USE_NATIVE_JSON=!1;Ext.JSON=(new (function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?"0"+a:a},doDecode=function(json){return eval("("+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return "null"}else if(Ext.isDate(a)){return me.encodeDate(a)}else if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else if(typeof a==="number"){return isFinite(a)?String(a):"null"}else if(Ext.isBoolean(a)){return String(a)}else if(a.toJSON){return a.toJSON()}else if(Ext.isArray(a)){return encodeArray(a,b)}else if(Ext.isObject(a)){return encodeObject(a,b)}else if(typeof a==="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(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+'   ',g=','+c,a=["[",c],b;for(b=0;b<f;b+=1){a.push(me.encodeValue(e[b],c),g)}a[a.length-1]=d+']';return a.join('')},encodeObjectPretty=function(e,f){var d=f+'   ',g=','+d,b=["{",d],c,a;for(c in e){a=e[c];if(!useHasOwn||e.hasOwnProperty(c)){if(typeof a==='function'||a===undefined||a.isInstance){continue}b.push(me.encodeValue(c)+': '+me.encodeValue(a,d),g)}}b[b.length-1]=f+'}';return b.join('')},encodeArray=function(c,d){if(d){return encodeArrayPretty(c,d)}var a=["[",""],e=c.length,b;for(b=0;b<e;b+=1){a.push(me.encodeValue(c[b]),',')}a[a.length-1]=']';return a.join("")},encodeObject=function(d,e){if(e){return encodeObjectPretty(d,e)}var b=["{",""],c,a;for(c in d){a=d[c];if(!useHasOwn||d.hasOwnProperty(c)){if(typeof a==='function'||a===undefined){continue}b.push(me.encodeValue(c),":",me.encodeValue(a),',')}}b[b.length-1]='}';return b.join("")};me.encodeString=encodeString;me.encodeValue=doEncode;me.encodeDate=function(a){return '"'+a.getFullYear()+"-"+pad(a.getMonth()+1)+"-"+pad(a.getDate())+"T"+pad(a.getHours())+":"+pad(a.getMinutes())+":"+pad(a.getSeconds())+'"'};me.encode=function(a){if(hasNative&&Ext.USE_NATIVE_JSON){return JSON.stringify(a)}return me.encodeValue(a)};me.decode=function(a,b){try{if(hasNative&&Ext.USE_NATIVE_JSON){return JSON.parse(a)}return doDecode(a)}catch(c){if(b){return null}Ext.raise({sourceClass:"Ext.JSON",sourceMethod:"decode",msg:"You're trying to decode an invalid JSON String: "+a})}};me.encodeMSDate=encodeMSDate;if(!Ext.util){Ext.util={}}Ext.util.JSON=me;Ext.encode=me.encode;Ext.decode=me.decode})());(Ext.cmd.derive('Ext.mixin.Inheritable',Ext.Mixin,{mixinConfig:{id:'inheritable'},getInherited:function(i){var a=this,b=(i&&a.inheritedStateInner)||a.inheritedState,h=a.getRefOwner(),f=a.isContainer,d,e,g,c;if(!b||b.invalid){d=a.getRefOwner();c=a.ownerLayout;if(h){g=c?c===h.layout:!0}a.inheritedState=b=Ext.Object.chain(d?d.getInherited(g):Ext.rootInheritedState);if(f){a.inheritedStateInner=e=Ext.Object.chain(b)}a.initInheritedState(b,e);b=(f&&i)?a.inheritedStateInner:a.inheritedState}return b},getInheritedConfig:function(b,e){var a=this.inheritedState,d,c;if(!a||a.invalid){a=this.getInherited()}c=a[b];if(e&&a.hasOwnProperty(b)){d=c;delete a[b];c=a[b];a[b]=d}return c},resolveListenerScope:function(f,d){var a=this,e=(typeof d==='boolean'),b=Ext._namedScopes[f],c;if(!b){c=a.getInheritedConfig('defaultListenerScope',e?d:!0)||f||a}else if(b.isController){c=a.getInheritedConfig('controller',e?d:!b.isSelf)}else if(b.isOwner){c=a.getRefOwner()}else if(b.isSelf){c=a.getInheritedConfig('defaultListenerScope',e&&d)||a}else if(b.isThis){c=a}return c||null},resolveSatelliteListenerScope:function(e,d){var c=this,b=Ext._namedScopes[d],a;if(!b){a=c.getInheritedConfig('defaultListenerScope')||d||c}else if(b.isController){a=c.getInheritedConfig('controller')}else if(b.isSelf){a=c.getInheritedConfig('defaultListenerScope')||e}else if(b.isThis){a=e}return a||null},lookupNameHolder:function(a){return this.getInheritedConfig('nameHolder',a!==!1)||null},lookupReferenceHolder:function(a){return this.getInheritedConfig('referenceHolder',a!==!1)||null},getRefOwner:function(){var a=this;return a.ownerCmp||a.ownerCt||a.parent||a.$initParent||a.floatParent},bubble:function(d,b,c){for(var a=this;a;a=a.getRefOwner()){if(d.apply(b||a,c||[a])===!1){break}}},isDescendantOf:function(a){return a?a.isAncestor(this):!1},isAncestor:function(a){while(a){if(a.getRefOwner()===this){return !0}a=a.getRefOwner()}return !1},invalidateInheritedState:function(){var a=this.inheritedState;if(a){a.invalid=!0;delete this.inheritedState}},privates:{_fixName:function(){var b=this,a;if(b.name){a=b.lookupNameHolder();if(a&&!a.destroyed){a.attachNameRef(b)}}},_fixReference:function(){var b=this,a;if(b.reference){a=b.lookupReferenceHolder();if(a){a.attachReference(b)}}},onInheritedAdd:function(c,b){var a=this;if(a.inheritedState&&b){a.invalidateInheritedState()}if(a.name||a.reference){Ext.ComponentManager.markReferencesDirty()}},onInheritedRemove:function(b){var a=this;if(a.name||a.reference){Ext.ComponentManager.markReferencesDirty()}if(a.inheritedState&&!b){a.invalidateInheritedState()}}}},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:!0},controller:null,defaultListenerScope:!1,publishes:{$value:null,lazy:!0,merge:function(a,b){return this.mergeSets(a,b)}},session:{$value:null,lazy:!0},twoWayBindable:{$value:null,lazy:!0,merge:function(a,b){return this.mergeSets(a,b)}},viewModel:{$value:null,lazy:!0}},defaultBindProperty:null,nameable:!1,shareableName:!1,reference:null,validRefRe:/^[a-z_][a-z0-9_]*$/i,getReference:function(){return this.reference},initInheritedState:function(b){var a=this,f=a.reference,c=a.getController(),d=a.getConfig('viewModel',!0),e=a.getConfig('session',!0),g=a.getDefaultListenerScope();if(c){b.controller=c}if(g){b.defaultListenerScope=a}else if(c){b.defaultListenerScope=c}if(d){if(!d.isViewModel){d=a}b.viewModel=d}if(e){if(!e.isSession){e=a}b.session=e}if(f){a.referenceKey=(b.referencePath||'')+f;a.viewModelKey=(b.viewModelPath||'')+f}},isBound:function(b){var a=this.getBind();return !!(a&&(a[b||this.defaultBindProperty]))},lookupController:function(a){return this.getInheritedConfig('controller',a)||null},lookupSession:function(b){var a=b?null:this.getSession();if(!a){a=this.getInheritedConfig('session',b);if(a&&!a.isSession){a=a.getInherited().session=a.getSession()}}return a||null},lookupViewModel:function(b){var a=b?null:this.getViewModel();if(!a){a=this.getInheritedConfig('viewModel',b);if(a&&!a.isViewModel){a=a.getInherited().viewModel=a.getViewModel()}}return a||null},publishState:function(c,a){var b=this,e=b.publishedState,i=b.getBind(),d=i&&c&&i[c],j=0,h,g,k,f;if(d&&!d.syncing&&!d.isReadOnly()){if(d.calls||!(a==null||a===b.getInitialConfig()[c])){d.setValue(a)}}if(!(g=b.getPublishes())){return}if(!(k=b.lookupViewModel())){return}if(!(f=b.viewModelKey)){return}e=e||(b.publishedState={});if(c){if(!g[c]){return}if(!(a&&a.constructor===Object)&&!(a instanceof Array)){if(e[c]===a){return}}f+='.';f+=c}else {for(h in g){++j;e[h]=b.getConfig(h)}if(!j){return}a=e}k.set(f,a)},privates:{addBindableUpdater:function(d){var b=this,e=b.self.$config.configs,a=e[d],c;if(a&&!b.hasOwnProperty(c=a.names.update)){b[c]=a.bindableUpdater||(a.root.bindableUpdater=b.makeBindableUpdater(a))}},applyBind:function(d,e){if(!d){return d}var c=this,j=c.lookupViewModel(),h=c.getTwoWayBindable(),i=c._getBindTemplateScope,a,b,f,g;c.$hasBinds=!0;if(!e||typeof e==='string'){e={}}if(Ext.isString(d)){a=d;d={};d[c.defaultBindProperty]=a}for(b in d){f=d[b];a=e[b];if(a&&a.isBinding){a.destroy();a=null;g=!0}if(f){a=j.bind(f,c.onBindNotify,c);a._config=Ext.Config.get(b);a.getTemplateScope=i}if(g){delete e[b]}else {e[b]=a}if(h&&h[b]){if(g){c.clearBindableUpdater(b)}else if(!a.isReadOnly()){c.addBindableUpdater(b)}}}return e},applyController:function(a){if(a){a=Ext.Factory.controller(a);a.setView(this)}this.controller=a;return a},updatePublishes:function(a){var b=this;if(b.lookupViewModel()){for(var c in a){b.addBindableUpdater(c)}}return a},applySession:function(a){if(!a){return null}if(!a.isSession){var b=this.lookupSession(!0),c=(a===!0)?{}:a;if(b){a=b.spawn(c)}else {a=new Ext.data['Session'](c)}}return a},applyViewModel:function(a){var c=this,b,d;if(!a){return null}if(!a.isViewModel){b={parent:c.lookupViewModel(!0),view:c};b.session=c.getSession();if(!d&&!b.parent){b.session=c.lookupSession()}if(a){if(a.constructor===Object){Ext.apply(b,a)}else if(typeof a==='string'){b.type=a}}a=Ext.Factory.viewModel(b)}return a},_getBindTemplateScope:function(){return this.scope.resolveListenerScope()},clearBindableUpdater:function(d){var a=this,e=a.self.$config.configs,c=e[d],b;if(c&&a.hasOwnProperty(b=c.names.update)){if(a[b].$bindableUpdater){delete a[b]}}},destroyBindable:function(){var a=this,c=a.getConfig('viewModel',!0),b=a.getConfig('session',!0),d=a.getController();if(c&&c.isViewModel){c.destroy();a.setViewModel(null)}if(b&&b.isSession){if(b.getAutoDestroy()){b.destroy()}a.setSession(null)}if(d){a.setController(null);d.destroy()}},initBindable:function(){var a=this,b=a.controller;a.initBindable=Ext.emptyFn;a.getBind();a.getPublishes();if(!a.viewModel){a.getViewModel()}if(b){b.initBindings()}if(a.reference){a.publishState()}},isSyncing:function(d){var b=this.getBind(),c=!1,a;if(b){a=b[d];if(a){c=a.syncing>0}}return c},makeBindableUpdater:function(a){var c=a.names.update,b=function(e,f){var b=this,d=b.self.prototype[c];if(d){d.call(b,e,f)}b.publishState(a.name,b[a.getInternalName(b)])};b.$bindableUpdater=!0;return b},notifyIf:function(b){var a=this.lookupViewModel(b);if(a){a.notify()}},onBindNotify:function(b,c,a){a.syncing=(a.syncing+1)||1;this[a._config.names.set](b);--a.syncing},removeBindings:function(){var c=this,a,d,b;if(c.$hasBinds){a=c.getBind();if(a&&typeof a!=='string'){for(d in a){b=a[d];b.destroy();b._config=b.getTemplateScope=null}}}c.setBind(null)},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a,e){var b=this,d=b.getInherited(),c=b.getController();if(a){b.hasVM=!0;d.viewModel=a;a.setView(b);if(c){c.initViewModel(a)}}else {delete d.viewModel}b.viewModel=a}}},0,0,0,0,0,0,[Ext.mixin,'Bindable'],0));(Ext.cmd.derive('Ext.mixin.ComponentDelegation',Ext.Mixin,{mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(b,k,j,a,d,i,h){var c=this,e,g,f;b=Ext.canonicalEventName(b);d=d||a.order;if(d){f=(a&&a.priority);if(!f){a=a?Ext.Object.chain(a):{};a.priority=c.$orderToPriority[d]}}e=c.$delegatedEvents||(c.$delegatedEvents={});g=e[b]||(e[b]=new Ext.util.Event(c,b));if(g.addListener(k,j,a,i,h)){c.$hasDelegatedListeners._incr_(b)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}},destroyComponentDelegation:function(){if(this.clearPropertiesOnDestroy){this.$delegatedEvents=null}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,'ComponentDelegation'],function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()}));(Ext.cmd.derive('Ext.plugin.Abstract',Ext.Base,{alternateClassName:'Ext.AbstractPlugin',isPlugin:!0,constructor:function(a){if(a){this.pluginConfig=a;this.initConfig(a)}},clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},getCmp:function(){return this.cmp},setCmp:function(a){this.cmp=a},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(d,b,e){var a=b.alias,c=d.prototype;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)},statics:{decode:function(a,e,f){if(a){var h=Ext.typeOf(a),c,d,b,g;if(h==='string'){b={};b[e]=a;a=[b]}else if(a.isInstance){a=[a]}else if(h==='object'){if(a[e]){a=[a]}else {b=f?Ext.merge(Ext.clone(f),a):a;a=[];for(d in b){if(!(g=b[d])){continue}c={id:d};c[e]=d;if(d==='responsive'){c.weight=-1000}Ext.apply(c,g);a.push(c)}a.sort(Ext.weightSortFn)}}else {a=a.slice()}}return a}}},1,0,0,0,0,0,[Ext.plugin,'Abstract',Ext,'AbstractPlugin'],0));Ext.define('Ext.overrides.plugin.Abstract',{override:'Ext.plugin.Abstract',$configStrict:!1,$configPrefixed:!1,disabled:!1,getState:null,applyState:null,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}});(Ext.cmd.derive('Ext.mixin.Pluggable',Ext.Base,function(a){return {config:{plugins:null},addPlugin:function(b){var c=this,d=c.getPlugins();if(d){b=c.createPlugin(b);b.init(c);d.push(b)}else {c.setPlugins(b);b=c.getPlugins()[0]}return b},destroyPlugin:function(b){return this.removePlugin(b,!0)},findPlugin:function(f){var d=this.getPlugins(),g=d&&d.length,c,b,e;for(c=0;c<g&&!e;c++){b=d[c];if(b.type===f||b.ptype===f){e=b}}return e||null},getPlugin:function(f){var d=this.getPlugins(),g=d&&d.length,c,b,e;for(c=0;c<g&&!e;c++){b=d[c];if(b.id===f||b.pluginId===f){e=b}}return e||null},removePlugin:function(e,f){var c=this.getPlugins(),d=c&&c.length||0,b;while(d-->0){b=c[d];if(b===e||b.id===e){c.splice(d,1);if(f){if(b.destroy){b.destroy()}}else if(b.detachCmp){b.detachCmp();if(b.setCmp){b.setCmp(null)}}break}b=null}return b},privates:{statics:{idSeed:0},activatePlugin:function(h){var e=this,d=e.initialConfig,b=d&&d.plugins,i=null,f,c,g;if(b){c=e.config.plugins;c=(c&&typeof c==='object')?c:null;b=Ext.plugin.Abstract.decode(b,'type',c);for(f=b.length;f-->0;){g=b[f];if(g===h||g.type===h){e.initialConfig=d=Ext.apply({},d);d.plugins=b;b[f]=i=e.createPlugin(g);break}}}return i},applyPlugins:function(c,e){var h=this,g=e&&e.length||0,f,b,d;if(c){c=Ext.plugin.Abstract.decode(c,'type')}for(b=0;b<g;++b){e[b].$dead=!0}f=c&&c.length||0;for(b=0;b<f;++b){c[b]=h.createPlugin(c[b])}for(b=0;b<f;++b){d=c[b];if(d.$dead){delete d.$dead}else {d.init(h)}}for(b=0;b<g;++b){if((d=e[b]).$dead){delete d.$dead;Ext.destroy(d)}}return c},createPlugin:function(b){if(typeof b==='string'){b={type:b}}var c=b;if(!b.isInstance){b.cmp=this;c=Ext.factory(b,null,null,'plugin');delete b.cmp}if(!c.id){c.id=++a.idSeed}if(c.setCmp){c.setCmp(this)}return c}}}},0,0,0,0,0,0,[Ext.mixin,'Pluggable'],0));(Ext.cmd.derive('Ext.mixin.Keyboard',Ext.Mixin,function(a){return {mixinConfig:{id:'keyboard'},config:{keyMap:{$value:null,cached:!0,merge:function(c,h,j,i){if(c===null){return c}var f=(h&&!j.isInstance)?Ext.Object.chain(h):{},d,e,b,g;for(d in c){if(d!=='scope'){e=d.toUpperCase();if(!i||f[e]===undefined){b=c[d];if(b){if(typeof b==='string'||typeof b==='function'){b={handler:b}}else {b=Ext.apply({handler:b.fn},b)}g=b.scope||c.scope||'self';b.scope=(g==='controller')?'self.controller':g}f[e]=b}}}return f}},keyMapEnabled:null},keyMapTarget:'el',applyKeyMap:function(d,c){var b=this,e=b.hasOwnProperty('config');if(e&&c&&c.$owner!==b){c=Ext.apply({},c)}d=d?a.combineKeyMaps(c,d,e&&b):null;if(b._keyMapReady){b.setKeyMapListener(d&&b.getKeyMapEnabled())}return d},initKeyMap:function(){var b=this,c=b.getKeyMapEnabled();b._keyMapReady=!0;if(c===null){b.setKeyMapEnabled(!0)}else {b.setKeyMapListener(c&&b.getKeyMap())}},disableKeyMapGroup:function(b){this.setKeyMapGroupEnabled(b,!1)},enableKeyMapGroup:function(b){this.setKeyMapGroupEnabled(b,!0)},setKeyMapGroupEnabled:function(d,e){var b=this,c=b.disabledKeyMapGroups||(b.disabledKeyMapGroups={});c[d]=!e},updateKeyMapEnabled:function(b){this.setKeyMapListener(b&&this._keyMapReady&&this.getKeyMap())},privates:{_keyMapReady:!1,comparePriorities:function(b,c){return (c.priority||0)-(b.priority||0)},findKeyMapEntries:function(j){var e=this,f=e.disabledKeyMapGroups,g=e.getKeyMap(),b=g&&a.getKeyName(j),c,i,d,h=[];b=b&&g[b];if(b){if(!b.sorted){Ext.Array.sort(b,e.comparePriorities);b.sorted=!0}i=b.length;for(d=0;d<i;d++){c=b[d];if(!f||!f[c.group]){if(a.matchEntry(c,j)){h.push(c)}}}}return h},onKeyMapEvent:function(g){var f=this,c=f.getKeyMapEnabled()?f.findKeyMapEntries(g):null,h=c&&c.length,b,e,d;for(b=0;b<h&&d!==!1;b++){e=c[b];d=Ext.callback(e.handler,e.scope,[g,this],0,this)}return d},setKeyMapListener:function(e){var b=this,d=b._keyMapListener,c;if(d){d.destroy();d=null}if(e){if(e){c=b[b.keyMapTarget];if(typeof c==='function'){c=c.call(b)}d=c.on({destroyable:!0,scope:b,keydown:'onKeyMapEvent',keypress:'onKeyMapEvent'})}}b._keyMapListener=d||null},statics:{_charCodeRe:/^#([\d]+)$/,_keySpecRe:/^(?:(?:(\*)[\+\-])|(?:([a-z\+\-]*)[\+\-]))?(?:([a-z0-9_]+|[\+\-]|(?:#?\d+))(?:\:([a-z]+))?)$/i,_delimiterRe:/\-|\+/,_keyMapEvents:{charCode:'keypress',keyCode:'keydown'},combineKeyMaps:function(d,h,e){var i=h.scope||'controller',f,g,b,c;for(g in h){if(g==='scope'){continue}if(!(b=h[g])){if(!d){continue}}else {if(typeof b==='string'||typeof b==='function'){b={handler:b,scope:i}}else if(b){b=Ext.apply({handler:b.fn,scope:i},b)}d=d||{}}if(a.parseEntry(g,f=b||{})){c=d[f.name];if(c){if(e&&c.$owner!==e){d[f.name]=c=c.slice();c.$owner=e}c.push(b);c.sorted=!1}else {c=d[f.name]=[b];c.$owner=e;c.sorted=!0}}}if(d&&e){d.$owner=e}return d||null},getKeyName:function(b){var c;if(b.isEvent){c=b.keyCode||b.charCode;b=b.browserEvent;if(c===229&&'code' in b){if(Ext.String.startsWith(b.code,'Key')){return b.key.substr(3)}if(Ext.String.startsWith(b.code,'Digit')){return b.key.substr(5)}}}else {c=b}return Ext.event.Event.keyCodes[c]||String.fromCharCode(c)},matchEntry:function(b,d){var c=d.browserEvent,e;if(d.type!==b.event){return !1}if(!(e=b.charCode)){if(b.keyCode!==d.keyCode||(!b.ignoreModifiers&&!b.shiftKey!==!c.shiftKey)){return !1}}else if(d.getCharCode()!==e){return !1}return b.ignoreModifiers||(!b.ctrlKey===!c.ctrlKey&&!b.altKey===!c.altKey&&!b.metaKey===!c.metaKey&&!b.shiftKey===!c.shiftKey)},parseEntry:function(i,c){i=i.toUpperCase();var f=this,j=Ext.event.Event,m=j.keyFlags,b=f._keySpecRe.exec(i),h='keyCode',e,d,g,k,l;if(b){e=b[3];if(b[4]){c.group=b[4]}if(!(c.ignoreModifiers=!!b[1])&&b[2]){b=b[2].split(f._delimiterRe);l=b.length;for(g=0;g<l;g++){c[m[b[g]]]=!0}}c.name=e;if(isNaN(d=j[e])){if(!(k=f._charCodeRe.exec(e))){if(e.length===1){d=e.charCodeAt(0)}}else {d=+k[1]}if(d){h='charCode'}else {d=+e}c.name=a.getKeyName(d)}c.event=c.event||f._keyMapEvents[h];return !isNaN(d)&&(c[h]=d)}}}}}},0,0,0,0,0,0,[Ext.mixin,'Keyboard'],0));(Ext.cmd.derive('Ext.mixin.Focusable',Ext.Base,{mixinId:'focusable',$isFocusableEntity:!0,focusable:!1,hasFocus:!1,containsFocus:!1,focusCls:'x-focused',focusEl:'el',getFocusEl:function(){var a=this.focusEl;return a&&a.dom?a:null},getFocusClsEl:function(){return this.getFocusEl()},initFocusable:Ext.emptyFn,initFocusableEvents:function(a){this.initFocusableElement(a)},enableFocusable:Ext.emptyFn,disableFocusable:function(){var a=this;if(a.hasFocus){a.revertFocus()}a.removeFocusCls()},destroyFocusable:function(){var a=this;Ext.destroy(a.focusListeners);a.focusListeners=a.focusEnterEvent=a.focusTask=null;a.focusEl=a.ariaEl=null},isFocusable:function(c){var b=this,a;if(!b.focusable&&(!b.isContainer||!c)){return !1}a=b.getFocusEl();if(a&&b.canFocus()){return a&&!a.destroyed&&a.isFocusable(c)}return !1},isDestructing:function(){for(var a=this;a;a=a.getRefOwner()){if(a.destroying||a.destroyed){return !0}}return !1},canFocus:function(f,e){var a=this,c=a.ownerFocusableContainer,d=c&&c.allowFocusingDisabledChildren,b;b=!a.destroyed&&a.rendered&&!a.isDestructing()&&(a.isContainer||a.focusable)&&(!a.isDisabled()||d)&&(f||a.isVisible(!0));return b||(e&&!!a.findFocusTarget())},focus:function(d){var b=this,a,c;if((!b.focusable&&!b.isContainer)||b.destroyed||b.destroying){return !1}if(b.canFocus()&&(a=b.getFocusEl())){if(a.$isFocusableEntity){return a.focus.apply(a,arguments)}c=a.dom;if(c){a.focus();if(d&&(b.selectText||c.select)){if(b.selectText){if(Ext.isArray(d)){b.selectText.apply(b,d)}else {b.selectText()}}else {c.select()}}}else if(a.focus){a.focus()}else {return !1}}else {a=b.findFocusTarget();if(a&&a!=b){return a.focus.apply(a,arguments)}else {return !1}}return !0},onBlur:function(b){var a=this,c=a.ownerFocusableContainer;a.hasFocus=!1;if(a.beforeBlur&&!a.beforeBlur.$emptyFn){a.beforeBlur(b)}if(c){c.beforeFocusableChildBlur(a,b)}a.removeFocusCls(b);if(a.hasListeners.blur){a.fireEvent('blur',a,b)}if(a.postBlur&&!a.postBlur.$emptyFn){a.postBlur(b)}if(c){c.afterFocusableChildBlur(a,b)}},onFocus:function(b){var a=this,c=a.ownerFocusableContainer;if(a.canFocus()){if(a.beforeFocus&&!a.beforeFocus.$emptyFn){a.beforeFocus(b)}if(c){c.beforeFocusableChildFocus(a,b)}a.addFocusCls(b);if(!a.hasFocus){a.hasFocus=!0;a.fireEvent('focus',a,b)}if(a.postFocus&&!a.postFocus.$emptyFn){a.postFocus(b)}if(c){c.afterFocusableChildFocus(a,b)}}},getTabIndex:function(){var c=this,b,a;if(!c.focusable){return}b=c.getFocusEl();if(b){if(b.$isFocusableEntity){a=b.getTabIndex()}else if(b.isElement&&b.dom){a=b.dom.getAttribute('tabIndex');if(a!==null){a-=0}}else {return}}if(typeof a!=='number'){a=c.tabIndex}return a},setTabIndex:function(c,f){var a=this,d=a.ownerFocusableContainer,e=d&&d.allowFocusingDisabledChildren,b;if(!a.focusable&&!a.forceTabIndex){return}a.tabIndex=c;if(a.destroying||a.destroyed||(a.isDisabled()&&!e)){return}b=f||a.getFocusEl();if(b){if(b.$isFocusableEntity){b.setTabIndex(c)}else if(b.isElement&&b.dom){b.setTabIndex(c)}}},onFocusEnter:function(b){var a=this;if(a.destroying||a.destroyed){return}a.focusEnterEvent=b;a.containsFocus=!0;if(a.hasListeners.focusenter){a.fireEvent('focusenter',a,b)}},onFocusLeave:function(b){var a=this;if(a.destroying||a.destroyed){return}a.focusEnterEvent=null;a.containsFocus=!1;if(a.hasListeners.focusleave){a.fireEvent('focusleave',a,b)}},onFocusMove:Ext.emptyFn,privates:{forceTabIndex:!1,revertFocus:function(){var d=this,c=d.focusEnterEvent,e=Ext.Element.getActiveElement(),a,b,f;if(c&&!d.preventRefocus&&d.el.contains(e)){b=c.fromComponent;if(b&&(b.destroyed||b.isDestructing())){a=document.body}else {a=c.relatedTarget}if(a===document.body){b=d.findFocusTarget();if(b){a=b.getFocusEl()}}if(a&&a.$isFocusableEntity){if(!a.destroyed&&a.isFocusable()){a.focus()}}else if(Ext.getDoc().contains(a)&&Ext.fly(a).isFocusable()){b=Ext.Component.from(a);if(b){b.revertFocusTo(a)}else {a.focus()}}else if(c.fromComponent&&c.fromComponent.focus){f=c.fromComponent.focus();if(!f){e.blur()}}}},revertFocusTo:function(a){a.focus()},findFocusTarget:function(){var g=this,c,a,f,b,d,e;if(g.preventRefocus){return null}for(c=[],a=g.getRefOwner();a;a=a.getRefOwner()){if(!a.isDisabled()){c.unshift(a)}}for(b=0,f=c.length;b<f;b++){a=c[b];if(a.destroying||!a.isVisible()){c.length=b;break}}for(b=c.length-1;b>=0;b--){a=c[b];d=Ext.ComponentQuery.query(':canfocus()',a);if(d.length){e=Ext.Array.indexOf(d,Ext.ComponentManager.getActiveComponent());return d[e+1]||d[e-1]||d[0]}if(a.isFocusable&&a.isFocusable()){return a}}},initFocusableElement:function(d){var b=this,c=b.getTabIndex(),a=b.getFocusEl();if(a&&!a.$isFocusableEntity){if(c!=null&&(d||b.canFocus(!0))){b.setTabIndex(c,a)}if(!a.dom.hasAttribute('data-componentid')){a.dom.setAttribute('data-componentid',b.id)}}},addFocusCls:function(c){var b=this.focusCls,a;a=this.getFocusClsEl();if(b){a=this.getFocusClsEl(c);if(a){a.addCls(b)}}},removeFocusCls:function(c){var b=this.focusCls,a;if(b){a=this.getFocusClsEl(c);if(a){a.removeCls(b)}}},handleFocusEvent:function(c){var b=this,a;if(!b.focusable||b.destroying||b.destroyed){return}if(b.isFocusing(c)){a=new Ext.event.Event(c.event);a.type='focus';a.relatedTarget=c.fromElement;a.target=c.toElement;b.onFocus(a)}},handleBlurEvent:function(c){var b=this,a;if(!b.focusable||b.destroying||b.destroyed){return}if(c.toElement===document.body||b.isBlurring(c)){a=new Ext.event.Event(c.event);a.type='blur';a.target=c.fromElement;a.relatedTarget=c.toElement;b.onBlur(a)}},isFocusing:function(b){var a=this.getFocusEl();if(a){if(a.isFocusing){return a.isFocusing(b)}else {return a.dom===document.activeElement&&b.toElement===a.dom&&b.fromElement!==b.toElement}}return !1},isBlurring:function(b){var a=this.getFocusEl();if(a){if(a.isFocusing){return a.isBlurring(b)}else {return a.dom!==document.activeElement&&b.fromElement===a.dom&&b.fromElement!==b.toElement}}return !1},blur:function(){var a=this,b;if(!a.focusable||!a.canFocus()){return}b=a.getFocusEl();if(b){a.blurring=!0;b.blur();delete a.blurring}},isTabbable:function(){var b=this,a;if(b.focusable){a=b.getFocusEl();if(a&&a.isTabbable()){return a.isTabbable()}}return !1},disableTabbing:function(){var c=this,b=c.el,a;if(c.destroying||c.destroyed){return}if(b){b.saveTabbableState()}a=c.getFocusEl();if(a){if(a.$isFocusableEntity){a.disableTabbing()}else if(a.isElement&&b&&!b.contains(a)){a.saveTabbableState()}}},enableTabbing:function(d){var c=this,b=c.el,a;if(c.destroying||c.destroyed){return}a=c.getFocusEl();if(a){if(a.$isFocusableEntity){a.enableTabbing()}else if(a.isElement&&b&&!b.contains(a)){a.restoreTabbableState()}}if(b){b.restoreTabbableState({reset:d})}}}},0,0,0,0,0,0,[Ext.mixin,'Focusable'],function(){var b='x-keyboard-mode',a=!1;Ext.setKeyboardMode=Ext.setKeyboardMode||function(a){Ext.keyboardMode=a;Ext.getBody().toggleCls(b,a)};Ext.isTouchMode=function(){return (Ext.now()-Ext.lastTouchTime)<500};function syncKeyboardMode(c){var b=c.type;if(b==='pointermove'){a=!1}else {a=(b==='keydown');Ext.lastTouchTime=c.pointerType==='touch'&&Ext.now();Ext.setKeyboardMode(a)}}Ext.onReady(function(){Ext.getWin().on({pointerdown:syncKeyboardMode,pointermove:syncKeyboardMode,keydown:syncKeyboardMode,capture:!0,delegated:!1});Ext.on('focus',function(){if(a!==Ext.getBody().hasCls(b)){Ext.setKeyboardMode(a)}})})}));(Ext.cmd.derive('Ext.mixin.Accessible',Ext.Mixin,{mixinConfig:{id:'accessible'},config:{ariaAttributes:{$value:null,lazy:!0}},ariaEl:'el',privates:{getAriaLabelEl:function(a){var e=[],c,b,f,d,g;if(a){if(Ext.isFunction(a)){return a.call(this)}else {if(!Ext.isArray(a)){a=[a]}c=this.lookupReferenceHolder();if(c){for(b=0,f=a.length;b<f;b++){d=c.lookupReference(a[b]);if(d){e.push(d.ariaEl.id)}}}}}return e.length?e.join(' '):null}}},0,0,0,0,0,0,[Ext.mixin,'Accessible'],0));(Ext.cmd.derive('Ext.Widget',Ext.Evented,{alternateClassName:'Ext.Gadget',isWidget:!0,factoryConfig:{creator:null,defaultProperty:'xtype',defaultType:'component',typeProperty:'xtype'},element:{reference:'element'},observableType:'component',cachedConfig:{cls:null,style:null,border:null,touchAction:null,eventHandlers:{focus:'handleFocusEvent',blur:'handleBlurEvent'}},name:null,config:{renderTo:null,ui:null,userCls:null,ripple:null,hideMode:null,instanceCls:null},eventedConfig:{width:null,height:null,hidden:null,disabled:null},template:[],baseCls:null,classCls:null,classClsRoot:!0,classClsList:[],clearPropertiesOnDestroy:'async',focusEl:'element',ariaEl:'element',spaceRe:/\s+/,noBorderCls:'x-noborder-trbl',borderedCls:'x-bordered',disabledCls:'x-disabled',heightedCls:'x-heighted',widthedCls:'x-widthed',constructor:function(b){var a=this,e=a.baseCls,d=b&&b.renderTo,c;a.$iid=++Ext.$nextIid;if(e==null||e===!0){a.baseCls=a.classCls||'x-'+a.xtype}if((b&&b.controller)||a.config.controller){a.referenceHolder=!0}a.initId(b);a.initElement();if(d){b=Ext.apply({},b);delete b.renderTo}a.mixins.observable.constructor.call(a,b);if(a.focusable){a.initFocusableEvents(!0)}if(d){a.setRenderTo(d)}a.syncUiCls();Ext.ComponentManager.register(a);c=a.getController();if(c){c.init(a)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a<b;a++){h=e[a];h.removeAttribute('id')}for(a=0,b=f.length;a<b;a++){g=f[a];c[g].dom.removeAttribute('reference')}},applyHidden:function(a){return !!a},applyDisabled:function(a){return !!a},updateDisabled:function(c){var b=this,a=b.ownerFocusableContainer;if(a){if(c){if(!a.beforeFocusableChildDisable.$nullFn){a.beforeFocusableChildDisable(b)}}else {if(!a.beforeFocusableChildEnable.$nullFn){a.beforeFocusableChildEnable(b)}}}b.element.toggleCls(b.disabledCls,c);if(b.focusable){if(c){b.disableFocusable()}else {b.enableFocusable()}}if(a){if(c){if(!a.onFocusableChildDisable.$nullFn){a.onFocusableChildDisable(b)}}else {if(!a.onFocusableChildEnable.$nullFn){a.onFocusableChildEnable(b)}}}},disable:function(){this.setDisabled(!0)},enable:function(){this.setDisabled(!1)},isDisabled:function(){return this.getDisabled()},isEnabled:function(){return !this.getDisabled()},applyTouchAction:function(a,b){if(b!=null){a=Ext.merge({},b,a)}return a},applyWidth:function(a){return this.filterLengthValue(a)},applyHeight:function(a){return this.filterLengthValue(a)},updateBorder:function(a){var b=this;a=a||a===null;b.toggleCls(b.noBorderCls,!a);b.toggleCls(b.borderedCls,!!a)},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},destroy:function(){var a=this;a.isDestroying=a.destroying=!0;a.doDestroy();a.clearListeners();a.isDestroying=a.destroying=!1;a.mixins.componentDelegation.destroyComponentDelegation.call(a);Ext.Evented.prototype.destroy.call(this)},doDestroy:function(){var a=this,e=a.referenceList,d=a.ownerFocusableContainer,c,f,b;a.ownerCmp=null;if(d&&!d.onFocusableChildDestroy.$nullFn){d.onFocusableChildDestroy(a)}for(c=0,f=e.length;c<f;c++){b=e[c];if(a.hasOwnProperty(b)){a[b].destroy();a[b]=null}}a.destroyBindable();Ext.ComponentManager.unregister(a)},doFireEvent:function(c,d,e){var a=this,b;b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1&&!a.destroyed){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},getBubbleTarget:function(){return this.getRefOwner()},getElementConfig:function(){var b=this,a=b.element;if(!('children' in a)){a=Ext.apply({children:b.getTemplate()},a)}return a},getSize:function(){return this.el.getSize()},getTemplate:function(){return Ext.clone(this.template)},getClassCls:function(){var e=this.self.prototype,a=e,b,c,d,f;while(a){c=a.hasOwnProperty('classCls')?a.classCls:null;if(c){if(c instanceof Array){for(d=0,f=c.length;d<f;d++){(b||(b=[])).push(c[d])}}else {(b||(b=[])).push(c)}}if(a.classClsRoot&&a.hasOwnProperty('classClsRoot')){break}a=a.superclass}if(b){e.classClsList=b}return b},hide:function(){this.setHidden(!0)},initElement:function(){var a=this,i=a.self.prototype,q=a.getId(),s=a.referenceList=a.referenceList=[],k=!i.hasOwnProperty('renderTemplate'),p=i.hasOwnProperty('uiReferences')?i.uiReferences:(i.uiReferences={element:''}),f,g,o,h,e,d,m,b,c,n,j,l,r;if(k){f=document.createDocumentFragment();o=a.processElementConfig.call(i);g=Ext.Element.create(o,!0);f.appendChild(g);e=f.querySelectorAll('[uiCls]');for(d=0,m=e.length;d<m;d++){b=e[d];c=b.getAttribute('reference');j=b.getAttribute('uiCls');p[c]=j;b.removeAttribute('uiCls')}}else {f=a.renderTemplate.cloneNode(!0);g=f.firstChild}e=f.querySelectorAll('[reference]');for(d=0,m=e.length;d<m;d++){b=e[d];c=b.getAttribute('reference');if(!k){b.removeAttribute('reference')}if(c==='element'){b.id=q;h=a.el=a.addElementReference(c,b);h.dom.setAttribute('data-componentid',q);if(k){n=a.getClassCls();if(n){h.addCls(n)}l=a.baseCls;if(l&&(l!==a.classCls)){h.addCls(l)}}}else {j=p[c];if(j&&k){r=a.addElementReference(c,b);a.initUiReference(c,j,!1)}else {a.addElementReferenceOnDemand(c,b)}}if(c===a.focusEl){a.addElementReference('focusEl',b)}if(c===a.ariaEl){a.addElementReferenceOnDemand('ariaEl',b)}s.push(c)}if(g===h.dom){a.renderElement=h}else {a.addElementReferenceOnDemand('renderElement',g)}g.setAttribute(a.dataXid,a.$iid)},dataXid:'data-'+'x-'.substr(0,'x-'.length-1)+'id',is:function(a){return Ext.ComponentQuery.is(this,a)},isHidden:function(c){var b=!!this.getHidden(),a;if(!b&&c){a=this.getRefOwner();while(a&&a!==c&&!b){b=!!a.getHidden();a=a.getRefOwner()}}return b},isVisible:function(a){return this.rendered&&!this.destroyed&&!this.isHidden(a)},isXType:function(a,b){return b?(Ext.Array.indexOf(this.xtypes,a)!==-1):!!this.xtypesMap[a]},lookupTpl:function(a){return Ext.XTemplate.getTpl(this,a)},owns:function(a){var c=!1,b;if(a.isEvent){a=a.target}else if(a.isElement){a=a.dom}b=Ext.Component.from(a);if(b){c=(b===this)||(!!b.up(this))}return c},render:function(a,d){if(a&&a.isWidget){a=a.el}var e=this.renderElement.dom,c=Ext.getDom(a),b;if(Ext.isNumber(b)){d=c.childNodes[d]}b=Ext.getDom(d);if(c){if(b){c.insertBefore(e,b)}else {c.appendChild(e)}this.setRendered(Ext.getBody().contains(e),!0)}},toggleCls:function(a,b){this.element.toggleCls(a,b);return this},resolveListenerScope:function(a,b){return this.mixins.inheritable.resolveListenerScope.call(this,a,b)},setSize:function(a,b){if(a&&typeof a==='object'){return this.setSize(a.width,a.height)}if(a!==undefined){this.setWidth(a)}if(b!==undefined){this.setHeight(b)}},show:function(){this.setHidden(!1)},addCls:function(c,a,b){if(!this.destroyed){this.el.replaceCls(null,c,a,b)}},applyCls:function(a){return a&&Ext.dom.Element.splitCls(a)},applyUi:function(a){return this.parseUi(a,!0)},removeCls:function(c,a,b){if(!this.destroyed){this.el.replaceCls(c,null,a,b)}},replaceCls:function(b,a,c,d){if(!this.destroyed){this.el.replaceCls(b,a,c,d)}},hasCls:function(a){return this.el.hasCls(a)},updateCls:function(a,b){this.element.replaceCls(b,a)},updateHidden:function(c){var b=this,d=b.renderElement,a=b.ownerFocusableContainer;if(a){if(c){if(!a.beforeFocusableChildHide.$nullFn){a.beforeFocusableChildHide(b)}}else {if(!a.beforeFocusableChildShow.$nullFn){a.beforeFocusableChildShow(b)}}}else if(c){b.revertFocus()}if(d&&!d.destroyed){if(c){d.hide()}else {d.show()}}if(b.focusableContainer&&b.activateFocusableContainer){b.activateFocusableContainer(!c)}if(a){if(c){if(!a.onFocusableChildHide.$nullFn){a.onFocusableChildHide(b)}}else {if(!a.onFocusableChildShow.$nullFn){a.onFocusableChildShow(b)}}}},updateRipple:function(c){var b=this,a=b.el;if(a){a.un('touchstart','onRippleStart',b);a.un('touchend','onRippleStart',b);a.destroyAllRipples();if(c.release){a.on('touchend','onRippleStart',b)}else {a.on('touchstart','onRippleStart',b)}}},shouldRipple:function(e){var a=this,f=a.getDisabled&&a.getDisabled(),d=a.el,c=!f&&a.getRipple(),b;if(c&&e){b=e.getTarget(a.noRippleSelector);if(b){if((d.dom===b)||d.contains(b)){c=null}}}return c},onRippleStart:function(a){var b=this.shouldRipple(a);if(a.button===0&&b){this.el.ripple(a,b)}},applyStyle:function(a,b){if(b&&a===b&&Ext.isObject(b)){a=Ext.apply({},a)}this.element.applyStyles(a);return null},updateRenderTo:function(a){this.render(a)},updateTouchAction:function(b){var c,a,e,d;for(c in b){a=this[c];e=b[c];if(a&&a.isElement){a.setTouchAction(e)}else {d=!0}}if(d){this.el.setTouchAction(b)}},updateUi:function(){if(!this.isConfiguring){this.syncUiCls()}},updateWidth:function(a){var b=this.el;b.setWidth(a);b.toggleCls(this.widthedCls,a!=null&&a!=='auto')},updateHeight:function(a){var b=this.el;b.setHeight(a);b.toggleCls(this.heightedCls,a!=null&&a!=='auto')},isWidthed:function(){var a=this.getWidth();return a!=null&&a!=='auto'},isHeighted:function(){var a=this.getHeight();return a!=null&&a!=='auto'},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){if(a.destroyed){return null}d++;if(c.isComponent||c.isWidget){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},updateLayout:Ext.emptyFn,updateInstanceCls:function(c,d){var a=this,m=a.el,l=a.classClsList,k=Ext.Array,h=a.uiReferences,e,g,b,j,f,i;if(d){m.removeCls(d);d=k.from(d);for(b=0,j=d.length;b<j;b++){f=d[b];k.remove(l,f);for(e in h){g=a[e];i=h[e];g.removeCls(f+'-'+i)}}}if(c){m.addCls(c);c=k.from(c);a.classClsList=l.concat(c);for(b=0,j=c.length;b<j;b++){f=c[b];for(e in h){g=a[e];i=h[e];g.addCls(f+'-'+i)}}}if(!a.isConfiguring){a.syncUiCls()}},getBaseCls:function(){return this.baseCls},privates:{_hideModes:{clip:'CLIP',display:'DISPLAY',offsets:'OFFSETS',opacity:'OPACITY',visibility:'VISIBILITY'},noRippleSelector:'.x-no-ripple',addElementReferenceOnDemand:function(a,b){if(this._elementListeners[a]){this.addElementReference(a,b)}else {Ext.Object.defineProperty(this,a,{get:function(){if(this.destroyed){return}delete this[a];return this.addElementReference(a,b)},configurable:!0})}},addElementReference:function(f,g){var b=this,c=b[f]=Ext.get(g),a=b._elementListeners[f],e,d;c.skipGarbageCollection=!0;c.component=b;if(a){a=Ext.clone(a);for(e in a){d=a[e];if(typeof d==='object'){d.scope=b}}a.scope=b;c.on(a)}return c},detachFromBody:function(){Ext.getDetachedBody().appendChild(this.element,!0);this.isDetached=!0},reattachToBody:function(){var a;if(this.isDetached){a=Ext.getDetachedBody();if(a.contains(this.element)){Ext.getBody().appendChild(this.element,!0)}}this.isDetached=!1},doAddListener:function(f,g,d,a,l,k,j){var e=this,i=a&&a.element,m=a&&a.delegate,b,h,c;if(i){b={};b[f]=g;if(d){b.scope=d}h=Ext.Element.prototype.$eventOptions;for(c in a){if(h[c]){b[c]=a[c]}}e.mon(e[i],b);return}else if(m){e.mixins.componentDelegation.addDelegatedListener.call(e,f,g,d,a,l,k,j);return}Ext.Evented.prototype.doAddListener.call(this,f,g,d,a,l,k,j)},doRemoveListener:function(b,d,c){var a=this;a.mixins.observable.doRemoveListener.call(a,b,d,c);a.mixins.componentDelegation.removeDelegatedListener.call(a,b,d,c)},filterLengthValue:function(a){if(!a&&a!==0){return null}return a},initElementListeners:function(a){var c=this,k=c.self.superclass,d=k._elementListeners,h=a.reference,i=a.children,f,b,g,j,e;if(c.hasOwnProperty('_elementListeners')){f=c._elementListeners}else {f=c._elementListeners=(d?Ext.Object.chain(d):{})}if(h){b=a.listeners;if(b){if(d){g=d[h];if(g){b=Ext.Object.chain(g);Ext.apply(b,a.listeners)}}f[h]=b;a.listeners=null}}if(i){for(e=0,j=i.length;e<j;e++){c.initElementListeners(i[e])}}},initId:function(d){var a=this,c=a.config,b=(d&&d.id)||(c&&c.id);if(b){a.setId(b);a.id=b}else {a.getId()}},measure:function(a){return this.element.measure(a)},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},parseUi:function(a,b){a=Ext.String.splitWords(a);if(b){a=a.join(' ')}return a},addUi:function(a){this.setUi(this.doAddUi(a,this.getUi()))},doAddUi:function(b,a){var g=this,e=null,c,d,f;if(b){b=g.parseUi(b);f=b.length;a=g.parseUi(a);for(c=0;c<f;c++){d=b[c];if(Ext.Array.indexOf(a,d)===-1){a.push(d)}}e=a.join(' ')}return e},removeUi:function(a){this.setUi(this.doRemoveUi(a,this.getUi()))},doRemoveUi:function(b,a){var g=this,e=null,c,h,d,f;if(b){b=g.parseUi(b);f=b.length;a=g.parseUi(a);for(c=0;c<f;c++){h=b[c];d=Ext.Array.indexOf(a,h);if(d!==-1){a.splice(d,1)}}e=a.join(' ')}return e},initUiReference:function(h,b,c){var a=this,j=a[h],f=a.baseCls,e=a.classClsList,g=[],d,i;c=(c!==!1);if(c){if(!a.hasOwnProperty('uiReferences')){a.uiReferences=Ext.clone(a.uiReferences)}a.uiReferences[h]=b}b='-'+b;if(f&&(f!==a.classCls)){g.push(f+b)}if(e){for(d=0,i=e.length;d<i;d++){g.push(e[d]+b)}}j.addCls(g);if(c&&!a.isConfiguring){a.syncUiCls()}},syncUiCls:function(q){var a=this,b=a.getUi(),m=a.currentUiCls||(a.currentUiCls={}),k=a.baseCls,n=q||a.uiReferences,f=a.classClsList,p=f?f.length:0,e,o,c,g,l,d,j,h,i;if(b){b=a.parseUi(b);o=b.length}for(c in n){g=a[c];e=[];if(g){l=m[c];if(l){g.removeCls(l)}if(b){d=n[c];d=d?('-'+d):'';for(h=0;h<o;h++){j='-'+b[h]+d;if(k&&(k!==a.classCls)){e.push(k+j)}if(f){for(i=0;i<p;i++){e.push(f[i]+j)}}}g.addCls(e);m[c]=e}}}},applyHideMode:function(a){return a||'display'},updateHideMode:function(d){var a=this,c=a.el,b=a.getHidden();if(b){c.show()}a.renderElement.setVisibilityMode(Ext.Element[a._hideModes[d]]);if(b){c.hide()}},updateUserCls:function(a,b){this.element.replaceCls(b,a)}}},1,["widget"],["widget"],{"widget":!0},["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.mixin.ComponentDelegation.prototype.mixinId||Ext.mixin.ComponentDelegation.$className,Ext.mixin.ComponentDelegation],[Ext.mixin.Pluggable.prototype.mixinId||Ext.mixin.Pluggable.$className,Ext.mixin.Pluggable],[Ext.mixin.Keyboard.prototype.mixinId||Ext.mixin.Keyboard.$className,Ext.mixin.Keyboard],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.mixin.Focusable.prototype.mixinId||Ext.mixin.Focusable.$className,Ext.mixin.Focusable],[Ext.mixin.Accessible.prototype.mixinId||Ext.mixin.Accessible.$className,Ext.mixin.Accessible]],[Ext,'Widget',Ext,'Gadget'],function(b){var a=b.prototype;(a.$elementEventOptions=Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element=1;(a.$eventOptions=Ext.Object.chain(a.$eventOptions)).delegate=1;Ext.updateWidget=Ext.Factory.widget.update}));Ext.define('Ext.overrides.Widget',{override:'Ext.Widget',$configStrict:!1,isComponent:!0,liquidLayout:!0,rendered:!0,rendering:!0,config:{renderTo:null},constructor:function(c){var b=this,a;(arguments.callee.$previous||Ext.Evented.prototype.constructor).call(this,c);b.getComponentLayout();a=b.getRenderTo();if(a){b.render(a)}},addClsWithUI:function(a){this.el.addCls(a)},afterComponentLayout:Ext.emptyFn,updateLayout:function(){var a=this.getRefOwner();if(a){a.updateLayout()}},destroy:function(){var b=this,a=b.ownerCt;if(a&&a.remove){a.remove(b,!1)}(arguments.callee.$previous||Ext.Evented.prototype.destroy).call(this)},finishRender:function(){this.rendering=!1;this.initBindable();this.initKeyMap()},getAnimationProps:function(){return {}},getComponentLayout:function(){var b=this,a=b.componentLayout;if(!a){a=b.componentLayout=new Ext.layout.component.Auto();a.setOwner(b)}return a},getEl:function(){return this.element},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,d,c){var a=this;a.ownerCt=b;a.onInheritedAdd(a,c);a.isDetached=!1},onRemoved:function(a){this.onInheritedRemove(a);this.ownerCt=this.ownerLayout=null},parseBox:function(a){return Ext.Element.parseBox(a)},removeClsWithUI:function(a){this.el.removeCls(a)},render:function(d,e){var b=this,a=b.element,f=Ext.Component.prototype,c;if(!b.ownerCt||b.floating){if(Ext.scopeCss){a.addCls(f.rootCls)}a.addCls(f.borderBoxCls)}if(e){c=d.childNodes[e];if(c){Ext.fly(d).insertBefore(a,c);return}}Ext.fly(d).appendChild(a);b.finishRender()},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)},isLayoutChild:function(b){var a=this.ownerCt;return a?(a===b||a.isLayoutChild(b)):!1},privates:{doAddListener:function(a,e,d,b,c,g,f){if(a=='painted'||a=='resize'){this.element.doAddListener(a,e,d||this,b,c)}(arguments.callee.$previous||Ext.Evented.prototype.doAddListener).call(this,a,e,d,b,c,g,f)},doRemoveListener:function(a,c,b){if(a=='painted'||a=='resize'){this.element.doRemoveListener(a,c,b)}(arguments.callee.$previous||Ext.Evented.prototype.doRemoveListener).call(this,a,c,b)}}},function(b){var a=b.prototype;if(Ext.isIE9m){a.addElementReferenceOnDemand=a.addElementReference}});(Ext.cmd.derive('Ext.ProgressBase',Ext.Base,{mixinId:'progressbase',config:{value:0,textTpl:null},applyTextTpl:function(a){if(!a.isTemplate){a=new Ext.XTemplate(a)}return a},applyValue:function(a){return a||0}},0,0,0,0,0,0,[Ext,'ProgressBase'],0));(Ext.cmd.derive('Ext.Progress',Ext.Gadget,{alternateClassName:'Ext.ProgressBarWidget',config:{text:null,animate:!1},cachedConfig:{textCls:'x-progress-text',cls:null},baseCls:'x-progress',template:[{reference:'backgroundEl'},{reference:'barEl',cls:'x-progress-bar',children:[{reference:'textEl'}]}],defaultBindProperty:'value',updateCls:function(b,a){var c=this.element;if(a){c.removeCls(a)}if(b){c.addCls(b)}},updateUi:function(c,b){var d=this.element,e=this.barEl,a=this.baseCls+'-';Ext.Widget.prototype.updateUi.call(this,c,b);if(b){d.removeCls(a+b);e.removeCls(a+'bar-'+b)}d.addCls(a+c);e.addCls(a+'bar-'+c)},updateTextCls:function(a){this.backgroundEl.addCls(a+' '+a+'-back');this.textEl.addCls(a)},updateValue:function(b,d){var a=this,c=a.getTextTpl();if(c){a.setText(c.apply({value:b,percent:Math.round(b*100)}))}if(!a.isConfiguring&&a.getAnimate()){a.stopBarAnimation();a.startBarAnimation(Ext.apply({from:{width:(d*100)+'%'},to:{width:(b*100)+'%'}},a.animate))}else {a.barEl.setStyle('width',(b*100)+'%')}},updateText:function(a){this.backgroundEl.setHtml(a);this.textEl.setHtml(a)},doDestroy:function(){this.stopBarAnimation();Ext.Widget.prototype.doDestroy.call(this)},privates:{startBarAnimation:Ext.privateFn,stopBarAnimation:Ext.privateFn}},0,["progress","progressbarwidget"],["widget","progress","progressbarwidget"],{"widget":!0,"progress":!0,"progressbarwidget":!0},["widget.progress","widget.progressbarwidget"],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'Progress',Ext,'ProgressBarWidget'],0));Ext.define('Ext.overrides.Progress',{override:'Ext.Progress',config:{ui:'default'},updateWidth:function(a,c){var b=this;(arguments.callee.$previous||Ext.Widget.prototype.updateWidth).call(this,a,c);a-=b.element.getBorderWidth('lr');b.backgroundEl.setWidth(a);b.textEl.setWidth(a)},privates:{startBarAnimation:function(a){this.barEl.animate(a)},stopBarAnimation:function(){this.barEl.stopAnimation()}}});(Ext.cmd.derive('Ext.util.Format',Ext.Base,function(){var a;return {singleton:!0,defaultDateFormat:'m/d/Y',thousandSeparator:',',decimalSeparator:'.',currencyPrecision:2,currencySign:'$',currencySpacer:'',percentSign:'%',currencyAtEnd:!1,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},nbsp:function(a,b){b=b!==!1;if(b?a===''||a==null:!a){a='\xa0'}return a},undef:function(a){return a!==undefined?a:""},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!='b'?function(d,a,c){var b=String(d);return (a<0)?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,g,c,i,d){var e='',f=",0",h=0;b=b-0;if(b<0){b=-b;e='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;f+=(c>0?'.':'');for(;h<c;h++){f+='0'}b=a.number(b,f);if(d==null){d=a.currencySpacer}if((i||a.currencyAtEnd)===!0){return Ext.String.format("{0}{1}{2}{3}",e,b,d,g||a.currencySign)}else {return Ext.String.format("{0}{1}{2}{3}",e,g||a.currencySign,d,b)}},date:function(a,b){if(!a){return ""}if(!Ext.isDate(a)){a=new Date(Date.parse(a))}return Ext.Date.dateFormat(a,b||Ext.Date.defaultFormat)},dateRenderer:function(b){return function(c){return a.date(c,b)}},hex:function(c,b){var a=parseInt(c||0,10).toString(16);if(b){if(b<0){b=-b;if(a.length>b){a=a.substring(a.length-b)}}while(a.length<b){a='0'+a}}return a},or:function(b,a){return b||a},pick:function(a,d,c){if(Ext.isNumber(a)){var b=arguments[a+1];if(b){return b}}return a?c:d},lessThanElse:function(h,e,g,a,b){var d=Ext.Number.from(h,0),c=Ext.Number.from(e,0),f=!Ext.isDefined(b);return d<c?g:(d>c?a:(f?a:b))},sign:function(e,d,c,b){if(b===undefined){b=c}return a.lessThanElse(e,0,d,c,b)},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 a=1024,b=1048576,c=1073741824;return function(d){var e;if(d<a){if(d===1){e='1 byte'}else {e=d+' bytes'}}else if(d<b){e=(Math.round(((d*10)/a))/10)+' KB'}else if(d<c){e=(Math.round(((d*10)/b))/10)+' MB'}else {e=(Math.round(((d*10)/c))/10)+' GB'}return e}})(),math:(function(){var a={};return function(c,b){if(!a[b]){a[b]=Ext.functionFactory('v','return v '+b+';')}return a[b](c)}}()),round:function(c,a){var b=Number(c);if(typeof a==='number'){a=Math.pow(10,a);b=Math.round(c*a)/a}else if(a===undefined){b=Math.round(b)}return b},number:function(k,c){if(!c){return k}if(isNaN(k)){return ''}var j=a.formatFns[c];if(!j){var n=c,o=a.thousandSeparator,g=a.decimalSeparator,d=0,l='',h,e,i,f,b,m;if(c.substr(c.length-2)==='/i'){if(!a.I18NFormatCleanRe||a.lastDecimalSeparator!==g){a.I18NFormatCleanRe=new RegExp('[^\\d\\'+g+'#]','g');a.lastDecimalSeparator=g}c=c.substr(0,c.length-2);h=c.indexOf(o)!==-1;e=c.replace(a.I18NFormatCleanRe,'').split(g)}else {h=c.indexOf(',')!==-1;e=c.replace(a.formatCleanRe,'').split('.')}i=c.replace(a.formatPattern,'');if(e.length>2){}else if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(h?',thousandSeparator,thousands=[],j,n,i':'')+(i?',formatString="'+c+'",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, '+d+');',l,';'];if(h){if(d){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(d){b[b.length]='fnum += utilFormat.decimalSeparator+parts[1];'}}else if(d){b[b.length]='if(utilFormat.decimalSeparator!=="."){parts=fnum.split(".");fnum=parts[0]+utilFormat.decimalSeparator+parts[1];}'}b[b.length]='if(neg&&fnum!=="'+(d?'0.'+Ext.String.repeat('0',d):'0')+'") { fnum="-"+fnum; }';if(f){b[b.length]='fnum=fnum.replace(trailingZeroes,"");'}b[b.length]='return ';if(i){b[b.length]='formatString.replace(formatPattern, fnum);'}else {b[b.length]='fnum;'}b[b.length]='};';j=a.formatFns[n]=Ext.functionFactory('Ext',b.join(''))(Ext)}return j(k)},numberRenderer:function(b){return function(c){return a.number(c,b)}},percent:function(c,b){return a.number(c*100,b||'0')+a.percentSign},repeat:function(a,b,c){return Ext.String.repeat(b,a,c)},attributes:function(a){if(typeof a==='object'){var c=[],b;for(b in a){if(a.hasOwnProperty(b)){c.push(b,'="',b==='style'?Ext.DomHelper.generateStyles(a[b],null,!0):Ext.htmlEncode(a[b]),'" ')}}a=c.join('')}return a||''},plural:function(c,a,b){return c+' '+(c===1?a:(b?b:a+'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(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var a=b.split(' '),c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else if(c===2){a[2]=a[0];a[3]=a[1]}else if(c===3){a[3]=a[1]}return {top:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}},resource:function(b,a){a=a||'';return Ext.resolveResource(a+b)},uri:function(a){return encodeURI(a)},uriCmp:function(a){return encodeURIComponent(a)},wordBreakRe:/[\W\s]+/,word:function(e,c,b){var f=b?(typeof b==='string'?new RegExp(b):b):a.wordBreakRe,d=(e||'').split(f);return d[c||0]||''}}},1,0,0,0,0,0,[Ext.util,'Format'],0));(Ext.cmd.derive('Ext.Template',Ext.Base,{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],b=c.length,e,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e<b;e++){a=c[e];if(typeof a==='object'){Ext.apply(d.initialConfig,a);Ext.apply(d,a)}else {f.push(a)}}}else {f.push(g)}d.html=f.join('')},isTemplate:!0,disableFormats:!1,tokenRe:/\{(?:(?:(\d+)|([a-z_][\w\-]*))(?::([a-z_\.]+)(?:\(([^\)]*?)?\))?)?)\}/gi,apply:function(b){var a=this;if(a.compiled){if(!a.fn){a.compile()}return a.fn(b).join('')}return a.evaluate(b)},evaluate:function(a){var b=this,e=!b.disableFormats,c=Ext.util.Format,d=b;function fn(i,h,b,g,f){if(b==null||b===''){b=h}if(g&&e){if(f){f=[a[b]].concat(Ext.functionFactory('return ['+f+'];')())}else {f=[a[b]]}if(g.substr(0,5)==="this."){return d[g.substr(5)].apply(d,f)}else if(c[g]){return c[g].apply(c,f)}else {return i}}else {return a[b]!==undefined?a[b]:""}}return b.html.replace(b.tokenRe,fn)},applyOut:function(c,b){var a=this;if(a.compiled){if(!a.fn){a.compile()}b.push.apply(b,a.fn(c))}else {b.push(a.apply(c))}return b},applyTemplate:function(){return this.apply.apply(this,arguments)},set:function(c,b){var a=this;a.html=c;a.compiled=!!b;a.fn=null;return a},compileARe:/\\/g,compileBRe:/(\r\n|\n)/g,compileCRe:/'/g,compile:function(){var a=this,b;b=a.html.replace(a.compileARe,'\\\\').replace(a.compileBRe,'\\n').replace(a.compileCRe,"\\'").replace(a.tokenRe,a.regexReplaceFn.bind(a));b=(this.disableFormats!==!0?'var fm=Ext.util.Format;':'')+(a.useEval?'$=':'return')+" function(v){return ['"+b+"'];};";a.fn=a.useEval?a.evalCompiled(b):(new Function('Ext',b))(Ext);a.compiled=!0;return a},evalCompiled:function($){eval($);return $},regexReplaceFn:function(d,b,e,a,c){if(b==null||b===''){b='"'+e+'"'}else if(this.stringFormat){b=parseInt(b)+1}if(a&&this.disableFormats!==!0){c=c?','+c:"";if(a.substr(0,5)==="this."){a=a+'('}else if(Ext.util.Format[a]){a="fm."+a+'('}else {return d}return "',"+a+"v["+b+"]"+c+"),'"}else {return "',v["+b+"] == undefined ? '' : v["+b+"],'"}},insertFirst:function(c,b,a){return this.doInsert('afterBegin',c,b,a)},insertBefore:function(c,b,a){return this.doInsert('beforeBegin',c,b,a)},insertAfter:function(c,b,a){return this.doInsert('afterEnd',c,b,a)},append:function(c,b,a){return this.doInsert('beforeEnd',c,b,a)},doInsert:function(d,e,c,b){var a=Ext.DomHelper.insertHtml(d,Ext.getDom(e),this.apply(c));return b?Ext.get(a):a},overwrite:function(d,c,b){var a=Ext.DomHelper.overwrite(Ext.getDom(d),this.apply(c));return b?Ext.get(a):a}},1,0,0,0,0,0,[Ext,'Template'],function(d){var e=/\{\d+\}/,b=function(a){if(e.test(a)){a=new d(a,c);return function(){return a.apply(arguments)}}else {return function(){return a}}},c={useFormat:!1,compiled:!0,stringFormat:!0},a={};Ext.String.format=Ext.util.Format.format=function(c){var e=a[c]||(a[c]=b(c));return e.apply(this,arguments)};Ext.String.formatEncode=function(){return Ext.String.htmlEncode(Ext.String.format.apply(this,arguments))}}));(Ext.cmd.derive('Ext.util.XTemplateParser',Ext.Base,{constructor:function(a){Ext.apply(this,a)},doTpl:Ext.emptyFn,parse:function(g){var b=this,q=g.length,s={elseif:'elif'},p=b.topRe,r=b.actionsRe,j,e,d,c,h,n,l,m,i,f,a,k,o;b.level=0;b.stack=e=[];for(j=0;j<q;j=f){p.lastIndex=j;c=p.exec(g);if(!c){b.doText(g.substring(j,q));break}i=c.index;f=p.lastIndex;if(j<i){d=g.substring(j,i);if(!(o&&Ext.String.trim(d)==='')){b.doText(d)}}o=!1;if(c[1]){f=g.indexOf('%}',i+2);b.doEval(g.substring(i+2,f));f+=2}else if(c[2]){f=g.indexOf(']}',i+2);b.doExpr(g.substring(i+2,f));f+=2}else if(c[3]){b.doTag(c[3])}else if(c[4]){a=null;while((m=r.exec(c[4]))!==null){d=m[2]||m[3];if(d){d=Ext.String.htmlDecode(d);h=m[1];h=s[h]||h;a=a||{};n=a[h];if(typeof n=='string'){a[h]=[n,d]}else if(n){a[h].push(d)}else {a[h]=d}}}if(!a){if(b.elseRe.test(c[4])){b.doElse()}else if(b.defaultRe.test(c[4])){b.doDefault()}else {b.doTpl();e.push({type:'tpl'})}}else if(a['if']){b.doIf(a['if'],a);e.push({type:'if'})}else if(a['switch']){b.doSwitch(a['switch'],a);e.push({type:'switch'});o=!0}else if(a['case']){b.doCase(a['case'],a)}else if(a['elif']){b.doElseIf(a['elif'],a)}else if(a['for']){++b.level;if(k=b.propRe.exec(c[4])){a.propName=k[1]||k[2]}b.doFor(a['for'],a);e.push({type:'for',actions:a})}else if(a['foreach']){++b.level;if(k=b.propRe.exec(c[4])){a.propName=k[1]||k[2]}b.doForEach(a['foreach'],a);e.push({type:'foreach',actions:a})}else if(a.exec){b.doExec(a.exec,a);e.push({type:'exec',actions:a})}}else if(c[0].length===5){e.push({type:'tpl'})}else {l=e.pop();b.doEnd(l.type,l.actions);if(l.type=='for'||l.type=='foreach'){--b.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:!0,propNameRe:/^[\w\d\$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;a.definitions=a.body=a.switches=0;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push('out[out.length]=\'',a,'\'\n')}else {c.push('out.push(\'',a,'\')\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(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},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(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b<d;++b){f=a.intRe.exec(c[b]);c[b]=f?f[1]:("'"+c[b].replace(a.aposRe,"\\'")+"'")}a.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(c,d){var a=this,b=a.level-1;if(c=='for'||c=='foreach'){if(d.exec){a.doExec(d.exec)}a.body.push('}\n');a.body.push('parent=p',b,';values=r',b+1,';xcount=n'+b+';xindex=i',b,'+1;xkey=k',b,';\n')}else if(c=='if'||c=='switch'){a.body.push('}\n')}},doFor:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}if(b.maxLevel<a){b.maxLevel=a;b.body.push('var ')}if(c=='.'){g='c'+a}else {g='a'+e+'?c'+e+'[i'+e+']:c'+e}b.body.push('i',a,'=0,n',a,'=0,c',a,'=',f,',a',a,'=',b.createArrayTest(a),',r',a,'=values,p',a,',k',a,';\n','p',a,'=parent=',g,'\n','if (c',a,'){if(a',a,'){n',a,'=c',a,'.length;}else if (c',a,'.isMixedCollection){c',a,'=c',a,'.items;n',a,'=c',a,'.length;}else if(c',a,'.isStore){c',a,'=c',a,'.data.items;n',a,'=c',a,'.length;}else{c',a,'=[c',a,'];n',a,'=1;}}\n','for (xcount=n',a,';i',a,'<n'+a+';++i',a,'){\n','values=c',a,'[i',a,']');if(d.propName){b.body.push('.',d.propName)}b.body.push('\n','xindex=i',a,'+1\n');if(d.between){b.body.push('if(xindex>1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}if(b.maxLevel<a){b.maxLevel=a;b.body.push('var ')}if(c=='.'){g='c'+a}else {g='a'+e+'?c'+e+'[i'+e+']:c'+e}b.body.push('i',a,'=-1,n',a,'=0,c',a,'=',f,',a',a,'=',b.createArrayTest(a),',r',a,'=values,p',a,',k',a,';\n','p',a,'=parent=',g,'\n','for(k',a,' in c',a,'){\n','xindex=++i',a,'+1;\n','xkey=k',a,';\n','values=c',a,'[k',a,'];');if(d.propName){b.body.push('.',d.propName)}if(d.between){b.body.push('if(xindex>1){ out.push("',d.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 a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {','  '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {','  return('+c+')',' }',d.doCatch,'}')}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a=='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else if(a=='#'){b='xindex'}else if(a=='$'){b='xkey'}else if(a.substr(0,7)=="parent."){b=a}else if(isNaN(a)&&a.indexOf('-')==-1&&a.indexOf('.')!=-1){b="values."+a}else {b="values['"+a+"']"}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:"";if(c.substr(0,5)!="this."){c="fm."+c+'('}else {c+='('}}else {return b}return c+b+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,{isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(c,b,e,d){var a=this.applyOut(c,[],b,e,d);return a.length===1?a[0]:a.join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{get:function(a,d,c){var b=a;if(a==null){if(d&&c){b=this.getTpl(d,c)}}else if((a||a==='')&&!a.isTemplate){b=new this(a)}return b},getTpl:function(c,d){var b=c[d],a;if(b){if(!b.isTemplate){b=Ext.XTemplate.get(b)}if(!b.owner){if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}}return b||null}}},0,0,0,0,0,0,[Ext,'XTemplate'],0));(Ext.cmd.derive('Ext.app.EventDomain',Ext.Base,{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;d<k;d++){f=e[d];if(f.fire.apply(f,m)===!1){return !1}}}}}}}return !0},listen:function(p,e){var i=this,r=i.bus,t=i.idProperty,n=i.monitoredClasses,s=n.length,o=e.getId(),m=(i.type==='component'),u=m?e.getRefMap():null,j,f,q,a,d,b,h,l,g,c,k;for(a in p){g=p[a];if(m){a=u[a]||a}if(g){if(t){a=a==='*'?a:a.substring(1)}for(c in g){d=null;b=g[c];h=e;c=Ext.canonicalEventName(c);l=new Ext.util.Event(e,c);if(Ext.isObject(b)){d=b;b=d.fn;h=d.scope||e;delete d.fn;delete d.scope}if(typeof b==='string'){b=h[b]}l.addListener(b,h,d);for(j=0;j<s;++j){k=n[j].hasListeners;if(k){k._incr_(c)}}f=r[c]||(r[c]={});f=f[a]||(f[a]={});q=f[o]||(f[o]={controller:e,list:[]});q.list.push(l)}}}},match:function(c,b){var a=this.idProperty;if(a){return b==='*'||c[a]===b}return !1},monitor:function(a){var c=this,b=a.isInstance?a:a.prototype,d=b.doFireEvent;c.monitoredClasses.push(a);b.doFireEvent=function(f,g){var e=this,b;b=d.apply(e,arguments);if(b!==!1&&!e.destroyed&&!e.isSuspended(f)){b=c.dispatch(e,f,g)}return b}},unlisten:function(f){var k=this.bus,l=f,m=this.monitoredClasses,p=m.length,g,a,b,o,j,n,h,c,d,i,e;if(f.isController){l=f.getId()}for(a in k){a=Ext.canonicalEventName(a);if(k.hasOwnProperty(a)&&(h=k[a])){for(n in h){g=h[n];i=g[l];if(i){b=i.list;if(b){for(c=0,o=b.length;c<o;++c){j=b[c];j.clearListeners();for(d=0;d<p;++d){e=m[d].hasListeners;if(e){e._decr_(j.name)}}}delete g[l]}}}}}},destroy:function(){this.monitoredClasses=this.bus=null;this.callParent()}},1,0,0,0,0,0,[Ext.app,'EventDomain'],0));(Ext.cmd.derive('Ext.app.domain.Component',Ext.app.EventDomain,{singleton:!0,type:'component',constructor:function(){this.callParent();this.monitor(Ext.Widget)},dispatch:function(c,f,e){var a=c.lookupController(!1),b,d;while(a){b=a.compDomain;if(b){if(b.dispatch(c,f,e)===!1){return !1}}d=a.getView();a=d?d.lookupController(!0):null}return this.callParent([c,f,e])},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 a=Ext.String.splitWords,b=Ext.Array.toMap;return {isProtoEl:!0,clsProp:'cls',styleProp:'style',removedProp:'removed',styleIsText:!1,constructor:function(f){var c=this,e,d;if(f){Ext.apply(c,f);e=c.cls;d=c.style;delete c.cls}c.classList=e?a(e):[];c.classMap=e?b(c.classList):{};if(d){if(typeof d==='string'){c.style=Ext.Element.parseStyles(d)}else if(Ext.isFunction(d)){c.styleFn=d;delete c.style}else {c.style=Ext.apply({},d)}}},flush:function(){this.flushClassList=[];this.removedClasses={};delete this.style;delete this.unselectableAttr},addCls:function(d){if(!d){return this}var c=this,g=(typeof d==='string')?a(d):d,i=g.length,j=c.classList,h=c.classMap,f=c.flushClassList,e=0,b;for(;e<i;++e){b=g[e];if(!h[b]){h[b]=!0;j.push(b);if(f){f.push(b);delete c.removedClasses[b]}}}return c},hasCls:function(a){return a in this.classMap},removeCls:function(l){var d=this,g=d.classList,i=(d.classList=[]),k=b(a(l)),j=g.length,h=d.classMap,f=d.removedClasses,e,c;for(e=0;e<j;++e){c=g[e];if(k[c]){if(f){if(h[c]){f[c]=!0;Ext.Array.remove(d.flushClassList,c)}}delete h[c]}else {i.push(c)}}return d},setStyle:function(a,d){var b=this,c=b.style||(b.style={});if(typeof a==='string'){if(arguments.length===1){b.setStyle(Ext.Element.parseStyles(a))}else {c[a]=d}}else {Ext.apply(c,a)}return b},unselectable:function(){this.addCls(Ext.dom.Element.unselectableCls);if(Ext.isOpera){this.unselectableAttr=!0}},writeTo:function(d){var a=this,e=a.flushClassList||a.classList,c=a.removedClasses,b;if(a.styleFn){b=Ext.apply({},a.styleFn());Ext.apply(b,a.style)}else {b=a.style}d[a.clsProp]=e.join(' ');if(b){d[a.styleProp]=a.styleIsText?Ext.DomHelper.generateStyles(b,null,!0):b}if(c){c=Ext.Object.getKeys(c);if(c.length){d[a.removedProp]=c.join(' ')}}if(a.unselectableAttr){d.unselectable='on'}return d}}},1,0,0,0,0,0,[Ext.util,'ProtoElement'],0));(Ext.cmd.derive('Ext.dom.CompositeElement',Ext.dom.CompositeElementLite,{alternateClassName:'Ext.CompositeElement',isLite:!1,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.cmd.derive('Ext.plugin.Manager',Ext.Base,{alternateClassName:['Ext.PluginManager','Ext.PluginMgr'],singleton:!0,typeName:'ptype',create:function(a,e,c){var b,d;if(a.init){b=a}else {if(c){a=Ext.apply({},a);a.cmp=c}else {c=a.cmp}if(a.xclass){b=Ext.create(a)}else {d='plugin.'+(a.ptype||e);b=Ext.ClassManager.instantiateByAlias(d,a)}}if(b&&c&&b.setCmp&&!b.setCmpCalled){b.setCmp(c);b.setCmpCalled=!0}return b}},0,0,0,0,0,0,[Ext.plugin,'Manager',Ext,'PluginManager',Ext,'PluginMgr'],0));(Ext.cmd.derive('Ext.util.CSS',Ext.Base,function(){var a,b=null,c=document,e=/(-[a-z])/gi,d=function(b,a){return a.charAt(1).toUpperCase()};return {singleton:!0,rules:b,initialized:!1,constructor:function(){a=this},createStyleSheet:function(e,g){var d,f=c.getElementsByTagName('head')[0],b=c.createElement('style');b.setAttribute('type','text/css');if(g){b.setAttribute('id',g)}d=b.styleSheet;if(d){f.appendChild(b);d.cssText=e}else {b.appendChild(c.createTextNode(e));f.appendChild(b);d=b.sheet}a.cacheStyleSheet(d);return d},removeStyleSheet:function(a){var b=(typeof a==='string')?c.getElementById(a):a.ownerNode;if(b){b.parentNode.removeChild(b)}},swapStyleSheet:function(d,e){var b;a.removeStyleSheet(d);b=c.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("id",d);b.setAttribute("href",e);c.getElementsByTagName("head")[0].appendChild(b)},cacheStyleSheet:function(d){if(!b){b=a.rules={}}try{var h=d.cssRules||d.rules,g=h.length-1,f=d.imports,i=f?f.length:0,c,e;for(e=0;e<i;++e){a.cacheStyleSheet(f[e])}for(;g>=0;--g){c=h[g];if(c.styleSheet){a.cacheStyleSheet(c.styleSheet)}a.cacheRule(c,d)}}catch(j){}},cacheRule:function(d,g){if(d.styleSheet){return a.cacheStyleSheet(d.styleSheet)}var c=d.selectorText,f,e;if(c){c=c.split(',');f=c.length;for(e=0;e<f;e++){b[Ext.String.trim(c[e]).toLowerCase()]={parentStyleSheet:g,cssRule:d}}}},getRules:function(e){var d={},c;if(b===null||e){a.refreshCache()}for(c in b){d[c]=b[c].cssRule}return d},refreshCache:function(){var e=c.styleSheets,d=0,f=e.length;b=a.rules={};for(;d<f;d++){try{if(!e[d].disabled){a.cacheStyleSheet(e[d])}}catch(g){}}},getRule:function(c,g,f){var d,e;if(!b||g){a.refreshCache()}if(!Ext.isArray(c)){e=b[c.toLowerCase()];if(e&&!f){e=e.cssRule}return e||null}for(d=0;d<c.length;d++){if(b[c[d]]){return f?b[c[d].toLowerCase()]:b[c[d].toLowerCase()].cssRule}}return null},createRule:function(b,c,d){var f,e=b.cssRules||b.rules,g=e.length;if(b.insertRule){b.insertRule(c+' {'+d+'}',g)}else {b.addRule(c,d||' ')}a.cacheRule(f=e[g],b);return f},updateRule:function(c,b,i){var f,g,h;if(!Ext.isArray(c)){f=a.getRule(c);if(f){if(arguments.length===2){h=Ext.Element.parseStyles(b);for(b in h){f.style[b.replace(e,d)]=h[b]}}else {f.style[b.replace(e,d)]=i}return !0}}else {for(g=0;g<c.length;g++){if(a.updateRule(c[g],b,i)){return !0}}}return !1},deleteRule:function(f){var e=a.getRule(f,!1,!0),c,d;if(e){c=e.parentStyleSheet;d=Ext.Array.indexOf(c.cssRules||c.rules,e.cssRule);if(c.deleteRule){c.deleteRule(d)}else {c.removeRule(d)}delete b[f]}}}},1,0,0,0,0,0,[Ext.util,'CSS'],0));(Ext.cmd.derive('Ext.fx.easing.Abstract',Ext.Base,{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,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=!1},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,'Abstract'],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=!0;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.util.translatable.Abstract',Ext.Evented,{factoryConfig:{type:'translatable',defaultType:'csstransform'},config:{easing:null,easingX:{duration:300},easingY:{duration:300}},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){Ext.Evented.prototype.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:function(a,b){if(this.hasListeners.translate){this.fireEvent('translate',this,a,b)}},translate:function(a,b,c){if(c){return this.translateAnimated(a,b,c)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(a)&&typeof a==='number'){this.x=a}if(!isNaN(b)&&typeof b==='number'){this.y=b}this.doTranslate(a,b)},translateAxis:function(e,a,d){var b,c;if(e==='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(b,c){var a=this;a.activeEasingX=b;a.activeEasingY=c;a.isAnimating=!0;if(a.ownerCmp){a.ownerCmp.isTranslating=!0}a.lastX=null;a.lastY=null;Ext.AnimationQueue.start(a.doAnimationFrame,a);a.fireEvent('animationstart',a,a.x,a.y);return a},translateAnimated:function(g,h,a){var b=this,f,e,c,d;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;f=Ext.Date.now();e=a.easing;c=(typeof g==='number')?(a.easingX||e||b.getEasingX()||!0):null;d=(typeof h==='number')?(a.easingY||e||b.getEasingY()||!0):null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.doTranslate(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;if(a.ownerCmp){a.ownerCmp.isTranslating=!1}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)},resolveListenerScope:function(){var a=this.ownerCmp,b=arguments;if(a){return a.resolveListenerScope.apply(a,b)}return Ext.Evented.prototype.resolveListenerScope.apply(this,b)},destroy:function(){var a=this;a.destroying=!0;if(a.isAnimating){a.stopAnimation()}Ext.Evented.prototype.destroy.call(this);a.destroying=!1;a.destroyed=!0}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[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,["translatable.dom"],0,[Ext.util.translatable,'Dom'],0));(Ext.cmd.derive('Ext.util.translatable.ScrollPosition',Ext.util.translatable.Dom,{constructor:function(a){if(a&&a.element){this.x=a.element.getScrollLeft();this.y=a.element.getScrollTop()}Ext.util.translatable.Dom.prototype.constructor.call(this,a)},translateAnimated:function(){var a=this.getElement();this.x=a.getScrollLeft();this.y=a.getScrollTop();Ext.util.translatable.Dom.prototype.translateAnimated.apply(this,arguments)},doTranslate:function(b,c){var a=this.getElement();a.setScrollLeft(Math.round(b));a.setScrollTop(Math.round(c))},getPosition:function(){var c=this,a=c.position,b=c.getElement();a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}},1,0,0,0,["translatable.scrollposition"],0,[Ext.util.translatable,'ScrollPosition'],0));(Ext.cmd.derive('Ext.scroll.Scroller',Ext.Evented,{factoryConfig:{defaultType:'scroller'},bufferableMethods:{onDomScrollEnd:100},isScroller:!0,config:{direction:undefined,element:undefined,scrollbars:null,snapSelector:null,snapOffset:null,msSnapInterval:null,x:!0,y:!0,scrollElement:null,size:null,spacerXY:null,touchAction:null},snappableCls:'x-scroller-snappable',elementCls:'x-scroller',spacerCls:'x-scroller-spacer',noScrollbarsCls:'x-no-scrollbars',statics:{create:function(a,b){return Ext.Factory.scroller(a,b)},getScrollingElement:function(){var d=document,c=this.$standardScrollElement,e=d.scrollingElement,a,b;if(e){return e}if(c===undefined){a=document.createElement('iframe');a.style.height='1px';document.body.appendChild(a);b=a.contentWindow.document;b.write('<!DOCTYPE html><div style="height:9999em">x</div>');b.close();c=b.documentElement.scrollHeight>b.body.scrollHeight;a.parentNode.removeChild(a);this.$standardScrollElement=c}return c?d.documentElement:d.body},initViewportScroller:function(){var a=Ext.getViewportScroller();if(!a.getElement()){a.setElement(Ext.getBody())}}},constructor:function(a){var b=this;b.position={x:0,y:0};Ext.Evented.prototype.constructor.call(this,a)},destroy:function(){var a=this,b=a._partners,c;Ext.undefer(a.restoreTimer);a.setX(Ext.emptyString);a.setY(Ext.emptyString);if(a._spacer){a._spacer.destroy()}if(a.scrollListener){a.scrollListener.destroy()}if(b){for(c in b){a.removePartner(b[c].scroller)}}a.setElement(null);a._partners=a.component=null;if(a.translatable){a.translatable.destroy();a.translatable=null}a.removeSnapStylesheet();Ext.Evented.prototype.destroy.call(this)},addPartner:function(b,c){var a=this,e=a._partners||(a._partners={}),d=b._partners||(b._partners={});c=a.axisConfigs[c||'both'];e[b.getId()]={scroller:b,axes:c};d[a.getId()]={scroller:a,axes:c}},applyElement:function(a,c){var b=this;if(c&&b.scrollListener){b.scrollListener.destroy()}if(a){a=Ext.get(a)}return a},applySize:function(d,c){var a,b;if(d===null||typeof d==='number'){a=b=d}else if(d){a=d.x;b=d.y}if(a===null){a=0}else if(a===undefined){a=(c?c.x:0)}if(b===null){b=0}else if(b===undefined){b=(c?c.y:0)}if(!c||a!==c.x||b!==c.y){return {x:a,y:b}}},getClientSize:function(){var a=this.getElement().dom;return {x:a.clientWidth,y:a.clientHeight}},getScrollbarSize:function(){var h=this,j=0,i=0,g=h.getElement(),a,b,c,e,f,d;if(g&&!g.destroyed){b=h.getX();c=h.getY();a=g.dom;if(b||c){d=Ext.getScrollbarSize()}if(b==='scroll'){e=!0}else if(b){e=a.scrollWidth>a.clientWidth}if(c==='scroll'){f=!0}else if(c){f=a.scrollHeight>a.clientHeight}if(e){i=d.height}if(f){j=d.width}}return {width:j,height:i}},getPosition:function(){var a=this;if(a.positionDirty){a.updateDomScrollPosition()}return a.position},getSize:function(){var a=this.getElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},getMaxPosition:function(){var b=this.getElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},refresh:function(){this.positionDirty=!0;this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete (a[this.getId()])}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else if(typeof a!=='number'){c=b;b=a.y;a=a.x}}a=(typeof a==='number')?a+d.x:null;b=(typeof b==='number')?b+d.y:null;return this.doScrollTo(a,b,c)},ensureVisible:function(a,b){var c=this,g=c.getPosition(),e,d,f;if(a){if(a&&a.element&&!a.isElement){b=a;a=b.element}b=b||{};e=b.highlight;d=c.getEnsureVisibleXY(a,b);if(d.y!==g.y||d.x!==g.x){if(e){c.on({scrollend:'doHighlight',scope:c,single:!0,args:[a,e]})}f=c.doScrollTo(d.x,d.y,b.animation)}else {if(e){c.doHighlight(a,e)}f=Ext.Deferred.getCachedResolved()}}else {f=Ext.Deferred.getCachedRejected()}return f},scrollIntoView:function(d,c,b,a){return this.ensureVisible(d,{animation:b,highlight:a,x:c})},isInView:function(a){return this.doIsInView(a)},scrollTo:function(a,b,d){var c;if(a){if(a.length){d=b;b=a[1];a=a[0]}else if(typeof a!=='number'){d=b;b=a.y;a=a.x}}if(a<0||b<0){c=this.getMaxPosition();if(a<0){a+=c.x}if(b<0){b+=c.y}}return this.doScrollTo(a,b,d)},updateDirection:function(a){var d=this,b,c;if(!a){b=d.getX();c=d.getY();if(b&&c){a=(c==='scroll'&&b==='scroll')?'both':'auto'}else if(c){a='vertical'}else if(b){a='horizontal'}d._direction=a}else {if(a==='auto'){b=!0;c=!0}else if(a==='vertical'){b=!1;c=!0}else if(a==='horizontal'){b=!0;c=!1}else if(a==='both'){b='scroll';c='scroll'}d.setX(b);d.setY(c)}},updateScrollbars:function(b,a){this.syncScrollbarCls()},updateSize:function(e){var a=this,f=a.getElement(),b=e.x,c=e.y,d;if(f){a.positionDirty=!0;d=a.getSpacer();if(!b&&!c){d.hide()}else {if(b>0){b-=1}if(c>0){c-=1}a.setSpacerXY({x:b,y:c});d.show()}}},updateMsSnapInterval:function(){this.initMsSnapInterval()},updateSnapSelector:function(){this.initSnap()},updateSnapOffset:function(){this.initSnap()},updateTouchAction:function(b){var a=this.getElement();if(a){a.setTouchAction(b)}},updateElement:function(b,c){var a=this,g=a.getTouchAction(),f=a.scrollListener,h=a.elementCls,d,e;if(f){f.destroy();a.scrollListener=null;a.setScrollElement(null)}if(c&&!c.destroyed){c.setStyle('overflow','hidden');c.removeCls(h)}if(b){if(b.dom===document.documentElement||b.dom===document.body){d=Ext.getWin();e=Ext.scroll.Scroller.getScrollingElement()}else {e=d=b}a.setScrollElement(Ext.get(e));a.scrollListener=d.on({scroll:a.onDomScroll,scope:a,destroyable:!0});if(g){b.setTouchAction(g)}a.initXStyle();a.initYStyle();b.addCls(h);a.initSnap();a.initMsSnapInterval();a.syncScrollbarCls()}},updateX:function(a){this.initXStyle()},updateY:function(a){this.initYStyle()},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:{axisConfigs:{x:{x:!0},y:{y:!0},both:{x:!0,y:!0}},getEnsureVisibleXY:function(d,b){var e=this.getPosition(),f=this.component?this.component.getScrollableClientRegion():this.getElement(),c,a;if(d&&d.element&&!d.isElement){b=d;d=b.element}b=b||{};a=b.align;if(a){if(Ext.isString(a)){a={x:b.x===!1?null:a,y:b.y===!1?null:a}}else if(Ext.isObject(a)){if(a.x&&b.x===!1){a.x=null}if(a.y&&b.y===!1){a.y=null}}}c=Ext.fly(d).getScrollIntoViewXY(f,e.x,e.y,a);c.x=b.x===!1?e.x:c.x;c.y=b.y===!1?e.y:c.y;return c},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(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(e){var a=this,f=a.getSpacer(),b=f.dom.style,c=e.y,d;b.marginTop='';a.translateSpacer(e.x,a.constrainScrollRange(c));b.lineHeight=Number(!parseInt(b.lineHeight,10))+'px';if(c>1000000){d=c-a.getElement().dom.scrollHeight;if(d>0){b.marginTop=Math.min(d,a.maxSpacerMargin||0)+'px'}}},translateSpacer:function(a,b){this.getSpacer().translate(a,b)},doIsInView:function(c,h){var f=this,g=f.component,d={x:!1,y:!1},b,e=f.getElement(),a;if(c&&(h||(e.contains(c)||(g&&g.owns(c))))){a=e.getRegion();b=Ext.fly(c).getRegion();d.x=b.right>a.left&&b.left<a.right;d.y=b.bottom>a.top&&b.top<a.bottom}return d},contains:function(b){var c=this.getElement(),a=b;while(a&&a!==Ext.Viewport){if(c.contains(a.el)){return !0}a=a.getRefOwner()}return !1},constrainScrollRange:function(g){if(g<1000000){return g}if(!this.maxSpacerTranslate){var b=Math.pow(2,32),c=b,a=500,f=Ext.getBody().createChild({style:{position:'absolute',left:'-10000px',top:'0',width:'500px',height:'500px'},cn:{cls:this.spacerCls}},null,!0),e=Ext.get(f.firstChild),d=e.dom.style;e.translate(0,b-1);d.lineHeight=Number(!parseInt(d.lineHeight,10))+'px';while(c!==a+1){e.translate(0,(b=a+Math.floor((c-a)/2)));d.lineHeight=Number(!parseInt(d.lineHeight,10))+'px';if(f.scrollHeight<b){c=b}else {a=b}}e.translate(0,Ext.scroll.Scroller.prototype.maxSpacerTranslate=a);c=a*2;while(c!==a+1){e.dom.style.marginTop=((b=a+Math.floor((c-a)/2)))+'px';d.lineHeight=Number(!parseInt(d.lineHeight,10))+'px';if(f.scrollHeight<b){c=b}else {a=b}}Ext.fly(f).destroy();Ext.scroll.Scroller.prototype.maxSpacerMargin=a-Ext.scroll.Scroller.prototype.maxSpacerTranslate}return Math.min(g,this.maxSpacerTranslate)},convertX:function(a){return a},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},doScrollTo:function(a,d,l){var b=this,f=b.getScrollElement(),h,k,i,j,g,c,e;if(f&&!f.destroyed){k=f.dom;i=(a===Infinity);j=(d===Infinity);if(i||j){h=b.getMaxPosition();if(i){a=h.x}if(j){d=h.y}}if(a!==null){a=b.convertX(a)}if(l){c=b.translatable;if(!c){b.translatable=c=new Ext.util.translatable.ScrollPosition({element:f})}e=new Ext.Deferred();c.on('animationend',function(){if(b.destroyed){e.reject()}else {e.resolve()}},Ext.global,{single:!0,onFrame:!0});c.translate(a,d,l);g=e.promise}else {if(d!=null){k.scrollTop=d}if(a!=null){k.scrollLeft=a}g=Ext.Deferred.getCachedResolved()}b.positionDirty=!0}else {g=Ext.Deferred.getCachedRejected()}return g},fireScrollStart:function(b,c,e,f){var a=this,d=a.component;a.invokePartners('onPartnerScrollStart',b,c,e,f);a.startX=b-e;a.startY=c-f;if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(b,c,e,f){var a=this,d=a.component;a.invokePartners('onPartnerScroll',b,c,e,f);if(a.hasListeners.scroll){a.fireEvent('scroll',a,b,c,e,f)}if(d&&d.onScrollMove){d.onScrollMove(b,c)}Ext.GlobalEvents.fireEvent('scroll',a,b,c,e,f)},fireScrollEnd:function(b,c,g,h){var a=this,d=a.component,e=b-a.startX,f=c-a.startY;a.startX=a.startY=null;a.invokePartners('onPartnerScrollEnd',b,c,g,h);if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c,e,f)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c)}Ext.GlobalEvents.fireEvent('scrollend',a,b,c,e,f)},getElementScroll:function(a){return a.getScroll()},initSnap:function(){var a=this,e=a.getSnapOffset(),g=a.getSnapSelector(),f=a.getElement(),b,c,d;if(f&&g){f.addCls(a.snappableCls);a.removeSnapStylesheet();if(e){b=e.x||0;c=e.y||0;if(b){b=-b+'px'}if(c){c=-c+'px'}}d=b+' '+c+';';a.snapStylesheet=Ext.util.CSS.createStyleSheet('#'+f.id+' '+g+'{-webkit-scroll-snap-coordinate:'+d+'scroll-snap-coordinate:'+d+'}')}},initMsSnapInterval:function(){var e=this.getElement(),a,c,d,b;if(e){a=this.getMsSnapInterval();if(a){c=a.x;d=a.y;b=e.dom.style;if(c){b['-ms-scroll-snap-points-x']='snapInterval(0px, '+c+'px)'}if(d){b['-ms-scroll-snap-points-y']='snapInterval(0px, '+d+'px)'}}}},initXStyle:function(){var b=this.getElement(),a=this.getX();if(b&&b.dom){if(!a){a='hidden'}else if(a===!0){a='auto'}b.setStyle('overflow-x',a)}},initYStyle:function(){var b=this.getElement(),a=this.getY();if(b&&b.dom){if(!a){a='hidden'}else if(a===!0){a='auto'}b.setStyle('overflow-y',a)}},invokePartners:function(h,i,j,f,g){var b=this,c=b._partners,d,e,a;if(!b.suspendSync){b.invokingPartners=!0;for(e in c){a=c[e].axes;d=c[e].scroller;if(!d.invokingPartners&&(f&&a.x||g&&a.y)){d[h](b,a.x?i:null,a.y?j:null,f,g)}}b.invokingPartners=!1}},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(c){var a=this,b;if(a.suspendSync){a.suspendSync--}if(!a.suspendSync&&c){b=a.getPosition();a.invokePartners('onPartnerScroll',b.x,b.y);a.invokePartners('onPartnerScrollEnd',b.x,b.y)}},readPosition:function(a){var d=this,c=d.getScrollElement(),b;a=a||{};if(c&&!c.destroyed){b=d.getElementScroll(c);a.x=b.left;a.y=b.top}return a},updateDomScrollPosition:function(g){var a=this,b=a.position,h=b.x,i=b.y,e,f,c,d;a.readPosition(b);e=b.x;f=b.y;a.positionDirty=!1;if(!g){c=e-h;d=f-i;if(c||d){if(!a.isScrolling){a.isScrolling=Ext.isScrolling=!0;a.fireScrollStart(e,f,c,d)}a.fireScroll(e,f,c,d);a.onDomScrollEnd(e,f,c,d)}}return b},syncWithPartners:function(){var a=this,d=a._partners,e,c,b;a.suspendPartnerSync();for(e in d){c=d[e].scroller;b=c.getPosition();a.onPartnerScroll(c,b.x,b.y)}a.resumePartnerSync()},syncScrollbarCls:function(){var a=this.getElement();if(a){a.toggleCls(this.noScrollbarsCls,this.getScrollbars()===!1)}},onDomScroll:function(){var a=!!this.restoreTimer;this.updateDomScrollPosition(a);if(a){Ext.undefer(this.onDomScrollEnd.timer);return}},doOnDomScrollEnd:function(b,c,d,e){var a=this;if(a.destroying||a.destroyed){return}a.isScrolling=Ext.isScrolling=!1;if(b===undefined){return}a.trackingScrollLeft=b;a.trackingScrollTop=c;a.fireScrollEnd(b,c,d,e)},onPartnerScrollStart:function(e,c,d,a,b){this.isScrolling=!0;this.fireScrollStart(c,d,a,b)},onPartnerScroll:function(e,a,b,c,d){this.doScrollTo(a,b,!1);this.updateDomScrollPosition(!0);this.fireScroll(a,b,c,d)},onPartnerScrollEnd:function(e,c,d,a,b){this.cancelOnDomScrollEnd();this.doOnDomScrollEnd(c,d,a,b)},removeSnapStylesheet:function(){var a=this.snapStylesheet;if(a){Ext.util.CSS.removeStyleSheet(a);this.snapStylesheet=null}},restoreState:function(){var a=this,b=a.getScrollElement();if(b){if(a.trackingScrollTop!==undefined){if(!a.restoreTimer){a.restoreTimer=Ext.defer(function(){a.restoreTimer=null},50)}a.doScrollTo(a.trackingScrollLeft,a.trackingScrollTop,!1)}}}}},1,0,0,0,["scroller.scroller"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.mixin.Bufferable.prototype.mixinId||Ext.mixin.Bufferable.$className,Ext.mixin.Bufferable]],[Ext.scroll,'Scroller'],function(a){Ext.getViewportScroller=function(){var b=a.viewport;if(!b){a.viewport=b=new a();a.initViewportScroller()}return b};Ext.setViewportScroller=function(b){if(a.viewport!==b){Ext.destroy(a.viewport);if(b&&!b.isScroller){b=new a(b)}a.viewport=b}};Ext.onReady(function(){a.initViewportScrollerTimer=Ext.defer(a.initViewportScroller,100)})}));(Ext.cmd.derive('Ext.util.Floating',Ext.Base,{mixinId:'floating',focusOnToFront:!0,shadow:'sides',animateShadow:!1,constrain:!1,alignOnScroll:!0,config:{activeCounter:0,alwaysOnTop:!1},preventDefaultAlign:!1,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var a=this,e=a.el,d=a.shadow,c,b;if(d){b={mode:(d===!0)?'sides':d};c=a.shadowOffset;if(c){b.offset=c}b.animate=a.animateShadow;b.fixed=a.fixed;e.enableShadow(b,!1)}if(a.shim||Ext.useShims){e.enableShim({fixed:a.fixed},!1)}e.setVisibilityMode(a._visModeMap[a.hideMode]);a.el.on({mousedown:a.onMouseDown,scope:a,capture:!0});a.registerWithOwnerCt();a.initHierarchyEvents()},alignTo:function(b,i,j,l,k){var a=this,c,d,h,g,f,e;if(b.isComponent){c=b.el;d=b.destroyed}else {a.alignTargetFly=a.alignTargetFly||new Ext.dom.Fly();c=b=a.alignTargetFly.attach(b);h=c.dom;d=!h||Ext.isGarbage(h)}if(d){a._lastAlignTarget=null;if(a.alignListeners){a.alignListeners.destroy()}return}a.mixins.positionable.alignTo.call(a,c,i,j,l,k!==!1);g=a.getXY();f=b.getXY();a.alignVector=[g[0]-f[0],g[1]-f[1]];a._lastAlignTarget=b;a._lastAlignToPos=i;a._lastAlignToOffsets=j;a._topAlignTarget=a.getTopAlignTarget();a.clearClip();if(!a.alignListeners){e={resize:{fn:a.alignOnResize,buffer:100},scope:a,destroyable:!0};if(a.alignOnScroll&&!c.contains(a.el)){e.scroll=a.doRealign}a.alignListeners=Ext.on(e)}},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 a=this;if(!a.hierarchyEventListeners){a.hierarchyEventListeners=Ext.on({hide:'syncHidden',collapse:'syncHidden',show:'syncHidden',expand:'syncHidden',added:'syncHidden',scope:a,destroyable:!0})}},registerWithOwnerCt:function(){var a=this,c=a.ownerCt,b=a.zIndexParent;if(b){b.unregisterFloatingItem(a)}b=a.zIndexParent=a.up('[floating]');a.floatParent=c||b;a.initFloatConstrain();delete a.ownerCt;if(b){b.registerFloatingItem(a)}else {Ext.WindowManager.register(a)}},onMouseDown:function(e){var b=this,g=b.focusTask,h=b.getRefOwner(),c=e.pointerType==='touch',a,d,f;if(b.floating&&(!g||!g.id)){if(b.owns(Ext.Element.getActiveElement())){c={ownsFocus:!0}}a=e.target;d=b.el.dom;while(!c&&a&&a!==d){if(Ext.fly(a).isFocusable()){c={ownsFocus:!0}}a=a.parentNode}f=Ext.WindowManager.getActive()===b&&(a===d||c);if(!f){b.toFront(c)}if(!c&&h&&h.containsFocus){e.preventDefault()}}},onBeforeFloatLayout:function(){this.el.preventSync=!0},onAfterFloatLayout:function(){var a=this.el;if(a.shadow||a.shim){a.setUnderlaysVisible(!0);a.syncUnderlays()}},syncHidden:function(){var a=this,d=a.hidden||!a.rendered,c=a.hierarchicallyHidden=a.isHierarchicallyHidden(),b=a.pendingShow;if(d!==c){if(c){a.hide();a.pendingShow=!0}else if(b){delete a.pendingShow;if(b.length){a.show.apply(a,b)}else {a.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(c){var a=this,b=a.calculateConstrainedPosition(c,null,!0);if(b){a.setPosition(b)}},updateActiveCounter:function(c){var b=this,a=b.zIndexParent;if(a&&a!==a.zIndexManager.front&&b.bringParentToFront!==!1){a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}a=b.zIndexManager;if(a){a.onComponentUpdate(b)}},updateAlwaysOnTop:function(b){var a=this.zIndexManager;if(a){a.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},onZIndexChange:function(b){var a=this;if(b){if(a.el.shadow&&a.el.getData().isVisible!==!1&&!a.maximized){a.el.enableShadow(null,!0)}a.fireEvent('activate',a)}else {a.fireEvent('deactivate',a)}},onFocusTopmost:function(){var a=Ext.ComponentManager.getActiveComponent();if(!a||!a.up(this)){this.focus()}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var a=this,b=a.floatParent,c;if(a.isVisible()){c=a.getAlignToXY(b?b.getTargetEl():a.container,'c-c');a.setPagePosition(c)}else {a.needsCenter=!0}return a},onFloatShow:function(){var a=this,b=a._lastAlignTarget;if(a.needsCenter){a.center()}else if(b){if(b.destroyed){a._lastAlignTarget=null}else {a.alignTo(b,a._lastAlignToPos,a._lastAlignToOffsets,!1,!a.fixed)}}a.needsCenter=!1},fitContainer:function(f){var d=this,c=d.floatParent,a=c?c.getTargetEl():d.container,b=a.getViewSize(),e=c||(a.dom!==document.body)?[0,0]:a.getXY();b.x=e[0];b.y=e[1];d.setBox(b,f)},privates:{onFloatDestroy:function(){var a=this,b=a.alignTargetFly;if(a.hierarchyEventListeners){a.hierarchyEventListeners.destroy();a.hierarchyEventListeners=null}a.clearAlignEl();if(b){b.detach();b.destroy()}},getTopAlignTarget:function(){var a=this._lastAlignTarget,b=a;while(a&&(b=a)&&a.isComponent){if(b.isFloating()){a=b._lastAlignTarget}else {a=b.up('{isFloating()}');a=a&&a._lastAlignTarget}}return b},clearAlignEl:function(){var a=this;if(a._lastAlignTarget){a.alignListeners=Ext.destroy(a.alignListeners);Ext.un('scroll',a.doRealign,a);a._lastAlignToPos=a._lastAlignTarget=a._lastAlignToOffsets=a._topAlignTarget=null}},alignOnResize:function(){this.doRealign()},doRealign:function(b){var a=this,c=a._lastAlignTarget.el,d,f,e,g;if(c&&a.isVisible()){if(c.isComponent){d=c.destroyed}else {f=c.dom;d=!f||Ext.isGarbage(f)}if(d){a.clearAlignEl()}else if(!b||(b.getElement().contains(a._topAlignTarget.el)&&!b.getElement().contains(a.el))){e=c.getXY();g=[e[0]+a.alignVector[0],e[1]+a.alignVector[1]];a.setXY(g);if(b){a.clipToScroller(b)}}}},clipToScroller:function(e){var d=this,c=d._topAlignTarget.getBox(),b=e.getElement().getConstrainRegion(),a=0;if(c.top<b.top){a=1}if(c.right>b.right){a=a|2}if(c.bottom>b.bottom){a=a|4}if(c.left<b.left){a=a|8}if(a){d.clipTo(b,a)}else {d.clearClip()}}}},1,0,0,0,0,0,[Ext.util,'Floating'],0));(Ext.cmd.derive('Ext.util.ElementContainer',Ext.Base,{mixinId:'elementCt',config:{childEls:{$value:{},cached:!0,lazy:!0,merge:function(d,f,g,e){var c=f?Ext.Object.chain(f):{},b,a;if(d instanceof Array){for(b=d.length;b--;){a=d[b];if(!e||!(a in c)){if(typeof a==='string'){c[a]={name:a,itemId:a}}else {c[a.name]=a}}}}else if(d){if(d.constructor===Object){for(b in d){if(!e||!(b in c)){a=d[b];if(a===!0){c[b]={itemId:b}}else if(typeof a==='string'){c[b]={itemId:a}}else {c[b]=a;if(!('itemId' in a)){a.itemId=b}}c[b].name=b}}}else {if(!e||!(d in c)){c[d]={name:d,itemId:d}}}}return c}}},destroy:function(){var c=this,d=c.getChildEls(),a,b;for(b in d){a=c[b];if(a){if(a.destroy){a.component=null;a.destroy()}c[b]=null}}},privates:{addChildEl:function(a){var c=this,b=c.getChildEls();if(!c.hasOwnProperty('childEls')){c.childEls=b=Ext.Object.chain(b)}if(typeof a==='string'){a={name:a,itemId:a}}b[a.name]=a},afterClassMixedIn:function(a){var c=a.prototype,b=c.childEls;if(b){delete c.childEls;a.getConfigurator().add({childEls:b})}},attachChildEls:function(h,n){var i=this,k=i.getChildEls(),e=n||i,m=e.id+'-',l=!e.frame,f,g,b,j,c,a,d;for(f in k){b=k[f];if(l&&b.frame){continue}c=b.select;if(c){a=h.select(c,!0)}else if(!(c=b.selectNode)){if(!(d=b.id)){d=m+b.itemId;a=Ext.cache[d]}else {a=Ext.cache[d]||h.getById(d)}}else {a=h.selectNode(c,!1)}if(a){if(a.isElement){a.component=e}else if(a.isComposite&&!a.isLite){g=a.elements;for(j=g.length;j--;){g[j].component=e}}}i[f]=a||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:['<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'before\'); %}</tpl>','<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>','<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'after\'); %}</tpl>'],frameTableTpl:['<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'before\'); %}</tpl>','<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>','<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'after\'); %}</tpl>'],_renderState:0,_layerCls:'x-layer',_fixedLayerCls:'x-fixed-layer',ariaStaticRoles:{presentation:!0,article:!0,definition:!0,directory:!0,document:!0,img:!0,heading:!0,math:!0,note:!0,banner:!0,complementary:!0,contentinfo:!0,navigation:!0,search:!0,'undefined':!0,'null':!0},statics:{makeRenderSetter:function(c,b){var a=c.name;return function(g){var d=this,f=(d.renderConfigs||(d.renderConfigs={})),e=f[b];if(d._renderState>=b){(c.setter||c.getSetter()).call(d,g)}else {if(!e){f[b]=e={}}if(!(a in e)){e[a]=d[a]}d[a]=g}return d}},processRenderConfig:function(g,e,c){var h=this.prototype,j=this.getConfigurator(),k=Ext.util.Renderable,l=k.makeRenderSetter,d=g[e],b,a,i,f;for(i in d){a=Ext.Config.get(i);if(!h[f=a.names.set]){b=(a.renderSetter||(a.renderSetter={}));h[f]=b[c]||(b[c]=l(a,c))}}delete g[e];j.add(d)}},onClassMixedIn:function(a){var e=a.override,c=this.processRenderConfig,d=function(b){if(b.beforeRenderConfig){this.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){this.processRenderConfig(b,'renderConfig',3)}e.call(this,b)},b=function(e,b){e.override=d;e.processRenderConfig=c;if(b.beforeRenderConfig){e.processRenderConfig(b,'beforeRenderConfig',1)}if(b.renderConfig){e.processRenderConfig(b,'renderConfig',3)}};b(a,a.prototype);a.onExtended(b)},afterRender:function(){var a=this,c={},i=a.protoEl,g=a.el,d,b,h,f,e;a.finishRenderChildren();a._renderState=4;if(a.contentEl){h='x-';f=h+'hidden-';e=a.contentEl=Ext.get(a.contentEl);e.component=a;e.removeCls([h+'hidden',f+'display',f+'offsets']);a.getContentTarget().appendChild(e.dom)}i.writeTo(c);b=c.removed;if(b){g.removeCls(b)}b=c.cls;if(b.length){g.addCls(b)}b=c.style;if(c.style){g.setStyle(b)}a.protoEl=null;if(!a.ownerCt&&!a.skipLayout){a.updateLayout()}if(!(a.x&&a.y)&&(a.pageX||a.pageY)){a.setPagePosition(a.pageX,a.pageY)}if(a.disableOnRender){a.onDisable()}d=a.controller;if(d&&d.afterRender){d.afterRender(a)}if(a.focusableContainer&&a.initFocusableContainer){a.initFocusableContainer()}},afterFirstLayout:function(l,k){var a=this,g=a.x,h=a.y,j=a.defaultAlign,i=a.alignOffset,f,d,e,b,c;if(!a.ownerLayout){d=g!==undefined;e=h!==undefined}if(a.floating&&!a.preventDefaultAlign&&(!d||!e)){if(a.floatParent){b=a.floatParent.getTargetEl().getViewRegion();c=a.el.getAlignToXY(a.alignTarget||a.floatParent.getTargetEl(),j,i);b.x=c[0]-b.x;b.y=c[1]-b.y}else {c=a.el.getAlignToXY(a.alignTarget||a.container,j,i);b=a.el.translateXY(c[0],c[1])}g=d?g:b.x;h=e?h:b.y;d=e=!0}if(d||e){a.setPosition(g,h)}a.onBoxReady(l,k);f=a.controller;if(f&&f.boxReady){f.boxReady(a,l,k)}},beforeRender:function(){var a=this,d=a.floating,e=a.getComponentLayout(),b=a.userCls,c;a._renderState=1;a.ariaUsesMainElement=a.ariaEl==='el';c=a.controller;if(c&&c.beforeRender){c.beforeRender(a)}a.initBindable();if(a.renderConfigs){a.flushRenderConfigs()}if(b){a.addCls(b)}if(d){a.addCls(a.fixed?a._fixedLayerCls:a._layerCls);b=d.cls;if(b){a.addCls(b)}}a.frame=a.frame||a.alwaysFramed;if(!e.initialized){e.initLayout()}a.initOverflow();a.setUI(a.ui)},doApplyRenderTpl:function(d,a){var c=a.$comp,b;if(!c.rendered){b=c.initRenderTpl();b.applyOut(a.renderData,d)}},getElConfig:function(){var a=this,e=a.autoEl,c=a.getFrameInfo(),b={tag:'div',tpl:c?a.initFramingTpl(c.table):a.initRenderTpl()},g=a.layoutTargetCls,d=a.protoEl,f=a.ariaRole,h;a.initStyles(d);if(g&&!c){d.addCls(g)}d.writeTo(b);d.flush();if(e){if(Ext.isString(e)){b.tag=e}else {Ext.apply(b,e)}}if(f&&a.ariaUsesMainElement){b.role=f;if(!a.ariaStaticRoles[f]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}}b.id=a.id;if(b.tpl){if(c){b.tplData=h=a.getFrameRenderData();h.renderData=a.initRenderData()}else {b.tplData=a.initRenderData()}}a.ariaRenderAttributes=null;return b},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 a=this,b=null;if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a._renderState=1;a.beforeRender();a.rendering=!0;a._renderState=2;b=a.getElConfig();if(a.el){b.id=a.$pid=Ext.id(null,a.el.identifiablePrefix)}}return b},initRenderData:function(){var a=this,c=a.ariaRole,d,b;d=Ext.apply({$comp:a,id:a.id,ui:a.ui,uiCls:a.uiCls,baseCls:a.baseCls,componentCls:a.componentCls,frame:a.frame,hasTabGuard:!!a.tabGuard,scrollerCls:a.scrollerCls,childElCls:'',ariaEl:a.ariaEl},a.renderData);if(c&&!a.ariaUsesMainElement){b={role:c};if(!a.ariaStaticRoles[c]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.ariaLabel&&!a.ariaLabelledBy){b['aria-label']=a.ariaLabel}if(a.collapsible){b['aria-expanded']=!a.collapsed}if(a.ariaRenderAttributes){Ext.apply(b,a.ariaRenderAttributes)}if(a.config.ariaAttributes){Ext.apply(b,a.getAriaAttributes())}}d.ariaAttributes=b}return d},onRender:function(j,i){var a=this,f=a.x,g=a.y,b=null,h=a.el,c=a.scrollable,e,d;a.applyRenderSelectors();if(c&&c.isScroller){c.setElement(a.getOverflowEl());if(Ext.isIE){a.showListenerIE=Ext.on('show',a.onGlobalShow,a,{destroyable:!0})}}a.rendering=null;a.rendered=!0;a._renderState=3;if(a.renderConfigs){a.flushRenderConfigs()}if(f!=null){b={x:f}}if(g!=null){(b=b||{}).y=g}if(!a.getFrameInfo()){e=a.width;d=a.height;if(typeof e==='number'){b=b||{};b.width=e}if(typeof d==='number'){b=b||{};b.height=d}}a.lastBox=h.lastBox=b},render:function(c,g){var a=this,b=a.el,f=a.ownerLayout,h,d,e;if(b&&!b.isElement){a.wrapPrimaryEl(b);b=a.el}if(!a.skipLayout){Ext.suspendLayouts()}c=a.initContainer(c);e=a.getInsertPosition(g);if(!b){d=a.getRenderTree();if(f&&f.transformItemRenderTree){d=f.transformItemRenderTree(d)}if(d){if(e){b=Ext.DomHelper.insertBefore(e,d)}else {b=Ext.DomHelper.append(c,d)}a.wrapPrimaryEl(b);a.cacheRefEls(b)}}else {if(!a.hasListeners.beforerender||a.fireEvent('beforerender',a)!==!1){a.beforeRender();a.needsRenderTpl=a.rendering=!0;a._renderState=2;a.initStyles(b);if(a.allowDomMove!==!1){if(e){c.dom.insertBefore(b.dom,e)}else {c.dom.appendChild(b.dom)}}}else {h=!0}}if(b&&!h){a.finishRender(g)}if(!a.skipLayout){Ext.resumeLayouts(!a.hidden&&!c.isDetachedBody)}},ensureAttachedToBody:function(c){var a=this,b;while(a.ownerCt){a=a.ownerCt}if(a.container.isDetachedBody){a.container=b=Ext.getBody();b.appendChild(a.el.dom);if(c){a.updateLayout()}if(typeof a.x==='number'||typeof a.y==='number'){a.setPosition(a.x,a.y)}}},privates:{applyRenderSelectors:function(){var a=this,b=a.renderSelectors,e=a.el,d,c;a.attachChildEls(e);if(typeof a.focusEl==='string'){a.focusEl=a[a.focusEl]}a.ariaEl=a[a.ariaEl]||a.el;if(b){for(c in b){d=b[c];if(d){a[c]=e.selectNode(d,!1)}}}},cacheRefEls:function(a){a=a||this.el;var e=Ext.cache,h=Ext.dom.Element,f=a.isElement?a.dom:a,d=f.querySelectorAll('[data-ref]'),g=d.length,c,b;for(b=0;b<g;b++){c=d[b];if(!e[c.id]){new h(c)}}},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(c,d){var a=d.$comp,b=a.data;if(a.html){Ext.DomHelper.generateMarkup(a.html,c);delete a.html}if(a.tpl){if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}if(b){a.data=b=b.isEntity?b.getData(!0):b;a.tpl.applyOut(b,c)}}},doRenderFramingTabGuard:function(d,a,c){var b=a.$comp.layout;a.renderData.$skipTabGuards=!0;if(b&&b.doRenderTabGuard){b.doRenderTabGuard.call(this,d,a,c)}},flushRenderConfigs:function(){var b=this,f=b.renderConfigs,h=b._renderState,e,c,a,d,g;if(f){for(c=0;c<=h;++c){e=f[c];if(e){f[c]=null;for(a in e){g=e[a];(d||(d={}))[a]=b[a];b[a]=g}}}if(d){b.setConfig(d)}}},finishRender:function(j){var a=this,g=Ext.cache,d,h,f,e,i,b,c;if(!a.el||a.$pid){if(a.container){c=g[a.id];b=c?c.dom:a.container.getById(a.id,!0)}else {f=a.$pid||a.id;c=g[f];b=c?c.dom:Ext.getDom(f)}if(!a.el){a.wrapPrimaryEl(b)}else {delete a.$pid;if(!a.el.dom){a.wrapPrimaryEl(a.el)}b.parentNode.insertBefore(a.el.dom,b);d=b;b=a.el.dom;h=b.firstChild;while(d.firstChild){b.insertBefore(d.firstChild,h)}a.el.addCls(d.className);Ext.removeNode(d)}}else if(a.needsRenderTpl){e=a.initRenderTpl();if(e){i=a.initRenderData();e.insertFirst(a.getTargetEl(),i)}a.cacheRefEls()}a.el.component=a;if(!a.container){a.container=Ext.get(a.el.dom.parentNode)}if(a.ctCls){a.container.addCls(a.ctCls)}a.onRender(a.container,j);if(!a.overflowInited){a.initOverflow()}a.el.setVisibilityMode(Ext.Element[a.hideMode.toUpperCase()]);if(a.overCls){a.el.hover(a.addOverCls,a.removeOverCls,a)}if(a.hasListeners.render){a.fireEvent('render',a)}a.afterRender();if(a.hasListeners.afterrender){a.fireEvent('afterrender',a)}a.initEvents();if(a.hidden){a.el.hide()}},finishRenderChildren:function(){var a=this.getComponentLayout();a.finishRender()},getFrameRenderData:function(){var a=this,b=a.frameSize,c='';if(a._syncFrameHeight&&a.height){c='height:'+(a.height-b.height)+'px'}return {$comp:a,id:a.id,fgid:a.id+'-frame',ui:a.ui,uiCls:a.uiCls,frameCls:a.frameCls,frameBodyCls:a.layoutTargetCls||'',baseCls:a.baseCls,hasTabGuard:a.tabGuard,top:!!b.top,left:!!b.left,right:!!b.right,bottom:!!b.bottom,mcStyle:c,frameElCls:''}},getFrameInfo:function(){if(Ext.supports.CSS3BorderRadius||!this.frame){return !1}var c=this,q=c.frameInfoCache,p=c.getFramingInfoCls()+'-frameInfo',b=q[p],r,a,o,l,j,n,g,e,d,f,m,i,h,k;if(b==null){r=Ext.fly(c.getStyleProxy(p),'frame-style-el');a=r.getStyle('font-family');a=a&&a.split('-');if(a&&a.length>=5){o=parseInt(a[1],10);l=parseInt(a[2],10);j=parseInt(a[3],10);n=parseInt(a[4],10);g=parseInt(a[5],10)||0;e=parseInt(a[6],10)||0;d=parseInt(a[7],10)||0;f=parseInt(a[8],10)||0;m=parseInt(a[9],10)||0;i=parseInt(a[10],10)||0;h=parseInt(a[11],10)||0;k=parseInt(a[12],10)||0;b={table:a[0].charAt(0)==='t',vertical:a[0].charAt(1)==='v',top:o,right:l,bottom:j,left:n,width:n+l,height:o+j,border:{top:g,right:e,bottom:d,left:f,width:f+e,height:g+d},padding:{top:m,right:i,bottom:h,left:k,width:k+i,height:m+h}}}else {b=!1}q[p]=b}c.frame=!!b;c.frameSize=b;return b},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,!0));a.className=b;return a},getFrameTpl:function(a){return this.lookupTpl(a?'frameTableTpl':'frameTpl')},initContainer:function(a){var b=this;if(!a&&b.el){a=b.el.dom.parentNode;b.allowDomMove=!1}b.container=a.dom?a:Ext.get(a);return b.container},initOverflow:function(){var a=this,d=a.getOverflowStyle(),c=a.scrollFlags,b=a.getOverflowEl(),e=(c.y||c.x);if(!e||!b||!b.isElement){return}a.overflowInited=!0;b.setStyle(d)},initFramingTpl:function(b){var a=this.getFrameTpl(b);if(a&&!a.applyRenderTpl){this.setupFramingTpl(a)}return a},initRenderTpl:function(){var a=this.lookupTpl('renderTpl');if(a&&!a.renderContent){this.setupRenderTpl(a)}return a},setupFramingTpl:function(a){a.applyRenderTpl=this.doApplyRenderTpl;a.renderTabGuard=this.doRenderFramingTabGuard},setupRenderTpl:function(a){a.renderBody=a.renderContent=this.doRenderContent},updateFrame:function(){if(Ext.supports.CSS3BorderRadius||!this.frame){return}var a=this,p=a.el.dom,m=a.frameTable,h=a.frameBody,g=h.dom,q=a.getFrameInfo(),k,b,c,f,d,j,n,o,l,e,i;c=document.createElement('div');j=a.getFrameRenderData();j.hasTabGuard=!1;o=a.getFrameTpl(q.table);o.insertFirst(c,j);i=c.querySelectorAll('[data-ref]');e=c.querySelector('[data-ref="frameBody"]');for(d=g;d.parentNode!==p;){d=d.parentNode}while(c.firstChild){p.insertBefore(c.firstChild,d)}e.parentNode.replaceChild(g,e);g.className=e.className;h.setSize();k=a.getChildEls();if(m){m.destroy();a.frameTable=null}for(b in k){if(k[b].frame){f=a[b];if(f&&f!==h){f.destroy();a[b]=null}}}for(l=i.length;l--;){b=(n=i[l]).getAttribute('data-ref');if(b!=='frameBody'){a[b]=new Ext.dom.Element(n)}}},frameInfoCache:{}}},0,0,0,0,0,0,[Ext.util,'Renderable'],0));(Ext.cmd.derive('Ext.state.Provider',Ext.Base,{prefix:'ext-',constructor:function(b){var a=this;Ext.apply(a,b);a.state={};a.mixins.observable.constructor.call(a)},get:function(c,b){var a=this.state[c];return a===undefined?b:a},clear:function(b){var a=this;delete a.state[b];a.fireEvent("statechange",a,b,null)},set:function(c,b){var a=this;a.state[c]=b;a.fireEvent("statechange",a,c,b)},decodeValue:function(a){var i=this,j=/^(a|n|d|b|s|o|e)\:(.*)$/,e=j.exec(unescape(a)),d,h,g,c,f,b;if(!e||!e[1]){return}h=e[1];a=e[2];switch(h){case 'e':return null;case 'n':return parseFloat(a);case 'd':return new Date(Date.parse(a));case 'b':return (a==='1');case 'a':d=[];if(a){c=a.split('^');f=c.length;for(b=0;b<f;b++){a=c[b];d.push(i.decodeValue(a))}};return d;case 'o':d={};if(a){c=a.split('^');f=c.length;for(b=0;b<f;b++){a=c[b];g=a.split('=');d[g[0]]=i.decodeValue(g[1])}};return d;default:return a;}},encodeValue:function(a){var c='',e=0,b,f,d;if(a==null){return 'e:1'}else if(typeof a==='number'){b='n:'+a}else if(typeof a==='boolean'){b='b:'+(a?'1':'0')}else if(Ext.isDate(a)){b='d:'+a.toUTCString()}else if(Ext.isArray(a)){for(f=a.length;e<f;e++){c+=this.encodeValue(a[e]);if(e!==f-1){c+='^'}}b='a:'+c}else if(typeof a==='object'){for(d in a){if(typeof a[d]!=='function'&&a[d]!==undefined){c+=d+'='+this.encodeValue(a[d])+'^'}}b='o:'+c.substring(0,c.length-1)}else {b='s:'+a}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:!0,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(b,a){this.provider.set(b,a)},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',config:{stateful:null},saveDelay:100,constructor:function(){var a=this;if(!a.stateEvents){a.stateEvents=[]}if(a.stateful){a.addStateEvents(a.stateEvents);a.initState()}},addStateEvents:function(f){var a=this,e,b,c,d;if(a.stateful&&a.getStateId()){d=(typeof f==='string')?arguments:f;c=a.stateEventsByName||(a.stateEventsByName={});for(e=d.length;e--;){b=d[e];if(b&&!c[b]){c[b]=1;a.on(b,a.onStateChange,a)}}}},onStateChange:function(){var a=this,d=a.saveDelay,b,c;if(!a.stateful){return}if(d){if(!a.stateTask){b=Ext.state.Stateful;c=b.runner||(b.runner=new Ext.util.TaskRunner());a.stateTask=c.newTask({run:a.saveState,scope:a,interval:d,repeat:1,fireIdleEvent:!1})}a.stateTask.start()}else {a.saveState()}},saveState:function(){var a=this,e=a.getStateful(),l=e&&a.getStateId(),j=a.hasListeners,i,f,h,d,b,k,c,g;if(l){c=a.getState()||{};if(Ext.isObject(e)){f=a.self.getConfigurator();f=f.configs;for(b in e){if(e[b]){if(!(b in c)){i=f[b];c[b]=i?a[i.get]():a[b]}}else {delete c[b]}}}h=a.getPlugins()||[];for(b=0,k=h.length;b<k;b++){d=h[b];if(d&&d.getState){g=d.getState(c);if(g&&!c[d.ptype]){c[d.ptype]=g}}}if(!j.beforestatesave||a.fireEvent('beforestatesave',a,c)!==!1){Ext.state.Manager.set(l,c);if(j.statesave){a.fireEvent('statesave',a,c)}}}},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 a=this,j=a.stateful&&a.getStateId(),h=a.hasListeners,d,b,e,i,g,c,f;if(j){b=Ext.state.Manager.get(j);if(b){d=Ext.apply({},b);if(!h.beforestaterestore||a.fireEvent('beforestaterestore',a,b)!==!1){g=a.getPlugins()||[];for(e=0,i=g.length;e<i;e++){c=g[e];if(c){f=c.ptype;if(c.applyState){c.applyState(d[f],b)}delete d[f]}}a.applyState(d);if(h.staterestore){a.fireEvent('staterestore',a,b)}}}}},savePropToState:function(a,d,f){var b=this,e=b[a],c=b.initialConfig;if(b.hasOwnProperty(a)){if(!c||c[a]!==e){if(d){d[f||a]=e}return !0}}return !1},savePropsToState:function(a,c){var d=this,b,e;if(typeof a==='string'){d.savePropToState(a,c)}else {for(b=0,e=a.length;b<e;++b){d.savePropToState(a[b],c)}}return c},destroy:function(){var a=this.stateTask;if(a){a.destroy();this.stateTask=null}}},1,0,0,0,0,0,[Ext.state,'Stateful'],0));(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,ariaHighContrastModeCls:'x-aria-highcontrast',cancelLayout:function(c,b){var a=this.runningLayoutContext||this.pendingLayouts;if(a){a.cancelComponent(c,!1,b)}},from:function(c,b,a){return Ext.ComponentManager.from(c,b,a)},fromElement:function(c,b,a){return Ext.ComponentManager.from(c,b,a)},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 c=Ext.scroll.Scroller,a=Ext.GlobalEvents,d;if(c.viewport){c.viewport.restoreState()}d=this.callParent();if(a.hasListeners.afterlayout){a.fireEvent('afterlayout')}return d}});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 a=this,d=a.runningLayoutContext,c;if(d){d.queueInvalidate(b)}else {c=a.pendingLayouts||(a.pendingLayouts=new Ext.layout.Context());c.queueInvalidate(b);if(!e&&!a.layoutSuspendCount&&!b.isLayoutSuspended()){a.flushLayouts()}}}},$configPrefixed:!1,$configStrict:!1,clearPropertiesOnDestroy:'async',manageLayoutScroll:!0,config:{data:null,maxHeight:null,maxWidth:null,minHeight:null,minWidth:null,scrollable:null},renderConfig:{touchAction:null},defaultBindProperty:'html',alignTarget:null,autoRender:!1,autoShow:!1,baseCls:'x-component',childEls:{frameTable:{frame:!0},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:!1,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:!1,floating:!1,hidden:!1,hideMode:'display',maskElement:null,renderTpl:'{%this.renderContent(out,values)%}',resizeHandles:'all',shrinkWrap:2,toFrontOnShow:!0,synthetic:!1,tplWriteMode:'overwrite',ui:'default',uiCls:[],userCls:null,weight:null,allowDomMove:!0,autoGenId:!1,borderBoxCls:'x-border-box',componentLayoutCounter:0,contentPaddingProperty:'padding',deferLayouts:!1,frameSize:null,horizontalPosProp:'left',isComponent:!0,_isLayoutRoot:!1,layoutSuspendCount:0,liquidLayout:!1,maskOnDisable:!0,rendered:!1,rootCls:'x-body',scrollerCls:'x-scroll-scroller',_scrollFlags:{auto:{auto:{overflowX:'auto',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'auto',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'auto',overflowY:'scroll',x:!0,y:!0,both:!0}},'false':{auto:{overflowX:'hidden',overflowY:'auto',x:!1,y:!0,both:!1},'false':{overflowX:'hidden',overflowY:'hidden',x:!1,y:!1,both:!1},scroll:{overflowX:'hidden',overflowY:'scroll',x:!1,y:!0,both:!1}},scroll:{auto:{overflowX:'scroll',overflowY:'auto',x:!0,y:!0,both:!0},'false':{overflowX:'scroll',overflowY:'hidden',x:!0,y:!1,both:!1},scroll:{overflowX:'scroll',overflowY:'scroll',x:!0,y:!0,both:!0}},none:{overflowX:'',overflowY:'',x:!1,y:!1,both:!1}},_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0}},validIdRe:Ext.validIdRe,constructor:function(b){var a=this,e,j,i,h,g,c,d,f;b=b||{};if(b.initialConfig){if(b.isAction){a.baseAction=b}b=b.initialConfig}else if(b.tagName||b.dom||Ext.isString(b)){b={applyTo:b,id:b.id||b}}a.initialConfig=b;a.$iid=++Ext.$nextIid;if((b&&b.controller)||a.config.controller){a.referenceHolder=!0}a.getId();a.protoEl=new Ext.util.ProtoElement();a.initConfig(b);if(a.scrollable==null){g=a.autoScroll;if(g){f=!!g}else {c=a.overflowX;d=a.overflowY;if(c||d){f={x:(c&&c!=='hidden')?c:!1,y:(d&&d!=='hidden')?d:!1}}}if(f){a.setScrollable(f)}}i=a.xhooks;if(i){delete a.xhooks;Ext.override(a,i)}a.mixins.elementCt.constructor.call(a);a.setupProtoEl();if(a.cls){a.initialCls=a.cls;a.protoEl.addCls(a.cls)}if(a.style){a.initialStyle=a.style;a.protoEl.setStyle(a.style)}a.renderData=a.renderData||{};a.initComponent();if(!a.preventRegister){Ext.ComponentManager.register(a)}a.mixins.state.constructor.call(a);a.addStateEvents('resize');h=a.getController();if(h){h.init(a)}if(a.plugins){for(e=0,j=a.plugins.length;e<j;e++){a.plugins[e]=a.initPlugin(a.plugins[e])}}a.loader=a.getLoader();if(a.disabled){a.disabled=!1;a.disable(!0)}if(a.renderTo){a.render(a.renderTo)}if(a.autoShow&&!a.$initParent){a.show()}if(a.baseAction){a.baseAction.addComponent(a)}},beforeInitConfig:function(){this.mixins.observable.constructor.call(this)},addCls:function(c){var a=this,b=a.rendered?a.el:a.protoEl;b.addCls.apply(b,arguments);return a},addClsWithUI:function(a,i){var b=this,d=[],e=0,h=b.uiCls=Ext.Array.clone(b.uiCls),f=b.activeUI,g,c;if(typeof a==="string"){a=(a.indexOf(' ')<0)?[a]:Ext.String.splitWords(a)}g=a.length;for(;e<g;e++){c=a[e];if(c&&!b.hasUICls(c)){h.push(c);if(f){d=d.concat(b.addUIClsToElement(c))}}}if(i!==!0&&f){b.addCls(d)}return d},afterComponentLayout:function(c,b,e,d){var a=this,f=a.scrollable;if(++a.componentLayoutCounter===1){a.afterFirstLayout(c,b)}else if(a.manageLayoutScroll&&f){f.restoreState()}if(c!==e||b!==d){a.onResize(c,b,e,d)}if(a.floating){a.onAfterFloatLayout()}},addPlugin:function(a){var b=this;a=b.constructPlugin(a);if(b.plugins){b.plugins.push(a)}else {b.plugins=[a]}if(b.pluginsInitialized){b.initPlugin(a)}return a},addPropertyToState:function(b,a,c){var d=this,e=arguments.length;if(e===3||d.hasOwnProperty(a)){if(e<3){c=d[a]}if(c!==d.initialConfig[a]){(b||(b={}))[a]=c}}return b},addUIClsToElement:function(f){var a=this,d=a.baseCls+'-'+a.ui+'-'+f,h=['x-'+f,a.baseCls+'-'+f,d],e,c,g,b;if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){g=a[c];if(g){g.addCls(d+b)}}}}return h},removeUIClsFromElement:function(f){var a=this,d=a.baseCls+'-'+a.ui+'-'+f,h=['x-'+f,a.baseCls+'-'+f,d],e,c,g,b;if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){g=a[c];if(g){g.removeCls(d+b)}}}}return h},adjustPosition:function(c,d){var b=this,a;if(b.isContainedFloater()){a=b.floatParent.getTargetEl().getViewRegion();c+=a.left;d+=a.top}return {x:c,y:d}},afterHide:function(c,d){var a=this,b=a.ownerFocusableContainer;delete a.getInherited().topmostFocusEvent;a.hiddenByLayout=null;if(a.ownerLayout){a.updateLayout({isRoot:!1})}if(b&&!b.onFocusableChildHide.$nullFn){b.onFocusableChildHide(a)}a.fireHierarchyEvent('hide');a.fireEvent('hide',a);Ext.callback(c,d||a)},afterSetPosition:function(b,c){var a=this;a.onPosition(b,c);if(a.hasListeners.move){a.fireEvent('move',a,b,c)}},afterShow:function(b,g,i){var a=this,d=a.el,e=a.zIndexManager,h,f,c;b=a.getAnimateTarget(b);if(e){e.suspendReflow()}if(!a.ghost){b=null}if(b){f={x:d.getX(),y:d.getY(),width:d.dom.offsetWidth,height:d.dom.offsetHeight};h={x:b.getX(),y:b.getY(),width:b.dom.offsetWidth,height:b.dom.offsetHeight};a.fireHierarchyEvent('show');c=a.ghost();c.el.stopAnimation();c.setX(-10000);a.ghostBox=f;c.el.animate({from:h,to:f,listeners:{afteranimate:function(){if(!a.destroying){c.componentLayout.lastComponentSize=null;a.unghost();a.ghostBox=null;a.onShowComplete(g,i)}}}})}else {a.onShowComplete(g,i);a.fireHierarchyEvent('show')}if(e){e.resumeReflow(!0)}},animate:function(b){var a=this,e,d,j,k,c,r,q,i,p,h,o,f,n,l,m,g;b=b||{};c=b.to||{};if(Ext.fx.Manager.hasFxBlock(a.id)){return a}e=Ext.isDefined(c.width);if(e){k=Ext.Number.constrain(c.width,a.minWidth,a.maxWidth)}d=Ext.isDefined(c.height);if(d){j=Ext.Number.constrain(c.height,a.minHeight,a.maxHeight)}if(!b.dynamic&&(e||d)){i=(b.from?b.from.width:undefined)||a.getWidth();p=i;h=(b.from?b.from.height:undefined)||a.getHeight();o=h;f=!1;if(d&&j>h){o=j;f=!0}if(e&&k>i){p=k;f=!0}if(d||e){g=a.el.getStyle('overflow');if(g!=='hidden'){a.el.setStyle('overflow','hidden')}}if(f){r=!Ext.isNumber(a.width);q=!Ext.isNumber(a.height);a.setSize(p,o);a.el.setSize(i,h);if(r){delete a.width}if(q){delete a.height}}if(e){c.width=k}if(d){c.height=j}}n=a.constrain;l=a.constrainHeader;if(n||l){a.constrain=a.constrainHeader=!1;m=b.callback;b.callback=function(){a.constrain=n;a.constrainHeader=l;if(m){m.call(b.scope||a,arguments)}if(g!=='hidden'){a.el.setStyle('overflow',g)}}}return a.mixins.animate.animate.apply(a,arguments)},applyScrollable:function(a,c){var b=this,e=b.rendered,d;if(a){if(a===!0||typeof a==='string'){d=b._scrollableCfg[a];a=d}if(c){c.setConfig(a);a=c}else {a=Ext.Object.chain(a);if(e){a.element=b.getOverflowEl()}a=Ext.scroll.Scroller.create(a,b.scrollableType);a.component=b}}else if(c){a=c;c.setConfig({x:!1,y:!1})}if(b.rendered&&!b.destroying&&!b.destroyed){if(a){b.getOverflowStyle()}else {b.scrollFlags=b._scrollFlags.none}b.updateLayout()}return a},getScrollableClientRegion:function(){return this.getScrollable().getElement().getClientRegion()},applyTouchAction:function(a,b){if(b!=null){a=Ext.merge({},b,a)}return a},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(a,b,f){var d=this,c=null,e,g,h,i;if(a){if(Ext.isNumber(e=a[0])){f=b;b=a[1];a=e}else if((e=a.x)!==undefined){f=b;b=a.y;a=e}}if(d.constrain||d.constrainHeader){c=d.calculateConstrainedPosition(null,[a,b],!0);if(c){a=c[0];b=c[1]}}g=(a!==undefined);h=(b!==undefined);if(g||h){d.x=a;d.y=b;i=d.adjustPosition(a,b);c={x:i.x,y:i.y,anim:f,hasX:g,hasY:h}}return c},beforeShow:Ext.emptyFn,bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.getBubbleTarget()}return this},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},cloneConfig:function(a){a=a||{};var d=a.id||Ext.id(),c=Ext.applyIf(a,this.initialConfig),b;c.id=d;b=Ext.getClass(this);return new b(c)},destroy:function(){var a=this;if(!a.hasListeners.beforedestroy||a.fireEvent('beforedestroy',a)!==!1){a.isDestroying=a.destroying=!0;a.doDestroy();a.clearListeners();a.isDestroying=a.destroying=!1;a.callParent();a.mixins.componentDelegation.destroyComponentDelegation.call(a);a.mixins.observable.destroyObservable.call(a,!0)}},doDestroy:function(){var a=this,d=a.ownerFocusableContainer,e=a.container,f=a.renderSelectors,b,c,g;c=a.floatParent||a.ownerCt;if(a.floating){delete a.floatParent;if(a.zIndexManager&&!a.zIndexManager.destroyed){a.zIndexManager.unregister(a)}a.floating=!0}a.removeBindings();if(!a.beforeDestroy.$emptyFn){a.beforeDestroy()}a.destroyBindable();if(c&&c.remove){c.remove(a,{destroy:!1})}a.stopAnimation();if(a.rendered){Ext.destroy(a.loadMask,a.dd,a.resizer,a.proxy,a.proxyWrap,a.resizerComponent,a.scrollable,a.contentEl)}if(d&&!d.onFocusableChildDestroy.$nullFn){d.onFocusableChildDestroy(a)}if(a.focusable){a.destroyFocusable()}Ext.destroy(a.componentLayout,a.loadMask,a.floatingDescendants);if(!a.onDestroy.$emptyFn){a.onDestroy()}Ext.destroy(a.plugins);if(a.rendered){Ext.Component.cancelLayout(a,!0)}a.componentLayout=null;if(a.hasListeners.destroy){a.fireEvent('destroy',a)}if(!a.preventRegister){Ext.ComponentManager.unregister(a)}a.mixins.state.destroy.call(a);if(a.floating){a.onFloatDestroy()}if(a.rendered){if(a.showListenerIE){a.showListenerIE.destroy();a.showListenerIE=null}if(!a.preserveElOnDestroy){a.el.destroy()}if(a.collectContainerElement&&e){if(!e.destroyed){e.collect()}a.container=null}a.el.component=null;a.mixins.elementCt.destroy.call(a);if(f){for(b in f){if(f.hasOwnProperty(b)){g=a[b];if(g){delete a[b];g.destroy()}}}}a.rendered=!1}},disable:function(e,d){var a=this,b=a.ownerFocusableContainer,c=a.getInherited();if(!d){c.disabled=!0;a.savedDisabled=!0}if(a.maskOnDisable){c.disableMask=!0}if(!a.disabled){if(b&&!b.beforeFocusableChildDisable.$nullFn){b.beforeFocusableChildDisable(a)}a.addCls(a.disabledCls);if(a.rendered){a.onDisable()}else {a.disableOnRender=!0}a.disabled=!0;if(e!==!0){a.fireEvent('disable',a)}if(b&&!b.onFocusableChildDisable.$nullFn){b.onFocusableChildDisable(a)}}return a},doFireEvent:function(c,d,e){var a=this,b;b=a.mixins.observable.doFireEvent.call(a,c,d,e);if(b!==!1&&!a.destroyed){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,d)}return b},enable:function(e,c){var a=this,b=a.ownerFocusableContainer,d=a.getInherited();if(!c){delete a.getInherited().disabled;a.savedDisabled=!1}if(a.maskOnDisable){delete d.disableMask}if(a.disabled){if(!(c&&d.hasOwnProperty('disabled'))){if(b&&!b.beforeFocusableChildEnable.$nullFn){b.beforeFocusableChildEnable(a)}a.disableOnRender=!1;a.removeCls(a.disabledCls);if(a.rendered){a.onEnable()}a.disabled=!1;if(e!==!0){a.fireEvent('enable',a)}if(b&&!b.onFocusableChildEnable.$nullFn){b.onFocusableChildEnable(a)}}}return a},findParentBy:function(b){var a;for(a=this.getRefOwner();a&&!b(a,this);a=a.getRefOwner()){}return a||null},findParentByType:function(a){return Ext.isFunction(a)?this.findParentBy(function(b){return b.self===a||b.constructor===a}):this.up(a)},findPlugin:function(c){var a,b=this.plugins,d=b&&b.length;for(a=0;a<d;a++){if(b[a].ptype===c){return b[a]}}},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(b){var a=this,c=a.componentLayout;if(a.hidden){b.hidden=!0}if(a.collapseImmune){b.collapseImmune=!0}if(a.modelValidation!==undefined){b.modelValidation=a.modelValidation}if(a.savedDisabled){b.disabled=!0}a.mixins.bindable.initInheritedState.call(a,b);if(c&&c.initInheritedState){c.initInheritedState(b)}},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 a=this,b=a.loader;if(b){if(!b.isLoader){a.loader=new Ext.ComponentLoader(Ext.apply({target:a},b))}else {b.setTarget(a)}return a.loader}return null},getMaskTarget:function(){return this.maskElement?this[this.maskElement]:null},getPlugin:function(d){var b,c=this.plugins,e=c&&c.length,a;for(b=0;b<e;b++){a=c[b];if(a.id===d||a.pluginId===d){return a}}return null},getPosition:function(e){var a=this,b,d=a.isContainedFloater(),c;if((e===!0)&&!d){return [a.getLocalX(),a.getLocalY()]}b=a.getXY();if((e===!0)&&d){c=a.floatParent.getTargetEl().getViewRegion();b[0]-=c.left;b[1]-=c.top}return b},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(g){var c=this,a=Ext.layout.SizeModel,h=c.componentLayout.ownerContext,s=c.width,r=c.height,p,o,j,i,n,m,d,k,f,b,l,e,q=c.floating||c.floated;if(h){e=h.widthModel;d=h.heightModel}if(!e||!d){j=((p=typeof s)==='number');i=((o=typeof r)==='number');l=q||!(k=c.ownerLayout);if(l){f=Ext.layout.Layout.prototype.autoSizePolicy;b=q?3:c.shrinkWrap;if(j){e=a.configured}if(i){d=a.configured}}else {f=k.getItemSizePolicy(c,g);b=k.isItemShrinkWrap(c)}if(h){h.ownerSizePolicy=f}b=(b===!0)?3:(b||0);if(l&&b){if(s&&p==='string'){b&=2;n=!0}if(r&&o==='string'){b&=1;m=!0}}if(b!==3){if(!g){g=c.ownerCt&&c.ownerCt.getSizeModel()}if(g){b|=(g.width.shrinkWrap?1:0)|(g.height.shrinkWrap?2:0)}}if(!e){if(!f.setsWidth&&!(c.frame&&n)){if(j){e=a.configured}else {e=(b&1)?a.shrinkWrap:a.natural}}else if(f.readsWidth){if(j){e=a.calculatedFromConfigured}else {e=(b&1)?a.calculatedFromShrinkWrap:a.calculatedFromNatural}}else {e=a.calculated}}if(!d){if(!f.setsHeight&&!(c.frame&&m)){if(i){d=a.configured}else {d=(b&2)?a.shrinkWrap:a.natural}}else if(f.readsHeight){if(i){d=a.calculatedFromConfigured}else {d=(b&2)?a.calculatedFromShrinkWrap:a.calculatedFromNatural}}else {d=a.calculated}}}return e.pairsByHeightOrdinal[d.ordinal]},getState:function(){var b=this,a=null,c=b.getSizeModel();if(c.width.configured){a=b.addPropertyToState(a,'width')}if(c.height.configured){a=b.addPropertyToState(a,'height')}return a},getUserCls:function(){return this.userCls},setUserCls:function(b){var a=this,c=a.userCls;if(b!==c){a.userCls=b;if(a.rendered){a.el.replaceCls(c,b)}}return c},getWidth:function(){return this.el.getWidth()},getXType:function(){return this.self.xtype},getXTypes:function(){var c=this.self,b,a,d;if(!c.xtypes){b=[];a=this;while(a){d=a.xtypes;if(d!==undefined){b.unshift.apply(b,d)}a=a.superclass}c.xtypeChain=b;c.xtypes=b.join('/')}return c.xtypes},hasCls:function(b){var a=this.rendered?this.el:this.protoEl;return a.hasCls.apply(a,arguments)},hasUICls:function(b){var c=this,a=c.uiCls||[];return Ext.Array.contains(a,b)},hide:function(c,d,e){var a=this,b=a.ownerFocusableContainer;if(a.pendingShow){a.pendingShow=!1}if(!(a.rendered&&!a.isVisible())){if(!a.hasListeners.beforehide||a.fireEvent('beforehide',a)!==!1||a.hierarchicallyHidden){a.getInherited().hidden=a.hidden=!0;if(b&&!b.beforeFocusableChildHide.$nullFn){b.beforeFocusableChildHide(a)}a.fireHierarchyEvent('beforehide');if(a.rendered){a.onHide.apply(a,arguments)}}}return a},initComponent:function(){var a=this,c=a.width,b=a.height;if(a.plugins&&!a.plugins.processed){a.constructPlugins()}a.pluginsInitialized=!0;if(c!=null||b!=null){a.setSize(c,b)}if(a.listeners){a.on(a.listeners);a.listeners=null}if(a.focusable){a.initFocusable()}},initEvents:function(){var a=this,d=a.afterRenderEvents,e,c,f,b,g;if(d){for(f in d){c=a[f];if(c&&c.on){e=d[f];for(b=0,g=e.length;b<g;++b){a.mon(c,e[b])}}}}if(a.focusable){a.initFocusableEvents()}a.initKeyMap()},is:function(a){return Ext.ComponentQuery.is(this,a)},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},getHidden:function(){return this.hidden},isHierarchicallyHidden:function(){var a=this,b=!1,c,d;for(;(c=a.ownerCt||a.floatParent);a=c){d=c.getInherited();if(d.hidden){b=!0;break}if(a.getInherited().collapseImmune){if(c.collapsed&&!a.collapseImmune){b=!0;break}}else {b=!!d.collapsed;break}}return b},isLayoutChild:function(a){return !this.floating&&!!this.up(a)},isLayoutRoot:function(){var a=this,b=a.ownerLayout;if(!b||a._isLayoutRoot||a.floating){return !0}return b.isItemLayoutRoot(a)},isLayoutSuspended:function(){var a=this,b;while(a){if(a.layoutSuspendCount||a.suspendLayout){return !0}b=a.ownerLayout;if(!b){break}a=b.owner}return !1},isVisible:function(c){var a=this,b;if(a.hidden||!a.rendered||a.destroyed){b=!0}else if(c){b=a.isHierarchicallyHidden()}return !b},isXType:function(a,b){return b?(Ext.Array.indexOf(this.xtypes,a)!==-1):!!this.xtypesMap[a]},isMasked:function(b){var a=this;return !!(a.masked||(a.loadMask&&a.loadMask.isVisible())||(b&&a.getInherited().masked))},lookupTpl:function(a){return Ext.XTemplate.getTpl(this,a)},setMasked:function(c){var a=this,b=a.ownerFocusableContainer;if(c){a.masked=!0;a.getInherited().masked=c}else {a.masked=!1;delete a.getInherited().masked}if(b&&!b.onFocusableChildMasked.$nullFn){b.onFocusableChildMasked(a,c)}return a},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(!0)},nextNode:function(b,i){var c=this,f=c.ownerCt,g,d,h,e,a;if(i&&c.is(b)){return c}if(f){for(d=f.items.items,e=Ext.Array.indexOf(d,c)+1,h=d.length;e<h;e++){a=d[e];if(a.is(b)){return a}if(a.down){g=a.down(b);if(g){return g}}}return f.nextNode(b)}return null},nextSibling:function(c){var f=this.ownerCt,b,d,a,e;if(f){b=f.items;a=b.indexOf(this)+1;if(a){if(c){for(d=b.getCount();a<d;a++){if((e=b.getAt(a)).is(c)){return e}}}else {if(a<b.getCount()){return b.getAt(a)}}}}return null},onAdded:function(b,d,c){var a=this;a.ownerCt=b;a.onInheritedAdd(a,c);if(a.hasListeners&&a.hasListeners.added){a.fireEvent('added',a,b,d)}if(Ext.GlobalEvents.hasListeners.added){a.fireHierarchyEvent('added')}},onRemoved:function(c){var a=this,b;if(!a.isLayoutMoving&&a.el&&a.el.contains(Ext.Element.getActiveElement())){b=a.findFocusTarget();if(b){b.focus()}}if(Ext.GlobalEvents.hasListeners.removed){a.fireHierarchyEvent('removed')}if(a.hasListeners.removed){a.fireEvent('removed',a,a.ownerCt)}a.onInheritedRemove(c);a.ownerCt=a.ownerLayout=null},onBoxReady:function(d,c){var a=this,b;if(a.ariaLabelledBy||a.ariaDescribedBy){if(a.ariaLabelledBy){b=a.getAriaLabelEl(a.ariaLabelledBy);if(b){a.ariaEl.dom.setAttribute('aria-labelledby',b)}}if(a.ariaDescribedBy){b=a.getAriaLabelEl(a.ariaDescribedBy);if(b){a.ariaEl.dom.setAttribute('aria-describedby',b)}}}if(a.resizable){a.initResizable(a.resizable)}if(a.draggable){a.initDraggable()}if(a.hasListeners.boxready){a.fireEvent('boxready',a,d,c)}},onDestroy:Ext.emptyFn,onDisable:function(){var a=this,c,b;if(a.focusable){a.disableFocusable()}if(!a.ariaStaticRoles[a.ariaRole]){a.ariaEl.dom.setAttribute('aria-disabled',!0)}if(a.maskOnDisable&&!a.getInheritedConfig('disableMask',!0)){c=a.el.dom;b=c.nodeName;if(a.disabledRe.test(b)){c.disabled=!0}if(!a.nonMaskableRe.test(b)){a.mask()}}},onEnable:function(){var a=this,c,b;if(a.focusable){a.enableFocusable()}if(!a.ariaStaticRoles[a.ariaRole]){a.ariaEl.dom.setAttribute('aria-disabled',!1)}if(a.maskOnDisable&&a.getInherited().hasOwnProperty('masked')){c=a.el.dom;b=c.nodeName;if(a.disabledRe.test(b)){c.disabled=!1}if(!a.nonMaskableRe.test(b)){a.unmask()}}},onGlobalShow:function(a){if(this.up(a)){this.getScrollable().restoreState()}},onHide:function(b,d,f){var a=this,c,e,g;if(!a.ariaStaticRoles[a.ariaRole]&&!a.destroying&&!a.destroyed){a.ariaEl.dom.setAttribute('aria-hidden',!0)}a.revertFocus();b=a.getAnimateTarget(b);if(!a.ghost){b=null}if(b){g={x:b.getX(),y:b.getY(),width:b.dom.offsetWidth,height:b.dom.offsetHeight};c=a.ghost();c.el.stopAnimation();e=a.getSize();c.el.animate({to:g,listeners:{afteranimate:function(){if(!a.destroying){c.componentLayout.lastComponentSize=null;a.unghost(!1);c.el.setSize(e);a.afterHide(d,f)}}}})}else {a.el.hide()}if(!b){a.afterHide(d,f)}},onPosition:Ext.emptyFn,onResize:function(e,d,c,b){var a=this;if(a.floating&&a.constrain){a.doConstrain()}if(a.hasListeners.resize){a.fireEvent('resize',a,e,d,c,b)}},onShow:function(){var a=this;if(!a.ariaStaticRoles[a.ariaRole]){a.ariaEl.dom.setAttribute('aria-hidden',!1)}a.el.show();a.updateLayout({isRoot:!1,context:a._showContext});if(a.floating){if(a.maximized){a.fitContainer()}else if(a.constrain){a.doConstrain()}}},_showContext:{show:!0},onShowComplete:function(c,d){var a=this,b=a.ownerFocusableContainer;if(a.floating){a.onFloatShow()}Ext.callback(c,d||a);a.fireEvent('show',a);if(b&&!b.onFocusableChildShow.$nullFn){b.onFocusableChildShow(a)}delete a.hiddenByLayout},onShowVeto:Ext.emptyFn,previousNode:function(c,h){var d=this,f=d.ownerCt,a,g,e,b;if(h&&d.is(c)){return d}if(f){for(g=f.items.items,e=Ext.Array.indexOf(g,d)-1;e>-1;e--){b=g[e];if(b.query){a=b.query(c);a=a[a.length-1];if(a){return a}}if(b.is(c)){return b}}return f.previousNode(c,!0)}return null},previousSibling:function(c){var e=this.ownerCt,b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.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(c){var a=this,b=a.rendered?a.el:a.protoEl;b.removeCls.apply(b,arguments);return a},removeClsWithUI:function(a,k){var b=this,d=[],e=0,g=Ext.Array,i=g.remove,j=b.uiCls=g.clone(b.uiCls),f=b.activeUI,h,c;if(typeof a==="string"){a=(a.indexOf(' ')<0)?[a]:Ext.String.splitWords(a)}h=a.length;for(e=0;e<h;e++){c=a[e];if(c&&b.hasUICls(c)){i(j,c);if(f){d=d.concat(b.removeUIClsFromElement(c))}}}if(k!==!0&&f){b.removeCls(d)}return d},resumeLayouts:function(b){var a=this;if(!a.rendered){return}if(a.layoutSuspendCount&&!--a.layoutSuspendCount){a.suspendLayout=!1;if(b&&!a.isLayoutSuspended()){a.updateLayout(b)}}},scrollBy:function(c,d,b){var a=this.getScrollable();if(a){a.scrollBy(c,d,b)}},scrollTo:function(c,d,b){var a=this.getScrollable();if(a){a.scrollTo(c,d,b)}},setAutoScroll:function(a){this.setScrollable(!!a);return this},setBorder:function(a,c){var b=this,d=!!c;if(b.rendered||d){if(!d){c=b.el}if(!a){a=0}else if(a===!0){a='1px'}else {a=this.unitizeBox(a)}c.setStyle('border-width',a);if(!d){b.updateLayout()}}b.border=a},setDock:function(c){var a=this,b=a.ownerCt;if(c!==a.dock){if(b&&b.moveDocked){b.moveDocked(a,c)}else {a.dock=c}}return a},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 a=this,b={target:a};if(a.rendered){if(c!==!1){if(Ext.isString(c)){b.msg=c}else {Ext.apply(b,c,a.maskDefaults)}if(!a.loadMask||!a.loadMask.isLoadMask){if(d&&b.useTargetEl==null){b.useTargetEl=!0}a.loadMask=new Ext.LoadMask(b)}else {Ext.apply(a.loadMask,b)}if(a.loadMask.isVisible()){a.loadMask.syncMaskState()}else {a.loadMask.show()}}else {if(a.loadMask&&a.loadMask.isLoadMask){a.loadMask.hide()}}}return a.loadMask},setMargin:function(a,c){var b=this;if(b.rendered){if(!a&&a!==0){a=''}else {if(a===!0){a=5}a=this.unitizeBox(a)}b.margin=a;b.margin$=null;b.getEl().setStyle('margin',a);if(!c){b.updateLayout(b._notAsLayoutRoot)}}else {b.margin=a}},setOverflowXY:function(a,b){this.setScrollable({x:(a&&a!=='hidden')?a:!1,y:(b&&b!=='hidden')?b:!1});return this},setPagePosition:function(a,c,f){var b=this,d,e;if(Ext.isArray(a)){c=a[1];a=a[0]}b.pageX=a;b.pageY=c;if(b.floating){if(b.isContainedFloater()){e=b.floatParent.getTargetEl().getViewRegion();if(Ext.isNumber(a)&&Ext.isNumber(e.left)){a-=e.left}if(Ext.isNumber(c)&&Ext.isNumber(e.top)){c-=e.top}}else {d=b.el.translateXY(a,c);a=d.x;c=d.y}b.setPosition(a,c,f)}else {d=b.el.translateXY(a,c);b.setPosition(d.x,d.y,f)}return b},setPosition:function(b,c,e){var a=this,d=a.beforeSetPosition.apply(a,arguments);if(d&&a.rendered){b=d.x;c=d.y;if(e){if(b!==a.getLocalX()||c!==a.getLocalY()){a.stopAnimation();a.animate(Ext.apply({duration:1000,listeners:{afteranimate:Ext.Function.bind(a.afterSetPosition,a,[b,c])},to:{left:b,top:c}},e))}}else {a.setLocalXY(b,c);a.afterSetPosition(b,c)}}return a},setScrollX:function(c,b){var a=this.getScrollable();if(a){a.scrollTo(c,null,b)}},setScrollY:function(c,b){var a=this.getScrollable();if(a){a.scrollTo(null,c,b)}},setSize:function(b,c){var a=this,g=a.width,f=a.height,e,d;if(b&&typeof b==='object'){c=b.height;b=b.width}if(typeof b==='number'){a.width=Ext.Number.constrain(b,a.minWidth,a.maxWidth)}else if(b===null){delete a.width}else if(typeof b==='string'){e=!0;a.width=b}if(typeof c==='number'){a.height=Ext.Number.constrain(c,a.minHeight,a.maxHeight)}else if(c===null){delete a.height}else if(typeof c==='string'){d=!0;a.height=c}if(a.rendered&&a.isVisible()){if(g!==a.width||f!==a.height){if(a.liquidLayout||e||d){a.el.setSize(a.width,a.height)}a.updateLayout(a._notAsLayoutRoot)}}return a},setStyle:function(a,b){var c=this.el||this.protoEl;c.setStyle(a,b);return this},setUI:function(c){var a=this,e=a.uiCls,d=a.activeUI,b;if(c===d){return}if(d){b=a.removeClsWithUI(e,!0);if(b.length){a.removeCls(b)}a.removeUIFromElement()}else {a.uiCls=[]}a.ui=c;a.activeUI=c;a.addUIToElement();b=a.addClsWithUI(e,!0);if(b.length){a.addCls(b)}if(a.rendered){a.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,e,f){var a=this,b=a.rendered,c=a.ownerFocusableContainer;if(a.hierarchicallyHidden||(a.floating&&!b&&a.isHierarchicallyHidden())){if(!b){a.initHierarchyEvents()}if(arguments.length>1){arguments[0]=null;a.pendingShow=arguments}else {a.pendingShow=!0}}else if(b&&a.isVisible()){if(a.floating){a.onFloatShow();if(a.toFrontOnShow){a.toFront()}}}else {if(a.fireEvent('beforeshow',a)!==!1){a.hidden=!1;delete this.getInherited().hidden;if(c&&!c.beforeFocusableChildShow.$nullFn){c.beforeFocusableChildShow(a)}Ext.suspendLayouts();if(!b&&(a.autoRender||a.floating)){a.doAutoRender();b=a.rendered}if(b){a.beforeShow();Ext.resumeLayouts();a.onShow.apply(a,arguments);a.afterShow.apply(a,arguments)}else {Ext.resumeLayouts(!0)}}else {a.onShowVeto()}}return a},showAt:function(b,c,d){var a=this;if(!a.rendered&&(a.autoRender||a.floating)){a.x=b;a.y=c;return a.show()}if(a.floating){a.setPosition(b,c,d)}else {a.setPagePosition(b,c,d)}return a.show()},showBy:function(b,c,d){var a=this;if(a.floating&&b){a._lastAlignTarget=b;a._lastAlignToPos=c||a.defaultAlign;a._lastAlignToOffsets=d||a.alignOffset;a.show()}return a},suspendLayouts:function(){var a=this;if(!a.rendered){return}if(++a.layoutSuspendCount===1){a.suspendLayout=!0}},toggleCls:function(b,a){if(a===undefined){a=!this.hasCls(b)}return this[a?'addCls':'removeCls'](b)},unitizeBox:function(a){return Ext.Element.unitizeBox(a)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(!1)},unregisterFloatingItem:function(b){var a=this;if(a.floatingDescendants){a.floatingDescendants.unregister(b)}},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){if(a.destroyed){return null}d++;if(c.isComponent){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},update:function(b,h,j,i){var a=this,g=(a.tpl&&!Ext.isString(b)),e=a.ownerFocusableContainer,f,c,d;if(g){a.data=(b&&b.isEntity)?b.getData(!0):b}else {a.html=Ext.isObject(b)?Ext.DomHelper.markup(b):b}if(a.rendered){f=a.getSizeModel();c=f.width.shrinkWrap||f.height.shrinkWrap;if(a.isContainer){d=a.layout.getRenderTarget();c=c||a.items.items.length>0}else {d=a.getTargetEl()}if(g){a.tpl[a.tplWriteMode](d,a.data||{})}else {d.setHtml(a.html,h,j,i||a)}if(c){a.updateLayout()}if(e&&!e.onFocusableChildUpdate.$nullFn){e.onFocusableChildUpdate(a)}}},setHtml:function(c,a,d,b){this.update(c,a,null,b)},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:!0},_notAsLayoutRoot:{isRoot:!1},updateLayout:function(b){var a=this,e,d=a.lastBox,c=b&&b.isRoot,f=b&&b.context;if(d){d.invalid=!0}if(!a.rendered||a.isDetached||a.layoutSuspendCount||a.suspendLayout){return}if(a.hidden){Ext.Component.cancelLayout(a)}else if(typeof c!=='boolean'){c=a.isLayoutRoot()}if(c||!a.ownerLayout||!a.ownerLayout.onContentChange(a,f)){if(!a.isLayoutSuspended()){e=(b&&b.hasOwnProperty('defer'))?b.defer:a.deferLayouts;Ext.Component.updateLayout(a,e)}}},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(b,a){this.changeConstraint(b,a,'max','min-width','width')},updateTouchAction:function(b){var c,a,e,d;for(c in b){a=this[c];e=b[c];if(a&&a.isElement){a.setTouchAction(e)}else {d=!0}}if(d){this.el.setTouchAction(b)}},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(b,a){this.el.setX(b,a)},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 a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.addCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.addCls(d+b)}}}}},changeConstraint:function(b,g,f,c,d){var a=this,e=a[d];if(b!=null&&typeof e==='number'){a[d]=Math[f](e,b)}if(a.liquidLayout){if(b!=null){a.setStyle(c,b+'px')}else if(g){a.setStyle(c,'')}}if(a.rendered){a.updateLayout()}},constructPlugin:function(a){var c=this,b=Ext.plugin.Manager;if(typeof a==='string'){a=b.create({},a,c)}else {a=b.create(a,null,c)}return a},constructPlugins:function(){var c=this,d=c.plugins,a,b,e;if(d){c.plugins=a=Ext.plugin.Abstract.decode(d,'ptype');a.processed=!0;for(b=0,e=a.length;b<e;b++){a[b]=c.constructPlugin(a[b])}}c.pluginsInitialized=!0;return a},detachFromBody:function(){var a=this;if(!a.isDetached){Ext.getDetachedBody().appendChild(a.el,!0);Ext.Component.cancelLayout(a);a.isDetached=!0}},doAddListener:function(h,e,i,b,n,m,l){var a=this,c,g,j,d,f,k;if(Ext.isObject(e)||(b&&b.element)){if(b.element){d=b.element;c={};c[h]=e;if(i){c.scope=i}j=a.$elementEventOptions;for(g in b){if(j[g]){c[g]=b[g]}}}else {c=e;d=h}f=a[d];if(f&&f.isObservable){a.mon(f,c)}else {a.afterRenderEvents=a.afterRenderEvents||{};if(!a.afterRenderEvents[d]){a.afterRenderEvents[d]=[]}a.afterRenderEvents[d].push(c)}return}if(b){k=b.delegate;if(k){a.mixins.componentDelegation.addDelegatedListener.call(a,h,e,i,b,n,m,l);return}}a.mixins.observable.doAddListener.call(a,h,e,i,b,n,m,l)},doRemoveListener:function(b,d,c){var a=this;a.mixins.observable.doRemoveListener.call(a,b,d,c);a.mixins.componentDelegation.removeDelegatedListener.call(a,b,d,c)},fireHierarchyEvent:function(b){var a=Ext.GlobalEvents;if(a.hasListeners[b]){a.fireEvent(b,this)}},getActionEl:function(){return this.el},getAutoId:function(){this.autoGenId=!0;return ++Ext.Component.AUTO_ID},getContentTarget:function(){return this.el},getDragEl:function(){return this.el},getOverflowEl:function(){return this.getTargetEl()},getOverflowStyle:function(){var e=this,d=e.getScrollable(),f=e._scrollFlags,b,c,a;if(d){b=d.getX();if(b===!0){b='auto'}c=d.getY();if(c===!0){c='auto'}a=f[b][c]}else {a=f.none}e.scrollFlags=a;return {overflowX:a.overflowX,overflowY:a.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,!0)}return a.proxy},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 this.lookupTpl(a)},initCls:function(){var a=this,b=[a.baseCls],c=a.getComponentLayout().targetCls;if(c){b.push(c)}if(Ext.isDefined(a.cmpCls)){if(Ext.isDefined(Ext.global.console)){Ext.global.console.warn('Ext.Component: cmpCls has been deprecated. Please use componentCls.')}a.componentCls=a.cmpCls;delete a.cmpCls}if(a.componentCls){b.push(a.componentCls)}else {a.componentCls=a.baseCls}return b},initDraggable:function(){var a=this,c=(a.resizer&&a.resizer.el!==a.el)?a.resizerComponent=new Ext.Component({el:a.resizer.el,rendered:!0,container:a.container}):a,b=Ext.applyIf({el:c.getDragEl(),constrainTo:(a.constrain||a.draggable.constrain)?(a.constrainTo||(a.floatParent?a.floatParent.getTargetEl():a.container)):undefined},a.draggable);if(a.constrain||a.constrainDelegate){b.constrain=a.constrain;b.constrainDelegate=a.constrainDelegate}a.dd=new Ext.util.ComponentDragger(c,b)},initPadding:function(c){var a=this,b=a.padding;if(b!=null){if(a.layout&&a.layout.managePadding&&a.contentPaddingProperty==='padding'){c.setStyle('padding',0)}else {c.setStyle('padding',this.unitizeBox((b===!0)?5:b))}}},initPlugin:function(a){a.init(this);return a},initResizable:function(b){var a=this;b=Ext.apply({target:a,dynamic:!1,constrainTo:(a.constrain||(b&&b.constrain))?(a.constrainTo||(a.floatParent?a.floatParent.getTargetEl():a.container)):undefined,handles:a.resizeHandles},b);b.target=a;a.resizer=new Ext.resizer.Resizer(b)},initStyles:function(b){var a=this,g=a.margin,j=a.border,i=a.cls,h=a.style,e=a.x,f=a.y,k=a.liquidLayout,d,c;a.initPadding(b);if(g!=null){b.setStyle('margin',this.unitizeBox((g===!0)?5:g))}if(j!=null){a.setBorder(j,b)}if(i&&i!==a.initialCls){b.addCls(i);a.cls=a.initialCls=null}if(h&&h!==a.initialStyle){b.setStyle(h);a.style=a.initialStyle=null}if(e!=null){b.setStyle(a.horizontalPosProp,(typeof e==='number')?(e+'px'):e)}if(f!=null){b.setStyle('top',(typeof f==='number')?(f+'px'):f)}if(!a.ownerCt||a.floating){if(Ext.scopeCss){b.addCls(a.rootCls)}b.addCls(a.borderBoxCls)}if(k||!a.getFrameInfo()){d=a.width;c=a.height;if(d!=null){if(typeof d==='number'){b.setStyle('width',d+'px')}else {b.setStyle('width',d)}}if(c!=null){if(typeof c==='number'){b.setStyle('height',c+'px')}else {b.setStyle('height',c)}}}},isContainedFloater:function(){return (this.floating&&this.floatParent)},isDescendant:function(b){if(b.isContainer){for(var a=this.ownerCt;a;a=a.ownerCt){if(a===b){return !0}}}return !1},owns:function(a){var c=!1,b;if(a.isEvent){a=a.target}else if(a.isElement){a=a.dom}b=Ext.Component.fromElement(a);if(b){c=(b===this)||(!!b.up(this))}return c},parseBox:function(a){return Ext.Element.parseBox(a)},reattachToBody:function(){this.isDetached=!1},removeManagedListenerItem:function(d,a,h,g,f,e){var c=this,b=a.options?a.options.element:null;if(b){b=c[b];if(b&&b.un){if(d||(a.item===h&&a.ename===g&&(!f||a.fn===f)&&(!e||a.scope===e))){b.un(a.ename,a.fn,a.scope);if(!d){Ext.Array.remove(c.managedListeners,a)}}}}else {return c.mixins.observable.removeManagedListenerItem.apply(c,arguments)}},removeOverCls:function(){this.el.removeCls(this.overCls)},removePlugin:function(a){Ext.Array.remove(this.plugins,a);a.destroy()},removeUIFromElement:function(){var a=this,d=a.baseCls+'-'+a.ui,e,c,f,b;a.removeCls(d);if(a.rendered&&a.frame&&!Ext.supports.CSS3BorderRadius){d+='-';e=a.getChildEls();for(c in e){b=e[c].frame;if(b&&b!==!0){f=a[c];if(f){f.removeCls(d+b)}}}}},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 a=this,b=a.getInherited(),c=a.zIndexManager;a.hidden=d;if(d){b.hidden=!0}else {delete b.hidden}if(c){c.onComponentShowHide(a)}},setupProtoEl:function(){var a=this.initCls();this.protoEl.addCls(a)},wrapPrimaryEl:function(c){var a=this,b=a.el;if(!b||!b.isElement){a.el=Ext.get(c)}if(a.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,["box","component"],["component","box"],{"component":!0,"box":!0},["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.ComponentDelegation.prototype.mixinId||Ext.mixin.ComponentDelegation.$className,Ext.mixin.ComponentDelegation],[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.mixin.Focusable.prototype.mixinId||Ext.mixin.Focusable.$className,Ext.mixin.Focusable],[Ext.mixin.Accessible.prototype.mixinId||Ext.mixin.Accessible.$className,Ext.mixin.Accessible],[Ext.mixin.Keyboard.prototype.mixinId||Ext.mixin.Keyboard.$className,Ext.mixin.Keyboard]],[Ext,'Component',Ext,'AbstractComponent'],function(a){var b=a.prototype;(b.$elementEventOptions=Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element=1;(b.$eventOptions=Ext.Object.chain(b.$eventOptions)).delegate=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();try{c.call(b)}finally{a.resumeLayouts(!0)}};Ext.setGlyphFontFamily=function(b){Ext._glyphFontFamily=b};a.hierarchyEventSource=b.hierarchyEventSource=Ext.GlobalEvents;Ext.onReady(function(){if(Ext.supports.HighContrastMode){Ext.getBody().addCls(a.ariaHighContrastModeCls)}})}));Ext.define('Ext.overrides.mixin.Focusable',{override:'Ext.Component',focusCls:'focus',focus:function(f,d,c,e){var a=this,b;if((!a.focusable&&!a.isContainer)||a.destroyed||a.destroying){return a}if(d){a.getFocusTask().delay(Ext.isNumber(d)?d:10,a.focus,a,[f,!1,c,e]);return a}a.cancelFocus();if(a.floating&&a.container&&a.container.dom){b=a.container.dom.scrollTop}if(a.mixins.focusable.focus.apply(a,arguments)!==!1){if(c){Ext.callback(c,e)}if(a.floating&&b!==undefined){a.container.dom.scrollTop=b}}return a},cancelFocus:function(){var b=this,a=b.getFocusTask();if(a){a.cancel()}},beforeBlur:Ext.emptyFn,postBlur:Ext.emptyFn,beforeFocus:Ext.emptyFn,postFocus:Ext.emptyFn,onFocusEnter:function(b){var a=this;if(a.destroying||a.destroyed){return}if(a.floating&&a!==a.zIndexManager.getActive()){a.toFront(!0)}arguments.callee.$previous.call(this,b)},destroyFocusable:function(){var a=this;if(a.focusTask){a.focusTask.stop(a.focus,a)}arguments.callee.$previous.call(this)},privates:{addFocusCls:function(d){var b=this,c=b.focusCls,a;if(c){a=b.getFocusClsEl(d);if(a){a.addCls(b.addClsWithUI(c,!0))}}},removeFocusCls:function(d){var b=this,c=b.focusCls,a;if(c){a=b.getFocusClsEl(d);if(a){a.removeCls(b.removeClsWithUI(c,!0))}}},getFocusTask:function(){if(!this.focusTask){this.focusTask=Ext.focusTask}return this.focusTask},updateMaskState:function(e,d){var b=this,a=b.ariaEl.dom,c;if(e){b.disableTabbing();b.setMasked(!0);if(a){a.setAttribute('aria-busy','true');c=a.getAttribute('aria-describedby');if(c){b._savedAriaDescribedBy=c}a.setAttribute('aria-describedby',d.ariaEl.id)}}else {b.enableTabbing();b.setMasked(!1);if(a){a.removeAttribute('aria-busy');c=a.getAttribute('aria-describedby');a.removeAttribute('aria-describedby');if(c===d.ariaEl.id&&b._savedAriaDescribedBy){a.setAttribute('aria-describedby',b._savedAriaDescribedBy);delete b._savedAriaDescribedBy}}}}}},function(){if(!Ext.focusTask){Ext.focusTask=new Ext.util.DelayedTask()}});Ext.define('Ext.layout.container.border.Region',{override:'Ext.Component',initBorderRegion:function(){var a=this;if(!a._borderRegionInited){a._borderRegionInited=!0;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(c){var a=this,f,g=a.region;if(c!==g){f=a.getOwningBorderLayout();if(f){var k=f.regionFlags[c],j=a.placeholder,b=a.splitter,i=f.owner,m=f.regionMeta,l=a.collapsed||a.floated,h,e,d;if(a.fireEventArgs('beforechangeregion',[a,c])===!1){return g}Ext.suspendLayouts();a.region=c;Ext.apply(a,k);if(a.updateCollapseTool){a.updateCollapseTool()}if(b){Ext.apply(b,k);b.updateOrientation();e=i.items;d=e.indexOf(a);if(d>=0){h=m[c].splitterDelta;if(e.getAt(d+h)!==b){e.remove(b);d=e.indexOf(a);if(h>0){++d}e.insert(d,b)}}}if(j){if(l){a.expand(!1)}i.remove(j);a.placeholder=null;if(l){a.collapse(null,!1)}}i.updateLayout();Ext.resumeLayouts(!0);a.fireEventArgs('changeregion',[a,g])}else {a.region=c}}return g},setWeight:function(b){var a=this,e=a.getOwningBorderContainer(),d=a.placeholder,c=a.weight;if(b!==c){if(a.fireEventArgs('beforechangeweight',[a,b])!==!1){a.weight=b;if(d){d.weight=b}if(e){e.updateLayout()}a.fireEventArgs('changeweight',[a,c])}}return c}},function(b){var a=b.prototype;a.setBorderRegion=a.setRegion;a.setRegionWeight=a.setWeight});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:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},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:!0,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.route.Action',Ext.Base,{config:{actions:null,befores:null,urlParams:[]},started:!1,stopped:!1,constructor:function(b){var a=this;a.deferred=new Ext.Deferred();a.resume=a.resume.bind(a);a.stop=a.stop.bind(a);a.initConfig(b);a.callParent([b])},applyActions:function(a){if(a){a=Ext.Array.from(a)}return a},applyBefores:function(a){if(a){a=Ext.Array.from(a)}return a},destroy:function(){this.deferred=null;this.setBefores(null).setActions(null).setUrlParams(null);this.callParent()},resume:function(){return this.next()},stop:function(){this.stopped=!0;return this.done()},next:function(){var a=this,c=a.getActions(),d=a.getBefores(),f=a.getUrlParams().slice(),b,e;if(a.stopped||(d?!d.length:!0)&&(c?!c.length:!0)){a.done()}else {if(d&&d.length){b=d.shift();f.push(a);e=Ext.callback(b.fn,b.scope,f);if(e&&e.then){e.then(function(b){a.resume(b)},function(b){a.stop(b)})}}else if(c&&c.length){b=c.shift();Ext.callback(b.fn,b.scope,f);a.next()}else {a.next()}}return a},run:function(){var a=this.deferred;if(!this.started){this.next();this.started=!0}return a.promise},done:function(){var a=this.deferred;if(this.stopped){a.reject()}else {a.resolve()}this.destroy();return this},before:function(a,d,e){if(!Ext.isBoolean(a)){e=d;d=a;a=!1}var b=this.getBefores(),c={fn:d,scope:e};if(b){if(a){b.unshift(c)}else {b.push(c)}}else {this.setBefores(c)}return this},action:function(a,d,e){if(!Ext.isBoolean(a)){e=d;d=a;a=!1}var b=this.getActions(),c={fn:d,scope:e};if(b){if(a){b.unshift(c)}else {b.push(c)}}else {this.setActions(c)}return this},then:function(a,b){return this.deferred.then(a,b)}},1,0,0,0,0,0,[Ext.route,'Action'],0));(Ext.cmd.derive('Ext.route.Route',Ext.Base,{config:{name:null,url:null,allowInactive:!1,caseInsensitive:!1,handlers:[]},defaultMatcher:'([%a-zA-Z0-9\\-\\_\\s,]+)',paramMatchingRegex:/:([0-9A-Za-z\_]*)/g,isRoute:!0,constructor:function(c){var a=this,b;this.initConfig(c);Ext.apply(a,c,{conditions:{}});b=a.getUrl();a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b)},recognize:function(a){var b=this,e=b.recognizes(a),d,c;if(a===b.lastToken){return !0}if(e){d=b.matchesFor(a);c=a.match(b.matcherRegex);c.shift();return Ext.applyIf(d,{historyUrl:a,urlParams:c})}return !1},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(o,h){var d=this,m=d.getAllowInactive(),j=d.getHandlers(),g=Ext.route.Router.getQueueRoutes(),n=j.length,l=[],k=[],i=(h&&h.urlParams)||[],e,b,c,a,f;d.lastToken=o;if(!g){f=[]}return new Ext.Promise(function(q,p){for(e=0;e<n;e++){b=j[e];c=b.scope;if(!m&&c.isActive&&!c.isActive()){continue}if(g){if(b.before){l.push({fn:b.before,scope:c})}if(b.action){k.push({fn:b.action,scope:c})}}else {a={urlParams:i};if(b.before){a.befores={fn:b.before,scope:c}}if(b.action){a.actions={fn:b.action,scope:c}}a=new Ext.route.Action(a);if(Ext.fireEvent('beforeroute',a,d)===!1){a.destroy()}else {f.push(a.run())}}}if(g){a=new Ext.route.Action({actions:k,befores:l,urlParams:i});if(Ext.fireEvent('beforeroute',a,d)===!1){a.destroy();p()}else {a.run().then(q,p)}}else {Ext.Promise.all(f).then(q,p)}})},matchesFor:function(f){var b={},d=this.paramsInMatchString,c=f.match(this.matcherRegex),e=d.length,a;c.shift();for(a=0;a<e;a++){b[d[a].replace(':','')]=c[a]}return b},createMatcherRegex:function(a){var d=this.paramsInMatchString,g=this.conditions,f=this.defaultMatcher,i=d.length,h=this.getCaseInsensitive()?'i':'',b,c,e;if(a==='*'){a=a.replace('*','\\*')}else {for(b=0;b<i;b++){c=d[b];e=g[c]||f;a=a.replace(new RegExp(c),e)}}return new RegExp('^'+a+'$',h)},addHandler:function(b){var a=this.getHandlers();a.push(b);return this},removeHandler:function(g,b){var e=this.getHandlers(),f=e.length,d=[],c,a;for(c=0;c<f;c++){a=e[c];if(a.scope===g){if(!b||(Ext.isDefined(b.action)?a.action===b.action:!0&&Ext.isDefined(b.before)?a.before===b.before:!0)){continue}}d.push(a)}this.setHandlers(d);return this}},1,0,0,0,0,0,[Ext.route,'Route'],0));(Ext.cmd.derive('Ext.util.History',Ext.Base,{singleton:!0,alternateClassName:'Ext.History',useTopWindow:!1,hashRe:/^(#?!?)/,constructor:function(){var a=this;a.ready=!1;a.currentToken=null;a.mixins.observable.constructor.call(a)},getHash:function(){return this.win.location.hash.replace(this.hashRe,'')},setHash:function(a,e){var b=this,c=b.hashRe,d=b.win.location;a=a.replace(c,b.hashbang?'#!':'#');try{if(e){d.replace(a)}else {d.hash=a}b.currentToken=a.replace(c,'')}catch(f){}},handleStateChange:function(a){a=a.replace(this.hashRe,'');this.fireEvent('change',this.currentToken=a)},startUp:function(){var a=this;a.currentToken=a.getHash();Ext.get(a.win).on('hashchange',a.onHashChange,a);a.ready=!0;a.fireEvent('ready',a)},onHashChange:function(){var a=this,b=a.getHash();if(b!==a.hash){a.hash=b;a.handleStateChange(b)}},init:function(b,c){var a=this;if(a.ready){Ext.callback(b,c,[a]);return}if(!Ext.isReady){Ext.onInternalReady(function(){a.init(b,c)});return}a.win=a.useTopWindow?window.top:window;a.hash=a.getHash();if(b){a.on('ready',b,c,{single:!0})}a.startUp()},add:function(a,d){var c=this,b=!1;if(d===!1||c.getToken()!==a){c.setHash(a);b=!0}return b},replace:function(a,c){var d=this,b=!1;if(c===!1||d.getToken()!==a){this.setHash(a,!0);b=!0}return b},back:function(){this.win.history.go(-1)},forward:function(){this.win.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.route.Router',Ext.Base,{singleton:!0,config:{hashbang:null,multipleToken:'|',queueRoutes:!0},constructor:function(){var a=Ext.util.History;if(!a.ready){a.init()}a.on('change',this.onStateChange,this);this.initConfig();this.clear()},updateHashbang:function(a){Ext.util.History.hashbang=a},onStateChange:function(b){var c=this,e=b.split(c.getMultipleToken()),a,d,f;if(c.isSuspended){a=c.suspendedQueue;d=0;f=e.length;if(a){for(;d<f;d++){b=e[d];if(!Ext.Array.contains(a,b)){a.push(b)}}}}else {c.handleBefore(e)}},handleBefore:function(b){var c=this,a=new Ext.route.Action();if(Ext.fireEvent('beforeroutes',a,b)===!1){a.destroy()}else {a.run().then(c.handleBeforeRoute.bind(c,b),Ext.emptyFn)}},handleBeforeRoute:function(c){var a=this,b=a.getByName('*');if(b){b.execute().then(a.doRun.bind(a,c),Ext.emptyFn)}else {a.doRun(c)}},doRun:function(l){var g=this,m=g.application,k=g.routes,b=0,i=l.length,h={},f=[],c,j,d,a,e;for(;b<i;b++){c=l[b];j=!1;for(d in k){a=k[d];e=a.recognize(c);if(e){j=!0;if(e!==!0){a.execute(c,e).then(null,Ext.bind(g.onRouteRejection,g,[a]))}Ext.Array.remove(f,a);if(!h[d]){h[d]=1}}else if(!h[d]){f.push(a)}}if(!j){if(m){m.fireEvent('unmatchedroute',c)}Ext.fireEvent('unmatchedroute',c)}}b=0;i=f.length;for(;b<i;b++){a=f[b];a.lastToken=null}},onRouteRejection:function(a){Ext.fireEvent('routereject',a)},connect:function(b,a,e){var f=this.routes,d=a.name||b,c,d;if(b[0]==='!'){b=b.substr(1);this.setHashbang(!0)}if(Ext.isString(a)){a={action:a,scope:e}}else {a.scope=e}c=f[d];if(!c){c=f[d]=new Ext.route.Route({conditions:a.conditions||{},name:d,url:b})}c.addHandler(a)},disconnect:function(c,b){var d=this.routes,a,e;if(b){a=this.getByName(b.name||b.url);if(a){a.removeHandler(c,b)}}else {for(e in d){a=d[e];a.removeHandler(c)}}},recognize:function(i){var g=this.routes,d=[],h,a,b,e,f,c;for(h in g){a=g[h];e=a&&a.length;if(e){b=0;for(;b<e;b++){f=a[b];c=f.recognize(i);if(c){d.push({route:f,urlParams:c})}}}}return d.length?d:!1},draw:function(a){a.call(this,this)},clear:function(){this.routes={}},clearLastTokens:function(c){var b=this.routes,d,a;for(d in b){a=b[d];if(!c||a.recognize(c)){a.lastToken=null}}},getByName:function(b){var a=this.routes;if(a){return a[b]}},suspend:function(a){this.isSuspended=!0;if(!this.suspendedQueue&&a!==!1){this.suspendedQueue=[]}},resume:function(d){var a=this,b=a.suspendedQueue,c;if(a.isSuspended){a.isSuspended=!1;a.suspendedQueue=null;if(!d&&b){c=b.join(a.getMultipleToken());a.onStateChange(c)}}}},1,0,0,0,0,0,[Ext.route,'Router'],0));(Ext.cmd.derive('Ext.route.Mixin',Ext.Mixin,{mixinConfig:{id:'routerable',before:{destroy:'destroyRouterable'}},config:{routes:null},destroyRouterable:function(){Ext.route.Router.disconnect(this)},updateRoutes:function(d,c){var f=this,e=Ext.route.Router,b,a,g;if(c){for(b in c){a=c[b];if(Ext.isString(a)){a={action:a,name:b}}e.disconnect(f,a)}}if(d){for(b in d){a=d[b];if(Ext.isString(a)){a={action:a}}g=a.action;e.connect(b,a,f)}}},redirectTo:function(b,e){var o=this,k=Ext.util.History.getToken(),i=Ext.route.Router,n=i.getMultipleToken(),d=k?k.split(n):[],f=d.length,j,c,m,a,g,h,l;if(b===-1){return Ext.util.History.back()}else if(b===1){return Ext.util.History.forward()}else if(b.isModel){b=b.toUrl()}else if(Ext.isObject(b)){for(m in b){a=b[m];if(!Ext.isObject(a)){a={token:a}}if(f){g=i.getByName(m);if(g){l=!1;for(c=0;c<f;c++){h=d[c];if(g.matcherRegex.test(h)){l=!0;if(a.token){if(a.fn&&a.fn.call(this,h,d,a)===!1){continue}d[c]=a.token;if(a.force){g.lastToken=null}}else {d.splice(c,1);c--;f--;g.lastToken=null}}}if(a&&a.token&&!l){d.push(a.token)}}}else if(a&&a.token){d.push(a.token)}}b=d.join(n)}if(e===!0){j=e;e=null}else if(e){j=e.force}f=d.length;if(j&&f){for(c=0;c<f;c++){h=d[c];i.clearLastTokens(h)}}if(k===b){if(j){i.onStateChange(b)}return !1}if(e&&e.replace){Ext.util.History.replace(b)}else {Ext.util.History.add(b)}return !0},privates:{afterClassMixedIn:function(a){var c=a.prototype,b=c.routes;if(b){delete c.routes;a.getConfigurator().add({routes:b})}}}},0,0,0,0,0,0,[Ext.route,'Mixin'],0));(Ext.cmd.derive('Ext.app.BaseController',Ext.Base,{isController:!0,config:{id:undefined,control:null,listen:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b)},updateId:function(a){this.id=a},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.getId();if(a){this.control(a)}},updateListen:function(a){this.getId();if(a){this.listen(a)}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;if(b){b.unlisten(a);a.eventbus=null}a.callParent()}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.route.Mixin.prototype.mixinId||Ext.route.Mixin.$className,Ext.route.Mixin]],[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(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;b<c;b++){d[a[b]]=!0}},clearNamespaces:function(){Ext.app.namespaces={}},getNamespace:function(d){var c=Ext.apply({},Ext.ClassManager.paths,Ext.app.namespaces),b='',a;for(a in c){if(c.hasOwnProperty(a)&&a.length>b.length&&(a+'.'===d.substring(0,a.length+1))){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,(b===undefined)?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace}));(Ext.cmd.derive('Ext.util.CollectionKey',Ext.Base,{isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},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(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(d<a&&d>b){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return (a>b)?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else if(a){delete c[d]}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,i,e;if(f){if(a.getUnique()&&c<g.length/2){for(b=0;b<c;++b){e=a.getKey(i=d[b]);delete f[e]}}else {a.map=null}}},add:function(i){var f=this,c=f.map,b,d,e,a,g,h;g=i.length;h=f.getUnique();for(d=0;d<g;++d){a=f.getKey(e=i[d]);if(h||!(a in c)){c[a]=e}else {if(!((b=c[a]) instanceof Array)){c[a]=b=[b]}b.push(e)}}},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(b,a){if(b){b.addObserver(this)}if(a){a.removeObserver(this)}},clone:function(){return new Ext.util.CollectionKey(this.getCurrentConfig())},destroy:function(){this.clear();this.getCollection().removeObserver(this);this.destroyed=!0}},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:!0,config:{groupFn:null,sortProperty:null},constructor:function(a){Ext.util.Sorter.prototype.constructor.apply(this,arguments)},getGroupString:function(b){var a=this._groupFn(b);return (a!=null)?String(a):''},sortFn:function(d,e){var c=this,a=c._groupFn(d),b=c._groupFn(e),g=c._sortProperty,i=c._root,h=c._sorterFn,f=c._transform;if(a===b){return 0}if(g||h){if(h){return h.call(this,d,e)}if(i){d=d[i];e=e[i]}a=d[g];b=e[g];if(f){a=f(a);b=f(b)}}return (a>b)?1:(a<b?-1:0)},standardGroupFn:function(a){var b=this._root;return (b?a[b]:a)[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:!0,config:{autoFilter:!0,autoSort:!0,autoGroup:!0,decoder:null,extraKeys:null,filters:null,grouper:null,groups:null,groupConfig:null,rootProperty:null,sorters:null,multiSortLimit:3,defaultSortDirection:'ASC',source:null,trackGroups:!0},generation:0,indices:null,indexRebuilds:0,updating:0,grouped:!1,sorted:!1,filtered:!1,$endUpdatePriority:1001,manageSorters:!0,constructor:function(b){var a=this;a.items=[];a.map={};a.length=0;if(b&&b.keyFn){a.getKey=b.keyFn}a.mixins.observable.constructor.call(a,b)},destroy:function(){var a=this,b=a._filters,c=a._sorters,d=a._groups;if(b){b.destroy();a._filters=null}if(c){a.grouped=a.sorted=!1;a.setSorters(null);if(a.manageSorters){c.destroy()}}if(d){d.destroy();a._groups=null}a.setSource(null);a.observers=a.items=a.map=null;a.callParent()},add:function(d){var b=this,a=b.decodeItems(arguments,0),c=a;if(a.length){b.splice(b.length,0,a);c=(a.length===1)?a[0]:a}return c},replaceAll:function(){var b=this,c,a;a=b.decodeItems(arguments,0);c=a;if(a.length){b.splice(0,b.length,a);c=(a.length===1)?a[0]:a}else {b.removeAll()}return c},aggregate:function(d,c,e,g,f){var a=this,b=Ext.Array.slice(arguments);b.unshift(a.items);return a.aggregateItems.apply(a,b)},aggregateByGroup:function(b,a,d){var c=this.getGroups();return this.aggregateGroups(c,b,a,d)},aggregateItems:function(a,m,b,c,d,p){var e=this,o=Ext.Number.clipIndices(a.length,[c,d]),k=(c!==0&&d!==a.length),f,g,n,j,i,h,l;c=o[0];d=o[1];if(!Ext.isFunction(b)){b=e._aggregators[b];return b.call(e,a,c,d,m,e.getRootProperty())}j=e.getRootProperty();h=new Array(n);l=k?new Array(n):a;for(f=c,g=0;f<d;++f,g++){if(k){l[g]=i=a[f]}h[g]=(j?i[j]:i)[m]}return b.call(p||e,a,h,0)},aggregateGroups:function(i,e,c,j){var f=i.items,k=f.length,h=!Ext.isFunction(c),g={},b,a,d;for(b=0;b<k;++b){a=f[b];if(!h){d=this.aggregateItems(a.items,e,c,null,null,j)}else {d=a[c](e)}g[a.getGroupKey()]=d}return g},beginUpdate:function(){if(!this.updating++){this.notify('beginupdate')}},clear:function(){var a=this,c=a.generation,e=c?a.items:[],b,d;if(c){a.items.length=a.length=0;a.map={};a.indices={};a.generation++;b=a.getExtraKeys();if(b){for(d in b){b[d].clear()}}}return e},clone:function(){var a=this,b=new a.self(a.initialConfig);b.add(a.items);return b},collect:function(i,e,h){var d=this.items,j=d.length,f={},g=[],b,c,a;for(b=0;b<j;++b){a=d[b];a=(e?a[e]:a)[i];c=String(a);if((h||!Ext.isEmpty(a))&&!f[c]){f[c]=1;g.push(a)}}return g},contains:function(a){var c=!1,b;if(a!=null){b=this.getKey(a);c=this.map[b]===a}return c},containsAll:function(b){var c=Ext.isArray(b)?b:arguments,a;for(a=c.length;a-->0;){if(!this.contains(c[a])){return !1}}return !0},containsKey:function(a){return a in this.map},createFiltered:function(a,j,n,l,m){var d=this,k=new d.self(d.initialConfig),h=d.getRootProperty(),g=d.items,e,b,c,i,f;if(Ext.isFunction(a)){i=a;f=j}else {if(Ext.isString(a)){c=[new Ext.util.Filter({property:a,value:j,root:h,anyMatch:n,caseSensitive:l,exactMatch:m})]}else if(a instanceof Ext.util.Filter){c=[a];a.setRoot(h)}else if(Ext.isArray(a)){c=a.slice(0);for(b=0,e=c.length;b<e;++b){c[b].setRoot(h)}}i=Ext.util.Filter.createFilterFn(c)}f=f||d;for(b=0,e=g.length;b<e;b++){if(i.call(f,g[b])){k.add(g[b])}}return k},filterBy:function(b,a){return this.createFiltered(b,a)},each:function(f,c){var b=this.items,d=b.length,a,e;if(d){c=c||this;b=b.slice(0);for(a=0;a<d;a++){e=f.call(c,b[a],a,d);if(e===!1){break}}}return e},eachKey:function(i,c){var f=this,b=f.items,d=b.length,a,g,h,e;if(d){c=c||f;b=b.slice(0);for(a=0;a<d;a++){h=f.getKey(g=b[a]);e=i.call(c,h,g,a,d);if(e===!1){break}}}return e},endUpdate:function(){if(!--this.updating){this.notify('endupdate')}},find:function(f,a,h,d,e,c){if(Ext.isEmpty(a,!1)){return null}var g=Ext.String.createRegex(a,d,e,c),b=this.getRootProperty();return this.findBy(function(i){return i&&g.test((b?i[b]:i)[f])},null,h)},findBy:function(i,c,g){var d=this,b=d.items,h=b.length,a,e,f;c=c||d;for(a=g||0;a<h;a++){f=d.getKey(e=b[a]);if(i.call(c,e,f)){return b[a]}}return null},findIndex:function(e,g,f,c,d,b){var a=this.find(e,g,f,c,d,b);return a?this.indexOf(a):-1},findIndexBy:function(d,b,c){var a=this.findBy(d,b,c);return a?this.indexOf(a):-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(b){var a=b.id;return (a===0||a)?a:((a=b._id)===0||a)?a:b.getId()},getRange:function(d,e){var c=this.items,b=c.length,a;if(!b){a=[]}else {a=Ext.Number.clipIndices(b,[d,e]);a=c.slice(a[0],a[1])}return a},getValues:function(h,f,i,c){var d=this.items,e=Ext.Number.clipIndices(d.length,[i,c]),g=[],b,a;for(b=e[0],c=e[1];b<c;++b){a=d[b];a=(f?a[f]:a)[h];g.push(a)}return g},indexOf:function(a){if(!a){return -1}var b=this.getKey(a);return this.indexOfKey(b)},indexOfKey:function(c){var b=this,a=b.indices;if(c in b.map){if(!a){a=b.getIndices()}return a[c]}return -1},insert:function(d,e){var c=this,a=c.decodeItems(arguments,1),b=a;if(a.length){c.splice(d,0,a);b=(a.length===1)?a[0]:a}return b},itemChanged:function(c,p,h,u){var a=this,j=h!==undefined,s=a.filtered&&a.getAutoFilter(),n=!1,g=0,i=a.items,t=a.length-1,v=a.sorted&&t>0&&a.getAutoSort(),r=a.getSource(),q=0,f=!1,o=!1,d,l,k,m,b,e;if(r&&!r.updating){a.sourceUpdating=!0;r.itemChanged(c,p,h,u);a.sourceUpdating=!1}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?h:l);o=(b<0);f=a.isItemFiltered(c);n=(o!==f)}if(n){if(f){q=[c];e=-1}else {m=[c];e=a.length}}else if(v&&!f){if(!s){b=a.indexOfKey(j?h:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){g=-1;e=Ext.Array.binarySearch(i,c,0,b,k)}else if(b<t&&k(i[b],i[b+1])>0){g=1;e=Ext.Array.binarySearch(i,c,b+1,k)}if(g){m=[c]}}}d={item:c,key:l,index:e,filterChanged:n,keyChanged:j,indexChanged:!!g,filtered:f,oldIndex:b,newIndex:e,wasFiltered:o,meta:u};if(j){d.oldKey=h}if(p){d.modified=p}++a.generation;a.beginUpdate();a.notify('beforeitemchange',[d]);if(j){a.updateKey(c,h,d)}if(m||q){a.splice(e,q,m)}if(g>0){d.newIndex--}else if(g<0){d.oldIndex++}a.notify(f?'filtereditemchange':'itemchange',[d]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,(f===undefined)?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=(d===1)&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return (h&&b)?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(F,E,L){var b=this,D=b.sorted&&b.getAutoSort(),G=b.map,o=b.items,r=b.length,n=(E instanceof Array)?b.decodeRemoveItems(E):null,H=!n,K=Ext.Number,J=K.clipIndices(r,[F,H?E:0],K.Clip.COUNT),m=J[0],z=J[1],w=z-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||((h||n)?b.getIndices():null),e=null,i=w?[m]:null,l=null,t=b.getSource(),j,B,y,a,u,g,v,f,s,q,x,I;if(t&&!t.updating){if(H){n=[];for(a=0;a<w;++a){n.push(o[m+a])}}if(m<r){a=t.indexOf(o[m])}else {a=t.length}b.requestedIndex=F;t.splice(a,n,p);delete b.requestedIndex;return b}if(h){c=p;l=[];A={};if(D){I=b.getSorters();if(h>1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a<h;++a){f=b.getKey(u=p[a]);if((v=A[f])!==undefined){(x||(x={}))[v]=1}else {g=k[f];if(g<m||z<=g){(i||(i=[])).push(g)}}A[f]=a;l.push(f)}if(x){s=l;c=[];l=[];c.$cloned=!0;for(a=0;a<h;++a){if(!x[a]){u=p[a];c.push(u);l.push(s[a])}}h=c.length}e={items:c,keys:l}}for(a=n?n.length:0;a-->0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;y=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;a<q;++a){f=b.getKey(u=o[g=i[a]]);if(!(f in G)){continue}delete G[f];if(!j||g>(j.at+B.length)){y.push(j={at:g,items:(B=[]),keys:(s=[]),map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g<d-1){--d}if(w>1&&g===m){--w;i[a--]=++m}}if(e){e.at=d}for(v=y.length;v-->0;){j=y[v];a=j.at;q=j.items.length;if(a+q<r){b.indices=k=null}b.length=r-=q;o.splice(a,q);if(k){s=j.keys;for(a=0;a<q;++a){delete k[s[a]]}}++b.generation;b.notify('remove',[j])}}if(e){if(D&&h>1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=I.findInsertionIndex(e.items[0],o,b.getSortFn(),F)}}if(d===r){z=d;for(a=c.length-1;a>=0;--a){o[z+a]=c[a]}k=b.indices;if(k){for(a=0;a<h;++a){k[l[a]]=d+a}}}else {b.indices=null;Ext.Array.insert(o,d,c)}for(a=0;a<h;++a){G[l[a]]=c[a]}b.length+=h;e.at=d;e.atItem=d===0?null:o[d-1];++b.generation;b.notify('add',[e])}}b.endUpdate();return b},update:function(c,b){var a=this;a.beginUpdate();try{return c.call(b||a,a)}catch(d){throw d}finally{a.endUpdate()}},updateKey:function(d,b,h){var a=this,f=a.map,e=a.indices,g=a.getSource(),c;if(g&&!g.updating){g.updateKey(d,b)}else if((c=a.getKey(d))!==b){if(f[b]===d&&!(c in f)){delete f[b];a.updating++;a.generation++;f[c]=d;if(e){e[c]=e[b];delete e[b]}a.notify('updatekey',[Ext.apply({item:d,newKey:c,oldKey:b},h)]);a.updating--}}},findInsertIndex:function(f){var d=this.getSource(),e=d.items,b=d.indexOf(f)-1,c,a;while(b>-1){c=e[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return 0},onCollectionAdd:function(l,i){var a=this,j=i.atItem,d=i.items,h=a.requestedIndex,c,b,e,f,g,k;if(!a.sorted){if(h!==undefined){b=h}else if(j){b=a.indexOf(j);if(b===-1){b=a.findInsertIndex(d[0])}else {++b}}else {b=0}}if(a.getAutoFilter()&&a.filtered){for(f=0,k=d.length;f<k;++f){g=d[f];if(a.isItemFiltered(g)){if(!e){e=d.slice(0,f)}if(!c){c=[]}c.push(g)}else if(e){e.push(g)}}}a.splice((b<0)?a.length:b,0,e||d);if(c){a.notify('filteradd',[c])}},onCollectionBeforeItemChange:function(b,a){this.onCollectionUpdateKey=null;if(!this.sourceUpdating){this.notify('beforeitemchange',[a])}},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:function(){delete this.onCollectionUpdateKey},onCollectionRefresh:function(l){var a=this,j={},h={},c=a.items,d=l.items,k=a.getFilterFn(),b,i,g,e,f;if(a.filtered&&a.getAutoFilter()){for(b=0,f=0,e=d.length;b<e;b++){if(k(d[b])){c[f++]=d[b]}}c.length=f}else {c.length=0;c.push.apply(c,d)}if(a.sorted){a.sortData(c)}a.length=e=c.length;a.map=j;a.indices=h;for(b=0;b<e;++b){g=a.getKey(i=c[b]);j[g]=i;h[g]=b}++a.generation;a.notify('refresh')},onCollectionRemove:function(b,a){this.splice(0,a.items)},onCollectionUpdateKey:function(b,a){this.updateKey(a.item,a.oldKey,a)},_aggregators:{average:function(e,a,b,d,f){var c=b-a;return c&&this._aggregators.sum.call(this,e,a,b,d,f)/c},bounds:function(h,g,i,f,e){for(var a,b,c,d=g;d<i;++d){a=h[d];a=(e?a[e]:a)[f];if(!(a<b)){b=a}if(!(a>c)){c=a}}return [c,b]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;c<l;++c){b=k[c];a=(f?b[f]:b)[i];if(!(a<g)){g=a;e=b}if(!(a>h)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,c){for(var a,d=0,b=f;b<h;++b){a=g[b];a=(c?a[c]:a)[e];d+=a}return d}},_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(c){var b=this,a=b.observers;if(!a){b.observers=a=[]}if(b.notifying){b.observers=a=a.slice(0)}a.push(c);if(a.length>1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,Ext.util.Grouper)}return a},decodeItems:function(e,d){var g=this,a=(d===undefined)?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b<f;++b){e=a.getKey(d[b]);c[e]=b}}return c},notify:function(d,b){var a=this,e=a.observers,g=a._eventToMethodMap[d],j=0,c,i,f,h;b=b||[];if(e&&g){a.notifying=!0;for(c=0,i=e.length;c<i;++c){f=(h=e[c])[g];if(f){if(!j++){b.unshift(a)}f.apply(h,b)}}a.notifying=!1}if(!a.hasListeners){return}if(a.hasListeners[d]){if(!j){b.unshift(a)}a.fireEventArgs(d,b)}},getFilterFn:function(){return this.getFilters().getFilterFn()},getFilters:function(b){var a=this._filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},isItemFiltered:function(a){return !this.getFilters().filterFn(a)},onFilterChange:function(f){var a=this,b=a.getSource(),c,d,e;if(!b){c=a.getExtraKeys();if(c){d={};for(e in c){d[e]=c[e].clone(a)}}b=new Ext.util.Collection({keyFn:a.getKey,extraKeys:d,rootProperty:a.getRootProperty()});if(a.length){b.add(a.items)}a.setSource(b);a.autoSource=b}else {if(b.destroyed){return}if(b.length||a.length){a.onCollectionRefresh(b)}}a.notify('filter')},applyFilters:function(b,a){if(!b||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.splice(0,a.length,b)}return a},updateFilters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateFilters',a)}if(b){b.on({endupdate:'onEndUpdateFilters',scope:a,priority:a.$endUpdatePriority});b.$filterable=a}a.onEndUpdateFilters(b)},onEndUpdateFilters:function(a){var b=this,d=b.filtered,c=!!a&&(a.getFilterCount()>0);if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,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(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(d,c,a,b){return Ext.Array.findInsertionIndex(d,c||this.items,a||this.getSortFn(),b)},applySorters:function(b,a){if(!b||b.isSorterCollection){return b}if(b){if(!a){a=this.getSorters()}a.splice(0,a.length,b)}return a},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty(),groupConfig:a.getGroupConfig()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c&&!c.destroyed){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});if(a.manageSorters){b.$sortable=a}}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=(a.grouped&&a.getAutoGroup())||(b&&b.length>0);if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e<k;e=j){b=i[e];for(;g<m;++g){if(p(b,o=n[g])<0){break}a.push(o)}if(g===m){h[c++]={at:a.length,itemAt:a[a.length-1],items:(l=[])};if(c>1){h[c-2].next=h[c-1]}for(;e<k;++e){l.push(b=i[e]);a.push(b)}break}h[c++]={at:a.length,itemAt:a[a.length-1],items:(l=[b])};if(c>1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j<k;++j){if(p(b=i[j],o)>=0){break}a.push(b);l.push(b)}}for(;g<m;++g){a.push(n[g])}for(d=0;d<k;++d){r[q[d]]=i[d]}f.length=a.length;++f.generation;f.indices=null;for(d=0;d<c;++d){f.notify('add',[h[d]])}},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(a,b){var c=this.autoSource;if(b){if(!b.destroyed){b.removeObserver(this)}if(b===c){c.destroy();this.autoSource=null}}if(a){a.addObserver(this);if(a.length||this.length){this.onCollectionRefresh(a)}}}},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(a,c,d){return this.aggregate(a,b,c,d)};a[b+'ByGroup']=function(a){return this.aggregateByGroup(a,b)}})}));(Ext.cmd.derive('Ext.data.Range',Ext.Base,{isDataRange:!0,begin:0,buffer:0,end:0,length:0,store:null,constructor:function(b){var a=this,c,d;Ext.apply(a,b);d=a.store;if(!(c=d.activeRanges)){d.activeRanges=c=[]}c.push(a);a.refresh();if('begin' in b){a.begin=a.end=0;a['goto'](b.begin,b.end)}},destroy:function(){var a=this,c=a.store,b=c&&c.activeRanges;Ext.destroy(a.storeListeners);if(b){Ext.Array.remove(b,a)}a.callParent()},"goto":function(d,e){var a=this,c=a.buffer,b=a.task;a.begin=d;a.end=e;a.length=e-d;if(c>0){if(!b){a.task=b=new Ext.util.DelayedTask(a.doGoto,a)}b.delay(c)}else {a.doGoto()}},privates:{lastBegin:0,lastEnd:0,doGoto:Ext.privateFn,refresh:function(){this.records=this.store.getData().items}}},1,0,0,0,0,0,[Ext.data,'Range'],0));(Ext.cmd.derive('Ext.util.ObjectTemplate',Ext.Base,{isObjectTemplate:!0,excludeProperties:{},valueRe:/^[{][a-z\.]+[}]$/i,statics:{create:function(a,b){return a.isObjectTemplate?a:new Ext.util.ObjectTemplate(a,b)}},constructor:function(a,b){Ext.apply(this,b);this.template=a},apply:function(b){var a=this;delete a.apply;a.apply=a.compile(a.template);return a.apply(b)},privates:{compile:function(a){var e=this,g=e.excludeProperties,d,b,f,c;if(Ext.isString(a)){if(a.indexOf('{')<0){c=function(){return a}}else if(e.valueRe.test(a)){a=a.substring(1,a.length-1).split('.');c=function(d){for(var b=d,c=0;b&&c<a.length;++c){b=b[a[c]]}return b}}else {a=new Ext.XTemplate(a);c=function(b){return a.apply(b)}}}else if(!a||Ext.isPrimitive(a)||Ext.isFunction(a)){c=function(){return a}}else if(a instanceof Array){d=[];for(b=0,f=a.length;b<f;++b){d[b]=e.compile(a[b])}c=function(e){var c=[],b;for(b=0;b<f;++b){c[b]=d[b](e)}return c}}else {d={};for(b in a){if(!g[b]){d[b]=e.compile(a[b])}}c=function(f){var e={},b,c;for(b in a){c=g[b]?a[b]:d[b](f);if(c!==undefined){e[b]=c}}return e}}return c}}},1,0,0,0,0,0,[Ext.util,'ObjectTemplate'],0));(Ext.cmd.derive('Ext.data.schema.Role',Ext.Base,{isRole:!0,left:!0,owner:!1,side:'left',isMany:!1,defaultReaderType:'json',_internalReadOptions:{recordsOnly:!0,asRoot:!0},constructor:function(c,d){var a=this,b=d.extra;Ext.apply(a,d);if(b){b=Ext.apply({},b);delete b.type;Ext.apply(a,b);delete a.extra}a.association=c;if(c.owner===a.side){c.owner=a;a.owner=!0}},processUpdate:function(){Ext.raise('Only the "many" for an association may be processed. "'+this.role+'" is not valid.')},processLoad:function(d,b,a,c){return a},checkMembership:Ext.emptyFn,adoptAssociated:function(c,b){var a=this.getAssociatedItem(c);if(a){b.adopt(a)}},$roleFilterId:'$associationRoleFilter',createAssociationStore:function(d,k,i,l){var a=this,g=a.association,e=g.getFieldName(),j=g.isManyToMany,h=a.storeConfig,f=k.getId(),c={asynchronousLoad:!1,model:a.cls,role:a,session:d,associatedEntity:k,disableMetaChangeEvent:!0,pageSize:null,remoteFilter:!0,trackRemoved:!d},b;if(j){c.filters=[{id:a.$roleFilterId,property:a.inverse.field,value:f,exactMatch:!0}]}else if(e){c.filters=[{id:a.$roleFilterId,property:e,value:f,exactMatch:!0}];c.foreignKeyName=e}if(h){Ext.apply(c,h)}b=Ext.Factory.store(c);a.onStoreCreate(b,d,f);if(!j||d){b.on({scope:a,add:'onAddToMany',remove:'onRemoveFromMany',clear:'onRemoveFromMany'})}if(i){b.loadData(i)}b.complete=!!l;return b},onStoreCreate:Ext.emptyFn,getAssociatedStore:function(f,b,d,a,v){var k=this,o=k.getStoreName(),c=f[o],w=c,i=f.session,p=b&&b.reload,j=f.$source,h=!1,t=!1,s,e,l,u,q,r,g,m,n;if(!c){if(i){if(j){t=j.phantom}if(!a&&j){g=j[o];if(g&&!g.isLoading()){a=[];q=g.getData().items;for(l=0,u=q.length;l<u;++l){r=q[l];a.push(i.getRecord(r.self,r.id))}h=!!g.complete;s=!0}}if(!s){m=!!a;a=k.findRecords(i,f,a,v);if(!m&&(!a||!a.length)){a=null}h=t||m}}else {h=!!a}c=k.createAssociationStore(i,f,a,h||f.phantom);c.$source=g;if(!a&&(k.autoLoad||b)){p=!0}f[o]=c}if(b){if(p||c.isLoading()){c.on('load',function(h,i,c,g){e=[h,g];d=d||b.scope||f;if(c){Ext.callback(b.success,d,e)}else {Ext.callback(b.failure,d,e)}e.push(c);Ext.callback(b,d,e);Ext.callback(b.callback,d,e)},null,{single:!0})}else {e=[c,null];d=d||b.scope||f;Ext.callback(b.success,d,e);e.push(!0);Ext.callback(b,d,e);Ext.callback(b.callback,d,e)}}n=c.isLoading();if(p){if(!n){c.load()}}else if(w&&a&&!n){c.loadData(a)}return c},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 b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.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(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0;a=null}}else if(a){e=!a.isLoading()}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,m=a.session,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];a.onAssociatedRecordSet(c,f);if(j){c[j](a)}}}else {k=(a.changingKey&&!d.isMany)||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}},1,0,0,0,0,0,[Ext.data.schema,'Role'],0));(Ext.cmd.derive('Ext.data.schema.Association',Ext.Base,{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},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:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},onIdChanged:function(a,e,d){var b=this.getAssociatedItem(a),c=this.association.getFieldName();if(!a.session&&b&&c){b.set(c,d)}},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 c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}a.onAssociatedRecordSet(b,this)}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,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(c,f){var b=this,d=b.association.field,a=b.getAssociatedItem(c),e;if(b.inverse.owner){if(f&&d){e=c.get(d.name);if(e||e===0){a=f.getEntry(b.cls,e).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(d){c.set(d.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else if(f&&g){b[d]=f.peekRecord(g,c)||undefined}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=(k&&k[a.id])||(e[g]===undefined)}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,'OneToOne'],0));(Ext.cmd.derive('Ext.data.schema.ManyToOne',Ext.data.schema.Association,{isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,i,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c<g;++c){a[c].drop()}}e.destroy();d[b.getStoreName()]=null}else if(f){a=f.getRefs(d,b);if(a){for(h in a){a[h].drop()}}}},onIdChanged:function(e,i,g){var f=this.association.getFieldName(),d=this.getAssociatedItem(e),b,a,h,c;if(d){c=d.getFilters().get(this.$roleFilterId);if(c){c.setValue(g)}if(!e.session&&f){b=d.getDataSource().items;for(a=0,h=b.length;a<h;++a){b[a].set(f,g)}}}},processUpdate:function(f,i){var d=this,h=d.inverse.cls,g=i.R,c,a,b,e;if(g){for(c in g){a=f.peekRecord(h,c);if(a){e=f.getEntityList(d.cls,g[c]);b=d.getAssociatedItem(a);if(b){b.loadData(e);b.complete=!0}else {a[d.getterName](null,null,e)}}else {f.onInvalidAssociationEntity(h,c)}}}},findRecords:function(l,h,e,k){var d=e,b=l.getRefs(h,this,!0),j=this.association.field,i,a,c,g,m,f;if(j&&(b||k)){i=j.name;d=[];if(e){f={};for(g=0,m=e.length;g<m;++g){a=e[g];c=a.id;if(b&&b[c]){d.push(a)}else if(k&&a.data[i]===undefined){d.push(a);a.data[i]=h.id;l.updateReference(a,j,h.id,undefined)}f[c]=!0}}if(b){for(c in b){if(!f||!f[c]){d.push(b[c])}}}}return d},processLoad:function(e,d,c,a){var b=c;if(a){b=this.findRecords(a,d,c,!0)}this.onLoadMany(d,b,a);return b},adoptAssociated:function(f,d){var c=this.getAssociatedItem(f),b,a,e;if(c){c.setSession(d);b=c.getData().items;for(a=0,e=b.length;a<e;++a){d.adopt(b[a])}}},createGetter:function(){var a=this;return function(c,d,b){return a.getAssociatedStore(this,c,d,b,!0)}},createSetter:null,onAddToMany:function(c,a){var b=c.getAssociatedEntity();if(this.association.field){this.syncFK(a,b,!1)}else {this.setInstances(b,a)}},onLoadMany:function(b,a,c){this.setInstances(b,a,c)},onRemoveFromMany:function(b,a){if(this.association.field){this.syncFK(a,b.getAssociatedEntity(),!0)}else {this.setInstances(null,a)}},read:function(b,j,i,h){var c=this,g=c.inverse.getInstanceName(),a=c.callParent([b,j,i,h]),e,f,d;if(a){e=b[c.getterName](null,null,a);delete b.data[c.role];a=e.getData().items;for(d=0,f=a.length;d<f;++d){a[d][g]=b}}},setInstances:function(c,i,j){var k=this.inverse.getInstanceName(),h=c?c.getId():null,d=this.association.field,l=i.length,b,a,e,f,g;for(b=0;b<l;++b){a=i[b];a[k]=c;if(d){g=d.name;f=a.data;e=f[g];if(e!==h){f[g]=h;if(j){j.updateReference(a,d,h,e)}}}}},syncFK:function(c,d,f){var i=this.association.getFieldName(),g=this.inverse,k=g.setterName,j=g.getInstanceName(),h=c.length,l=d.getId(),e,a,b;while(h-->0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[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(d,b){var c=this.association.field,a;if(c){a=this.getSessionStore(d,b.get(c.name));if(a&&!a.contains(b)){a.add(b)}}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=g.length-1;h>=0;h--){a=g[h];if(a.isStore){e=a.getAssociatedEntity();if(e&&e.self===c.cls&&e.getId()===l){a.remove(b)}}}}}}if(c.owner&&d===null){c.association.schema.queueKeyCheck(b,c)}},checkKeyForDrop:function(a){var b=this.association.field;if(a.get(b.name)===null){a.drop()}},getSessionStore:function(c,d){var b=this.cls,a;if(b){a=c.peekRecord(b,d);if(a){return this.inverse.getAssociatedItem(a)}}},read:function(b,f,e,d){var c=this.callParent([b,f,e,d]),a;if(c){a=c[0];if(a){b[this.getInstanceName()]=a;delete b.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:!0,isToMany:!0,kind:'many-to-many',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,digitRe:/^\d+$/,findRecords:function(i,k,f){var l=i.getMatrixSlice(this.inverse,k.id),g=l.members,h=[],m=this.cls,d,e,j,a,c,b;if(f){d={};for(e=0,j=f.length;e<j;++e){b=f[e];a=b.id;c=g[a];if(!(c&&c[2]===-1)){h.push(b)}d[a]=!0}}for(a in g){c=g[a];if(!d||!d[a]&&(c&&c[2]!==-1)){b=i.peekRecord(m,a);if(b){h.push(b)}}}return h},onIdChanged:function(b,d,c){var a=this.getAssociatedItem(b);if(a){a.getFilters().get(this.$roleFilterId).setValue(c)}},processLoad:function(e,d,b,c){var a=b;if(c){a=this.findRecords(c,d,b);this.onAddToMany(e,a,!0)}return a},processUpdate:function(b,f){var a=this,i=a.inverse.cls,h=f.R,e,c,d,g;if(h){for(e in h){c=b.peekRecord(i,e);if(c){g=b.getEntityList(a.cls,h[e]);d=a.getAssociatedItem(c);if(d){d.loadData(g);d.complete=!0}else {c[a.getterName](null,null,g)}}else {b.onInvalidAssociationEntity(i,e)}}}a.processMatrixBlock(b,f.C,1);a.processMatrixBlock(b,f.D,-1)},checkMembership:function(l,i){var d=l.getMatrix(this.association,!0),g,j,k,f,e,h,c,m,b,a;if(!d){return}g=this.left?d.right:d.left;j=g.inverse.role.cls;k=this.inverse;e=g.slices;if(e){f=e[i.id];if(f){c=f.members;for(h in c){m=c[h];if(m[2]!==-1){b=l.peekRecord(j,h);if(b){a=k.getAssociatedItem(b);if(a){a.matrixUpdate=1;a.add(i);a.matrixUpdate=0}}}}}}},onStoreCreate:function(d,c,e){var b=this,a;if(c){a=c.getMatrixSlice(b.inverse,e);a.attach(d);a.notify=b.onMatrixUpdate;a.scope=b}},processMatrixBlock:function(f,b,g){var e=this.inverse,d=this.digitRe,c,a;if(b){for(a in b){if(d.test(a)){a=parseInt(a,10)}c=f.getMatrixSlice(e,a);c.update(b[a],g)}}},createGetter:function(){var a=this;return function(c,d,b){return a.getAssociatedStore(this,c,d,b,!1)}},onAddToMany:function(a,b,c){if(!a.matrixUpdate){a.matrixUpdate=1;a.matrix.update(b,c===!0?0:1);a.matrixUpdate=0}},onRemoveFromMany:function(a,b){if(!a.matrixUpdate){a.matrixUpdate=1;a.matrix.update(b,-1);a.matrixUpdate=0}},read:function(a,f,e,d){var b=this,c=b.callParent([a,f,e,d]);if(c){a[b.getterName](null,null,c);delete a.data[b.role]}},onMatrixUpdate:function(f,e,g){var a=f.store,b,c,d;if(a&&!a.loading&&!a.matrixUpdate){a.matrixUpdate=1;b=a.indexOfId(e);if(g<0){if(b>=0){a.remove([b])}}else if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b<f;++b){d.adopt(c[b])}}}},function(){var a=this;Ext.ClassManager.onCreated(function(){Ext.data.schema.ManyToMany.prototype.Right=Ext.define(null,{extend:a,left:!1,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:!0,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(a){if(this.isTransnumeral(a)){return a}var e=this.plurals,f=e.length,d,b,c;for(c=0;c<f;c++){d=e[c];b=d[0];if(b==a||(b.test&&b.test(a))){return a.replace(b,d[1])}}return a},singularize:function(a){if(this.isTransnumeral(a)){return a}var e=this.singulars,f=e.length,d,b,c;for(c=0;c<f;c++){d=e[c];b=d[0];if(b==a||(b.test&&b.test(a))){return a.replace(b,d[1])}}return a},classify:function(a){return Ext.String.capitalize(this.singularize(a))},ordinalize:function(a){var c=parseInt(a,10),d=c%10,b=c%100;if(11<=b&&b<=13){return a+"th"}else {switch(d){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd";default:return a+"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:!0,capitalize:function(a){return Ext.String.capitalize(a)},fieldRole:function(a){var b=a.match(this.endsWithIdRe,'');if(b){a=a.substr(0,a.length-(b[1]||b[2]).length)}return this.apply('uncapitalize',a)},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(c){if(c.indexOf('.')<0){return c}var a=c.split('.'),b=a.length;while(b-->1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},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(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d<g;++d){a=e.apply(f[d],a)}}i[b]=a}return a}},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:!0,type:'default',statics:{instances:{},get:function(a){var f=this,g=f.instances,c='default',e=a&&Ext.isString(a),b,d;if(a){if(a.isSchema){return a}c=e?a:(a.id||c)}if(!(b=g[c])){g[c]=b=f.create(a);b.id=c}else if(a&&!e){d=Ext.merge({},b.config);Ext.merge(d,a);b.setConfig(d);b.config=d}return b},lookupEntity:function(b){var a=null,e=this.instances,c,d,f;if(b){if(b.isEntity){a=b.self}else if(Ext.isFunction(b)){a=b}else if(Ext.isString(b)){a=Ext.ClassManager.get(b);if(a&&(!a.prototype||!a.prototype.isEntity)){a=null}if(!a){for(d in e){f=e[d];c=f.getEntity(b);if(c){if(a){Ext.raise('Ambiguous entity name "'+b+'". Defined by schema "'+a.schema.type+'" and "'+d+'"')}a=c}}}if(!a){Ext.raise('No such Entity "'+b+'".')}}}return a}},assocCount:0,entityCount:0,config:{defaultIdentifier:null,keyCheckDelay:10,namer:'default',namespace:null,proxy:{type:'ajax',url:'{prefix}/{entityName}'},urlPrefix:''},onClassExtended:function(c,b){var a=b.alias;if(a&&!b.type){if(!Ext.isString(a)){a=a[0]}c.prototype.type=a.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(a){if(a){var b=a.length-1;if(a.charAt(b)!=='.'){a+='.'}}return a},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])===!1){break}}}},eachEntity:function(d,c){var b=this.entities,a;for(a in b){if(b.hasOwnProperty(a)){if(d.call(c,a,b[a].cls)===!1){break}}}},getAssociation:function(b){var a=this.associations[b];return a||null},getEntity:function(b){var a=this.entityClasses[b]||this.entities[b];return (a&&a.cls)||null},getEntityName:function(c){var d=this.getNamespace(),b,a;if(typeof c==='string'){a=c}else {a=c.$className||null}if(a){if(d){b=d.length;if(a.substring(0,b)!==d){return a}}if(b){a=a.substring(b)}}return a},hasAssociations:function(a){a=a.entityName||a;return !!this.associationEntityMap[a]},hasEntity:function(b){var a=this.getEntityName(b);return !!(this.entities[a]||this.entityClasses[a])},addMatrix:function(n,k,l,j,i){var a=this,h=a.getNamer(),m=a.associations,g=a.entities,c=j.type,b=i.type,p=j.field||h.apply('idField',c),o=i.field||h.apply('idField',b),r=j.role||h.matrixRole(l,c),q=i.role||h.matrixRole(l,b),d,f,e;f=g[c]||(g[c]={cls:null,name:c,associations:{}});e=g[b]||(g[b]={cls:null,name:b,associations:{}});++a.assocCount;m[k]=d=new Ext.data.schema.ManyToMany({name:k,schema:a,definedBy:n,left:{cls:f.cls,type:c,role:r,field:p,associationKey:j.associationKey},right:{cls:e.cls,type:b,role:q,field:o,associationKey:i.associationKey}});f.associations[d.right.role]=d.right;e.associations[d.left.role]=d.left;if(f.cls){a.associationEntityMap[f.cls.entityName]=!0}if(e.cls){a.associationEntityMap[e.cls.entityName]=!0}a.decorateModel(d)},addReference:function(g,d,c,n,p){var f=this,j=f.getNamer(),q=f.entities,k=f.associations,l=g.entityName,a=c.association,s=c.child,r=c.parent,b=c.role,e=c.type||r||s,m=c.inverse,o=Ext.isString(m)?{role:m}:m,h=o&&o.role,i,t;if(!b){if(!d||c.legacy){b=j.apply('uncapitalize',e)}else {b=j.apply('fieldRole',d.name)}}if(!h){h=j.inverseFieldRole(l,n,b,e)}if(!a){if(n){a=j.oneToOne(g,h,e,b)}else {a=j.manyToOne(g,h,e,b)}}if(p&&a in k){if(p(k[a],a,h,b)!==!1){return}}i=q[e]||(q[e]={cls:null,name:e,associations:{}});t=n?Ext.data.schema.OneToOne:Ext.data.schema.ManyToOne;a=new t({name:a,owner:s?'left':(r?'right':null),definedBy:g,schema:f,field:d,nullable:d?!!d.allowBlank:!0,left:{cls:g,type:l,role:h,extra:o},right:{cls:i.cls,type:e,role:b,extra:c},meta:c});g.associations[b]=a.right;i.associations[h]=a.left;if(d){d.reference=a.right;g.references.push(d)}++f.assocCount;f.associationEntityMap[l]=!0;if(i.cls){f.associationEntityMap[i.cls.entityName]=!0}k[a.name]=a;if(a.right.cls){f.decorateModel(a)}},privates:{addEntity:function(a){var c=this,i=c.entities,e=a.entityName,b=i[e],j=a.fields,d,g,f,k,h;if(!b){i[e]=b={name:e,associations:{}}}else {d=b.associations;for(h in d){d[h].inverse.cls=a;c.associationEntityMap[e]=!0;c.decorateModel(d[h].association)}}b.cls=a;a.prototype.associations=a.associations=b.associations;c.entityClasses[a.$className]=b;++c.entityCount;for(f=0,k=j.length;f<k;++f){g=j[f];if(g.reference){c.addReferenceDescr(a,g)}}},addMatrices:function(c,a){var e=this,b,f,d;if(Ext.isString(a)){e.addMatrixDescr(c,null,a)}else if(a[0]){for(b=0,f=a.length;b<f;++b){e.addMatrixDescr(c,null,a[b])}}else {for(d in a){e.addMatrixDescr(c,d,a[d])}}},addMatrixDescr:function(i,f,a){var h=this,d=i.entityName,k=h.associations,e=h.getNamer(),c=a.left,b=a.right,j,g;if(Ext.isString(a)){if(a.charAt(0)==='#'){c={type:d};b={type:a.substring(1)}}else if(a.charAt(j=a.length-1)==='#'){c={type:a.substring(0,j)};b={type:d}}else if(e.apply('multiRole',d)<e.apply('multiRole',a)){c={type:d};b={type:a}}else {c={type:a};b={type:d}}}else {g=a.relation;if(c||(!b&&e.apply('multiRole',d)<e.apply('multiRole',a.type))){if(!c||c===!0){c={type:d}}else {c=Ext.apply({type:d},c)}b=a}else {if(!b||b===!0){b={type:d}}else {b=Ext.apply({type:d},b)}c=a}}if(!f){f=e.manyToMany(g,c.type,b.type)}if(!(f in k)){h.addMatrix(i,f,g,c,b)}},addReferenceDescr:function(c,b){var d=this,a=b.$reference;if(Ext.isString(a)){a={type:a}}else {a=Ext.apply({},a)}d.addReference(c,b,a,b.unique)},addBelongsTo:function(a,b){this.addKeylessSingle(a,b,!1)},addHasOne:function(a,b){this.addKeylessSingle(a,b,!0)},addKeylessSingle:function(c,a,e){var d,b;a=Ext.apply({},this.checkLegacyAssociation(c,a));a.type=this.getEntityName(a.child||a.parent||a.type);d=a.foreignKey||(a.type.toLowerCase()+'_id');b=c.getField(d);a.fromSingle=!0;if(b){b.$reference=a;b.unique=!0;a.legacy=!0}this.addReference(c,b,a,e)},addHasMany:function(f,a){var i=this,m=i.entities,g=i.pending,e,b,d,h,k,c,l,j;a=Ext.apply({},this.checkLegacyAssociation(f,a));a.type=this.getEntityName(a.child||a.parent||a.type);b=a.type;h=m[b];e=h&&h.cls;if(e){b=f.entityName;k=a.foreignKey||(b.toLowerCase()+'_id');delete a.foreignKey;j=Ext.apply({},a.inverse);delete a.inverse;c=Ext.apply({},a);delete c.type;a=Ext.apply({type:b,inverse:c},j);l=c.child;if(l){delete c.child;a.parent=b}d=e.getField(k);if(d){d.$reference=a;a.legacy=!0}i.addReference(e,d,a,!1)}else {if(!g[b]){g[b]=[]}g[b].push([f,a])}},checkLegacyAssociation:function(c,a){if(Ext.isString(a)){a={type:a}}else {a=Ext.apply({},a)}if(a.model){a.type=a.model;delete a.model}var b=a.associatedName||a.name;if(b){delete a.associatedName;delete a.name;a.role=b}return a},afterKeylessAssociations:function(f){var c=this.pending,d=f.entityName,b=c[d],a,e;if(b){for(a=0,e=b.length;a<e;++a){this.addHasMany.apply(this,b[a])}delete c[d]}},clear:function(c){var a=this,b=a.timer;delete a.setConfig;if(b){window.clearTimeout(b);a.timer=null}a.associations={};a.associationEntityMap={};a.entities={};a.entityClasses={};a.pending={};a.assocCount=a.entityCount=0;if(c){a.setNamespace(null)}},constructProxy:function(c){var b=this,a=Ext.Object.chain(c),d=b.getProxy();a.schema=b;a.prefix=b.getUrlPrefix();return d.apply(a)},applyDecoration:function(a){var g=this,f=a.inverse.cls,e=g.getNamer(),b,c,d;if(f&&!a.decorated){a.decorated=!0;d=f.prototype;if(!(b=a.getterName)){a.getterName=b=e.getterName(a)}d[b]=a.createGetter();if(a.createSetter){if(!(c=a.setterName)){a.setterName=c=e.setterName(a)}d[c]=a.createSetter()}}},decorateModel:function(a){this.applyDecoration(a.left);this.applyDecoration(a.right)},processKeyChecks:function(g){var a=this,b=a.keyCheckQueue,e=a.timer,f,c,d;if(e){window.clearTimeout(e);a.timer=null}if(!b){return}do{b=a.keyCheckQueue;a.keyCheckQueue=[];for(c=0,f=b.length;c<f;++c){d=b[c];d.role.checkKeyForDrop(d.record)}}while(g&&a.keyCheckQueue.length)},queueKeyCheck:function(d,e){var a=this,b=a.keyCheckQueue,c=a.timer;if(!b){a.keyCheckQueue=b=[]}b.push({record:d,role:e});if(!c){a.timer=c=Ext.defer(a.processKeyChecks,a.getKeyCheckDelay(),a)}},rankEntities:function(){var d=this,e=d.entities,b=Ext.Object.getKeys(e),f=b.length,c,a;d.nextRank=1;b.sort();for(a=0;a<f;++a){c=e[b[a]].cls;if(!c.rank){d.rankEntity(c)}}},rankEntity:function(d){var c=d.associations,b,a,e;for(e in c){a=c[e];if(!a.left&&a.association.field){b=a.cls;if(!b.rank){this.rankEntity(b)}}}d.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:!1,$configStrict:!1,config:{filters:null,autoDestroy:undefined,storeId:null,statefulFilters:!1,sorters:null,remoteSort:{lazy:!0,$value:!1},remoteFilter:{lazy:!0,$value:!1},groupField:undefined,groupDir:'ASC',grouper:null,pageSize:25,autoSort:null,reloadOnClearSorters:!1},currentPage:1,loading:!1,isStore:!0,updating:0,constructor:function(c){var a=this,b;a.isInitializing=!0;a.mixins.observable.constructor.call(a,c);a.isInitializing=!1;b=a.getStoreId();if(!b&&(c&&c.id)){a.setStoreId(b=c.id)}if(b){Ext.data.StoreManager.register(a)}},createActiveRange:function(a){var b=Ext.apply({store:this},a);return new Ext.data.Range(b)},syncActiveRanges:function(){var b=this.activeRanges,c=b&&b.length,a;for(a=0;a<c;a++){b[a].refresh()}},getCount:function(){var a=this.getData();return a?a.getCount():0},rangeCached:function(a,b){return this.getData().getCount()>=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(b,c,a){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(b),c)},this,a)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!a&&b!==!1){this.setFilters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return a},applyFilters:function(c,a){var b;if(!a){a=this.createFiltersCollection();b=!0}a.add(c);if(b){this.onRemoteFilterSet(a,this.getRemoteFilter())}return a},getSorters:function(b){var a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!a&&b!==!1){this.setSorters([]);a=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return a},applySorters:function(c,a){var b;if(!a){a=this.createSortersCollection();b=!0}a.add(c);if(b){this.onRemoteSortSet(a,this.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateAutoSort:function(a){this.getData().setAutoSort(a)},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++&&this.hasListeners.beginupdate){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){if(this.hasListeners.endupdate){this.fireEvent('endupdate')}this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.hasListeners.beforedestroy){a.fireEvent('beforedestroy',a)}a.destroying=!0;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.doDestroy();if(a.hasListeners.destroy){a.fireEvent('destroy',a)}a.destroying=!1;a.callParent()},doDestroy:Ext.emptyFn,sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,d=!0,b=a.getSorters(!1),c;if(a.settingGroups||!b){return}b=b.getRange();c=b.length;if(a.getRemoteSort()){if(b.length||a.getReloadOnClearSorters()){d=!1;a.load({callback:function(){a.fireEvent('sort',a,b)}})}}else if(c){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}if(d){a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter,c=a.getFilters(!1);if(!c){return}if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.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(b,e){var a=this,d=a.getSorters(!1),f=b||(d&&d.length),c=a.getData();if(b&&typeof b==='string'){b={property:b,direction:e||a.getGroupDir()}}a.settingGroups=!0;if(b===c.getGrouper()){c.updateGrouper(b)}else {c.setGrouper(b)}delete a.settingGroups;if(f){if(a.getRemoteSort()){if(!a.isInitializing){a.load({scope:a,callback:a.fireGroupChange})}}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){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:{_metaProperties:{count:'getCount',first:'first',last:'last',loading:'hasPendingLoad',totalCount:'getTotalCount'},interpret:function(c){var b=this,a=b._metaProperties[c];return a&&b[a]()},loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate','onFilterEndUpdate',this)}},onRemoteSortSet:function(d,c){var b=this,a;if(d){d[c?'on':'un']('endupdate','onSorterEndUpdate',b);a=b.getData();if(a){a[c?'un':'on']('beforesort','onBeforeCollectionSort',b)}}}},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:!0,$configPrefixed:!1,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(d){var b=this,h=d.fields,k=d.data,g,a,l,c,i,f,j,e;for(c=0,i=h.length;c<i;++c){a=h[c];e=a.name;j=k[e];if(a.validate&&!a.validate.$nullFn){g=b.length;f=a.validate(j,null,b,d);if(g===b.length&&f!==!0){b.add(e,f)}}}return b},add:function(b,f){var e=this,d=Ext.data.field.Field.defaultInvalidMessage,a=b,c;if(Ext.isString(b)){a=new Ext.data.Error({field:b,message:f||d})}else {if(!(a.isError)){a=new Ext.data.Error({field:a.field||a.name,message:a.error||a.message||a.msg||d})}b=a.field}c=e.get(b);if(c){if(Ext.isArray(c)){c.push(a);return c}e.removeAtKey(b);a=[c,a];a.field=b;a=[a]}return Ext.util.MixedCollection.prototype.add.call(this,a)},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:!0,config:{synchronous:!1,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:!1,running:!1,complete:!1,success:undefined,exception:!1,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 a=this,b;delete a.error;delete a.success;a.complete=a.exception=!1;a.setStarted();a.request=b=a.doExecute();if(b){b.setOperation(a)}return b},doExecute:Ext.emptyFn,abort:function(){var a=this,b=a.request;if(a.running&&b){a.getProxy().abort(b);a.request=null}},process:function(c,e,d,b){var a=this;b=b!==!1;a.setResponse(d);a.setResultSet(c);if(c.getSuccess()){a.doProcess(c,e,d);a.setSuccessful(b)}else if(b){a.setException(c.getMessage())}},_commitSetOptions:{convert:!0,commit:!0},doProcess:function(l,n,m){var j=this,i=j._commitSetOptions,e=j.getRecords(),k=e.length,g=e[0].clientIdProperty,f=l.getRecords(),h=f?f.length:0,d,c,b,a;if(h&&g){d=Ext.Array.toValueMap(e,'id');for(a=0;a<h;++a){c=f[a];b=d[c[g]];if(b){delete d[b.id];delete c[g];b.set(c,i)}}for(a in d){d[a].commit()}}else {for(a=0;a<k;++a){b=e[a];if(h===0||!(c=f[a])){b.commit()}else {b.set(c,i)}}}},setStarted:function(){this.started=this.running=!0},setCompleted:function(){var a=this,b=a.getProxy();a.complete=!0;a.running=!1;a.triggerCallbacks();if(b&&!b.destroyed){b.completeOperation(a)}},setSuccessful:function(a){this.success=!0;if(a){this.setCompleted()}},setException:function(b){var a=this;a.exception=!0;a.success=a.running=!1;a.error=b;a.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===!0},allowWrite:function(){return !0}},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:!0,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:!0,order:30,foreignKeyDirection:-1,doProcess:function(){var b=this.getRecords(),c=b.length,a;for(a=0;a<c;++a){b[a].setErased()}},doExecute:function(){return this.getProxy().erase(this)},getRecordData:function(a,e){var b={},d=a.idField,c=this.getNameProperty()||'name';b[d[c]]=a.id;return b}},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:!0,config:{filters:undefined,sorters:undefined,grouper:undefined,start:undefined,limit:undefined,page:undefined,addRecords:!1},doExecute:function(){return this.getProxy().read(this)},doProcess:Ext.emptyFn,allowWrite:function(){return !1}},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:!0,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,function(){var a;return {singleton:!0,constructor:function(){a=this},none:Ext.identityFn,stripCommasRe:/,/g,stripTagsRE:/<\/?[^>]+>/gi,asText:function(b){return (b!=null)?String(b).replace(a.stripTagsRE,''):'\x00'},asUCText:function(b){return (b!=null)?String(b).toUpperCase().replace(a.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(c){var b=parseFloat(String(c).replace(a.stripCommasRe,''));return isNaN(b)?0:b},asInt:function(c){var b=parseInt(String(c).replace(a.stripCommasRe,''),10);return isNaN(b)?0:b}}},1,0,0,0,0,0,[Ext.data,'SortTypes'],0));(Ext.cmd.derive('Ext.data.validator.Validator',Ext.Base,{isValidator:!0,factoryConfig:{cacheable:!0},type:'base',constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},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(a){Ext.Factory.validator=Ext.Factory.dataValidator}));(Ext.cmd.derive('Ext.data.field.Field',Ext.Base,{alternateClassName:'Ext.data.Field',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,summary:null,summaryField:'',unique:!1,rank:null,stripRe:/[\$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(f,d){var b=d.sortType,c=f.prototype,e=c.validators,a=d.validators;if(b&&Ext.isString(b)){c.sortType=Ext.data.SortTypes[b]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(e){a=e.concat(a)}c.validators=a}},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 a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=Ext.Function.toCode(c);c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while((e=n.exec(k))){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},constructValidators:function(a){if(a){if(!(a instanceof Array)){a=[a]}var f=a.length,g=this._validators,d,b,c,e;for(d=0;d<f;++d){b=a[d];if(b.fn){b=b.fn}c=Ext.Factory.dataValidator(b);if(!c.isPresence){g.push(c)}else {e=c}}if(e){this.presence=[e]}}},collate:function(d,e){var c=this,a=d,b=e;if(c.sortType){a=c.sortType(a);b=c.sortType(b)}return (a===b)?0:((a<b)?-1:1)},compare:function(a,b){return (a===b)?0:((a<b)?-1:1)},isEqual:function(a,b){return this.compare(a,b)===0},convert:null,serialize:null,validate:function(a,e,f,g){var d=this,h=d.getValidators(),c,b;b=this.presence;if(b&&(a==null||a==='')){c=d.validateGroup(b,a,e,f,g);if(c!==!0){return c}}return d.validateGroup(h,a,e,f,g)},validateGroup:function(e,j,f,c,i){var b='',g,h,d,a;for(d=0,h=e.length;d<h;++d){g=e[d];a=g.validate(j,i);if(a!==!0){a=a||this.defaultInvalidMessage;if(c){if(c.isMixedCollection){c.add(this.name,a)}else if(c.isCollection){c.add(a)}else {c.push(a)}b=b||a}else if(f){if(b){b+=f}b+=a}else {b=a;break}}}return b||!0},doCalculate:function(b,a){return a?this.calculate(a.data):b},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},getSummary:function(){var b=this,c=b.doneSummary,a=b.summary;if(!c){b.doneSummary=!0;if(a){b.summary=a=Ext.Factory.dataSummary(a)}}return a||null},getType:function(){return 'auto'},privates:{getValidators:function(){var a=this,b=a._validators;if(!b){a._validators=b=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)}return b}},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:!0,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:!0,dateFormat:null,dateReadFormat:null,dateWriteFormat:null,compare:function(d,e){var b=d instanceof Date,c=e instanceof Date,a;if(c&&b){a=d.getTime()-e.getTime();if(a===0){a=0}else {a=a<0?-1:1}}else if(b===c){a=0}else {a=b?1:-1}return a},convert:function(a){if(!a){return null}if(a instanceof Date){return a}var c=this.dateReadFormat||this.dateFormat,b;if(c){return Ext.Date.parse(a,c,this.useStrict)}b=Date.parse(a);return b?new Date(b):null},serialize:function(b){var c=null,a;if(Ext.isDate(b)){a=this.getDateWriteFormat();c=a?Ext.Date.format(b,a):b}return c},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:!0,isIntegerField:!0,numericType:'int',convert:function(b){if(typeof b==='number'){return this.getNumber(b)}var d=b==null||b==='',c=this.allowNull,a;if(d){a=c?null:0}else {a=this.parse(b);if(c&&isNaN(a)){a=null}}return a},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:!1,isNumberField:!0,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:!0,convert:function(a){var b=this.allowNull?null:'';return (a===undefined||a===null)?b:String(a)},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':!0,factoryConfig:{defaultType:'sequential'},isGenerator:!0,config:{id:null},constructor:function(c){var b=this,a;b.initConfig(c);a=b.getId();if(a){Ext.data.identifier.Generator.all[a]=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 b=this,a=Ext.Factory,c=a.dataIdentifier;a.dataIdentifier=function(a){var d=Ext.isString(a)?a:(a&&a.id),e=d&&b.all[d];return e||c(a)}}));(Ext.cmd.derive('Ext.data.identifier.Sequential',Ext.data.identifier.Generator,{config:{increment:1,prefix:null,seed:1},generate:function(){var a=this,c=a._seed,b=a._prefix;a._seed+=a._increment;return (b!==null)?b+c:c}},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:!0,isModel:!0,validIdRe:null,erasing:!1,loadOperation:null,loadCount:0,observableType:'record',crudState:'R',crudStateWas:null,constructor:function(b,g){var a=this,c=a.self,f=c.identifier,n=Ext.data.Model,k=n.identifier,l=a.idField.name,j,d,h,m,o,e,i;a.data=a.data=b||(b={});a.internalId=m=k.generate();if((j=b) instanceof Array){a.data=b={};i=a.getFields();o=Math.min(i.length,j.length);for(e=0;e<o;++e){b[i[e].name]=j[e]}}if(!(h=c.initializeFn)){c.initializeFn=h=n.makeInitializeFn(c)}if(!h.$nullFn){c.initializeFn(a)}if(!a.isSummaryModel){if(!(a.id=d=b[l])&&d!==0){if(g){f=g.getIdentifier(c);d=f.generate()}else if(k===f){d=m}else {d=f.generate()}b[l]=a.id=d;a.phantom=!0;a.crudState='C'}if(g){g.add(a)}if(a.phantom){a.crudStateWas='C'}}if(a.init&&Ext.isFunction(a.init)){a.init()}},editing:!1,dirty:!1,session:null,dropped:!1,erased:!1,clientIdProperty:null,evented:!1,phantom:!1,idProperty:'id',manyToMany:null,identifier:null,previousValues:undefined,proxy:undefined,schema:'default',summary:null,versionProperty:null,generation:1,validationSeparator:null,convertOnSet:!0,beginEdit:function(){var a=this,c=a.modified,b=a.previousValues;if(!a.editing){a.editing=!0;a.editMemento={dirty:a.dirty,data:Ext.apply({},a.data),generation:a.generation,modified:c&&Ext.apply({},c),previousValues:b&&Ext.apply({},b)}}},calculateSummary:function(f){var g=this.getFields(),j=g.length,i=f.length,c,a,d,h,e,b;for(c=0;c<j;++c){b=g[c];d=b.getSummary();if(d){a=a||{};e=b.name;h=b.summaryField||e;a[e]=d.calculate(f,h,'data',0,i)}}if(a){this.set(a,this._commitOptions)}},cancelEdit:function(){var a=this,c=a.editMemento,b=a.validation;if(c){a.editing=!1;Ext.apply(a,c);a.editMemento=null;if(b&&b.syncGeneration!==a.generation){b.syncGeneration=0}}},endEdit:function(d,b){var a=this,c=a.editMemento;if(c){a.editing=!1;a.editMemento=null;a.previousValues=c.previousValues;if(!d){if(!b){b=a.getModifiedFieldNames(c.data)}if(a.dirty||(b&&b.length)){a.callJoined('afterEdit',[b])}}}},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(b,a){this.set(this.idProperty,b,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(a){var b;if(this.isModified(a)){b=this.modified[a]}return b},get:function(a){return this.data[a]},_singleProp:{},_rejectOptions:{convert:!1,silent:!0},set:function(i,A,K){var a=this,G=a.self,v=a.data,f=a.modified,B=a.previousValues,u=a.session,n=Ext.isString(i),e=(n?K:A),y=e?e.convert!==!1:a.convertOnSet,J=a.fieldsMap,E=e&&e.silent,D=e&&e.commit,I=!(e&&e.refs===!1)&&u,F=!(e&&e.dirty===!1&&!D),k=null,d=0,r=a.associations,j,b,z,H,c,q,p,w,s,x,t,o,l,m,h,g,C;if(n){g=a._singleProp;g[i]=A}else {g=i}if(!(l=G.rankedFields)){l=G.rankFields()}t=l.length;do{for(c in g){h=g[c];j=v[c];p=a;b=J[c];if(b){if(y&&b.convert){h=b.convert(h,a)}p=b;m=b.reference}else {m=null}if(p.isEqual(j,h)){continue}v[c]=h;(k||(k=[])).push(c);(B||(a.previousValues=B={}))[c]=j;if(m&&m.cls){if(I){u.updateReference(a,b,h,j)}m.onValueChange(a,u,h,j)}x=(s=b&&b.dependents)&&s.length;while(x-->0){(w=s[x]).dirty=!0;d=d?Math.min(d,w.rank):w.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!F||p.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else if(F){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}if(c===a.idField.name){z=!0;q=j;o=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=v[i];y=!0;for(;d<t;++d){if(l[d].dirty){break}}if(d<t){++d}else {d=0}}while(1);if(a.dirty<0){a.dirty=!1;for(H in f){if(f.hasOwnProperty(H)){a.dirty=!0;break}}}if(n){delete g[i]}++a.generation;if(z){a.id=o;a.onIdChanged(o,q);a.callJoined('onIdChanged',[q,o]);if(r){for(C in r){r[C].onIdChanged(a,q,o)}}}if(D){a.commit(E,k)}else if(!E&&!a.editing&&k){a.callJoined('afterEdit',[k])}return k},reject:function(c){var a=this,b=a.modified;if(b){a.set(b,a._rejectOptions)}a.dropped=!1;a.clearState();if(!c){a.callJoined('afterReject')}},commit:function(f,e){var a=this,b=a.versionProperty,d=a.data,c;a.clearState();if(b&&!a.phantom&&!isNaN(d[b])){++d[b]}a.phantom=!1;if(a.dropped){a.erased=c=!0}if(!f){if(c){a.callJoined('afterErase')}else {a.callJoined('afterCommit',[e])}}},clearState:function(){var a=this;a.dirty=a.editing=!1;a.editMemento=a.modified=null},drop:function(d){var a=this,b=a.associations,e=a.session,c;if(a.erased||a.dropped){return}a.dropped=!0;if(b&&d!==!1){for(c in b){b[c].onDrop(a,e)}}a.callJoined('afterDrop');if(a.phantom){a.setErased()}},join:function(b){var c=this,a=c.joined;if(!a){a=c.joined=[b]}else if(!a.length){a[0]=b}else {Ext.Array.include(a,b)}if(b.isStore&&!c.store){c.store=b}},unjoin:function(b){var c=this,a=c.joined,e=a&&a.length,d=c.store,f;if(b===c.session){c.session=null}else {if(e===1&&a[0]===b){a.length=0}else if(e){Ext.Array.remove(a,b)}if(d===b){d=null;if(a){for(f=0,e=a.length;f<e;++f){b=a[f];if(b.isStore){d=b;break}}}c.store=d}}},clone:function(d){var a=this,c=a.modified,b=a.copy(a.id,d);if(c){b.modified=Ext.apply({},c)}b.dirty=a.dirty;b.dropped=a.dropped;b.phantom=a.phantom;return b},copy:function(a,e){var c=this,b=Ext.apply({},c.data),d=c.idProperty,f=c.self;if(a||a===0){b[d]=a}else if(a===null){delete b[d]}return new f(b,e)},getProxy:function(){return this.self.getProxy()},getValidation:function(c){var b=this,a=b.validation;if(!a){b.validation=a=new Ext.data.Validation();a.attach(b)}if(c===!0||(c!==!1&&a.syncGeneration!==b.generation)){a.refresh(c)}return a},validate:function(){return new Ext.data.ErrorCollection().init(this)},isValid:function(){return this.getValidation().isValid()},toUrl:function(){var a=this.$className.split('.'),b=a[a.length-1].toLowerCase();return b+'/'+this.getId()},erase:function(b){var a=this;a.erasing=!0;a.drop();a.erasing=!1;return a.save(b)},setErased:function(){this.erased=!0;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(g,a){var c=this,n=c.associations,i,j,b,m,f,o,e,p,l,d,h,k;g=g||{};c.$gathering=1;if(a){a=Ext.apply({},a)}for(l in n){p=n[l];b=p.getAssociatedItem(c);if(!b||b.$gathering){continue}if(b.isStore){b.$gathering=1;m=b.getData().items;o=m.length;f=[];for(j=0;j<o;++j){e=m[j];i=!e.$gathering;e.$gathering=1;if(a){k=a.associated;if(k===undefined){a.associated=i;h=!0}else if(!i){a.associated=!1;h=!0}d=a}else {d=i?c._getAssociatedOptions:c._getNotAssociatedOptions}f.push(e.getData(d));if(h){a.associated=k;h=!1}delete e.$gathering}delete b.$gathering}else {d=a||c._getAssociatedOptions;if(a&&a.associated===undefined){d.associated=!0}f=b.getData(d)}g[l]=f}delete c.$gathering;return g},getData:function(n){var a=this,f={},e=(n===!0)?a._getAssociatedOptions:(n||f),h=a.data,j=e.associated,l=e.changes,p=l&&e.critical,m=l?a.modified:h,o=a.fieldsMap,q=e.persist,k=e.serialize,g,b,i,d,c;if(m){for(d in m){c=h[d];b=o[d];if(b){if(q&&!b.persist){continue}if(k&&b.serialize){c=b.serialize(c,a)}}f[d]=c}}if(p){g=a.self.criticalFields||a.getCriticalFields();for(i=g.length;i-->0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(k&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(j){if(typeof j==='object'){a.getNestedData(e,f)}else {a.getAssociatedData(f,e)}}return f},getNestedData:function(a,d){var m=this,n=m.associations,g=a.associated,f,e,h,b,j,k,l,c,i;d=d||{};for(c in g){l=n[c];i=g[c];if(i===!0){delete a.associated}else {a.associated=i}e=l.getAssociatedItem(m);if(e.isStore){h=e.getData().items;j=h.length;b=[];for(f=0;f<j;++f){k=h[f];b.push(k.getData(a))}}else {b=e.getData(a)}d[c]=b}a.associated=g;return d},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(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;++b.loadCount;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g<k;++g){a=i[g];if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(a.callback,d,j)}}b.callJoined('afterLoad')};delete a.callback;b.loadOperation=c=g.createOperation('read',a);c.execute();return c},mergeData:function(a){if(!this.dirty){this.set(a,this._commitOptions)}},save:function(a){a=Ext.apply({},a);var b=this,f=b.phantom,e=b.dropped,h=e?'destroy':(f?'create':'update'),d=a.scope||b,g=a.callback,i=b.getProxy(),c;a.records=[b];a.internalCallback=function(e){var c=[b,e],f=e.wasSuccessful();if(f){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}c.push(f);Ext.callback(g,d,c)};delete a.callback;c=i.createOperation(h,a);if(e&&f){c.setResultSet(Ext.data.reader.Reader.prototype.nullResultSet);b.setErased();c.setSuccessful(!0)}else {c.execute()}return c},statics:{defaultProxy:'memory'},inheritableStatics:{_associatedReadOptions:{recordsOnly:!0,asRoot:!0},loadData:function(b,a){var c;if(b){c=this.getProxy().getReader().readRecords([b],a?{recordCreator:a.recordCreator}:undefined,this._associatedReadOptions)[0]}else {c=new this(b,a)}return c},getSummaryModel:function(){var b=this,c=b.prototype,a=b.summaryModel;if(!a){a=Ext.define(null,{extend:b,fields:c.summaryFields||[],isSummaryModel:!0});a.isSummaryModel=!0;b.summaryModel=c.summaryModel=a}return a||null},addFields:function(a){this.replaceFields(a)},replaceFields:function(k,i){var c=this,n=c.prototype,o=Ext.data.field.Field,d=c.fields,j=c.fieldsMap,f=c.fieldOrdinals,e,a,h,g,b,m,l;if(i===!0){d.length=0;c.fieldsMap=j={};c.fieldOrdinals=f={};l=!0}else if(i){for(a=i.length;a-->0;){b=i[a];if(b in f){delete f[b];delete j[b]}}for(a=0,g=d.length;a<g;++a){b=(e=d[a]).name;if(b in f){f[b]=a}else {d.splice(a,1);--a;--g}}}for(a=0,g=k?k.length:0;a<g;a++){b=(e=k[a]).name;if(!(b in f)){f[b]=m=d.length;d.push(e=o.create(e));j[b]=e;e.ordinal=m;e.definedBy=e.owner=this}}if(!l){for(a=0,g=d.length;a<g;++a){d[a].rank=null}}c.idField=n.idField=h=j[n.idProperty];h.allowNull=h.critical=h.identifier=!0;h.defaultValue=null;c.initializeFn=c.rankedFields=c.transientFields=c.criticalFields=null},removeFields:function(a){this.replaceFields(null,a)},getIdFromData:function(b){var c=this,a=c.idField,d=a.calculated?(new c(b)).id:b[a.name];return d},createWithId:function(c,b,e){var a=b,d=this;if(c||c===0){a={};if(b){Ext.apply(a,b)}a[d.idField.name]=c}return new d(a,e)},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,d=b.defaultProxy,c;if(!a){a=b.proxyConfig;if(!a&&d){a=d}if(!a||!a.isProxy){if(typeof a==='string'){a={type:a}}c=Ext.merge(b.schema.constructProxy(b),a);if(a&&a.type){a=a.schema===!1?a:c}else {a=c}}a=b.setProxy(a)}return a},setProxy:function(a){var b=this,c;if(a){if(!a.isProxy){a=Ext.Factory.proxy(a)}else {c=a.getModel();if(c&&c!==b){a=a.clone()}}a.setModel(b)}return (b.prototype.proxy=b.proxy=a)},load:function(d,e,b){var c={},a;if(b){a=b.peekRecord(this,d)}if(!a){c[this.prototype.idProperty]=d;a=new this(c,b)}a.load(e);return a}},deprecated:{5:{methods:{hasId:null,markDirty:null,setDirty:null,eachStore:function(c,d){var f=this,b=f.stores,e=b.length,a;for(a=0;a<e;++a){c.call(d,b[a])}},join:function(b){var a=this,d=a.stores,c=a.joined;if(!c){c=a.joined=[b]}else {c.push(b)}if(b.isStore){a.store=a.store||b;if(!d){d=a.stores=[]}d.push(b)}},unjoin:function(b){var c=this,d=c.stores,a=c.joined;if(a.length===1){a.length=0}else {Ext.Array.remove(a,b)}if(b.isStore){Ext.Array.remove(d,b);c.store=d[0]||null}}},properties:{persistenceProperty:null},inheritableStatics:{methods:{setFields:null}}}},privates:{_commitOptions:{commit:!0},_getChangesOptions:{changes:!0},_getAssociatedOptions:{associated:!0},_getNotAssociatedOptions:{associated:!1},_metaProperties:{dirty:'isDirty',phantom:'isPhantom',valid:'isValid'},copyFrom:function(c){var a=this,i=a.fields,k=i.length,g=[],j,f=0,e,h,l=a.idProperty,b,d;if(c){e=a.data;h=c.data;for(;f<k;f++){j=i[f];b=j.name;if(b!==l){d=h[b];if(d!==undefined&&!a.isEqual(e[b],d)){e[b]=d;g.push(b)}}}if(a.phantom&&!c.phantom){a.beginEdit();a.setId(c.getId());a.endEdit(!0);a.commit(!0)}}return g},callJoined:function(h,b){var a=this,e=a.joined,d=a.session,i=a.dropped?'D':(a.phantom?'C':(a.dirty?'U':'R')),g,j,c,f;a.crudState=i;if(e||d){if(b){b.unshift(a)}else {b=[a]}c=d&&d[h];if(c){c.apply(d,b)}if(e){for(g=0,j=e.length;g<j;++g){f=e[g];if(f&&(c=f[h])){c.apply(f,b)}}}}a.crudStateWas=i},hasPendingLoad:function(){return this.isLoading()},interpret:function(b){var c=this,a=c._metaProperties[b];if(!a){a=c.associations;a=a&&a[b]&&a[b].getterName}if(a){return c[a]()}return c.data[b]},isDirty:function(){return this.dirty},isPhantom:function(){return this.phantom},onAssociatedRecordSet:function(a,b){this.callJoined('afterAssociatedRecordSet',[a,b])},onIdChanged:Ext.privateFn,setSession:function(a){this.session=a;if(a){a.add(this)}},getModifiedFieldNames:function(f){var c=this,b=c.data,d=[],e=f||c.editMemento.data,a;for(a in b){if(b.hasOwnProperty(a)){if(!c.isEqual(b[a],e[a],a)){d.push(a)}}}return d},isEqual:function(b,c,a){var d;if(a){d=a.isField?a:this.fieldsMap[a];if(d){return d.isEqual(b,c)}}if(b instanceof Date&&c instanceof Date){return b.getTime()===c.getTime()}return b===c},statics:{EDIT:'edit',REJECT:'reject',COMMIT:'commit',rankFields:function(){var d=this,g=d.prototype,h=d.fields,f=h.length,c=[],j=[],i=[],e,a,b;d.rankedFields=g.rankedFields=c;d.criticalFields=g.criticalFields=j;d.transientFields=g.transientFields=i;for(b=0;b<f;++b){a=h[b];if(a.critical){j.push(a)}if(!a.persist){i.push(a)}if(a.evil){(e||(e=[])).push(a)}else if(!a.depends){c.push(a);a.rank=c.length}}for(b=0;b<f;++b){if(!(a=h[b]).rank&&!a.evil){d.topoAdd(a)}}if(e){for(b=0,f=e.length;b<f;++b){c.push(a=e[b]);a.rank=c.length}}return c},topoAdd:function(b){var d=this,e=b.depends,g=e?e.length:0,f=d.rankedFields,c,a;for(c=0;c<g;++c){a=d.fieldsMap[e[c]];(a.dependents||(a.dependents=[])).push(b);if(!a.rank){d.topoAdd(a)}}f.push(b);b.rank=f.length},initFields:function(u,g,j){var t=Ext.data.field.Field,q=u.fields,e=[],h={},f={},v=[],r=j.fields,p=u.versionProperty||j.versionProperty,l=g.idProperty,d,a,b,n,k,c,m,i,o,s;g.fields=j.fields=e;g.fieldOrdinals=j.fieldOrdinals=h;g.fieldsMap=j.fieldsMap=f;g.references=j.references=v;if(r){for(b=0,n=r.length;b<n;++b){e[b]=a=Ext.Object.chain(r[b]);a.dependents=null;a.owner=g;h[k=a.name]=b;f[k]=a;a.rank=null;if(a.generated){i=a;o=a.name}}}delete u.fields;if(q){for(b=0,n=q.length;b<n;++b){a=q[b];m=a.reference;if(m&&typeof m!=='string'){m=Ext.merge({},m)}a.$reference=m;a=t.create(q[b]);k=a.name;c=h[k];if(c===undefined){h[k]=c=e.length}f[k]=a;e[c]=a;a.definedBy=a.owner=g;a.ordinal=c;if(k===l){s=a}}}d=f[l];if(!d){if(i&&i.generated){c=i.ordinal}else {c=e.length}delete f[o];delete h[o];d=new t(l);e[c]=d;h[l]=c;f[l]=d;d.definedBy=g;d.ordinal=c;d.generated=!0}else if(s&&i&&i.generated){Ext.Array.remove(e,i);delete f[o];delete h[o];f[l]=s;for(b=0,n=e.length;b<n;++b){a=e[b];e.ordinal=b;h[a.name]=b}}d.allowNull=d.critical=d.identifier=!0;d.defaultValue=null;g.idField=j.idField=d;if(p){a=f[p];if(!a){c=e.length;a=new t({name:p,type:'int'});e[c]=a;h[p]=c;f[p]=a;a.definedBy=g;a.ordinal=c;a.generated=!0}a.defaultValue=1;a.critical=!0}},initSummaries:function(k,m,j){var h=k.summary,g=j.summaryFields,b,c,d,a,l,e,f,i;if(g){b=[];c={};for(e=0,l=g.length;e<l;++e){a=g[e];b.push(a);b[a.name]=e}}if(h){delete k.summary;b=b||[];c=c||{};for(d in h){a=h[d];if(typeof a==='function'){a={summary:a}}f=c[d];a=Ext.apply({name:d},a);i=a.field;if(i){delete a.field;a.summaryField=i}if(f===undefined){f=b.length;c[d]=a}b[f]=a}}if(b){j.summaryFields=b}},initValidators:function(k,n,m){var i=m.validators,b,e,g,c,h,l,d,a,j,f;if(i){b={};for(e in i){b[e]=Ext.Array.clone(i[e])}}c=k.validators||k.validations;if(c){delete k.validators;b=b||{};if(Ext.isArray(c)){g={};for(h=0,l=c.length;h<l;++h){f=c[h];a=f.field;if(!g[a]){g[a]=[]}f=f.fn||f;g[a].push(f)}c=g}for(a in c){d=c[a];if(!Ext.isArray(d)){d=[d]}j=b[a];if(j){Ext.Array.push(j,d)}else {b[a]=d}}}if(b){for(a in b){e=n.getField(a);if(e){e.setModelValidators(b[a])}}}n.validators=m.validators=b},initAssociations:function(d,b,e){var f=b.associations,g=b.belongsTo,h=b.hasMany,i=b.hasOne,l=b.manyToMany,a,c,k,j;delete b.associations;delete b.belongsTo;delete b.hasMany;delete b.hasOne;delete b.manyToMany;if(l){d.addMatrices(e,l)}if(f){f=Ext.isArray(f)?f:[f];for(a=0,c=f.length;a<c;++a){k=f[a];j=Ext.apply({},k);delete j.type;switch(k.type){case 'belongsTo':d.addBelongsTo(e,j);break;case 'hasMany':d.addHasMany(e,j);break;case 'hasOne':d.addHasOne(e,j);break;}}}if(g){g=Ext.isArray(g)?g:[g];for(a=0,c=g.length;a<c;++a){d.addBelongsTo(e,g[a])}}if(h){h=Ext.isArray(h)?h:[h];for(a=0,c=h.length;a<c;++a){d.addHasMany(e,h[a])}}if(i){i=Ext.isArray(i)?i:[i];for(a=0,c=i.length;a<c;++a){d.addHasOne(e,i[a])}}d.afterKeylessAssociations(e)},initIdentifier:function(d,e,f){var a=d.identifier||d.idgen,b=f.identifier||e.schema._defaultIdentifier,c;if(a){delete d.identifier;delete d.idgen;a=Ext.Factory.dataIdentifier(a)}else if(b){if(b.clone&&!b.getId()){a=b.clone()}else if(b.isGenerator){a=b}else {a=Ext.Factory.dataIdentifier(b)}}e.identifier=f.identifier=a;if(!a){c=e.entityName;if(!c){c=Ext.id(null,'extModel')}e.identifier=Ext.Factory.dataIdentifier({type:'sequential',prefix:c+'-'})}},findValidator:function(f,g,d){var h=d.type||d,b=f[g],e,a,c;if(b){for(a=0,e=b.length;a<e;++a){c=b[a];if(c.type===h){return c}}}return null},makeInitializeFn:function(o){var a=['var '],g=['\nreturn function (e) {\n    var data = e.data, v;\n'],n=0,i,j,h,b,l,f,e,d,k,c,m;if(!(e=o.rankedFields)){e=o.rankFields()}for(c=0,m=e.length;c<m;++c){f=e[c];d='f'+c;h=f.convert;if(c){a.push(',  \n    ')}a.push(d,' = $fields['+c+']');if((k=(f.defaultValue!==undefined))||h){b='data["'+f.name+'"]';++n;i=j='';if(f.cloneDefaultValue){i='Ext.clone(';j=')'}g.push('\n');if(h&&k){g.push('    v = ',b,';\n    if (v !== undefined) {\n        v = ',d,'.convert(v, e);\n    }\n    if (v === undefined) {\n        v = ',i,d,'.defaultValue',j,';\n    }\n    ',b,' = v;')}else if(h){g.push('    v = ',d,'.convert(',b,',e);\n    if (v !== undefined) {\n        ',b,' = v;\n    }\n')}else if(k){g.push('    if (',b,' === undefined) {\n        ',b,' = ',i,d,'.defaultValue',j,';\n    }\n')}}}if(!n){return Ext.emptyFn}a.push(';\n');a.push.apply(a,g);a.push('}');a=a.join('');l=new Function('$fields','Ext',a);return l(e,Ext)}}}},1,0,0,0,0,0,[Ext.data,'Model',Ext.data,'Record'],function(){var a=this,b=a.prototype,c=Ext.data.schema.Schema,d;a.proxyConfig=b.proxy;delete b.proxy;a.fields=[];a.fieldsMap=b.fieldsMap={};a.schema=b.schema=c.get(b.schema);b.idField=new Ext.data.field.Field(b.idProperty);a.identifier=new Ext.data.identifier.Sequential();a.onExtended(function(b,e){var f=b.prototype,k=e.schema,j=f.superclass.self,g,h,i;b.idProperty=e.idProperty||f.idProperty;if(k){delete e.schema;g=c.get(k)}else if(!(g=f.schema)){g=d||(d=c.get('default'))}b.rankFields=a.rankFields;b.topoAdd=a.topoAdd;f.schema=b.schema=g;if(!(h=e.entityName)){f.entityName=h=g.getEntityName(b)}b.entityName=h;b.fieldExtractors={};a.initIdentifier(e,b,f);a.initFields(e,b,f);a.initValidators(e,b,f);if(!e.isSummaryModel){a.initSummaries(e,b,f)}b.fields.items=b.fields;if(h){g.addEntity(b);a.initAssociations(g,e,b)}i=e.proxy;if(i){delete e.proxy}else if(j!==a){i=j.proxyConfig||j.proxy}b.proxyConfig=i})}));(Ext.cmd.derive('Ext.data.ResultSet',Ext.Base,{isResultSet:!0,$configPrefixed:!1,config:{loaded:!0,count:null,total:null,remoteTotal:null,success:!1,records:null,message:null,metadata:null,groupData:null,summaryData: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:{groupRootProperty:'',implicitIncludes:!0,keepRawData:null,messageProperty:'',model:null,proxy:null,readRecordsOnFailure:!0,rootProperty:'',successProperty:'success',summaryRootProperty:'',totalProperty:'total',transform:null,typeProperty:''},isReader:!0,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()},forceBuildExtractors:function(){if(!this.duringInit){this.buildExtractors(!0)}},updateGroupRootProperty:function(){this.forceBuildExtractors()},updateMessageProperty:function(){this.forceBuildExtractors()},applyModel:function(a){return Ext.data.schema.Schema.lookupEntity(a)},updateSuccessProperty:function(){this.forceBuildExtractors()},updateTotalProperty:function(){this.forceBuildExtractors()},applyTransform:function(a){if(a){if(Ext.isFunction(a)){a={fn:a}}else if(a.charAt){a={fn:this[a]}}return a.fn.bind(a.scope||this)}return a},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:!1,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:!0,msg:a}},readRecords:function(b,q,h){var a=this,r=h&&h.recordsOnly,s=h&&h.asRoot,o=null,f=null,j,i,g,c,n,m,d,p,l,k,e;k=a.getMeta?a.getMeta(b):b.metaData;if(k){a.onMetaChange(k)}l=a.getTransform();if(l){b=l(b)}a.buildExtractors();if(a.getKeepRawData()){a.rawData=b}if(a.hasListeners.rawdata){a.fireEventArgs('rawdata',[b])}b=a.getData(b);j=!0;i=0;g=[];if(a.getSuccessProperty()){d=a.getSuccess(b);if(d===!1||d==='false'){j=!1}}if(a.getMessageProperty()){p=a.getMessage(b)}if(j||a.getReadRecordsOnFailure()){c=(s||Ext.isArray(b))?b:a.getRoot(b);if(c){m=c.length}if(a.getTotalProperty()){d=parseInt(a.getTotal(b),10);if(!isNaN(d)){n=m=d}}if(c){g=a.extractData(c,q);i=g.length}if(a.getGroupRootProperty()){c=a.getGroupRoot(b);if(c){e={includes:!1,model:a.getModel().getSummaryModel()};o=a.extractData(c,e)||null}}if(a.getSummaryRootProperty()){c=a.getSummaryRoot(b);if(c){e=e||{includes:!1,model:a.getModel().getSummaryModel()};f=a.extractData(c,e)||null;if(f){f=f[0]}}}}return r?g:new Ext.data.ResultSet({total:m||i,remoteTotal:n,metadata:k,count:i,records:g,success:j,message:p,groupData:o,summaryData:f})},extractData:function(f,b){var c=this,h=b&&b.model?Ext.data.schema.Schema.lookupEntity(b.model):c.getModel(),k=h.schema,o=b&&'includes' in b?b.includes:k.hasAssociations(h)&&c.getImplicitIncludes(),n=c.getFieldExtractorInfo(h),i=f.length,m=new Array(i),l=c.getTypeProperty(),j,e,d,a,g;if(!i&&Ext.isObject(f)){f=[f];i=1}for(g=0;g<i;g++){a=f[g];if(!a.isModel){e=a;if(l&&(d=c.getChildType(k,e,l))){j=d.getProxy().getReader();a=j.extractRecord(e,b,d,k.hasAssociations(d)&&j.getImplicitIncludes(),j.getFieldExtractorInfo(d))}else {a=c.extractRecord(e,b,h,o,n)}if(a.isModel&&a.isNode){a.raw=e}}if(a.onLoad){a.onLoad()}m[g]=a}return m},getChildType:function(d,c,a){var b;switch(typeof a){case 'string':return d.getEntity(c[a]);case 'object':b=a.namespace;return d.getEntity((b?b+'.':'')+c[a.name]);case 'function':return d.getEntity(a(c));}},extractRecordData:function(d,a){var b=a&&a.model?Ext.data.schema.Schema.lookupEntity(a.model):this.getModel(),c=this.getFieldExtractorInfo(b);return this.extractRecord(d,a,b,!1,c)},extractRecord:function(e,b,g,i,f){var a=this,h=(b&&b.recordCreator)||a.defaultRecordCreator,d,c;d=a.extractModelData(e,f);c=h.call(a,d,g||a.getModel(),b);if(i&&c.isModel){a.readAssociated(c,e,b)}return c},getFieldExtractorInfo:function(d){var b=d.fieldExtractors,c,a;if(!b){return}c=this.$className;a=b[c];if(a===undefined){b[c]=a=this.buildFieldExtractors(d)}return a},buildFieldExtractors:function(j){var f=j.getFields(),k=f.length,c=[],e=[],i=null,h=0,d,g,a,b;for(a=0;a<k;++a){d=f[a];b=this.createFieldAccessor(d);if(b){g=d.name;c.push('val = extractors['+h+'](raw, self); if (val !== undefined) { data[\''+g+'\'] = val; }');e.push(b);++h}}if(c.length){i={extractors:e,fn:new Function('raw','data','extractors','self','var val;'+c.join('\n'))}}return i},defaultRecordCreator:function(b,a){return new a(b)},defaultRecordCreatorFromServer:function(c,b){var a=new b(c);a.phantom=!1;return a},getModelData:function(a){return {}},extractModelData:function(c,a){var b=this.getModelData(c),d;if(a){d=a.fn;d(c,b,a.extractors,this)}return b},readAssociated:function(d,f,e){var a=d.associations,c,b;for(c in a){if(a.hasOwnProperty(c)){b=a[c];if(b.cls){b.read(d,f,this,e)}}}},getData:Ext.identityFn,getRoot:Ext.identityFn,getResponseData:function(a){},onMetaChange:function(a){var b=this,g=a.fields,e,d,c,f;b.metaData=a;if(a.root){b.setRootProperty(a.root)}if(a.totalProperty){b.setTotalProperty(a.totalProperty)}if(a.successProperty){b.setSuccessProperty(a.successProperty)}if(a.messageProperty){b.setMessageProperty(a.messageProperty)}c=a.clientIdProperty;if(g){d=Ext.define(null,{extend:'Ext.data.Model',fields:g,clientIdProperty:c});b.setModel(d);f=b.getProxy();if(f){f.setModel(d)}}else if(c){e=b.getModel();if(e){e.self.prototype.clientIdProperty=c}}},buildExtractors:function(e){var a=this,d,c,b;if(e||!a.hasExtractors){d=a.getTotalProperty();c=a.getSuccessProperty();b=a.getMessageProperty();if(d){a.getTotal=a.getAccessor(d)}if(c){a.getSuccess=a.getAccessor(c)}if(b){a.getMessage=a.getAccessor(b)}a.hasExtractors=!0;return !0}},getAccessor:function(c){var d=this,e=d.extractorCache,a,b;if(typeof c==='string'){b=d.getAccessorKey(c);if(b){a=e.get(b)}if(!a){a=d.createAccessor(c);if(b){e.add(b,a)}}}else {a=d.createAccessor(c)}return a},getAccessorKey:function(b){var a=this.$className;return a?a+b:''},createAccessor:Ext.emptyFn,createFieldAccessor:Ext.emptyFn,destroy:function(){var a=this;a.model=a.getTotal=a.getSuccess=a.getMessage=a.rawData=null;a.onMetaChange=null;a.transform=null;a.callParent()},privates:{copyFrom:function(b){var a=this;b.buildExtractors();a.getTotal=b.getTotal;a.getSuccess=b.getSuccess;a.getMessage=b.getMessage;++a.duringInit;a.setConfig(b.getConfig());--a.duringInit;a.hasExtractors=!0},getGroupRoot:Ext.privateFn,getSummaryRoot:Ext.privateFn}},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:!0,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:!0},partialDataOptions:{changes:!0,critical:!0},writeAllFields:!1,dateFormat:null,nameProperty:'name',writeRecordId:!0,transform:null},isWriter:!0,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(d){var b=d.getOperation(),c=b.getRecords()||[],f=c.length,e=[],a;for(a=0;a<f;a++){e.push(this.getRecordData(c[a],b))}return this.writeRecords(d,e)},writeRecords:Ext.emptyFn,getRecordData:function(e,p){var d=this,j=d.getNameProperty(),l=j!=='name',h=e.self.idField,b=h[j]||h.name,a=e.id,q=d.getWriteAllFields(),c,k,n,m,i,o,f,g;if(h.serialize){a=h.serialize(a)}if(!q&&p&&p.isDestroyOperation){c={};c[b]=a}else {k=d.getDateFormat();n=e.phantom;m=(n||q)?d.getAllDataOptions():d.getPartialDataOptions();i=n&&d.getClientIdProperty();o=e.getFieldsMap();m.serialize=!1;f=e.getData(m);c=l?{}:f;if(i){c[i]=a;delete f[b]}else if(!d.getWriteRecordId()){delete f[b]}for(b in f){a=f[b];if(!(g=o[b])){if(l){c[b]=a}}else {if(g.isDateField&&k&&Ext.isDate(a)){a=Ext.Date.format(a,k)}else if(g.serialize){a=g.serialize(a,e)}if(l){b=g[j]||b}c[b]=a}}}return c}},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:!1,alternateClassName:['Ext.data.DataProxy','Ext.data.Proxy'],config:{batchOrder:'create,update,destroy',batchActions:!0,model:undefined,reader:{type:'json'},writer:{type:'json'}},isProxy:!0,isSynchronous:!1,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.getModel()){a.setModel(b)}}},applyReader:function(a){if(this.isSynchronous){a=a||{};a.keepRawData=!0}return Ext.Factory.reader(a)},updateReader:function(b){if(b){var c=this,a=c.getModel();if(!a){a=b.getModel();if(a){c.setModel(a)}}else {b.setModel(a)}}},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(a,l){var c=this,m=c.getBatchActions(),b,d,h,j,e,f,g,k,i;if(a.operations===undefined){a={operations:a,listeners:l}}if(a.batch){if(Ext.isDefined(a.batch.runOperation)){b=Ext.applyIf(a.batch,{proxy:c,listeners:{}})}}else {a.batch={proxy:c,listeners:a.listeners||{}}}if(!b){b=new Ext.data.Batch(a.batch)}b.on('complete',Ext.bind(c.onBatchComplete,c,[a],0),null,{single:!0,priority:1000});h=c.getBatchOrder().split(',');j=h.length;for(f=0;f<j;f++){e=h[f];d=a.operations[e];if(d){if(m){b.add(c.createOperation(e,{records:d,params:a.params}))}else {k=d.length;for(g=0;g<k;g++){i=d[g];b.add(c.createOperation(e,{records:[i],params:a.params}))}}}}b.start();return b},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(b,c){var a=Ext.createByAlias('data.operation.'+b,c);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 c=this.pendingOperations,b,a;for(b in c){a=c[b];if(a&&a.isRunning()){a.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:!0,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:!0,config:{enablePaging:null,data:{$value:null,merge:function(a,b,d,c){return a?Ext.clone(a):a}},clearOnRead:null},finishOperation:function(b){var c=b.getRecords(),d=c.length,a;for(a=0;a<d;a++){c[a].dropped=!!b.isDestroyOperation;c[a].commit()}b.setSuccessful(!0)},create:function(a){this.finishOperation(a)},update:function(a){this.finishOperation(a)},erase:function(a){this.finishOperation(a)},read:function(b){var e=this,i=e.getReader(),a=i.read(e.getData(),{recordCreator:i.defaultRecordCreatorFromServer}),d=a.getRecords(),c=b.getSorters(),h=b.getGrouper(),g=b.getFilters(),f=b.getStart(),j=b.getLimit(),k;if(b.process(a,null,null,!1)!==!1){if(b.success&&e.getClearOnRead()){this.setData(null)}if(g&&g.length){a.setRecords(d=Ext.Array.filter(d,Ext.util.Filter.createFilterFn(g)));a.setTotal(d.length)}if(h){c=c?c.concat(h):c}if(c&&c.length){a.setRecords(d=Ext.Array.sort(d,Ext.util.Sortable.createComparator(c)))}if(e.getEnablePaging()&&f!==undefined&&j!==undefined){if(f>=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,f,f+j))}}b.setCompleted();if(k=a.getMetadata()){e.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:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,removed:null,constructor:function(b){var a=this;Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},doDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();Ext.destroy(a.getData());a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null);Ext.data.AbstractStore.prototype.doDestroy.call(this)},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else if(!this.destroying){this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else if(!a.model){a=Ext.apply({model:b},a)}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else if(b){a=b.getProxy();this.useModelProxy=!0}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;Ext.data.AbstractStore.prototype.applyState.call(this,b);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(d,f){var a=this,c=d.operations,e=c.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b<e;b++){a.onProxyWrite(c[b])}a.resumeEvents()}a.isSyncing=!1;d.destroy();a.fireEvent('datachanged',a)},onBatchException:function(b,a){},filterNew:function(a){return a.phantom&&a.isValid()},getNewRecords:function(){return []},getUpdatedRecords:function(){return []},getModifiedRecords:function(){return [].concat(this.getNewRecords(),this.getUpdatedRecords())},filterUpdated:function(a){return a.dirty&&!a.phantom&&a.isValid()},getRemovedRecords:function(){var a=this.getRawRemovedRecords();return a?Ext.Array.clone(a):[]},sync:function(d){var a=this,b={},f=a.getNewRecords(),g=a.getUpdatedRecords(),e=a.getRemovedRecords(),c=!1;a.needsSync=!1;if(f.length>0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners()}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;if(a.destroying||a.destroyed){return}a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;if(a.hasListeners.beginload){a.fireEvent('beginload',a,b)}b.execute()}},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(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null);a.fireEvent('datachanged',a)}},afterCommit:function(c,b){var a=this;if(!b){b=null}if(a.contains(c)){a.onUpdate(c,Ext.data.Model.COMMIT,b);a.fireEvent('update',a,c,Ext.data.Model.COMMIT,b);a.fireEvent('datachanged',a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,hasPendingLoad:function(){return !!this.pendingLoadOptions||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},onExtraParamsChanged:function(){},clearLoadTask:function(){this.pendingLoadOptions=this.loadTimer=Ext.unasap(this.loadTimer)},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b<c;++b){a[b].unjoin(this)}a.length=0}},createOperation:function(e,d){var a=this,c=a.getProxy(),b;if(!a.proxyListeners){b={scope:a,destroyable:!0,beginprocessresponse:a.beginUpdate,endprocessresponse:a.endUpdate};if(!a.disableMetaChangeEvent){b.metachange=a.onMetaChange}a.proxyListeners=c.on(b)}return c.createOperation(e,d)},createImplicitModel:function(e){var b=this,d={extend:b.implicitModel,statics:{defaultProxy:'memory'}},c,a;if(e){d.fields=e}a=Ext.define(null,d);b.setModel(a);c=b.getProxy();if(c){a.setProxy(c)}else {b.setProxy(a.getProxy())}},loadsSynchronously:function(){return this.getProxy().isSynchronous},onBeforeLoad:Ext.privateFn,removeFromRemoved:function(b){var a=this.getRawRemovedRecords();if(a){Ext.Array.remove(a,b);b.unjoin(this)}},setLoadOptions:function(d){var c=this,a,b;if(c.getRemoteFilter()){a=c.getFilters(!1);if(a&&a.getCount()){d.filters=a.getRange()}}if(c.getRemoteSort()){b=c.getSorters(!1);if(b&&b.getCount()){d.sorters=b.getRange()}}}}},1,0,0,0,0,0,[Ext.data,'ProxyStore'],0));(Ext.cmd.derive('Ext.util.Group',Ext.util.Collection,{config:{groupKey:null},$endUpdatePriority:2001,manageSorters:!1},0,0,0,0,0,0,[Ext.util,'Group'],0));(Ext.cmd.derive('Ext.data.Group',Ext.util.Group,{store:null,getSummaryRecord:function(){var b=this,a=b.summaryRecord,d=b.store,c=d.getData().generation,e,f;if(!a){e=d.getModel();f=e.getSummaryModel();b.summaryRecord=a=new f()}if(!a.isRemote&&a.summaryGeneration!==c){a.calculateSummary(b.items);a.summaryGeneration=c}return a}},0,0,0,0,0,0,[Ext.data,'Group'],0));(Ext.cmd.derive('Ext.data.LocalStore',Ext.Mixin,{mixinConfig:{id:'localstore'},config:{extraKeys:null},applyExtraKeys:function(a){var b,c=this.getData();c.setExtraKeys(a);a=c.getExtraKeys();for(b in a){this[b]=a[b]}},add:function(a){return this.insert(this.getCount(),arguments.length===1?a:arguments)},constructDataCollection:function(){var a=new Ext.util.Collection({rootProperty:'data',groupConfig:{xclass:'Ext.data.Group',store:this}});a.addObserver(this);return a},createModel:function(a){var c=this.getSession(),b;if(!a.isModel){b=this.getModel();a=new b(a,c)}return a},createFiltersCollection:function(){return this.getData().getFilters()},createSortersCollection:function(){var a=this.getData().getSorters();a.setSorterConfigure(this.addFieldTransform,this);return a},getSummaryRecord:function(){var b=this,a=b.summaryRecord,d=b.getData(),c=d.generation,e;if(!a){e=b.getModel().getSummaryModel();b.summaryRecord=a=new e()}if(!a.isRemote&&a.summaryGeneration!==c){a.calculateSummary(d.items);a.summaryGeneration=c}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(){var a=this.getSorters();a.beginUpdate();a.endUpdate()},contains:function(a){return this.indexOf(a)>-1},each:function(h,g,c){var a=this.getData(),f=c,e,d,b;if(typeof c==='object'){f=c.filtered}if(f&&a.filtered){a=a.getSource()}a=a.items.slice(0);e=a.length;for(b=0;b<e;++b){d=a[b];if(h.call(g||d,d,b,e)===!1){break}}},collect:function(e,a,d){var f=this,c=a,b=f.getData();if(typeof a==='object'){d=a.filtered;c=a.allowNull}if(d&&b.filtered){b=b.getSource()}return b.collect(e,'data',c)},getById:function(b){var a=this.getData();if(a.filtered){a=a.getSource()}return a.get(b)||null},getByInternalId:function(c){var a=this.getData(),b;if(a.filtered){if(!a.$hasExtraKeys){b=this.makeInternalKeyCfg();a.setExtraKeys(b);a.$hasExtraKeys=!0}a=a.getSource()}if(!a.$hasExtraKeys){a.setExtraKeys(b||this.makeInternalKeyCfg());a.$hasExtraKeys=!0}return a.byInternalId.get(c)||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(e,a){var d=this,c,b;if(a){if(!Ext.isIterable(a)){a=[a]}else {a=Ext.Array.clone(a)}c=a.length}if(!c){return []}for(b=0;b<c;++b){a[b]=d.createModel(a[b])}d.getData().insert(e,a);return a},queryBy:function(c,b){var a=this.getData();return (a.getSource()||a).createFiltered(c,b)},query:function(e,f,d,b,c){var a=this.getData();return (a.getSource()||a).createFiltered(e,f,d,b,c)},first:function(a){return this.getData().first(a)||null},last:function(a){return this.getData().last(a)||null},sum:function(a,c){var b=this.getData();return (c&&this.isGrouped())?b.sumByGroup(a):b.sum(a)},count:function(b){var a=this.getData();return (b&&this.isGrouped())?a.countByGroup():a.count()},min:function(a,c){var b=this.getData();return (c&&this.isGrouped())?b.minByGroup(a):b.min(a)},max:function(a,c){var b=this.getData();return (c&&this.isGrouped())?b.maxByGroup(a):b.max(a)},average:function(a,c){var b=this.getData();return (c&&this.isGrouped())?b.averageByGroup(a):b.average(a)},aggregate:function(i,g,j,f){var a=this,c,h,e,d,b;if(j&&a.isGrouped()){c=a.getGroups().items;h=c.length;e={};for(b=0;b<h;++b){d=c[b];e[d.getGroupKey()]=a.getAggregate(i,g||a,d.items,f)}return e}else {return a.getAggregate(i,g,a.getData().items,f)}},getAggregate:function(g,e,b,d){var c=[],f=b.length,a;for(a=0;a<f;++a){c[a]=b[a].get(d)}return g.call(e||this,b,c)},addObserver:function(b){var a=this.observers;if(!a){this.observers=a=new Ext.util.Collection()}a.add(b)},removeObserver:function(b){var a=this.observers;if(a){a.remove(b)}},callObservers:function(h,a){var f=this.observers,g,e,c,d,b;if(f){e=f.items;if(a){a.unshift(this)}else {a=[this]}for(c=0,g=e.length;c<g;++c){b=e[c];d='onSource'+h;if(b[d]){b[d].apply(b,a)}}}},queryRecordsBy:function(g,d){var a=this.getData(),e=[],f,b,c;a=(a.getSource()||a).items;d=d||this;for(b=0,f=a.length;b<f;++b){c=a[b];if(g.call(d,c)===!0){e.push(c)}}return e},queryRecords:function(f,g){var a=this.getData(),d=[],e,b,c;a=(a.getSource()||a).items;for(b=0,e=a.length;b<e;++b){c=a[b];if(c.get(f)===g){d.push(c)}}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:!0,config:{url:'',pageParam:'page',startParam:'start',limitParam:'limit',groupParam:'group',groupDirectionParam:'groupDir',sortParam:'sort',filterParam:'filter',directionParam:'dir',idParam:'id',simpleSortMode:!1,simpleGroupMode:!1,noCache:!0,cacheString:"_dc",timeout:30000,api:{create:undefined,read:undefined,update:undefined,destroy:undefined},extraParams:{}},primitiveRe:/string|number|boolean/,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(c,b){var a=this.getExtraParams();a[c]=b;this.fireEvent('extraparamschanged',a)},updateExtraParams:function(a,b){this.fireEvent('extraparamschanged',a)},buildRequest:function(a){var c=this,g=Ext.apply({},a.getParams()),d=Ext.applyIf(g,c.getExtraParams()||{}),b,e,f;Ext.applyIf(d,c.getParams(a));e=a.getId();f=c.getIdParam();if(e!==undefined&&d[f]===undefined){d[f]=e}b=new Ext.data.Request({params:d,action:a.getAction(),records:a.getRecords(),url:a.getUrl(),operation:a,proxy:c});b.setUrl(c.buildUrl(b));a.setRequest(b);return b},processResponse:function(i,b,h,c){var a=this,f,e,d,g;if(a.destroying||a.destroyed){return}a.fireEvent('beginprocessresponse',a,c,b);if(i===!0){e=a.getReader();if(c.status===204){d=e.getNullResultSet()}else {d=e.read(a.extractResponseData(c),{recordCreator:b.getRecordCreator()||e.defaultRecordCreatorFromServer})}b.process(d,h,c);f=!b.wasSuccessful()}else {a.setException(b,c);f=!0}if(a.destroyed){return}if(f){a.fireEvent('exception',a,c,b)}else {g=d.getMetadata();if(g){a.onMetaChange(g)}}if(a.destroyed){return}a.afterRequest(h,i);a.fireEvent('endprocessresponse',a,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(c,d){var b=[],e=c.length,a;for(a=0;a<e;a++){b[a]=c[a].serialize()}return this.applyEncoding(d?b[0]:b)},encodeFilters:function(f){var d=[],g=f.length,e,b,a,c;for(b=0;b<g;b++){a=f[b];a.getFilterFn();if(a.generatedFilterFn){c=a.serialize();e|=!this.primitiveRe.test(typeof c);d.push(c)}}return e?this.applyEncoding(d):d},getParams:function(d){if(!d.isReadOperation){return {}}var b=this,a={},h=d.getGrouper(),c=d.getSorters(),k=d.getFilters(),s=d.getPage(),l=d.getStart(),r=d.getLimit(),u=b.getSimpleSortMode(),t=b.getSimpleGroupMode(),q=b.getPageParam(),p=b.getStartParam(),o=b.getLimitParam(),g=b.getGroupParam(),m=b.getGroupDirectionParam(),e=b.getSortParam(),n=b.getFilterParam(),i=b.getDirectionParam(),j,f;if(q&&s){a[q]=s}if(p&&(l||l===0)){a[p]=l}if(o&&r){a[o]=r}j=g&&h;if(j){if(t){a[g]=h.getProperty();if(m===g){a[g]+=' '+h.getDirection()}else {a[m]=h.getDirection()}}else {a[g]=b.encodeSorters([h],!0)}}if(e&&c&&c.length>0){if(u){for(f=(c.length>1&&j)?1:0;f<c.length;f++){if(i===e){a[e]=Ext.Array.push(a[e]||[],c[f].getProperty()+' '+c[f].getDirection())}else {a[e]=Ext.Array.push(a[e]||[],c[f].getProperty());a[i]=Ext.Array.push(a[i]||[],c[f].getDirection())}}}else {a[e]=b.encodeSorters(c)}}if(n&&k&&k.length>0){a[n]=b.encodeFilters(k)}return a},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(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(a,b,c){},afterRequest:Ext.emptyFn,destroy:function(){var a=this;a.destroying=!0;a.reader=a.writer=Ext.destroy(a.reader,a.writer);Ext.data.proxy.Proxy.prototype.destroy.call(this);a.destroying=!1;a.destroyed=!0}},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'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},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(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(a,b){return function(f,e,d){var c=this;if(a===c.lastRequest){c.lastRequest=null}if(!c.destroying&&!c.destroyed){c.processResponse(e,b,a,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:!1,preserveRawData:!1},updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},getResponseData:function(b){var a;try{return Ext.decode(b.responseText)}catch(c){a=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,b,a);return a}},buildExtractors:function(c){var a=this,b=Ext.emptyFn,d;if(Ext.data.reader.Reader.prototype.buildExtractors.call(this,c)){a.getRoot=a.setupExtractor(a.getRootProperty(),Ext.identityFn);a.getGroupRoot=a.setupExtractor(a.getGroupRootProperty(),b);a.getSummaryRoot=a.setupExtractor(a.getSummaryRootProperty(),b);a.getMeta=a.setupExtractor(a.getMetaProperty(),b)}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b<c;b++){d[b]=a[b][e]}}else {d=a}return Ext.data.reader.Reader.prototype.extractData.call(this,d,f)},getModelData:function(a){return this.getPreserveRawData()?Ext.apply({},a):a},createAccessor:(function(){var a=/[\[\.]/;return function(c){var o=this.getUseSimpleAccessors(),n,f,j,m,b,e,p,l,g,k,d,h,i,q;if(!(c||c===0)){return}if(typeof c==='function'){return c}if(!o){n=String(c).search(a)}if(o===!0||n<0){f=function(a){return a[c]}}else {j='raw';m=[];b='';e=0;q=c.length;for(h=0;h<=q;++h){d=c[h];p=d==='.';l=d==='[';g=d===']';k=p||l||g||!d;if(!k||e>1||(e&&!g)){b+=d}else if(k){i=!1;if(l){++e}else if(g){--e;i=!0}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}()),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(c,a){return b.mapping(c,a)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return Ext.data.reader.Reader.prototype.getAccessorKey.call(this,a+b)},privates:{copyFrom:function(a){Ext.data.reader.Reader.prototype.copyFrom.call(this,a);this.getRoot=a.getRoot},setupExtractor:function(a,b){return a?this.getAccessor(a):b}}},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:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var h=f.length,g=0,a,c,b,d,e,i=function(c,b){var a={};a[c]=b;return a};for(;g<h;g++){a=f[g];for(c in a){if(a.hasOwnProperty(c)){b=c.split('.');d=b.length-1;if(d>0){e=a[c];for(;d>0;d--){e=i(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else if(g||(a&&a.length)){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}return b}},0,0,0,0,["writer.json"],0,[Ext.data.writer,'Json',Ext.data,'JsonWriter'],0));(Ext.cmd.derive('Ext.util.SorterCollection',Ext.util.Collection,{isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else if(j===0&&h&&h===a.getAt(0)){h.toggle()}a.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;a<e;++a){b=c[a];if(b.getProperty()===d){return b}}return null},_sortModes:{append:{append:1},multi:{multi:1},prepend:{prepend:1},replace:{replace:1}},decodeSorter:function(a,i){var c=this,g=c.getOptions(),h=g.getRootProperty(),f=c.getSorterOptionsFn(),d,b,e;if(a.isSorter){if(!a.getRoot()){a.setRoot(h)}}else {b={direction:g.getDefaultSortDirection(),root:h};e=typeof a;if(e==='string'){d=c.get(a);if(d){return d}b.property=a}else if(e==='function'){b.sorterFn=a}else {b=Ext.apply(b,a);if(b.fn){b.sorterFn=b.fn;delete b.fn}}a=Ext.create(i||Ext.util.Sorter,b)}if(f){f.call(c.getSorterOptionsScope()||c,a)}return a},setSorterConfigure:function(b,a){this.setSorterOptionsFn(b);this.setSorterOptionsScope(a)},decodeRemoveItems:function(e,d){var k=this,b=(d===undefined)?e:e[d];if(!b||!b.$cloned){if(e.length>d+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f<l;f++){a=b[f];if(a&&a.isSorter){c.push(a)}else {h=typeof a;if(h==='string'){a=k.get(a);if(a){c.push(a)}}else if(h==='function'){for(i=j.length;i-->0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}b=c;b.$cloned=!0}return b},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:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);Ext.util.Collection.prototype.constructor.call(this,b);a.setDecoder(a.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)},getFilterCount:function(){var c=this.items,b=c.length,a;for(a=b-1;a>=0;a--){if(c[a].getDisabled()){b--}}return b},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=(e===undefined)?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g<o;g++){a=b[g];if(a&&a.isFilter){h.push(a)}else {i=typeof a;l=i==='function';n=a.property!==undefined&&a.value!==undefined;m=i==='string';for(j=k.length;j-->0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else if(l){d=c.getFilterFn()===a}else if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},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:!0,config:{grouper:null,groupConfig:null,itemRoot:null},observerPriority:-100,emptyGroupRetainTime:300000,constructor:function(a){this.emptyGroups={};Ext.util.Collection.prototype.constructor.call(this,a);this.on('remove','onGroupRemove',this)},getItemGroup:function(a){var b=this.getGrouper().getGroupString(a);return this.get(b)},onCollectionAdd:function(b,a){if(!this.isConfiguring){this.addItemsToGroups(b,a.items,a.at)}},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){if(!a.indexChanged){this.syncItemGrouping(b,a)}this.changeDetails=null},onCollectionRefresh:function(d){if(d.generation){var c=this,j=c.itemGroupKeys={},h=c.createEntries(d,d.items),a=h.entries,g,e,i,b,f;for(e=0,i=a.length;e<i;++e){b=a[e];b.group.splice(0,1.0E99,b.items);for(f=0;f<b.items.length;f++){j[d.getKey(b.items[f])]=b.group}}a=null;for(g in c.map){if(!(g in h.groups)){(a||(a=[])).push(c.map[g])}}if(a){c.remove(a)}c.sortItems()}},onCollectionRemove:function(f,k){var a=this,j=a.changeDetails,m=a.itemGroupKeys||(a.itemGroupKeys={}),e,g,d,b,i,h,c,l;if(f.getCount()){if(j){l=j.item||j.items[0];e=a.createEntries(f,[l]).entries;e[0].group=m['oldKey' in k?k.oldKey:f.getKey(l)]}else {e=a.createEntries(f,k.items).entries}for(b=0,i=e.length;b<i;++b){d=(g=e[b]).group;if(d){d.remove(g.items)}for(h=0;h<g.items.length;h++){delete m[f.getKey(g.items[h])]}if(d&&!d.length){(c||(c=[])).push(d)}}}else {a.itemGroupKeys={};c=a.items;for(b=0,i=c.length;b<i;++b){c[b].clear()}}if(c){a.remove(c)}},onCollectionSort:function(g){var f=this,b=g.getSorters(!1),e,d,a,c;if(b){e=f.items;d=f.length;for(a=0;a<d;++a){c=e[a];if(c.getSorters()!==b){c.setSorters(b)}}}},onCollectionUpdateKey:function(b,a){if(!a.indexChanged){a.oldIndex=b.indexOf(a.item);this.syncItemGrouping(b,a)}},addItemsToGroups:function(c,n,d,f){var e=this,p=e.itemGroupKeys||(e.itemGroupKeys={}),k=e.createEntries(c,n).entries,g=-1,m,a,h,o,i,b,j,l;for(h=0,o=k.length;h<o;++h){a=k[h];b=a.group;if(f||f===0){l=n[0];if(b.getCount()>0&&c.getSorters().getCount()===0){j=c.indexOf(b.items[0]);if(f<j){g=0}else {g=f-j}}if(g===-1){b.add(l)}else {b.insert(g,l)}}else {if(e.length>1&&d){m=c.indexOf(k[0].group.getAt(0));d=Math.max(d-m,0)}a.group.insert(d!=null?d:b.items.length,a.items);for(i=0;i<a.items.length;i++){p[c.getKey(a.items[i])]=a.group}}}e.sortItems()},createEntries:function(l,g){var j=this,c={},e=[],k=j.getGrouper(),d,f,a,b,h,i;for(b=0,i=g.length;b<i;++b){a=k.getGroupString(h=g[b]);if(!(d=c[a])){f=j.getGroup(l,a);e.push(c[a]=d={group:f,items:[]})}d.items.push(h)}return {groups:c,entries:e}},syncItemGrouping:function(i,a){var d=this,h=d.itemGroupKeys||(d.itemGroupKeys={}),c=a.item,f,e,b,g;e=i.getKey(c);f='oldKey' in a?a.oldKey:e;b=h[f];g=d.getGroup(i,d.getGrouper().getGroupString(c));a.group=g;a.oldGroup=b;if(!(a.groupChanged=g!==b)){b.itemChanged(c,a.modified,a.oldKey,a)}else {if(b){b.updateKey(c,f,e);b.remove(c);if(!b.length){d.remove(b)}}d.addItemsToGroups(i,[c],null,a.oldIndex)}delete h[f];h[e]=g},getGroup:function(d,c){var a=this,b=a.get(c),e=a.getAutoSort();if(b){b.setSorters(d.getSorters())}else {b=a.emptyGroups[c]||Ext.create(Ext.apply({xclass:'Ext.util.Group',groupKey:c,rootProperty:a.getItemRoot(),sorters:d.getSorters()},a.getGroupConfig()));b.ejectTime=null;a.setAutoSort(!1);a.add(b);a.setAutoSort(e)}return b},getKey:function(a){return a.getGroupKey()},createSortFn:function(){var c=this,b=c.getGrouper(),a=c.getSorters().getSortFn();if(!b){return a}return function(c,d){return b.sort(c.items[0],d.items[0])||a(c,d)}},updateGrouper:function(b){var a=this;a.grouped=!!(b&&a.$groupable.getAutoGroup());a.onSorterChange();a.onEndUpdateSorters(a.getSorters())},destroy:function(){var a=this;a.$groupable=null;a.destroyGroups(a.items);Ext.undefer(a.checkRemoveQueueTimer);Ext.util.Collection.prototype.destroy.call(this)},privates:{destroyGroups:function(b){var c=b.length,a;for(a=0;a<c;++a){b[a].destroy()}},onGroupRemove:function(h,g){var e=this,b=g.items,f=e.emptyGroups,d,a,c;b=Ext.Array.from(b);for(c=0,d=b.length;c<d;c++){a=b[c];a.setSorters(null);f[a.getGroupKey()]=a;a.ejectTime=Ext.now()}e.checkRemoveQueue()},checkRemoveQueue:function(){var a=this,c=a.emptyGroups,d,b,e;for(d in c){b=c[d];if(!b.getCount()&&Ext.now()-b.ejectTime>a.emptyGroupRetainTime){Ext.destroy(b);delete c[d]}else {e=!0}}if(e){Ext.undefer(a.checkRemoveQueueTimer);a.checkRemoveQueueTimer=Ext.defer(a.checkRemoveQueue,a.emptyGroupRetainTime,a)}}}},1,0,0,0,0,0,[Ext.util,'GroupCollection'],0));(Ext.cmd.derive('Ext.data.Store',Ext.data.ProxyStore,{config:{data:undefined,clearRemovedOnLoad:!0,clearOnPageLoad:!0,associatedEntity:null,role:null,session:null},addRecordsOptions:{addRecords:!0},loadCount:0,complete:!1,moveMapCount:0,constructor:function(a){var c=this,b;if(a){if(a.buffered){return new Ext.data['BufferedStore'](a)}}Ext.data.ProxyStore.prototype.constructor.call(this,a);b=c.inlineData;if(b){delete c.inlineData;c.loadInlineData(b)}},applyData:function(a,c){var b=this;b.getFields();b.getModel();if(a&&a.isCollection){c=a}else {if(!c){c=b.constructDataCollection()}if(a){if(b.isInitializing){b.inlineData=a}else {b.loadData(a)}}}return c},loadInlineData:function(c){var a=this,b=a.getProxy();if(b&&b.isMemoryProxy){b.setData(c);a.suspendEvents();a.read();a.resumeEvents()}else {a.removeAll(!0);a.suspendEvents();a.loadData(c);a.resumeEvents()}},onCollectionAdd:function(b,a){this.loadCount=this.loadCount||1;this.onCollectionAddItems(b,a.items,a)},onCollectionFilterAdd:function(a,b){this.onCollectionAddItems(a,b)},onCollectionAddItems:function(n,g,b){var a=this,m=g.length,k=b?!b.next:!1,h=a.removed,j=a.ignoreCollectionAdd,l=a.getSession(),e=b&&b.replaced,f,i,c,d;if(a.activeRanges){a.syncActiveRanges()}for(f=0;f<m;++f){c=g[f];if(l){l.adopt(c)}if(!j){c.join(a);if(h&&h.length){Ext.Array.remove(h,c)}i=i||c.phantom||c.dirty}}if(j){return}if(e){d=[];do{Ext.Array.push(d,e.items);e=e.next}while(e);a.setMoving(d,!0)}if(b){if(b.replaced){if(k){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}else {a.fireEvent('add',a,g,b.at);if(k){a.fireEvent('datachanged',a)}}}if(d){a.setMoving(d,!1)}a.needsSync=a.needsSync||i},onCollectionBeforeItemChange:function(e,a){var c=a.item,b=a.modified||null,d=a.meta;this.fireEvent('beforeupdate',this,c,d,b,a)},onCollectionFilteredItemChange:function(){this.onCollectionItemChange.apply(this,arguments)},onCollectionItemChange:function(f,b){var a=this,c=b.item,d=b.modified||null,e=b.meta;if(a.fireChangeEvent(c)){a.onUpdate(c,e,d,b);a.fireEvent('update',a,c,e,d,b);a.fireEvent('datachanged',a)}},afterChange:function(b,a,c){this.getData().itemChanged(b,a||null,undefined,c)},afterCommit:function(b,a){this.afterChange(b,a,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(c){var a=this,d=a.getRemoteSort(),b=a.getData(),e;if(d){b.setSorters(a.getSorters())}e=b.findInsertionIndex(c);if(d){b.setSorters(null)}return a.insert(e,c)},remove:function(c,h,i){var f=this,e=f.getDataSource(),d,g,b,a;if(c){if(c.isModel){if(e.indexOf(c)>-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g<d;++g){a=c[g];if(a&&a.isEntity){if(!e.contains(a)){continue}}else if(!(a=e.getAt(a))){continue}b.push(a)}d=b.length}}if(!d){return []}f.removeIsMove=h===!0;f.removeIsSilent=i;e.remove(b);f.removeIsSilent=!1;return b},onCollectionRemove:function(n,f){var a=this,g=a.removed,e=f.items,m=e.length,i=f.at,b=f.replacement,h=a.removeIsMove||(b&&Ext.Array.equals(e,b.items)),k=a.removeIsSilent,j=!f.next,l=a.getDataSource(),d,c;if(a.ignoreCollectionRemove){return}if(b){a.setMoving(b.items,!0)}for(d=m-1;d>=0;d--){c=e[d];if(!l.contains(c)){if(g&&!h&&!c.phantom&&!c.erasing){c.removedFrom=i+d;g.push(c);a.needsSync=!0}else {c.unjoin(a)}}}if(!k){if(!b||!b.items.length){a.fireEvent('remove',a,e,i,h);if(j){a.fireEvent('datachanged',a)}}}if(b){a.setMoving(b.items,!1)}},onFilterEndUpdate:function(){var a=this;if(a.destroying||a.destroyed){return}if(a.activeRanges){a.syncActiveRanges()}Ext.data.ProxyStore.prototype.onFilterEndUpdate.apply(this,arguments);a.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(d){var a=this,b=a.getData(),c=b.getRange();if(b.length){a.removeIsSilent=!0;a.callObservers('BeforeRemoveAll');b.removeAll();a.removeIsSilent=!1;if(!d){a.fireEvent('clear',a,c);a.fireEvent('datachanged',a)}a.callObservers('AfterRemoveAll',[!!d])}return c},setRecords:function(a){var b=this.getCount();++this.loadCount;if(b){this.getData().splice(0,b,a)}else {this.add(a)}},splice:function(b,a,c){return this.getData().splice(b,a,c)},onProxyLoad:function(b){var a=this,e=b.getResultSet(),c=b.getRecords(),d=b.wasSuccessful();if(a.destroyed){return}if(e){a.totalCount=e.getTotal()}if(d){c=a.processAssociation(c);a.loadRecords(c,b.getAddRecords()?{addRecords:!0}:undefined);a.attachSummaryRecord(e)}else {a.loading=!1}if(a.hasListeners.load){a.fireEvent('load',a,c,d,b)}a.callObservers('AfterLoad',[c,d,b])},onProxyWrite:function(a){if(a.wasSuccessful()){this.attachSummaryRecord(a.getResultSet())}Ext.data.ProxyStore.prototype.onProxyWrite.call(this,a)},filterDataSource:function(f){var c=this.getDataSource(),b=c.items,e=b.length,d=[],a;for(a=0;a<e;a++){if(f.call(c,b[a])){d.push(b[a])}}return d},getNewRecords:function(){return this.filterDataSource(this.filterNew)},getRejectRecords:function(){return this.filterDataSource(this.filterRejects)},getUpdatedRecords:function(){return this.filterDataSource(this.filterUpdated)},loadData:function(d,e){var b=this,f=d.length,a=[],c;for(c=0;c<f;c++){a.push(b.createModel(d[c]))}a=b.processAssociation(a);b.loadRecords(a,e?b.addRecordsOptions:undefined)},loadRawData:function(g,f){var a=this,c=a.getSession(),b=a.getProxy().getReader().read(g,c?{recordCreator:c.recordCreator}:undefined),e=b.getRecords(),d=b.getSuccess();if(d){a.totalCount=b.getTotal();a.loadRecords(e,f?a.addRecordsOptions:undefined)}return d},loadRecords:function(c,g){var a=this,h=c.length,d=a.getData(),e,b,f;if(g){e=g.addRecords}if(!a.getRemoteSort()&&!a.getSortOnLoad()){f=!0;d.setAutoSort(!1)}if(!e){a.clearData(!0)}a.loading=!1;a.ignoreCollectionAdd=!0;a.callObservers('BeforePopulate');d.add(c);a.ignoreCollectionAdd=!1;if(f){d.setAutoSort(!0)}for(b=0;b<h;b++){c[b].join(a)}if(!a.isEmptyStore){++a.loadCount;a.complete=!0}if(a.hasListeners.datachanged){a.fireEvent('datachanged',a)}if(a.hasListeners.refresh){a.fireEvent('refresh',a)}a.callObservers('AfterPopulate')},loadPage:function(c,b){var a=this,d=a.getPageSize();a.currentPage=c;b=Ext.apply({page:c,start:(c-1)*d,limit:d,addRecords:!a.getClearOnPageLoad()},b);a.read(b)},nextPage:function(a){this.loadPage(this.currentPage+1,a)},previousPage:function(a){this.loadPage(this.currentPage-1,a)},clearData:function(h){var a=this,b=a.removed,f=a.getDataSource(),g=a.getClearRemovedOnLoad(),j=b&&h&&!g,d,e,c,i;if(f){d=f.items;for(c=0,i=d.length;c<i;++c){e=d[c];if(j&&Ext.Array.contains(b,e)){continue}e.unjoin(a)}a.ignoreCollectionRemove=!0;a.callObservers('BeforeClear');f.removeAll();a.ignoreCollectionRemove=!1;a.callObservers('AfterClear')}if(b&&(!h||g)){b.length=0}},onIdChanged:function(b,a,c){this.getData().updateKey(b,a);this.fireEvent('idchanged',this,b,a,c)},commitChanges:function(){var a=this,c=a.getModifiedRecords(),d=c.length,b=0;Ext.suspendLayouts();a.beginUpdate();for(;b<d;b++){c[b].commit()}a.cleanRemoved();a.endUpdate();Ext.resumeLayouts(!0);a.fireEvent('commit',a)},filterNewOnly:function(a){return a.phantom===!0},filterRejects:function(a){return a.phantom||a.dirty},rejectChanges:function(){var a=this,c=a.getRejectRecords(),f=c.length,b,d,e,g,h,i;Ext.suspendLayouts();a.beginUpdate();for(b=0;b<f;b++){d=c[b];if(d.phantom){e=e||[];e.push(d)}else {d.reject()}}if(e){a.remove(e);for(b=0,f=e.length;b<f;++b){e[b].reject()}}c=a.getRawRemovedRecords();if(c){f=c.length;g=!a.getRemoteSort()&&a.isSorted();if(g){h=a.getData();i=h.getAutoSort();h.setAutoSort(!1)}for(b=f-1;b>=0;b--){d=c[b];d.reject();if(!g){a.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);a.add(c)}c.length=0}a.endUpdate();Ext.resumeLayouts(!0);a.fireEvent('reject',a)},doDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}Ext.data.ProxyStore.prototype.doDestroy.call(this)},privates:{commitOptions:{commit:!0},attachSummaryRecord:function(g){if(!g){return}var d=this,a=g.getSummaryData(),k=d.getGrouper(),b=d.summaryRecord,h=d.commitOptions,i,j,f,c,e;if(a){if(b){b.set(a.data,h)}else {d.summaryRecord=a;a.isRemote=!0}}if(k){a=g.getGroupData();if(a){i=d.getGroups();for(f=0,j=a.length;f<j;++f){c=a[f];e=i.getItemGroup(c);if(e){b=e.summaryRecord;if(b){b.set(c.data,h)}else {e.summaryRecord=c;c.isRemote=!0}}}}}},fetch:function(a){a=Ext.apply({},a);this.setLoadOptions(a);var b=this.createOperation('read',a);b.execute()},fireChangeEvent:function(a){return this.getDataSource().contains(a)},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,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,b,a)},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d<e;++d){b+=c[a[d].id]?1:0}}else if(c[a.id]){++b}}else {b=f?c:this.moveMapCount}}return b},setLoadOptions:function(a){var b=this,c=b.getPageSize(),e,d;if(b.getRemoteSort()&&!a.grouper){d=b.getGrouper();if(d){a.grouper=d}}if(c||'start' in a||'limit' in a||'page' in a){a.page=a.page!=null?a.page:b.currentPage;a.start=(a.start!==undefined)?a.start:(a.page-1)*c;a.limit=a.limit!=null?a.limit:c;b.currentPage=a.page}a.addRecords=a.addRecords||!1;if(!a.recordCreator){e=b.getSession();if(e){a.recordCreator=e.recordCreator}}Ext.data.ProxyStore.prototype.setLoadOptions.call(this,a)},setMoving:function(e,f){var b=this,c=b.moveMap||(b.moveMap={}),g=e.length,d,a;for(d=0;d<g;++d){a=e[d].id;if(f){if(c[a]){++c[a]}else {c[a]=1;++b.moveMapCount}}else {if(--c[a]===0){delete c[a];--b.moveMapCount}}}if(b.moveMapCount===0){b.moveMap=null}},processAssociation:function(b){var a=this,c=a.getAssociatedEntity();if(c){b=a.getRole().processLoad(a,c,b,a.getSession())}return b}}},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(a){var b=a.mapping,d=a.hasMapping()?b:a.ordinal,c;a.mapping=d;c=Ext.data.reader.Json.prototype.createFieldAccessor.apply(this,arguments);a.mapping=b;return c},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(a,d){if(this.expandData){var c=[],b=0,e=a.length;for(;b<e;b++){c[c.length]=[a[b]]}a=c}Ext.data.Store.prototype.loadData.call(this,a,d)}},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:!0,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(a,h){if(Ext.isArray(a)){var g=a[0],c=a,e,f,b,d;if(Ext.isObject(g)){a={data:c}}else {e=Ext.isArray(g);f=['field1'];if(e){for(b=2,d=g.length;b<=d;++b){f.push('field'+b)}}else {c=[];for(b=0,d=a.length;b<d;++b){c.push([a[b]])}}return new Ext.data.ArrayStore({data:c,fields:f,autoDestroy:!0,autoCreated:!0,expanded:!e})}}if(Ext.isString(a)){return this.get(a)}else {return Ext.Factory.store(a,h)}},getKey:function(a){return a.storeId},addEmptyStore:function(){var a=this.$emptyStore,b={destroy:Ext.emptyFn};if(!a){a=this.$emptyStore=Ext.regStore('ext-empty-store',{proxy:'memory',useModelWarning:!1});a.isEmptyStore=!0;a.on=a.addListener=function(){return b};a.un=a.removeListener=Ext.emptyFn}this.add(a)},clear:function(){this.callParent();this.addEmptyStore()}},0,0,0,0,0,0,[Ext.data,'StoreManager',Ext,'StoreMgr',Ext.data,'StoreMgr',Ext,'StoreManager'],function(){Ext.regStore=function(b,a){var c;if(Ext.isObject(b)){a=b}else {if(Ext.data.StoreManager.containsKey(b)){return Ext.data.StoreManager.lookup(b)}a.storeId=b}if(a instanceof Ext.data.Store){c=a}else {c=new Ext.data.Store(a)}Ext.data.StoreManager.register(c);return c};Ext.getStore=function(a){return Ext.data.StoreManager.lookup(a)};Ext.data.StoreManager.addEmptyStore()}));(Ext.cmd.derive('Ext.app.domain.Store',Ext.app.EventDomain,{singleton:!0,type:'store',prefix:'store.',idMatchRe:/^\#/,constructor:function(){var a=this;a.callParent();a.monitor(Ext.data.AbstractStore)},match:function(c,a){var b=!1,d=c.alias;if(a==='*'){b=!0}else if(this.idMatchRe.test(a)){b=c.getStoreId()===a.substring(1)}else if(d){b=Ext.Array.indexOf(d,this.prefix+a)>-1}return b}},1,0,0,0,0,0,[Ext.app.domain,'Store'],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\./,profileRegex:/^(.*)\.profile\./,createGetter:function(a,b){return function(){return this[a](b)}},getGetterName:function(f,d){var b='get',c=f.split('.'),e=c.length,a;for(a=0;a<e;a++){b+=Ext.String.capitalize(c[a])}b+=d;return b},resolveNamespace:function(f,e){var b=Ext.app.Controller,g=f.prototype.isProfile?b.profileRegex:b.controllerRegex,a,c,d;a=Ext.getClassName(f);c=e.$namespace||e.namespace||Ext.app.getNamespace(a)||((d=g.exec(a))&&d[1]);return c},processDependencies:function(m,p,o,f,a,n){if(!a||!a.length){return}var c=this,k=c.strings[f],h,i,j,g,b,l,d,e;if(!Ext.isArray(a)){a=[a]}for(b=0,l=a.length;b<l;b++){g=a[b];h=c.getFullName(g,f,o,n);a[b]=i=h.absoluteName;j=h.shortName;p.push(i);d=c.getGetterName(j,k.upper);if(!m[d]){m[d]=e=c.createGetter(k.getter,g)}if(e&&f!=='controller'){e['Ext.app.getter']=!0}}},getFullName:function(a,g,d,f){var c=a,e,b;if((e=a.indexOf('@'))>0){c=a.substring(0,e);b=a.substring(e+1)+'.'+c}else if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a;c=a.replace(d+'.'+g+'.','')}else {if(d){b=d+'.'+g+'.'+(f?f+'.'+a:a);c=a}else {b=a}}return {absoluteName:b,shortName:c}},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:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.call(this,a)},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c<f;c++){d=b[c];a[d.ref]=d.selector}}}return a},applyId:function(a){return a||Ext.app.Controller.getFullName(this.$className,'controller',this.$namespace).shortName},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=!0}},finishInit:function(f){var c=this,a=c.controllers,d,b,e;if(c._initialized&&a&&a.length){for(b=0,e=a.length;b<e;b++){d=c.getController(a[b]);d.finishInit(f)}}},init:Ext.emptyFn,onLaunch:Ext.emptyFn,activate:function(){this.setActive(!0)},deactivate:function(){this.setActive(!1)},isActive:function(){return this.getActive()},ref:function(b){var a=this,f=0,g=b.length,d,c,e;b=Ext.Array.from(b);a.references=a.references||[];for(;f<g;f++){d=b[f];c=d.ref;e='get'+Ext.String.capitalize(c);if(!a[e]){a[e]=Ext.Function.pass(a.getRef,[c,d],a)}a.references.push(c.toLowerCase())}},addRef:function(a){this.ref(a)},getRef:function(d,a,e){var f=this,c=f.refCache||(f.refCache={}),b=c[d];a=a||{};e=e||{};Ext.apply(a,e);if(a.forceCreate){return Ext.ComponentManager.create(a,'component')}if(!b){if(a.selector){c[d]=b=Ext.ComponentQuery.query(a.selector)[0]}if(!b&&a.autoCreate){c[d]=b=Ext.ComponentManager.create(a,'component')}if(b){b.on('destroy',function(){c[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(a){var c,b;c=(a.indexOf('@')===-1)?a:a.split('@')[0];b=Ext.StoreManager.get(c);if(!b){a=Ext.app.Controller.getFullName(a,'store',this.$namespace);if(a){b=Ext.create(a.absoluteName,{id:c})}}return b},getModel:function(b){var c=Ext.app.Controller.getFullName(b,'model',this.$namespace),a=Ext.ClassManager.get(c.absoluteName);if(!a){a=Ext.data.schema.Schema.lookupEntity(b)}return a},getProfile:function(a){a=Ext.app.Controller.getFullName(a,'profile',this.$namespace);return a},getView:function(b){var a=Ext.app.Controller.getFullName(b,'view',this.$namespace);return a&&Ext.ClassManager.get(a.absoluteName)},destroy:function(e,f){var b=this,d=b.application,a,c;if(!f&&d){d.unregister(b)}b.application=null;if(e){a=b.refCache;for(c in a){if(a.hasOwnProperty(c)){Ext.destroy(a[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:!0,scope:undefined,namespaces:[],paths:null,config:{name:'',appProperty:'app',profiles:[],currentProfile:null,mainView:{$value:null,lazy:!0},defaultToken:null,glyphFontFamily:null,quickTips:!0,router:null},onClassExtended:function(d,a,f){var h=Ext.app.Controller,g=d.prototype,c=[],e,i,b,j;b=a.name||d.superclass.name;if(b){a.$namespace=b;Ext.app.addNamespaces(b)}if(a.namespaces){Ext.app.addNamespaces(a.namespaces)}if(a['paths processed']){delete a['paths processed']}else {Ext.app.setupPaths(b,('appFolder' in a)?a.appFolder:d.superclass.appFolder,a.paths)}h.processDependencies(g,c,b,'profile',a.profiles);g.getDependencies(d,a,c);if(c.length){e=f.onBeforeCreated;f.onBeforeCreated=function(h,g){var b=Ext.Array.clone(arguments);Ext.require(c,function(){return e.apply(this,b)})}}},getDependencies:Ext.emptyFn,constructor:function(b){var a=this;Ext.route.Router.application=a;Ext.app.Controller.prototype.constructor.call(this,b);a.doInit(a);Ext.on('appupdate',a.onAppUpdate,a,{single:!0});this.onProfilesReady()},applyId:function(a){return a||this.$className},updateRouter:function(a){if(a){Ext.route.Router.setConfig(a)}},onAppUpdate:Ext.emptyFn,onProfilesReady:function(){var a=this,e=a.getProfiles(),f=e.length,b,c,d;for(c=0;c<f;c++){d=Ext.create(e[c],{application:a});if(d.isActive()&&!b){b=d;a.setCurrentProfile(b)}}if(b){b.init()}a.initControllers();a.onBeforeLaunch();a.finishInitControllers()},doInit:function(a){this.initNamespace(a);Ext.app.Controller.prototype.doInit.call(this,a)},initNamespace:function(a){var c=a.getAppProperty(),b=Ext.namespace(a.getName());if(b){b.getApplication=function(){return a};if(c){if(!b[c]){b[c]=a}}}},initControllers:function(){var c=this,b=Ext.Array.from(c.controllers),e=c.getCurrentProfile(),a,d;c.controllers=new Ext.util.MixedCollection();for(a=0,d=b.length;a<d;a++){c.getController(b[a])}if(e){b=e.getControllers();for(a=0,d=b.length;a<d;a++){c.getController(b[a])}}},finishInitControllers:function(){var c=this,b,a,d;b=c.controllers.getRange();for(a=0,d=b.length;a<d;a++){b[a].finishInit(c)}},launch:Ext.emptyFn,onBeforeLaunch:function(){var a=this,b=Ext.util.History,e=a.getDefaultToken(),g=a.getCurrentProfile(),f,d,i,h,c;a.initMainView();if(g){g.launch()}a.launch.call(a.scope||a);a.launched=!0;a.fireEvent('launch',a);f=a.controllers.items;i=f.length;for(d=0;d<i;d++){h=f[d];h.onLaunch(a)}if(!b.ready){b.init()}c=b.getToken();if(c||c===e){Ext.route.Router.onStateChange(c)}else if(e){b.replace(e)}if(Ext.Microloader&&Ext.Microloader.appUpdate&&Ext.Microloader.appUpdate.updated){Ext.Microloader.fireAppUpdate()}if(!a.cnsTimer){a.cnsTimer=Ext.defer(Ext.ClassManager.clearNamespaceCache,2000,Ext.ClassManager)}},getModuleClassName:function(b,a){return Ext.app.Controller.getFullName(b,a,this.getName()).absoluteName},initMainView:function(){var b=this,c=b.getCurrentProfile(),a;if(c){a=c.getMainView()}if(a){b.setMainView(a)}else {b.getMainView()}},applyMainView:function(a){var b=this.getView(a);return b.create({$initParent:this.viewport})},createController:function(a){return this.getController(a)},destroyController:function(a){if(typeof a==='string'){a=this.getController(a,!0)}Ext.destroy(a)},getController:function(f,j){var c=this,e=c.controllers,b,a,i,d,h,g;a=e.get(f);if(!a){g=e.items;for(d=0,i=g.length;d<i;++d){h=g[d];b=h.getModuleClassName();if(b&&b===f){a=h;break}}}if(!a&&!j){b=c.getModuleClassName(f,'controller');a=Ext.create(b,{application:c,moduleClassName:b});e.add(a);if(c._initialized){a.doInit(c)}}return a},unregister:function(a){this.controllers.remove(a)},getApplication:function(){return this},destroy:function(d){var a=this,c=a.controllers,b=Ext.namespace(a.getName()),e=a.getAppProperty();Ext.undefer(a.cnsTimer);Ext.un('appupdate',a.onAppUpdate,a);Ext.destroy(a.viewport);if(c){c.each(function(a){a.destroy(d,!0)})}a.controllers=null;Ext.app.Controller.prototype.destroy.call(this,d,!0);if(b&&b[e]===a){delete b[e]}if(Ext.route.Router.application===a){Ext.route.Router.application=null}if(Ext.app.Application.instance===a){Ext.app.Application.instance=null}},updateGlyphFontFamily:function(a){Ext.setGlyphFontFamily(a)},applyProfiles:function(a){var b=this;return Ext.Array.map(a,function(c){return b.getModuleClassName(c,"profile")})}},1,0,0,0,0,0,[Ext.app,'Application'],function(){Ext.getApplication=function(){return Ext.app.Application.instance}}));Ext.application=function(a){var b=function(b){Ext.onReady(function(){var c=Ext.viewport;c=c&&c['Viewport'];if(c&&c.setup){c.setup(b.prototype.config.viewport)}Ext.app.Application.instance=new b()})};if(typeof a==="string"){Ext.require(a,function(){b(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']=!0;Ext.define(a.name+".$application",a,function(){b(this)})}};Ext.define('Ext.overrides.app.Application',{override:'Ext.app.Application',autoCreateViewport:!1,config:{enableQuickTips:null},quickTips:!0,updateEnableQuickTips:function(a){this.setQuickTips(a)},applyMainView:function(b){var c,d,a,f,e;if(typeof b==='string'){c=this.getView(b);a={}}else {a=b;c=Ext.ClassManager.getByConfig(b)}d=c.prototype;if(!d.isViewport){f=Ext.Array.from(d.plugins);e=Ext.Array.from(a.plugins);a=Ext.apply({},a);a.plugins=['viewport'].concat(f,e)}return c.create(a)},getDependencies:function(g,c,b){var d=Ext.app.Controller,f=g.prototype,e=c.$namespace,a=c.autoCreateViewport;if(a){if(a===!0){a='Viewport'}else {b.push('Ext.plugin.Viewport')}d.processDependencies(f,b,e,'view',a)}},onBeforeLaunch:function(){var a=this,b=a.autoCreateViewport;if(a.getQuickTips()){a.initQuickTips()}if(b){a.initViewport()}arguments.callee.$previous.apply(this,arguments)},getViewportName:function(){var b=null,a=this.autoCreateViewport;if(a){b=(a===!0)?'Viewport':a}return b},initViewport:function(){this.setMainView(this.getViewportName())},initQuickTips:function(){Ext.tip.QuickTipManager.init()}});(Ext.cmd.derive('Ext.app.Profile',Ext.Base,{isProfile:!0,config:{mainView:{$value:null,lazy:!0},application:null,controllers:[],models:[],views:[],stores:[]},constructor:function(a){this.initConfig(a);this.mixins.observable.constructor.apply(this,arguments)},isActive:function(){return !1},init:function(){var a=this.getViews(),b;if(a&&!(a instanceof Array)){for(b in a){Ext.ClassManager.setXType(a[b],b)}}},launch:Ext.emptyFn,onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,f){var h=Ext.app.Controller,m=j.$className,g=[],k=j.prototype,l=f.views,e,i;e=f.name;if(e){delete f.name}else {e=m.split('.');e=e[e.length-1]}j._name=e;j._namespace=e=(f.namespace||e).toLowerCase();delete f.namespace;i=h.resolveNamespace(j,f);h.processDependencies(k,g,i,'model',f.models,e);h.processDependencies(k,g,i,'store',f.stores,e);h.processDependencies(k,g,i,'controller',f.controllers,e);if(l){if(l instanceof Array){h.processDependencies(k,g,i,'view',l,e)}else {Ext.app.Profile.processViews(m,l,g)}}Ext.require(g,Ext.Function.pass(b,arguments,this))}},getName:function(){return this.self._name},getNamespace:function(){return this.self._namespace},privates:{statics:{processViews:function(f,c,g){var d,a,e,b;for(b in c){a=c[b];if(typeof a!=='string'){e=a.xclass;d=Ext.apply({extend:e},a);delete d.xclass;Ext.define(c[b]=f+'$'+b,d);a=e}g.push(a)}}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.app,'Profile'],0));(Ext.cmd.derive('Ext.app.domain.View',Ext.app.EventDomain,{isInstance:!0,constructor:function(a){Ext.app.EventDomain.prototype.constructor.call(this,a);this.controller=a;this.monitoredClasses=[Ext.Widget]},match:function(c,b,d){var a=!1;if(b==='#'){a=d===c.getController()}else {a=c.is(b)}return a},destroy:function(){this.controller=null;Ext.app.EventDomain.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.app.domain,'View'],0));Ext.define('Ext.overrides.app.domain.View',{override:'Ext.app.domain.View',constructor:function(a){(arguments.callee.$previous||Ext.app.EventDomain.prototype.constructor).call(this,a);this.monitoredClasses.push(Ext.Component)}});(Ext.cmd.derive('Ext.app.ViewController',Ext.app.BaseController,{isViewController:!0,factoryConfig:{type:'controller'},config:{bindings:{$value:null,lazy:!0},closeViewAction:'destroy'},view:null,constructor:function(a){this.compDomain=new Ext.app.domain.View(this);Ext.app.BaseController.prototype.constructor.call(this,a)},beforeInit:Ext.emptyFn,init:Ext.emptyFn,initViewModel:Ext.emptyFn,destroy:function(){var a=this,b=a.compDomain,c,d,e;if(a.$hasBinds){c=a.getBindings();for(e in c){d=c[e];if(d){d.destroy()}}}if(b){b.unlisten(a);b.destroy()}a.compDomain=a.view=null;Ext.app.BaseController.prototype.destroy.call(this)},closeView:function(){var b=this.getView(),a;if(b){a=this.getCloseViewAction();b[a]()}},control:function(a,c){var b=a;if(Ext.isString(a)){b={};b[a]=c}this.compDomain.listen(b,this)},listen:function(a,c){var b=a.component;if(b){a=Ext.apply({},a);delete a.component;this.control(b)}this.callParent([a,c])},applyId:function(a){if(!a){a=Ext.id(null,'controller-')}return a},getReferences:function(){var a=this.view;return a&&a.getReferences()},getView:function(){return this.view},lookup:function(b){var a=this.view;return a&&a.lookup(b)},lookupReference:function(a){return this.lookup(a)},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(e,d){var a=this.view,c=!1,b=arguments;if(a){if(a!==d){b=Ext.Array.slice(b);b.splice(1,0,a)}c=a.fireEvent.apply(a,b)}return c},applyBindings:function(a){if(!a){return null}var c=this,g=c.getViewModel(),f=c.getBindTemplateScope(),d,b,e;c.$hasBinds=!0;for(b in a){e=a[b];d=null;if(e){d=g.bind(e,b,c);d.getTemplateScope=f}a[b]=d}return a},privates:{view:null,attachReference:function(b){var a=this.view;if(a){a.attachReference(b)}},getBindTemplateScope:function(){return this.scope},initBindings:function(){this.getBindings()},setView:function(a){this.view=a;if(!this.beforeInit.$nullFn){this.beforeInit(a)}}}},1,0,0,0,["controller.controller"],[[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:!0,constructor:function(){this.items=[];this.map={}},generation:0,length:0,beginUpdate:Ext.emptyFn,endUpdate:Ext.emptyFn,add:function(d){var c=this,h=c.items,k=c.map,l=1,a,g,e,j,b,f,i;if(Ext.isArray(d)){a=f=[];l=d.length}for(g=0;g<l;g++){j=c.getKey(b=a?d[g]:d);e=k[j];if(e===undefined){h.push(b);k[j]=c.length++;if(a){a.push(b)}else {f=b}}else {i=h[e];if(a){a.push(i)}else {f=i}h[e]=b}}++c.generation;return f},clear:function(){var a=this,b=a.generation||a.length,c=b?a.items:[];if(b){a.items=[];a.length=0;a.map={};++a.generation}return c},clone:function(){var a=this,b=new a.self(),c=a.length;if(c){Ext.apply(b.map,a.map);b.items=a.items.slice();b.length=a.length}return b},contains:function(a){var d=!1,c=this.map,b;if(a!=null){b=this.getKey(a);if(b in c){d=this.items[c[b]]===a}}return d},containsKey:function(a){return a in this.map},destroy:function(){this.items=this.map=null;this.callParent()},each:function(f,c){var b=this.items,d=b.length,a,e;if(d){c=c||this;b=b.slice(0);for(a=0;a<d;a++){e=f.call(c,b[a],a,d);if(e===!1){break}}}return e},getAt:function(a){var b=null;if(a<this.length){b=this.items[a]}return b},get:function(a){return this.getByKey(a)},getByKey:function(a){var b=this.map,c=(a in b)?this.items[b[a]]:null;return c},indexOfKey:function(a){var b=this.map,c=(a in b)?b[a]:-1;return c},last:function(){return this.items[this.length-1]},updateKey:function(e,a){var c=this,b=c.map,d;if(!e||!a){return}if((d=c.getKey(e))!==a){if(c.getAt(b[a])===e&&!(d in b)){c.generation++;b[d]=b[a];delete b[a]}}},getCount:function(){return this.length},getKey:function(a){return a.id||a.getId()},getRange:function(d,e){var c=this.items,b=c.length,a;if(!b){a=[]}else {a=Ext.Number.clipIndices(b,[d,e]);a=c.slice(a[0],a[1])}return a},remove:function(c){var a=this,h=a.map,f=a.items,i=null,m=1,k,d,e,b,l,g,j;if(Ext.isArray(c)){m=c.length;d=i=[]}if(a.length){for(e=0;e<m;e++){b=h[l=a.getKey(d?c[e]:c)];if(b!==undefined){delete h[l];j=f[b];if(d){d.push(j)}else {i=j}g=f.pop();if(b<--a.length){f[b]=g;h[a.getKey(g)]=b}k=!0}}if(k){++a.generation}}return i},removeByKey:function(b){var a=this.getByKey(b);if(a){this.remove(a)}return a||null},replace:function(a){this.add(a);return a},sort:function(e){var a=this,c=a.items,b=c.length,d;if(b){Ext.Array.sort(c,e);a.map={};while(b-->0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}},1,0,0,0,0,0,[Ext.util,'Bag'],0));(Ext.cmd.derive('Ext.util.Scheduler',Ext.Base,{busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,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.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c<b.length;++c){d=b[c];if(!f[d.id]){a.sortItem(d)}}a.sortMap=null},sortItem:function(a){var b=this,d=b.sortMap,e=b.orderedItems,c;if(!a.scheduler){b.add(a)}c=a.id;if(!(c in d)){d[c]=0;if(!a.sort.$nullFn){a.sort()}d[c]=1;a.order=b.orderedItems.length;e.push(a)}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(e){if(typeof e==='function'){return e}var b=e.split(','),d=[],g=b.length,c,a,f;for(a=0;a<g;++a){d[a]=1;f=b[a];if((c=f.charAt(0))==='-'){d[a]=-1}else if(c!=='+'){c=0}if(c){b[a]=f.substring(1)}}return function(j,k){var f=0,a,c,h,i;for(a=0;!f&&a<g;++a){c=b[a];h=j[c];i=k[c];f=d[a]*((h<i)?-1:((i<h)?1:0))}return f}},notify:function(){var a=this,k=a.timer,h=a.getCycleLimit(),f=Ext.GlobalEvents,j=a.suspendOnNotify,g,b,d,e,c,i;if(k){window.clearTimeout(k);a.timer=null}if(!a.firing&&a.scheduledCount){if(j){Ext.suspendLayouts()}while(a.scheduledCount){if(h){--h}else {a.firing=null;break}if(!i){i=!0;if(f.hasListeners.beforebindnotify){f.fireEvent('beforebindnotify',a)}}++a.passes;if(!(c=a.orderedItems)){a.sort();c=a.orderedItems}e=c.length;if(e){a.firing=a.items;for(b=0;b<e;++b){d=c[b];if(d.scheduled){d.scheduled=!1;--a.scheduledCount;a.notifyIndex=b;d.react();if(!a.scheduledCount){break}}}}}a.firing=null;a.notifyIndex=-1;if(j){Ext.resumeLayouts(!0)}}if((g=a.busyCounter)!==a.lastBusyCounter){if(!(a.lastBusyCounter=g)){a.fireEvent('idle',a)}}},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.defer(a.onTick,a.getTickDelay(),a)}},unscheduleItem:function(a){if(this.scheduledCount){--this.scheduledCount}},adjustBusy:function(c){var a=this,b=a.busyCounter+c;a.busyCounter=b;if(b){if(!a.lastBusyCounter){a.lastBusyCounter=b;a.fireEvent('busy',a)}}else if(a.lastBusyCounter&&!a.timer){a.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:!1},current:-1,total:0,running:!1,complete:!1,exception:!1,constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.operations=[];a.exceptions=[]},add:function(a){var b=this,c,d;if(Ext.isArray(a)){for(c=0,d=a.length;c<d;++c){b.add(a[c])}}else {b.total++;a.setBatch(b);b.operations.push(a)}return b},sort:function(){this.operations.sort(this.sortFn)},sortFn:function(b,e){var f=b.order-e.order;if(f){return f}var a=b.entityType,d=e.entityType,c;if(!a||!d){return 0}if(!(c=a.rank)){a.schema.rankEntities();c=a.rank}return (c-d.rank)*b.foreignKeyDirection},start:function(b){var a=this;if(!a.operations.length||a.running){return a}a.exceptions.length=0;a.exception=!1;a.running=!0;return a.runOperation(Ext.isDefined(b)?b:a.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=!1;return this},getOperations:function(){return this.operations},getExceptions:function(){return this.exceptions},getCurrent:function(){var b=null,a=this.current;if(!(a===-1||this.complete)){b=this.operations[a]}return b},getTotal:function(){return this.total},isRunning:function(){return this.running},isComplete:function(){return this.complete},hasException:function(){return this.exception},runOperation:function(d){var a=this,c=a.operations,b=c[d];if(b===undefined){a.running=!1;a.complete=!0;a.fireEvent('complete',a,c[c.length-1])}else {a.current=d;b.setInternalCallback(a.onOperationComplete);b.setInternalScope(a);b.execute()}return a},onOperationComplete:function(b){var a=this,c=b.hasException();if(c){a.exception=!0;a.exceptions.push(b);a.fireEvent('exception',a,b)}if(c&&a.getPauseOnException()){a.pause()}else {a.fireEvent('operationcomplete',a,b);a.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(b){var a=this;a.store=b;b.matrix=a;b.on('load',a.onStoreLoad,a,{single:!0})},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(l,d){var e=this,p=Ext.data.matrix.Slice,o=e.side,q=o.index,r=l.length,i=e.id,k=e.members,m=o.inverse,g=m.slices,c,f,j,h,b,a,n;for(j=0;j<r;++j){f=n=null;h=l[j];b=h.isEntity?(n=h).id:h;c=k[b];if(d<0&&c&&c[2]===1){delete k[b];a=g[b];if(a){delete a.members[i]}f=1}else {if(!c){c=[b,b,d];c[q]=i;k[b]=c;a=g[b];if(!a){g[b]=a=new p(m,b)}a.members[i]=c;f=1}else if(d!==c[2]&&d!==0&&!(d===1&&c[2]===0)){c[2]=d;a=g[b];f=1}}if(f){if(e.notify){e.notify.call(e.scope,e,b,d)}if(a&&a.notify){a.notify.call(a.scope,a,i,d)}}}},updateId:function(b){var g=this,c=g.id,f=g.side,e=f.slices,j=e[c],h=j.members,l=f.index,k=f.inverse.slices,i,d,a;g.id=b;e[b]=j;delete e[c];for(d in h){i=h[d];i[l]=b;a=k[d].members;a[b]=a[c];delete a[c]}},destroy:function(){var a=this,b=a.store;if(b){b.matrix=null;b.un('load',a.onStoreLoad,a)}a.notify=a.scope=a.store=a.side=a.members=null;a.callParent()}},1,0,0,0,0,0,[Ext.data.matrix,'Slice'],0));(Ext.cmd.derive('Ext.data.matrix.Side',Ext.Base,{constructor:function(b,c,d){var a=this;a.matrix=b;a.index=c;a.role=d;a.slices={}},commit:function(){var a=this.slices,b;for(b in a){a[b].commit()}},get:function(a,b){var e=this,c=e.slices,d=c[a]||(c[a]=new Ext.data.matrix.Slice(e,a));return (b||b===0)?d.members[b]:d},update:function(c,d,b){var a=this.get(c);return a.update(d,b)},updateId:function(c,b){var a=this.get(c);if(a){a.updateId(b)}},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(f,c){var a=this,b=c.isManyToMany?c:f.getSchema().getAssociation(c),g=Ext.data.matrix.Side,e=new g(a,0,b.left),d=new g(a,1,b.right);a.association=b;a.session=f;a.left=e;a.right=d;e.inverse=d;d.inverse=e},commit:function(){this.left.commit();this.right.commit()},update:function(b,c,a){return this.left.update(b,c,a)},updateId:function(e,g,f){var c=e.self,d=this.left,b=this.right,a;if(c===d.role.cls){a=d}if(c===b.role.cls){a=b}if(a){a.updateId(g,f)}},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(b){var c=this,j=c.crud,g=b.phantom,e=b.dropped,n=!g&&!e,m=b.$className,k=(g||e)?'allDataOptions':'partialDataOptions',d=c.writerOptions,l=b.entityName,a,f,h,i;if(g&&e){return !1}j=g?c.createKey:(e?c.dropKey:c.updateKey);d=d[m]||(d[m]={});if(e){if(!(a=d.drop)){d.drop=a={all:b.getProxy().getWriter().getWriteAllFields()}}if(!a.all){h=b.id}}if(!h){if(!(a=d[k])){a=b.getProxy().getWriter().getConfig(k);d[k]=a=Ext.Object.chain(a);c.setupOptions(a)}h=b.getData(a)}i=c.result||(c.result={});f=i[l]||(i[l]={});f=f[j]||(f[j]=[]);f.push(h)},setupOptions:function(a){a.serialize=!0},onMatrixChange:function(d,h,j,i){var b=this,g=d.left.type,e=d.right.role,f=i<0?b.dropKey:b.createKey,a,c;c=b.result||(b.result={});a=c[g]||(c[g]={});a=a[e]||(a[e]={});a=a[f]||(a[f]={});a=a[h]||(a[h]=[]);a.push(j)}},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=!1},onDirtyRecord:function(a){if(Ext.data.session.ChangesVisitor.prototype.onDirtyRecord.apply(this,arguments)!==!1){if(!a.$source&&(a.dropped||!a.phantom)){this.readEntity(a)}}},readEntity:function(b){var c=this,f=c.readKey,e=b.entityName,i=b.id,h=c.seen,g=e+i,d,a;if(h[g]){return}h[g]=!0;d=c.result||(c.result={});a=d[e]||(d[e]={});a=a[f]||(a[f]=[]);a.push(Ext.apply({},b.modified,b.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(m){var i=this.map,a=this.batch,c,e,k,b,d,f,j,h,l,g;if(i){if(!a){a=new Ext.data.Batch()}for(k in i){c=i[k];e=c.entity;f=e.getProxy();j=f.getBatchActions();delete c.entity;for(d in c){if(j){b=f.createOperation(d,{records:c[d]});b.entityType=e;a.add(b)}else {h=c[d];for(g=0,l=h.length;g<l;++g){b=f.createOperation(d,{records:[h[g]]});b.entityType=e;a.add(b)}}}}}if(a&&m!==!1){a.sort()}return a},onDirtyRecord:function(a){var f=this,c=a.phantom?'create':(a.dropped?'destroy':'update'),d=a.$className,e=(f.map||(f.map={})),b=(e[d]||(e[d]={entity:a.self}));b=b[c]||(b[c]=[]);b.push(a)}},1,0,0,0,0,0,[Ext.data.session,'BatchVisitor'],0));(Ext.cmd.derive('Ext.mixin.Dirty',Ext.Base,{mixinId:'dirty',config:{dirty:{$value:!1,lazy:!0}},dirty:!1,_dirtyRecordCount:0,ignoreDirty:!1,recordStateIsDirtyState:!0,isDirty:function(){return this.getDirty()},applyDirty:function(a){return this.ignoreDirty?!1:a},updateDirty:function(b){var a=this;a.dirty=b;if(a.fireEvent&&!a.isDirtyInitializing){a.fireDirtyChange()}},clearRecordStates:function(){var b=this,a=b._crudCounters;if(a){a.C=a.U=a.D=0}b._dirtyRecordCount=0;if(b.recordStateIsDirtyState){b.setDirty(!1)}},fireDirtyChange:function(){var a=this;if(!a.ignoreDirty&&a.hasListeners.dirtychange){a.fireEvent('dirtychange',a,a.dirty)}},trackRecordState:function(f,h){var a=this,b=a._crudCounters||(a._crudCounters={C:0,R:0,U:0,D:0}),i=a._dirtyRecordCount,g=f.crudState,d=f.crudStateWas,e,c;if(h||g!==d){if(!h&&d){--b[d]}if(!(f.phantom&&g==='D')){++b[g]}a._dirtyRecordCount=c=b.C+b.U+b.D;e=!c!==!i;if(e&&a.recordStateIsDirtyState){a.setDirty(c>0)}}return e},untrackRecordState:function(e){var b=this,a=b._crudCounters,g=b._dirtyRecordCount,f=e.crudState,d,c;if(a&&f!=='D'&&!e.erased){--a[f];b._dirtyRecordCount=c=a.C+a.U+a.D;d=!c!==!g;if(d&&b.recordStateIsDirtyState){b.setDirty(c>0)}}return d}},0,0,0,0,0,0,[Ext.mixin,'Dirty'],0));(Ext.cmd.derive('Ext.data.Session',Ext.Base,{isSession:!0,config:{schema:'default',parent:null,autoDestroy:!0,crudProperties:{create:'C',read:'R',update:'U',drop:'D'}},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},statics:{nextId:1},constructor:function(b){var a=this;a.data={};a.matrices={};a.id=Ext.data.Session.nextId++;a.identifierCache={};a.recordCreator=a.recordCreator.bind(a);a.mixins.observable.constructor.call(a,b)},destroy:function(){var a=this,f=a.matrices,g=a.data,e,d,b,c;for(c in f){f[c].destroy()}for(e in g){d=g[e];for(c in d){b=d[c].record;if(b){b.$source=null;b.unjoin(a)}}}a.identifierCache=a.recordCreator=a.matrices=a.data=null;a.setSchema(null);a.callParent()},adopt:function(a){var c=this,b=a.associations,d;if(a.session!==c){c.add(a);if(b){for(d in b){b[d].adoptAssociated(a,c)}}}},commit:function(){var a=this,g=a.data,f=a.matrices,h=a.getDirty(),e,c,b,d;a.suspendEvent('dirtychange');for(e in g){c=g[e];for(b in c){d=c[b].record;if(d){d.commit()}}}for(b in f){f[b].commit()}a.clearRecordStates();a.resumeEvent('dirtychange');if(a.getDirty()!==h){a.fireDirtyChange()}},createRecord:function(c,b,f){var a=c.$isClass?c:this.getSchema().getEntity(c),e=this.getParent(),d;if(b&&e){d=a.getIdFromData(b);if(e.peekRecord(a,d)){Ext.raise('A parent session already contains an entry for '+a.entityName+': '+d)}}return new a(b,f?null: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(b,f,g){var c=this,d=b.isModel,a,i,h,e;if(d){d=b;f=b.id;b=b.self}a=c.peekRecord(b,f);if(!a){i=b.$isClass?b:c.getSchema().getEntity(b);h=c.getParent();if(h){e=h.peekRecord(i,f)}if(e){if(e.isLoading()){d=!1}else {a=e.copy(undefined,c);a.$source=e}}if(!a){if(d){a=d;c.adopt(a)}else {a=i.createWithId(f,null,c);if(g!==!1){a.load(Ext.isObject(g)?g:undefined)}}}}return a},getSaveBatch:function(b){var a=new Ext.data.session.BatchVisitor();this.visitData(a);return a.getBatch(b)},onInvalidAssociationEntity:function(a,b){Ext.raise('Unable to read association entity: '+this.getModelIdentifier(a,b))},onInvalidEntityCreate:function(a,b){Ext.raise('Cannot create, record already not exists: '+this.getModelIdentifier(a,b))},onInvalidEntityDrop:function(a,b){Ext.raise('Cannot drop, record does not exist: '+this.getModelIdentifier(a,b))},onInvalidEntityRead:function(a,b){Ext.raise('Cannot read, record already not exists: '+this.getModelIdentifier(a,b))},onInvalidEntityUpdate:function(a,b,c){if(c){Ext.raise('Cannot update, record dropped: '+this.getModelIdentifier(a,b))}else {Ext.raise('Cannot update, record does not exist: '+this.getModelIdentifier(a,b))}},peekRecord:function(b,f,e){var h=b.$isClass?b:this.getSchema().getEntity(b),g=h.entityName,a=this.data[g],c,d;a=a&&a[f];c=a&&a.record;if(!c&&e){d=this.getParent();c=d&&d.peekRecord(b,f,e)}return c||null},save:function(){var a=this,c=a.getParent(),b;if(c){b=new Ext.data.session.ChildChangesVisitor(a);a.visitData(b);c.update(b.result);a.commit()}},spawn:function(){return new this.self({schema:this.getSchema(),parent:this})},update:function(e){var a=this,n=a.getSchema(),l=a.crudOperations,q=l.length,o=a.crudKeys,p=a.getDirty(),b,d,c,f,g,h,m,j,i,k;a.suspendEvent('dirtychange');a.getSchema().processKeyChecks(!0);for(b in e){d=n.getEntity(b);c=e[b];for(f=0;f<q;++f){g=l[f];h=c[g.type];if(h){a[g.entityMethod](d,h)}}}for(b in e){d=n.getEntity(b);m=d.associations;c=e[b];for(j in c){if(o[j]){continue}i=m[j];k=c[i.role];i.processUpdate(a,k)}}a.resumeEvent('dirtychange');if(a.getDirty()!==p){a.fireDirtyChange()}},afterCommit:function(a){this.trackRecordState(a)},afterDrop:function(a){this.trackRecordState(a)},afterEdit:function(a){this.trackRecordState(a)},afterErase:function(a){this.evict(a)},afterReject:function(a){this.trackRecordState(a)},privates:{add:function(a){var b=this,f=a.id,e=b.getEntry(a.self,f),c,d;a.session=b;e.record=a;b.trackRecordState(a,!0);b.registerReferences(a);c=a.associations;for(d in c){c[d].checkMembership(b,a)}},applySchema:function(a){return Ext.data.schema.Schema.get(a)},createEntities:function(b,g){var c=this,h=g.length,d,e,a,f;for(d=0;d<h;++d){e=g[d];f=b.getIdFromData(e);a=c.peekRecord(b,f);if(!a){a=c.createRecord(b,e,!0);a.phantom=!0;a.crudState='C';c.add(a);a.crudStateWas='C'}else {c.onInvalidEntityCreate(b,f)}}},dropEntities:function(c,d){var g=d.length,b,e,a,f;if(g){f=Ext.isObject(d[0])}for(b=0;b<g;++b){a=d[b];if(f){a=c.getIdFromData(a)}e=this.peekRecord(c,a);if(e){e.drop()}else {this.onInvalidEntityDrop(c,a)}}},evict:function(a){var c=this,e=a.entityName,b=c.data[e],d=a.id;if(b&&b[d]){c.untrackRecordState(a);a.unjoin(c);delete b[d]}},getEntityList:function(e,a){var g=a.length,b,d,c,f;for(b=0;b<g;++b){d=a[b];c=this.peekRecord(e,d);if(c){a[b]=c}else {f=!0;a[b]=null;this.onInvalidAssociationEntity(e,d)}}if(f){a=Ext.Array.clean(a)}return a},getEntry:function(a,c){if(a.isModel){c=a.getId();a=a.self}var f=a.$isClass?a:this.getSchema().getEntity(a),d=f.entityName,e=this.data,b;b=e[d]||(e[d]={});b=b[c]||(b[c]={});return b},getRefs:function(h,d,i){var a=this.getEntry(h),c=a&&a.refs&&a.refs[d.role],g=i&&this.getParent(),b,f,e;if(g){b=g.getRefs(h,d);if(b){for(f in b){e=b[f];if((!c||!c[f])){this.getRecord(e.self,e.id)}}c=a&&a.refs&&a.refs[d.role]}}return c||null},getIdentifier:function(c){var f=this.getParent(),d,b,e,a;if(f){a=f.getIdentifier(c)}else {d=this.identifierCache;b=c.identifier;e=b.getId()||c.entityName;a=d[e];if(!a){if(b.clone){a=b.clone({id:null})}else {a=b}d[e]=a}}return a},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(a,d){var b=this.getMatrix(a.association),c=b[a.side];return c.get(d)},getModelIdentifier:function(a,b){return b+'@'+a.entityName},onIdChanged:function(a,b,l){var c=this,j=c.matrices,q=a.entityName,s=a.id,g=c.data[q],k=g[b],p=a.associations,h=k.refs,r=c._setNoRefs,d,i,t,m,n,e,f,o;delete g[b];g[l]=k;for(o in j){j[o].updateId(a,b,l)}if(h){for(e in h){f=h[e];n=p[e];d=n.association;if(!d.isManyToMany){i=d.field.name;for(m in f){f[m].set(i,s,r)}}}}c.registerReferences(a,b)},processManyBlock:function(f,e,d,i){var c=this,b,a,g,h;if(d){for(b in d){a=c.peekRecord(f,b);if(a){g=c.getEntityList(e.cls,d[b]);h=e.getAssociatedItem(a);c[i](e,h,a,g)}else {c.onInvalidAssociationEntity(f,b)}}}},processManyCreate:function(d,b,c,a){if(b){b.add(a)}else {c[d.getterName](null,null,a)}},processManyDrop:function(d,a,c,b){if(a){a.remove(b)}},processManyRead:function(d,b,c,a){if(b){b.setRecords(a)}else {c[d.getterName](null,null,a)}},readEntities:function(b,g){var c=this,h=g.length,d,e,a,f;for(d=0;d<h;++d){e=g[d];f=b.getIdFromData(e);a=c.peekRecord(b,f);if(!a){a=c.createRecord(b,e,!0)}else {c.onInvalidEntityRead(b,f)}a.phantom=!1;c.add(a)}},recordCreator:function(c,b){var d=this,e=b.getIdFromData(c),a=d.peekRecord(b,e,!0);if(!a){a=new b(c,d)}else {a=d.getRecord(b,e);a.mergeData(c)}return a},registerReferences:function(c,h){var k=c.entityName,n=c.id,l=c.data,m=h||h===0,g,e,d,j,a,i,b,f;j=(i=c.references).length;for(e=0;e<j;++e){a=i[e];d=l[a.name];if(d||d===0){a=a.reference;k=a.type;f=a.inverse.role;g=this.getEntry(a.cls,d);b=g.refs||(g.refs={});b=b[f]||(b[f]={});b[n]=c;if(m){delete b[h]}}}},updateEntities:function(c,d){var h=d.length,f,e,a,b,g;if(Ext.isArray(d)){for(f=0;f<h;++f){e=d[f];b=c.getIdFromData(e);a=this.peekRecord(c,b);if(a){a.set(e)}else {this.onInvalidEntityUpdate(c,b)}}}else {for(b in d){e=d[b];a=this.peekRecord(c,b);if(a&&!a.dropped){g=a.set(e)}else {this.onInvalidEntityUpdate(c,b,!!a)}}}},updateReference:function(h,j,b,c){var g=j.reference,f=g.type,d=g.inverse.role,i=h.id,e,a;if(c||c===0){a=this.getEntry(f,c).refs[d];delete a[i]}if(b||b===0){e=this.getEntry(f,b);a=e.refs||(e.refs={});a=a[d]||(a[d]={});a[i]=h}},visitData:function(b){var j=this,n=j.data,k=j.matrices,i,l,d,o,f,e,c,a,m,g,h;j.getSchema().processKeyChecks(!0);for(c in n){i=n[c];for(d in i){a=i[d].record;if(a){if(a.phantom||a.dirty||a.dropped){if(b.onDirtyRecord){b.onDirtyRecord(a)}}else if(b.onCleanRecord){b.onCleanRecord(a)}}}}if(b.onMatrixChange){for(c in k){f=k[c].left;g=f.slices;l=f.role.association;for(d in g){m=g[d];e=m.members;for(o in e){h=(a=e[o])[2];if(h){b.onMatrixChange(l,a[0],a[1],h)}}}}}return b},_setNoRefs:{refs:!1}}},1,0,0,0,0,[[Ext.mixin.Dirty.prototype.mixinId||Ext.mixin.Dirty.$className,Ext.mixin.Dirty],[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.data,'Session'],0));(Ext.cmd.derive('Ext.util.Schedulable',Ext.Base,{'abstract':!0,isSchedulable:!0,scheduled:!1,constructor:function(){this.getScheduler().add(this)},destroy:function(){var a=this,b=a.getScheduler();if(b&&!b.destroyed){b.remove(a)}a.scheduler=null;a.schedule=a.react=Ext.emptyFn;a.callParent()},getFullName:function(){return this.name||this.id},privates:{getScheduler:function(){return this.scheduler},schedule:function(){var a=this,b;if(!a.scheduled){b=a.getScheduler();if(b){a.scheduled=!0;if(a.onSchedule){a.onSchedule()}b.scheduleItem(a)}}},unschedule:function(){var b=this,a;if(b.scheduled){a=b.getScheduler();if(a&&!a.destroyed){a.unscheduleItem(b)}b.scheduled=!1}},sort:function(){}}},1,0,0,0,0,0,[Ext.util,'Schedulable'],0));(Ext.cmd.derive('Ext.app.bind.BaseBinding',Ext.util.Schedulable,{isBinding:!0,calls:0,kind:20,defaultOptions:{},lastValue:undefined,constructor:function(d,c,e,b){var a=this;a.options=b;a.owner=d;a.scope=e;a.callback=c;a.lateBound=Ext.isString(c);if(b&&b.deep){a.deep=!0}Ext.util.Schedulable.prototype.constructor.call(this)},destroy:function(){var a=this,b=a.owner;if(b){b.onBindDestroy(a)}Ext.util.Schedulable.prototype.destroy.call(this);a.scope=a.callback=a.owner=null},isReadOnly:function(){return !0},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(b){var a=this,d=a.options||a.defaultOptions,c=a.lastValue;if(!a.calls||a.deep||a.valueChanged(b,c)){++a.calls;a.lastValue=b;if(a.lateBound){a.scope[a.callback](b,c,a)}else {a.callback.call(a.scope,b,c,a)}if(d.single){a.destroy()}}},valueChanged:function(a,b){var c=!0;if(b!==a){if(a&&b&&a instanceof Date&&b instanceof Date){c=a.getTime()!==b.getTime()}}else {c=Ext.isArray(a)}return c}}},1,0,0,0,0,0,[Ext.app.bind,'BaseBinding'],0));(Ext.cmd.derive('Ext.app.bind.Binding',Ext.app.bind.BaseBinding,{constructor:function(a,c,e,d){var b=this;Ext.app.bind.BaseBinding.prototype.constructor.call(this,a.owner,c,e,d);b.stub=a;b.depth=a.depth;if(a.isAvailable()&&!a.scheduled){b.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(b,c){var a=this.stub;return a&&a.bindValidation(b,c)},bindValidationField:function(b,c){var a=this.stub;return a&&a.bindValidationField(b,c)},getFullName:function(){return this.fullName||(this.fullName='@('+this.stub.getFullName()+')')},getValue:function(){var b=this,a=b.stub;return a&&a.getValue()},isAvailable:function(){var a=this.stub;return a&&a.isAvailable()},isLoading:function(){var a=this.stub;return a&&a.isLoading()},isReadOnly:function(){var b=this.stub,a=this.options,c=!0;if(!(a&&a.twoWay===!1)){if(b){c=b.isReadOnly()}}return c},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,a=b.stub;return a&&a.getRawValue()},isDescendantOf:function(b){var a=this.stub;return a?(b===a)||a.isDescendantOf(b):!1},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(b,c){var a=this;a.owner=b;a.name=c;Ext.util.Schedulable.prototype.constructor.call(this)},destroy:function(){var a=this,d=a.children,c=a.bindings,f,b,e;if(c){for(b=0,f=c.length;b<f;++b){c[b].destroy(!0)}}for(e in d){d[e].destroy()}if(a.scheduled){a.unschedule()}Ext.util.Schedulable.prototype.destroy.call(this)},add:function(a){var b=this;(b.children||(b.children={}))[a.name]=a;a.depth=b.depth+1;a.parent=b},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 b=this,a=b.fullName,d=b.parent,c;if(!a){a=b.name||b.id;if(d&&(c=d.getFullName())){a=((c.charAt(c.length-1)!==':')?c+'.':c)+a}b.fullName=a}return a},getSession:function(){var a=this.owner;return a.isSession?a:a.getSession()},bind:function(d,f,e){var a=this,b=new Ext.app.bind.Binding(a,d,f,e),c=(a.bindings||(a.bindings=[]));b.depth=a.depth;c.push(b);return b},getValue:function(){return this.isAvailable()?this.getRawValue():null},graft:function(b){var a=this,c=a.bindings,e=a.name,d;a.parent=a.bindings=null;a.destroy();b.depth=a.depth;b.bindings=c;b.generation=a.generation+1;b.name=e;b.id=a.id;b.path=a.path;if(c){for(d=c.length;d-->0;){c[d].stub=b}}return b},isDescendantOf:function(b){for(var a=this;a=a.parent;){if(a===b){return !0}}return !1},isAvailable:function(){return !0},isLoading:function(){return !1},onSchedule:function(){for(var c,e,b,a,d=this.parent;d;d=d.parent){a=d.bindings;if(a){for(c=0,e=a.length;c<e;++c){b=a[c];if(b.deep&&!b.scheduled){b.schedule()}}}}},react:function(){var b=this.bindings,c,a,d;if(b){for(a=0,d=b.length;a<d;++a){c=b[a];if(!c.scheduled){c.schedule()}}}},unbind:function(b){var a=this.bindings;if(a&&a.length){Ext.Array.remove(a,b)}},privates:{collect:function(){var a=this.children,f=this.bindings,b=0,d=0,c,e;if(a){for(e in a){c=a[e];d=c.collect();if(d===0){c.destroy();delete a[e]}b+=d}}if(f){b+=f.length}return b},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:!0,dirty:!0,formula:null,validationKey:'validation',constructor:function(e,c,a){var b=this,d=c;Ext.app.bind.AbstractStub.prototype.constructor.call(this,e,c);b.boundValue=null;if(a){a.add(b);if(!a.isRootStub){d=a.path+'.'+c}b.checkHadValue()}b.path=d},destroy:function(){var a=this,c=a.formula,b=a.storeBinding;if(c){c.destroy()}if(b){b.destroy()}a.detachBound();Ext.app.bind.AbstractStub.prototype.destroy.call(this)},bindValidation:function(b,c){var a=this.parent;return a&&a.descend([this.validationKey,this.name]).bind(b,c)},bindValidationField:function(a,c){var b=this.parent,f=this.name,e=typeof a==='string',d;if(b){d=b.bind(function(b){var d=null;if(b&&b.isModel){d=b.getField(f)}if(e){c[a](d,b,this)}else {a.call(c,d,b,this)}})}return d||null},descend:function(c,g){var b=this,f=b.children||(b.children={}),d=g||0,e=c[d++],a;if(!(a=f[e])){a=new Ext.app.bind.Stub(b.owner,e,b)}if(d<c.length){a=a.descend(c,d)}return a},getChildValue:function(b){var d=this,c=d.name,g=d.bindMappings,f=g.store,e=g.model,a;if(!b&&!Ext.isString(b)){a=d.hadValue?null:undefined}else {a=d.inspectValue(b);if(!a){if(b.isEntity){if(e[c]){a=b[e[c]]()}else {a=b.data[c]}}else if(b.isStore&&f[c]){a=b[f[c]]()}else {a=b[c];if(a===undefined&&d.hadValue){a=null}}}}return a},getDataObject:function(){var d=this,a=d.parent.getDataObject(),c=d.name,b=a?a[c]:null,f=d.bindMappings.store,e;if(!b){if(a&&a.isEntity){e=a.associations;if(e&&c in e){b=a[e[c].getterName]()}}}else if(a.isStore&&c in f){b=a[f[c]]()}if(!b||!(b.$className||Ext.isObject(b))){a[c]=b={};d.hadValue=!0;d.invalidate(!0,!0)}return b},getRawValue:function(){return this.getChildValue(this.getParentValue())},graft:function(a){var c=this,d=c.parent,b=c.children,g=c.name,f,e;a.parent=d;a.children=b;if(d){d.children[g]=a}if(b){for(f in b){b[f].parent=a}}c.children=null;a.checkHadValue();e=Ext.app.bind.AbstractStub.prototype.graft.call(this,a);e.invalidate(!0,!0);return e},isAvailable:function(){return this.checkAvailability()},isLoading:function(){return !this.checkAvailability(!0)},invalidate:function(d,c){var a=this,b=a.children,e;a.dirty=!0;a.checkHadValue();if(!c&&a.isAvailable()){if(!a.scheduled){a.schedule()}}if(d&&b){for(e in b){b[e].invalidate(d,c)}}},isReadOnly:function(){var a=this.formula;return !!(a&&!a.set)},set:function(b,j){var c=this,k=c.parent,e=c.name,d=c.formula,a,f,i,g,h;if(d&&!d.settingValue&&d.set){d.setValue(b);return}else if(c.isLinkStub){g=c.getLinkFormulaStub();d=g?g.formula:null;if(d){d.setValue(b);return}}a=k.getDataObject();if(a.isEntity){f=a.associations;if(f&&(e in f)){i=f[e];h=i.setterName;if(h){a[h](b)}c.invalidate(!0)}else {a.set(e,b)}}else if((b&&b.constructor===Object)||!(b===a[e]&&a.hasOwnProperty(e))){if(j||!c.setByLink(b)){if(b===undefined){delete a[e]}else {a[e]=b}c.inspectValue(a);c.invalidate(!0)}}},onStoreDataChanged:function(){this.invalidate(!0)},afterLoad:function(a){this.invalidate(!0)},afterCommit:function(a){this.afterEdit(a,null)},afterEdit:function(i,f){var b=this.children,j=f&&f.length,h=i.associations,k=this.bindMappings.model,d,e,a,g,c;if(b){if(j){for(e=0;e<j;++e){g=f[e];a=b[g];if(!a){c=i.fieldsMap[g];c=c&&c.reference;a=c&&b[c.role]}if(a){a.invalidate(!0)}}}else {for(d in b){if(!(h&&d in h)){b[d].invalidate(!0)}}}for(d in k){a=b[d];if(a){a.invalidate()}}}this.invalidate()},afterReject:function(a){this.afterEdit(a,null)},afterAssociatedRecordSet:function(e,d,c){var a=this.children,b=c.role;if(a&&b in a){a[b].invalidate(!0)}},setByLink:function(j){var i=this,g=0,h=!1,f,b,c,a,e,d;for(a=i;a;a=a.parent){if(a.isLinkStub){b=a;if(g){for(c=[],f=0,a=i;a!==b;a=a.parent){++f;c[g-f]=a.name}}break}++g}a=null;if(b){e=b.parent;d=b.name;if(!e.shouldClimb(d)){a=e.insertChild(d)}else {a=b.getTargetStub()}}if(a){if(c){a=a.descend(c)}a.set(j);h=!0}return h},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 b=this,a=this.boundValue,d=b.children,c;if(a){if(a.isValidation){a.refresh();c=a.generation;if(b.lastValidationGeneration===c){return}b.lastValidationGeneration=c}else if(a.isModel){if(d&&d[b.validationKey]){a.isValid()}}}Ext.app.bind.AbstractStub.prototype.react.call(this)},privates:{bindMappings:{store:{count:'getCount',first:'first',last:'last',loading:'hasPendingLoad',totalCount:'getTotalCount'},model:{dirty:'isDirty',phantom:'isPhantom',valid:'isValid'}},checkAvailability:function(j){var b=this,f=b.parent,i=b.bindMappings,g=b.name,a=!!(f&&f.checkAvailability(j)),h,c,d,e,k;if(a){c=b.getParentValue();d=b.inspectValue(c);if(d){if(j){a=!d.hasPendingLoad()}else {if(d.isStore){a=!0}else {a=!d.isLoading()||d.loadCount>0}}}else {if(c){if(c.isModel){if(i.model[g]){a=!f.isLoading();e=!0}else {h=c.associations;if(!(h&&g in h)){a=!0;e=!0}}}else if(c.isStore&&i.store[g]&&g!=='loading'){a=!f.isLoading();e=!0}}if(!e){a=b.hadValue||b.getRawValue()!==undefined}}}return a},checkHadValue:function(){if(!this.hadValue){this.hadValue=this.getRawValue()!==undefined}},collect:function(){var a=this,d=Ext.app.bind.AbstractStub.prototype.collect.call(this),b=a.storeBinding?1:0,c=a.formula?1:0;return d+b+c},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=!1}return a.parentValue},setStore:function(a){this.storeBinding=a},inspectValue:function(c){var b=this,f=b.name,i=b.boundValue,a=null,e,d,h,g;if(c&&c.isEntity){e=c.associations;if(e&&(f in e)){a=c[e[f].getterName]()}else if(f===b.validationKey){a=c.getValidation();b.lastValidationGeneration=null}}else if(c){d=c[f];if(d&&(d.isModel||d.isStore)){a=d}}h=i!==a;if(h){if(i){b.detachBound()}if(a){if(a.isModel){a.join(b)}else {g=a.associatedEntity;if(g&&a.autoLoad!==!1&&!a.complete&&!a.hasPendingLoad()){a.load()}a.on({scope:b,beginload:'onStoreDataChanged',load:'onStoreDataChanged',datachanged:'onStoreDataChanged',destroy:'onDestroyBound'})}}b.boundValue=a}return a},detachBound:function(){var b=this,a=b.boundValue;if(a&&!a.destroyed){if(a.isModel){a.unjoin(b)}else {a.un({scope:b,beginload:'onStoreDataChanged',load:'onStoreDataChanged',datachanged:'onStoreDataChanged',destroy:'onDestroyBound'})}}},onDestroyBound:function(){if(!this.owner.destroying){this.set(null)}},sort:function(){var a=this,d=a.formula,c=a.scheduler,b=a.storeBinding;Ext.app.bind.AbstractStub.prototype.sort.call(this);if(b){c.sortItem(b)}if(d){c.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:!0,binding:null,destroy:function(){var a=this,b=a.binding,c=a.owner;if(b){a.binding=null;b.destroy();if(c){delete c.linkData[a.name]}}a.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 e=this.binding,c=this.parent,b=this.name,a,d;if(c.isRootStub&&!c.shouldClimb(b)){a=c.owner.getData();if(!a.hasOwnProperty(b)){a[b]=d={}}}else {d=e&&e.getDataObject()}return d},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},isAvailable:function(){var a=this.binding;return a?a.isAvailable():!1},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var c=this,b=Ext.app.bind.Stub.prototype.collect.call(this),a=c.binding?1:0;return b+a},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:!0,depth:0,createRootChild:function(a,j){var e=this,c=e.owner,i=c.getData(),g=e.children,d=g&&g[a],f=d?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=c.getParent())){b=new Ext.app.bind.Stub(c,a,f)}else {b=new Ext.app.bind.LinkStub(c,a,f);b.link('{'+a+'}',h)}if(d){d.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=(d&&d[e])||f.createRootChild(e);if(b<a.length){c=c.descend(a,b)}return c},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 !1},set:function(f,k){var c=this,i=c.children||(c.children={}),e=c.owner,g=e.data,l=e.getParent(),a,h,b,d,j;for(b in f){h=f[b];if(h!==undefined){a=i[b];d=k||!c.shouldClimb(b);if(!a){a=c.createRootChild(b,d);j=!0}else if(d&&a.isLinkStub&&!a.getLinkFormulaStub()){a=c.insertChild(b)}if(!j||!g.hasOwnProperty(f)){e.invalidateChildLinks(b)}a.set(h,d)}else if(g.hasOwnProperty(b)){delete g[b];a=i[b];if(a){if(!a.isLinkStub&&l){a=c.createRootChild(b)}e.invalidateChildLinks(b,!0);a.invalidate(!0)}}}},schedule:Ext.emptyFn,unschedule:Ext.emptyFn,privates:{checkAvailability:function(){return !0},insertChild:function(a){return this.createRootChild(a,!0)},invalidateChildLink:function(b,d){var c=this.children,a=c&&c[b];if(a&&a.isLinkStub&&!a.getLinkFormulaStub()){a=this.createRootChild(b);if(d){a.invalidate(!0)}this.owner.invalidateChildLinks(b,d)}},shouldClimb:function(b){var a=this.owner.getParent();while(a){if(a.getData().hasOwnProperty(b)){return !0}a=a.getParent()}return !1}}},0,0,0,0,0,0,[Ext.app.bind,'RootStub'],0));(Ext.cmd.derive('Ext.app.bind.Multi',Ext.app.bind.BaseBinding,{isMultiBinding:!0,missing:1,deep:!0,constructor:function(b,f,e,g,c){var a=this,d=c&&c.trackStatics;Ext.app.bind.BaseBinding.prototype.constructor.call(this,f,e,g,c);a.bindings=[];a.literal=b.$literal;if(b.constructor===Object){if(d){a.staticKeys=[]}a.addObject(b,a.lastValue={},a.staticKeys)}else {a.addArray(b,a.lastValue=[])}if(!--a.missing&&!a.scheduled){a.schedule()}},destroy:function(){var a=this;a.bindings=Ext.destroy(a.bindings);Ext.app.bind.BaseBinding.prototype.destroy.call(this)},add:function(d,i,f){var a=this,h=a.owner,e=a.bindings,g=a.literal?(d.reference?'bindEntity':'bindExpression'):'bind',b,c;++a.missing;b=h[g](d,function(c){i[f]=c;if(b.calls===1){--a.missing}if(!a.missing&&!a.scheduled){a.schedule()}},a,null);c=b.depth;if(!e.length||c<a.depth){a.depth=c}e.push(b);return !this.isBindingStatic(b)},addArray:function(g,d){var f=this,h=g.length,e=!1,c,a,b;for(b=0;b<h;++b){a=g[b];if(a&&(a.reference||Ext.isString(a))){c=f.add(a,d,b)}else if(Ext.isArray(a)){c=f.addArray(a,d[b]=[])}else if(a&&a.constructor===Object){c=f.addObject(a,d[b]={})}else {d[b]=a;c=!1}e=e||c}return e},addObject:function(g,d,h){var f=this,e=!1,c,a,b;for(b in g){a=g[b];if(a&&(a.reference||Ext.isString(a))){c=f.add(a,d,b)}else if(Ext.isArray(a)){c=f.addArray(a,d[b]=[])}else if(a&&a.constructor===Object){c=f.addObject(a,d[b]={})}else {d[b]=a;c=!1}if(h&&!c){h.push(b)}e=e||c}return e},getFullName:function(){var c=this,a=c.fullName,d=c.bindings,e=d.length,b;if(!a){a='@[';for(b=0;b<e;++b){if(b){a+=','}a+=d[b].getFullName()}a+=']';c.fullName=a}return a},getRawValue:function(){return this.lastValue},isDescendantOf:function(){return !1},isLoading:function(){for(var a=this.bindings,b=a.length;b-->0;){if(a[b].isLoading()){return !0}}return !1},isAvailable:function(){for(var a=this.bindings,b=a.length;b-->0;){if(a[b].isAvailable()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a<d;++a){c=b[a];if(!this.isBindingStatic(c)){return !1}}return !0},pruneStaticKeys:function(){var b=Ext.apply({},this.lastValue),c=this.staticKeys,d=c.length,a;for(a=0;a<d;++a){delete b[c[a]]}return b},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(c){var b=this.formulaCache,a,d;if(!b){b=this.formulaCache=new Ext.util.LruCache({maxSize:20})}a=b.get(c);if(!a){d='[^\\.a-z0-9_]'+Ext.String.escapeRegex(c)+'\\(\\s*([\'"])(.*?)\\1\\s*\\)';a=new RegExp(d,'gi');b.add(c,a)}return a}},isFormula:!0,calculation:null,explicit:!1,set:null,single:!1,fnKeywordArgumentNamesRe:/^function\s*[^\(]*\(\s*([^,\)\s]+)/,fnKeywordRe:/^\s*function/,replaceParenRe:/[\(\)]/g,constructor:function(h,c){var a=this,g=h.owner,f,b,d,e;a.owner=g;a.stub=h;Ext.util.Schedulable.prototype.constructor.call(this);if(c instanceof Function){a.get=d=c}else {a.get=d=c.get;a.set=c.set;b=c.bind;if(c.single){a.single=c.single}if(b){f=b.bindTo;if(f){e=Ext.apply({},b);delete e.bindTo;b=f}}}if(b){a.explicit=!0}else {b=d.$expressions||a.parseFormula(d)}a.binding=g.bind(b,a.onChange,a,e)},destroy:function(){var a=this,b=a.binding,c=a.stub;if(b){b.destroy();a.binding=null}if(c){c.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(g){var d=Ext.Function.toCode(g),h='get',c={$literal:!0},a,b,f,e;if(this.fnKeywordRe.test(d)){a=this.fnKeywordArgumentNamesRe.exec(d);if(a){b=a[1]}}else {a=d.split('=>')[0];if(a){a=Ext.String.trim(a.replace(this.replaceParenRe,'')).split(',');b=a[0]}}b=b||h;f=Ext.app.bind.Formula.getFormulaParser(b);while((a=f.exec(d))){e=a[2];c[e]=e}c.$literal=!0;g.$expressions=c;return c},react:function(){var a=this,c=a.owner,d=a.binding.lastValue,e=a.getterFn,b;if(a.explicit){b=d}else {b=c.getFormulaFn(d)}a.settingValue=!0;a.stub.set(a.calculation=a.get.call(c,b));a.settingValue=!1;if(a.single){a.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 b=this,a=b.binding;if(!a.destroyed){b.scheduler.sortItem(a)}}}},1,0,0,0,0,0,[Ext.app.bind,'Formula'],0));(Ext.cmd.derive('Ext.util.Fly',Ext.Base,{inheritableStatics:{flyPoolSize:2,fly:function(){var b=this,c=b.flyweights||(b.flyweights=[]),a=c.length?c.pop():new b();a.reset.apply(a,arguments);return a}},release:function(){var a=this,b=a.self,c=b.flyweights||(b.flyweights=[]);a.reset();if(c.length<b.flyPoolSize){c.push(a)}},reset:Ext.emptyFn},0,0,0,0,0,0,[Ext.util,'Fly'],0));(Ext.cmd.derive('Ext.parse.Tokenizer',Ext.util.Fly,function(c){var b=(c.flyweights=[]),a={literal:!0,"boolean":!0},f={error:!0},g={ident:!0},i={literal:!0},h={literal:!0,nil:!0},d={literal:!0,number:!0},e={literal:!0,string:!0};return {isTokenizer:!0,statics:{BOOLEAN:a,ERROR:f,IDENT:g,LITERAL:i,NULL:h,NUMBER:d,STRING:e},config:{keywords:{'null':{type:'literal',is:h,value:null},'false':{type:'literal',is:a,value:!1},'true':{type:'literal',is:a,value:!0}},operators:{'+':'plus','-':'minus','*':'multiply','/':'divide','!':'bang',',':'comma',':':'colon','[':'arrayOpen',']':'arrayClose','{':'curlyOpen','}':'curlyClose','(':'parenOpen',')':'parenClose'}},error:null,index:-1,constructor:function(a){this.operators={};this.initConfig(a)},next:function(){var a=this.peek();this.head=undefined;return a},peek:function(){var a=this,d=a.error,b=a.head;if(d){return d}if(b===undefined){a.head=b=a.advance()}return b},release:function(){this.reset();if(b.length<c.flyPoolSize){b.push(this)}},reset:function(b,e,d){var a=this;a.error=null;a.head=undefined;a.index=-1;a.text=b||null;a.pos=e||0;a.end=(b&&d==null)?b.length:d;return a},privates:{digitRe:/[0-9]/,identFirstRe:/[a-z_$]/i,identRe:/[0-9a-z_$]/i,spaceRe:/[ \t]/,end:0,head:undefined,pos:0,text:null,applyOperators:function(i){var j=this.operators,a,f,g,d,h,e,b;for(b in i){a=j;e=i[b];h=b.length;for(d=0;d<h;++d){f=b.charAt(d);a=a[f]||(a[f]={})}if(e){a.token=g={type:'operator',value:b,is:{operator:!0}};g.is[e]=!0}else {a.token=null}}},advance:function(){var a=this,d=a.spaceRe,f=a.text,e=a.end,b;while(a.pos<e){b=f.charAt(a.pos);if(d.test(b)){++a.pos;continue}a.index=a.pos;return a.parse(b)}return null},parse:function(d){var a=this,e=a.digitRe,g=a.text,f=a.end,b;if(d==='.'&&a.pos+1<f){if(e.test(g.charAt(a.pos+1))){b=a.parseNumber()}}if(!b&&a.operators[d]){b=a.parseOperator(d)}if(!b){if(d==='"'||d==="'"){b=a.parseString()}else if(e.test(d)){b=a.parseNumber()}else if(a.identFirstRe.test(d)){b=a.parseIdent()}else {b=a.syntaxError('Unexpected character')}}return b},parseIdent:function(){var a=this,l=a.identRe,h=a.getKeywords(),k=!a.operators['.'],j=a.text,i=a.pos,b=i,m=a.end,f=0,d,e;while(b<m){d=j.charAt(b);if(k&&d==='.'){if(f==='.'){return a.syntaxError(b,'Unexpected dot operator')}++b}else if(l.test(d)){++b}else {break}f=d}if(f==='.'){return a.syntaxError(b-1,'Unexpected dot operator')}e=j.substring(i,a.pos=b);return (h&&h[e])||{type:'ident',is:g,value:e}},parseNumber:function(){var a=this,j=a.digitRe,h=a.text,e=a.pos,k=a.end,b,g,i,f;while(a.pos<k){b=h.charAt(a.pos);if(b==='-'||b==='+'){if(a.pos!==e){return a.syntaxError(e,'Invalid number')}++a.pos}else if(b==='.'){if(g){break}g=!0;++a.pos}else if(b==='e'||b==='E'){if(i){break}g=i=!0;b=h.charAt(++a.pos);if(b==='-'||b==='+'){++a.pos}}else if(j.test(b)){++a.pos}else {break}}f={type:'literal',is:d,value:+h.substring(e,a.pos)};if(!isFinite(f.value)){f=a.syntaxError(e,'Invalid number')}return f},parseOperator:function(g){var a=this,b=a.operators,j=a.text,i=a.end,d=a.pos,e,h,f;while(b[g]){b=b[g];f=b.token;++d;if(f){e=f;h=d}if(d<i){g=j.charAt(d)}else {break}}if(e){a.pos=h}return e},parseString:function(){var b=this,f=b.text,a=b.pos,k=a,h=b.end,j='',d,g,i;i=f.charAt(a++);while(a<h){d=f.charAt(a++);if(d===i){g=!0;break}if(d==='\\'&&a<h){d=f.charAt(a++)}j+=d}b.pos=a;if(!g){return b.syntaxError(k,'Unterminated string')}return {type:'literal',is:e,value:j}},syntaxError:function(a,d){if(typeof a==='string'){d=a;a=this.pos}var e=(a==null)?'':(' (at index '+a+')'),b=new Error(d+e);b.type='error';b.is=f;if(e){b.at=a}return this.error=b}}}},1,0,0,0,0,0,[Ext.parse,'Tokenizer'],0));(Ext.cmd.derive('Ext.parse.Symbol',Ext.Base,{priority:0,constructor:function(d,a){var b=this,c=b.defaultProperty;if(a&&typeof a==='object'){Ext.apply(b,a)}else if(a!==undefined&&c){b[c]=a}b.id=d},led:function(){this.parser.syntaxError(this.at,'Missing operator')},nud:function(){this.parser.syntaxError(this.at,'Undefined')},update:function(a){if(a&&typeof a==='object'){var b=this,c=a.priority,d=a.led,e=a.nud;if(b.priority<=c){b.priority=c}if(d){b.led=d}if(e){b.nud=e}}}},1,0,0,0,0,0,[Ext.parse,'Symbol'],0));(Ext.cmd.derive('Ext.parse.symbol.Constant',Ext.parse.Symbol,{arity:'literal',isLiteral:!0,defaultProperty:'value',constructor:function(b,a){Ext.parse.Symbol.prototype.constructor.call(this,b,a);this._value=this.value},nud:function(){var a=this;a.value=a._value;a.arity='literal';a.isLiteral=!0;return a}},1,0,0,0,0,0,[Ext.parse.symbol,'Constant'],0));(Ext.cmd.derive('Ext.parse.symbol.Infix',Ext.parse.Symbol,{arity:'binary',isBinary:!0,defaultProperty:'priority',led:function(b){var a=this;a.lhs=b;a.rhs=a.parser.parseExpression(a.priority);a.arity='binary';a.isBinary=!0;return a}},0,0,0,0,0,0,[Ext.parse.symbol,'Infix'],0));(Ext.cmd.derive('Ext.parse.symbol.InfixRight',Ext.parse.symbol.Infix,{led:function(b){var a=this;a.lhs=b;a.rhs=a.parser.parseExpression(a.priority-1);a.arity='binary';a.isBinary=!0;return a}},0,0,0,0,0,0,[Ext.parse.symbol,'InfixRight'],0));(Ext.cmd.derive('Ext.parse.symbol.Paren',Ext.parse.Symbol,{arity:'binary',isBinary:!0,priority:80,led:function(d){var b=this,e=[],c=b.parser,a=d.id,f=d.arity;if(a!=='.'&&a!=='['){if((f!=="unary"||a!=="function")&&f!=="ident"&&a!=="("&&a!=="&&"&&a!=="||"&&a!=="?"){c.syntaxError(d.at,"Expected a variable name.")}}b.arity='invoke';b.isInvoke=!0;b.operand=d;b.args=e;while(c.token.id!==')'){if(e.length){c.advance(',')}e.push(c.parseExpression())}c.advance(')');return b},nud:function(){var a=this.parser,b=a.parseExpression();a.advance(")");return b}},0,0,0,0,0,0,[Ext.parse.symbol,'Paren'],0));(Ext.cmd.derive('Ext.parse.symbol.Prefix',Ext.parse.Symbol,{arity:'unary',isUnary:!0,priority:70,nud:function(){var a=this;a.operand=a.parser.parseExpression(a.priority);a.arity='unary';a.isUnary=!0;return a}},0,0,0,0,0,0,[Ext.parse.symbol,'Prefix'],0));(Ext.cmd.derive('Ext.parse.Parser',Ext.util.Fly,function(){var a=function(){return this};return {isParser:!0,config:{constants:{'null':null,'false':!1,'true':!0},infix:{'+':50,'-':50,'*':60,'/':60},infixRight:{'&&':30,'||':30},prefix:{'!':0,'-':0,'+':0},symbols:{':':0,',':0,')':0,'[':0,']':0,'{':0,'}':0,'(end)':0,'(ident)':{arity:'ident',isIdent:!0,nud:a},'(literal)':{arity:'literal',isLiteral:!0,nud:a},'(':{xclass:'Ext.parse.symbol.Paren'}},tokenizer:{keywords:null}},token:null,constructor:function(a){this.symbols={};this.initConfig(a)},advance:function(h){var b=this,g=b.tokenizer,c=g.peek(),d=b.symbols,i=g.index,f,a,e;if(b.error){throw b.error}if(h){b.expect(h)}if(!c){return b.token=d['(end)']}g.next();f=c.is;e=c.value;if(f.ident){a=d[e]||d['(ident)']}else if(f.operator){if(!(a=d[e])){b.syntaxError(c.at,'Unknown operator "'+e+'"')}}else if(f.literal){a=d['(literal)']}else {b.syntaxError(c.at,'Unexpected token')}b.token=a=Ext.Object.chain(a);a.at=i;a.value=e;if(!a.arity){a.arity=c.type}return a},expect:function(a){var b=this.token;if(a!==b.id){this.syntaxError(b.at,'Expected "'+a+'"')}return this},parseExpression:function(c){var b=this,d=b.token,a;c=c||0;b.advance();a=d.nud();while(c<(d=b.token).priority){b.advance();a=d.led(a)}return a},reset:function(b,d,c){var a=this;a.error=a.token=null;a.tokenizer.reset(b,d,c);a.advance();return a},syntaxError:function(a,c){if(typeof a==='string'){c=a;a=this.pos}var d=(a==null)?'':(' (at index '+a+')'),b=new Error(c+d);b.type='error';if(d){b.at=a}throw this.error=b},privates:{error:null,addSymbol:function(g,a,d,c){var h=this.symbols,b=h[g],f,i,e;if(b){if(typeof a==='object'){f=a}else if(c&&d){c=Ext.Array.from(c);i=c.length;f={};for(e=0;e<i;e++){f[c[e]]=d.prototype[c[e]]}}else {return b}b.update(f)}else {if(a&&a.xclass){d=Ext.ClassManager.get(a.xclass)}else {d=d||Ext.parse.Symbol}h[g]=b=new d(g,a);b.parser=this}return b},addSymbols:function(a,d,c){for(var b in a){this.addSymbol(b,a[b],d,c)}},applyConstants:function(a){this.addSymbols(a,Ext.parse.symbol.Constant,'nud')},applyInfix:function(a){this.addSymbols(a,Ext.parse.symbol.Infix,'led')},applyInfixRight:function(a){this.addSymbols(a,Ext.parse.symbol.InfixRight,'led')},applyPrefix:function(a){this.addSymbols(a,Ext.parse.symbol.Prefix,'nud')},applySymbols:function(a){this.addSymbols(a)},applyTokenizer:function(a){var b=a;if(a&&!a.isTokenizer){b=new Ext.parse.Tokenizer(a)}this.tokenizer=b}}}},1,0,0,0,0,0,[Ext.parse,'Parser'],0));(Ext.cmd.derive('Ext.app.bind.Parser',Ext.parse.Parser,{infix:{':':{priority:70,led:function(b){var a=this;a.arity='formatter';a.operand=b;a.fmt=a.parser.parseFmt();return a}},'?':{priority:20,led:function(e){var a=this,b=a.parser,c=b.symbols[':'],d;a.condition=e;d=c.priority;c.priority=0;a.tv=b.parseExpression(0);a.parser.advance(':');c.priority=d;a.fv=b.parseExpression(0);a.arity='ternary';return a}},'===':40,'!==':40,'==':40,'!=':40,'<':40,'<=':40,'>':40,'>=':40},symbols:{'(':{nud:function(){var a=this.parser,b=a.symbols[':'],d,c;c=b.priority;b.priority=70;d=a.parseExpression();a.advance(")");b.priority=c;return d}}},prefix:{'@':0},tokenizer:{operators:{'@':'at','?':'qmark','===':'feq','!==':'fneq','==':'eq','!=':'neq','<':'lt','<=':'lte','>':'gt','>=':'gte','&&':'and','||':'or'}},compileExpression:function(d,c){var a=this,e,b;a.tokens=d;a.tokensMap=c;b=a.parseSlot(a.parseExpression(),e);a.tokens=a.tokensMap=null;return b},compileFormat:function(){var a;a=this.parseSlot({arity:'formatter',fmt:this.parseFmt(),operand:{arity:'ident',value:'dummy'}});this.expect('(end)');return a},privates:{useEval:Ext.isGecko,escapeRe:/("|'|\\)/g,parseFmt:function(){var b=this,c=[],d=b.symbols[':'].priority,a;do{if(c.length){b.advance()}a=b.parseExpression(d);if(a.isIdent||a.isInvoke){c.push(a)}else {b.syntaxError(a.at,'Expected formatter name')}}while(b.token.id===':');return c},parseSlot:function(j,k){var a=this,e=[],b=[],h=a.tokens||[],i,c,d,g,f;a.definitions=e;a.body=b;b.push('return '+a.compile(j)+';');g=h.length;c='var fm = Ext.util.Format,\nme,';f='var a = Ext.Array.from(values);\nme = scope;\n';if(h.length){for(d=0;d<g;d++){c+='v'+d+((d==g-1)?';':',');f+='v'+d+' = a['+d+']; '}}else {c+='v0;';f+='v0 = a[0];'}e=Ext.Array.insert(e,0,[c]);b=Ext.Array.insert(b,0,[f]);b=b.join('\n');e.push((a.useEval?'$=':'return')+' function (values, scope) {',b,'}');c=e.join('\n');i=a.useEval?a.evalFn(c):(new Function('Ext',c))(Ext);a.definitions=a.body=null;return i},compile:function(a){var b=this,c;switch(a.arity){case 'ident':return b.addToken(a.value);case 'literal':c=a.value;return (typeof c==='string')?'"'+String(c).replace(b.escapeRe,'\\$1')+'"':c;case 'unary':return b.compileUnary(a);case 'binary':return b.compileBinary(a);case 'ternary':return b.compileTernary(a);case 'formatter':return b.compileFormatter(a);}return this.syntaxError(a.at,'Compile error! Unknown symbol')},compileUnary:function(b){var a=b.value,c=b.operand;if(a==='!'||a==='-'||a==='+'){return a+'('+this.compile(c)+')'}else if(a==='@'){if(!c.isIdent){return this.syntaxError(b.at,'Compile error! Unexpected symbol')}return c.value}return ''},compileBinary:function(a){return '('+this.compile(a.lhs)+' '+a.value+' '+this.compile(a.rhs)+')'},compileTernary:function(a){return '('+this.compile(a.condition)+' ? '+this.compile(a.tv)+' : '+this.compile(a.fv)+')'},compileFormatter:function(e){var c=this,b=e.fmt,f=b.length,a=['var ret;'],d;if(b.length){a.push('ret = '+c.compileFormatFn(b[0],c.compile(e.operand))+';');for(d=1;d<f;d++){a.push('ret = '+c.compileFormatFn(b[d],'ret')+';')}}a.push('return ret;');return c.addFn(a.join('\n'))},compileFormatFn:function(b,g){var a,d=[],e='',f,c;if(b.isIdent){a=b.value}else if(b.isInvoke){a=b.operand.value;d=b.args}if(a.substring(0,5)==='this.'){a='me.'+a.substring(5)}else {if(!(a in Ext.util.Format)){return this.syntaxError(b.at,'Compile error! Invalid format specified "'+a+'"')}a='fm.'+a}e+=g;f=d.length;for(c=0;c<f;c++){e+=', '+this.compile(d[c])}return a+'('+e+')'},addFn:function(c){var a=this.definitions,b='f'+a.length;a.push('function '+b+'() {',c,'}');return b+'()'},evalFn:function($){eval($);return $},addToken:function(b){var a=this.tokensMap,c=this.tokens,d=0;if(a&&c){if(b in a){d=a[b]}else {a[b]=d=c.length;c.push(b)}}return 'v'+d}}},0,0,0,0,0,0,[Ext.app.bind,'Parser'],0));(Ext.cmd.derive('Ext.app.bind.Template',Ext.Base,{escapes:!1,buffer:null,slots:null,tokens:null,constructor:function(d){var b=this,c=b._initters,a;b.text=d;for(a in c){b[a]=c[a]}},_initters:{apply:function(a,b){return this.parse().apply(a,b)},getTokens:function(){return this.parse().getTokens()}},apply:function(g,h){var d=this,e=d.slots,c=d.buffer,f=e.length,a,b;for(a=0;a<f;++a){b=e[a];if(b){c[a]=b(g,h)}}if(b&&d.single){return c[0]}return c.join('')},getText:function(){return this.buffer.join('')},getTokens:function(){return this.tokens},isStatic:function(){var a=this.getTokens(),b=this.slots;return (a.length===0&&b.length===0)},privates:{literalChar:'~',escapeChar:'\\',parse:function(){var a=this,e=a.text,i=Ext.app.bind.Parser.fly(),h=(a.buffer=[]),r=(a.slots=[]),p=e.length,f=0,o=a.escapes,b='',c=0,s=a.escapeChar,m=a.literalChar,g,q,n,j,d,k,l;for(l in a._initters){delete a[l]}a.tokens=q=[];a.tokensMap=n={};while(c<p){d=e[c];j=g;g=o&&d===s;if(g){d=e[c+1];++c}else if(d===m&&k===m&&!j){b=b.slice(0,-1);b+=e.substring(c+1);break}else if(d==='{'){if(b){h[f++]=b;b=''}i.reset(e,c+1);c=a.parseExpression(i,f);++f;continue}b+=d;++c;k=d}if(b){h[f]=b}i.release();a.single=h.length===0&&r.length===1;return a},parseExpression:function(a,c){var b;this.slots[c]=a.compileExpression(this.tokens,this.tokensMap);b=a.token.at+1;a.expect('}');return b}}},1,0,0,0,0,0,[Ext.app.bind,'Template'],0));(Ext.cmd.derive('Ext.app.bind.TemplateBinding',Ext.app.bind.BaseBinding,{isTemplateBinding:!0,lastValue:undefined,value:undefined,constructor:function(f,d,e,h,g){var a=this,b=new Ext.app.bind.Template(f),c=b.getTokens();Ext.app.bind.BaseBinding.prototype.constructor.call(this,d,e,h,g);a.tpl=b;a.tokens=c;c.$literal=!0;if(!b.isStatic()){a.multiBinding=new Ext.app.bind.Multi(c,d,a.onBindData,a)}else {a.isStatic=!0;a.onData(b.getText())}},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},isAvailable:function(){var a=this.multiBinding;return a?a.isAvailable():!1},isDescendantOf:function(){return !1},isLoading:function(){var a=this.multiBinding;return a?a.isLoading():!1},onBindData:function(a){this.onData(this.tpl.apply(a,this.getTemplateScope()))},onData:function(c){var a=this,b=a.value;if(b!==(a.value=c)){a.lastValue=b;a.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,{isChainedStore:!0,config:{source:null,remoteFilter:!1,remoteSort:!1},remove:function(){var a=this.getSource();return a.remove.apply(a,arguments)},removeAll:function(){var a=this.getSource();return a.removeAll()},getData:function(){var b=this,a=b.data;if(!a){b.data=a=b.constructDataCollection()}return a},getTotalCount:function(){return this.getCount()},getSession:function(){return this.getSourceValue('getSession',null)},applySource:function(a){if(a){a=Ext.data.StoreManager.lookup(a)}return a},updateSource:function(c,b){var a=this,d;if(b&&!b.destroyed){b.removeObserver(a)}if(c){d=a.getData();d.setSource(c.getData());if(!a.isInitializing){a.fireEvent('refresh',a);a.fireEvent('datachanged',a)}c.addObserver(a)}},getModel:function(){return this.getSourceValue('getModel',null)},getProxy:function(){return null},onCollectionAdd:function(e,b){var a=this,d=b.items,c=!b.next;if(a.ignoreCollectionAdd){return}if(a.activeRanges){a.syncActiveRanges()}a.fireEvent('add',a,d,b.at);if(c){a.fireEvent('datachanged',a)}},onCollectionItemChange:function(f,a){var b=this,d=a.item,c=a.modified||null,e=a.meta;b.onUpdate(d,e,c,a);b.fireEvent('update',b,d,e,c,a);b.fireEvent('datachanged',b)},onCollectionUpdateKey:function(b,a){this.fireEvent('idchanged',this,a.item,a.oldKey,a.newKey)},onUpdate:Ext.emptyFn,onCollectionRemove:function(e,b){var a=this,d=b.items,c=!b.next;if(a.ignoreCollectionRemove){return}a.fireEvent('remove',a,d,b.at,!1);if(c){a.fireEvent('datachanged',a)}},onSourceBeforeLoad:function(b,a){this.fireEvent('beforeload',this,a);this.callObservers('BeforeLoad',[a])},onSourceAfterLoad:function(d,c,a,b){this.fireEvent('load',this,c,a,b);this.callObservers('AfterLoad',[c,a,b])},onFilterEndUpdate:function(){Ext.data.AbstractStore.prototype.onFilterEndUpdate.apply(this,arguments);this.callObservers('Filter')},onSourceBeforePopulate:function(){this.ignoreCollectionAdd=!0;this.callObservers('BeforePopulate')},onSourceAfterPopulate:function(){var a=this;a.ignoreCollectionAdd=!1;a.fireEvent('datachanged',a);a.fireEvent('refresh',a);this.callObservers('AfterPopulate')},onSourceBeforeClear:function(){this.ignoreCollectionRemove=!0;this.callObservers('BeforeClear')},onSourceAfterClear:function(){this.ignoreCollectionRemove=!1;this.callObservers('AfterClear')},onSourceBeforeRemoveAll:function(){this.ignoreCollectionRemove=!0;this.callObservers('BeforeRemoveAll')},onSourceAfterRemoveAll:function(c,b){var a=this;a.ignoreCollectionRemove=!1;if(!b){a.fireEvent('clear',a);a.fireEvent('datachanged',a)}this.callObservers('AfterRemoveAll',[b])},onSourceFilter:function(){var a=this;a.fireEvent('refresh',a);a.fireEvent('datachanged',a)},hasPendingLoad:function(){return this.getSourceValue('hasPendingLoad',!1)},isLoaded:function(){return this.getSourceValue('isLoaded',!1)},isLoading:function(){return this.getSourceValue('isLoading',!1)},doDestroy:function(){var a=this;a.observers=null;a.setSource(null);a.getData().destroy(!0);a.data=null;Ext.data.AbstractStore.prototype.doDestroy.call(this)},privates:{getSourceValue:function(d,c){var a=this.getSource(),b=c;if(a&&!a.destroyed){b=a[d]()}return b},isMoving:function(){var a=this.getSource();return a.isMoving?a.isMoving.apply(a,arguments):!1},loadsSynchronously:function(){return this.getSource().loadsSynchronously()}}},0,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:!0,factoryConfig:{name:'viewModel'},collectTimeout:100,expressionRe:/^(?:\{(?:(\d+)|([a-z_][\w\.]*))\})$/i,statics:{escape:function(a){var b=a,c;if(typeof a==='string'){b='~~'+a}else if(a&&a.constructor===Object){b={};for(c in a){b[c]=this.escape(a[c])}}return b}},$configStrict:!1,config:{data:!0,formulas:{$value:null,merge:function(c,a,d,b){return this.mergeNew(c,a,d,b)}},links:null,parent:null,root:!0,scheduler:null,schema:'default',session:null,stores:null,view:null},constructor:function(a){this.bindings={};this.initConfig(a)},destroy:function(){var a=this,d=a._scheduler,g=a.storeInfo,j=a.getParent(),k=a.collectTask,f=a.children,i=a.bindings,b,c,e,h;a.destroying=!0;if(k){k.cancel();a.collectTask=null}if(f){for(b in f){f[b].destroy()}}if(g){for(b in g){c=g[b];h=c.$binding;e=c.autoDestroy;if(e||(!c.$wasInstance&&e!==!1)){c.destroy()}Ext.destroy(h)}}if(j){j.unregisterChild(a)}a.getRoot().destroy();for(b in i){i[b].destroy()}if(d&&d.$owner===a){d.$owner=null;d.destroy()}a.children=a.storeInfo=a._session=a._view=a._scheduler=a.bindings=a._root=a._parent=a.formulaFn=a.$formulaData=null;a.destroying=!1;a.callParent()},bind:function(a,f,e,c){var d=this,g=!0,b;e=e||d;if(!c&&a.bindTo!==undefined&&!Ext.isString(a)){c=a;a=c.bindTo}if(!Ext.isString(a)){b=new Ext.app.bind.Multi(a,d,f,e,c)}else if(d.expressionRe.test(a)){a=a.substring(1,a.length-1);b=d.bindExpression(a,f,e,c);g=!1}else {b=new Ext.app.bind.TemplateBinding(a,d,f,e,c)}if(g){d.bindings[b.id]=b}return b},getSession:function(){var b=this,a=b._session,c;if(!a&&(c=b.getParent())){b.setSession(a=c.getSession())}return a||null},getStore:function(c){var a=this.storeInfo,b;if(a){b=a[c]}return b||null},linkTo:function(i,a){var e=this,b,d,h,f,g,c;if(a.isModel){a={type:a.entityName,id:a.id}}f=a.type||a.reference;d=a.create;if(f){h=a.id;if(d){h=undefined}c=e.getRecord(f,h);if(Ext.isObject(d)){c.set(d);c.commit();c.phantom=!0}b=e.getRoot().createStubChild(i);b.set(c)}else {b=e.getStub(i);if(!b.isLinkStub){g=new Ext.app.bind.LinkStub(e,b.name);b.graft(g);b=g}b.link(a)}},notify:function(){var a=this.getScheduler();if(!a.firing){a.notify()}},get:function(a){return this.getStub(a).getValue()},set:function(a,b){var d=this,e,c;d.getData();if(b===undefined&&a&&a.constructor===Object){c=d.getRoot();b=a}else if(a&&a.indexOf('.')<0){e={};e[a]=b;b=e;c=d.getRoot()}else {c=d.getStub(a)}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(d,e){var c=this.getSession(),b=d,f=e!==undefined,a;if(c){if(f){a=c.getRecord(d,e)}else {a=c.createRecord(d)}}else {if(!b.$isClass){b=this.getSchema().getEntity(b)}if(f){a=b.createWithId(e);a.load()}else {a=new b()}}return a},bindExpression:function(a,b,d,c){var e=this.getStub(a);return e.bind(b,d,c)},applyScheduler:function(a){if(a&&!a.isInstance){if(a===!0){a={}}if(!('preSort' in a)){a=Ext.apply({preSort:'kind,-depth'},a)}a=new Ext.util.Scheduler(a);a.$owner=this}return a},getScheduler:function(){var b=this,a=b._scheduler,c;if(!a){if(!(c=b.getParent())){a=new Ext.util.Scheduler({preSort:'kind,-depth'});a.$owner=b}else {a=c.getScheduler()}b.setScheduler(a)}return a},getStub:function(a){var b=this.getRoot();return a?b.getChild(a):b},collect:function(){var a=this,c=a.getParent(),b=a.collectTask;if(c){c.collect();return}if(!b){b=a.collectTask=new Ext.util.DelayedTask(a.doCollect,a)}if(a.collectTimeout===0){a.doCollect()}else {b.delay(a.collectTimeout)}},doCollect:function(){var a=this.children,b;if(a){for(b in a){a[b].doCollect()}}this.getRoot().collect()},invalidateChildLinks:function(d,c){var a=this.children,b;if(a){for(b in a){a[b].getRoot().invalidateChildLink(d,c)}}},onBindDestroy:function(c,d){var a=this,b;if(a.destroying){return}if(!d){delete a.bindings[c.id]}b=a.getParent();if(b){b.onBindDestroy(c,!0)}else {a.collect()}},applyData:function(b,e){var a=this,d,c;a.getSession();if(!e){c=a.getParent();a.linkData=d=c?Ext.Object.chain(c.getData()):{};a.data=a._data=Ext.Object.chain(d)}if(b&&b.constructor===Object){a.getRoot().set(b,!0)}},applyParent:function(a){if(a){a.registerChild(this)}return a},applyStores:function(f){var b=this,h=b.getRoot(),d,a,c,g,e;b.storeInfo={};b.listenerScopeFn=function(){return b.getView().getInheritedConfig('defaultListenerScope')};for(d in f){a=f[d];if(a.isStore){a.$wasInstance=!0;b.setupStore(a,d);continue}else if(Ext.isString(a)){a={source:a}}else {a=Ext.apply({},a)}e=a.listeners;delete a.listeners;c=b.bind(a,b.onStoreBind,b,{trackStatics:!0});if(c.isStatic()){c.destroy();b.createStore(d,a,e)}else {c.$storeKey=d;c.$listeners=e;g=h.createStubChild(d);g.setStore(c)}}},onStoreBind:function(a,g,c){var f=this.storeInfo,e=c.$storeKey,d=f[e],b;if(!d){this.createStore(e,a,c.$listeners,c)}else {a=Ext.merge({},c.pruneStaticKeys());b=a.proxy;delete a.type;delete a.model;delete a.fields;delete a.proxy;delete a.listeners;if(b){delete b.reader;delete b.writer;d.getProxy().setConfig(b)}d.setConfig(a)}},createStore:function(f,a,c,d){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=c;a.resolveListenerScope=this.listenerScopeFn;b=Ext.Factory.store(a);b.$binding=d;this.setupStore(b,f)},setupStore:function(a,b){a.resolveListenerScope=this.listenerScopeFn;this.storeInfo[b]=a;this.set(b,a)},applyFormulas:function(b){var c=this,e=c.getRoot(),a,d;c.getData();for(a in b){e.createStubChild(a);d=c.getStub(a);d.setFormula(b[a])}return b},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 b=new Ext.app.bind.RootStub(this),a=this.getParent();if(a){b.depth=a.getRoot().depth-1000}return b},getFormulaFn:function(c){var a=this,b=a.formulaFn;if(!b){b=a.formulaFn=function(b){return a.$formulaData[b]}}a.$formulaData=c;return b}}},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:!0,type:'controller',prefix:'controller.',idMatchRe:/^\#/,constructor:function(){var a=this;a.callParent();a.monitor(Ext.app.BaseController)},match:function(c,a){var b=!1,d=c.alias;if(a==='*'){b=!0}else if(a==='#'){b=!!c.isApplication}else if(this.idMatchRe.test(a)){b=c.getId()===a.substring(1)}else if(d){b=Ext.Array.indexOf(d,this.prefix+a)>-1}return b}},1,0,0,0,0,0,[Ext.app.domain,'Controller'],0));(Ext.cmd.derive('Ext.direct.Manager',Ext.Base,{singleton:!0,exceptions:{TRANSPORT:'xhr',PARSE:'parse',DATA:'data',LOGIN:'login',SERVER:'exception'},providerClasses:{},remotingMethods:{},config:{varName:'Ext.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(a){var b=this,d=arguments,f=b.relayers||(b.relayers={}),c,e;if(d.length>1){for(c=0,e=d.length;c<e;++c){b.addProvider(d[c])}return}if(!a.isProvider){a=Ext.create('direct.'+a.type+'provider',a)}b.providers.add(a);a.on('data',b.onProviderData,b);if(a.relayedEvents){f[a.id]=b.relayEvents(a,a.relayedEvents)}if(!a.isConnected()){a.connect()}return a},loadProvider:function(a,d,e){var c=this,i=c.providerClasses,h,b,j,g,f,k;if(Ext.isArray(a)){for(f=0,k=a.length;f<k;f++){c.loadProvider(a[f],d,e)}return}h=a.type;b=a.url;if(i[h]&&i[h].checkConfig(a)){g=c.addProvider(a);c.fireEventArgs('providerload',[b,g]);Ext.callback(d,e,[b,g]);return}j=a.varName||c.getVarName();delete a.varName;delete a.url;Ext.Loader.loadScript({url:b,scope:c,onLoad:function(){this.onApiLoadSuccess({url:b,varName:j,config:a,callback:d,scope:e})},onError:function(){this.onApiLoadFailure({url:b,callback:d,scope:e})}})},getProvider:function(a){return a.isProvider?a:this.providers.get(a)},removeProvider:function(a){var c=this,e=c.providers,d=c.relayers,b;a=a.isProvider?a:e.get(a);if(a){a.un('data',c.onProviderData,c);b=a.id;if(d[b]){d[b].destroy();delete d[b]}e.remove(a);return a}return null},addTransaction:function(a){this.transactions.add(a);return a},removeTransaction:function(a){var b=this;a=b.getTransaction(a);b.transactions.remove(a);return a},getTransaction:function(a){return typeof a==='object'?a:this.transactions.get(a)},onProviderData:function(d,a){var b=this,c,e;if(Ext.isArray(a)){for(c=0,e=a.length;c<e;++c){b.onProviderData(d,a[c])}return}if(a.name&&a.name!=='event'&&a.name!=='exception'){b.fireEvent(a.name,a)}else if(a.status===!1){b.fireEvent('exception',a)}b.fireEvent('event',a,d)},parseMethod:function(c){var b=Ext.global,e=0,a,d,f;if(Ext.isFunction(c)){a=c}else if(Ext.isString(c)){a=this.remotingMethods[c];if(!a){d=c.split('.');f=d.length;while(b&&e<f){b=b[d[e]];++e}a=Ext.isFunction(b)?b:null}}return a||null},resolveApi:function(b,g){var a,c,d,f,e;a=b&&b.prefix;if(a&&a.substr(a.length-1)!=='.'){a+='.'}for(c in b){d=b[c];if(c!=='prefix'&&typeof d!=='function'){f=(a||'')+d;e=this.parseMethod(f);if(typeof e==='function'){b[c]=e}}}return b},privates:{addProviderClass:function(a,b){this.providerClasses[a]=b},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(a){error=a+''}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(a){var c=a.url,b;b=Ext.String.format(this.apiNotFoundError,c);this.fireEventArgs('providerloaderror',[c,b]);Ext.callback(a.callback,a.scope,[c,b])},registerMethod:function(b,a){this.remotingMethods[b]=a},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:!0,$configPrefixed:!1,$configStrict:!1,config:{headers:undefined},subscribers:0,constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.requests={};Ext.applyIf(a,{id:Ext.id(null,'provider-')})},destroy:function(){var a=this;a.disconnect(!0);a.callParent()},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||b){if(b){a.subscribers=0}else {a.subscribers--}if(a.subscribers===0){a.doDisconnect();a.fireEventArgs('disconnect',[a])}}},doDisconnect:function(){var a=this.requests,b,c;for(c in a){b=a[c];b.abort()}this.requests={}},sendAjaxRequest:function(b){var a=Ext.Ajax.request(b);if(a&&a.id){this.requests[a.id]=a}return a},onData:function(b,c,a){if(a&&a.request){delete this.requests[a.request.id]}},inheritableStatics:{checkConfig:Ext.returnFalse},onClassExtended:function(b,a,c){if(a.type){Ext.direct.Manager.addProviderClass(a.type,b)}}},1,0,0,0,["direct.provider"],[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.direct,'Provider'],0));(Ext.cmd.derive('Ext.app.domain.Direct',Ext.app.EventDomain,{singleton:!0,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(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};Ext.util.LruCache.prototype.clear.call(this,b)},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),a,c,e,g,i;for(a=0;a<h;a++){b[a]=+b[a]}Ext.Array.sort(b,Ext.Array.numericSortFn);f=f||d;for(a=0;a<h;a++){e=b[a];g=d.getPage(e);i=g.length;for(c=0;c<i;c++){if(k.call(f,g[c],(e-1)*j+c)===!1){return}}}},findBy:function(d,a){var c=this,b=null;a=a||c;c.forEach(function(c,e){if(d.call(a,c,e)){b=c;return !1}});return b},findIndexBy:function(d,a){var c=this,b=-1;a=a||c;c.forEach(function(e,c){if(d.call(a,e)){b=c;return !1}});return b},find:function(f,a,h,d,e,c){if(Ext.isEmpty(a,!1)){return null}var g=Ext.String.createRegex(a,d,e,c),b=this.getRootProperty();return this.findBy(function(i){return i&&g.test((b?i[b]:i)[f])},null,h)},findIndex:function(f,a,h,d,e,c){if(Ext.isEmpty(a,!1)){return null}var g=Ext.String.createRegex(a,d,e,c),b=this.getRootProperty();return this.findIndexBy(function(i){return i&&g.test((b?i[b]:i)[f])},null,h)},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},addAll:function(a){this.addPage(1,a)},addPage:function(a,g){var c=this,d=c.getPageSize(),k=a+Math.floor((g.length-1)/d),i=(a-1)*d,j=c.indexMap,b,f,h,e;for(e=0;a<=k;a++,e+=d){b=Ext.Array.slice(g,e,e+d);for(f=0,h=b.length;f<h;f++){j[b[f].internalId]=i++}c.add(a,b);c.fireEvent('pageadd',c,a,b)}},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(b){var a=this.indexMap[b];if(a!=null){return this.getAt(a)}},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(d){var b=this,a=b.getPage(d),f,c,e;if(a){if(b.fireEvent('beforepageremove',b,d,a)!==!1){f=a.length;for(c=0;c<f;c++){delete b.indexMap[a[c].internalId]}e=Ext.util.LruCache.prototype.removeAtKey.apply(this,arguments);b.fireEvent('pageremove',b,d,a);a.length=0}}return e},getPage:function(a){return this.get(a)},hasRange:function(e,d){var a=this,c=a.getPageFromRecordIndex(e),b=a.getPageFromRecordIndex(d);for(;c<=b;c++){if(!a.hasPage(c)){return !1}}return (b-1)*a._pageSize+a.getPage(b).length>d},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(l,c){if(c){c--}if(!this.hasRange(l,c)){Ext.raise('PageMap asked for range which it does not have')}var d=this,k=Ext.Array,f=d.getPageSize(),g=d.getPageFromRecordIndex(l),h=d.getPageFromRecordIndex(c),m=(g-1)*f,n=(h*f)-1,a=g,j=[],e,i,b;for(;a<=h;a++){if(a===g){e=l-m;b=e>0}else {e=0;b=!1}if(a===h){i=f-(n-c);b=b||i<f}if(b){k.push(j,k.slice(d.getPage(a),e,i))}else {k.push(j,d.getPage(a))}}return j}},0,0,0,0,0,0,[Ext.data,'PageMap'],0));(Ext.cmd.derive('Ext.data.BufferedStore',Ext.data.ProxyStore,{isBufferedStore:!0,buffered:!0,config:{data:0,pageSize:25,remoteSort:!0,remoteFilter:!0,sortOnLoad:!1,purgePageCount:5,trailingBufferZone:25,leadingBufferZone:200,defaultViewSize:100,viewSize:0,trackRemoved:!1},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(!0)}return a},applyAutoSort:function(){},createFiltersCollection:function(){return new Ext.util.FilterCollection()},createSortersCollection:function(){return new Ext.util.SorterCollection()},updateGroupField:function(a){this.group(a)},getGrouper:function(){return this.grouper},isGrouped:function(){return !!this.grouper},createDataCollection:function(){var a=this,b=new Ext.data.PageMap({store:a,rootProperty:'data',pageSize:a.getPageSize(),maxSize:a.getPurgePageCount(),listeners:{clear:a.onPageMapClear,scope:a}});a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.pageRequests={};return b},removeAll:function(b){var a=this,c=a.getData();if(c){if(b){a.suspendEvent('clear')}c.clear();if(b){a.resumeEvent('clear')}}},flushLoad:function(){var b=this,a=b.pendingLoadOptions;b.clearLoadTask();if(!a){return}if(!a.preserveOnFlush){b.getData().clear();a.page=1;a.start=0;a.limit=b.getViewSize()||b.getDefaultViewSize()}a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},reload:function(d){var a=this,f=a.getData(),i=Number.MAX_VALUE,c,b,j,k,g,e,h,l;if(!d){d={}}if(a.loading||a.fireEvent('beforeload',a,d)===!1){return}e=function(){var g=a.totalCount,h=b-c;if(b>=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,b,!1)){a.loadCount=(a.loadCount||0)+1;a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b);a.fireEvent('refresh',a);a.fireEvent('load',a,l,!0)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);c=c===0?0:c-1;b=b===i?b:b+1;j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},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;a.callback=null;a.preserveOnFlush=!0;return b.load(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,d){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),e,f,g,i,j;d=Ext.apply({prefetchStart:c,prefetchEnd:b},d);b=(b>=a.totalCount)?k:b;if(d.forRender!==!1){f=c===0?0:c-1;g=b===k?b:b+1}else {f=c;g=b}a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(c,b,d.forRender)){a.onRangeAvailable(d);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(f);j=a.getPageFromRecordIndex(g);e=function(g,f,k){if(f>=i&&f<=j&&a.rangeCached(c,b)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',e);a.onRangeAvailable(d)}};h.on('pageadd',e);a.prefetchRange(c,b)}a.primeCache(c,b,c<m?-1:1);return l},getById:function(b){var a=this.data.findBy(function(a){return a.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 a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(c&&d!==undefined){c.setDirection(d)}else {a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}}else {a.grouper=b?a.getSorters().decodeSorter(b,Ext.util.Grouper):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=(a.getViewSize()||b.limit),c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.loadCount=(a.loadCount||0)+1;a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if((i=a.getTotalCount())){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!=a.lastPageSize){Ext.raise("pageSize cannot be dynamically altered")}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroying||this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('refresh',a);a.fireEvent('load',a,[],!0)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;c<e;c++){b[c].join(a)}a.getData().addPage(d,b)},rangeCached:function(b,a,e){var c=b,d=a;if(e!==!1){c=b===0?0:b-1,d=a===this.totalCount-1?a:a+1}return this.getData().hasRange(c,d)},pageCached:function(a){return this.getData().hasPage(a)},pagePending:function(a){return !!this.pageRequests[a]},rangeSatisfied:function(a,b){return this.rangeCached(a,b)},onRangeAvailable:function(a){var c=this,f=c.getTotalCount(),e=a.prefetchStart,b=(a.prefetchEnd>f-1)?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-((f+e)/2)),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+((f+e)/2)),0),d-1)}c.prefetchRange(a,b)},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(b){var a=this;a.clearing=!0;a.getData().clear();a.clearing=!1;a.loadPage(1,b)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}},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:!0,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=!1},updateDirectFn:function(){this.methodsResolved=!1},resolveMethods:function(){var a=this,c=a.getDirectFn(),b=a.getApi(),d;if(c){a.setDirectFn(d=Ext.direct.Manager.parseMethod(c));if(!Ext.isFunction(d)){Ext.raise('Cannot resolve directFn '+c)}}if(b){b=Ext.direct.Manager.resolveApi(b,a);a.setApi(b)}a.methodsResolved=!0},doRequest:function(e){var a=this,d,b,f,g,h,i,c,j;if(!a.methodsResolved){a.resolveMethods()}b=a.buildRequest(e);f=b.getAction();i=a.getApi();if(i){c=i[f]}c=c||a.getDirectFn();d=a.getWriter();if(d&&e.allowWrite()){b=d.write(b)}if(f==='read'){g=b.getParams()}else {g=b.getJsonData()}h=c.directCfg.method.getArgs({params:g,allowSingle:d.getAllowSingle(),paramOrder:a.getParamOrder(),paramsAsHash:a.getParamsAsHash(),paramsAsArray:!0,metadata:a.getMetadata(),callback:a.createRequestCallback(b,e),scope:a});b.setConfig({args:h,directFn:c});c.apply(window,h);return b},abort:function(a){var b;if(a&&a.isDataRequest){a=a.getOperation()}if(a&&a.isOperation){b=a.id}if(b!=null){this.canceledOperations[b]=!0}},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(a,b){a.setException(b.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:!0,requestCount:0,requests:{},timeout:30000,disableCaching:!0,disableCachingParam:'_dc',callbackKey:'callback',request:function(a){a=Ext.apply({},a);var b=this,l=Ext.isDefined(a.disableCaching)?a.disableCaching:b.disableCaching,h=a.disableCachingParam||b.disableCachingParam,f=++b.requestCount,e=a.callbackName||'callback'+f,g=a.callbackKey||b.callbackKey,i=Ext.isDefined(a.timeout)?a.timeout:b.timeout,d=Ext.apply({},a.params),k=a.url,m=Ext.name,c,j;if(l&&!d[h]){d[h]=Ext.Date.now()}a.params=d;d[g]=m+'.data.JsonP.'+e;j=b.createScript(k,d,a);b.requests[f]=c={url:k,params:d,script:j,id:f,scope:a.scope,success:a.success,failure:a.failure,callback:a.callback,callbackKey:g,callbackName:e};if(i>0){c.timeout=Ext.defer(b.handleTimeout,i,b,[c])}b.setupErrorHandling(c);b[e]=b.bindResponse(c);b.loadScript(c);return c},bindResponse:function(a){var b=this;return function(c){Ext.elevate(function(){b.handleResponse(c,a)})}},abort:function(a){var d=this,b=d.requests,c;if(a){if(!a.id){a=b[a]}d.handleAbort(a)}else {for(c in b){if(b.hasOwnProperty(c)){d.abort(b[c])}}}},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(c,a){var b=!0;Ext.undefer(a.timeout);delete this[a.callbackName];delete this.requests[a.id];this.cleanupErrorHandling(a);Ext.fly(a.script).destroy();if(a.errorType){b=!1;Ext.callback(a.failure,a.scope,[a.errorType])}else {Ext.callback(a.success,a.scope,[c])}Ext.callback(a.callback,a.scope,[b,c,a.errorType])},createScript:function(c,b,d){var a=document.createElement('script');a.setAttribute("src",Ext.urlAppend(c,Ext.Object.toQueryString(b)));a.setAttribute("async",!0);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:!0},doRequest:function(c){var b=this,a=b.buildRequest(c),d=a.getParams();a.setConfig({callbackKey:b.callbackKey,timeout:b.timeout,scope:b,disableCaching:!1,callback:b.createRequestCallback(a,c)});if(b.getAutoAppendParams()){a.setParams({})}a.setRawRequest(Ext.data.JsonP.request(a.getCurrentConfig()));a.setParams(d);b.lastRequest=a;return a},createRequestCallback:function(b,c){var a=this;return function(e,d,f){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},setException:function(a,b){a.setException(a.getRequest().getRawRequest().errorType)},buildUrl:function(c){var e=this,i=Ext.data.proxy.Server.prototype.buildUrl.apply(this,arguments),g=c.getRecords(),d=e.getWriter(),a,b,h,f,j;if(d&&c.getOperation().allowWrite()){c=d.write(c)}a=c.getParams();b=a.filters;delete a.filters;if(b&&b.length){for(f=0;f<b.length;f++){h=b[f];j=h.getValue();if(j){a[h.getProperty()]=j}}}if(Ext.isArray(g)&&g.length>0&&(!d||!d.getEncode())){a[e.getRecordParam()]=e.encodeRecords(g)}if(e.getAutoAppendParams()){i=Ext.urlAppend(i,Ext.Object.toQueryString(a))}return i},abort:function(a){a=a||this.lastRequest;if(a){Ext.data.JsonP.abort(a.getRawRequest())}},encodeRecords:function(c){var b=[],a=0,d=c.length;for(;a<d;a++){b.push(Ext.encode(c[a].getData()))}return b}},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:!0,deprecated:{5:{methods:{clear:null,create:function(b,c,d){var a=c;if(!a.isEntity){a=this.getModel(c||b.name)}return a.createWithId(d,b)},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(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'glyph',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||(c&&c.initialConfig.typeProperty)?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(b,c){var a=this,i=a.phantom,f;b={silent:!0,commit:b};if(c.depth!=null&&c.depth!==a.data.depth){var h={depth:c.depth+1},e=a.childNodes,g=e.length,d;for(d=0;d<g;d++){e[d].updateInfo(b,h)}}f=a.set(c,b);a.phantom=i;return f},isLast:function(){return this.get('isLast')},isFirst:function(){return this.get('isFirst')},hasChildNodes:function(){return !this.isLeaf()&&this.childNodes.length>0},isExpandable:function(){var a=this;if(a.get('expandable')){return !(a.isLeaf()||(a.isLoaded()&&!a.phantom&&!a.hasChildNodes()))}return !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,m){var a=this,j,n,c,e,f,l={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},i,d=a.getTreeStore(),o=d&&d.triStateCheckbox?1:!1,g=d&&d.bulkUpdate,q,p,k;Ext.suspendLayouts();if(Ext.isArray(b)){n=b.length;i=new Array(n);a.callTreeStore('beginFill');for(j=0;j<n;j++){i[j]=a.appendChild(b[j],h,m)}a.callTreeStore('endFill',[i])}else {b=a.createNode(b);if(h!==!0&&a.fireBubbledEvent('beforeappend',[a,b])===!1){Ext.resumeLayouts(!0);return !1}c=a.childNodes.length;e=b.parentNode;if(e){if(h!==!0&&b.fireBubbledEvent('beforemove',[b,e,a,c])===!1){Ext.resumeLayouts(!0);return !1}if(e.removeChild(b,!1,h,e.getTreeStore()===d)===!1){Ext.resumeLayouts(!0);return !1}}d&&d.beginUpdate();c=a.childNodes.length;if(c===0){a.setFirstChild(b)}a.childNodes[c]=b;b.parentNode=a;b.nextSibling=null;a.setLastChild(b);f=a.childNodes[c-1];if(f){b.previousSibling=f;f.nextSibling=b;f.updateInfo(m,{isLast:!1});if(!g){f.triggerUIUpdate()}}else {b.previousSibling=null}l.isFirst=c===0;l.index=c;k=b.updateInfo(m,l);if(a.isLeaf()){a.set('leaf',!1)}if(!a.isLoaded()){if(g){a.data.loaded=!0}else {a.set('loaded',!0)}}else if(a.childNodes.length===1&&!g){a.triggerUIUpdate()}if(c&&a.childNodes[c-1].isExpanded()&&!g){a.childNodes[c-1].cascade(a.triggerUIUpdate)}if(d){d.registerNode(a,!g);if(g){d.registerNode(b)}}if(h!==!0){a.fireBubbledEvent('append',[a,b,c]);if(e){b.fireBubbledEvent('move',[b,e,a,c])}}a.callTreeStore('onNodeAppend',[b,c]);if(k){b.callJoined('afterEdit',[k])}i=b;if(d){d.endUpdate()}}Ext.resumeLayouts(!0);return i},getOwnerTree:function(){var a=this.getTreeStore();return a&&a.ownerTree},getTreeStore:function(){var a=this;while(a&&!a.treeStore){a=a.parentNode}return a&&a.treeStore},removeChild:function(a,n,i,f){var c=this,h=c.indexOf(a),g,m,d,e=c.getTreeStore(),l=e&&e.bulkUpdate,j,k=[];if(h===-1||(i!==!0&&c.fireBubbledEvent('beforeremove',[c,a,!!f])===!1)){return !1}Ext.suspendLayouts();e&&e.beginUpdate();Ext.Array.erase(c.childNodes,h,1);if(c.firstChild===a){c.setFirstChild(a.nextSibling)}if(c.lastChild===a){c.setLastChild(a.previousSibling)}d=a.previousSibling;if(d){a.previousSibling.nextSibling=a.nextSibling}if(a.nextSibling){a.nextSibling.previousSibling=a.previousSibling;if(h===0){a.nextSibling.updateInfo(!1,{isFirst:!0})}for(g=h,m=c.childNodes.length;g<m;g++){c.childNodes[g].updateInfo(!1,{index:g})}}else if(d){d.updateInfo(!1,{isLast:!0});if(!l){if(d.isExpanded()){d.cascade(c.triggerUIUpdate)}else {d.triggerUIUpdate()}}}if(!c.childNodes.length&&!l){c.triggerUIUpdate()}Ext.resumeLayouts(!0);if(i!==!0){j={parentNode:a.parentNode,previousSibling:a.previousSibling,nextSibling:a.nextSibling};c.callTreeStore('beforeNodeRemove',[[a],!!f,k]);a.previousSibling=a.nextSibling=a.parentNode=null;c.fireBubbledEvent('remove',[c,a,!!f,j]);c.callTreeStore('onNodeRemove',[[a],!!f,k])}if(n){a.erase(!0)}else {a.clear()}if(!f){a.set({parentId:null,lastParentId:c.getId()},b)}if(e){e.endUpdate()}return a},copy:function(g,a,f){var b=this,d,e=[g],h=b.childNodes?b.childNodes.length:0,c;if(a&&a.isSession){e.push(a)}else if(arguments.length<3){f=a}d=b.callParent(e);if(f){for(c=0;c<h;c++){d.appendChild(b.childNodes[c].copy(undefined,!0))}}return d},clear:function(c,b){var a=this,d;a.parentNode=a.previousSibling=a.nextSibling=null;if(c){a.firstChild=a.lastChild=a.childNodes=null}if(b){a.firstChild=a.lastChild=null;a.childNodes.length=0;if(a.data){a.data.children=null}}},drop:function(){var a=this,d=a.childNodes,f=a.parentNode,g,c,e,b=a.getTreeStore();a.callParent();if(f){f.removeChild(a)}else if(a.get('root')){b.setRoot(null)}b&&b.beginUpdate();for(c=0,g=d?d.length:0;c<g;c++){e=d[c];e.clear();e.drop()}b&&b.endUpdate()},erase:function(e){var a=this,c=a.childNodes,f=c&&c.length,b,d;a.remove();a.clear(!0);a.callParent([e]);for(b=0;b<f;b++){d=c[b];d.parentNode=null;d.erase(e)}},insertBefore:function(b,e,i){var a=this,n=a.indexOf(e),f=b.parentNode,d=n,o,h,g,c=a.getTreeStore(),l=c&&c.bulkUpdate,k,m,j;if(!e){return a.appendChild(b)}if(b===e){return !1}b=a.createNode(b);if(i!==!0&&a.fireBubbledEvent('beforeinsert',[a,b,e])===!1){return !1}if(f===a&&a.indexOf(b)<n){d--}if(f){if(i!==!0&&b.fireBubbledEvent('beforemove',[b,f,a,n,e])===!1){return !1}if(f.removeChild(b,!1,i,f.getTreeStore()===c)===!1){return !1}}c&&c.beginUpdate();if(d===0){a.setFirstChild(b)}Ext.Array.splice(a.childNodes,d,0,b);b.parentNode=a;b.nextSibling=e;e.previousSibling=b;h=a.childNodes[d-1];if(h){b.previousSibling=h;h.nextSibling=b}else {b.previousSibling=null}k=b.updateInfo(!1,{parentId:a.getId(),index:d,isFirst:d===0,isLast:!1,depth:(a.data.depth||0)+1});for(g=d+1,o=a.childNodes.length;g<o;g++){m=a.childNodes[g];j=m.updateInfo(!1,{index:g});if(j){m.callJoined('afterEdit',[j])}}if(!a.isLoaded()){if(l){a.data.loaded=!0}else {a.set('loaded',!0)}}else if(a.childNodes.length===1&&!l){a.triggerUIUpdate()}if(c){c.registerNode(a,!l)}if(i!==!0){a.fireBubbledEvent('insert',[a,b,e]);if(f){b.fireBubbledEvent('move',[b,f,a,d,e])}}a.callTreeStore('onNodeInsert',[b,d]);if(k){b.callJoined('afterEdit',[k])}if(c){c.endUpdate()}return b},insertChild:function(c,b){var a=this.childNodes[c];if(a){return this.insertBefore(b,a)}else {return this.appendChild(b)}},isLastVisible:function(){var b=this,c=b.data.isLast,a=b.nextSibling;if(!c&&b.getTreeStore().isFiltered()){while(a){if(a.data.visible){return !1}a=a.nextSibling}return !0}return c},remove:function(c,d){var a=this,b=a.parentNode;if(b){b.removeChild(a,c,d)}else if(c){a.erase(!0)}return a},removeAll:function(j,i,f){var a=this,d=a.childNodes,h=d.length,c,b,e,g=[];if(!h){return a}if(!f){b=a.getTreeStore();if(b){b.beginUpdate();b.suspendEvent('remove');a.callTreeStore('beforeNodeRemove',[d,!1,g])}}for(e=0;e<h;++e){c=d[e];c.previousSibling=c.nextSibling=c.parentNode=null;a.fireBubbledEvent('remove',[a,c,!1]);if(j){c.erase(!0)}else {c.removeAll(!1,i,!0)}}if(!f&&b){b.resumeEvent('remove');a.callTreeStore('onNodeRemove',[d,!1,g]);b.endUpdate()}a.firstChild=a.lastChild=null;d.length=0;if(!f){a.triggerUIUpdate()}return a},getChildAt:function(a){return this.childNodes[a]},replaceChild:function(c,a,b){var d=a?a.nextSibling:null;this.removeChild(a,!1,b);this.insertBefore(c,d,b);return a},indexOf:function(a){return Ext.Array.indexOf(this.childNodes,a)},indexOfId:function(d){var b=this.childNodes,c=b.length,a=0;for(;a<c;++a){if(b[a].getId()===d){return a}}return -1},getPath:function(c,a){c=c||this.idProperty;a=a||'/';var d=[this.get(c)],b=this.parentNode;while(b){d.unshift(b.get(c));b=b.parentNode}return a+d.join(a)},getDepth:function(){return this.get('depth')},bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.parentNode}},cascade:function(a,f,g,e){var b=this,d=a;if(arguments.length===1&&!Ext.isFunction(a)){e=a.after;f=a.scope;g=a.args;d=a.before}if(!d||d.apply(f||b,g||[b])!==!1){var h=b.childNodes,i=h.length,c;for(c=0;c<i;c++){h[c].cascade.call(h[c],d,f,g,e)}if(e){e.apply(f||b,g||[b])}}},cascadeBy:function(){return this.cascade.apply(this,arguments)},eachChild:function(f,d,e){var b=this.childNodes,c=b.length,a;for(a=0;a<c;a++){if(f.apply(d||this,e||[b[a]])===!1){break}}},findChild:function(a,b,c){return this.findChildBy(function(){return this.get(a)==b},null,c)},findChildBy:function(g,d,e){var f=this.childNodes,h=f.length,c=0,a,b;for(;c<h;c++){a=f[c];if(g.call(d||a,a)===!0){return a}else if(e){b=a.findChildBy(g,d,e);if(b!==null){return b}}}return null},contains:function(a){return a.isAncestor(this)},isAncestor:function(b){var a=this.parentNode;while(a){if(a===b){return !0}a=a.parentNode}return !1},sort:function(e,i,h){var c=this,a=c.childNodes,g=a.length,b,d,f={isFirst:!0};if(g>0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b<g;b++){d=a[b];d.previousSibling=a[b-1];d.nextSibling=a[b+1];f.isLast=(b===g-1);f.index=b;d.updateInfo(!1,f);f.isFirst=!1;if(i&&!d.isLeaf()){d.sort(e,!0,!0)}}if(h!==!0){c.fireBubbledEvent('sort',[c,a]);c.callTreeStore('onNodeSort',[a])}}},isExpanded:function(){return this.get('expanded')},isLoaded:function(){return this.get('loaded')},isBranchLoaded:function(){var a=!this.isLeaf()&&this.isLoaded();if(a){this.cascade(function(b){if(!b.isLeaf()){a=a||b.isBranchLoaded()}return a})}return a},isLoading:function(){return this.get('loading')},isRoot:function(){return !this.parentNode},isVisible:function(){var a=this.parentNode;while(a){if(!a.isExpanded()){return !1}a=a.parentNode}return !0},expand:function(e,c,d){var a=this,b,f;if(!a.isLeaf()){if(a.isLoading()){a.on('expand',function(){a.expand(e,c,d)},a,{single:!0})}else {if(!a.isExpanded()){if(a.fireBubbledEvent('beforeexpand',[a])!==!1){if(e){if(a.parentNode&&a.parentNode.isSynchronousRecursiveExpand){a.isSynchronousRecursiveExpand=!0}else {b=a.getTreeStore();if(b.getProxy().isSynchronous||a.isBranchLoaded()){a.isSynchronousRecursiveExpand=!0;b.suspendEvent('add','datachanged');f=!0}}}a.callTreeStore('onBeforeNodeExpand',[a.onChildNodesAvailable,a,[e,c,d]]);if(f){b.resumeEvent('add','datachanged');b.fireEvent('datachanged',b);b.fireEvent('refresh',b)}a.isSynchronousRecursiveExpand=!1}}else if(e){a.expandChildren(!0,c,d)}else {Ext.callback(c,d||a,[a.childNodes])}}}else {Ext.callback(c,d||a)}},onChildNodesAvailable:function(h,j,g,i){var b=this,e=b.getTreeStore(),f=e&&e.bulkUpdate,a,d,c;Ext.suspendLayouts();for(a=b.parentNode;a;a=a.parentNode){if(!a.isExpanded()){(c||(c=[])).unshift(a)}}if(f||!e.isVisible(b)){b.data.expanded=!0}else {b.set('expanded',!0)}if(c){for(d=1;d<c.length;d++){a=c[d];if(f||!e.isVisible(a)){a.data.expanded=!0}else {a.set('expanded',!0)}}c[0].expand();for(d=1;d<c.length;d++){a=c[d];a.fireBubbledEvent('expand',[a,a.childNodes])}}else {b.callTreeStore('onNodeExpand',[h,!1])}b.fireBubbledEvent('expand',[b,h]);if(j){b.expandChildren(!0,g,i)}else {Ext.callback(g,i||b,[b.childNodes])}Ext.resumeLayouts(!0)},expandChildren:function(l,d,i,b){var g=this,k,a,e,c,f,j,h;if(Ext.isBoolean(d)){k=d;d=i;i=b;b=k}if(b===undefined){h=g.getTreeStore();b=h&&h.singleExpand}e=g.childNodes;c=[];f=b?Math.min(e.length,1):e.length;for(a=0;a<f;++a){j=e[a];if(!j.isLeaf()){c[c.length]=j}}f=c.length;for(a=0;a<f;++a){c[a].expand(l)}if(d){Ext.callback(d,i||g,[g.childNodes])}},collapse:function(f,b,d){var a=this,j=a.isExpanded(),g=a.getTreeStore(),i=g&&g.bulkUpdate,h=a.childNodes.length,c,e;if(!a.isLeaf()&&((!j&&f)||a.fireBubbledEvent('beforecollapse',[a])!==!1)){Ext.suspendLayouts();if(a.isExpanded()){if(f){e=function(){for(c=0;c<h;c++){a.childNodes[c].setCollapsed(!0)}};if(b){b=Ext.Function.createSequence(e,Ext.Function.bind(b,d,[a.childNodes]))}else {b=e}}else if(b){b=Ext.Function.bind(b,d,[a.childNodes])}if(i||!g.contains(a)){a.data.expanded=!1}else {a.set('expanded',!1)}a.callTreeStore('onNodeCollapse',[a.childNodes,b,d]);a.fireBubbledEvent('collapse',[a,a.childNodes]);b=null}else if(f){for(c=0;c<h;c++){a.childNodes[c].setCollapsed(!0)}}Ext.resumeLayouts(!0)}Ext.callback(b,d||a,[a.childNodes])},setCollapsed:function(c){var a=this,d=a.childNodes.length,b;if(!a.isLeaf()&&a.fireBubbledEvent('beforecollapse',[a])!==!1){a.data.expanded=!1;a.fireBubbledEvent('collapse',[a,a.childNodes]);if(c){for(b=0;b<d;b++){a.childNodes[b].setCollapsed(!0)}}}},collapseChildren:function(e,g,h){var i=this,a,f=i.childNodes,c=f.length,d=[],b;for(a=0;a<c;++a){b=f[a];if(!b.isLeaf()&&b.isLoaded()&&b.isExpanded()){d.push(b)}}c=d.length;if(c){for(a=0;a<c;++a){b=d[a];if(a===c-1){b.collapse(e,g,h)}else {b.collapse(e)}}}else {Ext.callback(g,h)}},fireEvent:function(a){return this.fireBubbledEvent(a,Ext.Array.slice(arguments,1))},fireBubbledEvent:function(c,f){var d,b,e;if(a[c]){for(b=this;d!==!1&&b;b=(e=b).parentNode){d=b.fireEventArgs.call(b,c,f)}if(d!==!1){b=e.getTreeStore();if(b&&b.hasListeners&&b.hasListeners[c='node'+c]){d=b.fireEventArgs(c,f)}}return d}else {return this.fireEventArgs.apply(this,arguments)}},serialize:function(g){var e=g||new Ext.data.writer.Json({writeAllFields:!0}),d=e.getRecordData(this),b=this.childNodes,f=b.length,c,a;if(f>0){d.children=c=[];for(a=0;a<f;a++){c.push(b[a].serialize(e))}}return d},callTreeStore:function(e,a){var c=this,b=c.getTreeStore(),d=b&&b[e];if(b&&d){a=a||[];if(a[0]!==c){a.unshift(c)}d.apply(b,a)}},addCls:function(a){this.replaceCls(null,a)},removeCls:function(a){this.replaceCls(a)},replaceCls:function(d,c){var a=this._parseCls(this.data.cls),b=this._parseCls(d);if(b.length){a=Ext.Array.difference(a,b)}b=this._parseCls(c);if(b.length){a=Ext.Array.unique(a.concat(b))}this.set('cls',a.join(' '))},toggleCls:function(d,f){if(f===undefined){var a=this._parseCls(this.data.cls),e=this._parseCls(d),g=e.length,b,c;for(b=0;b<g;++b){c=e[b];if(Ext.Array.contains(a,c)){Ext.Array.remove(a,c)}else {a.push(c)}}this.set('cls',a.join(' '))}else if(f){this.addCls(d)}else {this.removeCls(d)}},privates:{_noCls:[],spacesRe:/\s+/,join:function(a){if(a.isTreeStore){if(this.isRoot()){this.treeStore=this.store=a}}else {this.callParent([a])}},callJoined:function(a,b){this.callParent([a,b]);this.callTreeStore(a,b)},_parseCls:function(a){if(!a){return this._noCls}if(typeof a==='string'){return a.split(this.spacesRe)}return a}}}}}},0,0,0,0,0,0,[Ext.data,'NodeInterface'],0));(Ext.cmd.derive('Ext.mixin.Queryable',Ext.Base,{mixinId:'queryable',isQueryable:!0,query:function(a){a=a||'*';return Ext.ComponentQuery.query(a,this.getQueryRoot())},queryBy:function(g,e){var d=[],c=this.getQueryRoot().getRefItems(!0),b=0,f=c.length,a;for(;b<f;++b){a=c[b];if(g.call(e||a,a)!==!1){d.push(a)}}return d},queryById:function(a){return this.down(Ext.makeIdSelector(a))},child:function(b){var a=this.getQueryRoot().getRefItems();if(b&&b.isComponent){return this.matchById(a,b.getItemId())}if(b){a=Ext.ComponentQuery.query(b,a)}if(a.length){return a[0]}return null},down:function(a){if(a&&a.isComponent){return this.matchById(this.getRefItems(!0),a.getItemId())}a=a||'';return this.query(a)[0]||null},visitPreOrder:function(b,d,c,a){Ext.ComponentQuery._visit(!0,b,this.getQueryRoot(),d,c,a)},visitPostOrder:function(b,d,c,a){Ext.ComponentQuery._visit(!1,b,this.getQueryRoot(),d,c,a)},getRefItems:function(){return []},getQueryRoot:function(){return this},privates:{matchById:function(c,e){var d=c.length,a,b;for(a=0;a<d;++a){b=c[a];if(b.getItemId()===e){return b}}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},statics:{defaultProxy:'memory'}},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.NodeStore',Ext.data.Store,{isNodeStore:!0,config:{node:null,recursive:!1,rootVisible:!1,folderSort:!1},implicitModel:'Ext.data.TreeModel',getTotalCount:function(){return this.getCount()},updateFolderSort:function(b){var a=this.getData();a.setTrackGroups(!1);if(b){a.setGrouper({groupFn:this.folderSortFn})}else {a.setGrouper(null)}},folderSortFn:function(a){return a.data.leaf?1:0},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},onNodeAppend:function(b,a){if(b===this.getNode()){this.add([a].concat(this.retrieveChildNodes(a)))}},onNodeInsert:function(d,b,c){var a=this,e;if(d===a.getNode()){e=a.indexOf(c)||0;a.insert(0,[b].concat(a.retrieveChildNodes(b)))}},onNodeRemove:function(b,a){if(b===this.getNode()){this.remove([a].concat(this.retrieveChildNodes(a)))}},onNodeExpand:function(b,a){if(b===this.getNode()){this.loadRecords(a)}},applyNode:function(a){if(a){if(!a.isModel){a=new (this.getModel())(a)}if(!a.isNode){Ext.data.NodeInterface.decorate(a)}}return a},updateNode:function(b,d){var a=this,c;if(d&&!d.destroyed){d.un({append:'onNodeAppend',insert:'onNodeInsert',remove:'onNodeRemove',scope:a});d.unjoin(a)}if(b){b.on({scope:a,append:'onNodeAppend',insert:'onNodeInsert',remove:'onNodeRemove'});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',!0)}a.getData().clear();a.fireEvent('clear',a);a.suspendEvents();if(a.isInitializing){a.inlineData=c}else {a.add(c)}a.resumeEvents();if(c.length===0){a.loaded=b.loaded=!0}a.fireEvent('refresh',a,a.data)}},isVisible:function(b){var a=b.parentNode;if(!this.getRecursive()&&a!==this.getNode()){return !1}while(a){if(!a.isExpanded()){return !1}if(a===this.getNode()){break}a=a.parentNode}return !0},privates:{retrieveChildNodes:function(b){var e=this.getNode(),d=this.getRecursive(),c=[],a=b;if(!b.childNodes.length||(!d&&b!==e)){return c}if(!d){return b.childNodes}while(a){if(a._added){delete a._added;if(a===b){break}else {a=a.nextSibling||a.parentNode}}else {if(a!==b){c.push(a)}if(a.firstChild){a._added=!0;a=a.firstChild}else {a=a.nextSibling||a.parentNode}}}return c}}},0,0,0,0,["store.node"],0,[Ext.data,'NodeStore'],0));(Ext.cmd.derive('Ext.data.Request',Ext.Base,{isDataRequest:!0,config:{action:undefined,params:undefined,method:'GET',url:null,operation:null,proxy:null,disableCaching:!1,headers:{},callbackKey:null,rawRequest:null,jsonData:undefined,xmlData:undefined,withCredentials:!1,username:null,password:null,binary:!1,callback:null,scope:null,timeout:30000,records:null,directFn:null,args:null,useDefaultXhrHeader:null},constructor:function(a){this.initConfig(a)},getParam:function(b){var a=this.getParams(),c;if(a){return a[b]}return c},setParam:function(c,b){var a=this.getParams()||{};a[c]=b;this.setParams(a)}},1,0,0,0,0,0,[Ext.data,'Request'],0));(Ext.cmd.derive('Ext.data.TreeStore',Ext.data.Store,{isTreeStore:!0,config:{root:null,rootVisible:!1,defaultRootProperty:'children',parentIdProperty:null,clearOnLoad:!0,clearRemovedOnLoad:!0,nodeParam:'node',defaultRootId:'root',defaultRootText:'Root',folderSort:!1,pageSize:null},filterer:'topdown',lazyFill:!1,fillCount:0,bulkUpdate:0,nodesToUnregister:0,_silentOptions:{silent:!0},implicitModel:'Ext.data.TreeModel',groupField:null,groupDir:null,grouper:null,constructor:function(a){var b=this;b.byIdMap={};Ext.data.Store.prototype.constructor.call(this,a)},applyFields:function(a,c){var b=this;if(a){if(b.defaultRootProperty!==b.self.prototype.config.defaultRootProperty){a=a.concat({name:b.defaultRootProperty,type:'auto',defaultValue:null,persist:!1})}}Ext.data.Store.prototype.applyFields.call(this,a,c)},applyGroupField:function(a){return null},applyGroupDir:function(a){return null},applyGrouper:function(a){return null},group:Ext.emptyFn,onSorterEndUpdate:function(){var a=this,d=a.getSorters(),b=d.getRange(),c=a.getRoot(),e=a.getFolderSort();a.fireEvent('beforesort',a,b);if(c&&(e||b.length)){if(a.getRemoteSort()){if(b.length){a.load({callback:function(){a.fireEvent('sort',a,b)}})}}else {c.sort(this.getSortFn(),!0);a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},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(d,e){var f,g,c=0;if(a.needsFolderSort){f=d.data.leaf?1:0;g=e.data.leaf?1:0;c=f-g}if(a.needsIndexSort&&c===0){c=d.data.index-e.data.index}return c||b(d,e)}},getTotalCount:function(){return this.getCount()},afterEdit:function(b,h){var a=this,c=b.parentNode,j=a.getRootVisible(),i=!c&&!j,f,g=b.get('visible'),e,d;if(!i&&g!==a.contains(b)){if(g){if(!c||a.isVisible(b)){e=[b];if(b.isExpanded()){a.handleNodeExpand(b,b.childNodes,e)}f=b.previousSibling?a.indexOfPreviousVisibleNode(b.previousSibling):(c?a.indexOf(c):-1);a.insert(f+1,e)}}else {d=a.indexOf(b);a.removeAt(d,a.indexOfNextVisibleNode(b)-d)}}else if(a.getRoot()&&a.needsLocalFilter()){a.onFilterEndUpdate(a.getFilters())}Ext.data.Store.prototype.afterEdit.call(this,b,h)},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},updateRootVisible:function(c){var a=this.getRoot(),b;if(a){b=this.getData();if(c){b.insert(0,a)}else {b.remove(a)}}},updateTrackRemoved:function(a){Ext.data.Store.prototype.updateTrackRemoved.apply(this,arguments);this.removedNodes=this.removed;this.removed=null},onDestroyRecords:function(c,b,a){if(a){this.removedNodes.length=0}},updateProxy:function(a){var b;if(a){if(a.setIdParam){a.setIdParam(this.getNodeParam())}b=a.getReader();if(Ext.isEmpty(b.getRootProperty())){b.setRootProperty(this.getDefaultRootProperty())}}},setProxy:function(a){this.changingProxy=!0;(arguments.callee.$previous||Ext.data.Store.prototype.setProxy).call(this,a);this.changingProxy=!1},updateModel:function(a){if(a){var b=a.prototype.isNode;Ext.data.NodeInterface.decorate(a);if(!b&&!this.changingProxy){this.getProxy().getReader().buildExtractors(!0)}}},onCollectionFilter:Ext.emptyFn,onFilterEndUpdate:function(h){var b=this,d=h.length,a=b.getRoot(),f,g,c,e;if(!b.getRemoteFilter()){if(d){b.doFilter(a)}else {a.cascade({after:function(a){a.set('visible',!0,b._silentOptions)}})}if(d){c=[];f=a.childNodes;for(e=0,d=f.length;e<d;e++){g=f[e];if(g.get('visible')){c.push(g)}}}else {c=a.childNodes}b.onNodeFilter(a,c);a.fireEvent('filterchange',a,c);b.suppressNextFilter=!0;Ext.data.Store.prototype.onFilterEndUpdate.call(this,h);b.suppressNextFilter=!1}else {Ext.data.Store.prototype.onFilterEndUpdate.call(this,h)}},onNodeFilter:function(c,e){var a=this,d=a.getData(),b=[];if(a.getRootVisible()&&c.get('visible')){b.push(c)}a.handleNodeExpand(c,e,b);a.suspendEvents();d.splice(0,d.getCount(),b);a.resumeEvents();if(!a.suppressNextFilter){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}},onBeforeNodeExpand:function(a,f,h,c){var d=this,k,i,e,j,g,b;if(a.isLoaded()){b=[a.childNodes];if(c){b.push.apply(b,c)}Ext.callback(f,h||a,b)}else if(a.isLoading()){d.on('load',function(){b=[a.childNodes];if(c){b.push.apply(b,c)}Ext.callback(f,h||a,b)},d,{single:!0,priority:1001})}else {k=d.getProxy().getReader();i=a.getProxy();e=i?i.getReader():null;j=e&&e.initialConfig.rootProperty?e:k;g=j.getRoot(a.raw||a.data);if(g||(a.phantom&&!a.isRoot())){if(g){d.fillNode(a,j.extractData(g,{model:a.childType,recordCreator:d.recordCreator}))}b=[a.childNodes];if(c){b.push.apply(b,c)}Ext.callback(f,h||a,b)}else {d.read({node:a,onChildNodesAvailable:function(){delete d.lastOptions.onChildNodesAvailable;b=[a.childNodes];if(c){b.push.apply(b,c)}Ext.callback(f,h||a,b)}});d.flushLoad()}}},onNodeExpand:function(b,e){var a=this,d=a.indexOf(b)+1,c=[];a.handleNodeExpand(b,e,c);if(!a.refreshCounter&&b.isRoot()&&!b.get('visible')){a.loadRecords(c)}else {++a.loadCount;a.insert(d,c)}},handleNodeExpand:function(d,c,e){var g=this,f=c?c.length:0,b,a;if(d!==this.getRoot()&&!g.isVisible(d)){return}if(f){for(b=0;b<f;b++){a=c[b];if(a.get('visible')){e.push(a);if(a.isExpanded()){if(a.isLoaded()){g.handleNodeExpand(a,a.childNodes,e)}else {a.set('expanded',!1,{silent:!0});a.expand()}}}}}},onNodeCollapse:function(c,b,f,g){var a=this,e=a.indexOf(c)+1,d;if(a.needsLocalFilter()){b=Ext.Array.filter(b,a.filterVisible)}if(b.length&&a.isVisible(c)){d=a.indexOfNextVisibleNode(c);a.removeAt(e,d-e)}Ext.callback(f,g)},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.Store.prototype.filterNew.call(this,a)},filterRejects:function(a){return !a.get('root')&&Ext.data.Store.prototype.filterRejects.call(this,a)},getNewRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterNew,this)},getRejectRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterRejects,this)},getUpdatedRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterUpdated)},beforeNodeRemove:function(i,a,h,d){if(!Ext.isArray(a)){a=[a]}var c=this,g=a.length,f=c.removedNodes,b,e;for(b=0;!e&&b<g;b++){if(a[b].get('visible')){e=a[b]}}if(e){d[0]=c.indexOf(a[0]);d[1]=c.indexOfNextVisibleNode(a[a.length-1])-d[0]}else {d[0]=-1;d[1]=0}for(b=0;b<g;b++){a[b].cascade(function(b){c.unregisterNode(b,!0);if(f&&!h){if(!b.phantom&&!b.erasing&&!c.loading){b.removedFrom=c.indexOf(b);f.push(b);c.needsSync=!0}}})}},afterDrop:Ext.emptyFn,onNodeRemove:function(e,d,c,b){var a=this;a.suspendAutoSync();if(b[0]!==-1){a.removeIsMove=c;a.removeAt.apply(a,b);a.removeIsMove=!1}a.resumeAutoSync()},onNodeAppend:function(a,c,b){this.onNodeInsert(a,c,b)},onNodeInsert:function(g,a,k){var b=this,l=a.raw||a.data,j=b.removedNodes,i,e,c,h,f,d;if(g&&b.needsLocalFilter()){b.doFilter(g)}b.beginUpdate();if(b.isVisible(a)){if(k===0||!a.previousSibling){d=b.indexOf(g)}else {d=b.indexOfPreviousVisibleNode(a.previousSibling)}b.insert(d+1,a);if(!a.isLeaf()&&a.isExpanded()){if(a.isLoaded()){b.onNodeExpand(a,a.childNodes)}else if(!b.fillCount){a.set('expanded',!1);a.expand()}}}Ext.Array.remove(j,a);b.needsSync=b.needsSync||a.phantom||a.dirty;if(!a.isLeaf()&&!a.isLoaded()&&!b.lazyFill){i=b.getProxy().getReader();e=a.getProxy();c=e?e.getReader():null;h=c&&c.initialConfig.rootProperty?c:i;f=h.getRoot(l);if(f){b.fillNode(a,h.extractData(f,{model:a.childType,recordCreator:b.recordCreator}))}}b.endUpdate()},registerNode:function(a,f){var b=this,g=b.byIdMap[a.id],d,e,c;b.byIdMap[a.id]=a;if(a.onRegisterTreeNode&&a!==g){a.onRegisterTreeNode(b)}if(a.onUnregisterTreeNode){b.nodesToUnregister++}if(f===!0){d=a.childNodes;e=d.length;for(c=0;c<e;c++){b.registerNode(d[c],!0)}}},unregisterNode:function(a,f){var b=this,g=b.byIdMap[a.id],d,e,c;delete b.byIdMap[a.id];if(f===!0){d=a.childNodes;e=d.length;for(c=0;c<e;c++){b.unregisterNode(d[c],!0)}}if(a.onUnregisterTreeNode&&a===g){a.onUnregisterTreeNode(b);b.nodesToUnregister--}},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(!0)}a.resumeAutoSync(a.autoSync)},applyRoot:function(a){var b=this,e=b.getModel(),d=e.prototype.idProperty,c=b.getDefaultRootId();if(a&&!a.isNode){a=Ext.apply({text:b.getDefaultRootText(),root:!0,isFirst:!0,isLast:!0,depth:0,index:0,parentId:null,allowDrag:!1},a);if(c&&a[d]===undefined){a[d]=c}a=new e(a)}return a},updateRoot:function(b,c){var a=this,d,e=!c,f,g=[];a.getTrackRemoved();a.suspendEvent('add','remove');if(e){a.suspendEvent('refresh','datachanged')}if(c&&c.isModel){if(a.getRootVisible()){f=[c]}else {f=c.childNodes}a.beforeNodeRemove(null,f,!1,g);c.set('root',!1);a.onNodeRemove(null,f,!1,g);c.fireEvent('remove',null,c,!1);c.fireEvent('rootchange',null);c.clearListeners();c.store=c.treeStore=null;a.unregisterNode(c)}a.getData().clear();if(b){if(b.fireEventArgs('beforeappend',[null,b])===!1){b=null}else {d=b.parentNode;if(d){if(!d.removeChild(b,!1,!1,d.getTreeStore()===a)){return}}else if((d=b.getTreeStore())&&d!==a&&b===d.getRoot()){d.setRoot(null)}b.store=b.treeStore=a;b.set('root',!0);b.updateInfo(!0,{isFirst:!0,isLast:!0,depth:0,index:0,parentId:null});a.registerNode(b,!0);b.fireEvent('append',null,b,!1);b.fireEvent('rootchange',b);a.onNodeAppend(null,b,0);b.phantom=!0}}if(!e){a.fireEvent('rootchange',b,c)}if(b&&(a.getAutoLoad()||b.isExpanded())){if(b.isLoaded()){a.onNodeExpand(b,b.childNodes);if(!e){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}else {b.data.expanded=!1;b.expand(!1);if(b.isLoaded&&!a.getProxy().isSynchronous&&!e){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}}else if(!e){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}a.resumeEvent('add','remove');if(e){a.resumeEvent('refresh','datachanged')}},doDestroy:function(){var a=this,b=a.getRoot();if(b&&a.nodesToUnregister){b.cascade(function(b){if(b.onUnregisterTreeNode){b.onUnregisterTreeNode(a)}})}Ext.data.Store.prototype.doDestroy.call(this)},each:function(e,d,a){var f=0,b=a,c;if(a&&typeof a==='object'){c=a.collapsed;b=a.filtered}if(c){this.getRoot().cascade(function(c){if(b===!0||c.get('visible')){return e.call(d||c,c,f++)}})}else {return Ext.data.Store.prototype.each.call(this,e,d,b)}},collect:function(h,a,b){var d,i={},g=[],e=a,f,c;if(a&&typeof a==='object'){d=a.collapsed;b=a.filtered;e=a.allowNull}if(d||b){this.getRoot().cascade(function(j){if(b===!0||j.get('visible')){c=j.get(h);f=String(c);if((e||!Ext.isEmpty(c))&&!i[f]){i[f]=1;g.push(c)}}if(!d&&!j.isExpanded()){return !1}})}else {g=Ext.data.Store.prototype.collect.call(this,h,e,b)}return g},getNodeById:function(a){return this.byIdMap[a]||null},findNode:function(b,a,e,f,d){if(Ext.isEmpty(a,!1)){return null}if(b===this.model.idProperty&&arguments.length<3){return this.byIdMap[a]}var g=Ext.String.createRegex(a,e,f,d),c=null;Ext.Object.eachValue(this.byIdMap,function(h){if(h&&g.test(h.get(b))){c=h;return !1}});return c},load:function(b){var a=b&&b.node;if(!a&&!(a=this.getRoot())){a=this.setRoot({expanded:!0,autoRoot:!0});return}if(a.isLoading()){return}return Ext.data.Store.prototype.load.call(this,b)},reload:function(b){var a=Ext.apply({},b,this.lastOptions);a.node=this.getRoot();return this.load(a)},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b,g,i,d=a.getClearOnLoad(),e,f,h;a.clearLoadTask();if(!c){return}b=c.node||a.getRoot();e=b&&b.isRoot();g=c.callback;i=c.scope;c.params=c.params||{};if(b.data.expanded&&!e){b.data.loaded=!1;if(d){b.data.expanded=!1}c.callback=function(a,c,e){if(!d){b.collapse()}b.expand();Ext.callback(g,i,[a,c,e])}}c.id=b.getId();a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}c=Ext.apply({node:c.node||b,internalScope:a,internalCallback:a.onProxyLoad},c);a.lastOptions=Ext.apply({},c);c.isRootLoad=e;f=a.createOperation('read',c);if(a.fireEvent('beforeload',a,f)!==!1){a.loading=!0;if(e){if(a.getClearRemovedOnLoad()){a.removedNodes.length=0}if(d){a.unregisterNode(b,!0);b.clear(!1,!0);a.registerNode(b);h=!0}}else {if(a.loading){b.data.loaded=!1}if(a.getTrackRemoved()&&a.getClearRemovedOnLoad()){a.clearRemoved(b)}if(d){b.removeAll(!1)}}if(a.loading&&b){b.set('loading',!0,{silent:!(a.contains(b)||b===a.getRoot())})}if(h){a.clearData(!0);if(a.getRootVisible()){a.suspendEvents();a.add(b);a.resumeEvents()}}f.execute()}return a},onProxyLoad:function(c){var a=this,f=c.initialConfig,e=c.wasSuccessful(),b=c.getRecords(),d=f.node,g=f.isRootLoad,h=c.getScope()||a,i=[b,c,e];if(a.destroyed){return}a.loading=!1;d.set('loading',!1);if(e){++a.loadCount;if(!a.getClearOnLoad()){b=a.cleanRecords(d,b)}if(a.getParentIdProperty()){b=a.treeify(d,b)}if(g){a.suspendEvent('add','update')}b=a.fillNode(d,b)}Ext.callback(f.onChildNodesAvailable,h,i);if(g){a.resumeEvent('add','update');a.callObservers('BeforePopulate');a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.callObservers('AfterPopulate')}a.fireEvent('load',a,b,e,c,d)},clearRemoved:function(k){var d=this,e=d.removedNodes,l=k.getId(),f=e.length,b=f,h={},j=[],i={},a,c,g;if(k===d.getRoot()){d.removedNodes.length=0;return}for(;b--;){a=e[b];i[a.getId()]=a}for(b=f;b--;){a=e[b];c=a;while(c&&c.getId()!==l){g=c.get('parentId')||c.get('lastParentId');c=c.parentNode||d.getNodeById(g)||i[g]}if(c){h[a.getId()]=a}}for(b=0;b<f;b++){a=e[b];if(!h[a.getId()]){j.push(a)}}d.removedNodes=j},fillNode:function(c,b){var a=this,d=b?b.length:0;if(++a.bulkUpdate===1){a.suspendEvent('datachanged')}if(d){a.setupNodes(b);c.appendChild(b,undefined,!0)}else {if(a.bulkUpdate===1){c.set('loaded',!0)}else {c.data.loaded=!0}}if(!--a.bulkUpdate){a.resumeEvent('datachanged')}return b},setupNodes:function(b){var a=this,j=a.getSorters(),f=!1,g=b.length,i=a.sortOnLoad&&g>1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e=a.needsLocalFilter(),d,h,c;if(e){a.doFilter(b[0])}for(c=1;c<g;c++){d=b[c];h=b[c-1];if(e){a.doFilter(d)}f=d.data.index!==h.data.index}if(i){a.needsIndexSort=!0;Ext.Array.sort(b,a.getSortFn());a.needsIndexSort=!1}else if(f){Ext.Array.sort(b,a.sortByIndex)}},beginFill:function(){var a=this;if(!a.fillCount++){a.beginUpdate();a.suspendEvent('add','update');a.suspendAutoSync();a.fillArray=[]}},endFill:function(g,f){var a=this,c=a.fillArray,b,e,d;c.push(f);if(!--a.fillCount){a.resumeAutoSync();a.resumeEvent('add','update');for(b=0,e=c.length;b<e;b++){d=a.indexOf(c[b][0]);if(d!==-1){a.fireEvent('add',a,c[b],d)}}a.fillArray=null;a.endUpdate()}},sortByIndex:function(a,b){return a.data.index-b.data.index},onIdChanged:function(d,e,c){var b=d.childNodes,f=b&&b.length,a;Ext.data.Store.prototype.onIdChanged.apply(this,arguments);delete this.byIdMap[e];this.byIdMap[c]=d;for(a=0;a<f;a++){b[a].set('parentId',c)}},treeify:function(n,h){var g=this,l=n.getId(),m=g.getParentIdProperty(),j=h.length,i=[],f={},b,a,c,d,k,e;for(b=0;b<j;b++){a=h[b];a.data.depth=1;f[a.id]=a}for(b=0;b<j;b++){a=h[b];c=a.data[m];if(!(c||c===0)||c===l){i.push(a)}else {d=f[c];d.$children=d.$children||[];d.$children.push(a);a.data.depth=d.data.depth+1}}for(k in f){a=f[k];e=a.$children;if(e){delete a.$children;g.setupNodes(e);a.appendChild(e)}g.registerNode(a)}g.setupNodes(i);return i},cleanRecords:function(h,f){var e={},d=h.childNodes,a=0,b=d.length,g=[],c;for(;a<b;++a){e[d[a].getId()]=!0}for(a=0,b=f.length;a<b;++a){c=f[a];if(!e[c.getId()]){g.push(c)}}return g},removeAll:function(){this.suspendEvents();this.setRoot(null);this.resumeEvents();Ext.data.Store.prototype.removeAll.call(this)},doSort:function(b){var a=this;if(a.getRemoteSort()){a.load()}else {a.tree.sort(b,!0);a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}a.fireEvent('sort',a,a.sorters.getRange())},filterVisible:function(a){return a.get('visible')},isVisible:function(c){var a=c.parentNode,b=c.data.visible,d=this.getRoot();while(b&&a){b=a.data.expanded&&a.data.visible;a=a.parentNode}return b&&!(c===d&&!this.getRootVisible())},commitChanges:function(){var a=this.removedNodes;if(a){a.length=0}Ext.data.Store.prototype.commitChanges.call(this)},getRootNode:function(){return this.getRoot()},setRootNode:function(a){this.setRoot(a);return this.getRoot()},privates:{fireChangeEvent:function(a){return !!this.byIdMap[a.id]},getRawRemovedRecords:function(){return this.removedNodes},createOperation:function(e,b){var d=this,c=b.node,a;if(d.useModelProxy&&c&&c!==d.getRootNode()){a=c.getProxy()}if(a&&a!==d.getProxy()){return a.createOperation(e,b)}else {return Ext.data.Store.prototype.createOperation.call(this,e,b)}},recordCreator:function(b,a){return new a(b)},doFilter:function(a){this.filterNodes(a,this.getFilters().getFilterFn(),!0)},filterNodes:function(b,h,j){var c=this,g=c.filterer==='bottomup',a=h(b)&&j||(b.isRoot()&&!c.getRootVisible()),f=b.childNodes,i=f&&f.length,d,e;if(i){for(d=0;d<i;++d){e=c.filterNodes(f[d],h,a||g)||e}if(g){a=e||a}}b.set("visible",a,c._silentOptions);return a},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(a,c){var b=this.getData();b.setSorters(null);if(a){a.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:!0},0,0,0,0,0,0,[Ext.data,'Types'],function(a){var b=Ext.data.SortTypes;Ext.apply(a,{stripRe:/[\$,%]/g,AUTO:{sortType:b.none,type:'auto'},STRING:{convert:function(b){var c=this.getAllowNull()?null:'';return (b===undefined||b===null)?c:String(b)},sortType:b.asUCString,type:'string'},INT:{convert:function(b){if(typeof b==='number'){return parseInt(b,10)}return b!==undefined&&b!==null&&b!==''?parseInt(String(b).replace(a.stripRe,''),10):(this.getAllowNull()?null:0)},sortType:b.none,type:'int'},FLOAT:{convert:function(b){if(typeof b==='number'){return b}return b!==undefined&&b!==null&&b!==''?parseFloat(String(b).replace(a.stripRe,''),10):(this.getAllowNull()?null:0)},sortType:b.none,type:'float'},BOOL:{convert:function(b){if(typeof b==='boolean'){return b}if(this.getAllowNull()&&(b===undefined||b===null||b==='')){return null}return b==='true'||b==1},sortType:b.none,type:'bool'},DATE:{convert:function(b){var d=this.getDateReadFormat()||this.getDateFormat(),c;if(!b){return null}if(b instanceof Date){return b}if(d){return Ext.Date.parse(b,d)}c=Date.parse(b);return c?new Date(c):null},sortType:b.asDate,type:'date'}});a.BOOLEAN=a.BOOL;a.INTEGER=a.INT;a.NUMBER=a.FLOAT}));(Ext.cmd.derive('Ext.data.Validation',Ext.data.Model,{isValidation:!0,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(q){if(this.isBase){return}var e=this,i=e.data,c=e.record,m=c.fields,l=c.generation,p=c.data,r=c.validationSeparator,f=null,k,h,a,d,s,g,u,t,n,j,o,b;if(q||e.syncGeneration!==l){e.syncGeneration=l;for(g=0,n=m.length;g<n;++g){d=m[g];b=d.name;o=p[b];k=d.defaultInvalidMessage;a=0;if(!(b in i)){i[b]=h=!0}else {h=i[b]}if(d.validate!==Ext.emptyFn){j=d.validate(o,r,null,c);if(j!==!0){a=j||k}}if(!a){a=!0}if(a!==h){(f||(f={}))[b]=a}}if(f){e.set(f)}}}},0,0,0,0,0,0,[Ext.data,'Validation'],0));(Ext.cmd.derive('Ext.dom.Helper',Ext.Base,function(){var b='afterbegin',d='afterend',a='beforebegin',c='beforeend',g=['BeforeBegin','previousSibling'],f=['AfterEnd','nextSibling'],e={beforebegin:g,afterend:f},h={beforebegin:g,afterend:f,afterbegin:['AfterBegin','firstChild'],beforeend:['BeforeEnd','lastChild']};return {singleton:!0,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 b=/([a-z])([A-Z])/g,a={};function decamel(c,a,b){return a+'-'+b.toLowerCase()}return function(c){return a[c]||(a[c]=c.replace(b,decamel))}}(),generateMarkup:function(a,c){var e=this,i=typeof a,d,b,f,g,h;if(i==="string"||i==="number"){c.push(a)}else if(Ext.isArray(a)){for(g=0;g<a.length;g++){if(a[g]){e.generateMarkup(a[g],c)}}}else {f=a.tag||'div';c.push('<',f);for(d in a){if(a.hasOwnProperty(d)){b=a[d];if(b!==undefined&&!e.confRe.test(d)){if(b&&b.join){b=b.join(' ')}if(typeof b==="object"){c.push(' ',d,'="');e.generateStyles(b,c,!0).push('"')}else {c.push(' ',e.attributeTransform[d]||d,'="',b,'"')}}}}if(e.emptyTags.test(f)){c.push('/>')}else {c.push('>');if((b=a.tpl)){b.applyOut(a.tplData,c)}if((b=a.html)){c.push(b)}if((b=a.cn||a.children)){e.generateMarkup(b,c)}h=e.closeTags;c.push(h[f]||(h[f]='</'+f+'>'))}}return c},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){if(typeof a==="string"){return a}var b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e,f){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,'Helper',Ext,'DomHelper',Ext.core,'DomHelper'],0));Ext.define('Ext.overrides.dom.Helper',(function(){var a=/^(?:table|thead|tbody|tr|td)$/i,f=/td|tr|tbody|thead/i,e='<table>',d='</table>',c=e+'<tbody>',b='</tbody>'+d,h=c+'<tr>',g='</tr>'+b;return {override:'Ext.dom.Helper',ieInsertHtml:function(d,b,e){var c=null;if(Ext.isIE9m&&a.test(b.tagName)){c=this.insertIntoTable(b.tagName.toLowerCase(),d,b,e)}return c},ieOverwrite:function(b,c){if(Ext.isIE9m&&a.test(b.tagName)){while(b.firstChild){b.removeChild(b.firstChild)}if(c){return this.insertHtml('afterbegin',b,c)}}},ieTable:function(g,f,e,d){var h=-1,a=this.detachedDiv,b,c;a.innerHTML=[f,e,d].join('');while(++h<g){a=a.firstChild}b=a.nextSibling;if(b){b=a;a=document.createDocumentFragment();while(b){c=b.nextSibling;a.appendChild(b);b=c}}return a},insertIntoTable:function(a,k,i,o){var j,q,n=k==='beforebegin',l=k==='afterbegin',p=k==='beforeend',m=k==='afterend';if(a==='td'&&(l||p)||!f.test(a)&&(n||m)){return null}q=n?i:m?i.nextSibling:l?i.firstChild:null;if(n||m){i=i.parentNode}if(a==='td'||(a==='tr'&&(p||l))){j=this.ieTable(4,h,o,g)}else if(((a==='tbody'||a==='thead')&&(p||l))||(a==='tr'&&(n||m))){j=this.ieTable(3,c,o,b)}else {j=this.ieTable(2,e,o,d)}i.insertBefore(j,q);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 a=doc.createElement('div');a.innerHTML='<!-- -->text<!-- -->';return a.children&&(a.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?!0:!1,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 a,b='<r><a:b xmlns:a="n"></a:b></r>';if(window.DOMParser){a=(new DOMParser()).parseFromString(b,"application/xml")}else {a=new ActiveXObject("Microsoft.XMLDOM");a.loadXML(b)}return !!a.getElementsByTagName('a:b').length})(),longHexToChar=function(b,a){return String.fromCharCode(parseInt(a,16))},shortToLongHex=function(b,a){while(a.length<6){a='0'+a}return '\\'+a},charToLongHex=function(b,a){num=a.charCodeAt(0).toString(16);if(num.length===1){num='0'+num}return '\\0000'+num},unescapeCssSelector=function(a){return (hasEscapes)?a.replace(longHex,longHexToChar):a},setupEscapes=function(a){hasEscapes=(a.indexOf('\\')>-1);if(hasEscapes){a=a.replace(shortHex,shortToLongHex).replace(nonHex,charToLongHex).replace(escapes,'\\\\')}return a};eval("var batch = 30803, child, next, prev, byClassName;");child=useChildrenCollection?function child(a,b){return a.children[b]}:function child(b,c){var d=0,a=b.firstChild;while(a){if(a.nodeType==1){if(++d==c){return a}}a=a.nextSibling}return null};next=useElementPointer?function(a){return a.nextElementSibling}:function(a){while((a=a.nextSibling)&&a.nodeType!=1){}return a};prev=useElementPointer?function(a){return a.previousElementSibling}:function(a){while((a=a.previousSibling)&&a.nodeType!=1){}return a};function children(c){var a=c.firstChild,d=-1,b;while(a){b=a.nextSibling;if(a.nodeType==3&&!nonSpace.test(a.nodeValue)){c.removeChild(a)}else {a.nodeIndex=++d}a=b}return this}byClassName=useClassList?function(f,a){a=unescapeCssSelector(a);if(!a){return f}var d=[],g=-1,e,b,c;for(e=0;b=f[e];e++){c=b.classList;if(c){if(c.contains(a)){d[++g]=b}}else if((' '+b.className+' ').indexOf(a)!==-1){d[++g]=b}}return d}:function(d,a){a=unescapeCssSelector(a);if(!a){return d}var e=[],f=-1,c,b;for(c=0;b=d[c];c++){if((' '+b.className+' ').indexOf(a)!==-1){e[++f]=b}}return e};function attrValue(a,b){if(!a.tagName&&typeof a.length!="undefined"){a=a[0]}if(!a){return null}if(b=="for"){return a.htmlFor}if(b=="class"||b=="className"){return a.className}return a.getAttribute(b)||a[b]}function getNodes(d,i,a){var f=[],k=-1,m,b,h,e,j,n,g,c,l;if(!d){return f}a=a.replace('|',':')||"*";if(typeof d.getElementsByTagName!="undefined"){d=[d]}if(!i){a=unescapeCssSelector(a);if(!supportsColonNsSeparator&&DQ.isXml(d[0])&&a.indexOf(':')!==-1){for(b=0;h=d[b];b++){m=h.getElementsByTagName(a.split(':').pop());for(e=0;j=m[e];e++){if(j.tagName===a){f[++k]=j}}}}else {for(b=0;h=d[b];b++){m=h.getElementsByTagName(a);for(e=0;j=m[e];e++){f[++k]=j}}}}else if(i=="/"||i==">"){g=a.toUpperCase();for(b=0;h=d[b];b++){n=h.childNodes;for(e=0;l=n[e];e++){if(l.nodeName==g||l.nodeName==a||a=='*'){f[++k]=l}}}}else if(i=="+"){g=a.toUpperCase();for(b=0;c=d[b];b++){while((c=c.nextSibling)&&c.nodeType!=1){}if(c&&(c.nodeName==g||c.nodeName==a||a=='*')){f[++k]=c}}}else if(i=="~"){g=a.toUpperCase();for(b=0;c=d[b];b++){while((c=c.nextSibling)){if(c.nodeName==g||c.nodeName==a||a=='*'){f[++k]=c}}}}return f}function concat(a,b){a.push.apply(a,b);return a}function byTag(a,b){if(a.tagName||a===doc){a=[a]}if(!b){return a}var e=[],f=-1,d,c;b=b.toLowerCase();for(d=0;c=a[d];d++){if(c.nodeType==1&&c.tagName.toLowerCase()==b){e[++f]=c}}return e}function byId(a,c){c=unescapeCssSelector(c);if(a.tagName||a===doc){a=[a]}if(!c){return a}var d=[],f=-1,e,b;for(e=0;b=a[e];e++){if(b&&b.id==c){d[++f]=b;return d}}return d}function byAttribute(l,c,d,m,k){var h=[],n=-1,j=k=="{",e=DQ.operators[m],b,i,g,f,a;d=unescapeCssSelector(d);for(f=0;a=l[f];f++){if(a.nodeType===1){if(!g){i=DQ.isXml(a);g=!0}if(!i){if(j){b=DQ.getStyle(a,c)}else if(c=="class"||c=="className"){b=a.className}else if(c=="for"){b=a.htmlFor}else if(c=="href"){b=a.getAttribute("href",2)}else {b=a.getAttribute(c)}}else {b=a.getAttribute(c)}if((e&&e(b,d))||(!e&&b)){h[++n]=a}}}return h}function byPseudo(c,b,a){a=unescapeCssSelector(a);return DQ.pseudos[b](c,a)}function nodupIEXml(b){var f=++key,e,a,c,d;b[0].setAttribute("_nodup",f);e=[b[0]];for(a=1,c=b.length;a<c;a++){d=b[a];if(!d.getAttribute("_nodup")!=f){d.setAttribute("_nodup",f);e[e.length]=d}}for(a=0,c=b.length;a<c;a++){b[a].removeAttribute("_nodup")}return e}function nodup(a){if(!a){return []}var h=a.length,g,d,e=a,f,i=-1,c,b;if(!h||typeof a.nodeType!="undefined"||h==1){return a}if(isIE&&typeof a[0].selectSingleNode!="undefined"){return nodupIEXml(a)}c=++key;a[0]._nodup=c;for(d=1;g=a[d];d++){if(g._nodup!=c){g._nodup=c}else {e=[];for(b=0;b<d;b++){e[++i]=a[b]}for(b=d+1;f=a[b];b++){if(f._nodup!=c){f._nodup=c;e[++i]=f}}return e}}return e}function quickDiffIEXml(c,d){var f=++key,e=[],a,b;for(a=0,b=c.length;a<b;a++){c[a].setAttribute("_qdiff",f)}for(a=0,b=d.length;a<b;a++){if(d[a].getAttribute("_qdiff")!=f){e[e.length]=d[a]}}for(a=0,b=c.length;a<b;a++){c[a].removeAttribute("_qdiff")}return e}function quickDiff(c,b){var e=c.length,g=++key,d=[],a,f;if(!e){return b}if(isIE&&typeof c[0].selectSingleNode!="undefined"){return quickDiffIEXml(c,b)}for(a=0;a<e;a++){c[a]._qdiff=g}for(a=0,f=b.length;a<f;a++){if(b[a]._qdiff!=g){d[d.length]=b[a]}}return d}function quickId(b,d,c,a){if(b==c){a=unescapeCssSelector(a);var e=c.ownerDocument||c;return e.getElementById(a)}b=getNodes(b,d,"*");return byId(b,a)}return {singleton:!0,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(b,a){return Ext.fly(b,'_DomQuery').getStyle(a)},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=!1;for(j=0;j<matchersLn;j++){t=matchers[j];m=path.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(b,a){return m[a]});path=path.replace(m[0],"");matched=!0;break}}if(!matched){Ext.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(i,c,j){c=c||doc;if(typeof c=="string"){c=doc.getElementById(c)}var g=Ext.splitAndUnescape(i,","),d=[],b,f,h,a,e;for(f=0,h=g.length;f<h;f++){a=g[f].replace(trimRe,"");b=cache.get(a);if(!b){b=DQ.compile(a,j);if(!b){Ext.raise({sourceClass:'Ext.DomQuery',sourceMethod:'jsSelect',msg:a+' is not a valid selector'})}cache.add(a,b)}else {setupEscapes(a)}e=b(c);if(e&&e!==doc){d=d.concat(e)}}if(g.length>1){return nodup(d)}return d},isXml:function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1},select:doc.querySelectorAll?function(b,a,d,c){a=a||doc;if(!DQ.isXml(a)){try{if(a.parentNode&&(a.nodeType!==9)&&b.indexOf(',')===-1&&!startIdRe.test(b)){b=Ext.makeIdSelector(Ext.id(a))+' '+b;a=a.parentNode}return c?[a.querySelector(b)]:Ext.Array.toArray(a.querySelectorAll(b))}catch(e){}}return DQ.jsSelect.call(this,b,a,d)}:function(a,b,c){return DQ.jsSelect.call(this,a,b,c)},selectNode:function(a,b){return Ext.DomQuery.select(a,b,null,!0)[0]},selectValue:function(a,e,d){a=a.replace(trimRe,"");var b=valueCache.get(a),c,f;if(!b){b=DQ.compile(a,"select");valueCache.add(a,b)}else {setupEscapes(a)}c=b(e);return DQ.getNodeValue(c[0]||c,d)},getNodeValue:function(a,c){if(typeof a.normalize=='function'){a.normalize()}var d=a&&a.firstChild,b=d?d.nodeValue:null;if(c!==undefined&&(b==null||b==='')){b=c}return b},selectNumber:function(b,c,a){var d=DQ.selectValue(b,c,a||0);return parseFloat(d)},is:function(a,d){if(typeof a=="string"){a=doc.getElementById(a)}var b=Ext.isArray(a),c=DQ.filter(b?a:[a],d);return b?(c.length==a.length):(c.length>0)},filter:function(d,a,e){a=a.replace(trimRe,"");var b=simpleCache.get(a),c;if(!b){b=DQ.compile(a,"simple");simpleCache.add(a,b)}else {setupEscapes(a)}c=b(d);return e?quickDiff(c,d):c},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(f){var d=[],e=-1,a,b,c;for(b=0;(c=a=f[b]);b++){while((a=a.previousSibling)&&a.nodeType!=1){}if(!a){d[++e]=c}}return d},"last-child":function(f){var d=[],e=-1,a,b,c;for(b=0;(c=a=f[b]);b++){while((a=a.nextSibling)&&a.nodeType!=1){}if(!a){d[++e]=c}}return d},"nth-child":function(l,c){var g=[],h=-1,k=nthRe.exec(c=="even"&&"2n"||c=="odd"&&"2n+1"||!nthRe2.test(c)&&"n+"+c||c),i=(k[1]||1)-0,f=k[2]-0,e,b,j,a,d;for(e=0;b=l[e];e++){d=b.parentNode;if(batch!=d._batch){j=0;for(a=d.firstChild;a;a=a.nextSibling){if(a.nodeType==1){a.nodeIndex=++j}}d._batch=batch}if(i==1){if(f===0||b.nodeIndex==f){g[++h]=b}}else if((b.nodeIndex+f)%i===0){g[++h]=b}}return g},"only-child":function(e){var c=[],d=-1,b,a;for(b=0;a=e[b];b++){if(!prev(a)&&!next(a)){c[++d]=a}}return c},"empty":function(i){var g=[],h=-1,d,b,f,e,c,a;for(d=0;b=i[d];d++){f=b.childNodes;e=0;a=!0;while(c=f[e]){++e;if(c.nodeType==1||c.nodeType==3){a=!1;break}}if(a){g[++h]=b}}return g},"contains":function(e,f){var c=[],d=-1,b,a;for(b=0;a=e[b];b++){if((a.textContent||a.innerText||a.text||'').indexOf(f)!=-1){c[++d]=a}}return c},"nodeValue":function(e,f){var c=[],d=-1,b,a;for(b=0;a=e[b];b++){if(a.firstChild&&a.firstChild.nodeValue==f){c[++d]=a}}return c},"checked":function(e){var c=[],d=-1,b,a;for(b=0;a=e[b];b++){if(a.checked===!0){c[++d]=a}}return c},"not":function(b,a){return DQ.filter(b,a,!0)},"any":function(i,f){var h=f.split('|'),d=[],g=-1,e,b,a,c;for(b=0;a=i[b];b++){for(c=0;e=h[c];c++){if(DQ.is(a,e)){d[++g]=a;break}}}return d},"odd":function(a){return this["nth-child"](a,"odd")},"even":function(a){return this["nth-child"](a,"even")},"nth":function(b,a){return b[a-1]||[]},"first":function(a){return a[0]||[]},"last":function(a){return a[a.length-1]||[]},"has":function(f,e){var g=DQ.select,c=[],d=-1,b,a;for(b=0;a=f[b];b++){if(g(e,a).length>0){c[++d]=a}}return c},"next":function(h,g){var e=DQ.is,d=[],f=-1,b,a,c;for(b=0;a=h[b];b++){c=next(a);if(c&&e(c,g)){d[++f]=a}}return d},"prev":function(h,g){var e=DQ.is,d=[],f=-1,b,a,c;for(b=0;a=h[b];b++){c=prev(a);if(c&&e(c,g)){d[++f]=a}}return d},focusable:function(c){var e=c.length,d=[],b=0,a;for(;b<e;b++){a=c[b];if(Ext.fly(a,'_DomQuery').isFocusable()){d.push(a)}}return d},visible:function(c,e){var f=c.length,d=[],b=0,a;for(;b<f;b++){a=c[b];if(Ext.fly(a,'_DomQuery').isVisible(e)){d.push(a)}}return d},isScrolled:function(f){var d=[],e=-1,b,a,c;for(b=0;a=f[b];b++){c=Ext.fly(a,'_DomQuery').getScroll();if(c.top>0||c.left>0){d[++e]=a}}return d}}}},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(a){if(Ext.isEmpty(a)){return Ext.emptyFn}if(Ext.isFunction(a)){return a}return function(b){return this.getNodeValue(Ext.DomQuery.selectNode(a,b))}},getNodeValue:function(a){if(a){if(typeof a.normalize==='function'){a.normalize()}a=a.firstChild;if(a){return a.nodeValue}}return undefined},getResponseData:function(c){var b=c.responseXML,a='XML data not found in the response';if(!b){Ext.Logger.warn(a);return this.createReadError(a)}return b},getData:function(a){return a.documentElement||a},getRoot:function(a){return this.getRootValue(a,this.getRootProperty())},extractData:function(a,c){var b=this.getRecord();if(b!==a.nodeName){a=Ext.DomQuery.select(b,a)}else {a=[a]}return Ext.data.reader.Reader.prototype.extractData.call(this,a,c)},readRecords:function(a,c,b){if(Ext.isArray(a)){a=a[0]}return Ext.data.reader.Reader.prototype.readRecords.call(this,a,c,b)},createFieldAccessor:function(c){var d=this.getNamespace(),a,e,b;if(c.mapping){a=c.mapping}else {a=(d?d+'|':'')+c.name;e=!0}if(typeof a==='function'){b=function(b,a){return c.mapping(b,a)}}else {if(e&&!d&&Ext.supports.XmlQuerySelector){b=function(d,b){return b.getNodeValue(d.querySelector(a))}}if(!b){b=function(d,b){return b.getNodeValue(Ext.DomQuery.selectNode(a,d))}}}return b},privates:{getGroupRoot:function(a){return this.getRootValue(a,this.getGroupRootProperty())},getRootValue:function(a,b){var c=a.nodeName;if(!b||(c&&c==b)){return a}else if(typeof b==='function'){return b(a)}else if(Ext.DomQuery.isXml(a)){return Ext.DomQuery.selectNode(b,a)}},getSummaryRoot:function(a){return this.getRootValue(a,this.getSummaryRootProperty())}},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(i,d){var f=this,b=[],a=0,l=d.length,c=f.getDocumentRoot(),g=f.getRecord(),e=g.match(this.selectorRe),j=e.length,k=d.length!==1&&j===1,h;h=this.getTransform();if(h){d=h(d,i)}b.push(f.getHeader()||'');if(!c&&k){c=f.getDefaultDocumentRoot()}if(c){b.push('<',c,'>')}for(a=0;a<j-1;a++){b.push('<',e[a],'>')}g=e[a];for(a=0;a<l;++a){this.objectToElement(g,d[a],b)}for(a=j-2;a>-1;a--){b.push('</',e[a],'>')}if(c){b.push('</',c,'>')}i.setXmlData(b.join(''));return i},objectToElement:function(l,m,b){var a,c,h=[],i,k,g,e,d,j,f;if(!b){b=[]}b.push('<',l);for(a in m){c=m[a];if(a[0]==='@'){b.push(' ',a.substr(1),'="',c,'"')}else {if(typeof c==='object'){this.objectToElement(a,c,h)}else {i=a.match(this.selectorRe);if((k=i.length)>1){d=d||{};for(e=d,g=0;g<k;g++){j=e;f=i[g];e=e[f]||(e[f]={})}j[f]=c}else {h.push('<',a,'>',c,'</',a,'>')}}}}b.push('>');b.push.apply(b,h);if(d){for(a in d){c=d[a];this.objectToElement(a,c,b)}}b.push('</',l,'>');return b}},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:!0,config:{id:null},constructor:function(a){Ext.data.identifier.Generator.prototype.constructor.call(this,a);this.reconfigure(a)},reconfigure:function(a){var b=this.self;this.generate=(a&&a.version===1)?b.createSequential(a.salt,a.timestamp,a.clockSeq):b.createRandom()},clone:null,statics:{createRandom:function(){var a='xxxxxxxx-xxxx-4xxx-Rxxx-xMxxxxxxxxxx'.split(''),d='0123456789abcdef'.split(''),c=a.length,b=[];return function(){for(var f,e,g=0;g<c;++g){e=a[g];if(e!=='-'&&e!=='4'){f=Math.random()*16;f=(e==='R')?(f&3|8):(f|((e==='M')?1:0));e=d[f]}b[g]=e}return b.join('')}},createSequential:function(f,g,i){var b=[],c=Math.pow(2,32),j=f.lo,h=f.hi,e=g.lo,d=g.hi,a=function(c,b){var a=c.toString(16).toLowerCase();if(a.length>b){a=a.substring(a.length-b)}else if(a.length<b){a=Ext.String.leftPad(a,b,'0')}return a};if(typeof f==='number'){h=Math.floor(f/c);j=Math.floor(f-h*c)}if(typeof g==='number'){d=Math.floor(g/c);e=Math.floor(g-d*c)}h|=256;b[3]=a(128|((i>>>8)&63),2)+a(i&255,2);b[4]=a(h,4)+a(j,8);return function(){b[0]=a(e,8);b[1]=a(d&65535,4);b[2]=a(((d>>>16)&4095)|(1<<12),4);++e;if(e>=c){e=0;++d}return b.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(g){var a=this,f=g.getRecords(),i=f.length,h=a.getIds(),c,b,d,e;if(a.isHierarchical===undefined){a.isHierarchical=!!f[0].isNode;if(a.isHierarchical){a.getStorageObject().setItem(a.getTreeKey(),!0)}}for(d=0;d<i;d++){b=f[d];if(b.phantom){e=b.identifier;if(e&&e.isUnique){c=b.getId()}else {c=a.getNextId()}}else {c=b.getId()}a.setRecord(b,c);b.commit();h.push(c)}a.setIds(h);g.setSuccessful(!0)},read:function(a){var e=this,h,f=[],t=!0,j=e.getModel(),r=0,g=a.getRecordCreator(),i,l,n,s,o,b,p,m,d,q,c,k;if(e.isHierarchical){f=e.getTreeData()}else {p=e.getIds();m=p.length;q=a.getId();if(q){d=e.getRecord(q);if(d!==null){b=g?g(d,j):new j(d)}if(b){f.push(b)}else {t=!1}}else {l=a.getSorters();i=a.getFilters();n=a.getLimit();h=[];for(c=0;c<m;c++){d=e.getRecord(p[c]);b=g?g(d,j):new j(d);h.push(b)}if(l){Ext.Array.sort(h,Ext.util.Sorter.createComparator(l))}for(c=a.getStart()||0;c<m;c++){b=h[c];o=!0;if(i){for(k=0,s=i.length;k<s;k++){o=i[k].filter(b)}}if(o){f.push(b);r++}if(n&&r===n){break}}}}if(t){a.setResultSet(new Ext.data.ResultSet({records:f,total:f.length,loaded:!0}));a.setSuccessful(!0)}else {a.setException('Unable to load records')}},update:function(e){var f=e.getRecords(),g=f.length,d=this.getIds(),a,b,c;for(c=0;c<g;c++){a=f[c];this.setRecord(a);a.commit();b=a.getId();if(b!==undefined&&Ext.Array.indexOf(d,b)===-1){d.push(b)}}this.setIds(d);e.setSuccessful(!0)},erase:function(e){var c=this,f=e.getRecords(),h=c.getIds(),i=h.length,g=[],d={},a=f.length,b;for(;a--;){Ext.apply(d,c.removeRecord(f[a]))}for(a=0;a<i;a++){b=h[a];if(!d[b]){g.push(b)}}c.setIds(g);e.setSuccessful(!0)},getRecord:function(a){var c=this,d=c.cache,b=!d[a]?Ext.decode(c.getStorageObject().getItem(c.getRecordKey(a))):d[a];if(!b){return null}d[a]=b;b[c.getModel().prototype.idProperty]=a;return Ext.merge({},b)},setRecord:function(c,e){if(e){c.set('id',e,{commit:!0})}else {e=c.getId()}var f=this,m=c.getData(),d={},l=f.getModel(),k=l.getFields(),n=k.length,j=0,a,g,i,h,b;for(;j<n;j++){a=k[j];g=a.name;if(a.persist){b=m[g];if(a.isDateField&&a.dateFormat&&Ext.isDate(b)){b=Ext.Date.format(b,a.dateFormat)}else if(a.serialize){b=a.serialize(b,c)}d[g]=b}}delete d[l.prototype.idProperty];if(c.isNode&&c.get('depth')===1){delete d.parentId}i=f.getStorageObject();h=f.getRecordKey(e);f.cache[e]=d;i.removeItem(h);i.setItem(h,Ext.encode(d))},removeRecord:function(a){var b=this,e=a.getId(),d={},f,c;d[e]=a;b.getStorageObject().removeItem(b.getRecordKey(e));delete b.cache[e];if(a.childNodes){c=a.childNodes;for(f=c.length;f--;){Ext.apply(d,b.removeRecord(c[f]))}}return d},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 d=this,a=(d.getStorageObject().getItem(d.getId())||"").split(","),c=a.length,e=this.getIdField().isStringField,b;if(c===1&&a[0]===""){a=[]}else {for(b=0;b<c;b++){a[b]=e?a[b]:+a[b]}}return a},getIdField:function(){return this.getModel().prototype.idField},setIds:function(d){var a=this.getStorageObject(),b=d.join(","),c=this.getId();a.removeItem(c);if(!Ext.isEmpty(b)){a.setItem(c,b)}},getNextId:function(){var b=this,e=b.getStorageObject(),d=b.getRecordCounterKey(),c=b.getIdField().isStringField,a;a=b.idGenerator.generate();e.setItem(d,a);if(c){a=a+''}return a},getTreeData:function(){var f=this,n=f.getIds(),i=n.length,d=[],k={},c=[],b=0,m=f.getModel(),o=m.prototype.idProperty,g,a,e,h,l,j;for(;b<i;b++){j=n[b];a=f.getRecord(j);d.push(a);k[j]=a;if(!a.parentId){c.push(a)}}g=c.length;Ext.Array.sort(d,f.sortByParentId);for(b=g;b<i;b++){a=d[b];h=a.parentId;if(!e||e[o]!==h){e=k[h];e.children=l=[]}l.push(a)}for(b=i;b--;){a=d[b];if(!a.children&&!a.leaf){a.loaded=!0}}for(b=g;b--;){a=c[b];c[b]=new m(a)}return c},sortByParentId:function(a,b){return (a.parentId||0)-(b.parentId||0)},initialize:function(){var a=this,b=a.getStorageObject(),c=+b.getItem(a.getRecordCounterKey()),d=a.getId();b.setItem(d,b.getItem(d)||"");if(b.getItem(a.getTreeKey())){a.isHierarchical=!0}a.idGenerator=new Ext.data.identifier.Sequential({seed:c?c+1:1})},clear:function(){var a=this,b=a.getStorageObject(),d=a.getIds(),e=d.length,c;for(c=0;c<e;c++){b.removeItem(a.getRecordKey(d[c]))}b.removeItem(a.getRecordCounterKey());b.removeItem(a.getTreeKey());b.removeItem(a.getId());a.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:!0,format:null,batchActions:!1,actionMethods:{create:'POST',read:'GET',update:'PUT',destroy:'DELETE'}},buildUrl:function(c){var b=this,g=c.getOperation(),h=g.getRecords(),f=h?h[0]:null,i=b.getFormat(),a=b.getUrl(c),d,e;if(f&&!f.phantom){d=f.getId()}else {d=g.getId()}if(b.getAppendId()&&b.isValidId(d)){if(!a.match(b.slashRe)){a+='/'}a+=encodeURIComponent(d);e=c.getParams();if(e){delete e[b.getIdParam()]}}if(i){if(!a.match(b.periodRe)){a+='.'}a+=i}c.setUrl(a);return Ext.data.proxy.Ajax.prototype.buildUrl.call(this,c)},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.summary.Base',Ext.Base,{isAggregator:!0,factoryConfig:{defaultType:'base',cacheable:!0},constructor:function(a){var b=a&&a.calculate;if(b){a=Ext.apply({},a);delete a.calculate;this.calculate=b}this.initConfig(a)},extractValue:function(a,d,b){var c;if(a){if(b){a=a[b]}c=a[d]}return c}},1,0,0,0,["data.summary.base"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.summary,'Base'],function(){Ext.Factory.on('dataSummary',function(b,a){if(typeof a==='function'){return b({calculate:a})}})}));(Ext.cmd.derive('Ext.data.summary.Sum',Ext.data.summary.Base,{calculate:function(f,e,g,d,h){var i=h-d,a,b,c;for(a=0;a<i;++a){c=this.extractValue(f[d+a],e,g);b=a?b+c:c}return b}},0,0,0,0,["data.summary.sum"],0,[Ext.data.summary,'Sum'],0));(Ext.cmd.derive('Ext.data.summary.Average',Ext.data.summary.Sum,{calculate:function(f,e,g,a,c){var d=c-a,b;if(d>0){b=Ext.data.summary.Sum.prototype.calculate.call(this,f,e,g,a,c)/d}return b}},0,0,0,0,["data.summary.average"],0,[Ext.data.summary,'Average'],0));(Ext.cmd.derive('Ext.data.summary.Count',Ext.data.summary.Base,{calculate:function(d,c,e,a,b){return b-a}},0,0,0,0,["data.summary.count"],0,[Ext.data.summary,'Count'],0));(Ext.cmd.derive('Ext.data.summary.Max',Ext.data.summary.Base,{calculate:function(e,d,g,f,h){var b=this.extractValue(e[f],d,g),a,c;for(a=f;a<h;++a){c=this.extractValue(e[a],d,g);if(c>b){b=c}}return b}},0,0,0,0,["data.summary.max"],0,[Ext.data.summary,'Max'],0));(Ext.cmd.derive('Ext.data.summary.Min',Ext.data.summary.Base,{calculate:function(e,d,g,f,h){var b=this.extractValue(e[f],d,g),a,c;for(a=f;a<h;++a){c=this.extractValue(e[a],d,g);if(c<b){b=c}}return b}},0,0,0,0,["data.summary.min"],0,[Ext.data.summary,'Min'],0));(Ext.cmd.derive('Ext.data.validator.AbstractDate',Ext.data.validator.Validator,{config:{message:null,format:''},applyFormat:function(a){if(!a){a=this.getDefaultFormat()}if(!Ext.isArray(a)){a=[a]}return a},parse:function(b){if(Ext.isDate(b)){return b}var f=this,d=f.getFormat(),e=d.length,c=null,a;for(a=0;a<e&&!c;++a){c=Ext.Date.parse(b,d[a],!0)}return c},validate:function(a){return this.parse(a)?!0:this.getMessage()}},0,0,0,0,0,0,[Ext.data.validator,'AbstractDate'],0));(Ext.cmd.derive('Ext.data.validator.Bound',Ext.data.validator.Validator,{type:'bound',config:{min:undefined,max:undefined,emptyMessage:'Must be present',minOnlyMessage:'Value must be greater than {0}',maxOnlyMessage:'Value must be less than {0}',bothMessage:'Value must be between {0} and {1}'},resetMessages:function(){this._bothMsg=this._minMsg=this._maxMsg=null},updateMin:function(){this.resetMessages()},updateMax:function(){this.resetMessages()},updateMinOnlyMessage:function(){this.resetMessages()},updateMaxOnlyMessage:function(){this.resetMessages()},updateBothMessage:function(){this.resetMessages()},validate:function(b){var a=this,e=a.getMin(),d=a.getMax(),g=(e!=null),f=(d!=null),c=this.validateValue(b);if(c!==!0){return c}b=a.getValue(b);if(g&&f){if(b<e||b>d){c=a._bothMsg||(a._bothMsg=Ext.String.format(a.getBothMessage(),e,d))}}else if(g){if(b<e){c=a._minMsg||(a._minMsg=Ext.String.format(a.getMinOnlyMessage(),e))}}else if(f){if(b>d){c=a._maxMsg||(a._maxMsg=Ext.String.format(a.getMaxOnlyMessage(),d))}}return c},validateValue:function(a){if(a===undefined||a===null){return this.getEmptyMessage()}return !0},getValue:Ext.identityFn},0,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(c){var a=this.getMatcher(),b=a&&a.test(c);return b?b:this.getMessage()}},0,0,0,0,["data.validator.format"],0,[Ext.data.validator,'Format'],0));(Ext.cmd.derive('Ext.data.validator.CIDRv4',Ext.data.validator.Format,{type:'cidrv4',message:'Is not a valid CIDR block',matcher:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$/},0,0,0,0,["data.validator.cidrv4"],0,[Ext.data.validator,'CIDRv4'],0));(Ext.cmd.derive('Ext.data.validator.CIDRv6',Ext.data.validator.Format,{type:'cidrv6',message:'Is not a valid CIDR block',matcher:/^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*(\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8]))?$/},0,0,0,0,["data.validator.cidrv6"],0,[Ext.data.validator,'CIDRv6'],0));(Ext.cmd.derive('Ext.data.validator.Number',Ext.data.validator.Validator,{type:'number',config:{decimalSeparator:undefined,message:'Is not a valid number',thousandSeparator:undefined},constructor:function(a){Ext.data.validator.Validator.prototype.constructor.call(this,a);this.rebuildMatcher()},applyDecimalSeparator:function(a){return a===undefined?Ext.util.Format.decimalSeparator:a},updateDecimalSeparator:function(){this.rebuildMatcher()},applyThousandSeparator:function(a){return a===undefined?Ext.util.Format.thousandSeparator:a},updateThousandSeparator:function(){this.rebuildMatcher()},parse:function(a){var c=this.getDecimalSeparator(),b=Ext.Number;if(typeof a==='string'){if(!this.matcher.test(a)){return null}a=this.parseValue(a)}return c?b.parseFloat(a):b.parseInt(a)},validate:function(a){return this.parse(a)===null?this.getMessage():!0},privates:{getMatcherText:function(d){var c=this.getThousandSeparator(),b=this.getDecimalSeparator(),a='(?:';if(c){c=Ext.String.escapeRegex(c);a+='(?:\\d{1,3}('+c+'\\d{3})*)|'}a+='\\d*)';if(b){b=Ext.String.escapeRegex(b);a+='(?:'+b+'\\d*)?'}if(!d){a=this.getSignPart()+a}return a},getSignPart:function(){return '(\\+|\\-)?'},parseValue:function(a){var c=this.thousandMatcher,b;if(c){a=a.replace(c,'')}b=this.getDecimalSeparator();if(b&&b!=='.'){a=a.replace(b,'.')}return a},rebuildMatcher:function(){var a=this,b;if(!a.isConfiguring){b=a.getThousandSeparator();a.matcher=new RegExp('^'+a.getMatcherText()+'$');if(b){a.thousandMatcher=b?new RegExp(Ext.String.escapeRegex(b),'g'):null}}}}},1,0,0,0,["data.validator.number"],0,[Ext.data.validator,'Number'],0));(Ext.cmd.derive('Ext.data.validator.Currency',Ext.data.validator.Number,{type:'currency',config:{symbolAtEnd:undefined,spacer:undefined,symbol:undefined},message:'Is not a valid currency amount',applySymbolAtEnd:function(a){return a===undefined?Ext.util.Format.currencyAtEnd:a},updateSymbolAtEnd:function(){this.rebuildMatcher()},applySpacer:function(a){return a===undefined?Ext.util.Format.currencySpacer:a},updateSpacer:function(){this.rebuildMatcher()},applySymbol:function(a){return a===undefined?Ext.util.Format.currencySign:a},updateSymbol:function(){this.rebuildMatcher()},privates:{getMatcherText:function(){var b=this,a=Ext.data.validator.Number.prototype.getMatcherText.call(this,!0),c=b.getSymbolMatcher();if(b.getSymbolAtEnd()){a+=c}else {a=c+a}return b.getSignPart()+a},getSymbolMatcher:function(){var b=Ext.String.escapeRegex(this.getSymbol()),a=Ext.String.escapeRegex(this.getSpacer()||''),c=this.getSymbolAtEnd()?(a+b):(b+a);return '(?:'+c+')?'},parseValue:function(a){a=a.replace(this.currencyMatcher,this.atEnd?'':'$1');return Ext.data.validator.Number.prototype.parseValue.call(this,a)},rebuildMatcher:function(){var a=this,b,c,d;Ext.data.validator.Number.prototype.rebuildMatcher.call(this);if(!a.isConfiguring){c=a.getSymbolAtEnd();b=a.getSymbolMatcher();d=a.getSignPart();a.atEnd=c;a.currencyMatcher=new RegExp(c?(b+'$'):('^'+d+b))}}}},0,0,0,0,["data.validator.currency"],0,[Ext.data.validator,'Currency'],0));(Ext.cmd.derive('Ext.data.validator.CurrencyUS',Ext.data.validator.Currency,{type:'currency-us',thousandSeparator:',',decimalSeparator:'.',symbol:'$',spacer:'',symbolAtEnd:!1},0,0,0,0,["data.validator.currency-us"],0,[Ext.data.validator,'CurrencyUS'],0));(Ext.cmd.derive('Ext.data.validator.Date',Ext.data.validator.AbstractDate,{type:'date',isDateValidator:!0,message:'Is not a valid date',privates:{getDefaultFormat:function(){return [Ext.Date.defaultFormat,'m/d/Y','n/j/Y','n/j/y','m/j/y','n/d/y','m/j/Y','n/d/Y','m-d-y','n-d-y','m-d-Y','mdy','mdY','Y-m-d']}}},0,0,0,0,["data.validator.date"],0,[Ext.data.validator,'Date'],0));(Ext.cmd.derive('Ext.data.validator.DateTime',Ext.data.validator.AbstractDate,{type:'datetime',isDateTimeValidator:!0,message:'Is not a valid date and time',privates:{getDefaultFormat:function(){var a=Ext.Date;return a.defaultFormat+' '+a.defaultTimeFormat}}},0,0,0,0,["data.validator.datetime"],0,[Ext.data.validator,'DateTime'],0));(Ext.cmd.derive('Ext.data.validator.Email',Ext.data.validator.Format,{type:'email',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,message:null},inclusion:null,validate:function(e){var b=Ext.Array.contains(this.getList(),e),a=this.inclusion,d=!a,c;c=(a&&b)||(d&&!b);return c||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',message:'Is a value that has been excluded',inclusion:!1},0,0,0,0,["data.validator.exclusion"],0,[Ext.data.validator,'Exclusion'],0));(Ext.cmd.derive('Ext.data.validator.IPAddress',Ext.data.validator.Format,{type:'ipaddress',message:'Is not a valid IP address',matcher:new RegExp('^(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|((([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))))$')},0,0,0,0,["data.validator.ipaddress"],0,[Ext.data.validator,'IPAddress'],0));(Ext.cmd.derive('Ext.data.validator.Inclusion',Ext.data.validator.List,{type:'inclusion',message:'Is not in the list of acceptable values',inclusion:!0},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',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',isPresence:!0,config:{message:'Must be present',allowEmpty:!1},validate:function(b){var a=!(b===undefined||b===null);if(a&&!this.getAllowEmpty()){a=b!==''}return a?!0:this.getMessage()}},0,0,0,0,["data.validator.presence"],0,[Ext.data.validator,'Presence'],0));(Ext.cmd.derive('Ext.data.validator.NotNull',Ext.data.validator.Presence,{type:'notnull',allowEmpty:!0},0,0,0,0,["data.validator.notnull"],0,[Ext.data.validator,'NotNull'],0));(Ext.cmd.derive('Ext.data.validator.Phone',Ext.data.validator.Format,{type:'phone',message:'Is not a valid phone number',matcher:new RegExp('^ *(?:\\+?(\\d{1,3})[- .]?)?(?:(?:(\\d{3})|\\((\\d{3})\\))?[- .]?)(?:([2-9]\\d{2})[- .]?)(\\d{4})(?: *(?:e?xt?) *(\\d*))? *$')},0,0,0,0,["data.validator.phone"],0,[Ext.data.validator,'Phone'],0));(Ext.cmd.derive('Ext.data.validator.Range',Ext.data.validator.Bound,{type:'range',minOnlyMessage:'Must be at least {0}',maxOnlyMessage:'Must be no more than than {0}',bothMessage:'Must be between {0} and {1}',config:{nanMessage:'Must be numeric'},validateValue:function(b){var a=Ext.data.validator.Bound.prototype.validateValue.call(this,b);if(a===!0&&isNaN(b)){a=this.getNanMessage()}return a}},0,0,0,0,["data.validator.range"],0,[Ext.data.validator,'Range'],0));(Ext.cmd.derive('Ext.data.validator.Time',Ext.data.validator.AbstractDate,{type:'time',isTimeValidator:!0,message:'Is not a valid time',privates:{getDefaultFormat:function(){return Ext.Date.defaultTimeFormat}}},0,0,0,0,["data.validator.time"],0,[Ext.data.validator,'Time'],0));(Ext.cmd.derive('Ext.data.validator.Url',Ext.data.validator.Format,{type:'url',message:'Is not a valid URL',matcher:/^(http:\/\/|https:\/\/|ftp:\/\/|\/\/)([-a-zA-Z0-9@:%_\+.~#?&//=])+$/},0,0,0,0,["data.validator.url"],0,[Ext.data.validator,'Url'],0));(Ext.cmd.derive('Ext.data.virtual.Group',Ext.Base,{isVirtualGroup:!0,firstRecords:null,id:'',summaryRecord:null,constructor:function(a){this.id=a;this.firstRecords=[]},first:function(){return this.firstRecords[0]||null},getGroupKey:function(){return this.id},getSummaryRecord:function(){return this.summaryRecord}},1,0,0,0,0,0,[Ext.data.virtual,'Group'],0));(Ext.cmd.derive('Ext.data.virtual.Page',Ext.Base,{isVirtualPage:!0,begin:0,end:0,error:null,locked:null,number:0,operation:null,pageMap:null,records:null,state:null,constructor:function(c){var a=this,b;Ext.apply(a,c);b=a.pageMap.store.getPageSize();a.begin=a.number*b;a.end=a.begin+b;a.locks={active:0,prefetch:0}},destroy:function(){var a=this,b=a.operation;a.state='destroyed';if(b){b.abort()}a.callParent()},adjustLock:function(g,f){var b=this,c=b.locks,e=b.pageMap,a=null,d=b.locked;c[g]+=f;if(c.active){a='active'}else if(c.prefetch){a='prefetch'}if(a!==d){b.locked=a;if(e){e.onPageLockChange(b,a,d)}}},clearRecords:function(d,e){var f=this,g=f.begin,b=f.records,a,c;if(b){c=b.length;if(e){for(a=0;a<c;++a){delete d[b[a][e]]}}else {for(a=0;a<c;++a){delete d[g+a]}}}},fillRecords:function(f,g,i){var h=this,b=h.records,e=h.begin,a,d,c;if(b){d=b.length;if(g){for(a=0;a<d;++a){c=b[a];f[c[g]]=i?e+a:c}}else {for(a=0;a<d;++a){f[e+a]=b[a]}}}},isInitial:function(){return this.state===null},isLoaded:function(){return this.state==='loaded'},isLoading:function(){return this.state==='loading'},load:function(){var a=this,b;a.state='loading';b=a.pageMap.store.loadVirtualPage(a,a.onLoad,a);if(a.state==='loading'){a.operation=b}},privates:{onLoad:function(b){var a=this;a.operation=null;if(!a.destroyed){if(!(a.error=b.getError())){a.records=b.getRecords();a.state='loaded'}else {a.state='error'}a.pageMap.onPageLoad(a)}}}},1,0,0,0,0,0,[Ext.data.virtual,'Page'],0));(Ext.cmd.derive('Ext.data.virtual.PageMap',Ext.Base,{isVirtualPageMap:!0,config:{cacheSize:10,concurrentLoading:1,pageCount:null},generation:0,store:null,constructor:function(b){var a=this;a.prefetchSortFn=a.prefetchSortFn.bind(a);a.initConfig(b);a.clear()},destroy:function(){this.clear(!0);this.callParent()},canSatisfy:function(b){var c=this.getPageIndex(b.end),a=this.getPageCount();return a===null||c<a},clear:function(e){var a=this,b=!e||null,c=a.pages,d;++a.generation;a.byId=b&&{};a.byInternalId=b&&{};a.cache=b&&[];a.indexMap=b&&{};a.pages=b&&{};a.loading=b&&[];a.loadQueues=b&&{active:[],prefetch:[]};if(c){for(d in c){a.destroyPage(c[d])}}},getPage:function(a,f){var c=this,d=c.getPageCount(),e=c.pages,b;if(d===null||a<d){b=e[a];if(!b&&f!==!1){e[a]=b=new Ext.data.virtual.Page({pageMap:c,number:a})}}return b||null},getPageIndex:function(a){if(a.isEntity){a=this.indexOf(a)}return Math.floor(a/this.store.getPageSize())},getPageOf:function(c,a){var b=this.store.getPageSize(),d=Math.floor(c/b);return this.getPage(d,a)},getPages:function(d,g){var b=this.store.getPageSize(),e=Math.floor(d/b),f=Math.ceil(g/b),c={},a;for(a=e;a<f;++a){c[a]=this.getPage(a)}return c},flushNextLoad:function(){var b=this,a=b.queueTimer;if(a){Ext.unasap(a)}b.loadNext()},indexOf:function(b){var a=this.indexMap[b.internalId];return (a||a===0)?a:-1},getByInternalId:function(c){var a=this.indexMap[c],b;if(a||a===0){b=this.pages[Math.floor(a/this.store.getPageSize())];if(b){return b.records[a-b.begin]}}},updatePageCount:function(d,b){var e=this.pages,c,a;if(b===null||d<b){for(c in e){a=e[c];if(a.number>=d){this.clearPage(a);this.destroyPage(a)}}}},privates:{queueTimer:null,clearPage:function(a,e){var b=this,d=Ext.Array,c=b.loadQueues;delete b.pages[a.number];a.clearRecords(b.byId,'id');a.clearRecords(b.byInternalId,'internalId');a.clearRecords(b.indexMap,'internalId');d.remove(c.active,a);d.remove(c.prefetch,a);if(!e){Ext.Array.remove(b.cache,a)}},destroyPage:function(a){this.store.onPageDestroy(a);a.destroy()},loadNext:function(){var a=this,e=a.getConcurrentLoading(),d=a.loading,c=a.loadQueues,b;a.queueTimer=null;while(d.length<e){if(!(b=c.active.shift()||c.prefetch.shift())){break}d.push(b);b.load()}},onPageLoad:function(a){var b=this,e=b.store,d=e.activeRanges,f=d.length,c;Ext.Array.remove(b.loading,a);if(!a.error){a.fillRecords(b.byId,'id');a.fillRecords(b.byInternalId,'internalId');a.fillRecords(b.indexMap,'internalId',!0);e.onPageDataAcquired(a);for(c=0;c<f;++c){d[c].onPageLoad(a)}}b.flushNextLoad()},onPageLockChange:function(b,e,d){var a=this,c=a.cache,g=a.loadQueues,i=a.store,h,f;if(b.isInitial()){if(d){Ext.Array.remove(g[d],b)}if(e){g[e].push(b);f=a.getConcurrentLoading();if(!a.queueTimer&&a.loading.length<f){a.queueTimer=Ext.asap(a.loadNext,a)}}}if(e){if(!d){Ext.Array.remove(c,b)}}else {c.push(b);for(h=a.getCacheSize();c.length>h;){b=c.shift();a.clearPage(b,!0);i.onPageEvicted(b);a.destroyPage(b)}}},prefetchSortFn:function(a,b){a=a.number;b=b.number;var d=Math,c=this.sortFirstPage,g=this.sortLastPage,f=this.sortDirection,h=a<c,i=b<c,e;a=h?d.abs(c-a):d.abs(g-a);b=i?d.abs(c-b):d.abs(g-b);if(a===b){e=h?f:-f}else {e=a-b}return e},prioritizePrefetch:function(b,c,d){var a=this;a.sortDirection=b;a.sortFirstPage=c;a.sortLastPage=d;a.loadQueues.prefetch.sort(a.prefetchSortFn)}}},1,0,0,0,0,0,[Ext.data.virtual,'PageMap'],0));(Ext.cmd.derive('Ext.data.virtual.Range',Ext.data.Range,{isVirtualRange:!0,callback:null,prefetch:!1,scope:null,direction:1,constructor:function(a){this.adjustingPages=[];Ext.data.Range.prototype.constructor.call(this,a)},reset:function(){var a=this;a.records={};a.activePages=a.prefetchPages=null},privates:{adjustPageLocks:function(f,e){var b=this,a=b.adjustingPages,d=a.length,c;if(d>1){a.sort(b.direction<0?b.pageSortBackFn:b.pageSortFwdFn)}for(c=0;c<d;++c){a[c].adjustLock(f,e)}a.length=0},doGoto:function(){var a=this,c=a.begin,g=a.end,v=a.prefetch,s=a.records,u=a.store,j=u.pageMap,p=u.totalCount,l=a.lastBegin,t=a.lastEnd,f=a.activePages,e=a.prefetchPages,m=a.trailingBufferZone,n=a.leadingBufferZone,h=a.adjustingPages,o,k,b,i,q,r,d;h.length=0;if((c>l&&g<t)||(c<l&&g>t)){i=a.direction}else {i=(c<l)?-1:((c>l)?1:a.direction)}if(i<0){b=m;m=n;n=b}a.direction=i;a.activePages=o=j.getPages(c,g);if(v){a.prefetchBegin=q=Math.max(0,c-m);if(p===null){p=Number.MAX_VALUE}a.prefetchEnd=r=Math.min(p,g+n);a.prefetchPages=d=j.getPages(q,r)}for(b in o){k=o[b];if(d){delete d[b]}if(f&&b in f){delete f[b]}else {k.adjustLock('active',1);k.fillRecords(s)}}if(d){for(b in d){if(e&&b in e){delete e[b]}else {d[b].adjustLock('prefetch',1)}}}if(e){for(b in e){h.push(e[b])}if(h.length){a.adjustPageLocks('prefetch',-1)}}if(f){for(b in f){h.push(k=f[b]);k.clearRecords(s)}if(h.length){a.adjustPageLocks('active',-1)}}if(d){j.prioritizePrefetch(i,j.getPageIndex(c),j.getPageIndex(g-1))}a.lastBegin=c;a.lastEnd=g},onPageDestroy:function(d){var c=d.number,b=this.activePages,a=this.prefetchPages;if(b){delete b[c]}if(a){delete a[c]}},onPageLoad:function(b){var a=this,c=a.callback,d,e;if(a.activePages[b.number]){b.fillRecords(a.records);if(c){d=Math.max(a.begin,b.begin);e=Math.min(a.end,b.end);Ext.callback(c,a.scope,[a,d,e])}}},pageSortBackFn:function(a,b){return b.number-a.number},pageSortFwdFn:function(a,b){return a.number-b.number},refresh:function(){this.records=this.records||{}},reload:function(){var a=this,b=a.begin,c=a.end;a.begin=a.end=0;a.direction=1;a.prefetchPages=a.activePages=null;a['goto'](b,c)}}},1,0,0,0,0,0,[Ext.data.virtual,'Range'],0));(Ext.cmd.derive('Ext.data.virtual.Store',Ext.data.ProxyStore,{isVirtualStore:!0,config:{data:null,totalCount:null,leadingBufferZone:200,trailingBufferZone:50},remoteSort:!0,remoteFilter:!0,sortOnLoad:!1,trackRemoved:!1,constructor:function(b){var a=this;a.sortByPage=a.sortByPage.bind(a);a.activeRanges=[];a.pageMap=new Ext.data.virtual.PageMap({store:a});Ext.data.ProxyStore.prototype.constructor.call(this,b)},doDestroy:function(){this.pageMap.destroy();Ext.data.ProxyStore.prototype.doDestroy.call(this)},applyGrouper:function(a){this.group(a);return this.grouper},contains:function(a){return this.indexOf(a)>-1},createActiveRange:function(a){var b=Ext.apply({leadingBufferZone:this.getLeadingBufferZone(),trailingBufferZone:this.getTrailingBufferZone(),store:this},a);return new Ext.data.virtual.Range(b)},getAt:function(b){var a=this.pageMap.getPageOf(b,!1),c;if(a&&a.records){c=a.records[b-a.begin]}return c||null},getById:function(a){return this.pageMap.byId[a]||null},getCount:function(){return this.totalCount||0},getGrouper:function(){return this.grouper},getGroups:function(){var b=this,a=b.groupCollection;if(!a){b.groupCollection=a=new Ext.util.Collection()}return a},getSummaryRecord:function(){return this.summaryRecord||null},isGrouped:function(){return !!this.grouper},group:function(a,c){var b=this;a=a||null;if(a){if(typeof a==='string'){a={property:a,direction:c||'ASC'}}if(!a.isGrouper){a=new Ext.util.Grouper(a)}a.setRoot('data');b.getGroups().getSorters().splice(0,1,{property:'id',direction:a.getDirection()})}b.grouper=a;if(!b.isConfiguring){b.reload();b.fireEvent('groupchange',b,a)}},getByInternalId:function(a){return this.pageMap.getByInternalId(a)},indexOf:function(a){return this.pageMap.indexOf(a)},indexOfId:function(b){var a=this.getById(b);return a?this.indexOf(a):-1},load:function(a){if(typeof a==='function'){a={callback:a}}var b=this,e=(a&&a.page)||1,d=b.getPageSize(),c=b.createOperation('read',Ext.apply({start:(e-1)*d,limit:d,page:e,filters:b.getFilters().items,sorters:b.getSorters().items,grouper:b.getGrouper()},a));c.execute();return c},reload:function(a){if(typeof a==='function'){a={callback:a}}var b=this;if(b.fireEvent('beforereload')===!1){return null}a=Ext.apply({internalScope:b,internalCallback:b.handleReload,page:1},a);b.pageMap.clear();b.getGroups().clear();return b.load(a)},removeAll:function(){var b=this.activeRanges,a;this.pageMap.clear();for(a=b.length;a-->0;){b[a].reset()}},applyProxy:function(a){a=Ext.data.ProxyStore.prototype.applyProxy.call(this,a);if(a&&a.setEnablePaging){a.setEnablePaging(!0)}return a},createFiltersCollection:function(){return new Ext.util.FilterCollection()},createSortersCollection:function(){return new Ext.util.SorterCollection()},onFilterEndUpdate:function(){var a=this,b=a.getFilters(!1);if(!a.isConfiguring){a.reload();a.fireEvent('filterchange',a,b.getRange())}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange(),c=!a.isConfiguring;if(c){a.fireEvent('beforesort',a,b)}if(c){a.reload();a.fireEvent('sort',a,b)}},updatePageSize:function(b){var a=this.totalCount;if(a!==null){this.pageMap.setPageCount(Math.ceil(a/b))}},updateTotalCount:function(b,c){var a=this,d=a.pageMap;a.totalCount=b;d.setPageCount(Math.ceil(b/a.getPageSize()));a.fireEvent('totalcountchange',a,b,c)},privates:{attachSummaryData:function(f){var e=this,a=f.getSummaryData(),c,h,b,g,d;if(a){e.summaryRecord=a}a=f.getGroupData();if(a){c=e.getGrouper();if(c){e.groupSummaryData=g={};for(b=0,h=a.length;b<h;++b){d=a[b];g[c.getGroupString(d)]=d}}}},handleReload:function(d){var a=this,e=a.activeRanges,g=e.length,f=a.pageMap,b,c;if(d.wasSuccessful()){a.readTotalCount(d.getResultSet());a.fireEvent('reload',a,d);for(b=0;b<g;++b){c=e[b];if(f.canSatisfy(c)){c.reload()}}}},loadVirtualPage:function(b,d,e){var a=this,c=a.pageMap.generation;return a.load({page:b.number+1,internalCallback:function(f){var g=f.getResultSet();if(c===a.pageMap.generation){if(f.wasSuccessful()){a.readTotalCount(g);a.attachSummaryData(g)}d.call(e||b,f);a.groupSummaryData=null}}})},lockGroups:function(m,h){var l=this.getGroups(),j=h.groupInfo={},k=h.records,o=k.length,i=this.groupSummaryData,n=this.pageMap,p=h.number,b,e,a,f,c,d,g;for(e=0;e<o;++e){c=k[e];a=m.getGroupString(c);if(!j[a]){j[a]=c;b=l.get(a);if(!b){b=new Ext.data.virtual.Group(a);l.add(b)}d=b.firstRecords;g=d[0];if(g&&p<n.getPageIndex(g)){d.unshift(c)}else {d.push(c)}f=i&&i[a];if(f){b.summaryRecord=f}}}},onPageDataAcquired:function(b){var a=this.getGrouper();if(a){this.lockGroups(a,b)}},onPageDestroy:function(c){var b=this.activeRanges,d=b.length,a;for(a=0;a<d;++a){b[a].onPageDestroy(c)}},onPageEvicted:function(b){var a=this.getGrouper();if(a){this.releaseGroups(a,b)}},readTotalCount:function(b){var a=b.getRemoteTotal();if(!isNaN(a)){this.setTotalCount(a)}},releaseGroups:function(h,g){var f=this.getGroups(),e=g.groupInfo,b,a,d,c;for(d in e){b=e[d];c=f.get(d);a=c.firstRecords;if(a.length===1){f.remove(c)}else if(a[0]===b){a.shift();a.sort(this.sortByPage)}else {Ext.Array.remove(a,b)}}},sortByPage:function(b,c){var a=this.pageMap;return a.getPageIndex(b)-a.getPageIndex(c)}}},1,0,0,0,["store.virtual"],0,[Ext.data.virtual,'Store'],0));(Ext.cmd.derive('Ext.direct.Event',Ext.Base,{status:!0,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:!1},0,0,0,0,["direct.exception"],0,[Ext.direct,'ExceptionEvent'],0));(Ext.cmd.derive('Ext.direct.JsonProvider',Ext.direct.Provider,{parseResponse:function(b){var a=b&&b.responseText;if(a!=null){if(Ext.isObject(a)||Ext.isArray(a)){return a}return Ext.decode(a)}return null},createEvents:function(e){var d=this,a=null,c=[],f,b,g;try{a=d.parseResponse(e)}catch(h){f=new Ext.direct.ExceptionEvent({parsingError:!0,data:h,xhr:e,code:Ext.direct.Manager.exceptions.PARSE,message:'Error parsing json response: \n\n '+h});return [f]}if(Ext.isArray(a)){for(b=0,g=a.length;b<g;++b){c.push(d.createEvent(a[b]))}}else if(Ext.isObject(a)){c.push(d.createEvent(a))}return c},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(b){var a=this;Ext.direct.JsonProvider.prototype.constructor.call(this,b);a.pollTask=Ext.TaskManager.newTask({run:a.runPoll,interval:a.interval,scope:a})},destroy:function(){this.pollTask.stop(!0);Ext.direct.JsonProvider.prototype.destroy.call(this)},doConnect:function(){var a=this,c=a.url,b=a.pollFn;if(b&&Ext.isString(b)){a.pollFn=b=Ext.direct.Manager.parseMethod(b)}else if(Ext.isFunction(c)){a.pollFn=b=c;a.url=c=null}if(c||b){a.setInterval(a.interval);a.pollTask.start()}},doDisconnect:function(){if(this.pollTask){this.pollTask.stop()}},getInterval:function(){return this.pollTask&&this.pollTask.interval},setInterval:function(b){var a=this,c=a.pollTask;a.interval=c.interval=b;if(a.isConnected()){c.restart(b)}},runPoll:function(){var a=this,f=a.url,d=a.pollFn,b=a.baseParams,e,c;if(a.fireEvent('beforepoll',a)!==!1){if(d){e=d.directCfg.method.getArgs({params:b!==undefined?b:{},callback:a.onPollFn,scope:a});d.apply(window,e)}else {c={url:f,callback:a.onData,scope:a,params:b,headers:a.getHeaders()};if(a.timeout!=null){c.timeout=a.timeout}a.sendAjaxRequest(c)}a.fireEvent('poll',a)}},onData:function(h,f,d){var a=this,c,g,e,b;if(f){e=a.createEvents(d);for(c=0,g=e.length;c<g;++c){b=e[c];a.fireEvent('data',a,b);if(!b.status){a.fireEvent('exception',a,b)}}}else {b=new Ext.direct.ExceptionEvent({data:null,code:Ext.direct.Manager.exceptions.TRANSPORT,message:'Unable to connect to the server.',xhr:d});a.fireEvent('data',a,b);a.fireEvent('exception',a,b)}Ext.direct.JsonProvider.prototype.onData.call(this,h,f,d)},onPollFn:function(b,d,a,c){this.onData(null,a,{responseText:b})},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(a){var b=this,e=a.params,h=a.len,g=a.metadata,d={},j,i,c,f;b.name=a.name;b.disableBatching=a.batched!=null?!a.batched:!1;if(a.formHandler){b.formHandler=a.formHandler}else if(Ext.isNumeric(h)){b.len=h;b.ordered=!0}else {b.named=!0;b.strict=a.strict!==undefined?a.strict:!0;b.params={};i=e&&e.length;for(c=0;c<i;c++){f=e[c];j=Ext.isObject(f)?f.name:f;b.params[j]=!0}}if(g){e=g.params;h=g.len;if(Ext.isNumeric(h)){d.ordered=!0;d.len=h}else if(Ext.isArray(e)){d.named=!0;d.params={};for(c=0,i=e.length;c<i;c++){f=e[c];d.params[f]=!0}d.strict=g.strict!==undefined?g.strict:!0}b.metadata=d}},getArgs:function(c){var e=this,b=c.params,d=c.paramOrder,k=c.paramsAsArray,h=c.metadata,f=c.options,a=[],i,g,j;if(e.ordered){if(e.len>0){if(d){i=c.paramsAsArray&&e.len===1&&(d.length>1||Ext.isArray(b));if(i){if(Ext.isArray(b)){for(g=0,j=b.length;g<j;g++){a.push(e.convertParams(b[g],d,d.length,!0))}}else {a=e.convertParams(b,d,d.length,!0)}if(!b.allowSingle||a.length>1){a=[a]}}else {a=e.convertParams(b,d,e.len,!1)}}else {a.push(b)}}}else {a.push(b)}a.push(c.callback,c.scope||window);if(f||h){f=Ext.apply({},f);if(h){f.metadata=h}a.push(f)}return a},convertParams:function(g,e,h,f){var a=[],c,b,d;for(b=0,d=h;b<d;b++){c=e[b];a.push(g[c])}if(f){return a.length===0?undefined:a.length===1?a[0]:a}else {return a}},getCallData:function(a){var b=this,f=null,g=b.len,k=b.params,l=b.strict,j,h,i,d,c,e;if(b.ordered){h=a[g];i=a[g+1];c=a[g+2];if(g!==0){f=a.slice(0,g)}}else if(b.formHandler){j=a[0];h=a[1];i=a[2];c=a[3]}else {f=Ext.apply({},a[0]);h=a[1];i=a[2];c=a[3];if(l){for(d in f){if(f.hasOwnProperty(d)&&!k[d]){delete f[d]}}}}if(b.metadata&&c&&c.metadata){if(b.metadata.ordered){e=c.metadata.slice(0,b.metadata.len)}else {e=Ext.apply({},c.metadata);if(b.metadata.strict){for(d in e){if(e.hasOwnProperty(d)&&!b.metadata.params[d]){delete e[d]}}}}delete c.metadata}return {form:j,data:f,metadata:e,callback:h,scope:i,options:c}}},1,0,0,0,0,0,[Ext.direct,'RemotingMethod'],0));(Ext.cmd.derive('Ext.direct.Transaction',Ext.Base,{statics:{TRANSACTION_ID:0},constructor:function(b){var a=this;Ext.apply(a,b);a.id=a.tid=++a.self.TRANSACTION_ID;a.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'],0));(Ext.cmd.derive('Ext.direct.RemotingProvider',Ext.direct.JsonProvider,{type:'remoting',enableBuffer:10,bufferLimit:Number.MAX_VALUE,maxRetries:1,constructor:function(b){var a=this;Ext.direct.JsonProvider.prototype.constructor.call(this,b);a.namespace=(Ext.isString(a.namespace))?Ext.ns(a.namespace):a.namespace||Ext.global;a.callBuffer=[]},destroy:function(){if(this.callTask){this.callTask.cancel()}Ext.direct.JsonProvider.prototype.destroy.call(this)},connect:function(){var a=this;Ext.direct.JsonProvider.prototype.connect.call(this)},doConnect:function(){if(!this.apiCreated){this.initAPI();this.apiCreated=!0}},getNamespace:function(a,f){var c,e,b,d;a=a||Ext.global;c=f.toString().split('.');for(b=0,d=c.length;b<d;b++){e=c[b];a=a[e];if(typeof a==='undefined'){return a}}return a},createNamespaces:function(a,f){var d,b,c,e;a=a||Ext.global;d=f.toString().split('.');for(c=0,e=d.length;c<e;c++){b=d[c];a[b]=a[b]||{};a=a[b]}return a},initAPI:function(){var c=this,f=c.actions,d=c.namespace,k=Ext.direct.Manager,a,b,h,e,j,i,g;for(a in f){if(f.hasOwnProperty(a)){if(c.disableNestedActions){b=d[a];if(!b){b=d[a]={}}}else {b=c.getNamespace(d,a);if(!b){b=c.createNamespaces(d,a)}}h=f[a];for(e=0,j=h.length;e<j;++e){i=new Ext.direct.RemotingMethod(h[e]);b[i.name]=g=c.createHandler(a,i);k.registerMethod(g.$name,g)}}}},createHandler:function(b,c){var d=this,a;a=function(){d.invokeFunction(b,c,Array.prototype.slice.call(arguments,0))};a.name=a.$name=b+'.'+c.name;a.$directFn=!0;a.directCfg=a.$directCfg={action:b,method:c};return a},invokeFunction:function(g,c,h){var b=this,a,f,e,d;a=b.configureTransaction(g,c,h);if(b.fireEvent('beforecall',b,a,c)!==!1){Ext.direct.Manager.addTransaction(a);if(a.isForm){f=a.form;e=String(f.getAttribute("enctype")).toLowerCase()==='multipart/form-data';d={extTID:a.id,extAction:g,extMethod:c.name,extType:'rpc',extUpload:String(e)};if(a.metadata){d.extMetadata=Ext.JSON.encode(a.metadata)}Ext.apply(a,{form:f,isUpload:e,params:d})}b.queueTransaction(a);b.fireEvent('call',b,a,c)}},configureTransaction:function(h,d,g,i){var a,b,f,c,e;a=d.getCallData(g);b=a.callback;f=a.scope;c=a.options;b=b&&f?b.bind(f):b;e=Ext.apply({},{provider:this,args:g,action:h,method:d.name,form:a.form,data:a.data,metadata:a.metadata,callbackOptions:c,callback:b,isForm:!!d.formHandler,disableBatching:d.disableBatching});if(c&&c.timeout!=null){e.timeout=c.timeout}return new Ext.direct.Transaction(e)},queueTransaction:function(b){var a=this,d=a.callBuffer,c=a.enableBuffer;if(b.isForm||c===!1||b.disableBatching||b.timeout!=null){a.sendTransaction(b);return}d.push(b);if(c&&d.length<a.bufferLimit){if(!a.callTask){a.callTask=new Ext.util.DelayedTask(a.combineAndSend,a)}a.callTask.delay(Ext.isNumber(c)?c:10)}else {a.combineAndSend()}},combineAndSend:function(){var b=this,a=b.callBuffer,c=a.length;if(c>0){b.sendTransaction(c===1?a[0]:a);b.callBuffer=[]}},sendTransaction:function(a){var b=this,c,d,g,f=b.enableUrlEncode,h,e,i;c={url:b.url,callback:b.onData,scope:b,transaction:a,headers:b.getHeaders()};if(a.timeout!=null){c.timeout=a.timeout}else if(b.timeout!=null){c.timeout=b.timeout}if(a.isForm){Ext.apply(c,{params:a.params,form:a.form,isUpload:a.isUpload})}else {if(Ext.isArray(a)){d=[];for(e=0,i=a.length;e<i;++e){h=b.getPayload(a[e]);d.push(h)}}else {d=b.getPayload(a)}if(f){g={};g[Ext.isString(f)?f:'data']=Ext.encode(d);c.params=g}else {c.jsonData=d}}return b.sendAjaxRequest(c)},getPayload:function(a){var b={action:a.action,method:a.method,data:a.data,type:'rpc',tid:a.id};if(a.metadata){b.metadata=a.metadata}return b},onData:function(j,f,i){var a=this,d,g,e,c,b,h;if(a.destroying||a.destroyed){return}e=f&&a.createEvents(i);f=e&&e.length&&!e[0].parsingError;if(f){for(d=0,g=e.length;d<g;++d){c=e[d];a.fireEvent('data',a,c);b=a.getTransaction(c);if(b){if(a.fireEvent('beforecallback',a,c,b)!==!1){a.runCallback(b,c,!0)}Ext.direct.Manager.removeTransaction(b)}}}else {h=[].concat(j.transaction);c=e[0]||new Ext.direct.ExceptionEvent({data:null,transaction:b,code:Ext.direct.Manager.exceptions.TRANSPORT,message:'Unable to connect to the server.',xhr:i});for(d=0,g=h.length;d<g;++d){b=a.getTransaction(h[d]);if(b&&b.retryCount<a.maxRetries){b.retry()}else {a.fireEvent('data',a,c);a.fireEvent('exception',a,c);if(b&&a.fireEvent('beforecallback',a,c,b)!==!1){a.runCallback(b,c,!1)}Ext.direct.Manager.removeTransaction(b)}}}Ext.direct.JsonProvider.prototype.onData.call(this,j,f,i)},getTransaction:function(a){return a&&a.tid?Ext.direct.Manager.getTransaction(a.tid):null},runCallback:function(c,b){var e=!!b.status,g=e?'success':'failure',a,d,f;if(c&&c.callback){a=c.callback;d=c.callbackOptions;f=typeof b.result!=='undefined'?b.result:b.data;if(Ext.isFunction(a)){a(f,b,e,d)}else {Ext.callback(a[g],a.scope,[f,b,e,d]);Ext.callback(a.callback,a.scope,[f,b,e,d])}}},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:!0,interval:30000,constructor:function(){var a=this;a.lastTime=Ext.now();a.onTick=a.onTick.bind(a);a.resume()},collect:function(){var g=this,b=Ext.cache,a,f,c,e,d,h;for(a in b){if(!b.hasOwnProperty(a)){continue}c=b[a];if(c.skipGarbageCollection){continue}f=c.dom;try{d=Ext.isGarbage(f)}catch(i){delete b[a];continue}if(d){d=!1;if(c&&c.dom){c.collect()}}}if(Ext.isIE9m){e={};for(a in b){if(b.hasOwnProperty(a)){e[a]=b[a]}}Ext.cache=Ext.dom.Element.cache=e}g.lastTime=Ext.now()},onTick:function(){this.timerId=null;if(Ext.enableGarbageCollector){this.collect()}this.resume()},pause:function(){var a=this.timerId;if(a){this.timerId=null;Ext.undefer(a)}},resume:function(){var a=this,b=a.lastTime;if(Ext.enableGarbageCollector&&(Ext.now()-b)>a.interval){a.collect()}if(!a.timerId){a.timerId=Ext.defer(a.onTick,a.interval)}}},1,0,0,0,0,0,[Ext.dom,'GarbageCollector'],0));(Ext.cmd.derive('Ext.dom.TouchAction',Ext.Base,{singleton:!0,lastTouchStartTime:0,minMoveDistance:8,spaceRe:/\s+/,preventSingle:null,preventMulti:null,disabledOverflowDom:null,panXCls:'x-touch-action-pan-x',panYCls:'x-touch-action-pan-y',cssValues:['none','pan-x','pan-y','pan-x pan-y','pinch-zoom','pan-x pinch-zoom','pan-y pinch-zoom','pan-x pan-y pinch-zoom','double-tap-zoom','pan-x double-tap-zoom','pan-y double-tap-zoom','pan-x pan-y double-tap-zoom','pinch-zoom double-tap-zoom','pan-x pinch-zoom double-tap-zoom','pan-y pinch-zoom double-tap-zoom',''],objectValues:[{panX:!1,panY:!1,pinchZoom:!1,doubleTapZoom:!1},{panX:!0,panY:!1,pinchZoom:!1,doubleTapZoom:!1},{panX:!1,panY:!0,pinchZoom:!1,doubleTapZoom:!1},{panX:!0,panY:!0,pinchZoom:!1,doubleTapZoom:!1},{panX:!1,panY:!1,pinchZoom:!0,doubleTapZoom:!1},{panX:!0,panY:!1,pinchZoom:!0,doubleTapZoom:!1},{panX:!1,panY:!0,pinchZoom:!0,doubleTapZoom:!1},{panX:!0,panY:!0,pinchZoom:!0,doubleTapZoom:!1},{panX:!1,panY:!1,pinchZoom:!1,doubleTapZoom:!0},{panX:!0,panY:!1,pinchZoom:!1,doubleTapZoom:!0},{panX:!1,panY:!0,pinchZoom:!1,doubleTapZoom:!0},{panX:!0,panY:!0,pinchZoom:!1,doubleTapZoom:!0},{panX:!1,panY:!1,pinchZoom:!0,doubleTapZoom:!0},{panX:!0,panY:!1,pinchZoom:!0,doubleTapZoom:!0},{panX:!1,panY:!0,pinchZoom:!0,doubleTapZoom:!0},{panX:!0,panY:!0,pinchZoom:!0,doubleTapZoom:!0}],attributeName:'data-extTouchAction',constructor:function(){var a=this,b=Ext.supports;if(b.TouchAction){a.cssProp='touch-action'}else if(b.MSPointerEvents){a.cssProp='-ms-touch-action'}if(b.TouchEvents){Ext.getWin().on({touchstart:'onTouchStart',touchmove:'onTouchMove',touchend:'onTouchEnd',scope:a,delegated:!1,translate:!1,capture:!0,priority:5000});Ext.on({scroll:'onScroll',scope:a,destroyable:!0})}},containsTargets:function(g,f){var b=!0,d=f.browserEvent,c=f.type==='touchend'?d.changedTouches:d.touches,a,e;for(a=0,e=c.length;a<e;a++){if(!g.contains(c[a].target)){b=!1;break}}return b},disableOverflow:function(a,d){var b=this,f=d?'overflow-y':'overflow-x',c,e;if(!b.disabledOverflowDom&&!Ext.isiOS&&!Ext.getScrollbarSize().width){b.disabledOverflowDom=a;e=d?b.panXCls:b.panYCls;while(a){c=Ext.fly(a).getStyle(f);if(c==='auto'||c==='scroll'){Ext.fly(a).addCls(e)}a=a.parentNode}}},get:function(c){var a=c.getAttribute(this.attributeName),b=null;if(a!=null){b=this.objectValues[a]}return b},getFlags:function(b){var a;if(typeof b==='number'){a=b}else {a=0;if(b.panX!==!1){a|=1}if(b.panY!==!1){a|=2}if(b.pinchZoom!==!1){a|=4}if(b.doubleTapZoom!==!1){a|=8}}return a},isScrollable:function(a,d,e){var c=Ext.fly(a).getStyle(d?'overflow-y':'overflow-x'),b=(c==='auto'||c==='scroll');if(b){if(d){b=e?(a.scrollTop+a.clientHeight)<a.scrollHeight:a.scrollTop>0}else {b=e?(a.scrollLeft+a.clientWidth)<a.scrollWidth:a.scrollLeft>0}}return b},lookupFlags:function(a){return parseInt((a.getAttribute&&a.getAttribute(this.attributeName))||15,10)},onScroll:function(){this.scrollOccurred=!0;this.isDoubleTap=!1},onTouchEnd:function(d){var a=this,b=d.target,f,c,e;f=d.browserEvent.touches.length;if(f===0){if(a.isDoubleTap){while(b){c=a.lookupFlags(b);if(c!=null){e=c&8;if(!e){d.preventDefault()}}b=b.parentNode}}a.isDoubleTap=!1;a.preventSingle=null;a.preventMulti=null;a.resetOverflow()}},onTouchMove:function(g){var b=this,a=null,d=g.target,f,c,i,j,h,m,e,q,p,n,o,k,l;k=b.preventSingle;l=b.preventMulti;c=g.browserEvent.touches.length;if((c===1&&(k===!1))||(l===!1)){return}if((c>1&&(l===!0))||(c===1&&(k===!0))){a=!0}else {if(c===1){h=g.getPoint();m=b.startPoint;q=Ext.Element.getViewportScale();p=h.getDistanceTo(b.startPoint)*q;n=h.x-m.x;o=h.y-m.y;e=Math.abs(o)>=Math.abs(n)}while(d&&(d.nodeType===1)){f=b.lookupFlags(d);if(f&0){a=!0}else if(c===1){i=!!(f&1);j=!!(f&2);if(i&&j){a=!1}else if(!i&&!j){a=!0}else if(p>=b.minMoveDistance){a=!!((i&&e)||(j&&!e))}if(!a&&b.isScrollable(d,e,(e?o:n)<0)){break}}else if(b.containsTargets(d,g)){a=!(f&4)}else {a=!1}if(a){break}d=d.parentNode}}if(c===1){b.preventSingle=a}else if(c>1){b.preventMulti=a}if(a){g.preventDefault()}},onTouchStart:function(d){var a=this,f,c,b,e,g;if(d.browserEvent.touches.length===1){f=d.time;if(!a.scrollOccurred&&((f-a.lastTouchStartTime)<=500)){a.isDoubleTap=!0}a.lastTouchStartTime=f;a.scrollOccurred=!1;a.startPoint=d.getPoint();b=d.target;while(b){c=a.lookupFlags(b);if(c!=null){e=!!(c&1);g=!!(c&2);if(e!==g){a.disableOverflow(b,e);break}}b=b.parentNode}}else {a.isDoubleTap=!1}},resetOverflow:function(){var b=this,a=b.disabledOverflowDom;while(a){Ext.fly(a).removeCls([b.panXCls,b.panYCls]);a=a.parentNode}b.disabledOverflowDom=null},set:function(c,g){var a=this,e=a.cssProp,b=a.getFlags(g),f=(b&Ext.supports.TouchAction),d=a.attributeName;if(e){Ext.fly(c).setStyle(e,a.cssValues[f])}if(b===15){c.removeAttribute(d)}else {c.setAttribute(d,b)}}},1,0,0,0,0,0,[Ext.dom,'TouchAction'],0));(Ext.cmd.derive('Ext.drag.Constraint',Ext.Base,{factoryConfig:{defaultType:'base',type:'drag.constraint'},config:{element:null,horizontal:null,region:null,snap:null,source:null,vertical:null,x:null,y:null},constructor:function(a){this.initConfig(a)},applyElement:function(a){if(a&&typeof a!=='boolean'){a=Ext.get(a)}return a||null},applySnap:function(a){if(typeof a==='number'){a={x:a,y:a}}return a},constrain:function(l,k){var g=this,b=l[0],c=l[1],f=g.constrainInfo,h=f.initial,i=f.x,j=f.y,a=f.snap,e,d;if(!f.vertical){if(a&&a.x){if(a.xFn){b=a.x.call(g,k,b)}else {b=g.doSnap(b,h.x,a.x)}}if(i){e=i[0];d=i[1];if(e!==null&&b<e){b=e}if(d!==null&&b>d){b=d}}}else {b=h.x}if(!f.horizontal){if(a&&a.y){if(a.yFn){c=a.y.call(g,k,c)}else {c=g.doSnap(c,h.y,a.y)}}if(j){e=j[0];d=j[1];if(e!==null&&c<e){c=e}if(d!==null&&c>d){c=d}}}else {c=h.y}return [b,c]},destroy:function(){this.setSource(null);this.setElement(null);this.callParent()},privates:{constrainValue:function(b,c,f){var a=null,d=b===null,e=c===null;if(!(d&&e)){if(d){a=c}else if(e){a=b}else {a=f(b,c)}}return a},doSnap:function(d,e,c){if(!c){return d}var a=(d-e)/c,b=Math.floor(a);if(a-b<=0.5){a=b}else {a=b+1}return e+(c*a)},onDragStart:function(r){var a=this,d=a.getSnap(),l=!!a.getVertical(),k=!!a.getHorizontal(),c=a.getElement(),b=a.getRegion(),m=r.proxy,u=m.element,e=a.getX(),f=a.getY(),i=null,g=null,j=null,h=null,p=null,n=null,q=null,o=null,t,s;if(c){if(typeof c==='boolean'){c=a.getSource().getElement().parent()}if(r.local){t=c.getStyle('position');if(t==='relative'||t==='absolute'){s=c.getSize();b=new Ext.util.Region(0,s.width,s.height,0)}else {b=c.getRegion(!0,!0)}}else {b=c.getRegion(!0)}}if(b){if(!l){p=b.left;n=b.right-(u?m.width:0)}if(!k){q=b.top;o=b.bottom-(u?m.height:0)}}if(!l&&(b||e)){if(e){i=e[0];g=e[1]}if(i!==null||g!==null||p!==null||n!==null){i=a.constrainValue(i,p,Math.max);g=a.constrainValue(g,n,Math.min);e=[i,g]}}if(!k&&(b||f)){if(f){j=f[0];h=f[1]}if(j!==null||h!==null||q!==null||o!==null){j=a.constrainValue(j,q,Math.max);h=a.constrainValue(h,o,Math.min);f=[j,h]}}if(d){d={x:d.x,xFn:typeof d.x==='function',y:d.y,yFn:typeof d.y==='function'}}a.constrainInfo={initial:r.element.initial,vertical:l,horizontal:k,x:e,y:f,snap:d}}}},1,0,0,0,["drag.constraint.base"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.drag,'Constraint'],0));(Ext.cmd.derive('Ext.drag.Info',Ext.Base,{constructor:function(c,k){if(!c){return}var a=this,l=c.getLocal(),d,e,b,f,j,g,h,i;a.source=c;a.local=l;j=a.getEventXY(k);h=k.getXY();d=c.getElement();i=d.getXY();j=l?d.getLocalXY():i;f=j[0];g=j[1];a.initialEvent=k;a.eventTarget=k.target;a.cursor={current:{x:f,y:g},delta:{x:0,y:0},initial:{x:h[0],y:h[1]},offset:{x:h[0]-i[0],y:h[1]-i[1]}};a.element={current:{x:f,y:g},delta:{x:0,y:0},initial:{x:f,y:g}};a.proxy={instance:c.getProxy(),current:{x:f,y:g},delta:{x:0,y:0},initial:{x:f,y:g},element:d,isUnderCursor:!1,isElement:!0};a.types=[];a.data={};c.describe(a);b=a.proxy;e=b.instance.setupElement(a);b.isElement=e===c.getElement();b.element=e;if(e){b.width=e.getWidth();b.height=e.getHeight()}if(b.isElement){d=a.element;d.current=b.current;d.delta=b.delta}a.needsCursorCheck=b.element&&c.manager&&c.manager.pointerBug},cursor:null,element:null,eventTarget:null,files:null,isNative:!1,proxy:null,source:null,target:null,types:null,valid:!1,clearData:function(a){Ext.Array.remove(this.types,a);delete this.data[a]},clone:function(){var b=this,a=new Ext.drag.Info();a.cursor=Ext.merge({},b.cursor);a.data=Ext.apply({},b.data);a.element=Ext.merge({},b.element);a.eventTarget=b.eventTarget;a.proxy=Ext.merge({},b.proxy);a.source=b.source;a.target=b.target;a.types=Ext.Array.clone(b.types);a.valid=b.valid;return a},getData:function(c){var b=this,d=b.data,e=b.dataTransfer,a;if(e){a=e.getData(c)}else {a=d[c];if(typeof a==='function'){d[c]=a=a.call(b.source,b)}if(!a&&a!==0){a=''}}return Ext.Promise.resolve(a)},setData:function(a,b){Ext.Array.include(this.types,a);this.data[a]=b},destroy:function(){var a=this;a.eventTarget=a.data=a.proxy=a.targetMap=a.targetMap=a.types=a.elementMap=a.possibleTargets=a.target=null;a.callParent()},privates:{data:null,dataTransfer:null,elementMap:null,possibleTargets:null,targetMap:null,copyNativeData:function(b,c){var a=c.browserEvent.dataTransfer;this.target=b;this.dataTransfer=a;this.files=a.files},finalize:function(){var b=this,a=b.target;b.finalized=!0;if(a){a.info=null;a.handleDrop(b)}},getAlignXY:function(h,i){var b=this,e=b.source,c=b.cursor.offset,g=e.getProxy(),f=b.proxy.element,d=e.getConstrain(),a=[h,i];if(f){if(b.proxy.isElement){a[0]-=c.x;a[1]-=c.y}else {a=g.adjustCursorOffset(b,a)}if(d){a=d.constrain(a,b)}}return a},getEventXY:function(c){var a=c.getXY(),b=this.source;if(this.local){a=b.convertToLocalXY(a)}return a},onNativeDragEnter:function(b,c){var a=this;a.valid=b.accepts(a);b.info=a;a.copyNativeData(b,c)},onNativeDragLeave:function(b,c){var a=this;if(a.target===b){b.info=null;a.valid=!1;a.target=a.dataTransfer=a.files=null}},onNativeDragMove:function(a,b){this.copyNativeData(a,b)},onNativeDrop:function(a,b){this.copyNativeData(a,b);a.info=null},setActive:function(b){var a=this,e=a.source,c=a.target,d=c!==b;if(c&&d){c.handleDragLeave(a);c.info=null}a.target=b;if(b){if(d){a.valid=!!a.possibleTargets[b.getId()]&&b.accepts(a)!==!1;b.handleDragEnter(a);b.info=a}b.handleDragMove(a)}else {a.valid=!1}if(d){e.getProxy().update(a)}},update:function(o,n){var b=this,m=b.getEventXY(o),f=m[0],g=m[1],j=b.getAlignXY(f,g),h=j[0],i=j[1],a=b.proxy,k=b.cursor,c=k.current,e=k.delta,d=k.initial,l=a.instance;c.x=f;c.y=g;e.x=f-d.x;e.y=g-d.y;c=a.current;e=a.delta;d=a.initial;c.x=h;c.y=i;e.x=h-d.x;e.y=i-d.y;if(b.needsCursorCheck){a.isUnderCursor=!(f<h||g<i||f>a.width+h||g>a.height+i)}if(!n&&l){l.setXY(b,j)}}}},1,0,0,0,0,0,[Ext.drag,'Info'],0));(Ext.cmd.derive('Ext.drag.Item',Ext.Base,{config:{autoDestroy:!0,component:null,element:null,groups:null},constructor:function(a){this.mixins.observable.constructor.call(this,a)},isDisabled:function(){return this.disabled},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},updateComponent:function(b,c){var a;if(b){a=b.el}else if(c&&c.el===this.getElement()){a=null}else {return}this.setElement(a)},applyElement:function(a){return a?Ext.get(a):null},updateElement:function(){this.setupListeners()},applyGroups:function(a){if(typeof a==='string'){a=[a]}return a},destroy:function(){var a=this,b=a.getElement();a.destroying=!0;a.setElement(null);if(b&&a.getAutoDestroy()){b.destroy()}a.callParent();a.destroying=!1},privates:{disabled:!1,convertToLocalXY:function(a){var b=this.getComponent();if(b){a=b.convertToLocalXY(a)}else {a=this.getElement().translateXY(a[0],a[1]);a=[a.x,a.y]}return a},getElListeners:Ext.privateFn,setupListeners:function(b){var a=this,c=a.elListeners;b=b||a.getElement();if(c){c.destroy();a.elListeners=null}if(b){a.elListeners=b.on(Ext.apply({scope:a,destroyable:!0},a.getElListeners()))}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.drag,'Item'],0));(Ext.cmd.derive('Ext.drag.Manager',Ext.Base,{singleton:!0,dragCls:'x-drag-body',pointerBug:Ext.isTouch||(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera),constructor:function(){this.targets={};this.nativeTargets=[];Ext.onReady(this.init,this)},init:function(){Ext.getDoc().on({scope:this,dragenter:{capture:!0,fn:'onNativeDragEnter'},dragleave:'onNativeDragLeave',dragover:'onNativeDragOver',drop:'onNativeDrop'})},destroy:function(){var a=this,b=a.targets,c;a.destroying=!0;for(c in b){b[c].destroy()}a.targets=null;a.callParent();a.destroying=!1},privates:{elementFromPoint:function(a,b){if(Ext.rootInheritedState.rtl){a=Ext.Element.getViewportWidth()-a}return Ext.dom.Element.fromPagePoint(a,b,!0)},getAtPoint:function(c){var e=c.cursor.current,g=c.elementMap,f=c.proxy.isUnderCursor,b=this.pointerBug&&f?c.proxy.element.dom:null,d,a;if(b){b.style.visibility='hidden'}a=this.elementFromPoint(e.x,e.y);if(b){b.style.visibility='visible'}while(a){d=g[a.id];if(d){return d}a=a.parentNode}return null},getNativeDragInfo:function(b){var a=this.nativeDragInfo;if(!a){this.nativeDragInfo=a=new Ext.drag.Info();a.isNative=!0}return a},onDragCancel:function(){Ext.getBody().removeCls(this.dragCls)},onDragEnd:function(a,b){a.finalize();Ext.getBody().removeCls(this.dragCls)},onDragMove:function(a,b){this.processDrag(a)},onDragStart:function(c,p){var j=this,o=c.source,l=j.targets,m=o.getGroups(),k={},h={},i={},f,a,b,d,e,n,g;i={};h={};if(m){d=Ext.Array.toMap(m)}for(f in l){a=l[f];if(!a.isDisabled()){e=!1;b=a.getGroups();if(!d&&!b){e=!0}else if(d&&b){for(g=0,n=b.length;g<n;++g){if(d[b[g]]){e=!0;break}}}if(e){h[f]=a}}k[f]=a;i[a.getElement().id]=a}c.possibleTargets=h;c.targetMap=k;c.elementMap=i;Ext.getBody().addCls(j.dragCls);j.processDrag(c)},onNativeDragEnter:function(c){var a=this.nativeTargets,b=c.target;c.preventDefault();if(a[a.length-1]!==b){a.push(b)}},onNativeDragLeave:function(b){var a=this.nativeTargets;Ext.Array.remove(a,b.target);if(a.length===0){this.nativeDragInfo=null}},onNativeDragOver:function(a){a.preventDefault()},onNativeDrop:function(a){a.preventDefault();this.nativeTargets.length=0;this.nativeDragInfo=null},processDrag:function(a){a.setActive(this.getAtPoint(a))},register:function(a){this.targets[a.getId()]=a},unregister:function(a){if(this.destroying){return}delete this.targets[a.getId()]}}},1,0,0,0,0,0,[Ext.drag,'Manager'],0));(Ext.cmd.derive('Ext.drag.Source',Ext.drag.Item,{defaultIdPrefix:'source-',config:{activateOnLongPress:!1,activeCls:null,constrain:null,handle:null,local:null,proxy:'original',revert:!1},dragging:!1,constructor:function(a){var b=a&&a.describe;if(b){this.describe=b;a=Ext.apply({},a);delete a.describe}Ext.drag.Item.prototype.constructor.call(this,a);this.manager=Ext.drag['Manager']},describe:Ext.emptyFn,isDragging:function(){return this.dragging},beforeDragStart:Ext.emptyFn,onDragCancel:Ext.emptyFn,onDragEnd:Ext.emptyFn,onDragMove:Ext.emptyFn,onDragStart:Ext.emptyFn,applyActivateOnLongPress:function(a){if(typeof a==='string'){a=[a]}return a},updateActivateOnLongPress:function(a){if(!this.isConfiguring){this.setupListeners()}},updateActiveCls:function(b,a){if(this.dragging){var c=this.getElement();c.replaceCls(a,b)}},applyConstrain:function(a){if(a&&!a.$isClass){if(a.isRegion){a={region:a}}else if(a.isElement||!Ext.isObject(a)){a={element:a}}a=Ext.apply({source:this},a);a=Ext.Factory.dragConstraint(a)}return a},updateElement:function(b,a){if(a&&!a.destroyed){a.un('dragstart','stopNativeDrag',this)}if(b&&!this.getHandle()){b.setTouchAction({panX:!1,panY:!1});b.on('dragstart','stopNativeDrag',this,{translate:!1,delegated:!1})}Ext.drag.Item.prototype.updateElement.call(this,b,a)},updateHandle:function(){if(!this.isConfiguring){this.setupListeners()}},applyProxy:function(a){if(a){a=Ext.Factory.dragproxy(a)}return a},updateProxy:function(b,a){if(a){a.destroy()}if(b){b.setSource(this)}},resolveListenerScope:function(){var a=this.ownerCmp,b=arguments;if(a){return a.resolveListenerScope.apply(a,b)}return Ext.drag.Item.prototype.resolveListenerScope.apply(this,b)},destroy:function(){var a=this;a.manager=a.initialEvent=null;a.setConstrain(null);a.setProxy(null);Ext.drag.Item.prototype.destroy.call(this)},privates:{draggingCls:'x-drag-dragging',info:null,revertCls:'x-drag-revert',canActivateOnLongPress:function(b){var a=this.getActivateOnLongPress();return !!(a&&(a===!0||Ext.Array.contains(a,b.pointerType)))},dragCleanup:function(b){var a=this,d=a.getActiveCls(),e=a.getProxy(),f=a.getElement(),c=b?b.proxy.element:null;if(d){f.removeCls(d)}if(c){c.removeCls(a.draggingCls)}e.cleanup(b);a.dragging=!1;a.initialEvent=a.info=null},getElListeners:function(){var a={touchstart:'handleTouchStart',dragstart:'handleDragStart',drag:'handleDragMove',dragend:'handleDragEnd',dragcancel:'handleDragCancel'},b=this.getHandle();if(b){a.dragstart={fn:a.dragstart,delegate:b}}if(this.getActivateOnLongPress()){a.longpress='handleLongPress'}return a},handleDragCancel:function(c){var a=this,b=a.info,d=a.manager;if(d){d.onDragCancel(b,c)}a.onDragCancel(b);if(a.hasListeners.dragcancel){a.fireEvent('dragcancel',a,b,c)}Ext.fireEvent('dragcancel',a,b,c);a.dragCleanup(b)},handleDragEnd:function(d){if(!this.dragging){return}var a=this,e=a.manager,f=a.getRevert(),b=a.info,c=b.proxy;b.update(d);if(e){e.onDragEnd(b,d)}a.onDragEnd(b);if(a.hasListeners.dragend){a.fireEvent('dragend',a,b,d)}Ext.fireEvent('dragend',a,b,d);c=c.instance;if(f&&c){c.dragRevert(b,a.revertCls,f,function(){a.dragCleanup(b)})}else {a.dragCleanup(b)}},handleDragMove:function(b){var a=this,c=a.info,d=a.manager;if(!a.dragging){return}b.stopPropagation();b.claimGesture();c.update(b);if(d){d.onDragMove(c,b)}a.onDragMove(c);if(a.hasListeners.dragmove){a.fireEvent('dragmove',a,c,b)}},handleDragStart:function(c){var a=this,e=a.hasListeners,i=a.manager,h=a.getConstrain(),k=a.initialEvent,j,g,b,d,f;if(a.preventStart(c)){return !1}if(e.initdragconstraints){a.fireEvent('initdragconstraints',a,c)}a.info=b=new Ext.drag.Info(a,k);a.setup(b);if(h){h.onDragStart(b)}b.update(c,!0);d=a.beforeDragStart(b)===!1;if(!d&&e.beforedragstart){d=a.fireEvent('beforedragstart',a,b,c)===!1}if(d){a.dragCleanup();return !1}c.claimGesture();a.dragging=!0;g=a.getActiveCls();j=a.getElement();if(g){j.addCls(g)}f=b.proxy.element;if(f){f.addCls(a.draggingCls)}b.update(c);if(i){i.onDragStart(b,c)}a.onDragStart(b);if(e.dragstart){a.fireEvent('dragstart',a,b,c)}Ext.fireEvent('dragstart',a,b,c)},handleLongPress:function(a){if(!this.isDisabled()&&this.canActivateOnLongPress(a)){this.initialEvent=a;a.startDrag()}},handleTouchStart:function(a){if(!this.isDisabled()){this.initialEvent=a}},preventStart:function(a){return this.isDisabled()||(!a.longpress&&this.canActivateOnLongPress(a))},setup:Ext.privateFn,stopNativeDrag:function(a){a.preventDefault()}}},1,0,0,0,0,0,[Ext.drag,'Source'],0));(Ext.cmd.derive('Ext.drag.Target',Ext.drag.Item,{defaultIdPrefix:'target-',config:{invalidCls:'',validCls:''},constructor:function(a){var c=this,b=a&&a.accepts;if(b){c.accepts=b;a=Ext.apply({},a);delete a.accepts}Ext.drag.Item.prototype.constructor.call(this,a);Ext.drag.Manager.register(c)},accepts:function(a){return !0},disable:function(){Ext.drag.Item.prototype.disable.call(this);this.setupListeners(null)},enable:function(){Ext.drag.Item.prototype.enable.call(this);this.setupListeners()},beforeDrop:Ext.emptyFn,onDrop:Ext.emptyFn,onDragEnter:Ext.emptyFn,onDragLeave:Ext.emptyFn,onDragMove:Ext.emptyFn,updateInvalidCls:function(c,b){var a=this.info;this.doUpdateCls(a&&!a.valid,c,b)},updateValidCls:function(c,b){var a=this.info;this.doUpdateCls(a&&a.valid,c,b)},destroy:function(){Ext.drag.Manager.unregister(this);Ext.drag.Item.prototype.destroy.call(this)},privates:{doUpdateCls:function(d,b,a){var c=this.getElement();if(a){c.removeCls(a)}if(b&&d){c.addCls(b)}},getElListeners:function(){return {dragenter:'handleNativeDragEnter',dragleave:'handleNativeDragLeave',dragover:'handleNativeDragMove',drop:'handleNativeDrop'}},handleDrop:function(b){var a=this,c=a.hasListeners,d=b.valid;a.getElement().removeCls([a.getInvalidCls(),a.getValidCls()]);if(d&&a.beforeDrop(b)!==!1){if(c.beforedrop&&a.fireEvent('beforedrop',a,b)===!1){return !1}a.onDrop(b);if(c.drop){a.fireEvent('drop',a,b)}}else {return !1}},handleDragEnter:function(b){var a=this,c=b.valid?a.getValidCls():a.getInvalidCls();if(c){a.getElement().addCls(c)}a.onDragEnter(b);if(a.hasListeners.dragenter){a.fireEvent('dragenter',a,b)}},handleDragLeave:function(b){var a=this;a.getElement().removeCls([a.getInvalidCls(),a.getValidCls()]);a.onDragLeave(b);if(a.hasListeners.dragleave){a.fireEvent('dragleave',a,b)}},handleDragMove:function(b){var a=this;a.onDragMove(b);if(a.hasListeners.dragmove){a.fireEvent('dragmove',a,b)}},handleNativeDragEnter:function(c){var a=this,b=Ext.drag.Manager.getNativeDragInfo(c);b.onNativeDragEnter(a,c);if(a.hasListeners.dragenter){a.fireEvent('dragenter',a,b)}},handleNativeDragLeave:function(c){var a=this,b=Ext.drag.Manager.getNativeDragInfo(c);b.onNativeDragLeave(a,c);if(a.hasListeners.dragleave){a.fireEvent('dragleave',a,b)}},handleNativeDragMove:function(c){var a=this,b=Ext.drag.Manager.getNativeDragInfo(c);b.onNativeDragMove(a,c);if(a.hasListeners.dragmove){a.fireEvent('dragmove',a,b)}},handleNativeDrop:function(d){var a=this,c=a.hasListeners,b=Ext.drag.Manager.getNativeDragInfo(d),e=b.valid;b.onNativeDrop(a,d);if(e){if(c.beforedrop&&a.fireEvent('beforedrop',a,b)===!1){return}if(c.drop){a.fireEvent('drop',a,b)}}}}},1,0,0,0,0,0,[Ext.drag,'Target'],0));(Ext.cmd.derive('Ext.drag.proxy.None',Ext.Base,{factoryConfig:{aliasPrefix:'drag.proxy.',type:'dragproxy'},config:{source:null},constructor:function(a){var b=a&&a.getElement;if(b){this.getElement=b;a=Ext.apply({},a);delete a.getElement}this.initConfig(a)},cleanup:Ext.emptyFn,dragRevert:function(d,b,f,e){var a=this.getPositionable(d),c=d.proxy.initial;a.addCls(b);a.setXY([c.x,c.y],Ext.apply({callback:function(){a.removeCls(b);e()}},f))},getElement:function(){return null},getPositionable:function(){return this.element},setXY:function(c,d,b){var a=this.getPositionable(c);if(a){a.setXY(d,b)}},update:Ext.emptyFn,privates:{setupElement:function(a){return (this.element=this.getElement(a))},adjustCursorOffset:function(b,a){return a}}},1,0,0,0,["drag.proxy.none"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.drag.proxy,'None'],0));(Ext.cmd.derive('Ext.drag.proxy.Original',Ext.drag.proxy.None,{getElement:function(a){return a.source.getElement()},getPositionable:function(b){var a=b.source;return a.getComponent()||a.getElement()}},0,0,0,0,["drag.proxy.original"],0,[Ext.drag.proxy,'Original'],0));(Ext.cmd.derive('Ext.drag.proxy.Placeholder',Ext.drag.proxy.None,{config:{cls:'',cursorOffset:[12,20],html:null,invalidCls:'',validCls:''},placeholderCls:'x-drag-proxy-placeholder',cleanup:function(){this.element=Ext.destroy(this.element)},getElement:function(){var a=Ext.getBody().createChild({cls:this.getCls(),html:this.getHtml()});a.addCls(this.placeholderCls);a.setTouchAction({panX:!1,panY:!1});return a},update:function(d){var e=this.element,a=this.getInvalidCls(),b=this.getValidCls(),c=d.valid;if(d.target){e.replaceCls(c?a:b,c?b:a)}else {e.removeCls([a,b])}},updateCls:function(c,b){var a=this.element;if(a){if(b){a.removeCls(b)}if(c){a.addCls(c)}}},updateHtml:function(b){var a=this.element;if(a){a.setHtml(b||'')}},updateInvalidCls:function(b,a){this.doUpdateCls(b,a)},updateValidCls:function(b,a){this.doUpdateCls(b,a)},destroy:function(){this.element=Ext.destroy(this.element);this.callParent()},privates:{adjustCursorOffset:function(c,b){var a=this.getCursorOffset();if(a){b[0]+=(a[0]||0);b[1]+=(a[1]||0)}return b},doUpdateCls:function(c,b){var a=this.element,d;if(a){if(b){d=c&&a.hasCls(b);a.removeCls(b)}if(c&&d){a.addCls(c)}}}}},0,0,0,0,["drag.proxy.placeholder"],0,[Ext.drag.proxy,'Placeholder'],0));(Ext.cmd.derive('Ext.event.gesture.Recognizer',Ext.Base,{priority:0,handledEvents:[],isStarted:!1,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:function(){return this.reset()},onTouchCancel:function(a){return this.cancel(a)},fire:function(a,d,c,b){this.getOnRecognized().call(this.getCallbackScope(),this,a,d,c,b)},cancel:function(a){if(this.isStarted){this.onCancel(a)}return this.reset()},onCancel:Ext.emptyFn,reset:function(){this.isStarted=!1;return !1}},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,{isSingleTouch:!0,onTouchStart:function(a){if(a.touches.length>1){return this.cancel(a)}}},0,0,0,0,0,0,[Ext.event.gesture,'SingleTouch'],0));(Ext.cmd.derive('Ext.event.gesture.DoubleTap',Ext.event.gesture.SingleTouch,{priority:300,config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(b){var a=this,d=Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,b),c;if(d!==!1){a.isStarted=!0;c=a.lastStartPoint=b.changedTouches[0].point;a.startPoint=a.startPoint||c;a.startTime=b.time;Ext.undefer(a.singleTapTimer)}return d},onTouchMove:function(b){var a=this,d=b.changedTouches[0].point,e=Ext.Element.getViewportScale(),c=Math.round(Math.abs(d.getDistanceTo(a.lastStartPoint)*e));if(c>=a.getMoveDistance()){return a.cancel(b)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,h=b.target,e=a.lastTapTime,j=a.lastTarget,k=b.changedTouches[0].point,c,i,g;a.lastTapTime=d;a.lastTarget=h;if(e){c=d-e;if(c<=f){i=Ext.Element.getViewportScale();g=Math.round(Math.abs(k.getDistanceTo(a.startPoint)*i));if(g<=a.getTapDistance()){if(h!==j){return a.cancel(b)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});return Ext.event.gesture.SingleTouch.prototype.onTouchEnd.call(this,b)}}}if(d-a.startTime>f){a.fire('singletap',b);a.reset()}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fire('singletap',b);a.reset()},a.getMaxDuration())},reset:function(){var a=this;Ext.undefer(a.singleTapTimer);a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null;return Ext.event.gesture.SingleTouch.prototype.reset.call(this)}},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,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},longpress:!1}},onTouchStart:function(a){var c=this,b=Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,a);if(b!==!1){c.startTime=a.time;c.startPoint=a.changedTouches[0].point}return b},tryDragStart:function(b){var a=this,e=b.changedTouches[0].point,c=a.getMinDistance(),f=Ext.Element.getViewportScale(),d=Math.round(Math.abs(e.getDistanceTo(a.startPoint)*f));if(d>=c){a.doDragStart(b)}},doDragStart:function(b,g){var a=this,d=b.changedTouches[0],f=d.point,e=a.info,c;if(g){c=Ext.now();a.startTime=c;a.startPoint=f;e.longpress=!0}else {c=b.time}a.isStarted=!0;a.previousPoint=a.lastPoint=f;a.resetInfo('x',b,d);a.resetInfo('y',b,d);e.time=c;a.fire('dragstart',b,e)},onTouchMove:function(b){var a=this,c,d;if(!a.startPoint){return}if(!a.isStarted){a.tryDragStart(b)}if(!a.isStarted){return}c=b.changedTouches[0];d=c.point;if(a.lastPoint){a.previousPoint=a.lastPoint}a.lastPoint=d;a.lastMoveEvent=b;a.updateInfo('x',b,c);a.updateInfo('y',b,c);a.info.time=b.time;a.fire('drag',b,a.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,i,h){var d=this,g=d.lastPoint[b],e=d.startPoint[b],f=g-e,c=b.toUpperCase(),a=d.info;a.touch=h;a.delta[b]=f;a.absDelta[b]=Math.abs(f);a.previousTime[b]=d.startTime;a.previous[b]=e;a[b]=g;a.direction[b]=0;a['start'+c]=d.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=d.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else if(d<g){h[b]=-1}a['start'+c]=f;a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=a.previous[b]-f;a.startTime=e.startTime},onTouchEnd:function(b){var a=this,d,e,c;if(a.isStarted){d=b.changedTouches[0];e=d.point;c=a.info;a.lastPoint=e;a.updateInfo('x',b,d);a.updateInfo('y',b,d);c.time=b.time;a.onAxisDragEnd('x',c);a.onAxisDragEnd('y',c);a.fire('dragend',b,c)}return Ext.event.gesture.SingleTouch.prototype.onTouchEnd.call(this,b)},onCancel:function(a){var b=this,c=a.changedTouches[0],d=b.info;if(!a.touches.length){b.lastPoint=c.point}b.updateInfo('x',a,c);b.updateInfo('y',a,c);d.time=a.time;b.fire('dragcancel',a,d,!0)},reset:function(){var a=this;a.lastPoint=a.startPoint=a.previousPoint=a.lastPoint=a.lastMoveEvent=null;a.initInfo();return Ext.event.gesture.SingleTouch.prototype.reset.call(this)}},1,0,0,0,0,0,[Ext.event.gesture,'Drag'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.drag)}));(Ext.cmd.derive('Ext.event.gesture.Swipe',Ext.event.gesture.SingleTouch,{priority:600,handledEvents:['swipestart','swipe','swipecancel'],config:{minDistance:80,maxOffset:35,maxDuration:1000},onTouchStart:function(c){var a=this,d=Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,c),b;if(d!==!1){b=c.changedTouches[0];a.startTime=c.time;a.isHorizontal=!0;a.isVertical=!0;a.startX=b.pageX;a.startY=b.pageY}return d},onTouchMove:function(b){var a=this,h=b.changedTouches[0],j=h.pageX,k=h.pageY,l=j-a.startX,m=k-a.startY,c=Math.abs(j-a.startX),d=Math.abs(k-a.startY),i=b.time-a.startTime,f,e,g;if((c===0&&d===0)||(i>a.getMaxDuration())){return a.cancel(b)}if(a.isHorizontal&&d>a.getMaxOffset()){a.isHorizontal=!1}if(a.isVertical&&c>a.getMaxOffset()){a.isVertical=!1}if(!a.isVertical||!a.isHorizontal){f=a.getMinDistance();if(a.isHorizontal&&c<f){e=(l<0)?'left':'right';g=c}else if(a.isVertical&&d<f){e=(m<0)?'up':'down';g=d}}if(!a.isHorizontal&&!a.isVertical){return a.cancel(b)}if(e&&!a.isStarted){a.isStarted=!0;a.fire('swipestart',b,{touch:h,direction:e,distance:g,duration:i})}},onTouchEnd:function(b){var a=this,c,l,m,i,j,e,f,d,k,g,h;if(a.onTouchMove(b)!==!1){c=b.changedTouches[0];l=c.pageX;m=c.pageY;i=l-a.startX;j=m-a.startY;e=Math.abs(i);f=Math.abs(j);d=a.getMinDistance();k=b.time-a.startTime;if(a.isVertical&&f<d){a.isVertical=!1}if(a.isHorizontal&&e<d){a.isHorizontal=!1}if(a.isHorizontal){g=(i<0)?'left':'right';h=e}else if(a.isVertical){g=(j<0)?'up':'down';h=f}a.fire('swipe',b,{touch:c,direction:g,distance:h,duration:k})}return Ext.event.gesture.SingleTouch.prototype.onTouchEnd.call(this,b)},onCancel:function(a){this.fire('swipecancel',a,null,!0)},reset:function(){var a=this;a.startTime=a.isHorizontal=a.isVertical=a.startX=a.startY=null;return Ext.event.gesture.SingleTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Swipe'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.swipe)}));(Ext.cmd.derive('Ext.event.gesture.EdgeSwipe',Ext.event.gesture.Swipe,{priority:500,handledEvents:['edgeswipe','edgeswipestart','edgeswipeend','edgeswipecancel'],config:{minDistance:60},onTouchStart:function(d){var a=this,c=Ext.event.gesture.Swipe.prototype.onTouchStart.call(this,d),b;if(c!==!1){b=d.changedTouches[0];a.direction=null;a.isHorizontal=!0;a.isVertical=!0;a.startX=b.pageX;a.startY=b.pageY}return c},onTouchMove:function(d){var a=this,f=d.changedTouches[0],m=f.pageX,n=f.pageY,g=m-a.startX,h=n-a.startY,j=Math.abs(n-a.startY),i=Math.abs(m-a.startX),e=a.getMinDistance(),k=a.getMaxOffset(),l=d.time-a.startTime,p=Ext.Viewport&&Ext.Element.getViewportWidth(),o=Ext.Viewport&&Ext.Element.getViewportHeight(),b,c;if(a.isVertical&&i>k){a.isVertical=!1}if(a.isHorizontal&&j>k){a.isHorizontal=!1}if(a.isVertical&&a.isHorizontal){if(j>i){a.isHorizontal=!1}else {a.isVertical=!1}}if(a.isHorizontal){b=(g<0)?'left':'right';c=g}else if(a.isVertical){b=(h<0)?'up':'down';c=h}b=a.direction||(a.direction=b);if(b==='up'){c=h*-1}else if(b==='left'){c=g*-1}a.distance=c;if(!c){return a.cancel(d)}if(!a.isStarted){if((b==='right'&&a.startX>e)||(b==='down'&&a.startY>e)||(b==='left'&&(p-a.startX)>e)||(b==='up'&&(o-a.startY)>e)){return a.cancel(d)}a.isStarted=!0;a.startTime=d.time;a.fire('edgeswipestart',d,{touch:f,direction:b,distance:c,duration:l})}else {a.fire('edgeswipe',d,{touch:f,direction:b,distance:c,duration:l})}},onTouchEnd:function(b){var a=this,c;if(a.onTouchMove(b)!==!1){c=b.time-a.startTime;a.fire('edgeswipeend',b,{touch:b.changedTouches[0],direction:a.direction,distance:a.distance,duration:c})}return this.reset()},onCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]},!0)},reset:function(){var a=this;a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null;return Ext.event.gesture.Swipe.prototype.reset.call(this)}},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,config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],onTouchStart:function(a){var c=this,b=Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,a);if(b!==!1){c.startPoint=a.changedTouches[0].point;c.setLongPressTimer(a)}return b},setLongPressTimer:function(b){var a=this;Ext.undefer(a.timer);a.timer=Ext.defer(a.fireLongPress,a.getMinDuration(),a,[b])},onTouchMove:function(b){var a=this,d=b.changedTouches[0].point,e=Ext.Element.getViewportScale(),c=Math.round(Math.abs(d.getDistanceTo(a.startPoint)*e));if(c>=a.getMoveDistance()){return a.cancel(b)}},reset:function(){var a=this;a.timer=a.startPoint=Ext.undefer(a.timer);return Ext.event.gesture.SingleTouch.prototype.reset.call(this)},fireLongPress:function(a){var c=this,b={touch:a.changedTouches[0],duration:c.getMinDuration(),startDrag:c.startDrag};this.fire('taphold',a,b);this.fire('longpress',a,b);this.reset()},startDrag:function(){var b=Ext.event.gesture.Drag.instance,a=this.parentEvent;b.doDragStart(a,!0);Ext.event.publisher.Gesture.instance.claimRecognizer(b,a)}},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:!1,isMultiTouch:!0,onTouchStart:function(d){var a=this,b=a.requiredTouchesCount,e=d.touches,c=e.length;if(c===b){a.isTracking=!0}else if(c>b){return a.cancel(d)}},reset:function(){this.isTracking=!1;return Ext.event.gesture.Recognizer.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'MultiTouch'],0));(Ext.cmd.derive('Ext.event.gesture.Pinch',Ext.event.gesture.MultiTouch,{priority:700,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(d){var a=this,c,f,e,b;if(a.isTracking){c=d.touches;f=c[0].point;e=c[1].point;b=f.getDistanceTo(e);if(b===0){return}if(!a.isStarted){a.isStarted=!0;a.startDistance=b;a.fire('pinchstart',d,{touches:c,distance:b,scale:1})}else {a.fire('pinch',d,{touches:c,distance:b,scale:b/a.startDistance})}}},onTouchEnd:function(a){if(this.isStarted){this.fire('pinchend',a)}return Ext.event.gesture.MultiTouch.prototype.onTouchEnd.call(this,a)},onCancel:function(a){this.fire('pinchcancel',a,null,!0)},reset:function(){this.lastTouches=null;this.startDistance=0;return Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Pinch'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)}));(Ext.cmd.derive('Ext.event.gesture.Rotate',Ext.event.gesture.MultiTouch,{priority:800,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(h){var b=this,c,d,j,i,a,f,e,g;if(b.isTracking){c=h.touches;d=b.lastAngle;j=c[0].point;i=c[1].point;a=j.getAngleTo(i);if(d!==null){g=Math.abs(d-a);f=a+360;e=a-360;if(Math.abs(f-d)<g){a=f}else if(Math.abs(e-d)<g){a=e}}b.lastAngle=a;if(!b.isStarted){b.isStarted=!0;b.startAngle=a;b.fire('rotatestart',h,{touches:c,angle:a,rotation:0})}else {b.fire('rotate',h,{touches:c,angle:a,rotation:a-b.startAngle})}b.lastTouches=Ext.Array.clone(c)}},onTouchEnd:function(a){if(this.isStarted){this.fire('rotateend',a)}return Ext.event.gesture.MultiTouch.prototype.onTouchEnd.call(this,a)},onCancel:function(a){this.fire('rotatecancel',a,null,!0)},reset:function(){var a=this;a.lastTouches=a.lastAngle=a.startAngle=null;return Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,'Rotate'],function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.rotate)}));(Ext.cmd.derive('Ext.event.gesture.Tap',Ext.event.gesture.SingleTouch,{priority:200,handledEvents:['tap','tapcancel'],config:{moveDistance:8},onTouchStart:function(c){var b=this,a=Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,c);if(a!==!1){b.isStarted=!0;b.startPoint=c.changedTouches[0].point}return a},onTouchMove:function(b){var a=this,d=b.changedTouches[0].point,e=Ext.Element.getViewportScale(),c=Math.round(Math.abs(d.getDistanceTo(a.startPoint)*e));if(c>=a.getMoveDistance()){return a.cancel(b)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]});return Ext.event.gesture.SingleTouch.prototype.onTouchEnd.call(this,a)},onCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]},!0)},reset:function(){this.startPoint=null;return Ext.event.gesture.SingleTouch.prototype.reset.call(this)}},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.event.publisher.Focus',Ext.event.publisher.Dom,{type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],publishDelegatedDomEvent:function(a){var c=this,b=a.relatedTarget;if(a.type==='focusout'){if(b==null){c.processFocusIn(a,a.target,document.body)}}else {if(b==null||!b.tagName){b=document.body}c.processFocusIn(a,b,a.target)}},processFocusIn:function(j,b,a){var e=this,i,c,d=[],k=e.focusFly,g,f,h;if((b&&k.attach(b).isFocusSuspended())||(a&&k.attach(a).isFocusSuspended())){return}if(a.compareDocumentPosition){g=!!(a.compareDocumentPosition(b)&4)}for(c=b,i=Ext.dom.Element.getCommonAncestor(a,b,!0);c&&c!==i;c=c.parentNode){d.push(c)}if(d.length){f=e.createSyntheticEvent('focusleave',j,b,a,b,a,g);e.publish(f,d);if(f.stopped){return}}d.length=0;for(c=a;c&&c!==i;c=c.parentNode){d.push(c)}h=e.createSyntheticEvent('focusenter',j,a,b,b,a,g);if(d.length){e.publish(h,d);if(h.stopped){return}}d=e.getPropagatingTargets(i);if(d.length){f=e.createSyntheticEvent('focusmove',j,a,b,b,a,g);e.publish(f,d);if(f.stopped){return}}if(Ext.GlobalEvents.hasListeners.focus){Ext.GlobalEvents.fireEvent('focus',{event:h,toElement:a,fromElement:b,backwards:g})}},createSyntheticEvent:function(f,c,h,b,d,g,e){var a=new Ext.event.Event(c);a.type=f;a.relatedTarget=b;a.target=h;a.fromElement=d;a.toElement=g;a.backwards=e;return a}},0,0,0,0,0,0,[Ext.event.publisher,'Focus'],function(a){var b;a.prototype.focusFly=new Ext.dom.Fly();a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],publishDelegatedDomEvent:function(c){var e=this,d;e.callSuper([c]);d=c.target!==window&&c.target!==document;if(c.type==='blur'){if(!d){if(c.explicitOriginalTarget===a.previousActiveElement){if(c.target===window){Ext.undefer(b);b=0;e.processFocusIn(c,a.previousActiveElement,document.body);a.previousActiveElement=null}}}else {b=Ext.defer(function(){b=0;e.processFocusIn(c,c.target,document.body);a.previousActiveElement=null},1);if(d&&Ext.cache[c.target.id]){Ext.cache[c.target.id].focusinTimeout=b}}a.previousActiveElement=d?c.target:null}else {Ext.undefer(b);b=0;e.processFocusIn(c,a.previousActiveElement||document.body,d?c.target:document.body)}}});Ext.define(null,{override:'Ext.dom.Element',destroy:function(){if(this.focusinTimeout){Ext.undefer(this.focusinTimeout);this.focusinTimeout=null}this.callParent()}})}}));(Ext.cmd.derive('Ext.field.InputMask',Ext.Base,function(a){return {cachedConfig:{blank:'_',characters:{'*':'[A-Za-z0-9]','a':'[a-z]','A':'[A-Z]','0':'[0-9]','9':'[0-9]'},ignoreCase:!0},config:{pattern:null},_cached:!1,_lastEditablePos:null,_mask:null,statics:{active:{},from:function(c,d){var e=a.active,b;if(c===null){b=null}else if(typeof c!=='string'){if(d&&!d._cached){b=d;b.setConfig(c)}else {b=new a(c)}}else if(!(b=e[c])){if(!(b=a.cache.remove(c))){b=new a({pattern:c})}e[c]=b;b._cached=1}else {++b._cached}return b}},constructor:function(b){this.initConfig(b)},release:function(){var b=this,c=a.cache,d;if(b._cached&&!--b._cached){d=b.getPattern();delete a.active[d];c.add(d,b);c.trim(c.maxSize)}},clearRange:function(f,e,l){var d=this,h=d.getBlank(),j=e+l,k=f.length,c='',b,i,g;if(!h){g=d._prefix.length;for(b=0;b<k;++b){if(b<g||b<e||b>=j){c+=f[b]}}c=d.formatValue(c)}else {i=d.getPattern();for(b=0;b<k;++b){if(b<e||b>=j){c+=f[b]}else if(d.isFixedChar(b)){c+=i[b]}else {c+=h}}}return c},formatValue:function(g){var d=this,i=d.getBlank(),b,e,h,f,c;if(!i){f=d._prefix;e=f.length;c=this.insertRange('',g,0);for(b=c.length;b>e&&d.isFixedChar(b-1);){--b}c=(b<e)?f:c.slice(0,b-1)}else if(g){c=d.formatValue('');c=d.insertRange(c,g,0)}else {h=d.getPattern();c='';for(b=0,e=h.length;b<e;++b){if(d.isFixedChar(b)){c+=h[b]}else {c+=i}}}return c},getEditPosLeft:function(c){for(var b=c;b>=0;--b){if(!this.isFixedChar(b)){return b}}return null},getEditPosRight:function(e){var c=this._mask,d=c.length,b;for(b=e;b<d;++b){if(!this.isFixedChar(b)){return b}}return null},getFilledLength:function(c){var d=this,f=d.getBlank(),e,b;if(!f){return c.length}for(b=c&&c.length;b-->0;){e=c[b];if(!d.isFixedChar(b)&&d.isAllowedChar(e,b)){break}}return ++b||d._prefix.length},getSubLength:function(j,c,g){var d=this,f=d.getPattern(),e=0,i=f.length,h=c.length,b;for(b=g;b<i&&e<h;){if(!d.isFixedChar(b)||f[b]===c[e]){if(d.isAllowedChar(c[e++],b,!0)){++b}}else {++b}}return b-g},insertRange:function(l,h,k){var d=this,i=d.getPattern(),e=d.getBlank(),p=d.isFilled(l),m=d._prefix.length,o=i.length,n=h.length,c=l,g,j,b,f;if(!e&&k>c.length){c+=i.slice(c.length,k)}for(b=k,f=0;b<o&&f<n;){j=d.isFixedChar(b);if(!j||i[b]===h[f]){g=h[f++];if(d.isAllowedChar(g,b,!0)){if(b<c.length){if(e||p||b<m){c=c.slice(0,b)+g+c.slice(b+1)}else {c=d.formatValue(c.substr(0,b)+g+c.substr(b))}}else if(!e){c+=g}++b}}else {if(!e&&b>=c.length){c+=i[b]}else if(e&&j&&h[f]===e){++f}++b}}return c},isAllowedChar:function(c,e,i){var b=this,g=b.getPattern(),h,f,d;if(b.isFixedChar(e)){return g[e]===c}h=g[e];f=b.getCharacters();d=f[h];return !d||d.test(c||'')||(i&&c===b.getBlank())},isEmpty:function(c){for(var b=0,d=c.length;b<d;++b){if(!this.isFixedChar(b)&&this.isAllowedChar(c[b],b)){return !1}}return !0},isFilled:function(b){return this.getFilledLength(b)===this._mask.length},isFixedChar:function(b){return Ext.Array.indexOf(this._fixedCharPositions,b)>-1},setCaretToEnd:function(b,e){var d=this.getFilledLength(e),c=this.getEditPosRight(d);if(c!==null){Ext.raf(function(){if(!b.destroyed){b.setCaretPos(c);Ext.raf(function(){if(!b.destroyed){b.setCaretPos(c)}})}})}},onBlur:function(b,c){if(b.getAutoHideInputMask()!==!1){if(this.isEmpty(c)){b.maskProcessed=!0;b.setValue('')}}},onFocus:function(b,c){if(b.getAutoHideInputMask()!==!1){if(!c){b.maskProcessed=!0;b.setValue(this._mask)}}this.setCaretToEnd(b,c)},onChange:function(b,c,e){var f=this,d;if(b.maskProcessed||c===e){b.maskProcessed=!1;return !0}if(c){d=f.formatValue(c);b.maskProcessed=!0;b.setValue(d)}},processAutocomplete:function(c,b){var d=this,e;if(b){if(b.length>d._mask.length){b=b.substr(0,d._mask.length)}e=d.formatValue(b);c.maskProcessed=!0;c.inputElement.dom.value=e;c.setValue(e);this.setCaretToEnd(c,b)}},showEmptyMask:function(b,c){var d=this.formatValue();b.maskProcessed=!0;b.setValue(d);if(c){this.setCaretToEnd(b)}},onKeyDown:function(d,h,c){if(c.ctrlKey||c.metaKey){return}var e=this,o=c.keyCode===c.DELETE,l=o==='Delete',n=l||(c.keyCode===c.BACKSPACE),i=h,b,g,m,f,j,k;if(n){b=d.getCaretPos();f=e._prefix.length;j=d.getTextSelection();k=j[0];m=j[1]-k;if(m){i=e.clearRange(h,k,m)}else if(b<f||(!l&&b===f)){b=f}else {g=l?e.getEditPosRight(b):e.getEditPosLeft(b-1);if(g!==null){i=e.clearRange(h,g,1);b=g}}if(i!==h){d.maskProcessed=!0;d.setValue(i)}c.preventDefault();d.setCaretPos(b)}},onKeyPress:function(f,k,e){var c=this,l=e.keyCode,h=e.getChar(),n=c.getPattern(),m=c._prefix.length,d=k,b,g,j,i;if(l===e.ENTER||l===e.TAB||e.ctrlKey||e.metaKey){return}b=f.getCaretPos();i=f.getTextSelection();if(c.isFixedChar(b)&&n[b]===h){d=c.insertRange(d,h,b);++b}else {g=c.getEditPosRight(b);if(g!==null&&c.isAllowedChar(h,g)){j=i[0];d=c.clearRange(d,j,i[1]-j);d=c.insertRange(d,h,g);b=g+1}}if(d!==k){f.maskProcessed=!0;f.setValue(d)}e.preventDefault();if(b<c._lastEditablePos&&b>m){b=c.getEditPosRight(b)}f.setCaretPos(b)},onPaste:function(e,f,d){var b,c=d.browserEvent.clipboardData;if(c&&c.getData){b=c.getData('text/plain')}else if(Ext.global.clipboardData&&Ext.global.clipboardData.getData){b=Ext.global.clipboardData.getData('Text')}if(b){this.paste(e,f,b,e.getTextSelection())}d.preventDefault()},paste:function(e,f,h,g){var d=this,b=g[0],i=g[1]-b,c=i?d.clearRange(f,b,i):f,j=d.getSubLength(c,h,b);c=d.insertRange(c,h,b);b+=j;b=d.getEditPosRight(b)||b;if(c!==f){e.maskProcessed=!0;e.setValue(c)}e.setCaretPos(b)},syncPattern:function(b){var c=b.getValue(),d;if(b.getAutoHideInputMask()===!1){if(!c){this.showEmptyMask(b)}else {d=this.formatValue(c);b.maskProcessed=!0;b.setValue(d)}}else {if(c){d=this.formatValue(c);b.maskProcessed=!0;b.setValue(d)}}},applyCharacters:function(d){var e={},f=this.getIgnoreCase()?'i':'',c,b;for(c in d){b=d[c];if(typeof b==='string'){b=new RegExp(b,f)}e[c]=b}return e},updatePattern:function(e){var d=this,j=d.getCharacters(),g=0,l=e&&e.length,k=d.getBlank(),h=[],i='',c='',f,b;for(b=0;b<l;++b){f=e[b];if(!j[f]){h.push(c.length);c+=f}else {g=c.length+1;c+=k}}d._lastEditablePos=g;d._mask=c;d._fixedCharPositions=h;for(b=0;b<c.length&&d.isFixedChar(b);++b){i+=c[b]}d._prefix=i}}},1,0,0,0,0,0,[Ext.field,'InputMask'],function(a){a.cache=new Ext.util.LRU();a.cache.maxSize=100}));(Ext.cmd.derive('Ext.fx.State',Ext.Base,{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},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(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;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 d=='string'){switch(d){case 'translate':if(e){c=a.length;if(c==0){break}b.translateX=a[0];if(c==1){break}b.translateY=a[1];if(c==2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c==0){break}b.rotateX=a[0];if(c==1){break}b.rotateY=a[1];if(c==2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c==0){break}b.scaleX=a[0];if(c==1){break}b.scaleY=a[1];if(c==2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c==0){break}b.skewX=a[0];if(c==1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}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,{factoryConfig:{type:'animation'},isAnimation:!0,config:{name:'',element:null,before:null,from:{},to:{},after:null,states:{},duration:300,easing:'linear',iteration:1,direction:'normal',delay:0,onBeforeStart:null,callback:null,onEnd:null,onBeforeEnd:null,scope:null,reverse:null,preserveEndState:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_TOP:'top',DIRECTION_DOWN:'down',DIRECTION_BOTTOM:'bottom',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(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},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(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.destroying=!0;this.stop();Ext.Evented.prototype.destroy.call(this);this.destroying=!1;this.destroyed=!0},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[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:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',top:'down',down:'up',bottom:'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 p=this.getElementBox(),c=this.getContainerBox(),a=p?p:c,k=this.getFrom(),n=this.getTo(),d=this.getOut(),b=this.getOffset(),h=this.getDirection(),o=this.getUseCssTransform(),q=this.getReverse(),e=0,f=0,g,i,j,l,m;if(typeof b==='string'){g=!0;b=parseFloat(b)}if(q){h=this.reverseDirectionMap[h]}switch(h){case this.DIRECTION_UP:case this.DIRECTION_TOP:if(g){b=a.height*b/100};if(d){f=c.top-a.top-a.height-b}else {f=c.bottom-a.bottom+a.height+b};break;case this.DIRECTION_DOWN:case this.DIRECTION_BOTTOM:if(g){b=a.height*b/100};if(d){f=c.bottom-a.bottom+a.height+b}else {f=c.top-a.height-a.top-b};break;case this.DIRECTION_RIGHT:if(g){b=a.width*b/100};if(d){e=c.right-a.right+a.width+b}else {e=c.left-a.left-a.width-b};break;case this.DIRECTION_LEFT:if(g){b=a.width*b/100};if(d){e=c.left-a.left-a.width-b}else {e=c.right-a.right+a.width+b};break;}i=(d)?0:e;j=(d)?0:f;if(o){k.setTransform({translateX:i,translateY:j})}else {k.set('left',i);k.set('top',j)}l=(d)?e:0;m=(d)?f:0;if(o){n.setTransform({translateX:l,translateY:m})}else {n.set('left',l);n.set('top',m)}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:!0}},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:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.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:!0,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:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:case this.DIRECTION_TOP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:case this.DIRECTION_BOTTOM:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return Ext.fx.animation.Abstract.prototype.getData.call(this)}},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:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.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:!0,before:{}}},0,0,0,0,["animation.popOut"],0,[Ext.fx.animation,'PopOut'],0));(Ext.cmd.derive('Ext.fx.Animation',Ext.Base,{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a=='string'){b=a;a={}}else if(a&&a.type){b=a.type}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}},1,0,0,0,0,0,[Ext.fx,'Animation'],0));(Ext.cmd.derive('Ext.fx.runner.Css',Ext.Evented,{prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0,'x':!0,'y':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',customProperties:{x:!0,y:!0},formattedNameCache:{'x':'left','y':'top'},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.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 i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e)}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){this.activeElement=e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g)}}}}}this.activeElement=null;return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,b){var k=typeof a,i=this.DEFAULT_UNIT_LENGTH,j=this.customProperties[b],g,d,c,f,h,e;if(a===null){return ''}if(k==='string'){if(this.lengthProperties[b]){if(!Ext.dom.Element.hasUnit(a)){a=a+i;if(j){a=this.getCustomValue(a,b)}}}return a}else if(k==='number'){if(a===0){return '0'}if(this.lengthProperties[b]){a=a+i;if(j){a=this.getCustomValue(a,b)}return a}if(this.angleProperties[b]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[b]){return a+this.DEFAULT_UNIT_DURATION}}else if(b==='transform'){g=this.transformMethods;h=[];for(c=0,f=g.length;c<f;c++){d=g[c];h.push(d+'('+this.formatValue(a[d],d)+')')}return h.join(' ')}else if(Ext.isArray(a)){e=[];for(c=0,f=a.length;c<f;c++){e.push(this.formatValue(a[c],b))}return (e.length>0)?e.join(', '):'none'}return a},getCustomValue:function(a,b){var c=Ext.fly(this.activeElement);if(b==='x'){a=c.translateXY(parseInt(a,10)).x}else if(b==='y'){a=c.translateXY(null,parseInt(a,10)).y}return a+this.DEFAULT_UNIT_LENGTH}},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:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};this.transitionQueue={toData:{},transitionData:{}};return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},getElementId:function(a){return a.getId?a.getId():a.id},onAnimationEnd:function(d,a,b,c,n){var l=this.getElementId(d),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||(!c&&!a.preserveEndState)){f=a.toPropertyNames;for(e=0,m=f.length;e<m;e++){i=f[e];if(g&&!g.hasOwnProperty(i)){h[i]=null}}}if(a.after){Ext.merge(h,a.after)}this.applyStyles(k);if(a.onEnd){a.onEnd.call(a.scope||this,d,c)}b.fireEvent('animationend',b,d,c);this.fireEvent('animationend',this,b,d,c);Ext.AnimationQueue.stop(Ext.emptyFn,b)},onAllAnimationsEnd:function(d){var a=this.getElementId(d),b=this.transitionQueue,c={};delete this.runningAnimationsData[a];c[a]={'transition-property':null,'transition-duration':null,'transition-timing-function':null,'transition-delay':null};delete b.toData[a];delete b.transitionData[a];this.applyStyles(c);this.fireEvent('animationallend',this,d)},hasRunningAnimations:function(c){var b=this.getElementId(c),a=this.runningAnimationsData;return a.hasOwnProperty(b)&&a[b].sessions.length>0},refreshRunningAnimationsData:function(i,m,f,g){var s=this.getElementId(i),r=this.runningAnimationsData,e=r[s];if(!e){return}var o=e.nameMap,n=e.nameList,c=e.sessions,h,j,p,d,b,a,k,q,l=!1;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};n.length=0;for(b=0;b<h;b++){a=c[b];this.onAnimationEnd(i,a.data,a.animation,f,g)}c.length=0}else {for(b=0;b<h;b++){a=c[b];k=a.map;q=a.list;for(j=0,p=m.length;j<p;j++){d=m[j];if(k[d]){delete k[d];Ext.Array.remove(q,d);a.length--;if(--o[d]==0){delete o[d];Ext.Array.remove(n,d)}}}if(a.length==0){c.splice(b,1);b--;h--;l=!0;this.onAnimationEnd(i,a.data,a.animation,f)}}}if(!g&&!f&&c.length==0&&l){this.onAllAnimationsEnd(i)}},getRunningData:function(b){var a=this.runningAnimationsData;if(!a.hasOwnProperty(b)){a[b]={nameMap:{},nameList:[],sessions:[]}}return a[b]},getTestElement:function(){var e=this,b=e.testElement,d=e.iframe,a,c;if(b){if(b.ownerDocument.defaultView!==d.contentWindow){a=d.contentDocument;a.body.appendChild(b);e.testElementComputedStyle=a.defaultView.getComputedStyle(b)}}else {d=e.iframe=document.createElement('iframe');d.setAttribute('tabIndex',-1);c=d.style;c.setProperty('visibility','hidden','important');c.setProperty('width','0px','important');c.setProperty('height','0px','important');c.setProperty('position','absolute','important');c.setProperty('border','0px','important');c.setProperty('zIndex','-1000','important');document.body.appendChild(d);a=d.contentDocument;a.open();a.writeln('</body>');a.close();e.testElement=b=a.createElement('div');b.style.setProperty('position','absolute','important');a.body.appendChild(b);e.testElementComputedStyle=a.defaultView.getComputedStyle(b)}return b},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(s){var a=this,H=[],J=a.lengthProperties,F={},L=a.transitionQueue.toData,d={},K=a.transitionQueue.transitionData,h,i,l,j,G,f,e,t,u,r,q,v,w,I,c,n,z,D,g,b,k,E,m,x,p,o,y,C,B,A;if(!a.listenersAttached){a.attachListeners()}s=Ext.Array.from(s);for(v=0,I=s.length;v<I;v++){c=s[v];c=Ext.factory(c,Ext.fx.Animation);H.push(c);a.activeElement=h=c.getElement();Ext.AnimationQueue.start(Ext.emptyFn,c);D=window.getComputedStyle(h.dom);i=a.getElementId(h);d[i]=d=Ext.merge({},c.getData());A=c.getOnBeforeStart();if(A){A.call(c.scope||a,h)}c.fireEvent('animationstart',c,d);a.fireEvent('animationstart',a,c,d);G=d.before;l=d.from;j=d.to;d.fromPropertyNames=f=[];d.toPropertyNames=e=[];for(b in j){if(j.hasOwnProperty(b)){j[b]=k=a.formatValue(j[b],b);g=a.formatName(b);x=J.hasOwnProperty(b);if(!x){k=a.getCssStyleValue(g,k)}if(l.hasOwnProperty(b)){l[b]=m=a.formatValue(l[b],b);if(!x){m=a.getCssStyleValue(g,m)}if(k!==m){f.push(g);e.push(g)}}else {E=D.getPropertyValue(g);if(k!==E){e.push(g)}}}}n=e.length;if(n===0){a.onAnimationEnd(h,d,c);continue}r=a.getRunningData(i);y=r.sessions;if(y.length>0){a.refreshRunningAnimationsData(h,Ext.Array.merge(f,e),!0,d.replacePrevious)}p=r.nameMap;o=r.nameList;z={};for(w=0;w<n;w++){b=e[w];z[b]=!0;if(!p.hasOwnProperty(b)){p[b]=1;o.push(b)}else {p[b]++}}C={element:h,map:z,list:e.slice(),length:n,data:d,animation:c};y.push(C);c.on('stop','onAnimationStop',a);q=Ext.apply({},G);Ext.apply(q,l);if(o.length>0){f=Ext.Array.difference(o,f);e=Ext.Array.merge(f,e);q['transition-property']=f}F[i]=q;L[i]=Ext.apply({},j);K[i]={'transition-property':e,'transition-duration':d.duration,'transition-timing-function':d.easing,'transition-delay':d.delay};c.startTime=Date.now()}a.activeElement=null;u=a.$className;a.applyStyles(F);t=function(b){if(b.data===u&&b.source===window){window.removeEventListener('message',t,!1);a.applyStyles(a.transitionQueue.toData)}};if(!a.messageTimerId){B=function(){var b;a.messageTimerId=null;if(Ext.isIE){a.applyStyles(a.transitionQueue.transitionData);if(!a.messageFollowupId){b=function(){a.messageFollowupId=null;window.addEventListener('message',t,!1);window.postMessage(u,'*')};a.messageFollowupId=Ext.raf(b)}}else {Ext.merge(a.transitionQueue.toData,a.transitionQueue.transitionData);window.addEventListener('message',t,!1);window.postMessage(u,'*')}};a.messageTimerId=Ext.raf(B)}return H},onAnimationStop:function(j){var a=this,d=a.runningAnimationsData,h=0,g=0,f,i,e,c,k,b;for(f in d){if(d.hasOwnProperty(f)){i=d[f];e=i.sessions;h++;for(c=0,k=e.length;c<k;c++){b=e[c];if(b.animation===j){a.refreshRunningAnimationsData(b.element,b.list.slice(),!1);if(j.destroying){g++}}}}}if(h===g){if(a.messageFollowupId){Ext.unraf(a.messageFollowupId);a.messageFollowupId=null}if(a.messageTimerId){Ext.unraf(a.messageTimerId);a.messageTimerId=null}Ext.apply(a.transitionQueue,{toData:{},transitionData:{}})}}},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:!1},getData:function(){var j=this.getTo(),f=this.getFrom(),k=this.getBefore(),m=this.getAfter(),h=this.getOut(),d=this.getDirection(),i=this.getElement(),g=i.getWidth(),n=i.getHeight(),l=h?'100% 100%':'0% 0%',c=1,e=1,a={rotateY:0,translateZ:0},b={rotateY:0,translateZ:0};if(d=="left"||d=="right"){if(h){e=0.5;b.translateZ=g;b.rotateY=-90}else {c=0.5;a.translateZ=g;a.rotateY=90}}k['transform-origin']=l;m['transform-origin']=null;j.set('transform',b);f.set('transform',a);f.set('opacity',c);j.set('opacity',e);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:!1},refresh:function(){var i=this,o=i.getElement(),l=o.dom.getBoundingClientRect(),g=l.width,c=l.height,j=i.getFrom(),m=i.getTo(),h=i.getOut(),n=i.getDirection(),f=0,b=0,d=0,e=0,a,k;switch(n){case 'up':if(h){a='-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';b=c*3+'px';e=c+'px'}else {a='-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';b=-c*2+'px';e=0};break;case 'down':if(h){a='-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';b=-c*2+'px';e=0}else {a='-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';b=c*3+'px';e=c+'px'};break;case 'right':if(h){a='-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';f=-g*2+'px';d=0}else {a='-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';d=-g*2+'px'};break;case 'left':if(h){a='-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';d=-g*2+'px'}else {a='-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';f=-g*2+'px';d=0};break;}if(!h){k=b;b=e;e=k;k=f;f=d;d=k}j.set('mask-image',a);j.set('mask-size',g*3+'px '+c*3+'px');j.set('mask-position-x',f);j.set('mask-position-y',b);m.set('mask-position-x',d);m.set('mask-position-y',e)}},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:!0}},0,0,0,0,0,0,[Ext.fx.animation,'WipeOut'],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(),a=(b/this.getAcceleration()),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+(this.getStartVelocity()*c)}},0,0,0,0,0,0,[Ext.fx.easing,'Bounce'],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.BoundMomentum',Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},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=!1;this.isOutOfBound=!1;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=(b==1)?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)<this.getMinVelocity()){this.isEnded=!0}if(a>=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if((b==1&&a<c)||(b==-1&&a>c)){this.isBouncingBack=!0}}}else {if(Math.round(a)==g){this.isEnded=!0}}}this.lastValue=a;return a}},0,0,0,0,0,0,[Ext.fx.easing,'BoundMomentum'],0));(Ext.cmd.derive('Ext.fx.easing.EaseIn',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,h=a/b,g=Math.pow(h,this.getExponent()),c=d+(g*e);if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,["easing.ease-in"],0,[Ext.fx.easing,'EaseIn'],0));(Ext.cmd.derive('Ext.fx.easing.EaseOut',Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+(g*e);if(a>=b){this.isEnded=!0;return f}return c}},0,0,0,0,["easing.ease-out"],0,[Ext.fx.easing,'EaseOut'],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.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=!0;Ext.getWin().on({animationstart:'onAnimationStart',animationend:'onAnimationEnd',scope:this})},onAnimationStart:function(g){var f=g.browserEvent.animationName,a=this.animationElementMap[f],e=this.runningAnimationsMap[a][f],c=this.elementEndStates,d=c[a],b={};if(d){delete c[a];b[a]=d;this.applyStyles(b)}if(e.before){b[a]=e.before;this.applyStyles(b)}},onAnimationEnd:function(f){var e=f.target,b=f.browserEvent.animationName,c=this.animationElementMap,h=c[b],g=this.runningAnimationsMap,d=g[h],a=d[b];if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,e)}if(a.onEnd){a.onEnd.call(a.scope||this,e)}delete c[b];delete d[b];this.removeKeyframesRule(b)},generateAnimationId:function(){return 'animation-'+(++this.uniqueId)},run:function(f){var q={},t=this.elementEndStates,s=this.animationElementMap,p=this.runningAnimationsMap,b,n,d,e,h,r,a,g,c,o,k,l,m,i,j;if(!this.listenersAttached){this.attachListeners()}f=Ext.Array.from(f);for(h=0,r=f.length;h<r;h++){a=f[h];a=Ext.factory(a,Ext.fx.Animation);d=a.getElement().getId();e=a.getName()||this.generateAnimationId();s[e]=d;a=a.getData();n=a.states;this.addKeyframesRule(e,n);b=p[d];if(!b){b=p[d]={}}b[e]=a;o=[];k=[];l=[];m=[];i=[];j=[];for(g in b){if(b.hasOwnProperty(g)){c=b[g];o.push(g);k.push(c.duration);l.push(c.easing);m.push(c.delay);i.push(c.direction);j.push(c.iteration)}}q[d]={'animation-name':o,'animation-duration':k,'animation-timing-function':l,'animation-delay':m,'animation-direction':i,'animation-iteration-count':j};if(a.preserveEndState){t[d]=n['100%']}}this.applyStyles(q)},addKeyframesRule:function(k,i){var e,f,d,g,c,h,b,a,j;g=this.getStyleSheet();c=g.cssRules;b=c.length;g.insertRule('@'+this.vendorPrefix+'keyframes '+k+'{}',b);d=c[b];for(e in i){f=i[e];c=d.cssRules;b=c.length;h=[];for(a in f){j=this.formatValue(f[a],a);a=this.formatName(a);h.push(a+':'+j)}d.insertRule(e+'{'+h.join(';')+'}',b)}return this},removeKeyframesRule:function(f){var b=this.getStyleSheet(),c=b.cssRules,a,e,d;for(a=0,e=c.length;a<e;a++){d=c[a];if(d.name===f){b.removeRule(a);break}}return this}},1,0,0,0,0,0,[Ext.fx.runner,'CssAnimation'],0));(Ext.cmd.derive('Ext.list.AbstractTreeItem',Ext.Widget,{isTreeListItem:!0,cachedConfig:{expandable:!1,expanded:!1,iconCls:'',leaf:!0,loading:!1,selected:!1,selectedParent:!1},config:{iconClsProperty:'iconCls',indent:null,owner:null,node:null,over:null,parentItem:null,text:{lazy:!0,$value:''},textProperty:'text'},updateNode:function(b){if(b){var a=this,g=a.itemMap,e,h,i,d,f,c;a.element.dom.setAttribute('data-recordId',b.internalId);if(!g){e=b.childNodes;h=a.getOwner();a.itemMap=g={};for(d=0,i=e.length;d<i;++d){c=e[d];if(c.data.visible){f=h.createItem(c,a);g[c.internalId]=f;a.insertItem(f,null)}}}a.setExpanded(b.isExpanded());a.doNodeUpdate(b)}},updateSelected:function(b){if(!this.isConfiguring){var a=this.getParentItem();while(a&&!a.isRootListItem){a.setSelectedParent(b);a=a.getParentItem()}}},collapse:function(){this.getNode().collapse()},expand:function(){this.getNode().expand()},getToolElement:Ext.emptyFn,insertItem:Ext.emptyFn,isExpanded:function(){return this.getExpanded()},isSelectionEvent:Ext.emptyFn,isToggleEvent:Ext.emptyFn,nodeCollapse:function(e,b){var a=this,d=a.getOwner(),c=a.preventAnimation?null:d.getAnimation();a.nodeCollapseBegin(c,b);if(!c){a.nodeCollapseEnd(b)}},nodeCollapseBegin:function(d,c){var a=this,b=a.getOwner();a.setExpanded(!1);b.fireEvent('itemcollapse',b,a)},nodeCollapseEnd:function(a){if(!a&&!this.destroying){this.getOwner().updateLayout()}},nodeExpand:function(e){var a=this,d=a.getOwner(),c=a.getFloated(),b=!c&&d.getAnimation();a.nodeExpandBegin(b);if(!b){a.nodeExpandEnd()}},nodeExpandBegin:function(c){var a=this,b=a.getOwner();a.setExpanded(!0);b.fireEvent('itemexpand',b,a)},nodeExpandEnd:function(){if(!this.destroying){this.getOwner().updateLayout()}},nodeInsert:function(f,g){var a=this,d=a.getOwner(),h=a.itemMap,i=f.internalId,b=d.getItem(f),e=null,c;if(b){c=b.getParentItem();c.removeItem(b);if(c!==a){c.doUpdateExpandable();b.setParentItem(a)}}else {b=a.getOwner().createItem(f,a)}h[i]=b;if(g){e=h[g.internalId]}a.insertItem(b,e);a.doUpdateExpandable();d.fireEvent('iteminsert',d,a,b,e);d.updateLayout()},nodeRemove:function(f){var a=this,d=a.itemMap,c=a.getOwner(),e=f.internalId,b=d[e];if(b){delete d[e];a.removeItem(b);b.destroy();a.doUpdateExpandable();c.fireEvent('itemremove',c,a,b);c.updateLayout()}},nodeUpdate:function(a,b){this.doNodeUpdate(a)},onClick:function(c){var a=this,b=a.getOwner(),e=a.getNode(),d={event:c,item:a,node:e,tree:b,select:e.get('selectable')!==!1&&a.isSelectionEvent(c),toggle:a.isToggleEvent(c)};if(b.fireEvent('itemclick',b,d)!==!1){if(d.toggle){a.toggleExpanded();c.preventDefault()}if(d.select){b.setSelection(a.getNode())}}},removeItem:Ext.emptyFn,destroy:function(){var a=this,b=a.itemMap,c=a.getOwner(),d;if(b){for(d in b){b[d].destroy()}a.itemMap=null}if(c){c.removeItem(a.getNode())}a.setNode(null);a.setParentItem(null);a.setOwner(null);Ext.Widget.prototype.destroy.call(this)},privates:{doNodeUpdate:function(b,e){var a=this,d=this.getTextProperty(),c=this.getIconClsProperty();if(d){a.setText(b.data[d])}if(c){a.setIconCls(b.data[c])}a.setLoading(b.isLoading());a.setLeaf(b.isLeaf());a.doUpdateExpandable()},doUpdateExpandable:function(){var a=this.getNode();this.setExpandable(a.isExpandable())},toggleExpanded:function(){if(this.isExpanded()){this.collapse()}else {this.expand()}},updateIndent:function(c){var a=this.itemMap,b;for(b in a){a[b].setIndent(c)}},updateOwner:function(a){this.parent=a}}},0,0,["widget"],{"widget":!0},0,0,[Ext.list,'AbstractTreeItem'],0));Ext.define('Ext.overrides.list.AbstractTreeItem',{override:'Ext.list.AbstractTreeItem',config:{floated:null}});(Ext.cmd.derive('Ext.list.RootTreeItem',Ext.list.AbstractTreeItem,{isRootListItem:!0,element:{reference:'element',tag:'ul',cls:'x-treelist-root-container'},insertItem:function(b,a){if(a){b.element.insertBefore(a.element)}else {this.element.appendChild(b.element)}},isToggleEvent:function(a){return !1}},0,0,["widget"],{"widget":!0},0,0,[Ext.list,'RootTreeItem'],0));(Ext.cmd.derive('Ext.mixin.ItemRippler',Ext.Base,{mixinId:'itemrippler',config:{itemRipple:null},shouldRippleItem:function(c,d){var a,b;if(d.getTarget(this.noItemRippleSelector,this.element)){return !1}a=c&&this.getItemRipple();if(a&&c.isWidget){b=c.shouldRipple(d);if(b){a=Ext.apply({},a,b)}}return a},rippleItem:function(d,c){if(!d){return}var a=this,h=c.type.match(a.rippleStateRe),b=a.shouldRippleItem(d,c),k=b&&b.release,j=k===!0,e=d.isWidget?d.el:d,i,l,f,g;if(b&&h&&j){a.$rippleStart=c.getXY()}if(b&&e&&((!h&&j)||(h&&k!==!0))){g=a.$rippledItems||(a.$rippledItems=[]);f=a.$rippleStart;if(f){i=c.getXY();l=Math.sqrt(Math.pow((i[0]-f[0]),2)+Math.pow((i[1]-f[1]),2));if(l<=8){e.ripple(c,b);g.push(e)}}else {e.ripple(c,b);g.push(e)}a.$rippleStart=null}},destroyAllRipples:function(){for(var a=this.$rippledItems;a&&a.length;){a.pop().destroyAllRipples()}},privates:{noItemRippleSelector:'.x-item-no-ripple, .x-item-no-tap',rippleStateRe:/start|down/}},0,0,0,0,0,0,[Ext.mixin,'ItemRippler'],0));(Ext.cmd.derive('Ext.list.TreeItem',Ext.list.AbstractTreeItem,{collapsedCls:'x-treelist-item-collapsed',expandedCls:'x-treelist-item-expanded',floatedToolCls:'x-treelist-item-tool-floated',leafCls:'x-treelist-item-leaf',expandableCls:'x-treelist-item-expandable',hideIconCls:'x-treelist-item-hide-icon',loadingCls:'x-treelist-item-loading',selectedCls:'x-treelist-item-selected',selectedParentCls:'x-treelist-item-selected-parent',withIconCls:'x-treelist-item-with-icon',hoverCls:'x-treelist-item-over',rowHoverCls:'x-treelist-row-over',isTreeListItem:!0,config:{rowCls:null},rowClsProperty:'rowCls',element:{reference:'element',tag:'li',cls:'x-treelist-item',children:[{reference:'rowElement',cls:'x-treelist-row',children:[{reference:'wrapElement',cls:'x-treelist-item-wrap',children:[{reference:'iconElement',cls:'x-treelist-item-icon'},{reference:'textElement',cls:'x-treelist-item-text'},{reference:'expanderElement',cls:'x-treelist-item-expander'}]}]},{reference:'itemContainer',tag:'ul',cls:'x-treelist-container'},{reference:'toolElement',cls:'x-treelist-item-tool'}]},constructor:function(b){Ext.list.AbstractTreeItem.prototype.constructor.call(this,b);var a=this.toolElement.dom;a.parentNode.removeChild(a)},getToolElement:function(){return this.toolElement},insertItem:function(b,a){if(a){b.element.insertBefore(a.element)}else {this.itemContainer.appendChild(b.element)}},isSelectionEvent:function(b){var a=this.getOwner();return (!this.isToggleEvent(b)||!a.getExpanderOnly()||a.getSelectOnExpander())},isToggleEvent:function(b){var a=!1;if(this.getOwner().getExpanderOnly()){a=b.target===this.expanderElement.dom}else {a=!this.itemContainer.contains(b.target)}return a},nodeCollapseBegin:function(b,c){var a=this,d=a.itemContainer,e;if(a.expanding){a.stopAnimation(a.expanding)}e=b&&d.getHeight();Ext.list.AbstractTreeItem.prototype.nodeCollapseBegin.call(this,b,c);if(b){d.dom.style.display='block';a.collapsingForExpand=c;a.collapsing=this.runAnimation(Ext.merge({from:{height:e},to:{height:0},callback:a.nodeCollapseDone,scope:a},b))}},nodeCollapseDone:function(c){var a=this,b=a.itemContainer;if(!a.destroying&&!a.destroyed){a.collapsing=null;b.dom.style.display='';b.setHeight(null);a.nodeCollapseEnd(a.collapsingForExpand)}},nodeExpandBegin:function(b){var a=this,c=a.itemContainer,d;if(a.collapsing){a.stopAnimation(a.collapsing)}Ext.list.AbstractTreeItem.prototype.nodeExpandBegin.call(this,b);if(b){d=c.getHeight();c.setHeight(0);a.expanding=a.runAnimation(Ext.merge({to:{height:d},callback:a.nodeExpandDone,scope:a},b))}},nodeExpandDone:function(){this.expanding=null;this.itemContainer.setHeight(null);this.nodeExpandEnd()},removeItem:function(a){this.itemContainer.removeChild(a.element)},updateNode:function(b,a){this.syncIndent();Ext.list.AbstractTreeItem.prototype.updateNode.call(this,b,a)},updateExpandable:function(b){var a=this.getNode();this.updateExpandCls();if(a){a.set('expandable',b)}},updateExpanded:function(b){var a=this.getNode();this.updateExpandCls();if(a){a.set('expanded',b)}},updateIconCls:function(b,c){var a=this,d=a.element;a.doIconCls(a.iconElement,b,c);a.doIconCls(a.toolElement,b,c);d.toggleCls(a.withIconCls,!!b);d.toggleCls(a.hideIconCls,b===null)},updateLeaf:function(a){this.element.toggleCls(this.leafCls,a)},updateLoading:function(a){this.element.toggleCls(this.loadingCls,a)},updateOver:function(b){var a=this;a.element.toggleCls(a.hoverCls,!!b);a.rowElement.toggleCls(a.rowHoverCls,b>1)},updateRowCls:function(b,a){this.rowElement.replaceCls(a,b)},updateSelected:function(a,e){var b=this,d=b.selectedCls,c=b.getToolElement();Ext.list.AbstractTreeItem.prototype.updateSelected.call(this,a,e);b.element.toggleCls(d,a);if(c){c.toggleCls(d,a)}},updateSelectedParent:function(b){var a=this;a.element.toggleCls(a.selectedParentCls,b);var c=a.getToolElement();if(c){c.toggleCls(a.selectedCls,b)}},updateText:function(a){this.textElement.update(a)},privates:{doNodeUpdate:function(a){Ext.list.AbstractTreeItem.prototype.doNodeUpdate.call(this,a);this.setRowCls(a&&a.data[this.rowClsProperty])},doIconCls:function(b,c,a){if(a){b.removeCls(a)}if(c){b.addCls(c)}},syncIndent:function(){var a=this,d=a.getIndent(),c=a.getNode(),b;if(c){b=c.data.depth-1;a.wrapElement.dom.style.marginLeft=(b*d)+'px'}},updateExpandCls:function(){if(!this.updatingExpandCls){var a=this,e=a.getExpandable(),b=a.element,f=a.getExpanded(),d=a.expandedCls,c=a.collapsedCls;a.updatingExpandCls=!0;b.toggleCls(a.expandableCls,e);if(e){b.toggleCls(d,f);b.toggleCls(c,!f)}else {b.removeCls([d,c])}a.updatingExpandCls=!1}},updateIndent:function(b,a){this.syncIndent();Ext.list.AbstractTreeItem.prototype.updateIndent.call(this,b,a)}}},1,["treelistitem"],["widget","treelistitem"],{"widget":!0,"treelistitem":!0},["widget.treelistitem"],0,[Ext.list,'TreeItem'],function(a){a.prototype.floatedCls=[Ext.Widget.prototype.floatedCls,'x-treelist-item-floated']}));Ext.define('Ext.overrides.list.TreeItem',{override:'Ext.list.TreeItem',setFloated:function(e){var a=this,c=a.element,b=a.placeholder,f,d;if(a.treeItemFloated!==e){if(e){b=c.clone(!1,!0);b.id+='-placeholder';a.placeholder=Ext.get(b);a.wasExpanded=a.getExpanded();a.setExpanded(!0);c.addCls(a.floatedCls);c.dom.parentNode.insertBefore(b,c.dom);a.floater=a.createFloater()}else if(b){d=a.wasExpanded;f=a.getNode();a.setExpanded(d);if(!d&&f.isExpanded()){a.preventAnimation=!0;f.collapse();a.preventAnimation=!1}a.floater.remove(a,!1);c.removeCls(a.floatedCls);b.dom.parentNode.insertBefore(c.dom,b.dom);b.destroy();a.floater.destroy();a.placeholder=a.floater=null}a.treeItemFloated=e}},getFloated:function(){return this.treeItemFloated},runAnimation:function(a){return this.itemContainer.addAnimation(a)},stopAnimation:function(a){a.jumpToEnd()},privates:{createFloater:function(){var c=this,g=c.getOwner(),a=c.up('treelist'),b,f=c.getToolElement(),d=a.expandedWidth,e=a.defaultListWidth;if(d===null){d=e}c.floater=b=new Ext.container.Container({cls:a.self.prototype.element.cls+' '+a.uiPrefix+a.getUi()+' x-treelist-floater',floating:!0,width:Ext.isIE8?e:(d-f.getWidth()),shadow:!1,hidden:!0,renderTo:Ext.getBody(),listeners:{element:'el',click:function(a){return g.onClick(a)}}});b.add(c);b.show();b.el.alignTo(f,'tr?');return b}}});(Ext.cmd.derive('Ext.list.Tree',Ext.Gadget,{expanderFirstCls:'x-treelist-expander-first',expanderOnlyCls:'x-treelist-expander-only',highlightPathCls:'x-treelist-highlight-path',microCls:'x-treelist-micro',uiPrefix:'x-treelist-',element:{reference:'element',cls:'x-treelist x-unselectable',listeners:{click:'onClick',touchstart:'onTouchStart',touchend:'onTouchEnd',mouseenter:'onMouseEnter',mouseleave:'onMouseLeave',mouseover:'onMouseOver'},children:[{reference:'toolsElement',cls:'x-treelist-toolstrip',listeners:{click:'onToolStripClick',mouseover:'onToolStripMouseOver'}}]},cachedConfig:{animation:{duration:500,easing:'ease'},expanderFirst:!0,expanderOnly:!0},config:{floatLeafItems:!1,defaults:{xtype:'treelistitem'},highlightPath:null,iconSize:null,indent:null,micro:!1,overItem:null,selection:null,selectOnExpander:!1,singleExpand:null,store:null,ui:null},twoWayBindable:{selection:1},publishes:{selection:1},defaultBindProperty:'store',constructor:function(a){Ext.Widget.prototype.constructor.call(this,a);this.publishState('selection',this.getSelection())},destroy:function(){var a=this;a.unfloatAll();a.activeFloater=null;a.setSelection(null);a.setStore(null);Ext.Widget.prototype.destroy.call(this)},updateOverItem:function(f,c){var e={},d=2,a,b;for(a=f;a;a=this.getItem(b.parentNode)){b=a.getNode();e[b.internalId]=!0;a.setOver(d);d=1}if(c&&!c.destroyed){for(a=c;a;a=this.getItem(b.parentNode)){b=a.getNode();if(e[b.internalId]){break}a.setOver(0)}}},applyMicro:function(a){return Boolean(a)},applySelection:function(a,c){var b=this.getStore();if(!b){a=null}if(b&&a!==null&&!(a instanceof Ext.data.Model)){a=b.getNodeById(a)}if(a&&a.get('selectable')===!1){a=c}return a},updateSelection:function(d,e){var b=this,a,c;if(!b.destroying){a=b.getItem(e);if(a){a.setSelected(!1)}a=b.getItem(d);if(a){a.setSelected(!0);while(c=a.getParentItem()){c.setExpanded(!0);a=c}}b.fireEvent('selectionchange',b,d)}},applyStore:function(a){return a&&Ext.StoreManager.lookup(a,'tree')},updateStore:function(c,b){var a=this,d;if(b){if(!b.destroyed){if(b.getAutoDestroy()){b.destroy()}else {a.storeListeners.destroy()}}a.removeRoot();a.storeListeners=null}if(c){a.storeListeners=c.on({destroyable:!0,scope:a,filterchange:'onFilterChange',nodeappend:'onNodeAppend',nodecollapse:'onNodeCollapse',nodeexpand:'onNodeExpand',nodeinsert:'onNodeInsert',noderemove:'onNodeRemove',rootchange:'onRootChange',update:'onNodeUpdate'});d=c.getRoot();if(d){a.createRootItem(d)}}if(!a.destroying){a.updateLayout()}},updateExpanderFirst:function(a){this.element.toggleCls(this.expanderFirstCls,a)},updateExpanderOnly:function(a){this.element.toggleCls(this.expanderOnlyCls,!a)},updateHighlightPath:function(a){this.element.toggleCls(this.highlightPathCls,a)},updateMicro:function(b){var a=this;if(!b){a.unfloatAll();a.activeFloater=null}a.element.toggleCls(a.microCls,b)},updateUi:function(e,b){var a=this,d=a.element,c=a.uiPrefix;if(b){d.removeCls(c+b)}if(e){d.addCls(c+e)}delete a.iconSize;a.syncIconSize()},getItem:function(a){var b=this.itemMap,c;if(a&&b){c=b[a.internalId]}return c||null},getItemConfig:function(b,a){return Ext.apply({parentItem:a.isRootListItem?null:a,owner:this,node:b,indent:this.getIndent()},this.getDefaults())},privates:{checkForOutsideClick:function(b){var a=this.activeFloater;if(!a.element.contains(b.target)){this.unfloatAll()}},collapsingForExpand:!1,createItem:function(d,f){var c=this,e=Ext.create(c.getItemConfig(d,f)),g=c.toolsElement,a,b;if(f.isRootListItem){a=e.getToolElement();if(a){b=c.findVisiblePreviousSibling(d);if(!b){g.insertFirst(a)}else {b=c.getItem(b);a.insertAfter(b.getToolElement())}a.dom.setAttribute('data-recordId',d.internalId);a.isTool=!0}}c.itemMap[d.internalId]=e;return e},createRootItem:function(c){var a=this,b;a.itemMap={};a.rootItem=b=new Ext.list.RootTreeItem({indent:a.getIndent(),node:c,owner:a});a.element.appendChild(b.element);a.itemMap[c.internalId]=b},findVisiblePreviousSibling:function(b){var a=b.previousSibling;while(a){if(a.data.visible){return a}a=a.previousSibling}return null},floatItem:function(b,c){var a=this,d;if(b.getFloated()){return}if(a.toolMouseListeners){a.toolMouseListeners.destroy();a.floaterMouseListeners.destroy();a.floaterMouseListeners=a.toolMouseListeners=null}a.unfloatAll();if(!c&&!a.getFloatLeafItems()&&b.getNode().isLeaf()){return}a.activeFloater=d=b;a.floatedByHover=c;b.setFloated(!0);if(c){a.toolMouseListeners=b.getToolElement().monitorMouseLeave(300,a.checkForMouseLeave,a);a.floaterMouseListeners=(b.floater||b).el.monitorMouseLeave(300,a.checkForMouseLeave,a);d.element.on('mouseover','onMouseOver',a)}else {Ext.on('mousedown','checkForOutsideClick',a)}},shouldRippleItem:function(a,b){if(a&&a.getSelected()){return !1}return this.mixins.itemrippler.shouldRippleItem.call(this,a,b)},onTouchStart:function(a){this.doItemRipple(a)},onTouchEnd:function(a){this.doItemRipple(a)},doItemRipple:function(b){var d=this,a=b.getTarget('[data-recordId]'),c;if(a){c=a.getAttribute('data-recordId');a=d.itemMap[c];if(a&&d.shouldRippleItem(a,b)){this.rippleItem(a,b)}}},onClick:function(c){var a=c.getTarget('[data-recordId]'),b;if(a){b=a.getAttribute('data-recordId');a=this.itemMap[b];if(a){a.onClick(c)}}},onMouseEnter:function(a){this.onMouseOver(a)},onMouseLeave:function(){this.setOverItem(null)},onMouseOver:function(b){var a=Ext.Component.from(b);this.setOverItem(a&&a.isTreeListItem&&a)},checkForMouseLeave:function(c){var a=this.activeFloater,b=c.getRelatedTarget();if(a){if(b!==a.getToolElement().dom&&!a.element.contains(b)){this.unfloatAll()}}},onFilterChange:function(a){this.onRootChange(a.getRoot())},onNodeAppend:function(a,c){if(a){var b=this.itemMap[a.internalId];if(b){b.nodeInsert(c,null)}}},onNodeCollapse:function(b){var a=this.itemMap[b.internalId];if(a){a.nodeCollapse(b,this.collapsingForExpand)}},onNodeExpand:function(f){var a=this,b=a.itemMap[f.internalId],d,h,c,g,e;if(b){if(!b.isRootItem&&a.getSingleExpand()){a.collapsingForExpand=!0;g=(b.getParentItem()||a.rootItem).getNode();d=g.childNodes;for(c=0,h=d.length;c<h;++c){e=d[c];if(e!==f){e.collapse()}}a.collapsing=!1}b.nodeExpand(f)}},onNodeInsert:function(b,d,c){var a=this.itemMap[b.internalId];if(a){a.nodeInsert(d,c)}},onNodeRemove:function(a,d,c){if(a&&!c){var b=this.itemMap[a.internalId];if(b){b.nodeRemove(d)}}},onNodeUpdate:function(d,b,e,c){var a=this.itemMap[b.internalId];if(a){a.nodeUpdate(b,c)}},onRootChange:function(b){var a=this;a.removeRoot();if(b){a.createRootItem(b)}a.updateLayout();a.fireEvent('refresh',a)},removeItem:function(e){var c=this.itemMap,d=e.internalId,b,a;if(c){b=c[d];if(b.getParentItem()===null){a=b.getToolElement();if(a){this.toolsElement.removeChild(a)}}delete c[d]}},removeRoot:function(){var a=this,b=a.rootItem;if(b){a.element.removeChild(b.element);a.rootItem=a.itemMap=Ext.destroy(b)}},onToolStripClick:function(c){var a=c.getTarget('[data-recordId]'),b;if(a){b=a.getAttribute('data-recordId');a=this.itemMap[b];if(a){if(a===this.activeFloater){this.unfloatAll()}else {this.floatItem(a,!1)}}}},onToolStripMouseOver:function(c){var a=c.getTarget('[data-recordId]'),b;if(a){b=a.getAttribute('data-recordId');a=this.itemMap[b];if(a){this.floatItem(a,!0)}}},syncIconSize:function(){var a=this,b=a.iconSize||(a.iconSize=parseInt(a.element.getStyle('background-position'),10));a.setIconSize(b)},unfloatAll:function(){var a=this,b=a.activeFloater;if(b){b.setFloated(!1);a.activeFloater=null;if(a.floatedByHover){if(a.toolMouseListeners){a.toolMouseListeners.destroy();a.floaterMouseListeners.destroy();a.floaterMouseListeners=a.toolMouseListeners=null}b.element.un('mouseover','onMouseOver',a)}else {Ext.un('mousedown','checkForOutsideClick',a)}}},defaultIconSize:22,updateIconSize:function(a){this.setIndent(a||this.defaultIconSize)},updateIndent:function(b){var a=this.rootItem;if(a){a.setIndent(b)}}}},1,["treelist"],["widget","treelist"],{"widget":!0,"treelist":!0},["widget.treelist"],[[Ext.mixin.ItemRippler.prototype.mixinId||Ext.mixin.ItemRippler.$className,Ext.mixin.ItemRippler]],[Ext.list,'Tree'],0));Ext.define('Ext.overrides.list.Tree',{override:'Ext.list.Tree',canMeasure:!0,constructor:function(a){(arguments.callee.$previous||Ext.Widget.prototype.constructor).call(this,a);if(!Ext.isIE8){this.element.on('resize','onElResize',this)}},beforeLayout:function(){this.syncIconSize()},onElResize:function(b,a){if(!this.getMicro()&&this.canMeasure){this.expandedWidth=a.width}},privates:{defaultListWidth:200,expandedWidth:null}});(Ext.cmd.derive('Ext.mixin.ConfigProxy',Ext.Mixin,function(a){return {mixinConfig:{id:'configproxy',extended:function(e,b,d){var c=d.proxyConfig;b.$configProxies=Ext.apply({},b.superclass.self.$configProxies);if(c){delete d.proxyConfig;a.processClass(b,c)}}},onClassMixedIn:function(c){var b=c.prototype,d=b.proxyConfig,e=b.initConfig;b.$proxiedConfigs=null;c.$configProxies={};b.initConfig=function(b){e.apply(this,arguments);this.$proxiedConfigs=null;return this};if(d){delete b.proxyConfig;a.processClass(c,d)}},getProxiedConfigs:function(k){var b=this,j=b.config,c=b.self.$configProxies[k],f=c&&c.length,d,h,e,g,i;if(f&&b.isConfiguring){h=b.$proxiedConfigs||(b.$proxiedConfigs={});while(f-->0){d=c[f];h[g=d.name]=d;if((i=j[g])!==undefined){(e||(e={}))[g]=i}}}return e},mergeProxiedConfigs:function(h,c,g){var e=this,b=c,d=e.getProxiedConfigs(h),f;if(d){if(!c){b=d}else if(c.constructor===Object){f=e.self.getConfigurator();b=f.merge(e,Ext.clone(c),d)}}if(g&&b===c){b=Ext.clone(b)}return b},statics:{processClass:function(l,o){var p=Ext.Config,e=l.prototype,q={},m=l.$configProxies,j,c,i,d,f,h,k,b,g,n;for(f in o){i=p.get(f).names.get;c=o[f];if(Ext.isArray(c)){h=null}else {h=c.methods;c=c.configs}if(!(g=m[f])){m[f]=g=[]}else {m[f]=g=g.slice()}for(d=0,k=h&&h.length;d<k;++d){if(!e[b=h[d]]){e[b]=a.wrapFn(i,b)}}for(d=0,k=c&&c.length;d<k;++d){j=p.get(n=c[d]);q[n]=undefined;g.push(j);if(!e[b=j.names.get]){e[b]=a.wrapGet(i,b)}if(!e[b=j.names.set]){e[b]=a.wrapSet(i,b,n)}}}l.addConfig(q)},wrapFn:function(b,c){return function(){var d=this[b]();return d&&d[c].apply(d,arguments)}},wrapGet:function(c,b){return function(){var d=this[c]();return d&&d[b]()}},wrapSet:function(d,c,b){return function(h){var g=this,f,e;if(!g.isConfiguring||h!==undefined){f=g[d]();e=g.$proxiedConfigs;if(e&&e[b]){delete e[b];f=null}if(f){f[c](h)}}return g}}}}},0,0,0,0,0,0,[Ext.mixin,'ConfigProxy'],0));(Ext.cmd.derive('Ext.mixin.ConfigState',Ext.Mixin,{mixinConfig:{id:'configstate'},alternateStateConfig:'',toggleConfigState:function(e){var a=this,b=a.capturedConfigState,c=a.getConfig(a.alternateStateConfig),d;if(!c){return}if(e){b={};for(d in c){b[d]=a.getConfig(d)}a.capturedConfigState=b;a.setConfig(c)}else if(!a.isConfiguring&&b){a.setConfig(b);delete a.capturedConfigState}}},0,0,0,0,0,0,[Ext.mixin,'ConfigState'],0));(Ext.cmd.derive('Ext.mixin.Container',Ext.Mixin,{mixinConfig:{id:'container'},isContainer:!0,nameHolder:!1,referenceHolder:!1,getNamedItems:function(){var a=Ext.ComponentManager;if(a.referencesDirty){a.fixReferences()}return this.nameRefs||null},getReferences:function(){var a=Ext.ComponentManager;if(a.referencesDirty){a.fixReferences()}return this.refs||null},lookup:function(b){var a=this.getReferences();return (a&&a[b])||null},lookupName:function(b){var a=this.getNamedItems();return (a&&a[b])||null},lookupReference:function(a){return this.lookup(a)},privates:{attachNameRef:function(a){var c=this,e=a.name||a._name,b,d;if(e&&!c.destroying&&!c.destroyed){d=c.nameRefs||(c.nameRefs={});b=d[e];if(!b){b=a.shareableName?[a]:a}else if(!b.isInstance){b.push(a)}d[e]=b}},attachReference:function(b){var a=this,d,c;if(!a.destroying&&!a.destroyed){c=a.refs||(a.refs={});d=b.referenceKey;c[d]=b}},containerOnAdded:function(b,a){if(a){Ext.ComponentManager.markReferencesDirty()}},containerOnRemoved:function(a){if(!a){Ext.ComponentManager.markReferencesDirty()}},initContainerInheritedState:function(b,h){var a=this,d=a.getController(),f=a.getSession(),g=a.getConfig('viewModel',!0),e=a.reference,c=a.referenceHolder;if(a.nameHolder){b.nameHolder=a}if(d){b.referenceHolder=d;c=!0}else if(c){b.referenceHolder=a}if(c){b.referencePath=''}else if(e&&a.isParentReference){b.referencePath=a.referenceKey+'.'}if(f){b.session=f}if(g){b.viewModelPath=''}else if(e&&a.isParentReference){b.viewModelPath=a.viewModelKey+'.'}},setupReference:function(a){var b;if(a&&a.charAt(b=a.length-1)==='>'){this.isParentReference=!0;a=a.substring(0,b)}return a}}},0,0,0,0,0,0,[Ext.mixin,'Container'],0));(Ext.cmd.derive('Ext.util.KeyMap',Ext.Base,{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else if(b.key){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c<d;c++){a.addBinding(b[c])}return}a.bindings.push(Ext.apply({keyCode:a.processKeys(e)},b))},removeBinding:function(b){var c=this,e=c.bindings,g=e.length,d,a,f;if(c.processing){c.bindings=e.slice(0)}f=c.processKeys(b.key);for(d=0;d<g;d++){a=e[d];if((a.fn||a.handler)===(b.fn||b.handler)&&a.scope===b.scope){if(b.alt===a.alt&&b.ctrl===a.ctrl&&b.shift===a.shift){if(Ext.Array.equals(a.keyCode,f)){Ext.Array.erase(c.bindings,d,1);return}}}}},processKeys:function(a){var g=!1,f,e,d,c,b;if(a.test){return a}if(Ext.isString(a)){e=[];d=a.toUpperCase();for(b=0,c=d.length;b<c;b++){e.push(d.charCodeAt(b))}a=e;g=!0}if(!Ext.isArray(a)){a=[a]}if(!g){for(b=0,c=a.length;b<c;b++){f=a[b];if(Ext.isString(f)){a[b]=f.toUpperCase().charCodeAt(0)}}}return a},handleTargetEvent:function(b){var a=this,d,c,f,e;if(a.enabled){d=a.bindings;b=a.processEvent.apply(a.processEventScope||a,arguments);if(b){a.lastKeyEvent=b;if(a.ignoreInputFields&&Ext.fly(b.target).isInputField()){return}if(!b.getKey){return b}a.processing=!0;for(c=0,f=d.length;c<f;c++){e=a.processBinding(d[c],b);if(e===!1){a.processing=!1;return e}}a.processing=!1}}},processEvent:Ext.identityFn,processBinding:function(c,b){if(this.checkModifiers(c,b)){var g=b.getKey(),h=c.fn||c.handler,i=c.scope||this,d=c.keyCode,e=c.defaultEventAction,f,j,a;if(d.test){if(d.test(String.fromCharCode(b.getCharCode()))){a=h.call(i,g,b);if(a!==!0&&e){b[e]()}if(a===!1){return a}}}else if(d.length){for(f=0,j=d.length;f<j;f++){if(g===d[f]){a=h.call(i,g,b);if(a!==!0&&e){b[e]()}if(a===!1){return a}break}}}}},checkModifiers:function(f,g){var d=['shift','ctrl','alt'],a,e,c,b;for(a=0,e=d.length;a<e;a++){b=d[a];c=f[b];if(!(c===undefined||(c===g[b+'Key']))){return !1}}return !0},on:function(a,g,f){var b,c,d,e;if(Ext.isObject(a)&&!Ext.isArray(a)){b=a.key;c=a.shift;d=a.ctrl;e=a.alt}else {b=a}this.addBinding({key:b,shift:c,ctrl:d,alt:e,fn:g,scope:f})},un:function(a,g,f){var b,c,d,e;if(Ext.isObject(a)&&!Ext.isArray(a)){b=a.key;c=a.shift;d=a.ctrl;e=a.alt}else {b=a}this.removeBinding({key:b,shift:c,ctrl:d,alt:e,fn:g,scope:f})},isEnabled:function(){return !!this.enabled},enable:function(){var a=this;if(!a.enabled){a.target.on(a.eventName,a.handleTargetEvent,a,{capture:a.capture,priority:a.priority});a.enabled=!0}},disable:function(){var a=this;if(a.enabled){if(!a.target.destroyed){a.target.removeListener(a.eventName,a.handleTargetEvent,a)}a.enabled=!1}},setDisabled:function(a){if(a){this.disable()}else {this.enable()}},destroy:function(b){var a=this,c=a.target;a.bindings=[];a.disable();a.target=null;if(b){c.destroy();Ext.raise("Using removeTarget argument in KeyMap destructor is not supported.")}a.callParent()}},1,0,0,0,0,0,[Ext.util,'KeyMap',Ext,'KeyMap'],0));(Ext.cmd.derive('Ext.util.KeyNav',Ext.Base,{alternateClassName:'Ext.KeyNav',disabled:!1,defaultEventAction:!1,forceKeyDown:!1,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,c,d;a=a||{};c={target:a.target,ignoreInputFields:a.ignoreInputFields,eventName:b.getKeyEvent('forceKeyDown' in a?a.forceKeyDown:b.forceKeyDown,a.eventName),capture:a.capture};if(b.map){b.map.destroy()}b.initConfig(a);if(a.processEvent){c.processEvent=a.processEvent;c.processEventScope=a.processEventScope||b}if(a.priority){c.priority=a.priority}if(a.keyMap){d=b.map=a.keyMap}else {d=b.map=new Ext.util.KeyMap(c);b.destroyKeyMap=!0}b.addBindings(a);d.disable();if(!a.disabled){d.enable()}},addBindings:function(d){var c=this,i=c.map,g=Ext.util.KeyNav.keyOptions,h=Ext.event.Event,f=d.scope||c,a,b,e;for(b in d){a=d[b];e=b.length===1?b.charCodeAt(0):(g[b]||h[b.toUpperCase()]);if(e!=null){b=e}if(a&&(b.length===1||!isNaN(b=parseInt(b,10)))){if(typeof a==='function'){a={handler:a,defaultEventAction:(d.defaultEventAction!==undefined)?d.defaultEventAction:c.defaultEventAction}}i.addBinding({key:b,ctrl:a.ctrl,shift:a.shift,alt:a.alt,handler:Ext.Function.bind(c.handleEvent,a.scope||f,[a.handler||a.fn,c],!0),defaultEventAction:(a.defaultEventAction!==undefined)?a.defaultEventAction:c.defaultEventAction})}}},handleEvent:function(d,a,b,c){c.lastKeyEvent=a;return b.call(this,a)},destroy:function(b){var a=this;if(b){Ext.raise("removeEl argument in KeyNav destructor is not supported anymore.")}if(a.destroyKeyMap){a.map.destroy(b)}a.map=null;a.callParent()},enable:function(){if(this.map){this.map.enable();this.disabled=!1}},disable:function(){if(this.map){this.map.disable()}this.disabled=!0},setDisabled:function(a){this.map.setDisabled(a);this.disabled=a},isEnabled:function(){return !this.disabled},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.mixin.FocusableContainer',Ext.Mixin,{mixinConfig:{id:'focusablecontainer'},isFocusableContainer:!0,focusableContainer:!1,resetFocusPosition:!1,activeChildTabIndex:0,inactiveChildTabIndex:-1,allowFocusingDisabledChildren:!1,focusableContainerEl:'el',privates:{initFocusableContainer:function(a){var c,b,d;if(this.focusableContainer){a=a!=null?a:!0;this.doInitFocusableContainer(a)}else {c=this.getFocusables();for(b=0,d=c.length;b<d;b++){c[b].ownerFocusableContainer=null}}},doInitFocusableContainer:function(d){var a=this,c=a.focusableContainerEl,b;if(!c.isElement){c=a.focusableContainerEl=a[c]}if(a.initFocusableContainerKeyNav){a.initFocusableContainerKeyNav(c)}if(d){a.clearFocusables();if(!a.isDisabled()){b=a.findNextFocusableChild({step:1})||a.findNextFocusableChild({beforeRender:!0});if(b){a.activateFocusable(b)}}}b=a.findNextFocusableChild({firstTabbable:!0});a.activateFocusableContainer(!!b&&!a.isDisabled())},initFocusableContainerKeyNav:function(b){var a=this;if(!a.focusableKeyNav){b=b||a.focusableContainerEl;a.focusableKeyNav=new Ext.util.KeyNav({target:b,disabled:!0,eventName:'keydown',processEvent:a.processFocusableContainerKeyEvent,processEventScope:a,scope:a,tab:a.onFocusableContainerTabKey,enter:{handler:a.onFocusableContainerEnterKey,ctrl:!1,shift:!1,alt:!1},space:{handler:a.onFocusableContainerSpaceKey,ctrl:!1,shift:!1,alt:!1},up:{handler:a.onFocusableContainerUpKey,ctrl:!1,shift:!1,alt:!1},down:{handler:a.onFocusableContainerDownKey,ctrl:!1,shift:!1,alt:!1},left:{handler:a.onFocusableContainerLeftKey,ctrl:!1,shift:!1,alt:!1},right:{handler:a.onFocusableContainerRightKey,ctrl:!1,shift:!1,alt:!1}})}},destroyFocusableContainer:function(){this.focusableKeyNav=Ext.destroy(this.focusableKeyNav)},activateFocusableContainer:function(b){var a=this.focusableKeyNav;if(a){a.setDisabled(!b)}},isFocusableContainerActive:function(){var a=this.focusableKeyNav;return a?!a.disabled:!1},getFocusables:function(){return this.items.items},initDefaultFocusable:function(){var e=this,f=!1,b,a,c,d;b=e.getFocusables();d=b.length;if(!d){return}for(c=0;c<d;c++){a=b[c];if(!a.isDisabled()&&a.isFocusable()){f=!0;break}}if(!f){return}a=e.findNextFocusableChild({items:b,step:!0});if(a){e.activateFocusable(a)}return a},clearFocusables:function(f){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b<e;b++){a=c[b];if(!a.destroyed&&a.focusable&&a.isTabbable()){d.deactivateFocusable(a)}}},processFocusableContainerKeyEvent:function(a){if(!Ext.fly(a.target).isInputField()){return a}},activateFocusable:function(a){a.setTabIndex(this.activeChildTabIndex)},deactivateFocusable:function(a){a.setTabIndex(this.inactiveChildTabIndex)},onFocusableContainerTabKey:function(){return !0},onFocusableContainerEnterKey:function(){return !0},onFocusableContainerSpaceKey:function(){return !0},onFocusableContainerUpKey:function(a){a.preventDefault();return this.moveChildFocus(a,!1)},onFocusableContainerDownKey:function(a){a.preventDefault();return this.moveChildFocus(a,!0)},onFocusableContainerLeftKey:function(a){a.preventDefault();return this.moveChildFocus(a,!1)},onFocusableContainerRightKey:function(a){a.preventDefault();return this.moveChildFocus(a,!0)},getFocusableFromEvent:function(b){var a=Ext.Component.from(b);return a},moveChildFocus:function(a,b){var c=this.getFocusableFromEvent(a);return this.focusChild(c,b,a)},focusChild:function(c,b){var a=this.findNextFocusableChild({child:c,step:b});if(a){a.focus()}return a},findNextFocusableChild:function(e){var k=e.beforeRender,j=e.firstTabbable,g,a,i,c,d,b,f,h;g=e.items||this.getFocusables();c=e.step!=null?e.step:1;i=e.child;h=!!this.allowFocusingDisabledChildren;d=Ext.Array.indexOf(g,i);c=c===!0?1:c===!1?-1:c;f=g.length;b=c>0?(d<f?d+c:0):(d>0?d+c:f-1);for(;;b+=c){if(d<0&&(b>=f||b<0)){return null}else if(b>=f){b=-1;continue}else if(b<0){b=f;continue}else if(b===d){return null}a=g[b];if(!a||!a.focusable||(a.isDisabled()&&!h)){continue}if(j){if(a.isTabbable&&a.isTabbable()){return a}}else if(k||(a.isFocusable&&a.isFocusable())){return a}}return null},onFocusEnter:function(d){var b=this,c=d.toComponent,a;if(c===b){a=b.initDefaultFocusable();if(a){a.focus()}}b.activateFocusableContainer(!0)},onFocusLeave:function(b){var a=this;if(a.resetFocusPosition){a.clearFocusables();a.initDefaultFocusable()}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.focusableContainer||a.destroying||a.destroyed){return}a.clearFocusables();a.activateFocusable(b)},afterFocusableChildFocus:function(b){var a=this;if(!a.focusableContainer||a.destroying||a.destroyed){return}a.lastFocusedChild=b},onFocusableChildAdd:function(a){var b=this;if(a.focusable){a.ownerFocusableContainer=b}},onFocusableChildRemove:function(a){var c=this,b;a.ownerFocusableContainer=null;if(a===c.lastFocusedChild){c.lastFocusedChild=null;b=c.initDefaultFocusable();if(a.hasFocus){b=b||a.findFocusTarget();if(b){b.focus()}}}a=b||c.findNextFocusableChild({step:1,beforeRender:!0});if(!a){c.activateFocusableContainer(!1)}},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this,c;if(!a.focusableContainer||a.destroying||a.destroyed){return}if(a.containsFocus){c=Ext.ComponentManager.getActiveComponent();a.clearFocusables();a.activateFocusable(c)}else if(a.resetFocusPosition||a.lastFocusedChild==null){a.clearFocusables();if(b.hasFocus){a.activateFocusable(b);c=b}}else {a.deactivateFocusable(b);if(b===a.lastFocusedChild){a.clearFocusables();a.activateFocusable(b)}c=a.findNextFocusableChild({firstTabbable:!0})}if(!c){a.initDefaultFocusable()}a.activateFocusableContainer(!0)},beforeFocusableChildDisable:function(b){var a=this,c;if(!a.focusableContainer||a.destroying||a.destroyed){return}if(b.hasFocus){c=a.findNextFocusableChild({child:b})||b.findFocusTarget();if(c){c.focus()}}},onFocusableChildDisable:function(c){var a=this,b;if(!a.focusableContainer||a.destroying||a.destroyed){return}b=a.findNextFocusableChild({firstTabbable:!0});if(!b){b=a.initDefaultFocusable()}if(!b){a.activateFocusableContainer(!1)}},beforeFocusableChildHide:function(a){return this.beforeFocusableChildDisable(a)},onFocusableChildHide:function(a){return this.onFocusableChildDisable(a)},beforeFocusableChildShow:function(a){return this.beforeFocusableChildEnable(a)},onFocusableChildShow:function(a){return this.onFocusableChildEnable(a)},onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn},deprecated:{7:{configs:{enableFocusableContainer:'focusableContainer'}}}},0,0,0,0,0,0,[Ext.mixin,'FocusableContainer'],0));(Ext.cmd.derive('Ext.mixin.Hookable',Ext.Mixin,{mixinConfig:{id:'hookable'},bindHook:function(e,a,c,b,d){e.afterMethod(a,c||a,this,b,d);return this},unbindHook:function(c,a,b){c.removeMethodListener(a,b||a,this);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(g){var k=g.prototype,f=k.requiredScripts,c=g._classHooks,h=c.onCreated,j=g.prototype.xtypes,i=Ext.manifest.mashup||{},e=k.mashupConfig,d,b;if(f){delete k.requiredScripts;c.onCreated=function(){var m=this,k=[],l=Ext.Array.slice(arguments),n=i.redirect||{};f=k.concat(f);e=e&&i[e.key];if(j){for(d=0;!e&&d<j.length;++d){e=i[j[d]]}}for(d=0;d<f.length;d++){b=f[d];if(n[b]===!1){continue}b=n[b]||b;if(b.indexOf('{')>-1){if(e){b=new Ext.Template(b).apply(e)}}k.push(b)}if(!k.length){c.onCreated=h;c.onCreated.call(m,l);return}Ext.Loader.loadScripts({url:k,cache:!0,onError:function(d,b){g.scriptError=g.prototype.scriptError=b;c.onCreated=h;c.onCreated.call(m,l)},onLoad:function(){c.onCreated=h;c.onCreated.call(m,l)}})}}}},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(c,d,g,f){if(!c){return d}var e=d?Ext.Object.chain(d):{},b;for(b in c){if(!f||!(b in e)){e[b]={fn:null,config:c[b]}}}return e}},responsiveFormulas:{$value:0,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this)},privates:{statics:{active:!1,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,e=a.context,d=Ext.GlobalEvents,f=a.timer,c;if(f){a.timer=Ext.unasap(f)}a.updateContext();Ext.suspendLayouts();d.fireEvent('beforeresponsiveupdate',e);for(c in b){b[c].setupResponsiveContext()}d.fireEvent('beginresponsiveupdate',e);for(c in b){b[c].updateResponsiveState()}d.fireEvent('responsiveupdate',e);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.asap(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},processConfig:function(c,d,b){var g=d&&d[b],f=c.config,h,e;if(g){e=c.self.getConfigurator();h=e.configs[b];f[b]=h.merge(g,f[b],c)}},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(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d<c;b.wide=!b.tall;b.landscape=b.portrait=!1;if(!b.platform){b.platform=Ext.platformTags}b[Ext.dom.Element.getOrientation()]=!0}},afterClassMixedIn:function(f){var c=f.prototype,e=c.responsiveConfig,d=c.responsiveFormulas,b;if(e||d){b={};if(e){delete c.responsiveConfig;b.responsiveConfig=e}if(d){delete c.responsiveFormulas;b.responsiveFormulas=d}f.getConfigurator().add(b)}},applyResponsiveConfig:function(b){for(var c in b){b[c].fn=Ext.createRuleFn(c)}return b},applyResponsiveFormulas:function(c){var e={},b,d;if(c){for(d in c){if(Ext.isString(b=c[d])){b=Ext.createRuleFn(b)}e[d]=b}}return e},getResponsiveState:function(){var f=a.context,c=this.getResponsiveConfig(),e={},b,d;if(c){for(d in c){b=c[d];if(b.fn.call(this,f)){Ext.merge(e,b.config)}}}return e},setupResponsiveContext:function(){var b=this.getResponsiveFormulas(),d=a.context,c;if(b){for(c in b){d[c]=b[c].call(this,d)}}},transformInstanceConfig:function(c){var d=this,b;a.register(d);if(c){a.processConfig(d,c,'responsiveConfig');a.processConfig(d,c,'responsiveFormulas')}d.setupResponsiveContext();b=d.getResponsiveState();if(c){b=Ext.merge({},c,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:!1,lastSelected:null,lastFocused:null,deselectOnContainerClick:!0,selected:!0,pruneRemoved:!0,selection:null,twoWayBindable:{selection:1},publishes:{selection:1}},modes:{SINGLE:!0,SIMPLE:!0,MULTI:!0},onNavigate:function(a){},selectableEventHooks:{add:'onSelectionStoreAdd',remove:'onSelectionStoreRemove',update:'onSelectionStoreUpdate',clear:{fn:'onSelectionStoreClear',priority:1000},load:'refreshSelection',refresh:'refreshSelection'},initSelectable:function(){this.publishState('selection',this.getSelection())},applySelected:function(a){if(!a.isCollection){a=new Ext.util.Collection(a)}a.addObserver(this);return a},applyMode:function(a){a=a?a.toUpperCase():'SINGLE';return this.modes[a]?a:'SINGLE'},updateStore:function(d,a){var b=this,c=Ext.apply({},b.selectableEventHooks,{scope:b});if(a&&Ext.isObject(a)&&a.isStore){if(a.autoDestroy){a.destroy()}else {a.un(c)}}if(d){d.on(c);b.refreshSelection()}},selectAll:function(c){var a=this,b=a.getStore().getRange();a.select(b,!0,c)},deselectAll:function(b){var a=this;a.deselect(a.getSelected().getRange(),b);a.setLastSelected(null);a.setLastFocused(null)},updateSelection:function(a){if(this.changingSelection){return}if(a){this.select(a)}else {this.deselectAll()}},selectWithEvent:function(b){var a=this,c=a.isSelected(b);switch(a.getMode()){case 'MULTI':case 'SIMPLE':if(c){a.deselect(b)}else {a.select(b,!0)};break;case 'SINGLE':if(a.getAllowDeselect()&&c){a.deselect(b)}else {a.select(b,!1)};break;}},selectRange:function(a,b,g){var f=this,h=f.getStore(),d=[],e,c;if(f.getDisableSelection()){return}if(a>b){e=b;b=a;a=e}for(c=a;c<=b;c++){d.push(h.getAt(c))}this.doMultiSelect(d,g)},select:function(a,e,c){var b=this,d;if(b.getDisableSelection()){return}if(typeof a==="number"){a=[b.getStore().getAt(a)]}if(!a){return}if(b.getMode()=="SINGLE"&&a){d=a.length?a[0]:a;b.doSingleSelect(d,c)}else {b.doMultiSelect(a,e,c)}},doSingleSelect:function(b,a){this.doMultiSelect([b],!1,a)},doMultiSelect:function(a,h,g){if(a===null||this.getDisableSelection()){return}a=!Ext.isArray(a)?[a]:a;var j=this,b=j.getSelected(),e=b.getCount(),f=[],i=a.length,k=!1,c=0,d;if(!h&&e){f=b.getRange()}for(c=0;c<i;c++){d=a[c];if(typeof d==='number'){a[c]=store.getAt(d)}}b.suppressEvent=g;b.splice(e,f,a);b.suppressEvent=!1},deselect:function(a,f){var e=this;if(e.getDisableSelection()){return}a=Ext.isArray(a)?a:[a];var c=e.getSelected(),g=e.getStore(),h=a.length,b,d;for(b=0;b<h;b++){d=a[b];if(typeof d==='number'){a[b]=g.getAt(d)}}c.suppressEvent=f;c.remove(a);c.suppressEvent=!1},onCollectionRemove:function(a,e){var b=this,c=b.getLastSelected(),d=e.items;if(c&&!a.contains(c)){b.setLastSelected(a.last())}b.onItemDeselect(d,a.suppressEvent);if(!a.suppressEvent){b.fireSelectionChange(d)}},onCollectionAdd:function(a,d){var b=this,c=d.items;b.setLastSelected(a.last());b.onItemSelect(c,a.suppressEvent);if(!a.suppressEvent){b.fireSelectionChange(c)}},updateLastFocused:function(a,b){this.onLastFocusChanged(b,a)},fireSelectionChange:function(b){var a=this;a.changingSelection=!0;a.setSelection(a.getLastSelected()||null);a.changingSelection=!1;a.fireAction('selectionchange',[a,b],'getSelections')},getSelections:function(){return this.getSelected().getRange()},isSelected:function(a){a=Ext.isNumber(a)?this.getStore().getAt(a):a;return this.getSelected().indexOf(a)!==-1},hasSelection:function(){return this.getSelected().getCount()>0},refreshSelection:function(){var g=this,b=g.getSelected(),h=b.getRange(),j=h.length,a=g.getStore().getData(),f=[],i=[],e,c,d;if(g.getPruneRemoved()){a=a.getSource()||a;for(e=0;e<j;e++){c=h[e];d=a.get(a.getKey(c));if(d){if(d!==c){f.push(c);i.push(d)}}else {f.push(c)}}}b.suppressEvent=!0;b.splice(b.getCount(),f,i);b.suppressEvent=!1},onSelectionStoreRemove:function(h,e){var a=this,f=a.getSelected(),g=e.length,b,c,d;if(a.getDisableSelection()){return}for(d=0;d<g;d++){c=e[d];if(f.remove(c)){if(a.getLastSelected()==c){a.setLastSelected(null)}if(a.getLastFocused()==c){a.setLastFocused(null)}b=b||[];b.push(c)}}if(b){a.fireSelectionChange([b])}},onSelectionStoreClear:function(a){var b=a.getData().items;this.onSelectionStoreRemove(a,b)},getSelectionCount:function(){return this.getSelected().getCount()},onSelectionStoreAdd:Ext.emptyFn,onSelectionStoreUpdate:Ext.emptyFn,onItemSelect:Ext.emptyFn,onItemDeselect:Ext.emptyFn,onLastFocusChanged:Ext.emptyFn,onEditorKey:Ext.emptyFn},0,0,0,0,0,0,[Ext.mixin,'Selectable'],function(){}));(Ext.cmd.derive('Ext.mixin.StoreWatcher',Ext.Base,{mixinId:'storewatcher',config:{dataSource:null,owner:null,ownerListeners:{destroyable:!0,storechange:'onStoreChange'},sourceListeners:null,store:null,storeListeners:null},afterClassMixedIn:function(c){var e=this.getConfigurator(),b=c.prototype,d={},a;for(a in e.configs){if(b.hasOwnProperty(a)){d[a]=b[a];delete b[a]}}c.addConfig(d)},onFilterChange:function(b){var a;if(!b){a=null}else if(b.getDataSource){a=b.getDataSource()}else {a=b.getData()}this.setDataSource(a)},onStoreChange:function(b,a){this.setStore(a)},updateDataSource:function(a){this.syncListeners(a,'$sourceListeners','getSourceListeners')},updateOwner:function(a){this.syncListeners(a,'$ownerListeners','getOwnerListeners');this.setStore(a?a.getStore():null)},applyStore:function(a){return (a&&!a.isEmptyStore)?a:null},updateStore:function(a){this.syncListeners(a,'$storeListeners','getStoreListeners');this.onFilterChange(a)},privates:{syncListeners:function(d,c,a){var b=this,e=b[c];if(e){b[c]=null;e.destroy()}if(d){a=b[a]();a=Ext.applyIf({destroyable:!0,scope:b},a);b[c]=d.on(a)}}}},0,0,0,0,0,0,[Ext.mixin,'StoreWatcher'],0));(Ext.cmd.derive('Ext.mixin.StyleCacher',Ext.Mixin,{mixinConfig:{id:'stylecacher'},getCachedStyle:function(c,b){var a=this.$styleCache;if(!a){a=this.$styleCache={}}if(!(b in a)){a[b]=Ext.fly(c).getStyle(b)}return a[b]}},0,0,0,0,0,0,[Ext.mixin,'StyleCacher'],0));(Ext.cmd.derive('Ext.mixin.Traversable',Ext.Mixin,{mixinConfig:{id:'traversable'},setParent:function(a){this.parent=a;return this},hasParent:function(){return Boolean(this.getParent())},is:function(){return !0},getParent:function(){return this.parent||this.$initParent},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},previousNode:function(b,h){var d=this,f=d.getRefOwner(),a,g,e,c;if(h&&d.is(b)){return d}if(f){for(g=f.items.items,e=Ext.Array.indexOf(g,d)-1;e>-1;e--){c=g[e];if(c.query){a=c.query(b);a=a[a.length-1];if(a){return a}}if(!b||c.is(b)){return c}}return f.previousNode(b,!0)}return null},previousSibling:function(c){var e=this.getRefOwner(),b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},nextNode:function(a,i){var c=this,f=c.getRefOwner(),g,d,h,e,b;if(i&&c.is(a)){return c}if(f){for(d=f.items.items,e=Ext.Array.indexOf(d,c)+1,h=d.length;e<h;e++){b=d[e];if(!a||b.is(a)){return b}if(b.down){g=b.down(a);if(g){return g}}}return f.nextNode(a)}return null},nextSibling:function(c){var e=this.getRefOwner(),b,f,a,d;if(e){b=e.items;a=b.indexOf(this)+1;if(a){if(c){for(f=b.getCount();a<f;a++){if((d=b.getAt(a)).is(c)){return d}}}else {if(a<b.getCount()){return b.getAt(a)}}}}return null}},0,0,0,0,0,0,[Ext.mixin,'Traversable'],0));(Ext.cmd.derive('Ext.perf.Accumulator',Ext.Base,function(){var b=null,d=Ext.global['chrome'],c,a=function(){a=Ext.now;var b,c;if(Ext.isChrome&&d&&d.Interval){b=new d.Interval();b.start();a=function(){return b.microseconds()/1000}}else if(window.ActiveXObject){try{c=new ActiveXObject('SenchaToolbox.Toolbox');Ext.senchaToolbox=c;a=function(){return c.milliseconds}}catch(e){}}Ext.perf.getTimestamp=Ext.perf.Accumulator.getTimestamp=a;return a()};function adjustSet(a,b){a.sum+=b;a.min=Math.min(a.min,b);a.max=Math.max(a.max,b)}function leaveFrame(f){var d=f?f:(a()-this.time),e=this,c=e.accum;++c.count;if(!--c.depth){adjustSet(c.total,d)}adjustSet(c.pure,d-e.childTime);b=e.parent;if(b){++b.accum.childCount;b.childTime+=d}}function makeSet(){return {min:Number.MAX_VALUE,max:0,sum:0}}function makeTap(b,a){return function(){var c=b.enter(),d=a.apply(this,arguments);c.leave();return d}}function setToJSON(d,e,b,c){var a={avg:0,min:c.min,max:c.max,sum:0};if(d){b=b||0;a.sum=c.sum-e*b;a.avg=a.sum/d}return a}return {constructor:function(b){var a=this;a.count=a.childCount=a.depth=a.maxDepth=0;a.pure=makeSet();a.total=makeSet();a.name=b},statics:{getTimestamp:a},format:function(b){if(!c){c=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(a){return Math.round(a*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth<c.depth){c.maxDepth=c.depth}b=d;d.time=a();return d},monitor:function(c,a,b){var d=this.enter();if(b){c.apply(a,b)}else {c.call(a)}d.leave()},report:function(){Ext.log(this.format())},tap:function(d,g){var j=this,k=typeof g==='string'?[g]:g,b,f,a,h,e,c,i,l;l=function(){if(typeof d==='string'){b=Ext.global;h=d.split('.');for(a=0,e=h.length;a<e;++a){b=b[h[a]]}}else {b=d}for(a=0,e=k.length;a<e;++a){c=k[a];f=c.charAt(0)==='!';if(f){c=c.substring(1)}else {f=!(c in b.prototype)}i=f?b:b.prototype;i[c]=makeTap(j,i[c])}};Ext.ClassManager.onCreated(l,j,d);return j}}},1,0,0,0,0,0,[Ext.perf,'Accumulator'],function(){Ext.perf.getTimestamp=this.getTimestamp}));(Ext.cmd.derive('Ext.perf.Monitor',Ext.Base,{singleton:!0,alternateClassName:'Ext.Perf',constructor:function(){this.accumulators=[];this.accumulatorsByName={}},calibrate:function(){var d=new Ext.perf.Accumulator('$'),g=d.total,a=Ext.perf.Accumulator.getTimestamp,e=0,f,c,b;b=a();do{f=d.enter();f.leave();++e}while(g.sum<100);c=a();return (c-b)/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(b,c,a){this.get(b).monitor(c,a)},report:function(){var a=this,b=a.accumulators,c=a.calibrate();b.sort(function(a,b){return (a.name<b.name)?-1:((b.name<a.name)?1:0)});a.updateGC();Ext.log('Calibration: '+Math.round(c*100)/100+' msec/sample');Ext.each(b,function(a){Ext.log(a.format(c))})},getData:function(c){var a={},b=this.accumulators;Ext.each(b,function(b){if(c||b.count){a[b.name]=b.getData()}});return a},reset:function(){Ext.each(this.accumulators,function(b){var a=b;a.count=a.childCount=a.depth=a.maxDepth=0;a.pure={min:Number.MAX_VALUE,max:0,sum:0};a.total={min:Number.MAX_VALUE,max:0,sum:0}})},updateGC:function(){var b=this.accumulatorsByName.GC,c=Ext.senchaToolbox,a;if(b){b.count=c.garbageCollectionCounter||0;if(b.count){a=b.pure;b.total.sum=a.sum=c.garbageCollectionMilliseconds;a.min=a.max=a.sum/b.count;a=b.total;a.min=a.max=a.sum/b.count}}},watchGC:function(){Ext.perf.getTimestamp();var a=Ext.senchaToolbox;if(a){this.get("GC");a.watchGarbageCollector(!1)}},setup:function(a){if(!a){a={render:{'Ext.Component':'render'},layout:{'Ext.layout.Context':'run'}}}this.currentConfig=a;var d,c,f,b,e;for(d in a){if(a.hasOwnProperty(d)){c=a[d];f=Ext.Perf.get(d);for(b in c){if(c.hasOwnProperty(b)){e=c[b];f.tap(b,e)}}}}this.watchGC()},setupLog:function(e){var a,f,d,b,c;for(a in e){if(e.hasOwnProperty(a)){f=Ext.ClassManager.get(a);if(f){d=e[a];c={};for(b in d){c[b]=(function(b,a){return function(){var g,c,f,d,h;g=+Date.now();h=this.callParent(arguments);c=+Date.now()-g;if(window.console&&c>0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}})(b,d[b])}Ext.override(f,c)}}}}},1,0,0,0,0,0,[Ext.perf,'Monitor',Ext,'Perf'],0));(Ext.cmd.derive('Ext.plugin.AbstractClipboard',Ext.plugin.Abstract,{cachedConfig:{formats:{text:{get:'getTextData',put:'putTextData'}}},config:{memory:null,source:'system',system:'text',gridListeners:null},destroy:function(){var a=this,c=a.keyMap,b=a.shared;Ext.destroy(a.destroyListener);if(c){a.keyMap=Ext.destroy(c);if(!--b.counter){b.textArea=Ext.destroy(b.textArea)}}else {a.renderListener=Ext.destroy(a.renderListener)}Ext.plugin.Abstract.prototype.destroy.call(this)},init:function(b){var a=this,c=a.getGridListeners();if(b.rendered){a.finishInit(b)}else if(c){a.renderListener=b.on(Ext.apply({scope:a,destroyable:!0,single:!0},c))}},onCmpReady:function(){this.renderListener=null;this.finishInit(this.getCmp())},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(h,g){var a=this,d=a.allFormats||a.syncFormats(),c=a.getData(g,d),f=a.getMemory(),b=a.getSystem(),e;if(a.validateAction(h)===!1){return}a.shared.data=f&&c;if(b){e=c[b];if(d[b]<3){delete c[b]}a.setClipboardData(e)}},doPaste:function(a,c){var b=this.getFormats();this[b[a].put](c,a)},finishInit:function(b){var a=this;a.keyMap=new Ext.util.KeyMap({target:a.getTarget(b),ignoreInputFields:!0,binding:[{ctrl:!0,key:'x',fn:a.onCut,scope:a},{ctrl:!0,key:'c',fn:a.onCopy,scope:a},{ctrl:!0,key:'v',fn:a.onPaste,scope:a}]});++a.shared.counter;a.destroyListener=b.on({destroyable:!0,destroy:'destroy',scope:a})},getData:function(h,a){var f=this,e=f.getFormats(),d,g,b,c;if(Ext.isString(a)){d=f[e[a].get](a,h)}else {d={};c=[];if(a){for(b in a){c.push(b)}}else {c=Ext.Object.getAllKeys(e)}for(g=c.length;g-->0;){d[b]=f[e[b].get](b,h&&!g)}}return d},getHiddenTextArea:function(){var b=this.shared,a;a=b.textArea;if(!a){a=b.textArea=Ext.getBody().createChild({tag:'textarea',tabIndex:-1,style:{position:'absolute',top:'-1000px',width:'1px',height:'1px'}});a.suspendFocusEvents()}return a},onCopy:function(b,a){this.doCutCopy(a,!1)},onCut:function(b,a){this.doCutCopy(a,!0)},onPaste:function(h,g){var b=this,d=b.shared.data,e=b.getSource(),c,f,a;if(b.validateAction(g)===!1){return}if(e){for(c=0,f=e.length;c<f;++c){a=e[c];if(a==='system'){a=b.getSystem();b.pasteClipboardData(a);break}else if(d&&(a in d)){b.doPaste(a,d[a]);break}}}},pasteClipboardData:function(e){var c=this,d=window.clipboardData,b,a;if(d&&d.getData){c.doPaste(e,d.getData("text"))}else {a=Ext.Element.getActiveElement(!0);b=c.getHiddenTextArea().dom;b.value='';if(a){a.suspendFocusEvents()}b.focus();Ext.defer(function(){if(a){a.focus();a.resumeFocusEvents()}c.doPaste(e,b.value);b.value=''},100,c)}},setClipboardData:function(d){var c=window.clipboardData;if(c&&c.setData){c.setData("text",d)}else {var e=this,b=e.getHiddenTextArea().dom,a=Ext.Element.getActiveElement(!0);b.value=d;if(a){a.suspendFocusEvents()}b.focus();b.select();Ext.defer(function(){b.value='';if(a){a.focus();a.resumeFocusEvents()}},50)}},syncFormats:function(){var c=this,a={},b=c.getMemory(),f=c.getSystem(),d,e;if(f){a[f]=1}if(b){for(d=b.length;d-->0;){e=b[d];a[e]=a[e]?3:2}}return c.allFormats=a},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.plugin.MouseEnter',Ext.plugin.Abstract,{element:'el',init:function(c){var a=this,d={mouseover:'onMouseEvent',scope:a,destroyable:!0},b=a.element;if(a.leaveHandler||a.delay){d.mouseout='onMouseEvent'}if(typeof b==='string'){b=c[a.element]}if(b){a.mouseListener=Ext.get(b).on(d)}else {c.on({render:function(){a.mouseListener=c[a.element].on(d)},single:!0})}},onMouseEvent:function(c){var a=this,b=c.getTarget(a.delegate);if(b&&b!==c.getRelatedTarget(a.delegate)){if(a.delay){Ext.undefer(a.mouseEventTimer);a.mouseEventTimer=Ext.defer(a.handleMouseEvent,a.delay,a,[c,b])}else {a.handleMouseEvent(c,b)}}},handleMouseEvent:function(b,c){var a=this;if(b.type==='mouseover'){Ext.callback(a.handler,null,[b,c],0,a.cmp,a.scope)}else if(a.leaveHandler){Ext.callback(a.leaveHandler,null,[b,c],0,a.cmp,a.scope)}},destroy:function(){Ext.destroy(this.mouseListener);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,["plugin.mouseenter"],0,[Ext.plugin,'MouseEnter'],0));(Ext.cmd.derive('Ext.sparkline.Shape',Ext.Base,{constructor:function(b,e,d,c){var a=this;a.target=b;a.id=e;a.type=d;a.args=c},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;this.rtl=this.owner.getInherited().rtl},setWidth:function(a){this.pixelWidth=a},setHeight:function(a){this.pixelHeight=a},drawLine:function(c,e,d,f,a,b){return this.drawShape([[c,e],[d,f]],a,b)},drawShape:function(d,b,a,c){return this._genShape('Shape',[d,b,a,c])},drawCircle:function(e,f,d,b,a,c){return this._genShape('Circle',[e,f,d,b,a,c])},drawPieSlice:function(f,g,e,a,d,c,b){return this._genShape('PieSlice',[f,g,e,a,d,c,b])},drawRect:function(e,f,d,c,b,a){return this._genShape('Rect',[e,f,d,c,b,a])},getElement:function(){return this.el},getLastShapeId:function(){return this.lastShapeId},reset:function(){},_genShape:function(c,a){var b=this.shapeCount++;a.unshift(b);return new Ext.sparkline.Shape(this,b,c,a)},appendShape:function(a){},replaceWithShape:function(a,b){},insertAfterShape:function(a,b){},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){if(this.rtl){b=this.canvas.width-b-1}this.$moveTo(b*a,c*a)},lineTo:function(b,c){if(this.rtl){b=this.canvas.width-b-1}this.$lineTo(b*a,c*a)},arc:function(b,g,f,d,e,c){if(this.rtl){b=this.canvas.width-b-1}this.$arc(b*a,g*a,f*a,d,e,c)},clearRect:function(b,e,c,d){if(this.rtl){b=this.canvas.width-b-c}this.$clearRect(b*a,e*a,c*a,d*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(e,d,f){var a=this.context,b,c;if(!a){this.context=a=this.el.dom.getContext('2d');b=Ext.sparkline.CanvasCanvas.contextOverrides;for(c in b){a['$'+c]=a[c]}Ext.apply(a,b);a.rtl=this.rtl}if(e!=null){a.strokeStyle=e}a.lineWidth=f||1;if(d!=null){a.fillStyle=d}return a},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(i,b,e,d,h){var a=this._getContext(e,d,h),f=this.rtl?-0.5:0.5,c,g;a.beginPath();a.moveTo(b[0][0]+f,b[0][1]+0.5);for(c=1,g=b.length;c<g;c++){a.lineTo(b[c][0]+f,b[c][1]+0.5)}if(e!=null){a.stroke()}if(d!=null){a.fill()}if(this.targetX!=null&&this.targetY!=null&&a.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=i}},_drawCircle:function(e,g,h,f,c,b,d){var a=this._getContext(c,b,d);a.beginPath();a.arc(g,h,f,0,2*Math.PI,!1);if(this.targetX!=null&&this.targetY!=null&&a.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=e}if(c!=null){a.stroke()}if(b!=null){a.fill()}},_drawPieSlice:function(h,b,c,i,f,g,e,d){var a=this._getContext(e,d);a.beginPath();a.moveTo(b,c);a.arc(b,c,i,f,g,!1);a.lineTo(b,c);a.closePath();if(e!=null){a.stroke()}if(d){a.fill()}if(this.targetX!==undefined&&this.targetY!==undefined&&a.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=h}},_drawRect:function(g,a,b,d,c,f,e){return this._drawShape(g,[[a,b],[a+d,b],[a+d,b+c],[a,b+c],[a,b]],f,e)},appendShape:function(a){this.shapes[a.id]=a;this.shapeseq.push(a.id);this.lastShapeId=a.id;return a.id},replaceWithShape:function(d,c){var b=this.shapeseq,a;this.shapes[c.id]=c;for(a=b.length;a--;){if(b[a]===d){b[a]=c.id}}delete this.shapes[d]},replaceWithShapes:function(e,c){var b=this.shapeseq,f={},d,a,g;for(a=e.length;a--;){f[e[a]]=!0}for(a=b.length;a--;){d=b[a];if(f[d]){b.splice(a,1);delete this.shapes[d];g=a}}for(a=c.length;a--;){b.splice(g,0,c[a].id);this.shapes[c[a].id]=c[a]}},insertAfterShape:function(d,c){var b=this.shapeseq,a;for(a=b.length;a--;){if(b[a]===d){b.splice(a+1,0,c.id);this.shapes[c.id]=c;return}}},removeShapeId:function(c){var b=this.shapeseq,a;for(a=b.length;a--;){if(b[a]===c){b.splice(a,1);break}}delete this.shapes[c]},getShapeAt:function(a,b){if(this.rtl){a=this.el.dom.width-a-1}this.targetX=a;this.targetY=b;this.render();return this.currentTargetShapeId},render:function(){var c=this.shapeseq,g=this.shapes,e=c.length,f=this._getContext(),d,b,a;f.clearRect(0,0,this.pixelWidth,this.pixelHeight);for(a=0;a<e;a++){d=c[a];b=g[d];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(b){var a=this;Ext.sparkline.CanvasBase.prototype.setWidth.apply(this,arguments);a.owner.groupEl.dom.coordsize=a.width+' '+(a.height||0);a.owner.groupEl.dom.style.width=b+'px'},setHeight:function(b){var a=this;Ext.sparkline.CanvasBase.prototype.setHeight.apply(this,arguments);a.owner.groupEl.dom.coordsize=(a.width||0)+' '+a.height;a.owner.groupEl.dom.style.height=b+'px'},onOwnerUpdate:function(){var a=this;a.group=a.owner.groupEl;a.el=a.owner.element;a.prerender=[]},_drawShape:function(l,d,f,e,c){var a=[],g,i,j,h,k,b;for(b=0,k=d.length;b<k;b++){a[b]=(d[b][0])+','+(d[b][1])}g=a.splice(0,1);c=c==null?1:c;i=f==null?' stroked="false" ':' strokeWeight="'+c+'px" strokeColor="'+f+'" ';j=e==null?' filled="false"':' fillColor="'+e+'" filled="true" ';h=a[0]===a[a.length-1]?'x ':'';return ['<svml:shape coordorigin="0 0" coordsize="',this.pixelWidth,' ',this.pixelHeight,'" id="jqsshape',l,'" ',i,j,' style="position:absolute;height:',this.pixelHeight,'px;width:',this.pixelWidth,'px" ',' path="m ',g,' l ',a.join(', '),' ',h,'e"></svml:shape>'].join('')},_drawCircle:function(j,g,h,a,d,c,i){var b=a*2,e,f;g-=a;h-=a;e=d==null?' stroked="false" ':' strokeWeight="'+i+'px" strokeColor="'+d+'" ';f=c==null?' filled="false"':' fillColor="'+c+'" filled="true" ';return ['<svml:oval id="jqsshape',j,'" ',e,f,' style="position:absolute;top:',h,'px; left:',g,'px;width:',b,'px;height:',b,'px"></svml:oval>'].join('')},_drawPieSlice:function(o,d,e,a,b,c,k,j){var m,n=this.pixelWidth,l=this.pixelHeight,f,g,h,i,p=k==null?' stroked="false" ':' strokeWeight="1px" strokeColor="'+k+'" ',q=j==null?' filled="false"':' fillColor="'+j+'" filled="true" ';if(b===c){return ''}if((c-b)===(2*Math.PI)){b=0;c=(2*Math.PI)}f=d+Math.round(Math.cos(b)*a);g=e+Math.round(Math.sin(b)*a);h=d+Math.round(Math.cos(c)*a);i=e+Math.round(Math.sin(c)*a);if(f===h&&g===i){if((c-b)<Math.PI){return ''}f=h=d+a;g=i=e}if(f===h&&g===i&&(c-b)<Math.PI){return ''}m=[d-a,e-a,d+a,e+a,f,g,h,i];return ['<svml:shape coordorigin="0 0" coordsize="',n,' ',l,'" id="jqsshape',o,'" ',p,q,' style="position:absolute;height:',l,'px;width:',n,'px" path="m ',d,',',e,' wa ',m.join(', '),' x e"></svml:shape>'].join('')},_drawRect:function(g,a,b,d,c,f,e){return this._drawShape(g,[[a,b],[a,b+c],[a+d,b+c],[a+d,b],[a,b]],f,e)},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(c,a){var b=this.el.getById('jqsshape'+c,!0),d=this['_draw'+a.type].apply(this,a.args);b.outerHTML=d},replaceWithShapes:function(b,c){var e=this.el.getById('jqsshape'+b[0],!0),d='',f=c.length,a;for(a=0;a<f;a++){d+=this['_draw'+c[a].type].apply(this,c[a].args)}e.outerHTML=d;for(a=1;a<b.length;a++){this.el.getById('jqsshape'+b[a]).destroy()}},insertAfterShape:function(c,a){var b=this.el.getById('jqsshape'+c,!0),d=this['_draw'+a.type].apply(this,a.args);b.insertAdjacentHTML('afterEnd',d)},removeShapeId:function(b){var a=this.el.getById('jqsshape'+b,!0);this.group.removeChild(a)},getShapeAt:function(b,c){var a=this.el.id.substr(8);return a},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.util.Color',Ext.Base,{alternateClassName:'Ext.draw.Color',statics:{colorToHexRe:/(.*?)rgb\((\d+),\s*(\d+),\s*(\d+)\)/,rgbToHexRe:/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)/,rgbaToHexRe:/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\.\d]+)\)/,hexRe:/\s*#([0-9a-fA-F][0-9a-fA-F]?)([0-9a-fA-F][0-9a-fA-F]?)([0-9a-fA-F][0-9a-fA-F]?)\s*/,NONE:'none',RGBA_NONE:'rgba(0, 0, 0, 0)'},isColor:!0,lightnessFactor:0.2,constructor:function(d,b,c,a){this.setRGB(d,b,c,a)},clone:function(){var a=this;return new this.self(a.r,a.g,a.b,a.a)},setRGB:function(e,c,d,b){var a=this;a.r=Math.min(255,Math.max(0,e));a.g=Math.min(255,Math.max(0,c));a.b=Math.min(255,Math.max(0,d));if(b===undefined){a.a=1}else {a.a=Math.min(1,Math.max(0,b))}},getBrightness:function(){var c=this.r/255*100,b=this.g/255*100,a=this.b/255*100;return ((c*299)+(b*587)+(a*114))/1000},getGrayscale:function(){return this.r*0.3+this.g*0.59+this.b*0.11},getHSL:function(){var h=this,f=h.r/255,e=h.g/255,g=h.b/255,b=Math.max(f,e,g),d=Math.min(f,e,g),c=b-d,a,j=0,i=0.5*(b+d);if(d!==b){j=(i<=0.5)?c/(b+d):c/(2-b-d);if(f===b){a=60*(e-g)/c}else if(e===b){a=120+60*(g-f)/c}else {a=240+60*(f-e)/c}if(a<0){a+=360}if(a>=360){a-=360}}return [a,j,i]},getHSV:function(){var g=this,d=g.r/255,c=g.g/255,f=g.b/255,b=Math.max(d,c,f),i=Math.min(d,c,f),e=b-i,a,j=0,h=b;if(i!=b){j=h?e/h:0;if(d===b){a=60*(c-f)/e}else if(c===b){a=60*(f-d)/e+120}else {a=60*(d-c)/e+240}if(a<0){a+=360}if(a>=360){a-=360}}return [a,j,h]},setHSL:function(f,g,c){var d=this,h=Math.abs,b,e,a;f=(f%360+360)%360;g=g>1?1:g<0?0:g;c=c>1?1:c<0?0:c;if(g===0||f===null){c*=255;d.setRGB(c,c,c)}else {f/=60;b=g*(1-h(2*c-1));e=b*(1-h(f%2-1));a=c-b/2;a*=255;b*=255;e*=255;switch(Math.floor(f)){case 0:d.setRGB(b+a,e+a,a);break;case 1:d.setRGB(e+a,b+a,a);break;case 2:d.setRGB(a,b+a,e+a);break;case 3:d.setRGB(a,e+a,b+a);break;case 4:d.setRGB(e+a,a,b+a);break;case 5:d.setRGB(b+a,a,e+a);break;}}return d},setHSV:function(f,g,c){var d=this,b,e,a;f=(f%360+360)%360;g=g>1?1:g<0?0:g;c=c>1?1:c<0?0:c;if(g===0||f===null){c*=255;d.setRGB(c,c,c)}else {f/=60;b=c*g;e=b*(1-Math.abs(f%2-1));a=c-b;a*=255;b*=255;e*=255;switch(Math.floor(f)){case 0:d.setRGB(b+a,e+a,a);break;case 1:d.setRGB(e+a,b+a,a);break;case 2:d.setRGB(a,b+a,e+a);break;case 3:d.setRGB(a,e+a,b+a);break;case 4:d.setRGB(e+a,a,b+a);break;case 5:d.setRGB(b+a,a,e+a);break;}}return d},createLighter:function(b){var a=this.clone();a.lighten(b);return a},lighten:function(a){if(!a&&a!==0){a=this.lightnessFactor}var b=this.getHSL();this.setHSL(b[0],b[1],Ext.Number.constrain(b[2]+a,0,1))},createDarker:function(b){var a=this.clone();a.darken(b);return a},darken:function(a){if(!a&&a!==0){a=this.lightnessFactor}return this.lighten(-a)},toString:function(){var a=this,b=Math.round;if(a.a===1){var e=b(a.r).toString(16),d=b(a.g).toString(16),c=b(a.b).toString(16);e=(e.length===1)?'0'+e:e;d=(d.length===1)?'0'+d:d;c=(c.length===1)?'0'+c:c;return ['#',e,d,c].join('')}else {return 'rgba('+[b(a.r),b(a.g),b(a.b),a.a===0?0:a.a.toFixed(15)].join(', ')+')'}},toHex:function(e){var d=this.r,c=this.g,b=this.b,a=b|(c<<8)|(d<<16);return '#'+('000000'+a.toString(16)).slice(-6)},setFromString:function(b){var a,c,e,d,g=1,f=parseInt;if(b===Ext.util.Color.NONE){this.r=this.g=this.b=this.a=0;return this}if((b.length===4||b.length===7)&&b.substr(0,1)==='#'){a=b.match(Ext.util.Color.hexRe);if(a){c=f(a[1],16)>>0;e=f(a[2],16)>>0;d=f(a[3],16)>>0;if(b.length===4){c+=(c*16);e+=(e*16);d+=(d*16)}}}else if((a=b.match(Ext.util.Color.rgbToHexRe))){c=+a[1];e=+a[2];d=+a[3]}else if((a=b.match(Ext.util.Color.rgbaToHexRe))){c=+a[1];e=+a[2];d=+a[3];g=+a[4]}else {if(Ext.util.Color.ColorList.hasOwnProperty(b.toLowerCase())){return this.setFromString(Ext.util.Color.ColorList[b.toLowerCase()])}}if(typeof c==='undefined'){return this}this.r=c;this.g=e;this.b=d;this.a=g;return this}},3,0,0,0,0,0,[Ext.util,'Color',Ext.draw,'Color'],function(){var a=new this();this.addStatics({fly:function(b,d,e,c){switch(arguments.length){case 1:a.setFromString(b);break;case 3:case 4:a.setRGB(b,d,e,c);break;default:return null;}return a},ColorList:{aliceblue:'#f0f8ff',antiquewhite:'#faebd7',aqua:'#00ffff',aquamarine:'#7fffd4',azure:'#f0ffff',beige:'#f5f5dc',bisque:'#ffe4c4',black:'#000000',blanchedalmond:'#ffebcd',blue:'#0000ff',blueviolet:'#8a2be2',brown:'#a52a2a',burlywood:'#deb887',cadetblue:'#5f9ea0',chartreuse:'#7fff00',chocolate:'#d2691e',coral:'#ff7f50',cornflowerblue:'#6495ed',cornsilk:'#fff8dc',crimson:'#dc143c',cyan:'#00ffff',darkblue:'#00008b',darkcyan:'#008b8b',darkgoldenrod:'#b8860b',darkgray:'#a9a9a9',darkgreen:'#006400',darkkhaki:'#bdb76b',darkmagenta:'#8b008b',darkolivegreen:'#556b2f',darkorange:'#ff8c00',darkorchid:'#9932cc',darkred:'#8b0000',darksalmon:'#e9967a',darkseagreen:'#8fbc8f',darkslateblue:'#483d8b',darkslategray:'#2f4f4f',darkturquoise:'#00ced1',darkviolet:'#9400d3',deeppink:'#ff1493',deepskyblue:'#00bfff',dimgray:'#696969',dodgerblue:'#1e90ff',firebrick:'#b22222',floralwhite:'#fffaf0',forestgreen:'#228b22',fuchsia:'#ff00ff',gainsboro:'#dcdcdc',ghostwhite:'#f8f8ff',gold:'#ffd700',goldenrod:'#daa520',gray:'#808080',green:'#008000',greenyellow:'#adff2f',honeydew:'#f0fff0',hotpink:'#ff69b4',indianred:'#cd5c5c',indigo:'#4b0082',ivory:'#fffff0',khaki:'#f0e68c',lavender:'#e6e6fa',lavenderblush:'#fff0f5',lawngreen:'#7cfc00',lemonchiffon:'#fffacd',lightblue:'#add8e6',lightcoral:'#f08080',lightcyan:'#e0ffff',lightgoldenrodyellow:'#fafad2',lightgray:'#d3d3d3',lightgrey:'#d3d3d3',lightgreen:'#90ee90',lightpink:'#ffb6c1',lightsalmon:'#ffa07a',lightseagreen:'#20b2aa',lightskyblue:'#87cefa',lightslategray:'#778899',lightsteelblue:'#b0c4de',lightyellow:'#ffffe0',lime:'#00ff00',limegreen:'#32cd32',linen:'#faf0e6',magenta:'#ff00ff',maroon:'#800000',mediumaquamarine:'#66cdaa',mediumblue:'#0000cd',mediumorchid:'#ba55d3',mediumpurple:'#9370d8',mediumseagreen:'#3cb371',mediumslateblue:'#7b68ee',mediumspringgreen:'#00fa9a',mediumturquoise:'#48d1cc',mediumvioletred:'#c71585',midnightblue:'#191970',mintcream:'#f5fffa',mistyrose:'#ffe4e1',moccasin:'#ffe4b5',navajowhite:'#ffdead',navy:'#000080',oldlace:'#fdf5e6',olive:'#808000',olivedrab:'#6b8e23',orange:'#ffa500',orangered:'#ff4500',orchid:'#da70d6',palegoldenrod:'#eee8aa',palegreen:'#98fb98',paleturquoise:'#afeeee',palevioletred:'#d87093',papayawhip:'#ffefd5',peachpuff:'#ffdab9',peru:'#cd853f',pink:'#ffc0cb',plum:'#dda0dd',powderblue:'#b0e0e6',purple:'#800080',red:'#ff0000',rosybrown:'#bc8f8f',royalblue:'#4169e1',saddlebrown:'#8b4513',salmon:'#fa8072',sandybrown:'#f4a460',seagreen:'#2e8b57',seashell:'#fff5ee',sienna:'#a0522d',silver:'#c0c0c0',skyblue:'#87ceeb',slateblue:'#6a5acd',slategray:'#708090',snow:'#fffafa',springgreen:'#00ff7f',steelblue:'#4682b4',tan:'#d2b48c',teal:'#008080',thistle:'#d8bfd8',tomato:'#ff6347',turquoise:'#40e0d0',violet:'#ee82ee',wheat:'#f5deb3',white:'#ffffff',whitesmoke:'#f5f5f5',yellow:'#ffff00',yellowgreen:'#9acd32'},fromHSL:function(a,c,b){return (new this(0,0,0,0)).setHSL(a,c,b)},fromHSV:function(a,b,c){return (new this(0,0,0,0)).setHSL(a,b,c)},fromString:function(a){return (new this(0,0,0,0)).setFromString(a)},create:function(a){if(a instanceof this){return a}else if(Ext.isArray(a)){return new Ext.util.Color(a[0],a[1],a[2],a[3])}else if(Ext.isString(a)){return Ext.util.Color.fromString(a)}else if(arguments.length>2){return new Ext.util.Color(arguments[0],arguments[1],arguments[2],arguments[3])}else {return new Ext.util.Color(0,0,0,0)}}})}));(Ext.cmd.derive('Ext.sparkline.Base',Ext.Gadget,{cachedConfig:{lineColor:'#157fcc',defaultPixelsPerValue:3,tagValuesAttribute:'values',enableTagOptions:!1,enableHighlight:!0,highlightColor:null,highlightLighten:0.1,tooltipSkipNull:!0,tooltipPrefix:'',tooltipSuffix:'',disableTooltips:!1,disableInteraction:!1,tipTpl:null},config:{values:null},baseCls:'x-sparkline',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:{onClassCreated:function(d){var e=d.prototype.updateConfigChange,b=d.prototype,f=d.getConfigurator().configs,c,a;for(c in f){if(c!=='tipTpl'){a=Ext.Config.get(c).names.update;if(b[a]){b[a]=Ext.Function.createSequence(b[a],e)}else {b[a]=e}}}}},constructor:function(c){var a=this,b=Ext.sparkline;a.canvas=Ext.supports.Canvas?new b.CanvasCanvas(a):new b.VmlCanvas(a);Ext.Widget.prototype.constructor.call(this,c)},all:function(d,b,c){var a;for(a=b.length;a--;){if(c&&b[a]===null){continue}if(b[a]!==d){return !1}}return !0},updateConfigChange:function(b){var a=this;if(a.bufferRedraw||!a.height||!a.width){a.redrawQueue[a.getId()]=a;if(!a.redrawTimer){Ext.sparkline.Base.prototype.redrawTimer=Ext.raf(a.processRedrawQueue)}}else {a.redraw()}return b},applyTipTpl:function(a){if(a&&!a.isTemplate){a=new Ext.XTemplate(a)}return a},normalizeValue:function(a){var b;switch(a){case 'undefined':a=undefined;break;case 'null':a=null;break;case 'true':a=!0;break;case 'false':a=!1;break;default:b=parseFloat(a);if(a==b){a=b};}return a},normalizeValues:function(c){var a,b=[];for(a=c.length;a--;){b[a]=this.normalizeValue(c[a])}return b},updateWidth:function(b,d){var a=this,e=a.element.dom,c=a.measurer;Ext.Widget.prototype.updateWidth.call(this,b,d);a.canvas.setWidth(b);a.width=b;if(a.height==null&&c){a.setHeight(parseInt(c.getCachedStyle(e.parentNode,'line-height'),10))}},updateHeight:function(a,c){var b=this;Ext.Widget.prototype.updateHeight.call(this,a,c);b.canvas.setHeight(a);b.height=a},setValues:function(a){var b=this,c=b.getValues();a=a==null?[]:Ext.Array.from(a);b.values=a;(arguments.callee.$previous||Ext.Widget.prototype.setValues).call(this,a);if(a===c){b.updateValues([a,c])}},redraw:function(){var a=this;if(!a.destroyed){a.canvas.onOwnerUpdate();a.canvas.reset();if(a.getValues()){a.onUpdate();a.renderGraph()}}},onUpdate:Ext.emptyFn,renderGraph:function(){var a=!0;if(this.disabled){this.canvas.reset();a=!1}return a},onMouseEnter:function(a){this.onMouseMove(a)},onMouseMove:function(b){var a=this;a.canvasRegion=a.canvasRegion||a.canvas.el.getRegion();a.currentPageXY=b.getPoint();a.redraw()},onMouseLeave:function(){var a=this;a.canvasRegion=a.currentPageXY=a.targetX=a.targetY=null;a.redraw();a.hideTip()},updateDisplay:function(){var a=this,d=a.getValues(),c,b;if(d&&d.length&&a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){b=a.getRegion(a.currentPageXY[0]-a.canvasRegion.left,(a.canvasRegion.bottom-1)-a.currentPageXY[1]);if(b!=null&&a.isValidRegion(b,d)){if(!a.disableHighlight){a.renderHighlight(b)}if(!a.getDisableTooltips()){c=a.getRegionTooltip(b)}}if(a.hasListeners.sparklineregionchange){a.fireEvent('sparklineregionchange',a)}if(c){a.getSharedTooltip().setHtml(c);a.showTip()}}if(!c){a.hideTip()}},getRegion:Ext.emptyFn,getRegionTooltip:function(m){var b=this,i=[],k=b.getTipTpl(),a,f,e,h,l,g,j,d,c;a=b.getRegionFields(m);g=b.tooltipFormatter;if(g){return g(b,b,a)}if(!k){return ''}if(!Ext.isArray(a)){a=[a]}f=b.tooltipFormatFieldlist;e=b.tooltipFormatFieldlistKey;if(f&&e){h=[];for(d=a.length;d--;){l=a[d][e];if((c=Ext.Array.indexOf(l,f))!==-1){h[c]=a[d]}}a=h}j=a.length;for(c=0;c<j;c++){if(!a[c].isNull||!b.getTooltipSkipNull()){Ext.apply(a[c],{prefix:b.getTooltipPrefix(),suffix:b.getTooltipSuffix()});i.push(k.apply(a[c]))}}if(i.length){return i.join('<br>')}return ''},getRegionFields:Ext.emptyFn,calcHighlightColor:function(b){var e=this,c=e.getHighlightColor(),d=e.getHighlightLighten(),a;if(c){return c}if(d){a=Ext.util.Color.fromString(b);if(a){a.lighten(d);b=a.toHex()}}return b},destroy:function(){delete this.redrawQueue[this.getId()];Ext.Widget.prototype.destroy.call(this)},privates:{hideTip:Ext.privateFn,isValidRegion:function(a,b){return a<b.length},showTip:Ext.privateFn}},1,["sparkline"],["widget","sparkline"],{"widget":!0,"sparkline":!0},["widget.sparkline"],0,[Ext.sparkline,'Base'],function(b){var a=b.prototype;a.getSharedTooltip=function(){var d=this,c=d.tooltip;if(!c){a.tooltip=c=b.constructTip()}return c};b.onClassCreated(b);a.processRedrawQueue=function(){var c=a.redrawQueue,d;for(d in c){c[d].redraw()}a.redrawQueue={};a.redrawTimer=0}}));Ext.define('Ext.override.sparkline.Base',{override:'Ext.sparkline.Base',statics:{constructTip:function(){return new Ext.tip['ToolTip']({id:'sparklines-tooltip',showDelay:0,dismissDelay:0,hideDelay:400})}},onMouseMove:function(a){this.getSharedTooltip().triggerEvent=a;arguments.callee.$previous.call(this,a)},onMouseLeave:function(a){arguments.callee.$previous.call(this,a);this.getSharedTooltip().target=null},privates:{hideTip:function(){var a=this.getSharedTooltip();a.target=null;a.hide()},showTip:function(){var a=this.getSharedTooltip();a.target=this.el;a.onTargetOver(a.triggerEvent)}}},function(a){if(!Ext.supports.Canvas){a.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,!0)},renderGraph:function(){var b=this,h=b.values,g=b.canvas,e=b.regionShapes||(b.regionShapes={}),a,f,c,d;if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}for(c=h.length;c--;){a=b.renderRegion(c);if(a){if(Ext.isArray(a)){f=[];for(d=a.length;d--;){a[d].append();f.push(a[d].id)}e[c]=f}else {a.append();e[c]=a.id}}else {e[c]=null}}if(b.currentPageXY){b.currentRegion=null;b.updateDisplay()}g.render()}},0,0,["widget","sparkline"],{"widget":!0,"sparkline":!0},0,0,[Ext.sparkline,'BarBase'],0));(Ext.cmd.derive('Ext.sparkline.RangeMap',Ext.Base,{constructor:function(c){var b,a,d=[];for(b in c){if(c.hasOwnProperty(b)&&typeof b==='string'&&b.indexOf(':')>-1){a=b.split(':');a[0]=a[0].length===0?-Infinity:parseFloat(a[0]);a[1]=a[1].length===0?Infinity:parseFloat(a[1]);a[2]=c[b];d.push(a)}}this.map=c;this.rangelist=d||!1},get:function(c){var b=this.rangelist,d,a,e;if((e=this.map[c])!==undefined){return e}if(b){for(d=b.length;d--;){a=b[d];if(a[0]<=c&&a[1]>=c){return a[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:!0,barWidth:4,barSpacing:1,chartRangeMin:null,chartRangeMax:null,chartRangeClip:!1,colorMap:null},tipTpl:'&#9679; {prefix}{value}{suffix}',remove:function(b,e){var a,d,c=[];for(a=0,d=b.length;a<d;a++){if(b[a]!==e){c.push(b[a])}}return c},all:function(b,d,c){var a;for(a=b.length;a--;){if(c&&b[a]===null){continue}if(b[a]!==d){return !1}}return !0},applyColorMap:function(b){var a=this;if(Ext.isArray(b)){a.colorMapByIndex=b;a.colorMapByValue=null}else {a.colorMapByIndex=null;a.colorMapByValue=b;if(a.colorMapByValue&&a.colorMapByValue.get==null){a.colorMapByValue=new Ext.sparkline.RangeMap(b)}}a.updateConfigChange();return b},onUpdate:function(){var a=this,d=a.values,D=a.getBarWidth(),C=a.getBarSpacing(),o=a.getChartRangeMin(),n=a.getChartRangeMax(),m=a.getChartRangeClip(),q=Infinity,k=-Infinity,u,x,w,p,i,c,s,B,y=a.getZeroAxis(),h,e,f,A,z,g,r,l,G,F,b,j,E,v=[],t=[];for(c=0,s=d.length;c<s;c++){b=d[c];u=typeof (b)==='string'&&b.indexOf(':')>-1;if(u||Ext.isArray(b)){g=!0;if(u){b=d[c]=a.normalizeValues(b.split(':'))}b=a.remove(b,null);x=Math.min.apply(Math,b);w=Math.max.apply(Math,b);if(x<q){q=x}if(w>k){k=w}}}a.stacked=g;a.regionShapes={};a.totalBarWidth=D+C;a.width=(d.length*D)+((d.length-1)*C);if(m){A=o==null?-Infinity:o;z=n==null?Infinity:n}i=[];p=g?[]:i;for(c=0,s=d.length;c<s;c++){if(g){r=d[c];d[c]=F=[];v[c]=0;p[c]=t[c]=0;for(l=0,G=r.length;l<G;l++){b=F[l]=m?Ext.Number.constrain(r[l],A,z):r[l];if(b!==null){if(b>0){v[c]+=b}if(q<0&&k>0){if(b<0){t[c]+=Math.abs(b)}else {p[c]+=b}}else {p[c]+=Math.abs(b-(b<0?k:q))}i.push(b)}}}else {b=m?Ext.Number.constrain(d[c],A,z):d[c];b=d[c]=a.normalizeValue(b);if(b!==null){i.push(b)}}}a.max=f=Math.max.apply(Math,i);a.min=e=Math.min.apply(Math,i);a.stackMax=k=g?Math.max.apply(Math,v):f;a.stackMin=q=g?Math.min.apply(Math,i):e;if(o!=null&&(m||o<e)){e=o}if(n!=null&&(m||n>f)){f=n}if(e<=0&&f>=0&&y){h=0}else if(!y){h=e}else if(e>0){h=e}else {h=f}a.xAxisOffset=h;B=g?(Math.max.apply(Math,p)+Math.max.apply(Math,t)):f-e;a.canvasHeightEf=(y&&e<0)?a.getHeight()-2:a.getHeight()-1;if(e<h){E=(g&&f>=0)?k:f;j=(E-h)/B*a.getHeight();if(j!==Math.ceil(j)){a.canvasHeightEf-=2;j=Math.ceil(j)}}else {j=a.getHeight()}a.yoffset=j;a.range=B},getRegion:function(b,c){var a=Math.floor(b/this.totalBarWidth);return (a<0||a>=this.values.length)?undefined:a},getRegionFields:function(c){var e=Ext.Array.from(this.values[c]),d=[],a,b;for(b=e.length;b--;){a=e[b];d.push({isNull:a===null,value:a,color:this.calcColor(b,a,c),offset:c})}return d},calcColor:function(i,d,h){var b=this,c=b.colorMapByIndex,e=b.colorMapByValue,a,g,f=b.getZeroColor();if(this.stacked){a=b.getStackedBarColor()}else {a=(d<0)?b.getNegBarColor():b.getBarColor()}if(d===0&&f!=null){a=f}if(e&&(g=e.get(d))){a=g}else if(c&&c.length>h){a=c[h]}return Ext.isArray(a)?a[i%a.length]:a},renderRegion:function(l,n){var a=this,b=a.values[l],g=a.xAxisOffset,t=a.range,w=a.stacked,r=a.canvas,o=a.getBarWidth(),u=l*a.totalBarWidth,v=a.canvasHeightEf,d=a.yoffset,i,f,c,s,j,h,p,e,m,q,k=a.getNullColor();b=Ext.isArray(b)?b:[b];p=b.length;e=b[0];s=a.all(b,null);q=a.all(b,g,!0);if(s){if(k){c=n?k:a.calcHighlightColor(k,a);i=(d>0)?d-1:d;r.drawRect(u,i,o-1,0,c,c).append()}return}j=d;for(h=0;h<p;h++){e=b[h];if(w&&e===g){if(!q||m){continue}m=!0}if(t>0){f=Math.floor(v*((Math.abs(e-g)/t)))+1}else {f=1}if(e<g||(e===g&&d===0)){i=j;j+=f}else {i=d-f;d-=f}c=a.calcColor(h,e,l);if(n){c=a.calcHighlightColor(c,a)}r.drawRect(u,i,o-1,f-1,c,c).append()}}},0,["sparklinebar"],["widget","sparkline","sparklinebar"],{"widget":!0,"sparkline":!0,"sparklinebar":!0},["widget.sparklinebar"],0,[Ext.sparkline,'Bar'],function(a){a.onClassCreated(a)}));(Ext.cmd.derive('Ext.sparkline.Box',Ext.sparkline.Base,{config:{raw:!1,boxLineColor:'#000',boxFillColor:'#cdf',whiskerColor:'#000',outlierLineColor:'#333',outlierFillColor:'#fff',medianColor:'#f00',showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:null,targetColor:'#4a2',chartRangeMin:null,chartRangeMax:null},tipTpl:['{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);if(!this.raw){a.sort(function(b,c){return b-c})}this.disabled=!(a&&a.length);this.updateConfigChange();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 a=this,h=a.canvas,b=a.values,t=b.length,s=a.getWidth(),c=a.getHeight(),y=a.getChartRangeMin(),x=a.getChartRangeMax(),e=y==null?Math.min.apply(Math,b):y,D=x==null?Math.max.apply(Math,b):x,f=0,g,n,u,j,m,k,i,o,l,p,d,q=a.getSpotRadius(),w=a.getOutlierLineColor(),v=a.getOutlierFillColor(),r=a.getShowOutliers(),B=a.getOutlierIQR(),C=a.getLineColor(),z=a.getWhiskerColor(),A=a.getTargetColor();if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}if(a.raw){if(r&&b.length>5){n=b[0];g=b[1];j=b[2];m=b[3];k=b[4];i=b[5];o=b[6]}else {g=b[0];j=b[1];m=b[2];k=b[3];i=b[4]}}else {j=a.quartile(b,1);m=a.quartile(b,2);k=a.quartile(b,3);u=k-j;if(r){g=i=null;for(l=0;l<t;l++){if(g==null&&b[l]>j-(u*B)){g=b[l]}if(b[l]<k+(u*B)){i=b[l]}}n=b[0];o=b[t-1]}else {g=b[0];i=b[t-1]}}a.quartiles=[j,m,k];a.lwhisker=g;a.rwhisker=i;a.loutlier=n;a.routlier=o;d=s/(D-e+1);if(r){f=Math.ceil(q);s-=2*Math.ceil(q);d=s/(D-e+1);if(n<g){h.drawCircle((n-e)*d+f,c/2,q,w,v).append()}if(o>i){h.drawCircle((o-e)*d+f,c/2,q,w,v).append()}}h.drawRect(Math.round((j-e)*d+f),Math.round(c*0.1),Math.round((k-j)*d),Math.round(c*0.8),a.getBoxLineColor(),a.getBoxFillColor()).append();h.drawLine(Math.round((g-e)*d+f),Math.round(c/2),Math.round((j-e)*d+f),Math.round(c/2),C).append();h.drawLine(Math.round((g-e)*d+f),Math.round(c/4),Math.round((g-e)*d+f),Math.round(c-c/4),z).append();h.drawLine(Math.round((i-e)*d+f),Math.round(c/2),Math.round((k-e)*d+f),Math.round(c/2),C).append();h.drawLine(Math.round((i-e)*d+f),Math.round(c/4),Math.round((i-e)*d+f),Math.round(c-c/4),z).append();h.drawLine(Math.round((m-e)*d+f),Math.round(c*0.1),Math.round((m-e)*d+f),Math.round(c*0.9),a.getMedianColor()).append();if(a.target){p=Math.ceil(a.spotRadius);h.drawLine(Math.round((a.target-e)*d+f),Math.round((c/2)-p),Math.round((a.target-e)*d+f),Math.round((c/2)+p),A).append();h.drawLine(Math.round((a.target-e)*d+f-p),Math.round(c/2),Math.round((a.target-e)*d+f+p),Math.round(c/2),A).append()}if(a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){a.currentRegion=null;a.updateDisplay()}h.render()}},0,["sparklinebox"],["widget","sparkline","sparklinebox"],{"widget":!0,"sparkline":!0,"sparklinebox":!0},["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:['{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);this.updateConfigChange();return a},onUpdate:function(){var a=this,d=a.values,c,e,b,f=a.getBase();Ext.sparkline.Base.prototype.onUpdate.apply(this,arguments);b=d.slice();b[0]=b[0]===null?b[2]:b[0];b[1]=d[1]===null?b[2]:b[1];c=Math.min.apply(Math,d);e=Math.max.apply(Math,d);if(f==null){c=c<0?c:0}else {c=f}a.min=c;a.max=e;a.range=e-c;a.shapes={};a.valueShapes={};a.regiondata={};if(!d.length){a.disabled=!0}},getRegion:function(b,c){var a=this.canvas.getShapeAt(b,c);return (a!==undefined&&this.shapes[a]!==undefined)?this.shapes[a]:undefined},getRegionFields:function(a){return {fieldkey:a.substr(0,1),value:this.values[parseInt(a.substr(1),10)],region:a}},renderHighlight:function(c){var b=this,d=b.valueShapes,f=b.shapes,e=d[c],a;delete f[e];switch(c.substr(0,1)){case 'r':a=b.renderRange(parseInt(c.substr(1),10),!0);break;case 'p':a=b.renderPerformance(!0);break;case 't':a=b.renderTarget(!0);break;}d[c]=a.id;f[a.id]=c;b.canvas.replaceWithShape(e,a)},renderRange:function(d,f){var a=this,g=a.values[d],e=Math.round(a.getWidth()*((g-a.min)/a.range)),c=a.getRangeColors(),b=c[Math.min(d-2,c.length-1)];if(f){b=a.calcHighlightColor(b)}return a.canvas.drawRect(0,0,e-1,a.getHeight()-1,b,b)},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(e){var f=this.values[0],b=this.getTargetWidth(),g=Math.round(this.getWidth()*((f-this.min)/this.range)-(b/2)),c=Math.round(this.getHeight()*0.1),d=this.getHeight()-(c*2),a=this.getTargetColor();if(e){a=this.calcHighlightColor(a)}return this.canvas.drawRect(g,c,b-1,d-1,a,a)},renderGraph:function(){var a=this,g=a.values.length,f=a.canvas,c,b,e=a.shapes||(a.shapes={}),d=a.valueShapes||(a.valueShapes={});if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}for(c=2;c<g;c++){b=a.renderRange(c).append();e[b.id]='r'+c;d['r'+c]=b.id}if(a.values[1]!==null){b=a.renderPerformance().append();e[b.id]='p1';d.p1=b.id}if(a.values[0]!==null){b=this.renderTarget().append();e[b.id]='t0';d.t0=b.id}if(a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){a.updateDisplay()}f.render()},privates:{isValidRegion:function(a,b){return parseInt(a.substr(1),10)<b.length}}},0,["sparklinebullet"],["widget","sparkline","sparklinebullet"],{"widget":!0,"sparkline":!0,"sparklinebullet":!0},["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:!1},tipTpl:'{prefix}{value}{suffix}',applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);this.updateConfigChange();return a},onUpdate:function(){var a=this,b=a.values,d=a.getChartRangeMin(),c=a.getChartRangeMax(),e=a.getChartRangeClip();Ext.sparkline.BarBase.prototype.onUpdate.apply(this,arguments);a.regionShapes={};a.min=Math.min.apply(Math,b);a.max=Math.max.apply(Math,b);a.range=a.max-a.min;a.width=a.getWidth();a.interval=Math.floor(a.width/b.length);a.itemWidth=a.width/b.length;if(d!=null&&(e||d<a.min)){a.min=d}if(c!=null&&(e||c>a.max)){a.max=c}if(a.canvas){if(a.getLineHeight()==='auto'){a.setLineHeight(Math.round(a.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(h,l){var a=this,o=a.values,j=a.min,q=a.max,p=a.range,m=a.interval,n=a.canvas,k=a.getHeight(),g=a.getLineHeight(),i=k-g,c,d,b,e,f=a.getThresholdColor();d=Ext.Number.constrain(o[h],j,q);e=h*m;c=Math.round(i-i*((d-j)/p));b=(f&&d<a.getThresholdValue())?f:a.getLineColor();if(l){b=a.calcHighlightColor(b)}n.drawLine(e,c,e,c+g,b).append()}},0,["sparklinediscrete"],["widget","sparkline","sparklinediscrete"],{"widget":!0,"sparkline":!0,"sparklinediscrete":!0},["widget.sparklinediscrete"],0,[Ext.sparkline,'Discrete'],0));(Ext.cmd.derive('Ext.sparkline.Line',Ext.sparkline.Base,{config:{fillColor:'#def',spotColor:'#f80',highlightSpotColor:'#5f5',highlightLineColor:'#f22',spotRadius:1.5,minSpotColor:'#f80',maxSpotColor:'#f80',lineWidth:1,normalRangeMin:null,normalRangeMax:null,normalRangeColor:'#ccc',drawNormalOnTop:!1,chartRangeMin:null,chartRangeMax:null,chartRangeMinX:null,chartRangeMaxX:null,valueSpots:null},tipTpl:'&#9679; {prefix}{y}{suffix}',applyValueSpots:function(a){if(a&&!a.get){a=new Ext.sparkline.RangeMap(a)}this.updateConfigChange();return a},onUpdate:function(){this.vertices=[];this.regionMap=[];this.xvalues=[];this.yvalues=[];this.yminmax=[]},getRegion:function(c,d){var a,b=this.regionMap;for(a=b.length;a--;){if(b[a]!==null&&c>=b[a][0]&&c<=b[a][1]){return b[a][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 a=this,f=a.canvas,b=a.vertices[g],e=a.getSpotRadius(),d=a.getHighlightSpotColor(),c=a.getHighlightLineColor();if(!b){return}if(e&&d){f.drawCircle(b[0],b[1],e,null,d).append()}if(c){f.drawLine(b[0],a.canvasTop,b[0],a.canvasTop+a.getHeight(),c).append()}},scanValues:function(){var b=this,g=b.values,h=g.length,c=b.xvalues,f=b.yvalues,d=b.yminmax,e,a;for(e=0;e<h;e++){a=g[e];if(typeof a==='string'){a=a.split(':')}if(a&&a.length===2){c.push(Number(a[0]));f.push(a=Number(a[1]));d.push(a)}else {c.push(e);if(a==null||a==='null'){f.push(null)}else {f.push(a=Number(a));d.push(a)}}}if(b.xvalues){c=b.xvalues}b.maxy=b.maxyorg=Math.max.apply(Math,d);b.miny=b.minyorg=Math.min.apply(Math,d);b.maxx=Math.max.apply(Math,c);b.minx=Math.min.apply(Math,c);b.xvalues=c;b.yvalues=f;b.yminmax=d},processRangeOptions:function(){var a=this,d=a.getNormalRangeMin(),g=a.getNormalRangeMax(),f=a.getChartRangeMin(),c=a.getChartRangeMinX(),e=a.getChartRangeMax(),b=a.getChartRangeMaxX();if(d!=null){if(d<a.miny){a.miny=d}if(g>a.maxy){a.maxy=g}}if(f!=null&&(a.chartRangeClip||f<a.miny)){a.miny=f}if(e!=null&&(a.chartRangeClip||e>a.maxy)){this.maxy=e}if(c!=null&&(a.chartRangeClipX||c<a.minx)){a.minx=c}if(b!=null&&(a.chartRangeClipX||b>a.maxx)){a.maxx=b}},drawNormalRange:function(f,g,a,e,c){var d=this.getNormalRangeMin(),b=this.getNormalRangeMax(),i=g+Math.round(a-(a*((b-this.miny)/c))),h=Math.round((a*(b-d))/c);this.canvas.drawRect(f,i,e,h,undefined,this.normalRangeColor).append()},renderGraph:function(){var a=this,m=a.canvas,g=a.getWidth(),e=a.getHeight(),H=a.vertices,c=a.getSpotRadius(),K=a.regionMap,n,k,l,h,i,C,d,A,q,o,J,w,I,E,B,z,y,x,p,u=a.getValueSpots(),r,D,j,f,b,v=a.getSpotColor(),t=a.getMinSpotColor(),s=a.getMaxSpotColor(),G=a.getNormalRangeMin(),F=a.getDrawNormalOnTop();if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}a.scanValues();a.processRangeOptions();j=a.xvalues;f=a.yvalues;if(!a.yminmax.length||a.yvalues.length<2){return}h=i=0;n=a.maxx-a.minx===0?1:a.maxx-a.minx;k=a.maxy-a.miny===0?1:a.maxy-a.miny;l=a.yvalues.length-1;if(c&&(g<(c*4)||e<(c*4))){c=0}if(c){r=a.getHighlightSpotColor()&&!a.disableInteraction;if(r||t||(v&&f[l]===a.miny)){e-=Math.ceil(c)}if(r||s||(v&&f[l]===a.maxy)){e-=Math.ceil(c);h+=Math.ceil(c)}if(r||((t||s)&&(f[0]===a.miny||f[0]===a.maxy))){i+=Math.ceil(c);g-=Math.ceil(c)}if(r||v||(t||s&&(f[l]===a.miny||f[l]===a.maxy))){g-=Math.ceil(c)}}e--;if(G!=null&&!F){a.drawNormalRange(i,h,e,g,k)}d=[];A=[d];E=B=null;z=f.length;for(b=0;b<z;b++){q=j[b];J=j[b+1];o=f[b];w=i+Math.round((q-a.minx)*(g/n));I=b<z-1?i+Math.round((J-a.minx)*(g/n)):g;B=w+((I-w)/2);K[b]=[E||0,B,b];E=B;if(o===null){if(b){if(f[b-1]!==null){d=[];A.push(d)}H.push(null)}}else {if(o<a.miny){o=a.miny}if(o>a.maxy){o=a.maxy}if(!d.length){d.push([w,h+e])}C=[w,h+Math.round(e-(e*((o-this.miny)/k)))];d.push(C);H.push(C)}}y=[];x=[];p=A.length;for(b=0;b<p;b++){d=A[b];if(d.length){if(a.fillColor){d.push([d[d.length-1][0],(h+e)]);x.push(d.slice(0));d.pop()}if(d.length>2){d[0]=[d[0][0],d[1][1]]}y.push(d)}}p=x.length;for(b=0;b<p;b++){m.drawShape(x[b],a.fillColor,a.fillColor).append()}if(G!=null&&F){a.drawNormalRange(i,h,e,g,k)}p=y.length;for(b=0;b<p;b++){m.drawShape(y[b],a.getLineColor(),null,a.getLineWidth()).append()}if(c&&u){if(u.get==null){u=new Ext.sparkline.RangeMap(u)}for(b=0;b<z;b++){D=u.get(f[b]);if(D){m.drawCircle(i+Math.round((j[b]-a.minx)*(g/n)),h+Math.round(e-(e*((f[b]-a.miny)/k))),c,null,D).append()}}}if(c&&v&&f[l]!=null){m.drawCircle(i+Math.round((j[j.length-1]-a.minx)*(g/n)),h+Math.round(e-(e*((f[l]-a.miny)/k))),c,null,v).append()}if(a.maxy!==a.minyorg){if(c&&t){q=j[Ext.Array.indexOf(f,a.minyorg)];m.drawCircle(i+Math.round((q-a.minx)*(g/n)),h+Math.round(e-(e*((a.minyorg-a.miny)/k))),c,null,t).append()}if(c&&s){q=j[Ext.Array.indexOf(f,a.maxyorg)];m.drawCircle(i+Math.round((q-a.minx)*(g/n)),h+Math.round(e-(e*((a.maxyorg-a.miny)/k))),c,null,s).append()}}a.canvasTop=h;if(a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){a.updateDisplay()}m.render()}},0,["sparklineline"],["widget","sparkline","sparklineline"],{"widget":!0,"sparkline":!0,"sparklineline":!0},["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:'&#9679; {value} ({percent:number("0.0")}%)',applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);this.updateConfigChange();return a},onUpdate:function(){var a=this,b=a.values,d=0,c;Ext.sparkline.Base.prototype.onUpdate.apply(this,arguments);a.shapes={};a.valueShapes={};if(b.length>0){for(c=b.length;c--;){d+=b[c]}}a.total=d;a.radius=Math.floor(Math.min(a.getWidth(),a.getHeight())/2)},getRegion:function(c,d){var b=window.devicePixelRatio||1,a=this.canvas.getShapeAt(c*b,d*b);return (a!=null&&this.shapes[a]!=null)?this.shapes[a]:null},getRegionFields:function(a){var b=this.getSliceColors();return {isNull:this.values[a]==null,value:this.values[a],percent:this.values[a]/this.total*100,color:b[a%b.length],offset:a}},renderHighlight:function(a){this.renderSlice(a,!0).append()},renderSlice:function(o,n){var a=this,p=a.canvas,f=a.radius,m=a.getBorderWidth(),h=a.getOffset(),q=2*Math.PI,i=a.values,k=a.total,d=h?(2*Math.PI)*(h/360):0,j,e,b,l,c,g=this.getSliceColors();l=i.length;for(b=0;b<l;b++){j=d;e=d;if(k>0){e=d+(q*(i[b]/k))}if(o===b){c=g[b%g.length];if(n){c=a.calcHighlightColor(c)}return p.drawPieSlice(f,f,f-m,j,e,null,c)}d=e}},renderGraph:function(){var a=this,f=a.canvas,g=a.values,d=a.radius,c=a.getBorderWidth(),e,b,i=a.shapes||(a.shapes={}),h=a.valueShapes||(a.valueShapes={});if(!Ext.sparkline.Base.prototype.renderGraph.call(this)){return}if(c){f.drawCircle(d,d,Math.floor(d-(c/2)),a.getBorderColor(),null,c).append()}for(b=g.length;b--;){if(g[b]){e=a.renderSlice(b).append();h[b]=e.id;i[e.id]=b}}if(a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){a.currentRegion=null;a.updateDisplay()}f.render()}},0,["sparklinepie"],["widget","sparkline","sparklinepie"],{"widget":!0,"sparkline":!0,"sparklinepie":!0},["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:['&#9679; {value:this.states}',{states:function(b){var a=Number(b);if(a===-1){return 'Loss'}if(a===0){return 'Draw'}if(a===1){return 'Win'}return b}}],applyColorMap:function(b){var a=this;if(Ext.isArray(b)){a.colorMapByIndex=b;a.colorMapByValue=null}else {a.colorMapByIndex=null;a.colorMapByValue=b;if(a.colorMapByValue&&a.colorMapByValue.get==null){a.colorMapByValue=new Ext.sparkline.RangeMap(b)}}a.updateConfigChange();return b},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);this.updateConfigChange();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(h,c){var b=this,g=b.values,d=b.colorMapByIndex,e=b.colorMapByValue,a,f;if(e&&(f=e.get(h))){a=f}else if(d&&d.length>c){a=d[c]}else if(g[c]<0){a=b.getNegBarColor()}else if(g[c]>0){a=b.getPosBarColor()}else {a=b.getZeroBarColor()}return a},renderRegion:function(d,k){var b=this,g=b.values,i=b.canvas,h,e,c,j,f,a;h=i.pixelHeight;c=Math.round(h/2);j=d*b.totalBarWidth;if(g[d]<0){f=c;e=c-1}else if(g[d]>0){f=0;e=c-1}else {f=c-1;e=2}a=b.calcColor(g[d],d);if(a==null){return}if(k){a=b.calcHighlightColor(a)}i.drawRect(j,f,b.getBarWidth()-1,e-1,a,a).append()}},0,["sparklinetristate"],["widget","sparkline","sparklinetristate"],{"widget":!0,"sparkline":!0,"sparklinetristate":!0},["widget.sparklinetristate"],0,[Ext.sparkline,'TriState'],0));(Ext.cmd.derive('Ext.util.Base64',Ext.Base,{singleton:!0,_str:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var b=this;var g='',h,c,d,j,k,i,e,f=0;a=b._utf8_encode(a);var l=a.length;while(f<l){h=a.charCodeAt(f++);c=a.charCodeAt(f++);d=a.charCodeAt(f++);j=h>>2;k=((h&3)<<4)|(c>>4);i=((c&15)<<2)|(d>>6);e=d&63;if(isNaN(c)){i=e=64}else if(isNaN(d)){e=64}g=g+b._str.charAt(j)+b._str.charAt(k)+b._str.charAt(i)+b._str.charAt(e)}return g},decode:function(b){var c=this;var a='',h,i,j,k,f,e,g,d=0;b=b.replace(/[^A-Za-z0-9\+\/\=]/g,"");var l=b.length;while(d<l){k=c._str.indexOf(b.charAt(d++));f=c._str.indexOf(b.charAt(d++));e=c._str.indexOf(b.charAt(d++));g=c._str.indexOf(b.charAt(d++));h=(k<<2)|(f>>4);i=((f&15)<<4)|(e>>2);j=((e&3)<<6)|g;a=a+String.fromCharCode(h);if(e!==64){a=a+String.fromCharCode(i)}if(g!==64){a=a+String.fromCharCode(j)}}a=c._utf8_decode(a);return a},_utf8_encode:function(c){c=c.replace(/\r\n/g,"\n");var b='',d=0,e=c.length;for(;d<e;d++){var a=c.charCodeAt(d);if(a<128){b+=String.fromCharCode(a)}else if((a>127)&&(a<2048)){b+=String.fromCharCode((a>>6)|192);b+=String.fromCharCode((a&63)|128)}else {b+=String.fromCharCode((a>>12)|224);b+=String.fromCharCode(((a>>6)&63)|128);b+=String.fromCharCode((a&63)|128)}}return b},_utf8_decode:function(c){var d='',a=0,b=0,f=0,e=0,g=c.length;while(a<g){b=c.charCodeAt(a);if(b<128){d+=String.fromCharCode(b);a++}else if((b>191)&&(b<224)){e=c.charCodeAt(a+1);d+=String.fromCharCode(((b&31)<<6)|(e&63));a+=2}else {e=c.charCodeAt(a+1);f=c.charCodeAt(a+2);d+=String.fromCharCode(((b&15)<<12)|((e&63)<<6)|(f&63));a+=3}}return d}},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:'"',lineBreakRe:/\r?\n/g,lastLineBreakRe:/(\r?\n|\r)$/,constructor:function(a){if(a){Ext.apply(this,a)}this.parseREs={};this.quoteREs={}},decode:function(g,m,k){if(!g){return []}var c=this,d=m||c.delimiter,h=[],l=[h],a=k!==undefined?k:c.quote,o=c.quoteREs,n=c.parseREs,f,e,b,i,j;f=a===c.quote?n[d]:null;f=f||new RegExp("(\\"+d+"|\\r?\\n|\\r|^)(?:"+(a===null?'()':"\\"+a+"([^\\"+a+"]*(?:\\"+a+"\\"+a+"[^\\"+a+"]*)*)\\"+a+"|")+"([^"+(a===null?'':a)+d+"\\r\\n]*))","gi");e=a===c.quote?o[a]:null;e=e||new RegExp('\\'+a+'\\'+a,'g');g=g.replace(c.lastLineBreakRe,'');while((b=f.exec(g))){i=b[1];if(i.length&&i!==d){l.push(h=[])}if(!b.index&&b[0].charAt(0)===d){h.push('')}if(b[2]){j=b[2].replace(e,a)}else {j=b[3]}h.push(j)}return l},encode:function(k,n,h){var c=this,j=n||c.delimiter,m=c.dateFormat,b=h!==undefined?h:c.quote,o=b+b,g=k.length,l=c.lineBreakRe,i=[],e=[],a,d,f;while(g-->0){f=k[g];e.length=d=f.length;while(d-->0){a=f[d];if(a==null){a=''}else if(typeof a==='string'){if(a&&b!==null){if(a.indexOf(b)>-1){a=b+a.split(b).join(o)+b}else if(a.indexOf(j)>-1||l.test(a)){a=b+a+b}}}else if(Ext.isDate(a)){a=Ext.Date.format(a,m)}e[d]=a}i[g]=e.join(j)}return i.join(c.lineBreak)}},1,0,0,0,0,0,[Ext.util,'DelimitedValue'],0));(Ext.cmd.derive('Ext.util.CSV',Ext.util.DelimitedValue,{singleton:!0,delimiter:','},0,0,0,0,0,0,[Ext.util,'CSV'],0));(Ext.cmd.derive('Ext.util.ClickRepeater',Ext.Base,{alternateClassName:'Ext.util.TapRepeater',config:{el:null,target:null,disabled:null},interval:20,delay:250,preventDefault:!0,stopDefault:!1,timer:0,handler:null,scope:null,constructor:function(a){var b=this;if(arguments.length===2){b.setEl(a);a=arguments[1]}b.mixins.observable.constructor.call(this,a)},destroy:function(){this.setEl(null);this.callParent()},privates:{fireClick:function(b){var a=this;a.fireEvent("click",a,b);Ext.callback(a.handler,a.scope,[a,b],0,a.getTarget())},updateDisabled:function(b){var a=this;if(b){a.savedEl=a.getEl();a.setEl(null)}else if(a.savedEl){a.setEl(a.savedEl)}},updateTarget:function(a){this.setEl(a.el)},updateEl:function(c,d){var a=this,b;if(d){d.selectable();Ext.undefer(a.timer);if(a.pressedCls){d.removeCls(a.pressedCls)}Ext.getDoc().un('mouseup',a.handleMouseUp,a);a.elListeners=Ext.destroy(a.elListeners)}if(c){c.unselectable();b={mousedown:a.handleMouseDown,scope:a,destroyable:!0};if(a.preventDefault||a.stopDefault){b.click=a.eventOptions}a.elListeners=c.on(b)}},eventOptions:function(a){if(this.preventDefault){a.preventDefault()}if(this.stopDefault){a.stopEvent()}},handleMouseDown:function(b){var a=this,c=a.getEl();Ext.undefer(a.timer);if(a.pressedCls){c.addCls(a.pressedCls)}a.mousedownTime=Ext.now();if(b.pointerType==='mouse'){c.on("mouseout",a.handleMouseOut,a)}Ext.getDoc().on("mouseup",a.handleMouseUp,a);a.fireEvent("mousedown",a,b);a.fireClick(b);if(a.accelerate){a.delay=400}a.timer=Ext.defer(a.click,a.delay||a.interval,a,[b]);if(a.mousedownPreventDefault){b.preventDefault()}if(a.mousedownStopEvent){b.stopEvent()}},click:function(b){var a=this;a.fireClick(b);a.timer=Ext.defer(a.click,a.accelerate?a.easeOutExpo(Ext.now()-a.mousedownTime,400,-390,12000):a.interval,a,[b])},easeOutExpo:function(d,a,b,c){return (d===c)?a+b:b*(-Math.pow(2,-10*d/c)+1)+a},handleMouseOut:function(){var a=this,b=a.getEl();Ext.undefer(a.timer);if(a.pressedCls){b.removeCls(a.pressedCls)}b.on("mouseover",a.handleMouseReturn,a)},handleMouseReturn:function(c){var a=this,b=a.getEl();b.un("mouseover",a.handleMouseReturn,a);if(a.pressedCls){b.addCls(a.pressedCls)}a.click(c)},handleMouseUp:function(c){var a=this,b=a.getEl();Ext.undefer(a.timer);b.un("mouseover",a.handleMouseReturn,a);b.un("mouseout",a.handleMouseOut,a);Ext.getDoc().un("mouseup",a.handleMouseUp,a);if(a.pressedCls){b.removeCls(a.pressedCls)}a.fireEvent("mouseup",a,c)}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.util,'ClickRepeater',Ext.util,'TapRepeater'],0));(Ext.cmd.derive('Ext.util.Cookies',Ext.Base,{singleton:!0,set:function(h,g){var a=arguments,b=a.length,c=(b>2)?a[2]:null,e=(b>3)?a[3]:'/',d=(b>4)?a[4]:null,f=(b>5)?a[5]:!1;document.cookie=h+"="+escape(g)+((c===null)?"":("; expires="+c.toUTCString()))+((e===null)?"":("; path="+e))+((d===null)?"":("; domain="+d))+((f===!0)?"; secure":"")},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a<f;++a){b=d[a].split('=');if(b[0]===e){c=b[1];return c?unescape(c):''}}return null},clear:function(b,a){if(this.get(b)){a=a||'/';document.cookie=b+'=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path='+a}}},0,0,0,0,0,0,[Ext.util,'Cookies'],0));(Ext.cmd.derive('Ext.util.ItemCollection',Ext.util.MixedCollection,{alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}},0,0,0,0,0,0,[Ext.util,'ItemCollection',Ext,'ItemCollection'],0));(Ext.cmd.derive('Ext.util.LocalStorage',Ext.Base,{id:null,destroyed:!1,lazyKeys:!0,prefix:'',session:!1,_keys:null,_store:null,_users:0,statics:{cache:{},get:function(c){var d=this,e=d.cache,b={_users:1},a;if(Ext.isString(c)){b.id=c}else {Ext.apply(b,c)}if(!(a=e[b.id])){a=new d(b)}else {++a._users}return a},supported:!0},constructor:function(b){var a=this;Ext.apply(a,b);if(a._users){Ext.util.LocalStorage.cache[a.id]=a}a.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.callParent()},getKeys:function(){var c=this,g=c._store,f=c.prefix,a=c._keys,e=f.length,d,b;if(!a){c._keys=a=[];for(d=g.length;d--;){b=g.key(d);if(b.length>e){if(f===b.substring(0,e)){a.push(b.substring(e))}}}}return a},release:function(){if(!--this._users){this.destroy()}},save:Ext.emptyFn,clear:function(){var a=this,e=a._store,d=a.prefix,b=a._keys||a.getKeys(),c;for(c=b.length;c--;){e.removeItem(d+b[c])}b.length=0},key:function(a){var b=this._keys||this.getKeys();return (0<=a&&a<b.length)?b[a]:null},getItem:function(a){var b=this.prefix+a;return this._store.getItem(b)},removeItem:function(d){var a=this,f=a.prefix+d,b=a._store,c=a._keys,e=b.length;b.removeItem(f);if(c&&e!==b.length){if(a.lazyKeys){a._keys=null}else {Ext.Array.remove(c,d)}}},setItem:function(d,f){var b=this,g=b.prefix+d,a=b._store,e=a.length,c=b._keys;a.setItem(g,f);if(c&&e!==a.length){c.push(d)}}},1,0,0,0,0,0,[Ext.util,'LocalStorage'],function(){var a=this;if('localStorage' in window){return}if(!Ext.isIE){a.supported=!1;return}a.override({data:null,flushDelay:1,init:function(){var a=this,c=a.data,b;a.el=b=document.createElement('div');b.id=(a.id||(a.id='extjs-localstore'));b.addBehavior('#default#userdata');Ext.getHead().dom.appendChild(b);b.load(a.id);c=b.getAttribute('xdata');a.data=c=(c?Ext.decode(c):{});a._flushFn=function(){a._timer=null;a.save(0)}},destroy:function(){var a=this,b=a.el;if(b){if(a._timer){a.save()}b.parentNode.removeChild(b);a.data=a.el=null;a.callParent()}},getKeys:function(){var b=this,a=b._keys;if(!a){b._keys=a=Ext.Object.getKeys(b.data)}return a},save:function(b){var a=this;if(!b){a._timer=Ext.undefer(a._timer);a.el.setAttribute('xdata',Ext.encode(a.data));a.el.save(a.id)}else if(!a._timer){a._timer=Ext.defer(a._flushFn,b)}},clear:function(){var a=this;a.data={};a._keys=null;a.save(a.flushDelay)},getItem:function(b){var a=this.data;return (b in a)?a[b]:null},removeItem:function(b){var a=this,d=a._keys,c=a.data;if(b in c){delete c[b];if(d){if(a.lazyKeys){a._keys=null}else {Ext.Array.remove(d,b)}}a.save(a.flushDelay)}},setItem:function(b,e){var a=this,c=a.data,d=a._keys;if(d&&!(b in c)){d.push(b)}c[b]=e;a.save(a.flushDelay)}})}));(Ext.cmd.derive('Ext.util.Spans',Ext.Base,{isSpans:!0,constructor:function(){this.spans=this.spans||[]},clear:function(){this.spans.length=0;return this},add:function(b,a){if(a===undefined){if(typeof b==='number'){a=b+1}else {a=b[1];b=b[0]}}var g=this,f=g.spans,i,h,d,e,c;d=g.bisect(b);if(d){c=f[d-1];i=c[0];h=c[1];if(b<=h){if(a<=h){return !1}b=i;f.splice(--d,1)}}e=g.bisect(a);if(e>d){c=f[e-1];a=Math.max(a,c[1])}if(e<f.length){c=f[e];if(a===c[0]){a=c[1];++e}}f.splice(d,e-d,[b,a]);return !0},contains:function(a,b){if(b===undefined){if(typeof a==='number'){b=a+1}else {b=a[1];a=a[0]}}var d=this.spans,c=this.bisect(a),f=!1,g,e;if(c&&a<(g=d[c-1][1])){f=b<=g}else if(c<d.length){e=d[c];f=e[0]<=a&&b<=e[1]}return f},each:function(g,e){var d=this.spans,f=d.length,a,b,c;for(a=0;a<f;a++){b=d[a];for(c=b[0];c<b[1];c++){if(g.call(e||this,a)===!1){return}}}},intersects:function(a,c){if(c===undefined){if(typeof a==='number'){c=a+1}else {c=a[1];a=a[0]}}var d=this.spans,b=this.bisect(a),e=!1;if(b&&a<d[b-1][1]){e=!0}else if(b<d.length){e=d[b][0]<c}return e},remove:function(a,b){if(b===undefined){if(typeof a==='number'){b=a+1}else {b=a[1];a=a[0]}}var i=this,f=i.spans,d=i.bisect(a),h=!1,c,e,g;if(d){e=f[d-1];g=e[1];if(a<g){e[1]=a;if(b<g){f.splice(d,0,[b,g]);return !0}h=!0}}c=i.bisect(b);if(d<c){h=!0;e=f[c-1];if(b<e[1]){e[0]=b;--c}c-=d;if(c){f.splice(d,c)}}return h},stash:function(){return this.spans.slice()},unstash:function(a){this.spans=a;return this},getCount:function(){var d=this.spans,e=d.length,c=0,a,b;for(a=0;a<e;a++){b=d[a];c+=b[1]-b[0]}return c},privates:{bisect:function(a){return Ext.Number.bisectTuples(this.spans,a,0)}}},1,0,0,0,0,0,[Ext.util,'Spans'],0));(Ext.cmd.derive('Ext.util.TsvDecoder',Ext.util.DelimitedValue,{alternateClassName:'Ext.util.TSV',delimiter:'\t'},0,0,0,0,0,0,[Ext.util,'TsvDecoder',Ext.util,'TSV'],function(a){Ext.util.TSV=new a()}));(Ext.cmd.derive('Ext.util.TaskManager',Ext.util.TaskRunner,{alternateClassName:['Ext.TaskManager'],singleton:!0},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(d,e,c){var b=this,a=b.shared||(b.shared=new b(d,c));a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){this.shared=Ext.destroy(this.shared)}},constructor:function(b,a){var c=this,d=c.measure=Ext.getBody().createChild({role:'presentation',cls:'x-textmetrics',style:{position:'absolute',left:'-1000px',top:'-1000px',visibility:'hidden'}});if(b){c.bind(b)}if(a){d.setWidth(a)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(a){this.measure.setStyle((this.el||(this.self.prototype.el=new Ext.dom.Fly())).attach(a).getStyle(['font-size','font-size-adjust','font-style','font-weight','font-family','font-kerning','font-stretch','line-height','text-transform','text-decoration','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.el=a.measure=Ext.destroy(a.measure);a.callParent()}},1,0,0,0,0,0,[Ext.util,'TextMetrics'],function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})}));(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.sizemonitor.OverflowChange',Ext.util.sizemonitor.Abstract,{constructor:function(a){this.onExpand=this.onExpand.bind(this);this.onShrink=this.onShrink.bind(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,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(!(this.destroyed||(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow))){Ext.TaskQueue.requestRead('refresh',this)}},onShrink:function(a){if(!(this.destroyed||(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow))){Ext.TaskQueue.requestRead('refresh',this)}},refreshMonitors:function(){if(this.destroying||this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=(f+1)+'px';a.height=(e+1)+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)},destroy:function(){this.onExpand=this.onShrink=null;Ext.util.sizemonitor.Abstract.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,'OverflowChange'],0));(Ext.cmd.derive('Ext.util.translatable.CssPosition',Ext.util.translatable.Dom,{doTranslate:function(a,b){var c=this.getElement().dom.style;if(typeof a==='number'){c.left=a+'px'}if(typeof b==='number'){c.top=b+'px'}Ext.util.translatable.Dom.prototype.doTranslate.call(this,a,b)},syncPosition:function(){var a=this.getElement().dom.style;return [this.x=parseFloat(a.left),this.y=parseFloat(a.top)]},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,["translatable.cssposition"],0,[Ext.util.translatable,'CssPosition'],0));(Ext.cmd.derive('Ext.util.translatable.CssTransform',Ext.util.translatable.Dom,{isCssTransform:!0,posRegex:/(\d+)px[^\d]*(\d+)px/,doTranslate:function(c,d){var b=this,a=b.getElement();if(!b.destroyed&&!a.destroyed){a.translate(c,d)}Ext.util.translatable.Dom.prototype.doTranslate.call(this,c,d)},syncPosition:function(){var a=this.posRegex.exec(this.getElement().dom.style.tranform);if(a){this.x=parseFloat(a[1]);this.y=parseFloat(a[2])}return [this.x,this.y]},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,["translatable.csstransform"],0,[Ext.util.translatable,'CssTransform'],0));(Ext.cmd.derive('Ext.util.translatable.ScrollParent',Ext.util.translatable.Dom,{isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c));Ext.util.translatable.Dom.prototype.doTranslate.call(this,b,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,["translatable.scrollparent"],0,[Ext.util.translatable,'ScrollParent'],0));Ext.define(null,{override:'Ext.form.field.Checkbox',compatibility:Ext.isIE8,changeEventName:'propertychange',onChangeEvent:function(a){if(this.duringSetRawValue||a.browserEvent.propertyName!=='checked'){return}this.callParent([a])},updateCheckedCls:function(c){var a=this,b=a.displayEl;a.callParent([c]);if(b&&c!==a.lastValue){b.repaint()}}});Ext.define(null,{override:'Ext.form.field.Radio',compatibility:Ext.isIE8,getSubTplData:function(b){var a=this.callParent([b]);delete a.checked;return a},afterRender:function(){this.callParent();if(this.checked){this.inputEl.dom.checked=!0}},onChange:function(a,b){this.callSuper([a,b])}});Ext.define(null,{override:'Ext.scroll.Scroller',compatibility:Ext.isIE8,privates:{doScrollTo:function(a,b,d){var c=this,g=c.getScrollElement(),i,e,m,k,l,h,f,j;if(g&&!g.destroyed){e=g.dom;k=(a===Infinity);l=(b===Infinity);if(k||l){i=c.getMaxPosition();if(k){a=i.x}if(l){b=i.y}}if(a!==null){a=c.convertX(a)}if(d){m={};if(b!=null){m.scrollTop=b}if(a!=null){m.scrollLeft=a}d=Ext.mergeIf({to:{scrollTop:b,scrollLeft:a}},d);f=new Ext.Deferred();j=d.callback;d.callback=function(){if(j){j.call(d.scope||Ext.global,arguments)}if(c.destroyed){f.reject()}else {f.resolve()}};g.animate(d);h=f.promise}else {if((a!=null&&a!==0)&&b!=null){c.deferDomScroll=!0}if(b!=null){e.scrollTop=b}if(a!=null){e.scrollLeft=a}if(c.deferDomScroll){c.deferDomScroll=!1;+e.scrollLeft;e.scrollLeft=a;+e.scrollTop;e.scrollTop=b}h=Ext.Deferred.getCachedResolved()}c.positionDirty=!0}else {h=Ext.Deferred.getCachedRejected()}return h},onDomScroll:function(){var a=this;if(a.deferDomScroll){return}a.callParent()}}});(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:!0,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])},setGlyph:function(a){this.initialConfig.glyph=a;this.callEach('setGlyph',[a])},getIconCls:function(){return this.initialConfig.iconCls},setDisabled:function(a){this.initialConfig.disabled=a;this.callEach('setDisabled',[a])},enable:function(){this.setDisabled(!1)},disable:function(){this.setDisabled(!0)},isDisabled:function(){return this.initialConfig.disabled},setHidden:function(a){this.initialConfig.hidden=a;this.callEach('setVisible',[!a])},show:function(){this.setHidden(!1)},hide:function(){this.setHidden(!0)},isHidden:function(){return this.initialConfig.hidden},setHandler:function(a,b){this.initialConfig.handler=a;this.initialConfig.scope=b;this.callEach('setHandler',[a,b])},each:function(b,a){Ext.each(this.items,b,a)},callEach:function(d,e){var c=this.items,b=0,f=c.length,a;Ext.suspendLayouts();for(;b<f;b++){a=c[b];a[d].apply(a,e)}Ext.resumeLayouts(!0)},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(c,b,a){c.getTarget().setHtml(b.responseText,a.scripts===!0,a.callback,a.rendererScope);return !0}}},url:null,params:null,baseParams:null,autoLoad:!1,target:null,loadMask:!1,ajaxOptions:null,scripts:!1,isLoader:!0,constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.setTarget(a.target);if(a.autoLoad){b=a.autoLoad;if(b===!0){b=null}a.load(b)}},setTarget:function(a){var b=this;a=Ext.get(a);if(b.target&&b.target!==a){b.abort()}b.target=a},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===!0?null:a)},load:function(b){if(this.destroying||this.destroyed){return}b=Ext.apply({},b);var a=this,d=Ext.isDefined(b.loadMask)?b.loadMask:a.loadMask,c=Ext.apply({},b.params),e=Ext.apply({},b.ajaxOptions),f=b.callback||a.callback,g=b.scope||a.scope||a;Ext.applyIf(e,a.ajaxOptions);Ext.applyIf(b,e);Ext.applyIf(c,a.params);Ext.apply(c,a.baseParams);Ext.applyIf(b,{url:a.url});Ext.apply(b,{scope:a,params:c,callback:a.onComplete});if(a.fireEvent('beforeload',a,b)===!1){return}if(d){a.addMask(d)}a.active={options:b,mask:d,scope:g,callback:f,success:b.success||a.success,failure:b.failure||a.failure,renderer:b.renderer||a.renderer,scripts:Ext.isDefined(b.scripts)?b.scripts:a.scripts};a.active.request=Ext.Ajax.request(b);a.setOptions(a.active,b)},setOptions:function(b,a){b.rendererScope=a.rendererScope||this.rendererScope||this},onComplete:function(d,e,c){var a=this,b=a.active,g,f;if(b){f=b.scope;g=b.rendererScope;if(e){e=a.getRenderer(b.renderer).call(g,a,c,b)!==!1}if(e){Ext.callback(b.success,f,[a,c,d]);a.fireEvent('load',a,c,d)}else {Ext.callback(b.failure,f,[a,c,d]);a.fireEvent('exception',a,c,d)}Ext.callback(b.callback,f,[a,e,c,d]);if(b.mask){a.removeMask()}}delete a.active},getRenderer:function(a){if(Ext.isFunction(a)){return a}return this.statics().Renderer.Html},startAutoRefresh:function(b,c){var a=this;a.stopAutoRefresh();a.autoRefresh=Ext.interval(function(){a.load(c)},b)},stopAutoRefresh:function(){Ext.uninterval(this.autoRefresh);this.autoRefresh=null},isAutoRefreshing:function(){return !!this.autoRefresh},destroy:function(){var a=this;a.stopAutoRefresh();a.abort();a.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,'ElementLoader'],0));(Ext.cmd.derive('Ext.ComponentLoader',Ext.ElementLoader,{statics:{Renderer:{Data:function(c,b,d){var a=!0;try{c.getTarget().update(Ext.decode(b.responseText))}catch(e){a=!1}return a},Component:function(f,d,e){var b=!0,a=f.getTarget(),c=[];try{c=Ext.decode(d.responseText)}catch(g){b=!1}if(b){a.suspendLayouts();if(e.removeAll){a.removeAll()}a.add(c);a.resumeLayouts(!0)}return b}}},target:null,loadOnRender:!1,loadMask:!1,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(!1)},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(a){if(Ext.isFunction(a)){return a}var b=this.statics().Renderer;switch(a){case 'component':return b.Component;case 'data':return b.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(e){var a=this,b=a.self,d=b.sizeModelsArray,c;Ext.apply(a,e);a[c=a.name]=!0;a.fixed=!(a.auto=a.natural||a.shrinkWrap);d[a.ordinal=d.length]=b[c]=b.sizeModels[c]=a},statics:{sizeModelsArray:[],sizeModels:{}},calculated:!1,configured:!1,constrainedMax:!1,constrainedMin:!1,natural:!1,shrinkWrap:!1,calculatedFromConfigured:!1,calculatedFromNatural:!1,calculatedFromShrinkWrap:!1,names:null},1,0,0,0,0,0,[Ext.layout,'SizeModel'],function(){var a=this,d=a.sizeModelsArray,c,b,f,g,e;new a({name:'calculated'});new a({name:'configured',names:{width:'width',height:'height'}});new a({name:'natural'});new a({name:'shrinkWrap'});new a({name:'calculatedFromConfigured',configured:!0,calculatedFrom:!0,names:{width:'width',height:'height'}});new a({name:'calculatedFromNatural',natural:!0,calculatedFrom:!0});new a({name:'calculatedFromShrinkWrap',shrinkWrap:!0,calculatedFrom:!0});new a({name:'constrainedMax',configured:!0,constrained:!0,names:{width:'maxWidth',height:'maxHeight'}});new a({name:'constrainedMin',configured:!0,constrained:!0,names:{width:'minWidth',height:'minHeight'}});new a({name:'constrainedDock',configured:!0,constrained:!0,constrainedByMin:!0,names:{width:'dockConstrainedWidth',height:'dockConstrainedHeight'}});for(c=0,f=d.length;c<f;++c){e=d[c];e.pairsByHeightOrdinal=g=[];for(b=0;b<f;++b){g.push({width:e,height:d[b],ordinal:b})}}}));(Ext.cmd.derive('Ext.layout.Layout',Ext.Base,{factoryConfig:{type:'layout',defaultType:'autocontainer',instanceProp:'isLayout'},isLayout:!0,initialized:!1,running:!1,needsItemSize:!0,setsItemSize:!0,autoSizePolicy:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},$configPrefixed:!1,$configStrict:!1,constructor:function(b){var a=this;a.id=Ext.id(null,a.type+'-');a.initConfig(b);delete a.type;a.layoutCount=0},beginLayout:Ext.emptyFn,beginLayoutCycle:function(b){var a=this,d=a.context,c;if(a.lastWidthModel!==b.widthModel){if(a.lastWidthModel){c=!0}a.lastWidthModel=b.widthModel}if(a.lastHeightModel!==b.heightModel){if(a.lastWidthModel){c=!0}a.lastHeightModel=b.heightModel}if(c){(d=b.context).clearTriggers(a,!1);d.clearTriggers(a,!0);a.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},isItemBoxParent:function(a){return !1},isItemLayoutRoot:function(d){var a=d.getSizeModel(),c=a.width,b=a.height;if(!d.componentLayout.lastComponentSize&&(c.calculated||b.calculated)){return !1}return !c.shrinkWrap&&!b.shrinkWrap},isItemShrinkWrap:function(a){return a.shrinkWrap},isRunning:function(){return !!this.ownerContext},getItemsRenderTree:function(g,c){var f=g.length,d,a,b,e;if(f){e=[];for(d=0;d<f;++d){a=g[d];if(!a.rendered){if(c&&(c[a.id]!==undefined)){b=c[a.id]}else {this.configureItem(a);b=a.getRenderTree();if(c){c[a.id]=b}}if(b){e.push(b)}}}}return e},finishRender:Ext.emptyFn,finishRenderItems:function(e,c){var d=c.length,a,b;for(a=0;a<d;a++){b=c[a];if(b.rendering){b.finishRender(a)}}},renderChildren:function(){var a=this,c=a.getLayoutItems(),b=a.getRenderTarget();a.renderItems(c,b)},renderItems:function(f,d){var c=this,g=f.length,e=0,b=0,a;if(g){Ext.suspendLayouts();for(;e<g;e++,b++){a=f[e];if(a&&!a.rendered){c.renderItem(a,d,b)}else if(a.ignoreDomPosition){--b}else if(!c.isValidParent(a,d,b)){c.moveItem(a,d,b)}else {c.configureItem(a)}}Ext.resumeLayouts(!0)}},isValidParent:function(e,d,a){var b=(d&&d.dom)||d,c=this.getItemLayoutEl(e);if(c&&b){if(typeof a==='number'){a=this.getPositionOffset(a);return c===b.childNodes[a]}return c.parentNode===b}return !1},getItemLayoutEl:function(c){var a=c.el?c.el.dom:Ext.getDom(c),d=a.parentNode,b;if(d){b=d.className;if(b&&b.indexOf('x-resizable-wrap')!==-1){a=a.parentNode}}return a},getPositionOffset:function(a){return a},configureItem:function(a){a.ownerLayout=this},renderItem:function(a,c,b){var d=this;if(!a.rendered){d.configureItem(a);a.render(c,b)}},moveItem:function(d,b,c){var a=Ext.fly(document.activeElement);b=b.dom||b;if(typeof c==='number'){c=b.childNodes[c]}if(d.el.contains(a)){a.suspendFocusEvents()}else {a=null}b.insertBefore(d.el.dom,c||null);d.container=Ext.get(b);this.configureItem(d);if(a){a.focus();a.resumeFocusEvents()}},onContentChange:function(){this.owner.updateLayout();return !0},initLayout:function(){this.initialized=!0},setOwner:function(a){this.owner=a},getLayoutItems:function(){return []},onAdd:function(a){a.ownerLayout=this},onRemove:Ext.emptyFn,onDestroy:Ext.emptyFn,afterRemove:function(b){var d=this,e=b.el,c=d.owner,a;if(b.rendered){a=[].concat(d.itemCls||[]);if(c.itemCls){a=Ext.Array.push(a,c.itemCls)}if(a.length){e.removeCls(a)}}delete b.ownerLayout},afterCollapse:function(b,a){if(a){this.onContentChange(b)}},afterExpand:function(b,a){if(a){this.onContentChange(b)}},destroy:function(){var a=this,b;if(a.targetCls){b=a.getTarget();if(b){b.removeCls(a.targetCls)}}if(!a.onDestroy.$emptyFn){a.onDestroy()}a.callParent()},sortWeightedItems:function(b,d){for(var a=0,c=b.length;a<c;++a){b[a].$i=a}Ext.Array.sort(b,function(c,e){var a=e.weight-c.weight;if(!a){a=c.$i-e.$i;if(c[d]){a=-a}}return a});for(a=0;a<c;++a){delete b[a].$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:!0,usesContainerWidth:!0,usesHeight:!0,usesWidth:!0,constructor:function(){Ext.layout.Layout.prototype.constructor.apply(this,arguments);this.mixins.elementCt.constructor.call(this)},destroy:function(){this.mixins.elementCt.destroy.call(this);Ext.layout.Layout.prototype.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(a,c){var b=this;Ext.layout.Layout.prototype.beginLayoutCycle.apply(this,arguments);if(c){if(b.usesContainerHeight){++a.consumersContainerHeight}if(b.usesContainerWidth){++a.consumersContainerWidth}}},cacheChildItems:function(b){var d=this,f,e,c,g,a;if(d.needsItemSize||d.setsItemSize){f=b.context;e=b.childItems=[];c=b.visibleItems=d.getVisibleItems();g=c.length;for(a=0;a<g;++a){e.push(f.getCmp(c[a]))}}},cacheElements:function(){var a=this.owner;this.attachChildEls(a.el,a)},calculate:function(a){var b=a.props,c=a.el;if(a.widthModel.shrinkWrap&&isNaN(b.width)){a.setContentWidth(c.getWidth())}if(a.heightModel.shrinkWrap&&isNaN(b.height)){a.setContentHeight(c.getHeight())}},configureItem:function(f){var c=this,b=c.itemCls,d=c.owner.itemCls,e,a;f.ownerLayout=c;if(b){if(typeof b==='string'){a=[b]}else {a=b;e=!!a}}if(d){if(e){a=Ext.Array.clone(a)}a=Ext.Array.push(a||[],d)}if(a){f.addCls(a)}},doRenderBody:function(b,a){this.renderItems(b,a);this.renderContent(b,a)},doRenderContainer:function(d,b){var a=b.$comp.layout,e=a.getRenderTpl(),c=a.getRenderData();e.applyOut(c,d)},doRenderItems:function(c,b){var d=b.$layout,a=d.getRenderTree();if(a){Ext.DomHelper.generateMarkup(a,c)}},doRenderTabGuard:function(e,a,d){var b=a.$comp,c;if(b.tabGuard&&!a.$skipTabGuards){c=b.lookupTpl('tabGuardTpl');if(c){a.tabGuard=d;a.tabGuardEl=b.tabGuardElements[d];b.addChildEl(a.tabGuardEl);c.applyOut(a,e);delete a.tabGuard;delete a.tabGuardEl}}},finishRender:function(){var a=this,d=a.owner,b,c;Ext.layout.Layout.prototype.finishRender.call(this);a.cacheElements();b=a.getRenderTarget();c=a.getLayoutItems();a.finishRenderItems(b,c)},notifyOwner:function(){this.owner.afterLayout(this)},getContainerSize:function(d,k){var c=d.targetContext,i=c.getFrameInfo(),j=d.paddingContext.getPaddingInfo(),f=0,e=0,h,g,b,a;if(!d.widthModel.shrinkWrap){++e;b=k?c.getDomProp('width'):c.getProp('width');h=(typeof b==='number');if(h){++f;b-=i.width+j.width;if(b<0){b=0}}}if(!d.heightModel.shrinkWrap){++e;a=k?c.getDomProp('height'):c.getProp('height');g=(typeof a==='number');if(g){++f;a-=i.height+j.height;if(a<0){a=0}}}return {width:b,height:a,needed:e,got:f,gotAll:f===e,gotWidth:h,gotHeight:g}},getPositionOffset:function(a){if(!this.createsInnerCt){var b=this.owner.itemNodeOffset;if(b){a+=b}}return a},getLayoutItems:function(){var b=this.owner,a=b&&b.items;return (a&&a.items)||[]},getRenderData:function(){var a=this.owner;return {$comp:a,$layout:this,ownerId:a.id}},getRenderedItems:function(){var f=this,g=f.getRenderTarget(),e=f.getLayoutItems(),h=e.length,d=[],c,b,a;for(c=0,b=0;c<h;c++,b++){a=e[c];if(a.rendered){if(a.ignoreDomPosition){--b}else if(!this.isValidParent(a,g,b)){continue}d.push(a)}}return d},getRenderTarget:function(){return this.owner.getTargetEl()},getElementTarget:function(){return this.getRenderTarget()},getRenderTpl:function(){var b=this,a=Ext.XTemplate.getTpl(this,'renderTpl');if(!a.renderContent){b.owner.setupRenderTpl(a)}return a},getRenderTree:function(){var b,c=this.owner.items,a,d={};do{a=c.generation;b=this.getItemsRenderTree(this.getLayoutItems(),d)}while(c.generation!==a);return b},renderChildren:function(){var a=this,b=a.owner.items,e=a.getRenderTarget(),c,d;do{c=b.generation;d=a.getLayoutItems();a.renderItems(d,e)}while(b.generation!==c)},getScrollbarsNeeded:function(d,b,h,e){var c=Ext.getScrollbarSize(),i=typeof d==='number',f=typeof b==='number',g=0,a=0;if(!c.width){return 0}if(f&&b<e){a=2;d-=c.width}if(i&&d<h){g=1;if(!a&&f){b-=c.height;if(b<e){a=2}}}return a+g},getTarget:function(){return this.owner.getTargetEl()},getVisibleItems:function(){var f=this.getRenderTarget(),e=this.getLayoutItems(),g=e.length,d=[],c,b,a;for(c=0,b=0;c<g;c++,b++){a=e[c];if(a.rendered&&a.hidden!==!0&&!a.floated){if(a.ignoreDomPosition){--b}else if(!this.isValidParent(a,f,b)){continue}d.push(a)}}return d},getMoveAfterIndex:function(a){return this.owner.items.indexOf(a)+1},moveItemBefore:function(b,c){var f=this.owner,d=f.items,e=d.indexOf(b),a;if(b===c){return b}if(c){a=d.indexOf(c);if(e>-1&&e<a){--a}}else {a=d.length}return f.insert(a,b)},setupRenderTpl:function(a){a.renderBody=this.doRenderBody;a.renderContainer=this.doRenderContainer;a.renderItems=this.doRenderItems;a.renderTabGuard=this.doRenderTabGuard},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,b){if(!a.liquidLayout){--this.activeItemCount}Ext.layout.Layout.prototype.onRemove.call(this,a,b)}},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:!1,managePadding:!0,manageOverflow:!1,needsItemSize:!1,setsItemSize:!1,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)%}" ','<tpl if="!$comp.html">role="presentation"</tpl>','class="{innerCtCls}">','{%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 a=this.owner,c=a.inheritedState,b=a.inheritedStateInner;if(!c||c.invalid){c=a.getInherited();b=a.inheritedStateInner}if(d.widthModel.shrinkWrap){b.inShrinkWrapTable=!0}else {delete b.inShrinkWrapTable}},beginLayoutCycle:function(e){var a=this,g=a.outerCt,l=a.lastOuterCtWidth||'',k=a.lastOuterCtHeight||'',j=a.lastOuterCtTableLayout||'',i=e.state,f,d,c,b,h;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);d=c=b='';if(!e.widthModel.shrinkWrap){d='100%';h=a.owner.inheritedStateInner;f=a.getOverflowXStyle(e);b=(h.inShrinkWrapTable||f==='auto'||f==='scroll')?'':'fixed'}if(!e.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){c='100%'}if((d!==l)||a.hasOuterCtPxWidth){g.setStyle('width',d);a.lastOuterCtWidth=d;a.hasOuterCtPxWidth=!1}if(b!==j){g.setStyle('table-layout',b);a.lastOuterCtTableLayout=b}if((c!==k)||a.hasOuterCtPxHeight){g.setStyle('height',c);a.lastOuterCtHeight=c;a.hasOuterCtPxHeight=!1}if(a.hasInnerCtPxHeight){a.innerCt.setStyle('height','');a.hasInnerCtPxHeight=!1}i.overflowAdjust=i.overflowAdjust||a.lastOverflowAdjust},calculate:function(b){var a=this,d=b.state,c=a.getContainerSize(b,!0),e=d.calculatedItems||(d.calculatedItems=a.calculateItems?a.calculateItems(b,c):!0);a.setCtSizeIfNeeded(b,c);if(e&&b.hasDomProp('containerChildrenSizeDone')){a.calculateContentSize(b);if(c.gotAll){if(a.manageOverflow&&!b.state.secondPass&&!a.reserveScrollbar){a.calculateOverflow(b,c)}return}}a.done=!1},calculateContentSize:function(a){var b=this,f=((a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0)),d=(f&1)||undefined,c=(f&2)||undefined,e=0,g=a.props;if(d){if(isNaN(g.contentWidth)){++e}else {d=undefined}}if(c){if(isNaN(g.contentHeight)){++e}else {c=undefined}}if(e){if(d&&!a.setContentWidth(b.measureContentWidth(a))){b.done=!1}if(c&&!a.setContentHeight(b.measureContentHeight(a))){b.done=!1}}},calculateOverflow:function(d){var c=this,g,f,e,a,h,i,b;h=(c.getOverflowXStyle(d)==='auto');i=(c.getOverflowYStyle(d)==='auto');if(h||i){e=Ext.getScrollbarSize();b=d.overflowContext.el.dom;a=0;if(b.scrollWidth>b.clientWidth){a|=1}if(b.scrollHeight>b.clientHeight){a|=2}g=(i&&(a&2))?e.width:0;f=(h&&(a&1))?e.height:0;if(g!==c.lastOverflowAdjust.width||f!==c.lastOverflowAdjust.height){c.done=!1;d.invalidate({state:{overflowAdjust:{width:g,height:f},overflowState:a,secondPass:!0}})}}},completeLayout:function(a){this.lastOverflowAdjust=a.state.overflowAdjust},doRenderBody:function(b,a){var c=a.$layout,d=Ext.XTemplate,e=c.beforeBodyTpl,f=c.afterBodyTpl;if(e){d.getTpl(c,'beforeBodyTpl').applyOut(a,b)}this.renderItems(b,a);this.renderContent(b,a);if(f){d.getTpl(c,'afterBodyTpl').applyOut(a,b)}},doRenderPadding:function(d,b){var e=b.$layout,a=b.$layout.owner,c=a[a.contentPaddingProperty];if(e.managePadding&&c){d.push('padding:',a.unitizeBox(c))}},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(c,d){var b=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),a=c.state.overflowAdjust;if(a){b.width-=a.width;b.height-=a.height}return b},getRenderData:function(){var b=this,a=Ext.layout.container.Container.prototype.getRenderData.call(this);a.innerCtCls=b.innerCtCls;a.outerCtCls=b.outerCtCls;return a},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(a){var b=this,d=a.target,c=b.owner.getOverflowEl();a.outerCtContext=a.getEl('outerCt',b);a.innerCtContext=a.getEl('innerCt',b);a.overflowContext=(c===a.el)?a:a.getEl(c);if(d[d.contentPaddingProperty]!==undefined){a.paddingContext=a.innerCtContext}},initLayout:function(){var a=this,b=Ext.getScrollbarSize().width,c=a.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(b&&a.manageOverflow&&!a.hasOwnProperty('lastOverflowAdjust')){if(c.scrollable||a.reserveScrollbar){a.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(f){var a,b,e,c,d;if(this.chromeCellMeasureBug){a=this.innerCt.dom;b=a.style;e=b.display;if(e==='table-cell'){b.display='';a.offsetWidth;b.display=e}}if(Ext.isSafari){a=this.outerCt.dom;b=a.style;b.display='table-cell';a.offsetWidth;a.style.display=''}c=this.outerCt.getWidth();d=f.target;if(this.managePadding&&(d[d.contentPaddingProperty]===undefined)){c+=f.targetContext.getPaddingInfo().width}return c},setCtSizeIfNeeded:function(a,h){var c=this,b=h.height,k=a.paddingContext.getPaddingInfo(),g=c.getTarget(),f=c.getOverflowXStyle(a),j=(f==='auto'||f==='scroll'),i=Ext.getScrollbarSize(),e,d;if(b&&!a.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){e=!0}if(Ext.isIE8){d=!0}if((e||d)&&j&&(g.dom.scrollWidth>g.dom.clientWidth)){b=Math.max(b-i.height,0)}if(e){a.outerCtContext.setProp('height',b+k.height);c.hasOuterCtPxHeight=!0}if(d){a.innerCtContext.setProp('height',b);c.hasInnerCtPxHeight=!0}}},setupRenderTpl:function(a){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt}},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},reflowSuspended:0,constructor:function(b){var a=this;a.id=Ext.id(null,'zindex-mgr-');a.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(c,d){var a=(c.alwaysOnTop||0)-(d.alwaysOnTop||0);if(!a){a=c.getActiveCounter()-d.getActiveCounter()}return a}},filters:{filterFn:function(a){return a.isVisible()}}});a.zIndexStack.addObserver(a);a.front=null;a.sortCount=0;a.globalListeners=Ext.GlobalEvents.on({beforehide:a.onComponentShowHide,show:a.onComponentShowHide,scope:a,destroyable:!0});if(b){if(b.isContainer){a.resizeListeners=b.on({resize:a.onContainerResize,scope:a,destroyable:!0});a.zseed=Ext.Number.from(a.rendered?b.getEl().getStyle('zIndex'):undefined,a.getNextZSeed());a.targetEl=b.getTargetEl();a.container=b}else {a.resizeListeners=Ext.on({resize:a.onContainerResize,scope:a,destroyable:!0});a.zseed=a.getNextZSeed();a.targetEl=Ext.get(b)}}else {a.zseed=a.getNextZSeed();Ext.onInternalReady(function(){a.resizeListeners=Ext.on({resize:a.scheduleContainerResize,scope:a,destroyable:!0,priority:-10000});a.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 a=this,g=a.front,h=a.zseed,i=a.zIndexStack.getRange(),k=i.length,f,b,d,c,e,j=!g||g.isVisible();a.sortCount++;for(f=0;f<k;f++){b=i[f];if(b.destroying||b.destroyed){continue}h=b.setZIndex(h);if(!b.hidden){e=b;if(b.modal){d=b;c=null}if(j&&(b.isFocusable(!0)&&(b.modal||b.focusOnToFront))){c=b}}}if(c&&c!==g&&!c.preventFocusOnActivate){c.onFocusTopmost()}if(d){if(d===a.topModal){a.syncModalMask(d)}else {a.showModalMask(d)}}else {a.hideModalMask()}if(e!==a.topMost){if(a.topMost){a.topMost.onZIndexChange(!1)}if(e){e.onZIndexChange(!0)}}a.front=c;a.topModal=d;a.topMost=e;return h},onComponentUpdate:function(a){if(!this.reflowSuspended&&this.zIndexStack.contains(a)){this.zIndexStack.sort()}},suspendReflow:function(){this.reflowSuspended++},resumeReflow:function(a){if(this.reflowSuspended&&!--this.reflowSuspended){if(a){this.zIndexStack.sort()}}},onAfterComponentRender:function(a){if(!this.reflowSuspended&&a.isVisible()&&a.toFrontOnShow){this.zIndexStack.itemChanged(a,'hidden');this.zIndexStack.sort()}},onComponentShowHide:function(a){var b=this,c=b.zIndexStack,d=b.sortCount;if(a.isFloating()&&!b.hidingAll&&(c.getSource()||c).contains(a)){if(b.tempHidden){Ext.Array.remove(b.tempHidden,a)}c.beginUpdate();if(a.isVisible()){if(a.toFrontOnShow){c.itemChanged(a,'hidden');a.setActiveCounter(++Ext.ZIndexManager.activeCounter)}}else {c.itemChanged(a,'hidden')}c.endUpdate();if(b.sortCount===d&&!b.reflowSuspended){b.onCollectionSort()}}},register:function(a){var b=this;if(a.zIndexManager){a.zIndexManager.unregister(a)}a.zIndexManager=b;if(!a.rendered){a.on('afterrender',b.onAfterComponentRender,b,{single:!0})}b.zIndexStack.add(a)},unregister:function(b){var a=this;delete b.zIndexManager;b.un('afterrender',a.onAfterComponentRender,a);a.zIndexStack.remove(b);a.onCollectionSort()},get:function(a){return a.isComponent?a:this.zIndexStack.get(a)},bringToFront:function(a,f){var e=this,d=e.zIndexStack,g=d.last(),b,c;a=e.get(a);if(!a){return !1}c=a.preventFocusOnActivate;a.preventFocusOnActivate=f;a.setActiveCounter(++Ext.ZIndexManager.activeCounter);a.preventFocusOnActivate=c;b=d.last();return (b===a&&b!==g)},sendToBack:function(a){a=this.get(a);if(a){a.setActiveCounter(0)}return a||null},hideAll:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;a.hidingAll=!0;for(b=0;b<d;b++){c[b].hide()}a.hidingAll=!1;a.hideModalMask();a.front=null},hide:function(){var b=this,d=Ext.Element.getActiveElement(),e=b.zIndexStack.getRange(),f=e.length,c,a;b.focusRestoreElement=null;(b.tempHidden||(b.tempHidden=[])).length=0;for(c=0;c<f;c++){a=e[c];if(a.isVisible()){if(a.el.contains(d)){b.focusRestoreElement=d}a.el.hide();a.pendingShow=a.hidden=!0;b.tempHidden.push(a)}}},show:function(){var b=this,c,d=b.tempHidden,e=d?d.length:0,a;for(c=0;c<e;c++){a=d[c];a.hidden=!1;if(a.pendingShow){a.el.show();a.pendingShow=!1;a.setPosition(a.x,a.y);a.onFloatShow()}else {a.hide()}}b.tempHidden=null;if(b.focusRestoreElement){b.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(f,d){var c=this.zIndexStack.getRange(),b,e=c.length,a;for(b=0;b<e;b++){a=c[b];if(a.isComponent&&f.call(d||a,a)===!1){return}}},eachTopDown:function(e,d){var c=this.zIndexStack.getRange(),b,a;for(b=c.length;b-->0;){a=c[b];if(a.isComponent&&e.call(d||a,a)===!1){return}}},destroy:function(){var a=this,c=a.zIndexStack.getRange(),d=c.length,b;for(b=0;b<d;b++){Ext.destroy(c[b])}Ext.destroy(a.mask,a.maskShim,a.zIndexStack,a.globalListeners,a.resizeListeners);a.callParent()},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,Ext.dom.Element.getDocumentWidth()),x:0,y:0}}else {return a.getBox()}},scheduleContainerResize:function(){if(!this.containerResizeTimer){this.containerResizeTimer=Ext.raf(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()}},onMaskMousedown:function(a){if(this.topModal){this.topModal.focus();a.preventDefault()}},onMaskClick:function(){var a=this.topModal,b;if(a){if(!a.hasListeners.maskclick||a.fireEvent('maskclick',a)!==!1){b=a.maskClickAction||'focus';a[b]()}}},showModalMask:function(b){var a=this,e=b.el,d=b.floatParent?b.floatParent.getEl():b.container,c=a.mask;if(!c){a.mask=c=Ext.getBody().createChild({role:'presentation',cls:'x-mask x-border-box',style:'height:0;width:0'});c.setVisibilityMode(Ext.Element.DISPLAY);c.on({mousedown:a.onMaskMousedown,click:a.onMaskClick,scope:a})}else {a.hideModalMask()}c.maskTarget=d;d.saveTabbableState({excludeRoot:e});a.syncModalMask(b)},syncModalMask:function(f){var c=this,e=f.el.getZIndex()-4,b=c.mask,a=c.maskShim,d=c.getMaskBox();if(a){a.setZIndex(e);a.show();a.setBox(d)}b.setZIndex(e);b.show();b.setBox(d)},hideModalMask:function(){var a=this.mask,b=this.maskShim;if(a&&a.isVisible()){a.maskTarget.restoreTabbableState();a.maskTarget=undefined;a.hide();if(b){b.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:'<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'before\'); %}</tpl>{% this.renderContainer(out,values) %}<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'after\'); %}</tpl>',config:{actions:null},autoDestroy:!0,defaultType:'panel',detachOnRemove:!0,items:undefined,layout:'auto',suspendLayout:!1,tabGuardTpl:'<span id="{id}-{tabGuardEl}" data-ref="{tabGuardEl}" aria-hidden="true" class="x-tab-guard x-tab-guard-{tabGuardPosition}" style="width:0px;height:0px;"></span>',tabGuardElements:{before:'tabGuardBeforeEl',after:'tabGuardAfterEl'},_applyDefaultsOptions:{defaults:!0,strict:!1},ariaRole:'presentation',baseCls:'x-container',layoutCounter:0,add:function(){var a=this,e=Ext.Array.slice(arguments),l=(typeof e[0]==='number')?e.shift():-1,m=a.getLayout(),k=!1,j,d,f,g,b,c,i,h;if(e.length===1&&Ext.isArray(e[0])){d=e[0];j=!0}else {d=e}if(a.rendered){Ext.suspendLayouts()}i=d=a.prepareItems(d,!0);g=d.length;if(!j&&g===1){i=d[0]}for(f=0;f<g;f++){b=d[f];c=(l<0)?a.items.length:(l+f);h=!!b.instancedCmp;delete b.instancedCmp;if(b.floating){(a.floatingItems||(a.floatingItems=new Ext.util.ItemCollection())).add(b);b.onAdded(a,c,h);delete b.$initParent;if(a.hasListeners.add){a.fireEvent('add',a,b,c)}}else if((!a.hasListeners.beforeadd||a.fireEvent('beforeadd',a,b,c)!==!1)&&a.onBeforeAdd(b)!==!1){a.items.insert(c,b);b.onAdded(a,c,h);delete b.$initParent;if(a.focusableContainer){a.onFocusableChildAdd(b)}a.onAdd(b,c);m.onAdd(b,c);k=!0;if(a.hasListeners.add){a.fireEvent('add',a,b,c)}}b.isLayoutMoving=!1}if(k){a.updateLayout()}if(a.rendered){if(g&&a.focusableContainer){a.$initFocusableContainerAfterLayout=!0}Ext.resumeLayouts(!0)}return i},onAdded:function(a,c,b){Ext.Component.prototype.onAdded.call(this,a,c,b);this.containerOnAdded(a,b)},onRemoved:function(a){this.containerOnRemoved(a);Ext.Component.prototype.onRemoved.apply(this,arguments)},afterComponentLayout:function(){var a=this.floatingItems,d,c,b;Ext.Component.prototype.afterComponentLayout.apply(this,arguments);if(a){a=a.items;d=a.length;for(c=0;c<d;c++){b=a[c];if(!b.rendered&&b.autoShow){b.show()}}}},afterLayout:function(b){var a=this;++a.layoutCounter;if(a.hasListeners.afterlayout){a.fireEvent('afterlayout',a,b)}if(a.focusableContainer&&a.$initFocusableContainerAfterLayout){a.initFocusableContainer()}delete a.$initFocusableContainerAfterLayout},doDestroy:function(){var a=this,d=a.items,c=a.floatingItems,b;if(a.focusableContainer){a.destroyFocusableContainer()}if(d){while((b=d.first())){a.doRemove(b,!0)}d.destroy();a.items=null}if(c){while((b=c.first())){a.doRemove(b,!0)}c.destroy();a.floatingItems=null}Ext.destroy(a.layout);Ext.Component.prototype.doDestroy.call(this)},beforeRender:function(){var a=this,c=a.getLayout(),b;a.preventChildDisable=!0;Ext.Component.prototype.beforeRender.call(this);a.preventChildDisable=!1;if(!c.initialized){c.initLayout()}b=c.targetCls;if(b){a.applyTargetCls(b)}},cascade:function(f,e,d){var a=this,h=a.items?a.items.items:[],j=h.length,g=0,b,c=d?d.concat(a):[a],i=c.length-1;if(f.apply(e||a,c)!==!1){for(;g<j;g++){b=h[g];if(b.cascade){b.cascade(f,e,d)}else {c[i]=b;f.apply(e||b,c)}}}return this},contains:function(a,c){var b=!1;if(c){this.cascade(function(d){if(d.contains&&d.contains(a)){b=!0;return !1}});return b}else {return this.items.contains(a)||(this.floatingItems&&this.floatingItems.contains(a))}},disable:function(e,d){var a=this,g=a.disabled,c,f,b;Ext.Component.prototype.disable.call(this,e,d);if(!d&&!a.preventChildDisable&&!g){c=a.getChildItemsToDisable();f=c.length;for(b=0;b<f;b++){c[b].disable(e,!0)}}if(a.focusableContainer){a.activateFocusableContainer(!1)}return a},enable:function(d,g){var a=this,f=a.disabled,c,e,b;Ext.Component.prototype.enable.call(this,d,g);if(f){c=a.getChildItemsToDisable();e=c.length;for(b=0;b<e;b++){c[b].enable(d,!0)}}if(a.focusableContainer){a.activateFocusableContainer(!0)}return a},getChildByElement:function(b,e){var a,c,d=0,f=this.getRefItems(),g=f.length;b=Ext.getDom(b);for(;d<g;d++){a=f[d];c=a.getEl();if(c&&((c.dom===b)||c.contains(b))){return (e&&a.getChildByElement)?a.getChildByElement(b,e):a}}return null},getComponent:function(a){if(Ext.isObject(a)){a=a.getItemId()}var b=this.items.get(a),c=this.floatingItems;if(!b&&c&&typeof a!=='number'){b=c.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(g){var f=this,d=f.items.items,e=d.length,c=0,b,a=[];for(;c<e;c++){b=d[c];a[a.length]=b;if(g&&b.getRefItems){a.push.apply(a,b.getRefItems(!0))}}if(f.floatingItems){d=f.floatingItems.items;e=d.length;for(c=0;c<e;c++){b=d[c];a[a.length]=b;if(g&&b.getRefItems){a.push.apply(a,b.getRefItems(!0))}}}return a},getDefaultFocus:function(){var a=this.defaultFocus,b;if(a&&!this.isConfiguring){b=this.down(a)}return b},setDefaultFocus:function(a){this.defaultFocus=a},initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.getLayout();a.constructing=!0;a.initItems();if(a.disabled){a.disabled=!1;a.disable(!0)}a.reference=a.setupReference(a.reference);delete a.constructing},initItems:function(){var b=this,a=b.items;if(!a||!a.isMixedCollection){b.items=new Ext.util.ItemCollection();if(a){if(!Ext.isArray(a)){a=[a]}b.$initingItems=!0;b.add(a);delete b.$initingItems}}},initInheritedState:function(a,b){var d=this,c=d.layout;Ext.Component.prototype.initInheritedState.call(this,a,b);if(d.collapsed){a.collapsed=!0}d.initContainerInheritedState(a,b);if(c&&c.initInheritedState){c.initInheritedState(a,b)}},insert:function(c,a){var b;if(a&&a.isComponent){b=this.items.indexOf(a);if(b!==-1){return this.move(b,c)}}return this.add(c,a)},lookupComponent:function(a){var c=this,b=c.defaultType,d;if(!a.isComponent){if(typeof a==='string'){if(!(d=(a[0]==='@'))){return Ext.ComponentManager.get(a)}a=c.getAction(a.substr(1));b=c.defaultActionType||b}a=Ext.ComponentManager.create(a,b);if(d){a.instancedCmp=!0}}return a},move:function(a,c){var d=this,e=d.items,b;if(a.isComponent){a=e.indexOf(a)}b=e.getAt(a);if(a!==c){b=e.removeAt(a);if(b===!1){return !1}c=Math.min(c,e.getCount());e.insert(c,b);d.onMove(b,a,c);if(d.hasListeners.childmove){d.fireEvent('childmove',d,b,a,c)}d.updateLayout()}return b},moveBefore:function(a,d){var c,b;if(a!==d){c=Ext.Element.getActiveElement(!0);if(a.el&&a.el.contains(c)){b=c;b.suspendFocusEvents();a.isLayoutMoving=!0}a=this.layout.moveItemBefore(a,d);if(b){a.isLayoutMoving=!1;b.focus();b.resumeFocusEvents()}}return a},moveAfter:function(a,b){var d=this.layout,c;if(a!==b){c=b?d.getMoveAfterIndex(b):0;a=this.moveBefore(a,this.items.getAt(c))}return a},nextChild:function(f,e){var h=this,b=h.items,c=b.indexOf(f),d=0,g=b.length,a;if(c!==-1){if(e){for(;d<g;d++){a=b.getAt(c+d);if(!a||Ext.ComponentQuery.is(a,e)){break}}}else {a=b.getAt(c+1)}}return a||null},onAdd:Ext.emptyFn,onBeforeAdd:function(a){var b=a.ownerCt;if(a.isDetached){a.reattachToBody()}if(b&&b!==this){a.isLayoutMoving=!0;b.remove(a,{destroy:!1,detach:!1})}},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(f,e){var h=this,b=h.items,c=b.indexOf(f),d=0,g=b.length,a;if(c!==-1){if(e){for(;d<g;d++){a=b.getAt(c-d);if(!a||Ext.ComponentQuery.is(a,e)){break}}}else {a=b.getAt(c-1)}}return a||null},remove:function(d,c){var a=this,b;if(a.destroyed||a.destroying){return}b=a.getComponent(d);if(b&&(!a.hasListeners.beforeremove||a.fireEvent('beforeremove',a,b)!==!1)){a.doRemove(b,c);if(a.hasListeners.remove){a.fireEvent('remove',a,b)}if(!a.destroying&&!a.destroyAfterRemoving&&!b.floating){a.updateLayout()}if(a.destroyAfterRemoving){a.destroy()}}return b},removeAll:function(h){var a=this,b,f=a.floatingItems,g=[],e=0,d,c;if(f){b=a.items.items.concat(f.items)}else {b=a.items.items.slice()}d=b.length;Ext.suspendLayouts();a.removingAll=!0;for(;e<d;e++){c=b[e];a.remove(c,h);if(c.ownerCt!==a){g.push(c)}}a.removingAll=!1;Ext.resumeLayouts(!!d);return g},setLayout:function(a){var c=this,b=c.layout,d;if(a){if(typeof a==='string'){a={type:a}}d=a.type;if(b){if(b.isLayout){if(!d||(d===b.type)){b.setConfig(a);a=b}else {b.setOwner(null)}}else {if(typeof b==='string'){b={type:b}}a=Ext.merge({},b,a)}}if(!(a&&a.isLayout)){a.owner=this;a=Ext.Factory.layout(a)}a.setOwner(this)}c.layout=a;if(c.rendered){c.updateLayout()}},setActiveItem:function(a){return this.getLayout().setActiveItem(a)},updateActions:function(b){var d=this,a,c;for(a in b){if(!b[a].isAction){b[a]=new Ext.Action(b[a])}}},getAction:function(b){var a=this;for(a=this;a;a=a.getRefOwner()){if(a.actions&&a.actions[b]){return a.actions[b]}}},onShowComplete:function(c,b){var a=this;Ext.Component.prototype.onShowComplete.call(this,c,b);if(a.focusableContainer&&a.activateFocusableContainer){a.activateFocusableContainer()}},onFocusEnter:function(b){var a=this;Ext.Component.prototype.onFocusEnter.call(this,b);if(a.focusableContainer&&!a.destroying&&!a.destroyed){a.mixins.focusablecontainer.onFocusEnter.call(a,b)}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(a.focusableContainer&&!a.destroying&&!a.destroyed){a.mixins.focusablecontainer.onFocusLeave.call(a,b)}},privates:{applyDefaults:function(a){var c=this,b=c.defaults;if(b){if(Ext.isFunction(b)){b=b.call(c,a)}if(Ext.isString(a)){a=Ext.ComponentManager.get(a)}if(a.isComponent){a.setConfig(b,null,c._applyDefaultsOptions)}else {a=c.self.getConfigurator().merge(c,Ext.Object.fork(b),a)}}return a},applyTargetCls:function(a){this.layoutTargetCls=a},doRemove:function(a,c){var b=this,f=b.layout,h=f&&b.rendered,g=a.floating,i=b.detachOnRemove,e=b.autoDestroy,d;if(typeof c==='boolean'){e=c}else if(typeof c==='object'){if(c.destroy!=null){e=c.destroy}if(c.detach!=null){i=c.detach}}d=a.destroying||e;if(g){b.floatingItems.remove(a)}else {b.items.remove(a)}if(h&&!g){if(f.running){Ext.Component.cancelLayout(a,d)}f.onRemove(a,d)}if(!a.destroyed){a.onRemoved(d)}if(b.focusableContainer&&!b.destroying&&!b.destroyed){b.onFocusableChildRemove(a,d)}b.onRemove(a,d);if(e){a.destroy()}else if(!b.destroyed){if(h&&!g){f.afterRemove(a)}if(i&&a.rendered){a.detachFromBody()}}},finishRenderChildren:function(){Ext.Component.prototype.finishRenderChildren.call(this);var a=this.getLayout();if(a){a.finishRender()}},getChildItemsToDisable:function(){return this.query('[isLabelable],[isFocusableContainer],button')},getContentTarget:function(){return this.getLayout().getContentTarget()},getDefaultContentTarget:function(){return this.el},prepareItems:function(a,f){if(Ext.isArray(a)){a=a.slice()}else {a=[a]}var e=this,c=0,d=a.length,b;for(;c<d;c++){b=a[c];if(b==null){Ext.Array.erase(a,c,1);--c;--d}else {if(f){b=this.applyDefaults(b)}b.$initParent=e;if(b.isComponent){b.instancedCmp=!0}a[c]=e.lookupComponent(b);delete b.$initParent}}return a},repositionFloatingItems:function(){var b=this.floatingItems,d,c,a;if(b){b=b.items;d=b.length;for(c=0;c<d;c++){a=b[c];if(a.el&&!a.hidden){a.setPosition(a.x,a.y)}}}},initTabGuards:function(i){var a=this,c=a.tabGuardBeforeEl,d=a.tabGuardAfterEl,f=a.tabGuardBeforeIndex||0,e=a.tabGuardAfterIndex||0,h,g,b;if(!a.rendered||!a.tabGuard){return}b=a.el.findTabbableElements({skipSelf:!0});if(b[0]===c.dom){b.shift()}if(b[b.length-1]===d.dom){b.pop()}if(b&&b.length){if(f==null||e==null){for(h=0;h<b.length;h++){g=+b[h].getAttribute('tabIndex');if(g>0){f=Math.min(f,g);e=Math.max(e,g)}}}c.dom.setAttribute('tabIndex',f);d.dom.setAttribute('tabIndex',e)}else {c.dom.removeAttribute('tabIndex');d.dom.removeAttribute('tabIndex')}if(a.onTabGuardFocusEnter){if(!c.hasListeners.focusenter){c.on('focusenter',a.onTabGuardFocusEnter,a)}if(!d.hasListeners.focusenter){d.on('focusenter',a.onTabGuardFocusEnter,a)}}},_noMargin:{'margin-top':'','margin-right':'','margin-bottom':'','margin-left':''},resetItemMargins:function(){var b=this.items.items,c=b.length,d=this._noMargin,a;while(c--){a=b[c];a.margin$=null;a.el.setStyle(d)}},setupRenderTpl:function(a){Ext.Component.prototype.setupRenderTpl.apply(this,arguments);this.getLayout().setupRenderTpl(a)}}},0,["container"],["component","box","container"],{"component":!0,"box":!0,"container":!0},["widget.container"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable],[Ext.mixin.Container.prototype.mixinId||Ext.mixin.Container.$className,Ext.mixin.Container],[Ext.mixin.FocusableContainer.prototype.mixinId||Ext.mixin.FocusableContainer.$className,Ext.mixin.FocusableContainer]],[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(e){var d=this,b=d.owner.autoSize,c=b&&b.width,a=d.sizePolicies;a=a[c]||a.$;c=b&&b.height;a=a[c]||a.$;return a},calculate:function(c){var f=this,a=f.owner,b=a.autoSize,e,d;if(b===!0){b=f.autoSizeDefault}if(b){e=f.getDimension(a,b.width,'getWidth',a.width);d=f.getDimension(a,b.height,'getHeight',a.height)}c.childItems[0].setSize(e,d);c.setWidth(e);c.setHeight(d);c.setContentSize(e||a.field.getWidth(),d||a.field.getHeight())},getDimension:function(c,d,a,b){switch(d){case 'boundEl':return c.boundEl[a]();case 'field':return undefined;default:return b;}}},0,0,0,0,["layout.editor"],0,[Ext.layout.container,'Editor'],0));(Ext.cmd.derive('Ext.Editor',Ext.container.Container,{layout:'editor',allowBlur:!0,revertInvalid:!0,value:'',alignment:'c-c?',offsets:[0,0],shadow:'frame',constrain:!1,swallowKeys:!0,completeOnEnter:!0,cancelOnEsc:!0,updateEl:!1,focusOnToFront:!1,baseCls:'x-editor',editing:!1,preventDefaultAlign:!0,useBoundValue:!0,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(e,d){var b=this,c=b.field,a=c.inputEl;Ext.container.Container.prototype.afterRender.apply(this,arguments);if(a){a.dom.name='';if(b.swallowKeys){a.swallowEvent(['keypress','keydown'])}}},onSpecialKey:function(g,b){var a=this,e=b.getKey(),d=a.completeOnEnter&&e===b.ENTER,f=a.cancelOnEsc&&e===b.ESC,c=a.specialKeyTask;if(d||f){b.stopEvent();if(!c){a.specialKeyTask=c=new Ext.util.DelayedTask()}c.delay(a.specialKeyDelay,d?a.completeEdit:a.cancelEdit,a)}a.fireEvent('specialkey',a,g,b)},startEdit:function(h,c,g){var a=this,b=a.field,d,f,e;a.completeEdit(!0);a.boundEl=Ext.get(h);d=a.boundEl.dom;if(a.useBoundValue&&!Ext.isDefined(c)){c=Ext.String.trim(d.textContent||d.innerText||d.innerHTML)}if(a.fireEvent('beforestartedit',a,a.boundEl,c)!==!1){if(a.context){c=a.context.value}Ext.suspendLayouts();if(!a.rendered){f=a.ownerCt;e=a.renderTo||(f&&f.getEl())||Ext.getBody();Ext.fly(e).position();a.renderTo=e}a.startValue=c;a.show();a.realign(!0);b.suspendEvents();b.setValue(c);b.resetOriginalValue();b.resumeEvents();if(g!==!1){b.focus(b.selectOnFocus?!0:[Ext.Number.MAX_SAFE_INTEGER])}if(b.autoSize){b.autoSize()}Ext.resumeLayouts(!0);a.toggleBoundEl(!1);a.editing=!0}},realign:function(b){var a=this;if(b===!0){a.updateLayout()}a.alignTo(a.boundEl,a.alignment,a.offsets)},completeEdit:function(d){var a=this,c=a.field,e=a.startValue,f=a.context&&a.context.cancel,b;if(!a.editing){return}if(c.assertValue){c.assertValue()}b=a.getValue();if(!c.isValid()){if(a.revertInvalid!==!1){a.cancelEdit(d)}return}if(a.ignoreNoChange&&!c.didValueChange(b,e)){a.onEditComplete(d);return}if(a.fireEvent('beforecomplete',a,b,e)!==!1){b=a.getValue();if(a.updateEl&&a.boundEl){a.boundEl.setHtml(b)}a.onEditComplete(d,f);a.fireEvent('complete',a,b,e)}},onShow:function(){var a=this;Ext.container.Container.prototype.onShow.apply(this,arguments);a.fireEvent('startedit',a,a.boundEl,a.startValue)},cancelEdit:function(e){var a=this,c=a.startValue,b=a.field,d;if(a.editing){if(b){d=a.editedValue=a.getValue();b.suspendEvents();a.setValue(c);b.resumeEvents()}a.onEditComplete(e,!0);a.fireEvent('canceledit',a,d,c);delete a.editedValue}},onEditComplete:function(a,b){this.editing=!1;if(a!==!0){this.hide();this.toggleBoundEl(!0)}},onFocusLeave:function(b){var a=this;if(a.allowBlur===!0&&a.editing){a.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!==!1){this.boundEl.setVisible(a)}},doDestroy:function(){var b=this,a=b.specialKeyTask;if(a){a.cancel()}Ext.destroy(b.field);Ext.container.Container.prototype.doDestroy.call(this)}},0,["editor"],["component","box","container","editor"],{"component":!0,"box":!0,"container":!0,"editor":!0},["widget.editor"],0,[Ext,'Editor'],0));(Ext.cmd.derive('Ext.EventManager',Ext.Base,{singleton:!0,mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,addListener:function(b,a,e,d,c){Ext.get(b).addListener(a,e,d,c)},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(a,b){Ext.get(a).clearListeners()},removeAll:function(a){Ext.get(a).clearListeners()},removeListener:function(b,a,e,d,c){Ext.get(b).removeListener(a,e,d,c)},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=!0}},preventDefault:function(a){a=a.browserEvent||a;if(a.preventDefault){a.preventDefault()}else {a.returnValue=!1;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 d=c.pageX,e=c.pageY,a=document.documentElement,b=document.body;if(!d&&d!==0){d=c.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);e=c.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}return [d,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(a){if(a){var b=HTMLElement.prototype.toString.call(a);if(b!=='[xpconnect wrapped native prototype]'&&b!=='[object XULElement]'){return a.nodeType===3?a.parentNode:a}}}: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.Img',Ext.Component,{autoEl:'img',baseCls:'x-img',config:{src:null,glyph:null},alt:'',title:'',imgCls:'',maskOnDisable:!1,applySrc:function(a){return a&&Ext.resolveResource(a)},getElConfig:function(){var c=this,d=c.autoEl,a=Ext.Component.prototype.getElConfig.call(this),e=c.glyph,b;if(e){a.tag='div';a.html=e.character;a.style=a.style||{};a.style.fontFamily=e.fontFamily;a.role='img'}else if(d==='img'||(Ext.isObject(d)&&d.tag==='img')){b=a}else {a.cn=[b={tag:'img',id:c.id+'-img'}]}if(b){if(c.imgCls){b.cls=(b.cls?b.cls+' ':'')+c.imgCls}b.src=c.src||Ext.BLANK_IMAGE_URL}if(c.alt){(b||a).alt=c.alt}else {(b||a).alt=''}if(c.title){(b||a).title=c.title}return a},onRender:function(){var a=this,b=a.autoEl,c;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(b==='img'||(Ext.isObject(b)&&b.tag==='img')){a.imgEl=c}else {a.imgEl=c.getById(a.id+'-img')}},doDestroy:function(){var b=this,a=b.imgEl;if(a&&b.el!==a){a.destroy()}b.imgEl=null;Ext.Component.prototype.doDestroy.call(this)},getTitle:function(){return this.title},setTitle:function(b){var c=this,a=c.imgEl;c.title=b||'';if(a){a.dom.title=b||''}},afterComponentLayout:function(f,a,e,d){var c=this.getSizeModel().height,b;if((c.calculated||c.configured)&&a&&this.glyph){b=a+'px';this.setStyle({'line-height':b,'font-size':b})}Ext.Component.prototype.afterComponentLayout.call(this,f,a,e,d)},getAlt:function(){return this.alt},setAlt:function(b){var c=this,a=c.imgEl;c.alt=b||'';if(a){a.dom.alt=b||''}},_naturalSize:null,getNaturalSize:function(){var e=this,b=e.imgEl,a=e._naturalSize,c,d,f;if(b&&!a){b=b.dom;e._naturalSize=a={width:d=b.naturalWidth,height:b.naturalHeight};if(!d){c=b.style;d=c.width;f=c.height;c.width=c.height='auto';a.width=b.width;a.height=b.height;c.width=d;c.height=f}a.aspect=a.width/a.height}return a},updateSrc:function(b){var a=this.imgEl;if(a){a.dom.src=b||Ext.BLANK_IMAGE_URL}},applyGlyph:function(a,b){if(a){if(!a.isGlyph){a=new Ext.Glyph(a)}if(a.isEqual(b)){a=undefined}}return a},updateGlyph:function(b,c){var a=this.el;if(a){a.dom.innerHTML=b.character;a.setStyle(b.getStyle())}}},0,["image","imagecomponent"],["component","box","image","imagecomponent"],{"component":!0,"box":!0,"image":!0,"imagecomponent":!0},["widget.image","widget.imagecomponent"],0,[Ext,'Img'],0));(Ext.cmd.derive('Ext.util.StoreHolder',Ext.Base,{mixinId:'storeholder',autoDestroyBoundStore:!1,bindStore:function(d,e,c){c=c||'store';var a=this,b=e?null:a[c];if(d!==b){if(b){if(!a.onUnbindStore.$emptyFn){a.onUnbindStore(b,e,c)}if(!b.destroyed){if(a.autoDestroyBoundStore&&c==='store'&&b.autoDestroy){b.destroy()}else {a.unbindStoreListeners(b)}}}if(d){a[c]=d=Ext.data.StoreManager.lookup(d);a.bindStoreListeners(d);if(!a.onBindStore.$emptyFn){a.onBindStore(d,b,e)}}else {a[c]=null}if(a.fireEvent){a.fireEvent('storechange',a,d,b)}}return a},getStore:function(){return this.store},setStore:function(a){this.bindStore(a)},unbindStoreListeners:function(b){var a=this.storeListeners;if(a){b.un(a)}},bindStoreListeners:function(b){var a=this.getStoreListeners(b);if(a){a=Ext.apply({},a);if(!a.scope){a.scope=this}this.storeListeners=a;b.on(a)}},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:!0,msg:'Loading...',msgCls:'x-mask-loading',msgWrapCls:'x-mask-msg',useMsg:!0,useTargetEl:!1,cls:'x-mask',componentCls:'x-border-box',ariaRole:'progressbar',focusable:!0,tabIndex:0,childEls:['msgWrapEl','msgEl','msgTextEl'],renderTpl:['<div id="{id}-msgWrapEl" data-ref="msgWrapEl" class="{[values.$comp.msgWrapCls]}" role="presentation">','<div id="{id}-msgEl" data-ref="msgEl" class="{[values.$comp.msgCls]} ','x-','mask-msg-inner {childElCls}" role="presentation">','<div id="{id}-msgTextEl" data-ref="msgTextEl" class="','x-','mask-msg-text','{childElCls}" role="presentation">{msg}</div>','</div>','</div>'],maskOnDisable:!1,skipLayout:!0,constructor:function(c){var a=this,b;if(arguments.length===2){b=a.target=c;c=arguments[1]}else {b=c.target}Ext.Component.prototype.constructor.call(this,c);if(b.isComponent){a.ownerCt=b;a.hidden=!0;a.renderTo=a.getMaskTarget();a.external=a.renderTo===Ext.getBody();a.bindComponent(b)}else {b=Ext.get(b);a.isElement=!0;a.renderTo=a.target}a.render(a.renderTo);if(a.store){a.bindStore(a.store,!0)}},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(b){var a=this,c={scope:this,resize:a.sizeMask};if(a.external){c.added=a.onComponentAdded;c.removed=a.onComponentRemoved;if(b.floating){c.move=a.sizeMask;a.activeOwner=b}else if(b.ownerCt){a.onComponentAdded(b.ownerCt)}}a.mon(b,c);if(a.external){a.mon(Ext.GlobalEvents,{show:a.onContainerShow,hide:a.onContainerHide,expand:a.onContainerExpand,collapse:a.onContainerCollapse,scope:a})}},onComponentAdded:function(b){var a=this;delete a.activeOwner;a.floatParent=b;if(!b.floating){b=b.up('[floating]')}if(b){a.activeOwner=b;a.mon(b,'move',a.sizeMask,a);a.mon(b,'tofront',a.onOwnerToFront,a)}else {a.preventBringToFront=!0}b=a.floatParent.ownerCt;if(a.rendered&&a.isVisible()&&b){a.floatOwner=b;a.mon(b,'afterlayout',a.sizeMask,a,{single:!0})}},onComponentRemoved:function(d){var a=this,b=a.activeOwner,c=a.floatOwner;if(b){a.mun(b,'move',a.sizeMask,a);a.mun(b,'tofront',a.onOwnerToFront,a)}if(c){a.mun(c,'afterlayout',a.sizeMask,a)}delete a.activeOwner;delete a.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=!0},onMouseDown:function(b){var a=this.el;if(b.within(a)){b.preventDefault();a.focus()}},onOwnerToFront:function(b,a){this.el.setStyle('zIndex',a+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=!0}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var a=this,b=a.activeOwner||a.target,d=a.external?a.getOwner().el:a.getMaskTarget(),c;if(a.rendered&&a.isVisible()){if(a.external){if(!a.isElement&&b.floating){c=b.el.getZIndex();if(!isNaN(c)){a.onOwnerToFront(b,c)}}a.el.setSize(d.getSize()).alignTo(d,'tl-tl')}a.msgWrapEl.center(a.el)}},bindStore:function(a,c){var b=this;Ext.destroy(b.proxyListeners);b.mixins.storeholder.bindStore.apply(b,arguments);a=b.store;if(a){while(a.getSource){a=a.getSource()}if(!a.loadsSynchronously()){b.proxyListeners=a.getProxy().on({exception:b.onLoad,scope:b,destroyable:!0})}if(a.isLoading()){b.onBeforeLoad()}}},getStoreListeners:function(d){var c=this.onLoad,b=this.onBeforeLoad,a={cachemiss:b,cachefilled:{fn:c,buffer:100}};if(!d.loadsSynchronously()){a.beforeload=b;a.load=c}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 b=this,a=b.getOwner(),c;if(!b.disabled){b.loading=!0;if(a.componentLayoutCounter){b.maybeShow()}else {c=a.afterComponentLayout;a.afterComponentLayout=function(){a.afterComponentLayout=c;c.apply(a,arguments);b.maybeShow()}}}},maybeShow:function(){var a=this,b=a.getOwner(),c;c=b.isVisible(!0)&&(!a.isComponent||b.el.isVisible(!0));if(!c){a.showNext=!0}else if(a.loading&&b.rendered){a.show()}},hide:function(){var a=this,b=a.ownerCt;a.target.removeCls('x-masked');if(a.isElement){b.unmask();a.fireEvent('hide',this);return}if(b){b.updateMaskState(!1,a)}delete a.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var a=this;a.target.addCls('x-masked');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 a=this,b=a.ownerCt;a.loading=!0;Ext.Component.prototype.afterShow.apply(this,arguments);b.updateMaskState(!0,a);a.el.restoreTabbableState();a.syncMaskState()},syncMaskState:function(){var a=this,c=a.ownerCt,b=a.el;if(a.isVisible()){if(a.hasOwnProperty('msgWrapCls')){b.dom.className=a.msgWrapCls}if(a.useMsg){a.msgTextEl.setHtml(a.msg);a.ariaEl.dom.setAttribute('aria-valuetext',a.msg)}else {a.msgWrapEl.hide()}if(a.shim||Ext.useShims){b.enableShim(null,!0)}else {b.disableShim()}if(c.el.contains(Ext.Element.getActiveElement())){a.focus()}a.sizeMask()}},onLoad:function(){this.loading=!1;this.hide()},doDestroy:function(){var a=this;a.ownerCt=null;a.bindStore(null);if(a.isElement){a.ownerCt.unmask()}Ext.Component.prototype.doDestroy.call(this)}},1,["loadmask"],["component","box","loadmask"],{"component":!0,"box":!0,"loadmask":!0},["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:!0,nullBox:{},usesContentHeight:!0,usesContentWidth:!0,usesHeight:!0,usesWidth:!0,widthCache:{},heightCache:{},beginLayoutCycle:function(a,j){var d=this,b=d.owner,q=a.ownerCtContext,e=a.heightModel,f=a.widthModel,p=b.el.dom===document.body,h=b.lastBox||d.nullBox,g=b.el.lastBox||d.nullBox,m=!p,k=a.isTopLevel,i,c,n,l,o;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,a,j);if(j){o=b.getScrollable&&b.getScrollable();if(o){o.flushOnDomScrollEnd()}if(d.usesContentWidth){++a.consumersContentWidth}if(d.usesContentHeight){++a.consumersContentHeight}if(d.usesWidth){++a.consumersWidth}if(d.usesHeight){++a.consumersHeight}if(q&&!q.hasRawContent){i=b.ownerLayout;if(i){if(i.usesWidth){++a.consumersWidth}if(i.usesHeight){++a.consumersHeight}}}}if(f.configured){n=b[f.names.width];if(k&&f.calculatedFrom){n=h.width}if(!p){m=d.setWidthInDom||(j?n!==g.width:f.constrained)}a.setWidth(n,m)}else if(k){if(f.calculated){c=h.width;a.setWidth(c,c!==g.width)}else if(f.calculatedFromNatural){b.el.dom.style.width=b.width}c=h.x;a.setProp('x',c,c!==g.x)}if(e.configured){l=b[e.names.height];if(k&&e.calculatedFrom){l=h.height}if(!p){m=j?l!==g.height:e.constrained}a.setHeight(l,m)}else if(k){if(e.calculated){c=h.height;a.setHeight(c,c!==g.height)}else if(e.calculatedFromNatural){b.el.dom.style.height=b.height}c=h.y;a.setProp('y',c,c!==g.y)}},finishedLayout:function(c){var h=this,e=c.children,g=h.owner,i,d,f,a,b;if(e){i=e.length;for(d=0;d<i;d++){f=e[d];f.el.lastBox=f.props}}c.previousSize=h.lastComponentSize;h.lastComponentSize=g.el.lastBox=b=c.props;a=g.lastBox||(g.lastBox={});a.x=b.x;a.y=b.y;a.width=b.width;a.height=b.height;a.invalid=!1;Ext.layout.Layout.prototype.finishedLayout.call(this,c)},notifyOwner:function(d){var c=this,b=c.lastComponentSize,a=d.previousSize;c.owner.afterComponentLayout(b.width,b.height,a?a.width:undefined,a?a.height:undefined)},getTarget:function(){return this.owner.el},getRenderTarget:function(){return this.owner.el},cacheTargetInfo:function(d){var c=this,a=c.targetInfo,b;if(!a){b=d.getEl('getTarget',c);c.targetInfo=a={padding:b.getPaddingInfo(),border:b.getBorderInfo()}}return a},measureAutoDimensions:function(a,w){var h=this,u=h.owner,i=u.layout,t=a.heightModel,s=a.widthModel,g=a.boxParent,n=a.isBoxParent,j=a.target,q=a.props,r,b={gotWidth:!1,gotHeight:!1,isContainer:(r=!a.hasRawContent)},v=w||3,p,o,m=0,d=0,c,e,f,l,k;if(s.shrinkWrap&&a.consumersContentWidth){++m;p=!(v&1);if(r){if(p){b.contentWidth=0;b.gotWidth=!0;++d}else if((b.contentWidth=a.getProp('contentWidth'))!==undefined){b.gotWidth=!0;++d}}else {e=q.contentWidth;if(typeof e==='number'){b.contentWidth=e;b.gotWidth=!0;++d}else {if(p){c=!0}else if(!a.hasDomProp('containerChildrenSizeDone')){c=!1}else if(n||!g||g.widthModel.shrinkWrap){c=!0}else {c=g.hasDomProp('width')}if(c){if(p){f=0}else if(i&&i.measureContentWidth){f=i.measureContentWidth(a)}else {if(j.cacheWidth){l=j.xtype+'-'+j.ui;k=h.widthCache;f=k[l]||(k[l]=h.measureContentWidth(a))}else {f=h.measureContentWidth(a)}}if(!isNaN(b.contentWidth=f)){a.setContentWidth(f,!0);b.gotWidth=!0;++d}}}}}else if(s.natural&&a.consumersWidth){++m;e=q.width;if(typeof e==='number'){b.width=e;b.gotWidth=!0;++d}else {if(n||!g){c=!0}else {c=g.hasDomProp('width')}if(c){if(!isNaN(b.width=h.measureOwnerWidth(a))){a.setWidth(b.width,!1);b.gotWidth=!0;++d}}}}if(t.shrinkWrap&&a.consumersContentHeight){++m;o=!(v&2);if(r){if(o){b.contentHeight=0;b.gotHeight=!0;++d}else if((b.contentHeight=a.getProp('contentHeight'))!==undefined){b.gotHeight=!0;++d}}else {e=q.contentHeight;if(typeof e==='number'){b.contentHeight=e;b.gotHeight=!0;++d}else {if(o){c=!0}else if(!a.hasDomProp('containerChildrenSizeDone')){c=!1}else if(u.noWrap){c=!0}else if(!s.shrinkWrap){c=(a.bodyContext||a).hasDomProp('width')}else if(n||!g||g.widthModel.shrinkWrap){c=!0}else {c=g.hasDomProp('width')}if(c){if(o){f=0}else if(i&&i.measureContentHeight){f=i.measureContentHeight(a)}else {if(j.cacheHeight){l=j.xtype+'-'+j.ui;k=h.heightCache;f=k[l]||(k[l]=h.measureContentHeight(a))}else {f=h.measureContentHeight(a)}}if(!isNaN(b.contentHeight=f)){a.setContentHeight(f,!0);b.gotHeight=!0;++d}}}}}else if(t.natural&&a.consumersHeight){++m;e=q.height;if(typeof e==='number'){b.height=e;b.gotHeight=!0;++d}else {if(n||!g){c=!0}else {c=g.hasDomProp('width')}if(c){if(!isNaN(b.height=h.measureOwnerHeight(a))){a.setHeight(b.height,!1);b.gotHeight=!0;++d}}}}if(g){a.onBoxMeasured()}b.gotAll=d===m;return b},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:!1,setWidthInDom:!1,waitForOuterHeightInDom:!1,waitForOuterWidthInDom:!1,beginLayoutCycle:function(d,f){var a=this,c=a.lastWidthModel,b=a.lastHeightModel,e=a.owner.el;Ext.layout.component.Component.prototype.beginLayoutCycle.apply(this,arguments);if(c&&c.fixed&&d.widthModel.shrinkWrap){e.setWidth(null)}if(b&&b.fixed&&d.heightModel.shrinkWrap){e.setHeight(null)}},calculate:function(b){var a=this,c=a.measureAutoDimensions(b),f=b.heightModel,g=b.widthModel,e,d;if(c.gotWidth){if(g.shrinkWrap){a.publishOwnerWidth(b,c.contentWidth)}else if(a.publishInnerWidth){a.publishInnerWidth(b,c.width)}}else if(!g.auto&&a.publishInnerWidth){e=a.waitForOuterWidthInDom?b.getDomProp('width'):b.getProp('width');if(e===undefined){a.done=!1}else {a.publishInnerWidth(b,e)}}if(c.gotHeight){if(f.shrinkWrap){a.publishOwnerHeight(b,c.contentHeight)}else if(a.publishInnerHeight){a.publishInnerHeight(b,c.height)}}else if(!f.auto&&a.publishInnerHeight){d=a.waitForOuterHeightInDom?b.getDomProp('height'):b.getProp('height');if(d===undefined){a.done=!1}else {a.publishInnerHeight(b,d)}}if(!c.gotAll){a.done=!1}},calculateOwnerHeightFromContentHeight:function(b,a){return a+b.getFrameInfo().height},calculateOwnerWidthFromContentWidth:function(b,a){return a+b.getFrameInfo().width},publishOwnerHeight:function(b,h){var c=this,g=c.owner,a=c.calculateOwnerHeightFromContentHeight(b,h),d,f,e;if(isNaN(a)){c.done=!1}else {d=Ext.Number.constrain(a,g.minHeight,g.maxHeight);if(d===a){f=c.setHeightInDom}else {e=c.sizeModels[(d<a)?'constrainedMax':'constrainedMin'];a=d;if(b.heightModel.calculatedFromShrinkWrap){b.heightModel=e}else {b.invalidate({heightModel:e})}}b.setHeight(a,f)}},publishOwnerWidth:function(b,h){var c=this,g=c.owner,a=c.calculateOwnerWidthFromContentWidth(b,h),d,f,e;if(isNaN(a)){c.done=!1}else {d=Ext.Number.constrain(a,g.minWidth,g.maxWidth);if(d===a){f=c.setWidthInDom}else {e=c.sizeModels[(d<a)?'constrainedMax':'constrainedMin'];a=d;if(b.widthModel.calculatedFromShrinkWrap){b.widthModel=e}else {b.invalidate({widthModel:e})}}b.setWidth(a,f)}}},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(a){var d=this,c,b;Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);if(!a.textEls){b=d.owner.textEl;if(b.isComposite){a.textEls=[];b=b.elements;for(c=b.length;c--;){a.textEls[c]=a.getEl(Ext.get(b[c]))}}else {a.textEls=[a.getEl('textEl')]}}},calculate:function(a){var e=this,d,b,c;Ext.layout.component.Auto.prototype.calculate.apply(this,arguments);if(Ext.isNumber(c=a.getProp('width'))){c-=a.getBorderInfo().width;b=a.textEls;for(d=b.length;d--;){b[d].setWidth(c)}}else {e.done=!1}}},0,0,0,0,["layout.progressbar"],0,[Ext.layout.component,'ProgressBar'],0));(Ext.cmd.derive('Ext.ProgressBar',Ext.Component,{baseCls:'x-progress',animate:!1,text:'',waitTimer:null,childEls:['bar'],defaultBindProperty:'value',renderTpl:['<tpl if="internalText">','<div class="{baseCls}-text {baseCls}-text-back" role="presentation">{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" role="presentation">','<div role="presentation">{text}</div>','</div>','</tpl>','</div>'],componentLayout:'progressbar',ariaRole:'progressbar',focusable:!0,tabIndex:0,autoEl:{'aria-valuemin':'0','aria-valuenow':'0','aria-valuemax':'100'},initRenderData:function(){var a=this,b=a.value||0,c;c=Ext.Component.prototype.initRenderData.call(this);return Ext.apply(c,{internalText:!a.hasOwnProperty('textEl'),text:a.text||Math.round(b*100)+'%',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')}},afterRender:function(){var a=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(a.text){a.ariaEl.dom.setAttribute('aria-valuetext',a.text)}},updateValue:function(a){this.updateProgress(a)},updateProgress:function(b,c,d){b=b||0;var a=this,f=a.value,e=a.getTextTpl();a.value=b||(b=0);if(c!=null){a.autoText=!1;a.updateText(c)}else if(e){a.autoText=!1;a.updateText(e.apply({value:b,percent:b*100}))}else if(!a.text&&a.autoText!==!1){a.autoText=!0;a.updateText(Math.round(b*100)+'%')}else if(a.text&&a.ariaEl.dom){a.ariaEl.dom.removeAttribute('aria-valuetext')}if(a.rendered&&!a.destroyed){if(d===!0||(d!==!1&&a.animate)){a.bar.stopAnimation();a.bar.animate(Ext.apply({from:{width:(f*100)+'%'},to:{width:(b*100)+'%'}},a.animate))}else {a.bar.setStyle('width',(b*100)+'%')}a.ariaEl.dom.setAttribute('aria-valuenow',Math.round(b*100))}a.fireEvent('update',a,b,c);return a},updateText:function(b){var a=this;if(!a.autoText){a.text=b}if(a.rendered){a.textEl.setHtml(b);if(!a.autoText){a.ariaEl.dom.setAttribute('aria-valuetext',b)}else {a.ariaEl.dom.removeAttribute('aria-valuetext')}}return a},applyText:function(a){this.updateText(a)},getText:function(){return this.text},wait:function(a){var b=this,c;if(!b.waitTimer){c=b;a=a||{};if(a.text!=null){b.autoText=!1}b.updateText(a.text);b.waitTimer=Ext.TaskManager.start({run:function(d){var c=a.increment||10;d-=1;b.updateProgress(((((d+c)%c)+1)*(100/c))*0.01,null,a.animate)},interval:a.interval||1000,duration:a.duration,onStop:function(){if(a.fn){a.fn.apply(a.scope||b)}b.reset()},scope:c})}return b},isWaiting:function(){return this.waitTimer!==null},reset:function(b){var a=this;a.updateProgress(0);a.clearTimer();if(b===!0){a.hide()}if(a.rendered){a.ariaEl.dom.removeAttribute('aria-valuetext')}return a},clearTimer:function(){var a=this;if(a.waitTimer){a.waitTimer.onStop=null;Ext.TaskManager.stop(a.waitTimer);a.waitTimer=null}},doDestroy:function(){var a=this,d=a.bar,c,f,b,e;a.clearTimer();if(a.rendered){if(a.textEl.isComposite){c=a.textEl.slice();for(b=0,e=c.length;b<e;b++){f=Ext.get(c[b]);f.destroy()}}Ext.destroyMembers(a,'textEl','progressBar');if(d&&a.animate){d.stopAnimation()}}Ext.Component.prototype.doDestroy.call(this)}},0,["progressbar"],["component","box","progressbar"],{"component":!0,"box":!0,"progressbar":!0},["widget.progressbar"],[[Ext.ProgressBase.prototype.mixinId||Ext.ProgressBase.$className,Ext.ProgressBase]],[Ext,'ProgressBar'],0));(Ext.cmd.derive('Ext.dom.ButtonElement',Ext.dom.Element,{setSize:function(b,a,e){var d=this,c=d.component;Ext.dom.Element.prototype.setSize.call(this,b,a,e);c.btnWrap.setStyle('table-layout',(!b||b==='auto')?'':'fixed');c.btnEl.setStyle('height',(!a||a==='auto')?'':'auto');return d},setStyle:function(a,c){var f=this,e=f.component,d,b;Ext.dom.Element.prototype.setStyle.call(this,a,c);if(a){if(a==='width'||(typeof a!=='string'&&'width' in a)){d=c||a.width;e.btnWrap.setStyle('table-layout',(!d||d==='auto')?'':'fixed')}if(a==='height'||(typeof a!=='string'&&'height' in a)){b=c||a.height;e.btnEl.setStyle('height',(!b||b==='auto')?'':'auto')}}return f},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(a,b){Ext.dom.Element.prototype.setWidth.call(this,a,b);this.component.btnWrap.setStyle('table-layout',(!a||a==='auto')?'':'fixed');return this}},0,0,0,0,0,0,[Ext.dom,'ButtonElement'],0));(Ext.cmd.derive('Ext.button.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.ButtonToggleManager',groups:{},pressedButton:null,init:function(){var a=this;if(!a.initialized){Ext.getDoc().on({mouseup:a.onDocumentMouseUp,scope:a});a.initialized=!0}},onButtonMousedown:function(b,c){var a=this.pressedButton;if(a&&!a.destroying&&!a.destroyed){a.onMouseUp(c)}this.pressedButton=b},onDocumentMouseUp:function(b){var a=this.pressedButton;if(a&&!a.destroying&&!a.destroyed){a.onMouseUp(b);this.pressedButton=null}},toggleGroup:function(c,e){if(e){var b=this.groups[c.toggleGroup],d=b.length,a;for(a=0;a<d;a++){if(b[a]!==c){b[a].toggle(!1)}}}},register:function(a){var c=this,d=this.groups,b=d[a.toggleGroup];c.init();if(!a.toggleGroup){return}if(!b){b=d[a.toggleGroup]=[]}b.push(a);a.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 a=this.groups[d],b=0,c;if(a){for(c=a.length;b<c;b++){if(a[b].pressed===!0){return a[b]}}}return null}},0,0,0,0,0,0,[Ext.button,'Manager',Ext,'ButtonToggleManager'],0));(Ext.cmd.derive('Ext.menu.Manager',Ext.Base,{singleton:!0,alternateClassName:'Ext.menu.MenuMgr',groups:{},visible:[],constructor:function(){var a=this;a.onShow=function(){a.registerGlobalListeners();return a.onShow.apply(a,arguments)}},onGlobalScroll:function(d){var b=this.visible,e=b.length,c,a,f=d.getElement();if(e&&d!==Ext.scroll.Scroller.viewport){b=b.slice();for(c=0;c<e;++c){a=b[c];if(!a.alignOnScroll&&a.hideOnScroll!==!1&&!a.owns(f)){a.hide()}}}},checkActiveMenus:function(f){var a=this.visible,e=a.length,c,b,d=Ext.Component.from(f);if(e){a=a.slice();for(c=0;c<e;++c){b=a[c];if(!(b.owns(f)||(d&&d.isMenuItem&&d.getMenu()===b))){b.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 a=this.visible,d=a.length,c=!1,b;if(d){a=a.slice();for(b=0;b<d;b++){a[b].hide();c=!0}}return c},get:function(a,b){var c;if(typeof a==='string'){c=Ext.getCmp(a);if(c instanceof Ext.menu.Menu){a=c}}else if(Ext.isArray(a)){b=Ext.apply({items:a},b);a=new Ext.menu.Menu(b)}else if(!a.isComponent){b=Ext.apply({},a,b);a=Ext.ComponentManager.create(b,'menu')}return a},registerCheckable:function(c){var b=this.groups,a=c.group;if(a){if(!b[a]){b[a]=[]}b[a].push(c)}},unregisterCheckable:function(a){var c=this.groups,b=a.group;if(b){Ext.Array.remove(c[b],a)}},onCheckChange:function(d,h){var g=this.groups,e=d.group,c=0,a,f,b;if(e&&h){a=g[e];f=a.length;for(;c<f;c++){b=a[c];if(b!==d){b.setChecked(!1)}}}},registerGlobalListeners:function(){var a=this;delete a.onShow;Ext.on({mousedown:a.checkActiveMenus,scroll:a.onGlobalScroll,scope:a})}},1,0,0,0,0,0,[Ext.menu,'Manager',Ext.menu,'MenuMgr'],0));(Ext.cmd.derive('Ext.button.Button',Ext.Component,{alternateClassName:'Ext.Button',config:{iconAlign:'left',text:null,textAlign:'center',arrowVisible:!0,glyph:null},isButton:!0,_syncFrameHeight:!0,liquidLayout:!0,hidden:!1,disabled:!1,pressed:!1,tabIndex:0,enableToggle:!1,menuAlign:'tl-bl?',showEmptyMenu:!1,clickEvent:'click',preventDefault:!0,handleMouseEvents:!0,tooltipType:'qtip',baseCls:'x-btn',hrefTarget:'_blank',destroyMenu:!0,focusable:!0,ariaRole:'button',keyMap:{scope:'this',SPACE:'onEnterKey',ENTER:'onEnterKey',DOWN:'onDownKey'},defaultBindProperty:'text',childEls:['btnEl','btnWrap','btnInnerEl','btnIconEl','arrowEl'],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',_arrowElCls:'x-btn-arrow-el',_focusCls:'x-btn-focus',_arrowFocusCls:'x-arrow-focus',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><tpl if="split"><span id="{id}-arrowEl" class="{arrowElCls}" data-ref="arrowEl" role="button" hidefocus="on" unselectable="on"<tpl if="tabIndex != null"> tabindex="{tabIndex}"</tpl><tpl foreach="arrowElAttributes"> {$}="{.}"</tpl> style="{arrowElStyle}">{arrowElText}</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"><tpl if="glyphFontFamily">font-family:{glyphFontFamily};</tpl>">{glyph}<tpl else>"></tpl></span>',scale:'small',allowedScales:['small','medium','large'],arrowAlign:'right',arrowCls:'arrow',maskOnDisable:!1,shrinkWrap:3,frame:!0,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');Ext.Component.prototype.initComponent.call(this);if(a.menu){a.split=!0;a.setMenu(a.menu,!1,!0)}if(a.url){a.href=a.url}a.configuredWithPreventDefault=a.hasOwnProperty('preventDefault');if(a.href&&!a.configuredWithPreventDefault){a.preventDefault=!1}if(Ext.isString(a.toggleGroup)&&a.toggleGroup!==''){a.enableToggle=!0}if(a.html&&!a.text){a.text=a.html;delete a.html}},getElConfig:function(){var a=this,b=Ext.Component.prototype.getElConfig.call(this),d=a.getHref(),c=a.hrefTarget;if(b.tag==='a'){if(!a.disabled){b.tabIndex=a.tabIndex}if(d){if(!a.disabled){b.href=d;if(c){b.target=c}}}}if(!a.ariaStaticRoles[a.ariaRole]){if(a.menu&&!a.isSplitButton){b['aria-haspopup']=!0}if(a.enableToggle){b['aria-pressed']=!!a.pressed}}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(b,g,h){var a=this,e=a.menu,d=a.isSplitButton?a.arrowEl&&a.arrowEl.dom:a.ariaEl.dom,f,c;if(e&&!h){if(g!==!1&&a.destroyMenu){e.destroy()}e.ownerCmp=null}if(b){f=b.isMenu;b=Ext.menu.Manager.get(b,{ownerCmp:a});b.setOwnerCmp(a,f);b.menuClickBuffer=250;a.mon(b,{scope:a,show:a.onMenuShow,hide:a.onMenuHide});if(!e&&a.getArrowVisible()){a.split=!0;if(a.rendered){a._addSplitCls();a.updateLayout()}}a.menu=b;if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=a.isSplitButton?(a.ariaArrowElAttributes||(a.ariaArrowElAttributes={})):(a.ariaRenderAttributes||(a.ariaRenderAttributes={}));c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {if(a.rendered){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns');a._removeSplitCls();a.updateLayout()}else {c=a.isSplitButton?a.ariaArrowElAttributes:a.ariaRenderAttributes;if(c){delete c['aria-haspopup'];delete c['aria-owns']}}a.split=!1;a.menu=null}},onRender:function(){var a=this,d,c,b;Ext.Component.prototype.onRender.apply(this,arguments);c=a.el;if(a.tooltip){a.setTooltip(a.tooltip,!0)}if(a.handleMouseEvents){b={scope:a,mouseover:a.onMouseOver,mouseout:a.onMouseOut,mousedown:a.onMouseDown};if(a.split){b.mousemove=a.onMouseMove}}else {b={scope:a}}if(Ext.supports.Touch){b.touchstart=a.onTouchStart}if(a.repeat){a.mon(new Ext.util.ClickRepeater(c,Ext.isObject(a.repeat)?a.repeat:{}),'click',a.onRepeatClick,a)}else {if(b[a.clickEvent]){d=!0}else {b[a.clickEvent]=a.onClick}}a.mon(c,b);if(a.hasFrameTable()){a.mon(a.frameTable,'click',a.frameTableListener,a)}if(d){a.mon(c,a.clickEvent,a.onClick,a)}Ext.button.Manager.register(a)},onFocusLeave:function(a){Ext.Component.prototype.onFocusLeave.call(this,a);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var a=this,h=a._btnCls,i=a._baseIconCls,c=a.getIconAlign(),b=a.glyph,e,d=a.text,g=a._hasIcon(),f=a._hasIconCls;if(b){e=b.fontFamily;b=b.character}return {split:a.isSplitButton,innerCls:a._innerCls,splitCls:a.getArrowVisible()?a.getSplitCls():'',iconUrl:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:e,text:d||'&#160;',closeText:a.closeText,textCls:d?a._textCls:'',noTextCls:d?'':a._noTextCls,hasIconCls:g?f:'',btnWrapCls:a._btnWrapCls,btnWrapStyle:a.width?'table-layout:fixed;':'',btnElStyle:a.height?'height:auto;':'',btnCls:h,baseIconCls:i,iconBeforeText:c==='left'||c==='top',iconAlignCls:g?(f+'-'+c):'',textAlignCls:h+'-'+a.getTextAlign(),arrowElCls:a._arrowElCls,arrowElStyle:a.arrowVisible?'':'display:none',tabIndex:a.tabIndex}},renderIcon:function(a){return this.lookupTpl('iconTpl').apply(a)},setHref:function(c){var a=this,d=a.hrefTarget,b;a.href=c;if(!a.configuredWithPreventDefault){a.preventDefault=!c}if(a.rendered){b=a.el.dom;if(!c||a.disabled){b.removeAttribute('href');b.removeAttribute('hrefTarget')}else {b.href=a.getHref();if(d){b.target=d}}}},getHref:function(){var a=this,b=a.href;return b?Ext.urlAppend(b,Ext.Object.toQueryString(Ext.apply({},a.params,a.baseParams))):!1},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 a=this,c=a.btnIconEl,d=a.icon||'';if(a.glyph){a.setGlyph(null)}a.icon=b;if(b!==d){if(c){c.removeCls(a.iconCls);c.setStyle('background-image',b?'url('+b+')':'');a._syncHasIconCls();if(a.didIconStateChange(d,b)){a.updateLayout()}}a.fireEvent('iconchange',a,d,b)}return a},setIconCls:function(b){b=b||'';var a=this,c=a.btnIconEl,d=a.iconCls||'';if(a.glyph){a.setGlyph(null)}a.iconCls=b;if(d!==b){if(c){c.setStyle('background-image','');c.removeCls(d);c.addCls(b);a._syncHasIconCls();if(a.didIconStateChange(d,b)){a.updateLayout()}}a.fireEvent('iconchange',a,d,b)}return a},applyGlyph:function(a,b){if(a){if(!a.isGlyph){a=new Ext.Glyph(a)}if(a.isEqual(b)){a=undefined}}return a},updateGlyph:function(c,d){var a=this,b=a.btnIconEl,e=a._glyphCls;if(b){a.icon=null;b.setStyle('background-image','');if(c){b.dom.innerHTML=c.character;b.addCls(e);b.setStyle(c.getStyle())}else {b.dom.innerHTML='';b.removeCls(e)}a._syncHasIconCls();if(a.didIconStateChange(d,c)){a.updateLayout()}}a.fireEvent('glyphchange',a,c&&c.glyphConfig,d&&d.glyphConfig);return a},setTooltip:function(b,c){var a=this;if(a.rendered){if(!c||!b){a.clearTip()}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.el.id},b));a.tooltip=b}else {a.el.dom.setAttribute(a.getTipAttr(),b)}}}else {a.tooltip=b}return a},updateIconAlign:function(e,f){var b=this,a,d,c;if(b.rendered){a=b.btnEl;d=b.btnIconEl;c=b._hasIconCls;if(f){a.removeCls(c+'-'+f)}a.addCls(c+'-'+e);if(e==='top'||e==='left'){a.insertFirst(d)}else {a.appendChild(d)}b.updateLayout()}},updateTextAlign:function(e,d){var a=this,c=a.btnEl,b=a._btnCls;if(a.rendered){c.removeCls(b+'-'+d);c.addCls(b+'-'+e)}},getTipAttr:function(){return this.tooltipType==='qtip'?'data-qtip':'title'},getRefItems:function(c){var b=this.menu,a=[];if(b){if(c){a=b.getRefItems(c)}a.unshift(b)}return a},clearTip:function(){var a=this,b=a.el;if(Ext.quickTipsActive&&Ext.isObject(a.tooltip)){Ext.tip.QuickTipManager.unregister(b)}else {b.dom.removeAttribute(a.getTipAttr())}},doDestroy:function(){var a=this,b=a.menu;if(a.deferFocusTimer){Ext.undefer(a.deferFocusTimer);a.deferFocusTimer=null}if(a.rendered){a.clearTip()}Ext.destroy(a.repeater);if(b&&a.destroyMenu){a.menu=Ext.destroy(b)}Ext.button.Manager.unregister(a);Ext.Component.prototype.doDestroy.call(this)},setHandler:function(a,b){this.handler=a;if(arguments.length>1){this.scope=b}return this},updateText:function(b,c){b=b==null?'':String(b);c=c||'';var a=this,e=a.btnInnerEl,d=a.btnEl;if(a.rendered){e.setHtml(b||'&#160;');d[b?'addCls':'removeCls'](a._textCls);d[b?'removeCls':'addCls'](a._noTextCls);a.updateLayout()}a.fireEvent('textchange',a,c,b)},didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},click:function(a){return this.onClick(a)},setPressed:function(a){return this.toggle(a!==!1)},toggle:function(b,d){var a=this,c=a.ariaEl.dom;if(!a.enableToggle){return a}b=b===undefined?!a.pressed:!!b;if(a.fireEvent('beforetoggle',a,b)!==!1){if(b!==a.pressed){a[b?'addCls':'removeCls'](a._pressedCls);a.pressed=b;if(c){c.setAttribute('aria-pressed',b)}if(!d){a.fireEvent('toggle',a,b);Ext.callback(a.toggleHandler,a.scope,[a,b],0,a);if(a.publishState){a.publishState('pressed',b)}}}}return a},maybeShowMenu:function(a){if(this.menu){this.showMenu(a)}},showMenu:function(c){var a=this,b=a.menu,d=!c||c.pointerType;if(b&&a.rendered){if(a.tooltip&&Ext.quickTipsActive&&a.getTipAttr()!=='title'){Ext.tip.QuickTipManager.getQuickTip().cancelShow(a.el)}if(b.isVisible()){if(d){b.hide()}else {b.focus()}}else if(!c||a.showEmptyMenu||b.items.getCount()>0){b.autoFocus=!d;b.showBy(a.el,a.menuAlign)}}return a},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var a=this.menu;return a&&a.rendered&&a.isVisible()},onRepeatClick:function(b,a){this.onClick(a)},onTouchStart:function(a){if(this.disabled){this.doPreventDefault(a)}},onEnterKey:function(a){if(!this.href){this.onClick(a);a.stopEvent();return !1}},onClick:function(a){var b=this;if(a){b.doPreventDefault(a)}if(a&&a.type!=='keydown'&&a.button){return}if(!b.disabled){b.doToggle();b.maybeShowMenu(a);b.fireHandler(a)}},doToggle:function(){var a=this;if(a.allowDepress!==!1||!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)!==!1&&!a.destroyed){Ext.callback(a.handler,a.scope,[a,b],0,a)}},onMouseOver:function(b){var a=this;if(!a.disabled&&!b.within(a.el,!0,!0)){a.onMouseEnter(b)}},onMouseOut:function(b){var a=this;if(!b.within(a.el,!0,!0)){if(a.overMenuTrigger){a.onMenuTriggerOut(b)}a.onMouseLeave(b)}},onMouseMove:function(b){var a=this,c=a.overMenuTrigger;if(a.split){if(a.isWithinTrigger(b)){if(!c){a.onMenuTriggerOver(b)}}else if(c){a.onMenuTriggerOut(b)}}},isWithinTrigger:function(d){var a=this,e=a.el,c,b;c=(a.arrowAlign==='right')?d.getX()-a.getX():d.getY()-e.getY();b=a.getTriggerRegion();return c>b.begin&&c<b.end},getTriggerRegion:function(){var a=this,b=a._triggerRegion,d=a.arrowAlign==='right',e=d?'getRight':'getBottom',c=d?a.getWidth():a.getHeight();b.begin=c-(a.el[e]()-a.btnEl[e]());b.end=c;return b},onMouseEnter:function(a){this.fireEvent('mouseover',this,a)},onMouseLeave:function(a){this.fireEvent('mouseout',this,a)},onMenuTriggerOver:function(c){var a=this,b=a.arrowTooltip;a.overMenuTrigger=!0;if(a.split&&b){a.btnWrap.dom.setAttribute(a.getTipAttr(),b)}a.fireEvent('menutriggerover',a,a.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 a=this,c=a.href,b=a.hrefTarget,d=a.el.dom;Ext.Component.prototype.onEnable.call(this);a.removeCls(a._disabledCls);a.el.setTabIndex(a.tabIndex);if(c){d.href=c}if(b){d.target=b}},onDisable:function(){var a=this,b=a.el.dom;Ext.Component.prototype.onDisable.call(this);a.addCls(a._disabledCls);a.removeCls(a.overCls);a.el.setTabIndex(null);if(a.href){b.removeAttribute('href')}if(a.hrefTarget){b.removeAttribute('target')}},setScale:function(b){var a=this,c=a.ui.replace('-'+a.scale,'');if(!Ext.Array.contains(a.allowedScales,b)){throw ('#setScale: scale must be an allowed scale ('+a.allowedScales.join(', ')+')')}a.scale=b;a.setUI(c)},setUI:function(a){var b=this;if(b.scale&&!a.match(b.scale)){a=a+'-'+b.scale}Ext.Component.prototype.setUI.call(this,a)},onMouseDown:function(b){var a=this,c;if(Ext.isIE||b.pointerType==='touch'){if(a.deferFocusTimer){Ext.undefer(a.deferFocusTimer)}c=Ext.Element.getActiveElement();a.deferFocusTimer=Ext.defer(function(){var d;a.deferFocusTimer=null;if(a.destroying||a.destroyed||(Ext.Element.getActiveElement()!==c)||!a.canFocus()){return}d=a.getFocusEl();if(d&&!b.defaultPrevented){d.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.destroyed&&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(b){var a=this;if(a.menu&&!a.disabled){a.showMenu(b);b.stopEvent();return !1}},updateArrowVisible:function(b){var a=this;if(a.rendered){if(b){if(a.menu||a.isSplitButton){a.split=!0;a._addSplitCls()}}else {a._removeSplitCls();a.split=!1}}return b},privates:{elClsMap:{'btnWrap':'_btnWrapCls','btnEl':'_btnCls','btnIconEl':'_baseIconCls','btnInnerEl':'_innerCls'},addUIToElement:function(){Ext.Component.prototype.addUIToElement.call(this);this.updateChildElsUICls(!0)},addOverCls:function(){if(!this.disabled){this.addCls(this.overCls)}},_addSplitCls:function(){var a=this;a.btnWrap.addCls(a.getSplitCls())},getTdCls:function(){return 'x-button-'+this.ui+'-'+this.scale+'-cell'},getValue:function(){return this.value},removeUIFromElement:function(){Ext.Component.prototype.removeUIFromElement.call(this);this.updateChildElsUICls(!1)},removeOverCls:function(){this.removeCls(this.overCls)},_removeSplitCls:function(){var a=this;a.btnWrap.removeCls(a.getSplitCls())},_syncHasIconCls:function(){var a=this,c=a.btnEl,b=a._hasIconCls;if(c){c[a._hasIcon()?'addCls':'removeCls']([b,b+'-'+a.iconAlign])}},_hasIcon:function(){return !!(this.icon||this.iconCls||this.glyph)},updateChildElsUICls:function(h){var a=this,i=a.ui,g=h?'addCls':'removeCls',e=a.elClsMap,c,d,f,b;for(c in e){d=a[c];f=e[c];b=a[f];if(d&&b){d[g](b+'-'+i)}}},wrapPrimaryEl:function(a){this.el=new Ext.dom.ButtonElement(a);Ext.Component.prototype.wrapPrimaryEl.call(this,a)}}},0,["button"],["component","box","button"],{"component":!0,"box":!0,"button":!0},["widget.button"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.button,'Button',Ext,'Button'],0));(Ext.cmd.derive('Ext.button.Split',Ext.button.Button,{alternateClassName:'Ext.SplitButton',isSplitButton:!0,arrowCls:'split',split:!0,getTemplateArgs:function(){var a=this,b,c;c=Ext.button.Button.prototype.getTemplateArgs.call(this);if(a.disabled){c.tabIndex=null}b=a.ariaArrowElAttributes||{};b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;if(a.arrowTooltip){b['aria-label']=a.arrowTooltip}else {b['aria-labelledby']=a.id}c.arrowElAttributes=b;return c},onRender:function(){var a=this,b;Ext.button.Button.prototype.onRender.call(this);b=a.getFocusEl();if(b){b.on({scope:a,focus:a.onMainElFocus,blur:a.onMainElBlur})}b=a.arrowEl;if(b){b.dom.setAttribute('data-componentid',a.id);b.setVisibilityMode(Ext.dom.Element.DISPLAY);b.on({scope:a,focus:a.onArrowElFocus,blur:a.onArrowElBlur})}},setArrowHandler:function(a,b){this.arrowHandler=a;this.scope=b},onClick:function(b){var a=this,c=b.type==='keydown'&&b.target===a.arrowEl.dom;a.doPreventDefault(b);if(!a.disabled){if(c||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)}}},enable:function(c){var b=this,a=b.arrowEl;Ext.button.Button.prototype.enable.call(this,c);if(a){a.dom.setAttribute('tabIndex',b.tabIndex);a.dom.setAttribute('aria-disabled','false')}},disable:function(b){var c=this,a=c.arrowEl;Ext.button.Button.prototype.disable.call(this,b);if(a){a.dom.removeAttribute('tabIndex');a.dom.setAttribute('aria-disabled','true')}},afterHide:function(b,a){Ext.button.Button.prototype.afterHide.call(this,b,a);this.arrowEl.dom.setAttribute('aria-hidden','true')},afterShow:function(a,c,b){Ext.button.Button.prototype.afterShow.call(this,a,c,b);this.arrowEl.dom.setAttribute('aria-hidden','false')},privates:{isFocusing:function(f){var a=this,d=f.fromElement,e=f.toElement,c=a.focusEl&&a.focusEl.dom,b=a.arrowEl&&a.arrowEl.dom;if(a.focusable){if(e===c){return d===b?!1:!0}else if(e===b){return d===c?!1:!0}return !0}return !1},isBlurring:function(f){var a=this,d=f.fromElement,e=f.toElement,c=a.focusEl&&a.focusEl.dom,b=a.arrowEl&&a.arrowEl.dom;if(a.focusable){if(d===c){return e===b?!1:!0}else if(d===b){return e===c?!1:!0}return !0}return !1},getFocusClsEl:Ext.privateFn,onMainElFocus:function(a){this.el.addCls(this._focusCls)},onMainElBlur:function(a){this.el.removeCls(this._focusCls)},onArrowElFocus:function(a){this.el.addCls(this._arrowFocusCls)},onArrowElBlur:function(){this.el.removeCls(this._arrowFocusCls)},setTabIndex:function(a){Ext.button.Button.prototype.setTabIndex.call(this,a);if(this.arrowEl){this.arrowEl.set({tabIndex:a})}},_addSplitCls:function(){var a=this.arrowEl;Ext.button.Button.prototype._addSplitCls.call(this);a.dom.setAttribute('tabIndex',this.tabIndex);a.setVisible(!0)},_removeSplitCls:function(){var a=this.arrowEl;Ext.button.Button.prototype._removeSplitCls.call(this);a.dom.removeAttribute('tabIndex');a.setVisible(!1)}}},0,["splitbutton"],["component","box","button","splitbutton"],{"component":!0,"box":!0,"button":!0,"splitbutton":!0},["widget.splitbutton"],0,[Ext.button,'Split',Ext,'SplitButton'],0));(Ext.cmd.derive('Ext.button.Cycle',Ext.button.Split,{alternateClassName:'Ext.CycleButton',getButtonText:function(c){var a=this,b='';if(c&&a.showText===!0){if(a.prependText){b+=a.prependText}b+=c.text;return b}return a.text},setActiveItem:function(b,f){var a=this,c=a.changeHandler,e=a.forceIcon,d=a.forceGlyph;a.settingActive=!0;if(!Ext.isObject(b)){b=a.menu.getComponent(b)}if(b){a.setText(a.getButtonText(b));a.setIconCls(e?e:b.iconCls);a.setGlyph(d?d:b.glyph);a.activeItem=b;if(!b.checked){b.setChecked(!0,!1)}if(!f){if(c){Ext.callback(c,a.scope,[a,b],0,a)}a.fireEvent('change',a,b)}}a.settingActive=!1},getActiveItem:function(){return this.activeItem},initComponent:function(){var a=this,e=0,d,c,f,b;d=(a.menu.items||[]).concat(a.items||[]);a.menu=Ext.applyIf({cls:'x-cycle-menu',items:[]},a.menu);f=d.length;for(c=0;c<f;c++){b=d[c];b=Ext.applyIf({group:a.id,itemIndex:c,checkHandler:a.checkHandler,scope:a,checked:b.checked||!1},b);a.menu.items.push(b);if(b.checked){e=c}}a.itemCount=a.menu.items.length;Ext.button.Split.prototype.initComponent.apply(this,arguments);a.on('click',a.toggleSelected,a);a.setActiveItem(e,!0)},checkHandler:function(b,a){if(a&&!this.settingActive){this.setActiveItem(b)}},toggleSelected:function(){var b=this,c=b.menu,a;a=b.activeItem.next(':not([disabled])')||c.items.getAt(0);a.setChecked(!0)}},0,["cycle"],["component","box","button","splitbutton","cycle"],{"component":!0,"box":!0,"button":!0,"splitbutton":!0,"cycle":!0},["widget.cycle"],0,[Ext.button,'Cycle',Ext,'CycleButton'],0));(Ext.cmd.derive('Ext.layout.container.SegmentedButton',Ext.layout.container.Container,{needsItemSize:!1,setsItemSize:!1,_btnRowCls:'x-segmented-button-row',getRenderTree:function(){var d=this,b=Ext.layout.container.Container.prototype.getRenderTree.call(this),a,c;if(d.owner.getVertical()){for(a=0,c=b.length;a<c;a++){b[a]={cls:d._btnRowCls,cn:b[a]}}}return b},getItemLayoutEl:function(b){var a=b.el.dom;return this.owner.getVertical()?a.parentNode:a},onDestroy:function(){if(this.owner.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:!1,allowMultiple:!1,forceSelection:!1,allowToggle:!0,vertical:!1,defaultUI:'default'},beforeRenderConfig:{value:undefined},defaultBindProperty:'value',publishes:['value'],twoWayBindable:['value'],layout:'segmentedbutton',defaultType:'button',maskOnDisable:!1,isSegmentedButton:!0,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(e,g){var f=this,l=f.getAllowMultiple(),c,b,d,i,j,a,h,k;d=(e instanceof Array)?e:(e==null)?[]:[e];i=(g instanceof Array)?g:(g==null)?[]:[g];f._isApplyingValue=!0;if(!f.rendered){j=f.items.items;for(a=j.length-1;a>=0;a--){b=j[a];if(f.forceSelection&&!a&&!k){b.pressed=!0}if(b.pressed){k=!0;c=b.value;if(c==null){c=f.items.indexOf(b)}if(!Ext.Array.contains(d,c)){d.unshift(c)}}}}h=d.length;for(a=0;a<h;a++){e=d[a];b=f._lookupButtonByValue(e);if(b){c=b.value;if((c!=null)&&c!==e){d[a]=c}if(!b.pressed){b.setPressed(!0)}}}e=l?d:h?d[0]:null;for(a=0,h=i.length;a<h;a++){g=i[a];if(!Ext.Array.contains(d,g)){f._lookupButtonByValue(g).setPressed(!1)}}f._isApplyingValue=!1;return e},updateValue:function(c,b){var a=this,d;if(a.hasListeners.change){if(c&&b&&a.getAllowMultiple()){d=Ext.Array.equals(c,b)}if(!d){a.fireEvent('change',a,c,b)}}},beforeRender:function(){var a=this;a.addCls(a.baseCls+a._getClsSuffix());a._syncItemClasses(!0);Ext.container.Container.prototype.beforeRender.call(this)},onAdd:function(b){var a=this,c='_syncItemClasses';a.mon(b,{hide:c,show:c,beforetoggle:'_onBeforeItemToggle',toggle:'_onItemToggle',scope:a});if(a.getAllowToggle()){b.enableToggle=!0;if(!a.getAllowMultiple()){b.toggleGroup=a.getId();b.allowDepress=a.getAllowDepress()}}b.addCls(a.itemCls+a._getClsSuffix());a._syncItemClasses();Ext.container.Container.prototype.onAdd.call(this,b)},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(d){var a=this.items,c,b,e;if(this.rendered){Ext.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,e=a.length;b<e;b++){c=a[b];if(c.ui==='default'&&d!=='default'&&!c.hasOwnProperty('ui')){a[b].ui=d}}}},privates:{_getClsSuffix:function(){return this.getVertical()?'-vertical':'-horizontal'},_getFirstCls:function(){return this._firstCls},_getLastCls:function(){return this._lastCls},_lookupButtonByValue:function(d){var c=this.items.items,g=c.length,f=0,a=null,b,e;for(;f<g;f++){e=c[f];b=e.value;if((b!=null)&&b===d){a=e;break}}if(!a&&typeof d==='number'){a=c[d]}return a},_onBeforeItemToggle:function(b,a){if(this.allowMultiple&&this.forceSelection&&!a&&this.getValue().length===1){return !1}},_onItemToggle:function(e,h){if(this._isApplyingValue){return}var b=this,g=Ext.Array,f=b.allowMultiple,c=(e.value!=null)?e.value:b.items.indexOf(e),a=b.getValue(),d;if(f){d=g.indexOf(a,c)}if(h){if(f){if(d===-1){a=g.slice(a);a.push(c)}}else {a=c}}else {if(f){if(d>-1){a=g.slice(a);a.splice(d,1)}}else if(a===c){a=null}}b.setValue(a);b.fireEvent('toggle',b,e,h)},_syncItemClasses:function(j){var d=this,f,e,g,h,c,b,i,a;if(!j&&!d.rendered){return}f=d._getFirstCls();e=d._middleCls;g=d._getLastCls();h=d.items.items;c=h.length;b=[];for(a=0;a<c;a++){i=h[a];if(!i.hidden){b.push(i)}}c=b.length;for(a=0;a<c;a++){b[a].removeCls([f,e,g])}if(c>1){b[0].addCls(f);for(a=1;a<c-1;a++){b[a].addCls(e)}b[c-1].addCls(g)}}}},0,["segmentedbutton"],["component","box","container","segmentedbutton"],{"component":!0,"box":!0,"container":!0,"segmentedbutton":!0},["widget.segmentedbutton"],0,[Ext.button,'Segmented'],0));(Ext.cmd.derive('Ext.panel.Bar',Ext.container.Container,{vertical:!1,_verticalSides:{left:1,right:1},initComponent:function(){var a=this,b=a.vertical;a.dock=a.dock||(b?'left':'top');a.layout=Ext.apply(b?{type:'vbox',align:'middle',alignRoundingMethod:'ceil'}:{type:'hbox',align:'middle',alignRoundingMethod:'floor'},a.layout);Ext.container.Container.prototype.initComponent.call(this)},onAdded:function(a,c,b){this.initOrientation();Ext.container.Container.prototype.onAdded.call(this,a,c,b)},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 a=this,c,b;if(d!==a.dock){Ext.suspendLayouts();a.clearOrientation();Ext.container.Container.prototype.setDock.call(this,d);a.initOrientation();b=a.vertical;c=a.layout;c.setVertical(b);c.setAlignRoundingMethod(b?'ceil':'floor');Ext.resumeLayouts(!0)}},privates:{clearOrientation:function(){this.removeClsWithUI([this.vertical?'vertical':'horizontal',this.getDockName()])},getDockName:function(){return this.dock},initOrientation:function(){var a=this,b=a.dock,c=(a.vertical=(b?b in a._verticalSides:a.vertical));a.addClsWithUI([c?'vertical':'horizontal',a.getDockName()])}}},0,0,["component","box","container"],{"component":!0,"box":!0,"container":!0},0,0,[Ext.panel,'Bar'],0));(Ext.cmd.derive('Ext.panel.Title',Ext.Component,{isTitle:!0,noWrap:!0,textAlign:'left',iconAlign:'left',rotation:0,text:'&#160;',beforeRenderConfig:{textAlign:null,text:null,glyph:null,icon:null,iconAlign:null,iconCls:null,rotation:null},autoEl:{role:'presentation',unselectable:'on'},textElRole:'presentation',tabIndex:0,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="textElRole"> role="{textElRole}"</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></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 b=this,c=b.getRotation(),a,d,e;if(c&&!Ext.isIE8){e=b.el;a=b.lastBox;d=a.x;e.setStyle(b._getVerticalAdjustDirection(),(d+((c===1)?a.width:-a.height))+'px')}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var a=this,b=a.getRotation(),c=a.el;Ext.Component.prototype.onRender.call(this);if(b){c.setVertical(a._rotationAngles[b])}if(Ext.supports.FixedTableWidthBug){c._needsTableWidthFix=!0}},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.lookupTpl('iconTpl').apply(this.getIconRenderData())},getIconRenderData:function(){var a=this,f=a.getIcon(),e=a.getIconCls(),b=a.getGlyph(),c,d=a.getIconAlign();if(b){c=b.fontFamily;b=b.character}return {id:a.id,ui:a.ui,itemCls:a._itemCls,iconUrl:f,iconCls:e,iconWrapCls:a._iconWrapCls,baseIconCls:a._baseIconCls,iconAlignCls:a._iconAlignClasses[d],glyph:b,glyphCls:b?a._glyphCls:'',glyphFontFamily:c}},initRenderData:function(){var a=this,c,b;b=Ext.apply({text:a.getText(),textElRole:a.textElRole,id:a.id,ui:a.ui,itemCls:a._itemCls,textCls:a._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(a._hasIcon()){c=a.getIconAlign();b.iconMarkup=a.getIconMarkup();b.iconBeforeTitle=(c==='top'||c==='left')}return b},onAdded:function(a,f,e){var d=this,c=d._titleSuffix,b=a.baseCls;d.addCls([b+c,b+c+'-'+a.ui]);Ext.Component.prototype.onAdded.call(this,a,f,e)},applyGlyph:function(a,b){if(a){if(!a.isGlyph){a=new Ext.Glyph(a)}if(a.isEqual(b)){a=undefined}}return a},updateGlyph:function(c,e){var b=this,d=b._glyphCls,a;if(b.rendered){b._syncIconVisibility();a=b.iconEl;if(c){a.dom.innerHTML=c.character;a.addCls(d);a.setStyle('font-family',c.fontFamily)}else if(e!==c){a.dom.innerHTML='';a.removeCls(d)}if(b._didIconStateChange(e,c)){b.updateLayout()}}},updateIcon:function(a,c){a=a||'';var b=this,d;if(b.rendered&&a!==c){b._syncIconVisibility();d=b.iconEl;d.setStyle('background-image',a?'url('+a+')':'');if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateIconAlign:function(d,f){var a=this,b=a.iconWrapEl,e,c;if(a.iconWrapEl){e=a.el;c=a._iconAlignClasses;if(f){b.removeCls(c[f])}b.addCls(c[d]);if(d==='top'||d==='left'){e.insertFirst(b)}else {e.appendChild(b)}a.updateLayout()}},updateIconCls:function(a,c){a=a||'';var b=this,d;if(b.rendered&&c!==a){b._syncIconVisibility();d=b.iconEl;if(c){d.removeCls(c)}d.addCls(a);if(b._didIconStateChange(c,a)){b.updateLayout()}}},updateRotation:function(d,e){var a=this,b,c;if(a.rendered){b=a.el;c=a._rotationClasses;a.removeCls(c[e]);a.addCls(c[d]);b.setHorizontal();if(d){b.setVertical(a._rotationAngles[d])}b.setStyle({right:'',left:'',top:'',height:'',width:''});a.lastBox=null;a.updateLayout()}},updateText:function(a){if(this.rendered){this.textEl.setHtml(a);this.updateLayout()}},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(a.rendered){if(c){a.removeCls(b[c])}a.addCls(b[d]);a.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return 'left'},_didIconStateChange:function(c,b){var a=Ext.isEmpty(b);return Ext.isEmpty(c)?!a:a},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var a=this,f=a.el,e=a._hasIcon(),b=a.iconWrapEl,d,c;if(e&&!b){c=a.iconAlign;d=(c==='left'||c==='top');f.dom.insertAdjacentHTML(d?'afterbegin':'beforeend',a.getIconMarkup());b=a.iconWrapEl=f[d?'first':'last']();a.iconEl=b.first()}if(b){b.setDisplayed(e)}}}},0,["title"],["component","box","title"],{"component":!0,"box":!0,"title":!0},["widget.title"],0,[Ext.panel,'Title'],0));(Ext.cmd.derive('Ext.panel.Tool',Ext.Component,{config:{glyph:null},isTool:!0,baseCls:'x-tool',disabledCls:'x-tool-disabled',toolPressedCls:'x-tool-pressed',toolOverCls:'x-tool-over',childEls:['toolEl'],renderTpl:['<div id="{id}-toolEl" data-ref="toolEl" class="{className} {childElCls}" role="presentation"<tpl if="glyph"><tpl if="glyphFontFamily"> style="font-family:{glyphFontFamily};"></tpl>{glyph}<tpl else>></tpl></div>'],toolOwner:null,tooltipType:'qtip',stopEvent:!0,ariaRole:'button',focusable:!0,tabIndex:0,keyMap:{scope:'this',SPACE:'onClick',ENTER:'onClick'},cacheHeight:!0,cacheWidth:!0,initComponent:function(){var a=this;a.tooltip=a.tooltip||a.qtip;Ext.Component.prototype.initComponent.call(this)},initRenderData:function(){var d=this,c=Ext.Component.prototype.initRenderData.call(this),a=d.getGlyph(),b;if(a){b=a.fontFamily;a=a.character}Ext.applyIf(c,{className:d.calculateClassName(),glyph:a,glyphFontFamily:b});return c},calculateClassName:function(){var a=this,b=a.baseCls+'-tool-el ';if(a.type){b+=a.baseCls+'-img '+a.baseCls+'-'+a.type}else if(a.iconCls){b+=a.iconCls}return b},afterRender:function(){var a=this,b;Ext.Component.prototype.afterRender.call(this);if(a.setTypeAfterRender){a.setTypeAfterRender=!1;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(b,d){var a=this,g=a.tooltip,f=a.tooltipType,h=a.id,e=a.el,c;if(g&&Ext.quickTipsActive&&Ext.isObject(g)){Ext.tip.QuickTipManager.unregister(h)}a.tooltip=b;if(d){a.tooltipType=d}if(b){if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:h},b))}else if(e){if(d&&f&&d!==f){c=a.tipAttrs[f]||'title';e.dom.removeAttribute(c)}c=a.tipAttrs[d||f]||'title';e.dom.setAttribute(c,b)}if(c!=='title'&&a.ariaRole&&a.ariaRole!=='presentation'){if(e){e.dom.setAttribute('aria-label',b)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-label']=b}}}},setType:function(f){var a=this,g=a.toolEl,e=a.updating,c=a.rendering,b,d;if(!e){b=a.calculateClassName();if(!c){a.updating=d=!0}a.setIconCls(null);a.setGlyph(null)}a.type=f;if(d){a.updateToolCls(b);a.updating=!1}else if(c){a.setTypeAfterRender=!0}return a},setIconCls:function(e){var a=this,f=a.toolEl,d=a.updating,b,c;if(!d){b=a.calculateClassName();a.updating=c=!0;a.setType(null);a.setGlyph(null)}a.iconCls=e;if(c){a.updateToolCls(b);a.updating=!1}return a},doDestroy:function(){var a=this;a.setTooltip(null);delete a.toolOwner;Ext.Component.prototype.doDestroy.call(this)},applyGlyph:function(a,b){if(a){if(!a.isGlyph){a=new Ext.Glyph(a)}if(a.isEqual(b)){a=undefined}}return a},updateGlyph:function(c,g){var a=this,b=a.toolEl,f=a.updating,d,e;if(!f){d=a.calculateClassName();a.updating=e=!0;a.setType(null);a.setIconCls(null)}if(b){if(c){b.dom.innerHTML=c.character;b.setStyle(c.getStyle())}else {b.dom.innerHTML=''}}if(e){a.updateToolCls(d);a.updating=!1}},privates:{onClick:function(b,c){var a=this;if(a.disabled){return !1}if(b.type!=='keydown'){a.el.removeCls(a.toolPressedCls+' '+a.toolOverCls)}if(a.stopEvent!==!1){b.stopEvent()}if(a.handler){Ext.callback(a.handler,a.scope,[b,c,a.ownerCt,a],0,a)}else if(a.callback){Ext.callback(a.callback,a.scope,[a.toolOwner||a.ownerCt,a,b],0,a)}if(a.destroyed){return}a.fireEvent('click',a,b,a.toolOwner||a.ownerCt);return !0},onMouseDown:function(a){a.preventDefault();if(this.disabled){return !1}this.el.addCls(this.toolPressedCls)},onMouseOver:function(){if(this.disabled){return !1}this.el.addCls(this.toolOverCls)},onMouseOut:function(){this.el.removeCls(this.toolOverCls)},updateToolCls:function(b){var c=this,a=this.toolEl;if(a){a.removeCls(b);a.addCls(this.calculateClassName())}}}},0,["tool"],["component","box","tool"],{"component":!0,"box":!0,"tool":!0},["widget.tool"],0,[Ext.panel,'Tool'],0));(Ext.cmd.derive('Ext.panel.Header',Ext.panel.Bar,{isHeader:!0,defaultType:'tool',indicateDrag:!1,weight:-1,shrinkWrap:3,focusableContainer:!0,iconAlign:'left',titleAlign:'left',titlePosition:0,titleRotation:'default',autoEl:{role:'presentation'},beforeRenderConfig:{glyph:null,icon:null,iconCls:null,iconAlign:null,title:{$value:{xtype:'title',flex:1},merge:function(a,b){if(typeof a!=='object'){a={text:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:'x-header',initComponent:function(){var a=this,b=a.items,d=a.itemPosition,c=[a.headerCls];a.tools=a.tools||[];a.items=b=(b?b.slice():[]);if(d!==undefined){a._userItems=b.slice();a.items=b=[]}a.indicateDragCls=a.headerCls+'-draggable';if(a.indicateDrag){c.push(a.indicateDragCls)}a.addCls(c);a.syncNoBorderCls();Ext.Array.push(b,a.tools);a.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);a.on({dblclick:a.onDblClick,click:a.onClick,element:'el',scope:a})},addTool:function(b){var a=this;a.add(Ext.ComponentManager.create(b,'tool'));a.checkFocusableTools()},afterLayout:function(){var a=this,e,b,c,d;if(a.vertical){b=a.frameTR;if(b){e=a.frameBR;c=a.frameTL;d=(a.getWidth()-b.getPadding('r')-((c)?c.getPadding('l'):a.el.getBorderWidth('l')))+'px';e.setStyle('background-position-x',d);b.setStyle('background-position-x',d)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(a,c){var b=this,e,d;a=a||'';e=Ext.isString(a);if(!Ext.isObject(a)){a={text:a.toString()}}if(c){Ext.suspendLayouts();c.setConfig(a);Ext.resumeLayouts(!0);a=c}else {if(e){a.xtype='title'}a.ui=b.ui;d=('rotation' in a);a.id=b.id+'-title';if(b.isAccordionHeader){a.ariaRole='tab';a.textElRole=null;a.focusable=!0}a=Ext.create(a);if(!d&&b.vertical&&b.titleRotation==='default'){a.rotation=1}}return a},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 a=this,b=a.itemPosition;a.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(b!==undefined){a.insert(b,a._userItems)}a.checkFocusableTools()},checkFocusableTools:function(){var a=this,d=a.tools,c,b,e;if(a.isAccordionHeader){a.focusableContainer=!1;return}for(b=0,e=d.length;b<e;b++){if(d[b].focusable){c=!0;break}}if(c){if(!a.initialConfig.hasOwnProperty('focusableContainer')||a.focusableContainer){a.ariaRole='toolbar';a.focusableContainer=!0;if(a.rendered){a.ariaEl.dom.setAttribute('role','toolbar');a.initFocusableContainer(!0)}}}else {a.ariaRole='presentation';a.focusableContainer=!1;if(a.rendered){a.ariaEl.dom.setAttribute('role','presentation');a.initFocusableContainer(!0)}}},getTools:function(){return this.tools.slice()},onAdd:function(a,c){var b=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,a,c);if(a.isTool){b.push(a);b[a.type]=a}},onAdded:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},onRemoved:function(a,c,b){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,a,c,b)},setDock:function(e){var a=this,c=a.getTitle(),b=a.getTitleRotation(),d=c.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,e);if(b==='default'){b=(a.vertical?1:0);if(b!==d){c.setRotation(b)}if(a.rendered){a.resetItemMargins()}}Ext.resumeLayouts(!0)},updateGlyph:function(a){this.getTitle().setGlyph(a)},updateIcon:function(a){this.getTitle().setIcon(a)},updateIconAlign:function(a,b){this.getTitle().setIconAlign(a)},updateIconCls:function(a){this.getTitle().setIconCls(a)},updateTitle:function(a,b){if(!b){this.insert(this.getTitlePosition(),a);this._titleInItems=!0}this.titleCmp=a},updateTitleAlign:function(a,b){this.getTitle().setTextAlign(a)},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(c,a){var b='.'+Ext.panel.Tool.prototype.baseCls;if(!a.getTarget(b)){this.fireEvent(c,this,a)}},getFramingInfoCls:function(){var a=this,c=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),b=a.ownerCt;if(!a.expanding&&b&&(b.collapsed||a.isCollapsedExpander)){c+='-'+b.collapsedCls}return c+'-'+a.dock},onClick:function(a){this.fireClickEvent('click',a)},onDblClick:function(a){this.fireClickEvent('dblclick',a)},syncBeforeAfterTitleClasses:function(l){var c=this,j=c.items,i=j.items,h=c.getTitlePosition(),k=i.length,g=j.generation,f=c.syncBeforeAfterGen,e,d,b,a;if(!l&&(f===g)){return}c.syncBeforeAfterGen=g;for(b=0;b<k;++b){a=i[b];e=a.afterTitleCls||(a.afterTitleCls=a.baseCls+'-after-title');d=a.beforeTitleCls||(a.beforeTitleCls=a.baseCls+'-before-title');if(!c.title||b<h){if(f){a.removeCls(e)}a.addCls(d)}else if(b>h){if(f){a.removeCls(d)}a.addCls(e)}}},syncNoBorderCls:function(){var a=this,b=this.ownerCt,c=a.headerCls+'-noborder';if(b?(b.border===!1&&!b.frame):a.border===!1){a.addCls(c)}else {a.removeCls(c)}}}},0,["header"],["component","box","container","header"],{"component":!0,"box":!0,"container":!0,"header":!0},["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:!0,$configPrefixed:!1,$configStrict:!1,constructor:function(a){this.initConfig(a)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(b){var c=this,d=b.state.boxPlan,a;if(d&&d.tooNarrow){a=c.handleOverflow(b);if(a){if(a.reservedSpace){c.layout.publishInnerCtSize(b,a.reservedSpace)}}}else {c.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(e){var b=this,d=b.layout.owner,c,a;if(d.hasListeners.overflowchange){c=d.query('>[hidden]');a=c.length;if(a!==b.lastHiddenCount){d.fireEvent('overflowchange',b.lastHiddenCount,a,c);b.lastHiddenCount=a}}},onRemove:Ext.emptyFn,getItem:function(a){return this.layout.owner.getComponent(a)},getOwnerType:function(b){var a;if(b.isToolbar){a='toolbar'}else if(b.isTabBar){a='tab-bar'}else if(b.isMenu){a='menu'}else if(b.isBreadcrumb){a='breadcrumb'}else {a=b.getXType()}return a},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:!1,scrollIncrement:20,wheelIncrement:10,scrollRepeatInterval:60,scrollDuration:400,scrollerCls:'x-box-scroller',beforeSuffix:'-before-scroller',afterSuffix:'-after-scroller',constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.layout.owner.on({afterrender:a.onOwnerRender,scope:a,single:!0});a.layout.owner.getOverflowEl=a.ownerGetOverflowImpl;a.scrollPosition=0;a.scrollSize=0},onOwnerRender:function(c){var a=this,b={isBoxOverflowScroller:!0,x:!1,y:!1,listeners:{scrollend:this.onScrollEnd,scope:this}};if(!Ext.getScrollbarSize().width&&!Ext.platformTags.desktop){b[c.layout.horizontal?'x':'y']=!0}else {a.wheelListener=a.layout.innerCt.on('mousewheel',a.onMouseWheel,a,{destroyable:!0})}c.setScrollable(b)},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(g){var c=this,d=c.layout,b=d.owner,e=c.getOwnerType(b),a=c.scrollerCls,f=a+' '+a+'-'+d.names[g]+' '+a+'-'+e+' '+a+'-'+e+'-'+b.ui;if(b.plain){f+=' '+a+'-plain'}return f},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(a){var b=this,f=a.state.boxPlan,e=b.layout,d=e.names,g=Math.min(b.getMaxScrollPosition(),a.innerCtScrollPos),c;if(f&&f.tooNarrow){c=a.childItems[a.childItems.length-1].props;b.scrollSize=c[d.x]+c[d.width];b.updateScrollButtons();e.innerCt[d.setScrollLeft](g)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,a)},handleOverflow:function(i){var a=this,d=a.layout.names,h=d.getWidth,f=d.parallelMargins,g,e,b,c;a.showScrollers();b=a.getBeforeScroller();c=a.getAfterScroller();g=b[h]()+c[h]()+b.getMargin(f)+c.getMargin(f);e=i.targetContext.getPaddingInfo()[d.width];return {reservedSpace:Math.max(g-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,f,e){var b=this,d=b.layout.owner,c=b.scrollerCls,a;a=d.el.getById(d.id+g);a.addClsOnOver(c+'-hover');a.addClsOnClick(c+'-pressed');a.setVisibilityMode(Ext.Element.DISPLAY);b[f]=new Ext.util.ClickRepeater(a,{interval:b.scrollRepeatInterval,handler:e,scope:b});return a},onMouseWheel:function(a){var c=Ext.Component.from(a.target),b=c.getScrollable&&c.getScrollable();if(!b||(b===this.layout.owner.getScrollable())){a.stopEvent();this.scrollBy(this.getWheelDelta(a)*this.wheelIncrement*-1,!1)}},getWheelDelta:function(a){return a.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var a=this;a.getBeforeScroller().show();a.getAfterScroller().show();a.layout.owner.addClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')},hideScrollers:function(){var a=this,b=a.getBeforeScroller(),c=a.getAfterScroller();if(b){b.hide();c.hide();a.layout.owner.removeClsWithUI(a.layout.direction==='vertical'?'vertical-scroller':'scroller')}},destroy:function(){Ext.destroyMembers(this,'beforeRepeater','afterRepeater','_beforeScroller','_afterScroller','wheelListener');this.callParent()},scrollBy:function(e,d){var b=this.layout,a=b.owner.getScrollable(),c=[0,0,d?this.getScrollAnim():!1];c[b.horizontal?0:1]=e;a.scrollBy.apply(a,c)},getScrollAnim:function(){return {duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var a=this,c=a.getBeforeScroller(),d=a.getAfterScroller(),e=a.getScrollPosition(),b;if(!c||!d){return}b=a.scrollerCls+'-disabled';c[e?'removeCls':'addCls'](b);d[e>=a.getMaxScrollPosition()?'addCls':'removeCls'](b)},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,!1)},scrollRight:function(){this.scrollBy(this.scrollIncrement,!1)},getScrollPosition:function(){var a=this.layout;return a.owner.getScrollable().getPosition()[a.horizontal?'x':'y']},getMaxScrollPosition:function(){var a=this.layout;return a.owner.getScrollable().getMaxPosition()[a.horizontal?'x':'y']},setVertical:function(){var c=this,d=c.getBeforeScroller(),e=c.getAfterScroller(),b=c.layout.names,a=c.scrollerCls;d.removeCls(a+'-'+b.beforeY);e.removeCls(a+'-'+b.afterY);d.addCls(a+'-'+b.beforeX);e.addCls(a+'-'+b.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(d,e){var b=this.layout,a=b.owner.getScrollable(),c=[0,0,e?this.getScrollAnim():!1];c[b.horizontal?0:1]=d;a.scrollTo.apply(a,c)},onScrollEnd:function(c,a,b){this.updateScrollButtons();this.fireEvent('scroll',this,this.layout.horizontal?a:b,!1)},scrollToItem:function(a,b){a=this.getItem(a);if(a!==undefined){this.layout.owner.getScrollable().ensureVisible(a.el,{animation:b})}},privates:{ownerGetOverflowImpl:function(){return this.layout.innerCt}}},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.cmd.derive('Ext.dd.DragDropManager',Ext.Base,{singleton:!0,alternateClassName:['Ext.dd.DragDropMgr','Ext.dd.DDM'],ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:!0,stopPropagation:!1,initialized:!1,locked:!1,init:function(){this.initialized=!0},POINT:0,INTERSECT:1,mode:0,notifyOccluded:!1,dragCls:'x-dd-drag-current',currentPoint:new Ext.util.Point(),_execOnAll:function(f,g){var c=this.ids,d,e,b,a;for(d in c){if(c.hasOwnProperty(d)){a=c[d];for(e in a){if(a.hasOwnProperty(e)){b=a[e];if(!this.isTypeOfDD(b)){continue}b[f].apply(b,g)}}}}},addListeners:function(){var a=this;a.init();Ext.getWin().on({unload:a._onUnload,resize:a._onResize,scope:a})},_onResize:function(a){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=!0},unlock:function(){this.locked=!1},isLocked:function(){return this.locked},locationCache:{},useCache:!0,clickPixelThresh:8,dragThreshMet:!1,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(b,f){var a=this,d=a.ids,e=b.groups,c;if(a.clearingAll){return}if(a.dragCurrent===b){a.dragCurrent=null}for(c in e){if(e.hasOwnProperty(c)){if(f){delete d[c]}else if(d[c]){delete d[c][b.id]}}}delete a.handleIds[b.id];delete a.locationCache[b.id]},regHandle:function(a,b){if(!this.handleIds[a]){this.handleIds[a]={}}this.handleIds[a][b]=b},isDragDrop:function(a){return (this.getDDById(a))?!0:!1},getRelated:function(f,e){var b=[],c,d,a;for(c in f.groups){for(d in this.ids[c]){a=this.ids[c][d];if(!this.isTypeOfDD(a)){continue}if(!e||a.isTarget){b[b.length]=a}}}return b},isLegalTarget:function(e,d){var b=this.getRelated(e,!0),a,c;for(a=0,c=b.length;a<c;++a){if(b[a].id===d.id){return !0}}return !1},isTypeOfDD:function(a){return (a&&a.__ygDragDrop)},isHandle:function(a,b){return (this.handleIds[a]&&this.handleIds[a][b])},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(c,i){var a=this,h=c.getXY(),g=i.getEl(),e={translate:!1,fn:a.handleMouseUp,capture:!1,priority:-1000},d={translate:!1,fn:a.handleMouseMove,capture:!1},b={capture:!0,destroyable:!0,scope:a},f=c.browserEvent.type;b.touchstart=a.handleMouseUp;if(f==='pointerdown'){b.pointerup=e;b.pointermove=d}else if(f==='MSPointerDown'){b.MSPointerUp=e;b.MSPointerMove=d}else if(f==='mousedown'){b.mouseup=e;b.mousemove=d}else {b.touchend=e;b.touchmove=d}a.pointerMoveListeners=Ext.getDoc().on(b);a.isMouseDown=!0;a.currentPoint.setPosition(h);if(a.dragCurrent){a.handleMouseUp(c)}a.mousedownEvent=c;a.currentTarget=c.getTarget();a.dragCurrent=i;Ext.fly(g).setCapture();a.startX=h[0];a.startY=h[1];a.offsetX=a.offsetY=0;a.deltaX=a.startX-g.offsetLeft;a.deltaY=a.startY-g.offsetTop;a.dragThreshMet=!1},startDrag:function(d,e){var b=this,c=b.dragCurrent,a;Ext.undefer(b.clickTimeout);if(Ext.quickTipsActive){Ext.tip.QuickTipManager.ddDisable()}if(c){c.b4StartDrag(d,e);c.startDrag(d,e);a=Ext.fly(c.getDragEl());if(a){a.addCls(b.dragCls);if(a.shim&&a.shim.el){a.shim.el.addCls(b.dragCls)}}}b.dragThreshMet=!0},handleMouseUp:function(b){var a=this;a.pointerMoveListeners.destroy();a.isMouseDown=!1;if(!a.dragCurrent){return}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}Ext.undefer(a.clickTimeout);if(a.dragThreshMet){a.fireEvents(b,!0)}a.stopDrag(b);if(a.dragThreshMet){a.stopEvent(b)}a.mousedownEvent=a.currentTarget=null},stopEvent:function(a){if(this.stopPropagation){a.stopPropagation()}if(this.preventDefault&&a.pointerType==='touch'){a.preventDefault()}},stopDrag:function(d){var a=this,c=a.dragCurrent,b;if(Ext.quickTipsActive){Ext.tip.QuickTipManager.ddEnable()}if(c){if(a.dragThreshMet){b=Ext.fly(c.getDragEl());if(b){b.removeCls(a.dragCls);if(b.shim&&b.shim.el){b.shim.el.removeCls(a.dragCls)}}c.b4EndDrag(d);c.endDrag(d)}a.dragCurrent.onMouseUp(d)}a.dragCurrent=null;a.dragOvers={}},handleMouseMove:function(b){var a=this,c=a.dragCurrent,d=b.getXY(),g=d[0],h=d[1],e,f;a.offsetX=g-a.startX;a.offsetY=h-a.startY;a.currentPoint.setPosition(d);if(!c){return !0}if(!a.dragThreshMet){e=Math.abs(a.offsetX);f=Math.abs(a.offsetY);if(e>a.clickPixelThresh||f>a.clickPixelThresh){b.claimGesture();a.startDrag(a.startX,a.startY)}}if(a.dragThreshMet){c.b4Drag(b);c.onDrag(b);if(!c.moveOnly){a.fireEvents(b,!1)}}a.stopEvent(b);return !0},fireEvents:function(e,p){var d=this,t=Ext.supports.Touch,c=d.dragCurrent,q=d.currentPoint,j=[],s=[],g=[],i=[],h=[],k=[],o,b,l,r,a,f,n,m;if(!c||c.isLocked()){return}m=!(c.deltaX<0||c.deltaY<0);if(t||(!d.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&m)){o=c.getDragEl();if(m){o.style.visibility='hidden'}e=e.chain({target:d.elementFromPoint(e.clientX,e.clientY)||document.documentElement});if(m){o.style.visibility='visible'}}for(a in d.dragOvers){b=d.dragOvers[a];delete d.dragOvers[a];if(!d.isTypeOfDD(b)||b.destroyed){continue}if(p){g.push(b)}else {if(d.notifyOccluded){if(!this.isOverTarget(q,b,d.mode)){g.push(b)}}else {if(!e.within(b.getEl())){g.push(b)}}}s[a]=!0}for(n in c.groups){if("string"!==typeof n){continue}for(a in d.ids[n]){b=d.ids[n][a];if(d.isTypeOfDD(b)&&(l=b.getEl())&&(b.isTarget)&&(!b.isLocked())&&(Ext.fly(l).isVisible(!0))&&((b!==c)||(c.ignoreSelf===!1))){if(d.notifyOccluded){if((b.zIndex=d.getZIndex(l))!==-1){r=!0}j.push(b)}else {if(e.within(l)){j.push(b);break}}}}}if(r){Ext.Array.sort(j,d.byZIndex)}for(a=0,f=j.length;a<f;a++){b=j[a];if(d.isOverTarget(q,b,d.mode)){if(p){h.push(b)}else {if(!s[b.id]){k.push(b)}else {i.push(b)}d.dragOvers[b.id]=b}if(!d.notifyOccluded){break}}}if(d.mode){if(k.length){c.onDragEnter(e,k)}if(i.length){c.b4DragOver(e,i);c.onDragOver(e,i)}if(h.length){c.b4DragDrop(e,h);c.onDragDrop(e,h)}if(g.length){c.b4DragOut(e,g);c.onDragOut(e,g)}}else {for(a=0,f=k.length;a<f;++a){c.onDragEnter(e,k[a].id)}for(a=0,f=i.length;a<f;++a){c.b4DragOver(e,i[a].id);c.onDragOver(e,i[a].id)}for(a=0,f=h.length;a<f;++a){c.b4DragDrop(e,h[a].id);c.onDragDrop(e,h[a].id)}for(a=0,f=g.length;a<f;++a){c.b4DragOut(e,g[a].id);c.onDragOut(e,g[a].id)}}if(p&&!h.length){c.onInvalidDrop(e)}},elementFromPoint:function(a,b){if(Ext.rootInheritedState.rtl){a=Ext.Element.getViewportWidth()-a}return Ext.Element.fromPoint(a,b,!0)},getZIndex:function(a){var d=document.body,c,b=-1;a=Ext.getDom(a);while(a!==d){if(!isNaN(c=Number(Ext.fly(a).getStyle('zIndex')))){b=c}a=a.parentNode}return b},byZIndex:function(a,b){return a.zIndex<b.zIndex},getBestMatch:function(d){var a=null,e=d.length,c,b;if(e===1){a=d[0]}else {for(c=0;c<e;++c){b=d[c];if(b.cursorIsOver){a=b;break}else {if(!a||a.overlap.getArea()<b.overlap.getArea()){a=b}}}}return a},refreshCache:function(e){var b,d,a,c;for(b in e){if("string"!==typeof b){continue}for(d in this.ids[b]){a=this.ids[b][d];if(this.isTypeOfDD(a)){c=this.getLocation(a);if(c){this.locationCache[a.id]=c}else {delete this.locationCache[a.id]}}}}},verifyEl:function(a){return Ext.getBody().contains(a)},getLocation:function(a){if(!this.isTypeOfDD(a)){return null}if(a.getRegion){return a.getRegion()}var c=a.getEl(),b,d,f,e,g,k,j,h,i;try{b=Ext.fly(c).getXY()}catch(l){}if(!b){return null}d=b[0];f=d+c.offsetWidth;e=b[1];g=e+c.offsetHeight;k=e-a.padding[0];j=f+a.padding[1];h=g+a.padding[2];i=d-a.padding[3];return new Ext.util.Region(k,j,h,i)},isOverTarget:function(g,a,i){var c=this.locationCache[a.id],b,d,f,h,e;if(!c||!this.useCache){c=this.getLocation(a);this.locationCache[a.id]=c}if(!c){return !1}a.cursorIsOver=c.contains(g);b=this.dragCurrent;if(!b||!b.getTargetCoord||(!i&&!b.constrainX&&!b.constrainY)){return a.cursorIsOver}a.overlap=null;d=b.getTargetCoord(g.x,g.y);f=b.getDragEl();h=new Ext.util.Region(d.y,d.x+f.offsetWidth,d.y+f.offsetHeight,d.x);e=h.intersect(c);if(e){a.overlap=e;return (i)?!0:a.cursorIsOver}else {return !1}},_onUnload:function(b,a){Ext.dd.DragDropManager.unregAll()},unregAll:function(){var a=this,b=a.elementCache,c;if(a.dragCurrent){a.stopDrag();a.dragCurrent=null}a.clearingAll=!0;a._execOnAll("unreg",[]);delete a.clearingAll;for(c in b){delete b[c]}a.elementCache={};a.ids={};a.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(a,b){if(a.swapNode){a.swapNode(b)}else {var c=b.parentNode,d=b.nextSibling;if(d===a){c.insertBefore(a,b)}else if(b===a.nextSibling){c.insertBefore(b,a)}else {a.parentNode.replaceChild(b,a);c.insertBefore(a,d)}}},getScroll:function(){var e=window.document,a=e.documentElement,b=e.body,d=0,c=0;if(a&&(a.scrollTop||a.scrollLeft)){d=a.scrollTop;c=a.scrollLeft}else if(b){d=b.scrollTop;c=b.scrollLeft}return {top:d,left:c}},getStyle:function(b,a){return Ext.fly(b).getStyle(a)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(c,a){var b=Ext.fly(a).getXY();Ext.fly(c).setXY(b)},numericSort:function(a,b){return (a-b)},handleWasClicked:function(b,c){if(this.isHandle(c,b.id)){return !0}else {var a=b.parentNode;while(a){if(this.isHandle(c,a.id)){return !0}else {a=a.parentNode}}}return !1}},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}">','</div>','</tpl>'],isSplitter:!0,baseCls:'x-splitter',collapsedClsInternal:'x-splitter-collapsed',canResize:!0,collapsible:null,collapseOnDblClick:!0,defaultSplitMin:40,defaultSplitMax:1000,collapseTarget:'next',horizontal:!1,vertical:!1,touchAction:undefined,size:5,tracker:null,ariaRole:'separator',focusable:!0,tabIndex:0,applyTouchAction:function(a,b){if(a===undefined){a=this.vertical?{panX:!1}:{panY:!1}}return Ext.Component.prototype.applyTouchAction.call(this,a,b)},getTrackerConfig:function(){return Ext.apply({xclass:'Ext.resizer.SplitterTracker',el:this.el,splitter:this},this.tracker)},beforeRender:function(){var a=this,c=a.getCollapseTarget(),b=a.collapsible,d;Ext.Component.prototype.beforeRender.call(this);if(c.collapsed){a.addCls(a.collapsedClsInternal)}if(!a.canResize){a.addCls(a.baseCls+'-noresize')}Ext.applyIf(a.renderData,{collapseDir:a.getCollapseDirection(),collapsible:(b!==null)?b:c.collapsible});a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-orientation']=a.orientation;a.protoEl.unselectable()},onRender:function(){var a=this,b,c;Ext.Component.prototype.onRender.apply(this,arguments);if(a.performCollapse!==!1){if(a.renderData.collapsible){a.mon(a.collapseEl,'click',a.toggleTargetCmp,a)}if(a.collapseOnDblClick){a.mon(a.el,'dblclick',a.toggleTargetCmp,a)}}b=a.getCollapseTarget();if(b&&b.isPanel){b.on({collapse:a.onTargetCollapse,expand:a.onTargetExpand,beforeexpand:a.onBeforeTargetExpand,beforecollapse:a.onBeforeTargetCollapse,scope:a})}if(a.canResize){a.tracker=Ext.create(a.getTrackerConfig());a.relayEvents(a.tracker,['beforedragstart','dragstart','dragend'])}c=a.collapseEl;if(c){c.lastCollapseDirCls=a.collapseDirProps[a.collapseDirection].cls}},getCollapseDirection:function(){var b=this,a=b.collapseDirection,c,f,d,e;if(!a){c=b.collapseTarget;if(c.isComponent){a=c.collapseDirection}if(!a){e=b.ownerCt.layout.type;if(c.isComponent){d=b.ownerCt.items;f=Number(d.indexOf(c)===d.indexOf(b)-1)<<1|Number(e==='hbox')}else {f=Number(b.collapseTarget==='prev')<<1|Number(e==='hbox')}a=['bottom','right','top','left'][f]}b.collapseDirection=a}b.setOrientation((a==='top'||a==='bottom')?'horizontal':'vertical');return a},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,a=c.collapseEl,d=c.collapseDirProps[c.collapseDirection],b;if(a){b=a.lastCollapseDirCls;if(b){a.removeCls(b)}a.addCls(a.lastCollapseDirCls=d.cls)}},applyOrientation:function(){var a=this,e=a.orientation,b=a.orientationProps[e],f=a.size,d=b.fixedAxis,c=b.stretchedAxis,g=a.baseCls+'-';a[e]=!0;a[b.opposite]=!1;if(!a.hasOwnProperty(d)||a[d]==='100%'){a[d]=f}if(!a.hasOwnProperty(c)||a[c]===f){a[c]='100%'}a.removeCls(g+b.opposite);a.addCls(g+e)},setOrientation:function(b){var a=this;if(a.orientation!==b){a.orientation=b;a.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(d,e){var a=this.getCollapseTarget(),c=a.placeholder,b;if(Ext.isFunction(a.expand)&&Ext.isFunction(a.collapse)){if(c&&!c.hidden){b=!0}else {b=!a.hidden}if(b){if(a.collapsed||a.floatedFromCollapse){a.expand()}else if(a.collapseDirection){a.collapse()}else {a.collapse(this.renderData.collapseDir)}}}},setSize:function(){var a=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&a.el){a.el.repaint()}},doDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.doDestroy.call(this)}},0,["splitter"],["component","box","splitter"],{"component":!0,"box":!0,"splitter":!0},["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:!1,enableSplitters:!0,overflowHandler:{$value:null,merge:function(a,b){if(typeof a==='string'){a={type:a}}return Ext.merge(b?Ext.Object.chain(b):{},a)}},padding:0,pack:'start',stretchMaxPartner:undefined,vertical:!1,alignRoundingMethod:'round'},itemCls:'x-box-item',targetCls:'x-box-layout-ct',targetElCls:'x-box-target',innerCls:'x-box-inner',manageMargins:!0,createsInnerCt:!0,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:!0,definitions:'var dh=Ext.DomHelper;'}],constructor:function(c){var a=this,b;Ext.layout.container.Container.prototype.constructor.call(this,c);a.setVertical(a.vertical);a.flexSortFn=a.flexSort.bind(a);b=typeof a.padding;if(b==='string'||b==='number'){a.padding=Ext.util.Format.parseBox(a.padding);a.padding.height=a.padding.top+a.padding.bottom;a.padding.width=a.padding.left+a.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(h,b){var a=this,f=a.sizePolicy,g=a.align,p=h.flex,c=g,o=a.names,e=o.height,m=o.width,q=h[m],n=h[e],d=a._percentageRe,i=d.test(q),l=(g==='stretch'),j=(g==='stretchmax'),k=a.constrainAlign;if(!b&&(l||p||i||(k&&!j))){b=a.owner.getSizeModel()}if(l){if(!d.test(n)&&b[e].shrinkWrap){c='stretchmax'}}else if(!j){if(d.test(n)){c='stretch'}else if(k&&!b[e].shrinkWrap){c='stretchmax'}else {c=''}}if(p||i){if(!b[m].shrinkWrap){f=f.flex}}return f[c]},flexSort:function(o,p){var k=this.names.maxWidth,l=this.names.minWidth,j=Infinity,c=o.target,d=p.target,m=c.flex,n=d.flex,a=0,g,i,f,h,e,b;f=c[k]||j;h=d[k]||j;g=c[l]||0;i=d[l]||0;e=isFinite(g)||isFinite(i);b=isFinite(f)||isFinite(h);if(e||b){if(b){a=f-h}if(a===0&&e){a=i-g}if(a===0){if(b){a=n-m}else {a=m-n}}}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},roundFlex:function(a){return Math.floor(a)},beginCollapse:function(a){var b=this;if(b.direction==='vertical'&&a.collapsedVertical()){a.collapseMemento.capture(['flex']);delete a.flex}else if(b.direction==='horizontal'&&a.collapsedHorizontal()){a.collapseMemento.capture(['flex']);delete a.flex}},beginExpand:function(a){a.collapseMemento.restore(['flex'])},beginLayout:function(a){var c=this,d=c.owner,b=d.stretchMaxPartner,f=c.innerCt.dom.style,g=c.names,e=c.overflowHandler;a.boxNames=g;if(e){e.beginLayout(a)}if(typeof b==='string'){b=Ext.getCmp(b)||d.query(b)[0]}a.stretchMaxPartner=b&&a.context.getCmp(b);Ext.layout.container.Container.prototype.beginLayout.call(this,a);a.innerCtContext=a.getEl('innerCt',c);a.targetElContext=a.getEl('targetEl',c);a.ownerScrollable=d.getScrollable();f.width=f.height=''},beginLayoutCycle:function(a,k){var c=this,i=a.state,e=a.ownerScrollable,b=c.align,f=a.boxNames,d=c.pack,l=c._centerRe,j=c.overflowHandler,m=a.state.canScroll,h,g;if(j){j.beginLayoutCycle(a,k)}Ext.layout.container.Container.prototype.beginLayoutCycle.call(this,a,k);a.parallelSizeModel=h=a[f.widthModel];a.perpendicularSizeModel=g=a[f.heightModel];a.boxOptions={align:b={stretch:b==='stretch',stretchmax:b==='stretchmax',center:l.test(b),bottom:c._endRe.test(b)},pack:d={center:l.test(d),end:d==='end'}};if(e&&!e.isBoxOverflowScroller){if(!m){i.canScroll={parallel:!h.shrinkWrap&&e[f.getX](),perpendicular:!g.shrinkWrap&&e[f.getY]()}}if(!i.actualScroll){i.actualScroll={parallel:!1,perpendicular:!1}}}if(b.stretch&&g.shrinkWrap){b.stretchmax=!0;b.stretch=!1}b.nostretch=!(b.stretch||b.stretchmax);if(h.shrinkWrap){d.center=d.end=!1}c.cacheFlexes(a);c.targetEl.setWidth(20000)},cacheFlexes:function(a){var u=this,d=a.boxNames,x=d.widthModel,w=d.heightModel,z=a.boxOptions.align.nostretch,s=0,r=a.childItems,v=r.length,h=[],t=0,g=0,o=0,p=d.minWidth,y=d.minHeight,q=u._percentageRe,n=0,m=0,b,c,l,f,i,j,k,e;while(v--){c=r[v];b=c.target;j=c[x];if(j.calculated){c.flex=l=b.flex;if(l){s+=l;h.push(c);t+=b[p]||0}else if((f=q.exec(b[d.width]))){c.percentageParallel=parseFloat(f[1])/100;++n}}if(j.configured){k=b[d.width]}else {k=b[p]||0}o+=k;i=c[w];if(z&&i.calculated){f=q.exec(b[d.height]);c.percentagePerpendicular=parseFloat(f[1])/100;++m}if(i.configured){e=b[d.height]}else {e=b[y]||0}if(e>g){g=e}}a.flexedItems=h;a.flexedMinWidth=t;a.smallestWidth=o;a.smallestHeight=g;a.totalFlex=s;a.percentageWidths=n;a.percentageHeights=m;Ext.Array.sort(h,u.flexSortFn)},calculate:function(b){var c=this,f=b.boxNames,a=b.state,h=a.actualScroll,g=a.needsScroll,e=a.canScroll,d=a.boxPlan||(a.boxPlan={}),i=c.overflowHandler;d.targetSize=c.getContainerSize(b);if(e&&!g){a.needsScroll=g={parallel:e.parallel&&d.targetSize[f.width]<b.smallestWidth,perpendicular:e.perpendicular&&d.targetSize[f.height]<b.smallestHeight}}if(!a.parallelDone){a.parallelDone=c.calculateParallel(b,f,d)}if(!a.perpendicularDone){a.perpendicularDone=c.calculatePerpendicular(b,f,d)}if(a.parallelDone&&a.perpendicularDone){if(e&&!a.scrollPass){if(g.parallel!==h.parallel||g.perpendicular!==h.perpendicular){b.invalidate({state:{scrollPass:!0,canScroll:e,needsScroll:h}});c.done=!1;return}}c.publishInnerCtSize(b);if(c.done&&b.boxOptions.align.stretchmax&&!a.stretchMaxDone){c.calculateStretchMax(b,f,d);a.stretchMaxDone=!0}if(i){i.calculate(b)}}else {c.done=!1}},calculateParallel:function(c,d,p){var H=this,s=c.parallelSizeModel.shrinkWrap,m=d.width,o=c.childItems,A=d.beforeX,C=d.afterX,z=d.setWidth,q=o.length,B=c.flexedItems,I=B.length,G=c.boxOptions.pack,F=H.padding,D=p.targetSize,x=D[m],v=c.state,n=v.needsScroll,E=v.canScroll,u=0,e=F[A],h=e+F[C],y=Ext.getScrollbarSize(),K=y[d.width],J=y[d.height],b,k,f,t,a,w,l,g,i,r,j;if(!s&&!D[d.gotWidth]){return !1}for(b=0;b<q;++b){a=o[b];k=a.marginInfo||a.getMarginInfo();u+=k[m];if(!a[d.widthModel].calculated){i=a.getProp(m);h+=i;if(isNaN(h)){return !1}}}h+=u;if(c.percentageWidths){r=x-u;if(isNaN(r)){return !1}for(b=0;b<q;++b){a=o[b];if(a.percentageParallel){i=Math.ceil(r*a.percentageParallel);i=a[z](i);h+=i}}}if(s){j=0;p.tooNarrow=!1}else {j=x-h;if(n&&n.perpendicular){j-=J}p.tooNarrow=j<c.flexedMinWidth;if(p.tooNarrow&&E&&E.parallel){v.actualScroll.parallel=!0}}g=h;f=j;t=c.totalFlex;for(b=0;b<I;b++){a=B[b];w=a.flex;l=H.roundFlex((w/t)*f);l=a[z](l);g+=l;f=Math.max(0,f-l);t-=w}if(G.center){e+=f/2;if(e<0){e=0}}else if(G.end){e+=f}for(b=0;b<q;++b){a=o[b];k=a.marginInfo;e+=k[A];a.setProp(d.x,e);e+=k[C]+a.props[m]}g+=c.targetContext.getPaddingInfo()[m];c.state.contentWidth=g;if(n&&n.perpendicular){if(s){g+=K}c[d.hasOverflowY]=!0;c.target.componentLayout[d.setWidthInDom]=!0;c[d.invalidateScrollY]=Ext.isIE8}c[d.setContentWidth](g);return !0},calculatePerpendicular:function(c,d,C){var l=this,A=c.state,H=A.needsScroll,I=A.canScroll,h=c.perpendicularSizeModel.shrinkWrap,w=C.targetSize,v=c.childItems,F=v.length,o=Math.max,e=d.height,u=d.setHeight,G=d.beforeY,N=d.y,K=l.padding,D=K[G],j=w[e]-D-K[d.afterY],r=c.boxOptions.align,x=r.stretch,O=r.stretchmax,z=r.center,y=r.bottom,J=l.constrainAlign,b=0,E=0,L=l.onBeforeConstrainInvalidateChild,M=l.onAfterConstrainInvalidateChild,q=Ext.getScrollbarSize().height,n,k,g,i,B,f,a,p,t,s,m;if(!h&&!w[d.gotHeight]){return !1}if(x||((z||y)&&!h)){if(isNaN(j)){return !1}}if(H&&H.parallel){if(h){s=!0}else {j-=q;C.targetSize[e]-=q}}if(x){f=j;b=o(f,c.smallestHeight)}else {for(k=0;k<F;k++){a=v[k];i=(a.marginInfo||a.getMarginInfo())[e];if(!(m=a.percentagePerpendicular)){g=a.getProp(e)}else {++E;if(h){continue}else {g=m*j-i;g=a[u](g)}}if(!h&&J&&a[d.heightModel].shrinkWrap&&g>j){a.invalidate({before:L,after:M,layout:l,childHeight:j,names:d});c.state.parallelDone=!1}if(isNaN(b=o(b,g+i,a.target[d.minHeight]||0))){return !1}}}if(s){b+=q;c[d.hasOverflowX]=!0;c.target.componentLayout[d.setHeightInDom]=!0;c[d.invalidateScrollX]=Ext.isIE8}p=c.stretchMaxPartner;if(p){c.setProp('maxChildHeight',b);t=p.childItems;if(t&&t.length){b=o(b,p.getProp('maxChildHeight'));if(isNaN(b)){return !1}}}c[d.setContentHeight](b+l.padding[e]+c.targetContext.getPaddingInfo()[e]);if(s){b-=q}if(b>w[e]&&I&&I.perpendicular){A.actualScroll.perpendicular=!0}C.maxSize=b;if(O){f=b}else if(z||y||E){if(J){f=h?b:j}else {f=h?b:o(j,b)}f-=c.innerCtContext.getBorderInfo()[e]}for(k=0;k<F;k++){a=v[k];i=a.marginInfo||a.getMarginInfo();n=D+i[G];if(x){a[u](f-i[e])}else {m=a.percentagePerpendicular;if(h&&m){i=a.marginInfo||a.getMarginInfo();g=m*f-i[e];g=a[u](g)}if(z){B=f-a.props[e];if(B>0){n=D+Math[l.alignRoundingMethod](B/2)}}else if(y){n=o(0,f-n-a.props[e])}}a.setProp(N,n)}return !0},onBeforeConstrainInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(a,c){var b=c.names;a.setProp(b.beforeY,0);if(a[b.heightModel].calculated){a[b.setHeight](c.childHeight)}},calculateStretchMax:function(k,c,o){var f=this,h=c.height,l=c.width,g=k.childItems,n=g.length,m=o.maxSize,i=f.onBeforeStretchMaxInvalidateChild,j=f.onAfterStretchMaxInvalidateChild,a,b,d,e;for(d=0;d<n;++d){a=g[d];b=a.props;e=m-a.getMarginInfo()[h];if(e!==b[h]||a[c.heightModel].constrained){a.invalidate({before:i,after:j,layout:f,childWidth:b[l],childHeight:e,childX:b.x,childY:b.y,names:c})}}},onBeforeStretchMaxInvalidateChild:function(b,c){var a=c.names.heightModel;if(!b[a].constrainedMax){b[a]=Ext.layout.SizeModel.calculated}},onAfterStretchMaxInvalidateChild:function(a,b){var c=b.names,d=b.childHeight,e=b.childWidth;a.setProp('x',b.childX);a.setProp('y',b.childY);if(a[c.heightModel].calculated){a[c.setHeight](d)}if(a[c.widthModel].calculated){a[c.setWidth](e)}},completeLayout:function(g){var j=this,b=g.invalidateScrollX,c=g.invalidateScrollY,i=j.overflowHandler,h,f,d,e,a;if(i){i.completeLayout(g)}if(b||c){f=j.getTarget();h=f.dom;a=h.style;if(b){d=f.getStyle('overflowX');if(d==='auto'){d=a.overflowX;a.overflowX='scroll'}else {b=!1}}if(c){e=f.getStyle('overflowY');if(e==='auto'){e=a.overflowY;a.overflowY='scroll'}else {c=!1}}if(b||c){h.scrollWidth;if(b){a.overflowX=d}if(c){a.overflowY=e}}}},finishedLayout:function(b){var a=this.overflowHandler;if(a){a.finishedLayout(b)}Ext.layout.container.Container.prototype.finishedLayout.call(this,b)},getLayoutItems:function(){var h=Ext.layout.container.Container.prototype.getLayoutItems.call(this),i=h.length,e,c,g,f,b,d,a;for(g=0;g<i;++g){if((f=h[g]).isSplitter){continue}a=f.splitter;if(f.hidden){if(a){if(!a.hidden){a.hidden=!0;if(a.el){a.el.hide()}}}continue}if(a){d=a.collapseTarget==='next'}else {d=!1}c=null;if(e&&b){if(b.hidden){b.hidden=!1;if(b.el){b.el.show()}}if(d){c=!0}}else if(d){c=!e}if(c!==null&&a.hidden!==c){a.hidden=c;if(a.el){a.el.setVisible(!c)}}b=!d&&a;e=f}if(e&&b&&!b.hidden){b.hidden=!0;if(b.el){b.el.hide()}}return h},insertSplitter:function(c,e,d,a){var b={xtype:'splitter',id:c.id+'-splitter',hidden:d,splitterFor:c,synthetic:!0},f=e+((a.collapseTarget==='prev')?1:0);b[this.names.height]='100%';if(a){Ext.apply(b,a)}c.splitter=this.owner.add(f,b)},publishInnerCtSize:function(a,f){f=f||0;var h=this,g=a.state,d=a.boxNames,m=d.height,j=d.width,k=a.boxOptions.align,o=h.padding,e=g.boxPlan,n=e.targetSize,p=e.maxSize,l=g.needsScroll,i=a.innerCtContext,c,b;if(a.parallelSizeModel.shrinkWrap||(e.tooNarrow&&g.canScroll)){c=g.contentWidth-a.targetContext.getPaddingInfo()[j]}else {c=n[j];if(l&&l.perpendicular){c-=Ext.getScrollbarSize()[j]}}c-=f;h.owner.tooNarrow=e.tooNarrow;if(k.stretch){b=p}else {b=e.maxSize+o[d.beforeY]+o[d.afterY]+i.getBorderInfo()[m];if(!a.perpendicularSizeModel.shrinkWrap&&(k.center||k.bottom)){b=Math.max(n[m],b)}}i[d.setWidth](c);i[d.setHeight](b);a.targetElContext.setWidth(a.innerCtContext.props.width-(h.vertical?0:(f||0)));if(isNaN(c+b)){h.done=!1}},onAdd:function(b,c){var d=this,a=d.enableSplitters&&!b.isButton&&b.split;Ext.layout.container.Container.prototype.onAdd.call(this,b,c);if(a){if(a===!0){a={collapseTarget:'next'}}else if(Ext.isString(a)){a={collapseTarget:a==='before'?'next':'prev'}}else {a=Ext.apply({collapseTarget:a.side==='before'?'next':'prev'},a)}d.insertSplitter(b,c,!!b.hidden,a)}},onRemove:function(a,g){var c=this,h=c.names,e=c.owner,d=a.splitter,f=c.overflowHandler,b;Ext.layout.container.Container.prototype.onRemove.call(this,a,g);if(d&&e.contains(d)){e.doRemove(d,!0);a.splitter=null}if(f){f.onRemove(a)}if(a.layoutMarginCap===c.id){delete a.layoutMarginCap}if(!e.destroying&&!g&&a.rendered){b=a.getEl();if(b){b.setStyle(h.beforeY,'');b.setStyle(h.beforeX,'');b.setStyle('margin','')}}},applyOverflowHandler:function(a,b){var c;if(typeof a==='string'){a={type:a}}c=a.type;if(b&&b.type===a.type){delete a.type;b.setConfig(a);return b}a.layout=this;return Ext.Factory.boxOverflow(a)},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(c){var a=this,b=a.overflowHandler,d=a.owner,e=a._props;Ext.apply(a,c?e.vbox:e.hbox);if(b&&d&&d.rendered){b.setVertical(c)}},_props:{'hbox':{direction:'horizontal',oppositeDirection:'vertical',horizontal:!0,vertical:!1,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:!1,vertical:!0,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.cmd.derive('Ext.layout.container.HBox',Ext.layout.container.Box,{alternateClassName:'Ext.layout.HBoxLayout',type:'hbox',vertical:!1},0,0,0,0,["layout.hbox"],0,[Ext.layout.container,'HBox',Ext.layout,'HBoxLayout'],0));(Ext.cmd.derive('Ext.layout.container.VBox',Ext.layout.container.Box,{alternateClassName:'Ext.layout.VBoxLayout',type:'vbox',vertical:!0},0,0,0,0,["layout.vbox"],0,[Ext.layout.container,'VBox',Ext.layout,'VBoxLayout'],0));(Ext.cmd.derive('Ext.toolbar.Toolbar',Ext.container.Container,{alternateClassName:'Ext.Toolbar',isToolbar:!0,baseCls:'x-toolbar',ariaRole:'toolbar',focusableContainer:!0,defaultType:'button',layout:undefined,vertical:undefined,enableOverflow:!1,overflowHandler:null,defaultButtonUI:'default-toolbar',defaultFieldUI:'default',defaultFooterButtonUI:'default',defaultFooterFieldUI:'default',trackMenus:!0,itemCls:'x-toolbar-item',statics:{shortcuts:{'-':'tbseparator',' ':'tbspacer'},shortcutsHV:{0:{'->':{xtype:'tbfill',height:0}},1:{'->':{xtype:'tbfill',width:0}}}},initComponent:function(){var a=this,b=a.layout,c=a.vertical;if(c===undefined){a.vertical=c=a.dock==='right'||a.dock==='left'}a.layout=b=Ext.applyIf(Ext.isString(b)?{type:b}:b||{},{type:c?'vbox':'hbox',align:c?'stretchmax':'middle'});if(a.overflowHandler){b.overflowHandler=a.overflowHandler}else if(a.enableOverflow){b.overflowHandler='menu'}if(c){a.addClsWithUI('vertical')}if(a.ui==='footer'){a.ignoreBorderManagement=!0}Ext.container.Container.prototype.initComponent.call(this)},afterFirstLayout:function(d,c){var a=this,b=a.layout.getRenderTarget().dom;Ext.container.Container.prototype.afterFirstLayout.call(this,d,c);if(a.trackMenus){a.addPlugin({ptype:'mouseenter',element:b,delegate:function(a){return a.parentNode===b},handler:a.onItemOver,scope:a})}},getRefItems:function(d){var c=this,b=Ext.container.Container.prototype.getRefItems.apply(this,arguments),e=c.layout,a;if(d&&(c.enableOverflow||(c.overflowHandler==='menu'))){a=e.overflowHandler;if(a&&a.menu){b=b.concat(a.menu.getRefItems(d))}}return b},lookupComponent:function(a){var d=arguments,b,c;if(typeof a==='string'&&a[0]!=='@'){c=Ext.toolbar.Toolbar;b=c.shortcutsHV[this.vertical?1:0][a]||c.shortcuts[a];if(typeof b==='string'){a={xtype:b}}else if(b){a=Ext.apply({},b)}else {a={xtype:'tbtext',text:a}}this.applyDefaults(a);d=[a]}return Ext.container.Container.prototype.lookupComponent.apply(this,d)},onBeforeAdd:function(a){var b=this,d=b.ui==='footer',c=d?b.defaultFooterButtonUI:b.defaultButtonUI;if(a.isSegmentedButton){if(a.getDefaultUI()==='default'&&!a.config.hasOwnProperty('defaultUI')){a.setDefaultUI(c)}}else if(a.ui==='default'&&!a.hasOwnProperty('ui')){if(a.isButton){a.ui=c}else if(a.isFormField){a.ui=d?b.defaultFooterFieldUI:b.defaultFieldUI}}if(a instanceof Ext.toolbar.Separator){a.setUI(b.vertical?'vertical':'horizontal')}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(b){var a=this;if(b.needArrowKeys&&a.focusableContainer&&!a.hasOwnProperty('focusableContainer')){a.focusableContainer=!1;a.ariaRole='group'}Ext.container.Container.prototype.onAdd.apply(this,arguments);a.trackMenu(b)},onRemove:function(a){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(a,!0)},privates:{applyDefaults:function(a){if(!Ext.isString(a)){a=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return a},trackMenu:function(b,c){var a=this;if(b.menu){b[c?'un':'on']({menushow:a.onButtonMenuShow,menuhide:a.onButtonMenuHide,scope:a})}},getChildItemsToDisable:function(){return this.items.getRange()},onItemOver:function(d,c){var a=Ext.Component.from(c),b=this.activeMenuBtn;if(b&&b!==a&&a.showMenu&&a.menu){a.focus();a.showMenu(d)}},onButtonMenuShow:function(a){this.activeMenuBtn=a},onButtonMenuHide:function(a){this.activeMenuBtn=null}}},0,["toolbar"],["component","box","container","toolbar"],{"component":!0,"box":!0,"container":!0,"toolbar":!0},["widget.toolbar"],0,[Ext.toolbar,'Toolbar',Ext,'Toolbar'],0));(Ext.cmd.derive('Ext.dd.DragDrop',Ext.Base,{constructor:function(a,c,b){if(a){this.init(a,c,b)}},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:!1,lock:function(){this.locked=!0},moveOnly:!1,unlock:function(){this.locked=!1},isTarget:!0,padding:null,_domRef:null,__ygDragDrop:!0,constrainX:!1,constrainY:!1,minX:0,maxX:0,minY:0,maxY:0,maintainOffset:!1,xTicks:null,yTicks:null,primaryButtonOnly:!0,available:!1,hasOuterHandles:!1,triggerEvent:'mousedown',b4StartDrag:function(a,b){},startDrag:function(a,b){},b4Drag:function(a){},onDrag:function(a){},onDragEnter:function(b,a){},b4DragOver:function(a){},onDragOver:function(b,a){},b4DragOut:function(a){},onDragOut:function(b,a){},b4DragDrop:function(a){},onDragDrop:function(b,a){},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(j,a,k){if(Ext.isNumber(a)){a={left:a,right:a,top:a,bottom:a}}a=a||this.defaultPadding;var c=Ext.get(this.getEl()).getBox(),e=Ext.get(j),i=e.getScroll(),b,d=e.dom,h,g,f;if(d===document.body){b={x:i.left,y:i.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else {h=e.getXY();b={x:h[0],y:h[1],width:d.clientWidth,height:d.clientHeight}}g=c.y-b.y;f=c.x-b.x;this.resetConstraints();this.setXConstraint(f-(a.left||0),b.width-f-c.width-(a.right||0),this.xTickSize);this.setYConstraint(g-(a.top||0),b.height-g-c.height-(a.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(b,d,c){var a=this;a.el=a.el||Ext.get(b);a.initTarget(b,d,c);Ext.get(a.id).on(a.triggerEvent,a.handleMouseDown,a);if(Ext.supports.Touch&&a.triggerEvent==='longpress'){Ext.get(a.id).swallowEvent('contextmenu',!0)}},initTarget:function(a,b,c){this.config=c||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof a!=="string"){a=Ext.id(a)}this.id=a;this.addToGroup((b)?b:"default");this.handleElId=a;this.setDragElId(a);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!==!1);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==!1)},handleOnAvailable:function(){this.available=!0;this.resetConstraints();this.onAvailable()},setPadding:function(a,b,c,d){if(!b&&0!==b){this.padding=[a,a,a,a]}else if(!c&&0!==c){this.padding=[a,b,a,b]}else {this.padding=[a,b,c,d]}},setInitPosition:function(e,f){var d=this.getEl(),b,c,a;if(!this.DDMInstance.verifyEl(d)){return}b=e||0;c=f||0;a=Ext.fly(d).getXY();this.initPageX=a[0]-b;this.initPageY=a[1]-c;this.lastPageX=a[0];this.lastPageY=a[1];this.setStartPosition(a)},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]=!0;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=!0},unreg:function(){var a=this,b;if(a._domRef){b=Ext.fly(a.id);if(b){b.un(a.triggerEvent,a.handleMouseDown,a)}}a._domRef=null;a.DDMInstance._remove(a,a.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return (this.DDMInstance.isLocked()||this.locked)},handleMouseDown:function(b,c){var a=this;if((a.primaryButtonOnly&&b.button)||a.isLocked()){return}a.DDMInstance.refreshCache(a.groups);if(a.hasOuterHandles||a.DDMInstance.isOverTarget(b.getPoint(),a)){if(a.clickValidator(b)){a.setStartPosition();a.b4MouseDown(b);a.onMouseDown(b);a.DDMInstance.handleMouseDown(b,a);a.DDMInstance.stopEvent(b)}}},clickValidator:function(b){var a=b.getTarget();return (this.isValidHandleChild(a)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(a,this.id)))},addInvalidHandleType:function(b){var a=b.toUpperCase();this.invalidHandleTypes[a]=a},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(c){var b=this.invalidHandleClasses,d=b.length,a;for(a=0;a<d;++a){if(b[a]===c){delete b[a]}}},isValidHandleChild:function(b){var a=!0,d,c,e;try{d=b.nodeName.toUpperCase()}catch(f){d=b.nodeName}a=a&&!this.invalidHandleTypes[d];a=a&&!this.invalidHandleIds[b.id];for(c=0,e=this.invalidHandleClasses.length;a&&c<e;++c){a=!Ext.fly(b).hasCls(this.invalidHandleClasses[c])}return a},setXTicks:function(d,c){this.xTicks=[];this.xTickSize=c;var b={},a;for(a=this.initPageX;a>=this.minX;a=a-c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}for(a=this.initPageX;a<=this.maxX;a=a+c){if(!b[a]){this.xTicks[this.xTicks.length]=a;b[a]=!0}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(d,c){this.yTicks=[];this.yTickSize=c;var b={},a;for(a=this.initPageY;a>=this.minY;a=a-c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}for(a=this.initPageY;a<=this.maxY;a=a+c){if(!b[a]){this.yTicks[this.yTicks.length]=a;b[a]=!0}}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=!0},clearConstraints:function(){this.constrainX=!1;this.constrainY=!1;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(c,b,a){this.topConstraint=c;this.bottomConstraint=b;this.minY=this.initPageY-c;this.maxY=this.initPageY+b;if(a){this.setYTicks(this.initPageY,a)}this.constrainY=!0},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var a=(this.maintainOffset)?this.lastPageX-this.initPageX:0,b=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(a,b)}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(d,a){if(!a){return d}else if(a[0]>=d){return a[0]}else {var b,g,c,e,f;for(b=0,g=a.length;b<g;++b){c=b+1;if(a[c]&&a[c]>=d){e=d-a[b];f=a[c]-d;return (f>e)?a[b]:a[c]}}return a[a.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(a,c,b){if(a){this.init(a,c,b)}},scroll:!0,autoOffset:function(a,b){var c=a-this.startPageX,d=b-this.startPageY;this.setDelta(c,d)},setDelta:function(a,b){this.deltaX=a;this.deltaY=b},setDragElPos:function(a,b){var c=this.getDragEl();this.alignElWithMouse(c,a,b)},alignElWithMouse:function(d,j,k){var a=this.getTargetCoord(j,k),c=d.dom?d:Ext.fly(d,'_dd'),e=c.getSize(),i=Ext.Element,b,g,f,h;if(!this.deltaSetXY){b=this.cachedViewportSize={width:i.getDocumentWidth(),height:i.getDocumentHeight()};g=[Math.max(0,Math.min(a.x,b.width-e.width)),Math.max(0,Math.min(a.y,b.height-e.height))];c.setXY(g);f=this.getLocalX(c);h=c.getLocalY();this.deltaSetXY=[f-a.x,h-a.y]}else {b=this.cachedViewportSize;this.setLocalXY(c,Math.max(0,Math.min(a.x+this.deltaSetXY[0],b.width-e.width)),Math.max(0,Math.min(a.y+this.deltaSetXY[1],b.height-e.height)))}this.cachePosition(a.x,a.y);this.autoScroll(a.x,a.y,d.offsetHeight,d.offsetWidth);return a},cachePosition:function(b,c){if(b){this.lastPageX=b;this.lastPageY=c}else {var a=Ext.fly(this.getEl()).getXY();this.lastPageX=a[0];this.lastPageY=a[1]}},autoScroll:function(e,f,m,n){if(this.scroll){var g=Ext.Element.getViewportHeight(),h=Ext.Element.getViewportWidth(),b=this.DDMInstance.getScrollTop(),a=this.DDMInstance.getScrollLeft(),l=m+f,j=n+e,k=(g+b-f-this.deltaY),i=(h+a-e-this.deltaX),d=40,c=(document.all)?80:30;if(l>g&&k<d){window.scrollTo(a,b+c)}if(f<b&&b>0&&f-b<d){window.scrollTo(a,b-c)}if(j>h&&i<d){window.scrollTo(a+c,b)}if(e<a&&a>0&&e-a<d){window.scrollTo(a-c,b)}}},getTargetCoord:function(c,d){var a=c-this.deltaX,b=d-this.deltaY;if(this.constrainX){if(a<this.minX){a=this.minX}if(a>this.maxX){a=this.maxX}}if(this.constrainY){if(b<this.minY){b=this.minY}if(b>this.maxY){b=this.maxY}}a=this.getTick(a,this.xTicks);b=this.getTick(b,this.yTicks);return {x:a,y:b}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=(this.config.scroll!==!1)},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(a,b,c){a.setLocalXY(b,c)}},3,0,0,0,0,0,[Ext.dd,'DD'],0));(Ext.cmd.derive('Ext.dd.DDProxy',Ext.dd.DD,{statics:{dragElId:"ygddfdiv"},constructor:function(a,c,b){if(a){this.init(a,c,b);this.initFrame()}},resizeFrame:!0,centerFrame:!1,createFrame:function(){var d=this,c=document.body,a,b;if(!c||!c.firstChild){Ext.defer(function(){d.createFrame()},50);return}a=this.getDragEl();if(!a){a=document.createElement("div");a.id=this.dragElId;a.setAttribute('role','presentation');b=a.style;b.position="absolute";b.visibility="hidden";b.cursor="move";b.border="2px solid #aaa";b.zIndex=999;c.insertBefore(a,c.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){Ext.dd.DD.prototype.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==!1);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||Ext.dd.DDProxy.dragElId)},showFrame:function(d,e){var a=this,b=a.getDragEl(),c=b.style;a._resizeProxy();if(a.centerFrame){a.setDelta(Math.round(parseInt(c.width,10)/2),Math.round(parseInt(c.height,10)/2))}a.setDragElPos(d,e);Ext.fly(b).show()},_resizeProxy:function(){if(this.resizeFrame){var a=this.getEl();Ext.fly(this.getDragEl()).setSize(a.offsetWidth,a.offsetHeight)}},b4MouseDown:function(d){var a=d.getXY(),b=a[0],c=a[1];this.autoOffset(b,c);this.setDragElPos(b,c)},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:!1,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',skipLayout:!0,alignOnScroll:!1,constructor:function(a){var b=this;a=a||{};Ext.apply(b,{hideMode:'visibility',hidden:!0,floating:!0,id:b.id||Ext.id(),cls:'x-dd-drag-proxy '+this.dropNotAllowed,shadow:a.shadow||!1,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(c){var a=this,b='x-dd-drag-proxy ';a.el.replaceCls(b+a.dropAllowed,b+a.dropNotAllowed);a.dropStatus=a.dropNotAllowed;if(c){a.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(!0)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(b,c,d){var a=this;a.callback=c;a.scope=d;if(b&&a.animRepair!==!1){a.el.addCls(a.repairCls);a.el.setUnderlaysVisible(!1);a.anim=a.el.animate({duration:a.repairDuration||500,easing:'ease-out',to:{x:b[0],y:b[1]},stopAnimation:!0,callback:a.afterRepair,scope:a})}else {a.afterRepair()}},afterRepair:function(){var a=this;a.hide(!0);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":!0,"box":!0},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:!0,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:!1,isTarget:!1,scroll:this.scroll===!0});this.dragging=!1},getDragData:function(a){return this.dragData},onDragEnter:function(c,b){var a=Ext.dd.DragDropManager.getDDById(b),d;this.cachedTarget=a;if(this.beforeDragEnter(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyEnter(this,c,this.dragData);this.proxy.setStatus(d)}else {this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(a,c,b)}}},beforeDragEnter:function(a,c,b){return !0},onDragOver:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b),d;if(this.beforeDragOver(a,c,b)!==!1){if(a.isNotifyTarget){d=a.notifyOver(this,c,this.dragData);this.proxy.setStatus(d)}if(this.afterDragOver){this.afterDragOver(a,c,b)}}},beforeDragOver:function(a,c,b){return !0},onDragOut:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragOut(a,c,b)!==!1){if(a.isNotifyTarget){a.notifyOut(this,c,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(a,c,b)}}this.cachedTarget=null},beforeDragOut:function(a,c,b){return !0},onDragDrop:function(c,b){var a=this.cachedTarget||Ext.dd.DragDropManager.getDDById(b);if(this.beforeDragDrop(a,c,b)!==!1){if(a.isNotifyTarget){if(a.notifyDrop(this,c,this.dragData)!==!1){this.onValidDrop(a,c,b)}else {this.onInvalidDrop(a,c,b)}}else {this.onValidDrop(a,c,b)}if(this.afterDragDrop){this.afterDragDrop(a,c,b)}}delete this.cachedTarget},beforeDragDrop:function(a,c,b){return !0},onValidDrop:function(a,c,b){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(a,c,b)}},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)!==!1){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=!1},beforeInvalidDrop:function(a,c,b){return !0},handleMouseDown:function(b){if(this.dragging){return}var a=this.getDragData(b);if(a&&this.onBeforeDrag(a,b)!==!1){this.dragData=a;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(a,b){return !0},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(!0);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(a,b){this.proxy.reset();this.proxy.hidden=!1;this.dragging=!0;this.proxy.update("");this.onInitDrag(a,b);this.proxy.show()},onInitDrag:function(b,c){var a=this.el.dom.cloneNode(!0);a.id=Ext.id();this.proxy.update(a);this.onStartDrag(b,c);return !0},getProxy:function(){return this.proxy},hideProxy:function(){this.proxy.hide();this.proxy.reset(!0);this.dragging=!1},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.destroy(this.proxy);Ext.dd.DDProxy.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.dd,'DragSource'],0));(Ext.cmd.derive('Ext.panel.Proxy',Ext.Base,{alternateClassName:'Ext.dd.PanelProxy',moveOnDrag:!0,constructor:function(c,b){var a=this;a.panel=c;a.id=a.panel.id+'-ddproxy';Ext.apply(a,b)},insertProxy:!0,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 a=this,b;if(!a.ghost){b=a.panel.getSize();a.panel.el.setVisibilityMode(Ext.Element.DISPLAY);a.ghost=a.panel.ghost();if(a.insertProxy){a.proxy=a.panel.el.insertSibling({role:'presentation',cls:'x-panel-dd-spacer'});a.proxy.setSize(b)}}},repair:function(c,a,b){this.hide();Ext.callback(a,b||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,c){var a=this;a.panel=b;a.dragData={panel:b};a.panelProxy=new Ext.panel.Proxy(b,c);a.proxy=a.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,b.el,c);a.setupEl(b)},setupEl:function(c){var a=this,b=c.header,d=c.body;if(b){a.setHandleElId(b.id);d=b.el}if(d){d.setStyle('cursor','move');a.scroll=!1}else {c.on('boxready',a.setupEl,a,{single:!0})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(a,b){this.panelProxy.show()},b4MouseDown:function(b){var a=b.getXY(),c=a[0],d=a[1];this.autoOffset(c,d)},onInitDrag:function(a,b){this.onStartDrag(a,b);return !0},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(d,b,c){var a=this;if(a.beforeInvalidDrop(d,b,c)!==!1){if(a.cachedTarget){if(a.cachedTarget.isNotifyTarget){a.cachedTarget.notifyOut(a,b,a.dragData)}a.cacheTarget=null}if(a.afterInvalidDrop){a.afterInvalidDrop(b,c)}}}},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:!0,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:!1,marginBegin:'margin-top',maxSize:'maxHeight',minSize:'minHeight',pos:'y',setSize:'setHeight',shrinkWrapDock:'shrinkWrapDockHeight',size:'height',sizeModel:'heightModel'},initializedBorders:-1,horizontalCollapsePolicy:{width:!0,x:!0},verticalCollapsePolicy:{height:!0,y:!0},finishRender:function(){var a=this,b,c;Ext.layout.component.Component.prototype.finishRender.call(this);b=a.getRenderTarget();c=a.getDockedItems();a.finishRenderItems(b,c)},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},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 c=this,b=c.owner,a,l,k=c.lastDockedItems,j=c.borders,m=b.dockedItems.generation,i=c.noBorderClassesSides,n=c.borderWidthProps,f,h,d,g,e,o=c.collapsed;if(c.initializedBorders===m||(b.border&&!b.manageBodyBorders)||(b.collapsed&&b.collapseMode==='mini')){return}c.initializedBorders=m;c.collapsed=!1;c.lastDockedItems=l=c.getLayoutItems();c.collapsed=o;a={top:[],right:[],bottom:[],left:[]};for(f=0,h=l.length;f<h;f++){d=l[f];g=d.dock;if(d.ignoreBorderManagement){continue}if(!a[g].satisfied){a[g].push(d);a[g].satisfied=!0}if(!a.top.satisfied&&g!=='bottom'){a.top.push(d)}if(!a.right.satisfied&&g!=='left'){a.right.push(d)}if(!a.bottom.satisfied&&g!=='top'){a.bottom.push(d)}if(!a.left.satisfied&&g!=='right'){a.left.push(d)}}if(k){for(f=0,h=k.length;f<h;f++){d=k[f];if(!d.destroyed&&!d.ignoreBorderManagement&&!b.manageBodyBorders){d.removeCls(c.noBorderClasses)}}}if(j){for(e in j){if(b.manageBodyBorders&&j[e].satisfied){b.setBodyStyle(n[e],'')}}}for(e in a){h=a[e].length;if(!b.manageBodyBorders){for(f=0;f<h;f++){a[e][f].addCls(i[e])}if((!a[e].satisfied&&!b.bodyBorder)||b.bodyBorder===!1){b.addBodyCls(i[e])}else {b.removeBodyCls(i[e])}}else if(a[e].satisfied){b.setBodyStyle(n[e],'1px')}}c.borders=a},beforeLayoutCycle:function(a){var g=this,e=g.owner,f=g.sizeModels.shrinkWrap,b=e.shrinkWrapDock,c,d;if(e.collapsed){if(e.collapsedVertical()){d=!0;a.measureDimensions=1}else {c=!0;a.measureDimensions=2}}a.collapsedVert=d;a.collapsedHorz=c;if(d){a.heightModel=f}else if(c){a.widthModel=f}b=b===!0?3:(b||0);a.shrinkWrapDockHeight=(b&1)&&a.heightModel.shrinkWrap;a.shrinkWrapDockWidth=(b&2)&&a.widthModel.shrinkWrap},beginLayout:function(a){var c=this,e=c.owner,l=c.getLayoutItems(),n=a.context,m=l.length,j=c.lastCollapsedState,k,g,f,d,b,h,i;Ext.layout.component.Component.prototype.beginLayout.apply(this,arguments);h=e.getCollapsed();if(h!==j&&j!==undefined){if(c.owner.collapsed){a.isCollapsingOrExpanding=1;e.addClsWithUI(e.collapsedCls)}else {a.isCollapsingOrExpanding=2;e.removeClsWithUI(e.collapsedCls);a.lastCollapsedState=c.lastCollapsedState}}c.lastCollapsedState=h;a.dockedItems=k=[];for(g=0;g<m;g++){f=l[g];if(f.rendered){i=f.dock;d=n.getCmp(f);d.dockedAt={x:0,y:0};d.offsets=b=Ext.Element.parseBox(f.offsets||0);d.horizontal=i==='top'||i==='bottom';b.width=b.left+b.right;b.height=b.top+b.bottom;k.push(d)}}a.bodyContext=a.getEl('body')},beginLayoutCycle:function(a){var c=this,i=a.dockedItems,j=i.length,b=c.owner,d=b.frameBody,h=c.lastHeightModel,e,g,f;Ext.layout.component.Component.prototype.beginLayoutCycle.apply(this,arguments);if(c.owner.manageHeight){if(c.lastBodyDisplay){b.body.dom.style.display=c.lastBodyDisplay=''}}else {if(c.lastBodyDisplay!=='inline-block'){b.body.dom.style.display=c.lastBodyDisplay='inline-block'}if(h&&h.shrinkWrap&&!a.heightModel.shrinkWrap){b.body.dom.style.marginBottom=''}}if(a.widthModel.auto){if(a.widthModel.shrinkWrap){b.el.setWidth(null)}b.body.setWidth(null);if(d){d.setWidth(null)}}if(a.heightModel.auto){b.body.setHeight(null);if(d){d.setHeight(null)}}if(a.collapsedVert){a.setContentHeight(0)}else if(a.collapsedHorz){a.setContentWidth(0)}for(e=0;e<j;e++){g=i[e].target;f=g.dock;if(f==='right'){g.setLocalX(0)}else if(f!=='left'){continue}}},calculate:function(a){var b=this,l=b.measureAutoDimensions(a,a.measureDimensions),j=a.state,e=j.horzDone,f=j.vertDone,g=a.bodyContext,k,c,d,i,h;a.borderInfo||a.getBorderInfo();a.paddingInfo||a.getPaddingInfo();a.frameInfo||a.getFrameInfo();g.borderInfo||g.getBorderInfo();g.paddingInfo||g.getPaddingInfo();if(!a.frameBorder){if(!(k=a.framing)){a.frameBorder=a.borderInfo;a.framePadding=a.paddingInfo}else {a.frameBorder=k.border;a.framePadding=k.padding}}c=!e&&b.createAxis(a,l.contentWidth,a.widthModel,b.horzAxisProps,a.collapsedHorz);d=!f&&b.createAxis(a,l.contentHeight,a.heightModel,b.vertAxisProps,a.collapsedVert);for(i=0,h=a.dockedItems.length;h--;++i){if(c){b.dockChild(a,c,h,i)}if(d){b.dockChild(a,d,h,i)}}if(c&&b.finishAxis(a,c)){j.horzDone=e=c}if(d&&b.finishAxis(a,d)){j.vertDone=f=d}if(e&&f&&b.finishConstraints(a,e,f)){b.finishPositions(a,e,f)}else {b.done=!1}},createAxis:function(b,s,d,a,k){var r=this,e=0,q=r.owner,n=q[a.maxSize],o=q[a.minSize]||0,f=a.dockBegin,h=a.dockEnd,p=a.pos,g=a.size,m=n!=null,t=d.shrinkWrap,l,i,j,c;if(t){if(k){c=0}else {l=b.bodyContext;c=s+l.borderInfo[g]}}else {i=b.frameBorder;j=b.framePadding;e=i[f]+j[f];c=b.getProp(g)-(i[h]+j[h])}return {shrinkWrap:d.shrinkWrap,sizeModel:d,initialBegin:e,begin:e,end:c,collapsed:k,horizontal:a.horizontal,ignoreFrameBegin:null,ignoreFrameEnd:null,initialSize:c-e,maxChildSize:0,hasMinMaxConstraints:(o||m)&&d.shrinkWrap,minSize:o,maxSize:m?n:1000000000,bodyPosProp:r.owner.manageHeight?p:a.marginBegin,dockBegin:f,dockEnd:h,posProp:p,sizeProp:g,setSize:a.setSize,shrinkWrapDock:b[a.shrinkWrapDock],sizeModelName:a.sizeModel,dockedPixelsEnd:0}},dockChild:function(c,a,j,k){var f=this,b=c.dockedItems[a.shrinkWrap?j:k],d=b.target,h=d.dock,g=a.sizeProp,e,i;if(d.ignoreParentFrame&&c.isCollapsingOrExpanding){b.clearMarginCache()}if(!b.marginInfo){b.getMarginInfo()}if(h===a.dockBegin){if(a.shrinkWrap){e=f.dockOutwardBegin(c,b,d,a)}else {e=f.dockInwardBegin(c,b,d,a)}}else if(h===a.dockEnd){if(a.shrinkWrap){e=f.dockOutwardEnd(c,b,d,a)}else {e=f.dockInwardEnd(c,b,d,a)}}else {if(a.shrinkWrapDock){i=b.getProp(g)+b.marginInfo[g];a.maxChildSize=Math.max(a.maxChildSize,i);e=0}else {e=f.dockStretch(c,b,d,a)}}b.dockedAt[a.posProp]=e},dockInwardBegin:function(g,b,e,a){var j=a.begin,h=a.sizeProp,f=e.ignoreParentFrame,c,i,d;if(f){a.ignoreFrameBegin=b;d=e.dock;c=g.frameBorder[d];j-=c+g.framePadding[d]}if(!e.overlay){i=b.getProp(h)+b.marginInfo[h];a.begin+=i;if(f){a.begin-=c}}return j},dockInwardEnd:function(f,c,b,a){var g=a.sizeProp,h=c.getProp(g)+c.marginInfo[g],e=a.end-h,d;if(!b.overlay){a.end=e}if(b.ignoreParentFrame){a.ignoreFrameEnd=c;d=f.frameBorder[b.dock];e+=d+f.framePadding[b.dock];a.end+=d}return e},dockOutwardBegin:function(g,b,e,a){var c=a.begin,d=a.sizeProp,f;if(a.collapsed){a.ignoreFrameBegin=a.ignoreFrameEnd=b}else if(e.ignoreParentFrame){a.ignoreFrameBegin=b}if(!e.overlay){f=b.getProp(d)+b.marginInfo[d];c-=f;a.begin=c}return c},dockOutwardEnd:function(g,b,e,a){var f=a.end,d=a.sizeProp,c;c=b.getProp(d)+b.marginInfo[d];if(a.collapsed){a.ignoreFrameBegin=a.ignoreFrameEnd=b}else if(e.ignoreParentFrame){a.ignoreFrameEnd=b}if(!e.overlay){a.end=f+c;a.dockedPixelsEnd+=c}return f},dockStretch:function(h,c,f,a){var n=f.dock,e=a.sizeProp,i=n==='top'||n==='bottom',l=h.frameBorder,j=c.offsets,k=h.framePadding,o=i?'right':'bottom',d=i?'left':'top',g=a.begin+j[d],m,b;if(f.stretch!==!1){b=a.end-g-j[o];if(f.ignoreParentFrame){g-=k[d]+l[d];b+=k[e]+l[e]}m=c.marginInfo;b-=m[e];c[a.setSize](b)}return g},finishAxis:function(h,a){if(isNaN(a.maxChildSize)){return !1}var g=a.begin,e=a.end-g,l=a.collapsed,v=a.setSize,k=a.dockBegin,s=a.dockEnd,n=h.framePadding,t=h.frameBorder,b=t[k],i=h.framing,j=i&&i[k],f=l?0:n[k],w=a.sizeProp,p=a.ignoreFrameBegin,q=a.ignoreFrameEnd,r=h.bodyContext,o=Math.max(b+f-j,0),c,m,d,u;if(a.shrinkWrap){m=a.initialSize;if(i){d=-g+b+f;c=d-j-o}else {c=-g;d=c+f}if(!l){e+=n[w]}if(p){d-=b;c-=b;p.dockedAt[a.posProp]-=f}else {e+=b}if(l){}else if(q){q.dockedAt[a.posProp]+=n[s]}else {e+=t[s]}a.size=e;if(!a.horizontal&&!this.owner.manageHeight){u=!1}}else {if(i){d=0;c=g-j-o}else {d=-b;c=g-f-b}m=e}a.delta=d;r[v](m,u);r.setProp(a.bodyPosProp,c);return !isNaN(e)},beforeInvalidateShrinkWrapDock:function(b,c){var a=c.axis.sizeModelName;if(!b[a].constrainedMin){b[a]=Ext.layout.SizeModel.calculated}},afterInvalidateShrinkWrapDock:function(a,c){var b=c.axis,e=c.layout,d;if(a[b.sizeModelName].calculated){d=e.dockStretch(c.ownerContext,a,a.target,b);a.setProp(b.posProp,b.delta+d)}},finishConstraints:function(a,g,e){var o=this,i=o.sizeModels,q=g.shrinkWrap,p=e.shrinkWrap,n=o.owner,r,l,m,c,b,d,k,j,f,h;if(q){d=g.size;k=g.collapsed?0:g.minSize;j=g.maxSize;f=g.maxChildSize;h=Math.max(d,f);if(h>j){b=i.constrainedMax;m=j}else if(h<k){b=i.constrainedMin;m=k}else if(d<f){b=i.constrainedDock;n.dockConstrainedWidth=m=f}else {m=d}}if(p){d=e.size;k=e.collapsed?0:e.minSize;j=e.maxSize;f=e.maxChildSize;h=Math.max(d,f+d-e.initialSize);if(h>j){c=i.constrainedMax;l=j}else if(h<k){c=i.constrainedMin;l=k}else if(d<f){c=i.constrainedDock;n.dockConstrainedHeight=l=f}else {if(!a.collapsedVert&&!n.manageHeight){r=!1;a.bodyContext.setProp('margin-bottom',e.dockedPixelsEnd)}l=d}}if(b||c){if(b&&c&&b.constrainedMax&&c.constrainedByMin){a.invalidate({widthModel:b});return !1}if(!a.widthModel.calculatedFromShrinkWrap&&!a.heightModel.calculatedFromShrinkWrap){a.invalidate({widthModel:b,heightModel:c});return !1}}else {o.invalidateAxes(a,g,e)}if(q){a.setWidth(m);if(b){a.widthModel=b}}if(p){a.setHeight(l,r);if(c){a.heightModel=c}}return !0},invalidateAxes:function(l,b,a){var p=this.beforeInvalidateShrinkWrapDock,q=this.afterInvalidateShrinkWrapDock,m=b.end-b.begin,n=a.initialSize,k=b.shrinkWrapDock&&b.maxChildSize<=m,h=a.shrinkWrapDock&&a.maxChildSize<=n,i,o,g,c,e,j,d,f;if(k||h){if(h){a.begin=a.initialBegin;a.end=a.begin+a.initialSize}i=l.dockedItems;for(g=0,o=i.length;g<o;++g){c=i[g];j=c.horizontal;d=null;if(k&&j){f=b.sizeProp;e=m;d=b}else if(h&&!j){f=a.sizeProp;e=n;d=a}if(d){e-=c.getMarginInfo()[f];if(e!==c.props[f]){c.invalidate({before:p,after:q,axis:d,ownerContext:l,layout:this})}}}}},finishPositions:function(d,h,i){var c=d.dockedItems,g=c.length,e=h.delta,f=i.delta,b,a;for(b=0;b<g;++b){a=c[b];a.setProp('x',e+a.dockedAt.x);a.setProp('y',f+a.dockedAt.y)}},finishedLayout:function(a){var c=this,b=a.target;Ext.layout.component.Component.prototype.finishedLayout.apply(this,arguments);if(!a.animatePolicy){if(a.isCollapsingOrExpanding===1){b.afterCollapse(!1)}else if(a.isCollapsingOrExpanding===2){b.afterExpand(!1)}}},getAnimatePolicy:function(b){var d=this,a,c;if(b.isCollapsingOrExpanding===1){a=d.lastCollapsedState}else if(b.isCollapsingOrExpanding===2){a=b.lastCollapsedState}if(a==='left'||a==='right'){c=d.horizontalCollapsePolicy}else if(a==='top'||a==='bottom'){c=d.verticalCollapsePolicy}return c},getDockedItems:function(c,k){var d=this,i=(c==='visual'),a=i?Ext.ComponentQuery.query('[rendered]',d.owner.dockedItems.items):d.owner.dockedItems.items,f=a&&a.length&&c!==!1,j,h,b,e,g,l;if(k==null){b=f&&!i?a.slice():a}else {b=[];for(e=0,l=a.length;e<l;++e){h=a[e].dock;g=(h==='top'||h==='left');if(k?g:!g){b.push(a[e])}}f=f&&b.length}if(f){j=(c=c||'render')==='render';Ext.Array.sort(b,function(e,f){var a,b;if(j&&((a=d.owner.dockOrder[e.dock])!==(b=d.owner.dockOrder[f.dock]))){if(!(a+b)){return a-b}}a=d.getItemWeight(e,c);b=d.getItemWeight(f,c);if((a!==undefined)&&(b!==undefined)){return a-b}return 0})}return b||[]},getItemWeight:function(b,c){var a=b.weight||this.owner.defaultDockWeights[b.dock];return a[c]||a},getLayoutItems:function(){var e=this,c,f,d,b,a;if(e.owner.collapsed){a=e.owner.getCollapsedDockedItems()}else {c=e.getDockedItems('visual');f=c.length;a=[];for(b=0;b<f;b++){d=c[b];if(!d.hidden){a.push(d)}}}return a},measureContentWidth:function(b){var a=b.bodyContext;return a.el.getWidth()-a.getBorderInfo().width},measureContentHeight:function(b){var a=b.bodyContext;return a.el.getHeight()-a.getBorderInfo().height},redoLayout:function(b){var c=this,a=c.owner;if(b.isCollapsingOrExpanding===1){if(a.reExpander){a.reExpander.el.show()}a.addClsWithUI(a.collapsedCls);b.redo(!0)}else if(b.isCollapsingOrExpanding===2){a.removeClsWithUI(a.collapsedCls);b.bodyContext.redo()}},getRenderTarget:function(){return this.owner.bodyWrap},renderChildren:function(){var a=this,c=a.getDockedItems(),b=a.getRenderTarget();a.handleItemBorders();a.renderItems(c,b)},renderItems:function(r,x){var j=this,f=j.owner,n={},l=r.length,w=f.body.dom,p=f.bodyWrap.dom,q=!!f.frameSize,v=f.bodyContainer,g,k,t,b,d,e,h,m,s,o,u,a,c,i;if(l){for(a=0;a<l;a++){b=r[a];n[b.id]=b;if(b.dockToEl){t=!0}}g=j.getRenderTarget().dom.childNodes;k=g.length;h=0;for(a=0;a<k;++a){d=g[a];e=d===w;if(e){m=a;break}if(n[d.id]){++h}}m-=h;if(t){e=!1;h=0;g=f.el.dom.childNodes;k=g.length;for(a=0;a<k;a++){d=g[a];if(q){e=d===p||d===v;if(!e&&Ext.fly(d).contains(p)){e=!0;f.bodyContainer=d}}else {e=d===p}if(e){o=a;break}if(n[d.id]){++h}}o-=h}s=u=0;for(a=0;a<l;a++){b=r[a];if(b.dockToEl){i=f.el;c=o+u++;if(b.dock==='right'||b.dock==='bottom'){c++;if(q){c++}}else if(q&&c>0){c--}}else {i=x;c=m+s++;if(b.dock==='right'||b.dock==='bottom'){c++}}if(!b.rendered){j.renderItem(b,i,c)}else if(!j.isValidParent(b,i,c)){j.moveItem(b,i,c)}}}},undoLayout:function(b){var c=this,a=c.owner;if(b.isCollapsingOrExpanding===1){if(a.reExpander){a.reExpander.el.hide()}a.removeClsWithUI(a.collapsedCls);b.undo(!0)}else if(b.isCollapsingOrExpanding===2){a.addClsWithUI(a.collapsedCls);b.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(g,c){var f=this,b=f.sizePolicy,a=f.owner.shrinkWrapDock,e,d;if(g.stretch===!1){return b.nostretch}e=g.dock;d=(e==='left'||e==='right');a=a===!0?3:(a||0);if(d){b=b.vert;a=a&1}else {b=b.horz;a=a&2}if(a){if(!c){c=f.owner.getSizeModel()}if(c[d?'height':'width'].shrinkWrap){return b.shrinkWrap}}return b.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&&a.el.dom;if(b&&!a.destroying){b.parentNode.removeChild(b)}this.childrenChanged=!0},borderCollapseMap:{},getBorderCollapseTable:function(){var f=this,b=f.borderCollapseMap,e=f.owner,a=e.baseCls,d=e.ui,c;b=b[a]||(b[a]={});c=b[d];if(!c){a+='-'+d+'-outer-border-';b[d]=c=[0,a+'l',a+'b',a+'bl',a+'r',a+'rl',a+'rb',a+'rbl',a+'t',a+'tl',a+'tb',a+'tbl',a+'tr',a+'trl',a+'trb',a+'trbl']}return c}},0,0,0,0,["layout.dock"],0,[Ext.layout.component,'Dock',Ext.layout.component,'AbstractDock'],0));(Ext.cmd.derive('Ext.util.Memento',Ext.Base,(function(){function captureOne(d,c,a,b){d[b?b+a:a]=c[a]}function removeOne(b,c,a){delete b[a]}function restoreOne(e,f,a,b){var d=b?b+a:a,c=e[d];if(c||e.hasOwnProperty(d)){restoreValue(f,a,c)}}function restoreValue(a,c,b){if(Ext.isDefined(b)){a[c]=b}else {delete a[c]}}function doMany(f,c,e,a,d){if(c){if(Ext.isArray(a)){var b,g=a.length;for(b=0;b<g;b++){f(c,e,a[b],d)}}else {f(c,e,a,d)}}}return {data:null,target:null,constructor:function(a,b){this.data={};if(a){this.target=a;if(b){this.capture(b)}}},capture:function(d,c,b){var a=this;doMany(captureOne,a.data||(a.data={}),c||a.target,d,b)},remove:function(a){doMany(removeOne,this.data,null,a)},restore:function(a,d,c,b){doMany(restoreOne,this.data,c||this.target,a,b);if(d!==!1){this.remove(a)}},restoreAll:function(c,d){var e=this,f=d||this.target,b=e.data,a;c=c!==!1;for(a in b){if(b.hasOwnProperty(a)){restoreValue(f,a,b[a]);if(c){delete b[a]}}}}}}()),1,0,0,0,0,0,[Ext.util,'Memento'],0));(Ext.cmd.derive('Ext.container.DockingContainer',Ext.Base,{isDockingContainer:!0,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(c,d){var b=this,k=b.rendered,f=0,g=b.dockedItems,i=g.getCount(),e,h,a,j;c=b.prepareItems(c);j=c.length;if(k){Ext.suspendLayouts()}if(d===undefined){d=i}else {d=Math.min(d,i)}for(;f<j;f++){a=c[f];if(a.isDetached){a.reattachToBody()}a.dock=a.dock||'top';if(a.dock==='left'||a.dock==='right'){b.horizontalDocks++}e=d+f;g.insert(e,a);h=!!a.instancedCmp;delete a.instancedCmp;a.onAdded(b,e,h);delete a.$initParent;if(b.onDockedAdd!==Ext.emptyFn){b.onDockedAdd(a)}if(b.hasListeners.dockedadd){b.fireEvent('dockedadd',b,a,e)}}if(b.rendered){b.updateLayout();Ext.resumeLayouts(!0)}return c},destroyDockedItems:function(){var a=this.dockedItems,b;if(a){while((b=a.first())){this.removeDocked(b,{destroy:!0})}}},doRenderDockedItems:function(g,e,f){var d=e.$comp,a=d.componentLayout,h=d.tabGuard&&d.lookupTpl('tabGuardTpl'),b,c;if(a.getDockedItems){b=a.getDockedItems('render',!f);c=b&&a.getItemsRenderTree(b);if(c){Ext.DomHelper.generateMarkup(c,g)}}},getDockedComponent:function(a){if(Ext.isObject(a)){a=a.getItemId()}return this.dockedItems.get(a)},getDockedItems:function(b,c){var a=this.getComponentLayout().getDockedItems('render',c);if(b&&a.length){a=Ext.ComponentQuery.query(b,a)}return a},getDockingRefItems:function(e,d){var b=e&&'*,* *',a=this.getDockedItems(b,!0),c;a.push.apply(a,d);c=this.getDockedItems(b,!1);a.push.apply(a,c);return a},initDockingItems:function(){var b=this,a=b.dockedItems;if(!a||!a.isMixedCollection){b.dockedItems=new Ext.util.ItemCollection();if(a){b.addDocked(a)}}},insertDocked:function(b,a){this.addDocked(a,b)},onDockedAdd:Ext.emptyFn,onDockedRemove:Ext.emptyFn,removeDocked:function(a,c){var b=this,e,f,d,g;if(!b.dockedItems.contains(a)){return a}if(c==null){d=b.autoDestroy}else if(typeof c==='boolean'){d=c}else {d=('destroy' in c)&&c.destroy;g=('detach' in c)&&c.detach}if(a.dock==='left'||a.dock==='right'){b.horizontalDocks--}e=b.componentLayout;f=e&&b.rendered;if(f){e.onRemove(a)}b.dockedItems.remove(a);if(!a.destroyed){a.onRemoved(a.destroying||d)}b.onDockedRemove(a);if(d){a.destroy()}else if(!b.destroyed){if(f){e.afterRemove(a)}if(g&&a.rendered){a.detachFromBody()}}if(b.hasListeners.dockedremove){b.fireEvent('dockedremove',b,a)}if(!b.destroying){b.updateLayout()}return a},moveDocked:function(a,c){var b=this;if(b.rendered){Ext.suspendLayouts()}b.removeDocked(a,{destroy:!1,detach:!0});a.dock=c;b.addDocked(a);if(b.rendered){if(a.frame){a.updateFrame()}Ext.resumeLayouts(!0)}},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:['bodyWrap','body'],renderTpl:['<tpl if="headingText">','<div id="{id}-headingEl" data-ref="headingEl" role="heading"',' class="','x-','hidden-clip" style="height:0">','{headingText}','</div>','</tpl>','<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'before\'); %}</tpl>','<div id="{id}-bodyWrap" data-ref="bodyWrap" class="{baseCls}-bodyWrap"','<tpl if="bodyWrapAriaAttributes">','<tpl foreach="bodyWrapAriaAttributes"> {$}="{.}"</tpl>','<tpl else>',' role="presentation"','</tpl>','>','{% 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="bodyAriaAttributes">','<tpl foreach="bodyAriaAttributes"> {$}="{.}"</tpl>','<tpl else>',' role="presentation"','</tpl>','<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>','{%this.renderContainer(out,values);%}','</div>','{% this.renderDockedItems(out,values,1); %}','</div>','<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'after\'); %}</tpl>'],headerPosition:'top',iconAlign:'left',titleAlign:'left',titleRotation:'default',titlePosition:0,headerConfigs:{glyph:1,icon:1,iconAlign:1,iconCls:1,title:1,titleAlign:1,titlePosition:1,titleRotation:1},beforeRenderConfig:{glyph:null,headerPosition:null,icon:null,iconAlign:null,iconCls:null,title:null,titleAlign:null,titlePosition:null,titleRotation:null},animCollapse:Ext.enableFx,border:!0,closable:!1,closeAction:'destroy',closeToolText:'Close panel',collapsed:!1,collapsedCls:'collapsed',collapseFirst:!0,collapsible:undefined,collapseToolText:'Collapse panel',expandToolText:'Expand panel',constrain:!1,constrainHeader:!1,dockedItems:null,tbar:null,bbar:null,fbar:null,lbar:null,rbar:null,buttons:null,floatable:!0,frame:!1,frameHeader:!0,hideCollapseTool:!1,manageHeight:!0,maskElement:'el',minButtonWidth:75,preventHeader:!1,maintainTitlePosition:!1,shrinkWrapDock:!1,titleCollapse:undefined,baseCls:'x-panel',bodyPosProps:{x:'x',y:'y'},componentLayout:'dock',contentPaddingProperty:'bodyPadding',emptyArray:[],isPanel:!0,defaultBindProperty:'title',addBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.addCls(c);return a},addTool:function(c){if(!Ext.isArray(c)){c=[c]}var d=this,b=d.header,g=c.length,f=d.tools,e,a;if(!b||!b.isHeader){b=null;if(!f){d.tools=f=[]}}for(e=0;e<g;e++){a=c[e];if(typeof a!=='string'&&!a.isTool){a=Ext.apply({},a)}a.toolOwner=d;if(b){b.addTool(a)}else {f.push(a)}}d.updateHeader()},addTools:Ext.emptyFn,getClosable:function(){return this.closable},setClosable:function(a){var b=this,c=b.tab;a=!!a;if(b.closable!==a){b.closable=a;if(c){c.setClosable(a)}}},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 a=this,c=Ext.container.Container.prototype.addUIClsToElement.apply(this,arguments);a.addBodyCls(['x-'+b,a.baseCls+'-body-'+b,a.baseCls+'-body-'+a.ui+'-'+b]);return c},afterCollapse:function(c){var a=this,b=a.ownerLayout;a.isCollapsingOrExpanding=0;a.updateCollapseTool();if(c){a.removeCls('x-animating-size')}if(b){b.afterCollapse(a,c)}a.setHiddenDocked();a.fireEvent('collapse',a)},afterExpand:function(c){var a=this,b=a.ownerLayout;a.isCollapsingOrExpanding=0;a.updateCollapseTool();if(c){a.removeCls('x-animating-size')}if(b){b.afterExpand(a,c)}a.fireEvent('expand',a);a.fireHierarchyEvent('expand')},doDestroy:function(){var a=this;if(a.slideOutTask){a.slideOutTask.cancel()}Ext.destroy(a.placeholder,a.ghostPanel,a.dd,a.accordionHeaderKeyNav,a.accordionBodyKeyNav,a.defaultButtonKeyNav);a.destroyDockedItems();Ext.container.Container.prototype.doDestroy.call(this)},beforeRender:function(){var a=this,b;a.getProtoBody();Ext.container.Container.prototype.beforeRender.call(this);a.initTools();if(!(a.preventHeader||(a.header===!1))||a.isViewportBorderChild){a.updateHeader()}a.afterHeaderInit=!0;if(a.collapsed){if(a.isPlaceHolderCollapse()){if(!a.hidden){a.setHiddenState(!0);a.preventCollapseFire=!0;a.placeholderCollapse();delete a.preventCollapseFire;b=a.collapsed;a.collapsed=!1}}else {a.beginCollapse();a.addClsWithUI(a.collapsedCls)}}if(b){a.collapsed=b}},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 a=this,g=a.lastBox,f=a.rendered,d=a.getMemento('collapse'),e=a.getSizeModel(),b=a.header,c;d.capture(['height','minHeight','width','minWidth']);if(g){d.capture(a.restoreDimension(),g,'last.')}if(a.collapsedVertical()){if(e.width.shrinkWrap){a.width=f?a.getWidth():a.width||a.minWidth||100}delete a.height;a.minHeight=0}else if(a.collapsedHorizontal()){if(e.height.shrinkWrap){a.height=f?a.getHeight():a.height||a.minHeight||100}delete a.width;a.minWidth=0}if(a.ownerCt){a.ownerCt.getLayout().beginCollapse(a)}if(!a.isPlaceHolderCollapse()&&b!==!1){if(b===(c=a.getReExpander())){b.collapseImmune=!0;b.getInherited().collapseImmune=!0;b.addClsWithUI(a.getHeaderCollapsedClasses(b));if(b.rendered){b.updateFrame()}}else if(c.el){c.el.show();c.hidden=!1}}if(a.resizer){a.resizer.disable()}if(a.rendered){a.ariaEl.dom.setAttribute('aria-expanded',!1);if(a.isAccordionPanel){a.body.dom.setAttribute('aria-hidden',!0)}}},beginDrag:function(){if(this.floatingDescendants){this.floatingDescendants.hide()}},beginExpand:function(){var a=this,f=a.lastBox,c=a.getMemento('collapse'),e=a.restoreDimension(),b=a.header,d;if(c){c.restore(['minHeight','minWidth',e]);if(f){c.restore(e,!0,f,'last.')}}if(a.ownerCt){a.ownerCt.getLayout().beginExpand(a)}if(!a.isPlaceHolderCollapse()&&b!==!1){if(b===(d=a.getReExpander())){delete b.collapseImmune;delete b.getInherited().collapseImmune;b.removeClsWithUI(a.getHeaderCollapsedClasses(b));if(b.rendered){b.expanding=!0;b.updateFrame();delete b.expanding}}else {d.hidden=!0;d.el.hide()}}if(a.resizer){a.resizer.enable()}if(a.rendered){a.ariaEl.dom.setAttribute('aria-expanded',!0);if(a.isAccordionPanel){a.body.dom.setAttribute('aria-hidden',!1)}}},bridgeToolbars:function(){var a=this,b=[],d=a.minButtonWidth,c,f,e;function initToolbar(b,e,d,c){if(Ext.isArray(b)){b={xtype:'toolbar',items:b}}else if(!b.isComponent){b=Ext.apply({},b)}if(!b.xtype){b.xtype='toolbar'}b.dock=e;if(c){b.focusableContainer=!1}if(d){b.layout=Ext.apply({pack:{left:'start',center:'center'}[a.buttonAlign]||'end'},b.layout)}return b}if(a.tbar){b.push(initToolbar(a.tbar,'top'));a.tbar=null}if(a.bbar){b.push(initToolbar(a.bbar,'bottom'));a.bbar=null}if(a.buttons){a.fbar=a.buttons;a.buttons=null;e=!0}if(a.fbar){c=initToolbar(a.fbar,'bottom',!0,e);c.ui='footer';if(d){f=c.defaults;c.defaults=function(c){var a=f||{},b=!c.xtype||c.isButton,e;if(!b){e=Ext.ClassManager.getByAlias('widget.'+c.xtype);if(e){b=e.prototype.isButton}}if(b&&!('minWidth' in a)){a=Ext.apply({minWidth:d},a)}return a}}b.push(c);a.fbar=null}if(a.lbar){b.push(initToolbar(a.lbar,'left'));a.lbar=null}if(a.rbar){b.push(initToolbar(a.rbar,'right'));a.rbar=null}if(a.dockedItems){if(a.dockedItems.isMixedCollection){a.addDocked(b)}else {if(!Ext.isArray(a.dockedItems)){a.dockedItems=[a.dockedItems]}a.dockedItems=a.dockedItems.concat(b)}}else {a.dockedItems=b}},close:function(){if(this.fireEvent('beforeclose',this)!==!1){this.doClose()}},collapse:function(c,b){var a=this,f=c||a.collapseDirection,g=a.ownerCt,e=a.ownerLayout,d=a.rendered;if(a.isCollapsingOrExpanding){return a}if(arguments.length<2){b=a.animCollapse}if(a.collapsed||a.fireEvent('beforecollapse',a,c,b)===!1){return a}if(e&&e.onBeforeComponentCollapse){if(e.onBeforeComponentCollapse(a)===!1){return a}}if(d&&g&&a.isPlaceHolderCollapse()){return a.placeholderCollapse(c,b)}a.collapsed=f;if(d){a.beginCollapse()}a.getInherited().collapsed=!0;a.fireHierarchyEvent('collapse');if(d){a.doCollapseExpand(1,b)}return a},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(d){var a=this,b=a.header,c=a.frame&&!a.alwaysFramed;return {xtype:'panel',hidden:!1,header:b?{titleAlign:b.getTitleAlign()}:null,ui:c?a.ui.replace(/-framed$/,''):a.ui,id:a.id+'-ghost',renderTo:Ext.getBody(),resizable:!1,draggable:!1,closable:!1,focusable:!1,floating:!0,alignOnScroll:!1,shadow:!1,frame:c,shim:a.shim,alwaysFramed:a.alwaysFramed,overlapHeader:a.overlapHeader,headerPosition:a.getHeaderPosition(),titleRotation:a.getTitleRotation(),baseCls:a.baseCls,getRefOwner:function(){return a.getRefOwner()},cls:a.baseCls+'-ghost '+(d||'')}},createReExpander:function(d,i){var a=this,h=d==='left',f=d==='right',e=h||f,g=a.ownerCt,c=a.header,b=Ext.apply({hideMode:'offsets',title:a.getTitle(),titleAlign:a.getTitleAlign(),titlePosition:a.getTitlePosition(),vertical:e,textCls:a.headerTextCls,icon:a.getIcon(),iconCls:a.getIconCls(),iconAlign:a.getIconAlign(),glyph:a.getGlyph(),baseCls:a.self.prototype.baseCls+'-header',ui:a.ui,frame:a.frame&&a.frameHeader,ignoreParentFrame:a.frame||a.overlapHeader,ignoreBorderManagement:a.frame||a.ignoreHeaderBorderManagement,indicateDrag:a.draggable,collapseImmune:!0,ariaRole:a.ariaRole,preventRefocus:!0,ownerCt:(g&&a.collapseMode==='placeholder')?g:a,ownerLayout:a.componentLayout,forceOrientation:!0,margin:a.margin,defaultFocus:'tool[isDefaultExpandTool]'},i);if(a.collapseMode==='mini'){if(e){b.width=1}else {b.height=1}}if(c){Ext.apply(b,{focusableContainer:c.focusableContainer,activeChildTabIndex:c.activeChildTabIndex,inactiveChildTabIndex:c.inactiveChildTabIndex,allowFocusingDisabledChildren:c.allowFocusingDisabledChildren})}if(!a.hideCollapseTool){if(!a.maintainTitlePosition&&(h||(f&&a.isPlaceHolderCollapse()))){b.titlePosition=1}b.tools=[{xtype:'tool',type:'expand-'+a.getOppositeDirection(d),isDefaultExpandTool:!0,uiCls:['top'],handler:a.toggleCollapse,scope:a,tooltip:a.expandToolText}]}b=new Ext.panel.Header(b);b.addClsWithUI(a.getHeaderCollapsedClasses(b));b.expandTool=b.down('tool[isDefaultExpandTool=true]');return b},doClose:function(){this.fireEvent('close',this);this[this.closeAction]()},doCollapseExpand:function(e,b){var a=this,d=a.animCollapse,c=a.ownerLayout;a.animCollapse=b;a.isCollapsingOrExpanding=e;if(b){a.addCls('x-animating-size')}if(c&&!b){c.onContentChange(a)}else {a.updateLayout({isRoot:!0})}a.animCollapse=d;return a},endDrag:function(){if(this.floatingDescendants){this.floatingDescendants.show()}},expand:function(b){var a=this,c=a.ownerLayout,d=a.rendered;if(a.isCollapsingOrExpanding){return a}if(!arguments.length){b=a.animCollapse}if(!a.collapsed&&!a.floatedFromCollapse){return a}if(a.fireEvent('beforeexpand',a,b)===!1){return a}if(c&&c.onBeforeComponentExpand){if(c.onBeforeComponentExpand(a)===!1){return a}}delete a.getInherited().collapsed;if(d&&a.isPlaceHolderCollapse()){return a.placeholderExpand(b)}a.restoreHiddenDocked();if(d){a.beginExpand()}a.collapsed=!1;if(a.rendered){a.doCollapseExpand(2,b)}return a},findReExpander:function(g){var f=this,c=Ext.Component,d=f.dockedItems.items,e=d.length,a,b;if(f.collapseMode==='mini'){return}switch(g){case c.DIRECTION_TOP:case c.DIRECTION_BOTTOM:for(b=0;b<e;b++){a=d[b];if(!a.hidden){if(a.isHeader&&(!a.dock||a.dock==='top'||a.dock==='bottom')){return a}}};break;case c.DIRECTION_LEFT:case c.DIRECTION_RIGHT:for(b=0;b<e;b++){a=d[b];if(!a.hidden){if(a.isHeader&&(a.dock==='left'||a.dock==='right')){return a}}};break;default:throw ('Panel#findReExpander must be passed a valid collapseDirection');}},floatCollapsedPanel:function(){var a=this,d=a.placeholder,j=a.splitter,b=Ext.util.Region.from(d.getBox(!1,!0)),i=Ext.panel.Panel.floatCls,h=a.collapsed,g=a.ownerCt||a,f,c,e={mouseleave:a.onMouseLeaveFloated,mouseenter:a.onMouseEnterFloated,scope:a,destroyable:!0};if(a.isSliding){return}if(a.el.hasCls(i)){a.slideOutFloatedPanel();return}a.isSliding=!0;d.el.hide();d.hidden=!0;a.el.show();a.setHiddenState(!1);a.collapsed=!1;g.updateLayout();d.el.show();d.hidden=!1;a.el.hide();a.setHiddenState(!0);a.collapsed=h;g.updateLayout();c=a.getBox(!1,!0);if(a.fireEvent('beginfloat',a)===!1){return}a.slideOutTask=a.slideOutTask||new Ext.util.DelayedTask(a.slideOutFloatedPanel,a);a.pointerLeaveListener=Ext.getDoc().on({mousedown:a.onFloatedPointerEvent,mousemove:a.onFloatedPointerEvent,scope:a,destroyable:!0});if(!a.placeholderListener){a.placeholderListener=d.on({resize:a.onPlaceholderResize,scope:a,destroyable:!0})}a.phHoverListeners=d.el.on(e);a.elHoverListeners=a.el.on(e);a.el.addCls(i);a.floated=h;if(a.collapseTool){a.collapseTool.el.hide()}if(j){b=b.union(j.getBox(!1,!0))}switch(a.collapsed){case 'top':a.width=b.width;a.setLocalXY(c.x,c.y+b.height);break;case 'right':a.height=b.height;a.setLocalXY(c.x-b.width,c.y);break;case 'bottom':a.width=b.width;a.setLocalXY(c.x,c.y-b.height);break;case 'left':a.height=b.height;a.setLocalXY(c.x+b.width,c.y);break;}f=a.convertCollapseDir(a.collapsed);a.floatedFromCollapse=a.collapsed;a.collapsed=!1;a.setHiddenState(!1);a.el.slideIn(f,{preserveScroll:!0,duration:Ext.Number.from(a.animCollapse,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:function(){a.isSliding=!1;a.fireEvent('endfloat',a);a.fireEvent('float',a)}}})},onFloatedPointerEvent:function(b){var a=this;if(a.owns(b)||a.placeholder.owns(b)||(a.splitter&&a.splitter.owns(b))||(a.floatCollapsedPanel&&a.el.getRegion().contains(b.getPoint()))){a.slideOutTask.cancel()}else {a.slideOutTask.delay(500)}},onMouseEnterFloated:function(a){this.slideOutTask.cancel()},onMouseLeaveFloated:function(b){var a=b.getRelatedTarget();if(a&&(this.owns(a)||this.placeholder.owns(a))){return}this.slideOutTask.delay(500)},onPlaceholderResize:function(g,d,c){var a=this,e=a.splitter,f=a.getBox(!1,!0),b=Ext.util.Region.from(g.getBox(!1,!0));if(e){b=b.union(e.getBox(!1,!0))}switch(a.floated){case 'top':a.width=d;a.setLocalY(b.y+b.height);break;case 'right':a.height=c;a.setLocalX(b.x-f.width);break;case 'bottom':a.width=d;a.setLocalY(b.y-f.height);break;case 'left':a.height=c;a.setLocalX(b.x+b.width);break;}a.updateLayout({isRoot:!0})},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===!0){return a.collapseDirection}return a.collapsed},getCollapsedDockedItems:function(){var a=this;return a.header===!1||a.collapseMode==='placeholder'?a.emptyArray:[a.getReExpander()]},getComponent:function(b){var a=Ext.container.Container.prototype.getComponent.apply(this,arguments);if(a===undefined&&!Ext.isNumber(b)){a=this.getDockedComponent(b)}return a},getHeader:function(){return this.header},getHeaderCollapsedClasses:function(d){var a=this,c=a.collapsedCls,b;b=[c,c+'-'+d.getDockName()];if(a.border&&(!a.frame||(a.frame&&Ext.supports.CSS3BorderRadius))){b.push(c+'-border-'+d.getDockName())}return b},getOppositeDirection:function(b){var a=Ext.Component;switch(b){case a.DIRECTION_TOP:return a.DIRECTION_BOTTOM;case a.DIRECTION_RIGHT:return a.DIRECTION_LEFT;case a.DIRECTION_BOTTOM:return a.DIRECTION_TOP;case a.DIRECTION_LEFT:return a.DIRECTION_RIGHT;}},getPlaceholder:function(g){var a=this,d=g||a.collapseDirection,f=null,b=a.placeholder,e=a.floatable,c=a.titleCollapse;if(!b){if(e||(a.collapsible&&c)){f={click:{fn:function(h,f){var d=b.expandTool;if(!(d&&d.el.dom.contains(arguments[1]))){a[(!c&&e)?'floatCollapsedPanel':'toggleCollapse']()}},element:'el',scope:a}}}a.placeholder=b=Ext.widget(a.createReExpander(d,{id:a.id+'-placeholder',listeners:f}))}if(!b.placeholderFor){if(!b.isComponent){a.placeholder=b=a.lookupComponent(b)}Ext.applyIf(b,{margin:a.margin,placeholderFor:a,synthetic:!0});b.addCls(['x-region-collapsed-placeholder','x-region-collapsed-'+d+'-placeholder',a.collapsedCls])}return b},getProtoBody:function(){var a=this,b=a.protoBody;if(!b){a.protoBody=b=new Ext.util.ProtoElement({cls:a.bodyCls,style:a.bodyStyle,clsProp:'bodyCls',styleProp:'bodyStyle',styleIsText:!0})}return b},getReExpander:function(f){var a=this,b=f||a.collapseDirection,c=a.reExpander||a.findReExpander(b),e=a.titleCollapse,d=null;a.expandDirection=a.getOppositeDirection(b);if(!c){if(e){d={click:{fn:a.toggleCollapse,element:'el',scope:a}}}a.reExpander=c=a.createReExpander(b,{dock:b,cls:'x-docked '+a.baseCls+'-'+a.ui+'-collapsed',isCollapsedExpander:!0,listeners:d});a.dockedItems.insert(0,c)}return c},getRefItems:function(c){var b=this.placeholder,a;if(b){a=[b];if(c&&b.getRefItems){a.push.apply(a,b.getRefItems(c))}}else {a=[]}a.push.apply(a,this.getDockingRefItems(c,Ext.container.Container.prototype.getRefItems.call(this,c)));return a},getState:function(){var b=this,a=Ext.container.Container.prototype.getState.call(this)||{},f=b.collapsed,e=b.floated,c,d;if(e){b.collapsed=e}a=b.addPropertyToState(a,'collapsed');if(e){b.collapsed=f}if(b.getCollapsed()){c=b.getMemento('collapse').data;a=b.addPropertyToState(a,'collapsed',c);d=b.isPlaceHolderCollapse();if(b.collapsedVertical()){if(d){a=b.addPropertyToState(a,'height');delete a.width}else {delete a.height;if(c){a=b.addPropertyToState(a,'height',c.height)}}}else {if(d){a=b.addPropertyToState(a,'width');delete a.height}else {delete a.width;if(c){a=b.addPropertyToState(a,'width',c.width)}}}}return a},applyState:function(b){var d=this,c={},a;if(b){a=b.collapsed;if(a){c=d.getMemento('collapse');Ext.Object.merge(c.data,a);b.collapsed=!0}Ext.container.Container.prototype.applyState.apply(this,arguments)}},ghost:function(l){var a=this,j=a.el,b=a.ghostPanel,e=a.getBox(),d=a.header,c,h,i,f,g,k;Ext.suspendLayouts();if(!b){a.ghostPanel=b=Ext.widget(a.createGhost(l));b.el.dom.removeAttribute('tabIndex')}else {b.el.show()}b.setHiddenState(!1);b.setXY([e.x,e.y]);b.setSize(e.width,e.height);b.floatParent=a.floatParent;if(d&&!a.preventHeader&&a.lastHeaderGen!==d.items.generation){c=b.header;h=c.query('tool');for(k=h.length;k--;){c.remove(h[k])}c.setTitlePosition(0);b.addTool(a.ghostTools());b.setTitle(a.getTitle());c.setTitlePosition(d.getTitlePosition());c.setIconAlign(d.getIconAlign());c.setTitleAlign(d.getTitleAlign());f=a.getIconCls();if(f){b.setIconCls(f)}else {i=a.getIcon();if(i){b.setIcon(i)}else {g=a.getGlyph();if(g){b.setGlyph(g)}}}c.addCls('x-header-ghost');a.lastHeaderGen=d.items.generation}Ext.resumeLayouts(!0);a.elVisMode=j.getVisibilityMode();j.setVisibilityMode(Ext.Element.CLIP);j.hide();return b},ghostTools:function(){var c=[],d=this.header,b=d?d.query('tool[hidden=false]'):[],a,e,f;if(b.length){a=0;e=b.length;for(;a<e;a++){f=b[a];c.push({type:f.type,focusable:!1})}}else {c=[{type:'placeholder'}]}return c},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 a=this,b=a.getProtoBody();if(a.bodyPadding!==undefined){if(a.layout.managePadding){b.setStyle('padding',0)}else {b.setStyle('padding',this.unitizeBox((a.bodyPadding===!0)?5:a.bodyPadding))}}a.initBodyBorder()},initBorderProps:function(){var a=this;if(a.frame&&a.border&&a.bodyBorder===undefined){a.bodyBorder=!1}if(a.frame&&a.border&&(a.bodyBorder===!1||a.bodyBorder===0)){a.manageBodyBorders=!0}},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,c=a.bodyWrapAriaRole,d=a.bodyAriaRole,b;b=Ext.container.Container.prototype.initRenderData.call(this);a.initBodyStyles();a.protoBody.writeTo(b);delete a.protoBody;if(a.headingText){b.headingText=a.headingText;a.addChildEl('headingEl')}if(c){b.bodyWrapAriaAttributes={role:c};if(!a.ariaStaticRoles[c]&&a.bodyWrapAriaRenderAttributes){Ext.apply(b.bodyWrapAriaAttributes,a.bodyWrapAriaRenderAttributes)}}if(d){b.bodyAriaAttributes={role:d};if(!a.ariaStaticRoles[d]&&a.bodyAriaRenderAttributes){Ext.apply(b.bodyAriaAttributes,a.bodyAriaRenderAttributes)}}return b},calculateConstrainedPosition:function(d,g,h,a){var c=this,f=c.header,b,e;if(c.constrainHeader){b=f.lastBox;if(a){if(!f.vertical){a=[a[0],b?b.height:a[1]]}else {a=[b?b.width:a[0],a[1]]}}else if(b){a=[b.width,b.height]}e=c.floatParent;d=d||c.constrainTo||(e?e.getTargetEl():null)||c.container||c.el.parent()}return Ext.container.Container.prototype.calculateConstrainedPosition.call(this,d,g,h,a)},initTools:function(){var a=this,e=a.tools,f=e&&e.length,d,c,b;a.tools=[];if(f){for(d=0;d<f;++d){b=e[d];if(typeof b!=='string'&&!b.isTool){b=Ext.apply({},b)}a.tools.push(b);b.toolOwner=a}}if(a.collapsible&&!(a.hideCollapseTool||a.header===!1||a.preventHeader)){a.updateCollapseTool();if(a.collapseFirst){a.tools.unshift(a.collapseTool)}}a.addTools();if(a.pinnable){a.initPinnable()}if(a.closable){a.addClsWithUI('closable');c={xtype:'tool',type:'close',scope:a,handler:a.close,tooltip:a.closeToolText};if(a.isAccordionPanel||a.disableCloseToolFocus){c.focusable=!1;c.ariaRole='presentation'}a.addTool(c)}if(a.collapseTool&&!a.collapseFirst){a.addTool(a.collapseTool)}},isLayoutRoot:function(){if(this.floatedFromCollapse){return !0}return Ext.container.Container.prototype.isLayoutRoot.call(this)},isPlaceHolderCollapse:function(){return this.collapseMode==='placeholder'},isVisible:function(b){var a=this;if(a.collapsed&&a.placeholder){return a.placeholder.isVisible(b)}return Ext.container.Container.prototype.isVisible.apply(this,arguments)},onBoxReady:function(){var a=this,b;Ext.container.Container.prototype.onBoxReady.apply(this,arguments);if(a.collapsed){a.setHiddenDocked()}if(a.isAccordionPanel){a.ariaEl=a.header.titleCmp.el;a.ariaEl.dom.setAttribute('aria-expanded',!a.collapsed);a.ariaEl.dom.setAttribute('aria-controls',a.body.id);a.body.dom.setAttribute('aria-labelledby',a.header.titleCmp.id);a.body.dom.setAttribute('aria-hidden',!!a.collapsed);a.accordionHeaderKeyNav=new Ext.util.KeyNav({target:a.header.titleCmp.el,scope:a,left:a.navigateAccordionHeader,right:a.navigateAccordionHeader,up:a.navigateAccordionHeader,down:a.navigateAccordionHeader,home:a.navigateAccordionHeader,end:a.navigateAccordionHeader,space:a.toggleCollapse,enter:a.toggleCollapse,del:{alt:!0,fn:a.maybeClose}});a.accordionBodyKeyNav=new Ext.util.KeyNav({target:a.bodyWrap,scope:a,up:{ctrl:!0,fn:a.navigateAccordionBody}})}if(a.defaultButton){b=a.defaultButtonTarget?a[a.defaultButtonTarget]:a.body;a.defaultButtonKeyNav=new Ext.util.KeyNav({target:b,scope:a,defaultEventAction:'stopEvent',enter:a.fireDefaultButton})}},onHide:function(c,e,d){var a=this,b=a.dd;if(a.floatedFromCollapse){a.slideOutFloatedPanel(!0)}if(a.draggable&&b){b.endDrag()}if(a.collapsed&&a.placeholder){if(a.splitter){Ext.suspendLayouts();a.splitter.hide();Ext.resumeLayouts()}a.placeholder.hide()}else {Ext.container.Container.prototype.onHide.call(this,c,e,d)}},onRemoved:function(b){var a=this;if(a.placeholder&&!b){a.ownerCt.remove(a.placeholder,!1)}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(!0);a.placeholderCollapse()}else {Ext.container.Container.prototype.onShow.apply(this,arguments)}},placeholderCollapse:function(i,e){var a=this,f=a.ownerCt,d=i||a.collapseDirection,h=Ext.panel.Panel.floatCls,g=a.collapseTool,b=a.getPlaceholder(d),c;if(Ext.Component.layoutSuspendCount||a.isLayoutSuspended()){e=!1}a.fireEvent('beginfloat',a);a.isCollapsingOrExpanding=1;a.setHiddenState(!0);a.collapsed=d;if(b.rendered){if(b.el.dom.parentNode!==a.el.dom.parentNode){a.el.dom.parentNode.insertBefore(b.el.dom,a.el.dom)}b.hidden=!1;b.setHiddenState(!1);b.el.show();f.updateLayout()}else {f.insert(f.items.indexOf(a),b)}if(a.rendered){a.focusPlaceholderExpandTool=a.focusPlaceHolder=!1;if(g&&Ext.ComponentManager.getActiveComponent()===g){a.focusPlaceholderExpandTool=!0}else if(a.containsFocus){a.focusPlaceHolder=!0}a.el.setVisibilityMode(a.placeholderCollapseHideMode);if(e){a.el.addCls(h);b.el.hide();c=a.convertCollapseDir(d);a.el.slideOut(c,{preserveScroll:!0,duration:Ext.Number.from(e,Ext.fx.Anim.prototype.duration),listeners:{scope:a,afteranimate:function(){var a=this,b=a.placeholder.el;a.el.removeCls(h);b.show();if(a.ownerCt){b.setStyle('display','none');b.slideIn(c,{easing:'linear',duration:100,listeners:{afteranimate:a.doPlaceholderCollapse,scope:a}})}else {a.doPlaceholderCollapse()}}}})}else {a.el.hide();a.doPlaceholderCollapse()}}else {a.isCollapsingOrExpanding=0;if(!a.preventCollapseFire){a.fireEvent('collapse',a)}}return a},doPlaceholderCollapse:function(){var a=this,c=a.placeholder,d=c.expandTool,b;if(a.focusPlaceholderExpandTool&&d){d.focus()}else if(a.focusPlaceHolder){c.focus()}a.focusPlaceholderExpandTool=!1;c.setHiddenState(!1);if(c.rendered){b=c.ariaEl.dom;b.setAttribute('aria-hidden',!1);b.setAttribute('aria-expanded',!1)}b=a.ariaEl.dom;b.setAttribute('aria-hidden',!0);b.setAttribute('aria-expanded',!1);a.isCollapsingOrExpanding=0;a.fireEvent('collapse',a);a.fireEvent('endfloat',a)},placeholderExpand:function(d){var a=this,h=a.collapsed,b=a.placeholder.expandTool,g=Ext.panel.Panel.floatCls,e=a.ownerLayout?a.ownerLayout.centerRegion:null,f,c;if(Ext.Component.layoutSuspendCount){d=!1}if(a.floatedFromCollapse){c=a.getPosition(!0);a.slideOutFloatedPanelBegin();a.slideOutFloatedPanelEnd();a.floated=!1}if(b&&Ext.ComponentManager.getActiveComponent()===b){a.focusHeaderCollapseTool=!0;b._ariaRole=b.ariaEl.dom.getAttribute('role');b._ariaLabel=b.ariaEl.dom.getAttribute('aria-label');b.ariaEl.dom.setAttribute('role','presentation');b.ariaEl.dom.removeAttribute('aria-label')}if(d){Ext.suspendLayouts();a.placeholder.hide();a.el.show();a.collapsed=!1;a.setHiddenState(!1);if(e&&!c){e.hidden=!0}Ext.resumeLayouts(!0);if(e){e.hidden=!1}if(!a.floatedFromCollapse){a.fireEvent('beginfloat',a)}a.el.addCls(g);a.isCollapsingOrExpanding=2;if(c){f=a.getXY();a.setLocalXY(c[0],c[1]);a.setXY([f[0],f[1]],{duration:Ext.Number.from(d,Ext.fx.Anim.prototype.duration),listeners:{scope:a,afteranimate:function(){var a=this;a.el.removeCls(g);a.isCollapsingOrExpanding=0;a.fireEvent('expand',a);a.fireEvent('endfloat',a)}}})}else {a.el.hide();a.placeholder.el.show();a.placeholder.hidden=!1;a.setHiddenState(!1);a.el.slideIn(a.convertCollapseDir(h),{preserveScroll:!0,duration:Ext.Number.from(d,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:a.doPlaceholderExpand,scope:a}})}}else {a.floated=a.collapsed=!1;a.doPlaceholderExpand(!0)}return a},doPlaceholderExpand:function(c){c=c===!0;var a=this,d=a.placeholder,e=a.collapseTool,b=d.expandTool;if(c){Ext.suspendLayouts();a.show()}a.el.removeCls(Ext.panel.Panel.floatCls);d.hide();if(c){Ext.resumeLayouts(!0)}else {a.updateLayout()}if(a.focusHeaderCollapseTool&&e){e.focus()}a.focusHeaderCollapseTool=!1;d.ariaEl.dom.setAttribute('aria-expanded',!0);a.ariaEl.dom.setAttribute('aria-expanded',!0);if(b&&b._ariaRole){b.ariaEl.dom.setAttribute('role',b._ariaRole);b.ariaEl.dom.setAttribute('aria-label',b._ariaLabel);b._ariaRole=b._ariaLabel=null}a.isCollapsingOrExpanding=0;a.fireEvent('expand',a);a.fireEvent('endfloat',a)},remove:function(a,b){var c=this.dockedItems;if(c&&c.contains(a)){this.removeDocked(a,b)}else {Ext.container.Container.prototype.remove.call(this,a,b)}return a},removeBodyCls:function(c){var a=this,b=a.rendered?a.body:a.getProtoBody();b.removeCls(c);return a},removeUIClsFromElement:function(b){var a=this,c=Ext.container.Container.prototype.removeUIClsFromElement.apply(this,arguments);a.removeBodyCls(['x-'+b,a.baseCls+'-body-'+b,a.baseCls+'-body-'+a.ui+'-'+b]);return c},restoreDimension:function(){var a=this.collapseDirection;return (a==='top'||a==='bottom')?'height':'width'},restoreHiddenDocked:function(){this.setDockedItemsVisibility(this.hiddenOnCollapse,!0)},setBodyStyle:function(a,d){var b=this,c=b.rendered?b.body:b.getProtoBody();if(Ext.isFunction(a)){a=a()}if(arguments.length===1){if(Ext.isString(a)){a=Ext.Element.parseStyles(a)}c.setStyle(a)}else {c.setStyle(a,d)}return b},setBorder:function(a,d){if(d){return}var b=this,c=b.header;if(!a){a=0}else if(a===!0){a='1px'}else {a=b.unitizeBox(a)}if(c){if(c.isHeader){c.setBorder(a)}else {c.border=a}}if(b.rendered&&b.bodyBorder!==!1){b.body.setStyle('border-width',a)}b.updateLayout();b.border=a},setCollapsed:function(a){this[a?'collapse':'expand']()},setDockedItemsVisibility:function(b,g){var c=this,f=c.getDockedItems(),h=f.length,d=0,a,e;if(c.header!==!1){e=c.getReExpander()}for(;d<h;d++){a=f[d];if(a&&a!==e&&a.el){b.add(a.el)}}b.setStyle('visibility',g?'':'hidden');b.clear()},setGlyph:function(a){this.setHeaderConfig(a,'glyph','setGlyph',!0)},setIcon:function(a){this.setHeaderConfig(a,'icon','setIcon',!0)},setIconCls:function(a){this.setHeaderConfig(a,'iconCls','setIconCls',!0)},setIconAlign:function(a){this.setHeaderConfig(a,'iconAlign','setIconAlign',!0)},setTitleAlign:function(a){this.setHeaderConfig(a,'titleAlign','setTitleAlign',!0)},setTitlePosition:function(a){this.setHeaderConfig(a,'titlePosition','setTitlePosition',!0)},setTitleRotation:function(a){this.setHeaderConfig(a,'titleRotation','setTitleRotation',!0)},setTitle:function(a){var b=this,c=b.title;if(a!==c&&b.headingEl){b.headingEl.setHtml(a)}this.setHeaderConfig(a,'title','setTitle',!1)},setHeaderConfig:function(b,e,d,j){var a=this,i=a[e],c=a.header,f=a.placeholder,h=a.reExpander,g;if(b!==i){a[e]=b;if(c){if(c.isHeader){c[d](b)}else if(j){c[e]=b}}else if(a.rendered||a.afterHeaderInit){a.updateHeader()}if(h){h[d](b)}if(f&&f[d]){f[d](b)}g=e.toLowerCase()+'change';if(a.hasListeners[g]){a.fireEvent(g,a,b,i)}}},setHiddenDocked:function(){var a=this,b=new Ext.dom.CompositeElement();a.hiddenOnCollapse.add(a.body);b.add(a.body);a.setDockedItemsVisibility(b,!1)},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 a=this,b=a.collapseTool,c;if(!b&&a.collapsible){a.collapseDirection=a.collapseDirection||a.getHeaderPosition()||'top';c={xtype:'tool',handler:a.toggleCollapse,scope:a};if(a.isAccordionPanel){c.focusable=!1;c.ariaRole='presentation'}a.collapseTool=a.expandTool=b=Ext.widget(c)}if(b){if(a.collapsed&&!a.isPlaceHolderCollapse()){b.setType('expand-'+a.getOppositeDirection(a.collapseDirection));b.setTooltip(a.expandToolText)}else {b.setType('collapse-'+a.collapseDirection);b.setTooltip(a.collapseToolText)}}},navigateAccordionHeader:function(a){var c=this,d,b;d=a.getKey();switch(d){case a.UP:case a.LEFT:b=c.findAccordionSibling('prev');break;case a.DOWN:case a.RIGHT:b=c.findAccordionSibling('next');break;case a.HOME:b=c.findAccordionSibling('first');break;case a.END:b=c.findAccordionSibling('last');break;case a.DELETE:b=c.findAccordionSibling('prev')||c.findAccordionSibling('next');if(!b){a.doNotClose=!0};break;}a.stopEvent();if(b&&b!==c){b.header.titleCmp.focus()}},navigateAccordionBody:function(b){var a;if(b.getKey()===b.UP){a=this}b.stopEvent();if(a){a.header.titleCmp.focus()}},findAccordionSibling:function(e,d){var b=this,c='[isAccordionPanel]',a;switch(e){case 'prev':a=b.prev(c);if(!a){if(b.accordionWrapOver){a=b.ownerCt.child(c+':last')}else if(d){a=b}};break;case 'next':a=b.next(c);if(!a){if(b.accordionWrapOver){a=b.ownerCt.child(c+':first')}else if(d){a=b}};break;case 'first':a=b.ownerCt.child(c+':first');break;case 'last':a=b.ownerCt.child(c+':last');break;}return a},fireDefaultButton:function(b){var c=this,d,a;if(b.target.tagName==='TEXTAREA'||b.target.getAttribute('aria-multiline')==='true'){return !0}d=c.lookupReferenceHolder(!1)||c;a=d.lookupReference(c.defaultButton);if(a&&a.click){a.click(b);b.stopEvent();return !1}},maybeClose:function(b){var a=this;if(a.closable){a.navigateAccordionHeader(b);if(!b.doNotClose){a.close()}}},canFocus:function(b,a){if(this.collapsed){return !!(this.placeholder&&this.placeholder.canFocus(b,a))}return this.mixins.focusable.canFocus.call(this,b,a)},focus:function(){var b=this,a=b.placeholder;if(b.collapsed&&a&&a.canFocus()){a.focus.apply(a,arguments)}else {Ext.container.Container.prototype.focus.apply(this,arguments)}},onFocusEnter:function(c){var b=this,a=b.ariaEl.dom;Ext.container.Container.prototype.onFocusEnter.call(this,c);if(b.isAccordionPanel&&a){a.setAttribute('aria-selected',!0)}},onFocusLeave:function(c){var b=this,a=b.ariaEl.dom;Ext.container.Container.prototype.onFocusLeave.call(this,c);if(b.isAccordionPanel&&a){a.setAttribute('aria-selected','false')}},updateHeaderPosition:function(b){var a=this.header;if(a&&a.isHeader){a.setDock(b)}},unghost:function(e,d,f){var b=this,c=b.el,a=b.ghostPanel;if(!a){return}c.show();c.setVisibilityMode(b.elVisMode);if(e!==!1){if(d!==!1){b.setPagePosition(a.getXY())}}else {c.hide()}a.el.hide();a.setHiddenState(!0)},updateHeader:function(n){var a=this,b=a.header,e=a.getTitle(),g=a.tools,k=a.getIcon(),j=a.getGlyph(),i=a.getIconCls(),m=j||k||i,d=a.ariaEl.dom,h=a.getHeaderPosition(),l=h==='left'||h==='right',f,c;if(Ext.isObject(b)||(b!==!1&&(n||(e||m)||(g&&g.length)||(a.collapsible&&!a.titleCollapse)))){if(b&&b.isHeader){b.dockToEl=!0;b.show()}else {if(Ext.isObject(b)){a.syncHeaderConfigs(b)}b=a.header=Ext.widget(Ext.merge({xtype:'header',title:e,titleAlign:a.getTitleAlign(),titlePosition:a.getTitlePosition(),vertical:l,dock:a.getHeaderPosition()||'top',dockToEl:!0,titleRotation:a.getTitleRotation(),textCls:a.headerTextCls,iconCls:i,iconAlign:a.getIconAlign(),icon:k,glyph:j,baseCls:a.baseCls+'-header',tools:g,ui:a.ui,id:a.id+'_header',overCls:a.headerOverCls,indicateDrag:a.draggable,frame:(a.frame||a.alwaysFramed)&&a.frameHeader,ignoreParentFrame:a.frame||a.overlapHeader,ignoreBorderManagement:a.frame||a.ignoreHeaderBorderManagement,isAccordionHeader:a.isAccordionPanel,ownerCt:a,synthetic:!0,listeners:a.collapsible&&a.titleCollapse?{click:a.toggleCollapse,scope:a}:null},a.header));a.addDocked(b,0)}if(a.isAccordionPanel){if(d){d.setAttribute('aria-labelledby',b.id+'-title');d.removeAttribute('aria-label')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-labelledby']=b.id+'-title';delete c['aria-label']}}else {if(e){if(a.ariaRole!=='tabpanel'){if(d){d.setAttribute('aria-labelledby',b.id+'-title-textEl');d.removeAttribute('aria-label')}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-labelledby']=b.id+'-title-textEl';delete c['aria-label']}}}else if(a.ariaRenderAttributes){delete a.ariaRenderAttributes['aria-label']}}}else {if(b){b.hide()}e=Ext.util.Format.stripTags(e);if(d){if(!d.hasAttribute('aria-labelledby')){if(e){d.setAttribute('aria-label',e)}else {d.removeAttribute('aria-label')}}}else {c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});if(!c['aria-labelledby']){if(e){c['aria-label']=e}else {delete c['aria-label']}}}}if(a.isViewportBorderChild&&!a.hasOwnProperty('ariaRole')){a.ariaRole='region'}if(e&&a.ariaRole==='region'){f=a.headingEl;if(f){f.setHtml(e)}else {if(a.rendered){a.headingEl=Ext.dom.Helper.insertFirst(a.el,{tag:'div',id:a.id+'-headingEl',role:'heading','class':'x-hidden-clip',style:'height:0',html:e},!0);d.removeAttribute('aria-label');d.setAttribute('aria-labelledby',a.id+'-headingEl')}else {a.headingText=a.title;c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-labelledby']=a.id+'-headingEl';delete c['aria-label']}}}else if(a.headingEl){a.headingEl.destroy();a.headingEl=null}},statics:{floatCls:'x-border-region-slide-in'},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 a=this,b=a.draggable;if(!a.header&&!b.delegate){a.updateHeader(!0)}if(a.header||b.delegate){b=Ext.apply({el:a.el,delegate:a.header&&a.header.el},b);if(a.constrain||a.constrainHeader){b.constrain=a.constrain;b.constrainDelegate=a.constrainHeader;b.constrainTo=a.constrainTo||a.container}b=a.dd=new Ext.util.ComponentDragger(a,b);a.relayEvents(b,['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(f){var a=this,e=a.el,c,b,d=function(){a.slideOutFloatedPanelEnd();a.el.removeCls('x-border-region-slide-in');a.fireEvent('endfloat',a)};if(a.isSliding||a.destroyed){return}a.isSliding=!0;a.floated=!1;a.slideOutFloatedPanelBegin();if(f){e.hide();return d()}if(typeof a.collapsed==='string'){c=a.convertCollapseDir(a.collapsed)}a.fireEvent('beginfloat',a);e.slideOut(c,{preserveScroll:!0,duration:Ext.Number.from(a.animCollapse,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:d}});if(this.containsFocus){b=this.findFocusTarget();if(b){b.focus()}}},slideOutFloatedPanelBegin:function(){var a=this;a.collapsed=a.floatedFromCollapse;a.setHiddenState(!0);a.floatedFromCollapse=null;Ext.destroy(a.pointerLeaveListener,a.phHoverListeners,a.elHoverListeners)},slideOutFloatedPanelEnd:function(b){var a=this;if(a.collapseTool){a.collapseTool.el.show()}a.slideOutTask.cancel();a.isSliding=!1;if(!b){a.fireEvent('unfloat',a)}},syncHeaderConfigs:function(c){var d=this,a,b;for(a in c){b=c[a];if(d.headerConfigs[a]&&b!==undefined){d[a]=b}}}}},0,["panel"],["component","box","container","panel"],{"component":!0,"box":!0,"container":!0,"panel":!0},["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.cmd.derive('Ext.layout.container.Table',Ext.layout.container.Container,{alternateClassName:'Ext.layout.TableLayout',type:'table',createsInnerCt:!0,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=!0},getLayoutItems:function(){var f=this,c=[],d=Ext.layout.container.Container.prototype.getLayoutItems.call(this),e=d.length,b,a;for(a=0;a<e;a++){b=d[a];if(!b.hidden){c.push(b)}}return c},getHiddenItems:function(){var c=[],d=this.owner.items.items,e=d.length,b,a;for(b=0;b<e;++b){a=d[b];if(a.rendered&&a.hidden){c.push(a)}}return c},renderChildren:function(){var a=this,k=a.getLayoutItems(),h=a.tbody.dom,n=h.rows,l=k.length,m=a.getHiddenItems(),i,j,d,f,c,e,g,b;i=a.calculateCells(k);for(b=0;b<l;b++){j=i[b];d=j.rowIdx;f=j.cellIdx;c=k[b];e=n[d];if(!e){e=h.insertRow(d);if(a.trAttrs){e.set(a.trAttrs)}}g=Ext.get(e.cells[f]||e.insertCell(f));if(!c.rendered){a.renderItem(c,g,0)}else if(!a.isValidParent(c,g,d,f,h)){a.moveItem(c,g,0)}if(a.tdAttrs){g.set(a.tdAttrs)}if(c.tdAttrs){g.set(c.tdAttrs)}g.set({colSpan:c.colspan||1,rowSpan:c.rowspan||1,cls:a.cellCls+' '+(c.cellCls||'')});if(!i[b+1]||i[b+1].rowIdx!==d){f++;while(e.cells[f]){e.deleteCell(f)}}}d++;while(h.rows[d]){h.deleteRow(d)}for(b=0,l=m.length;b<l;++b){a.ensureInDocument(m[b].getEl())}},ensureInDocument:function(b){var a=b.dom.parentNode;while(a){if(a.tagName.toUpperCase()==='BODY'){return}a=a.parentNode}Ext.getDetachedBody().appendChild(b,!0)},calculate:function(a){if(!a.hasDomProp('containerChildrenSizeDone')){this.done=!1}else {var g=a.targetContext,c=a.widthModel.shrinkWrap,b=a.heightModel.shrinkWrap,e=b||c,f=e&&this.table.dom,d=e&&g.getPaddingInfo();if(c){a.setContentWidth(f.offsetWidth+d.width,!0)}if(b){a.setContentHeight(f.offsetHeight+d.height,!0)}}},calculateCells:function(j){var i=[],h=0,b=0,f=0,e=this.columns||Infinity,c=[],k=j.length,g,d,a;for(d=0;d<k;d++){g=j[d];while(b>=e||c[b]>0){if(b>=e){b=0;f=0;h++;for(a=0;a<e;a++){if(c[a]>0){c[a]--}}}else {b++}}i.push({rowIdx:h,cellIdx:f});for(a=g.colspan||1;a;--a){c[b]=g.rowspan||1;++b}++f}return i},getRenderTree:function(){var a=this,h=a.getLayoutItems(),i=[],m=Ext.apply({tag:'table',id:a.owner.id+'-table',"data-ref":'table',role:'presentation',cls:a.tableCls,cellspacing:0,cellpadding:0,cn:{tag:'tbody',id:a.owner.id+'-tbody',"data-ref":'tbody',role:'presentation',cn:i}},a.tableAttrs),k=a.tdAttrs,d,n=h.length,b,f,c,g,j,e,l;l=a.calculateCells(h);for(d=0;d<n;d++){b=h[d];f=l[d];g=f.rowIdx;j=f.cellIdx;c=i[g];if(!c){c=i[g]={tag:'tr',role:'presentation',cn:[]};if(a.trAttrs){Ext.apply(c,a.trAttrs)}}e=c.cn[j]={tag:'td',role:'presentation'};if(k){Ext.apply(e,k)}Ext.apply(e,{colSpan:b.colspan||1,rowSpan:b.rowspan||1,cls:a.cellCls+' '+(b.cellCls||'')});a.configureItem(b);e.cn=b.getRenderTree()}return m},isValidParent:function(a,d,c,b){if(arguments.length===3){return this.table.isAncestor(a.el)}return a.el.dom.parentNode===this.tbody.dom.rows[c].cells[b]},destroy:function(){if(this.owner.rendered){var c=this.getRenderTarget(),b,a,d;if(c){b=c.query('.'+this.cellCls,!1);for(a=0,d=b.length;a<d;a++){b[a].destroy()}}}Ext.layout.container.Container.prototype.destroy.call(this)}},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:!0,frameHeader:!1,titleAlign:'center',noTitleCls:'notitle',bodyAriaRole:'toolbar',focusableContainerEl:'body',focusableContainer:!0,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.call(this)},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)},beforeRender:function(){var a=this,b;Ext.panel.Panel.prototype.beforeRender.call(this);if(a.afterHeaderInit&&!a.header&&a.title){b=a.bodyAriaRenderAttributes||(a.bodyAriaRenderAttributes={});b['aria-label']=a.title}},updateHeader:function(e){var a=this,c=a.body,d,b;Ext.panel.Panel.prototype.updateHeader.call(this,e);d=a.header;if(d){if(c){c.dom.setAttribute('aria-labelledby',d.id+'-title-textEl');c.dom.removeAttribute('aria-label')}else {b=a.bodyAriaRenderAttributes||(a.bodyAriaRenderAttributes={});b['aria-labelledby']=d.id+'-title-textEl';delete b['aria-label']}}else if(a.title){if(c){c.dom.setAttribute('aria-label',a.title);c.dom.removeAttribute('aria-labelledby')}else {b=a.bodyAriaRenderAttributes||(a.bodyAriaRenderAttributes={});b['aria-label']=a.title;delete b['aria-labelledby']}}},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":!0,"box":!0,"container":!0,"panel":!0,"buttongroup":!0},["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,clearPropertiesOnDestroy:!1,clearPrototypeOnDestroy:!1,disabled:0,constructor:function(a){Ext.apply(this,a)},destroy:function(){this.unbind();this.callParent()},bind:function(b){var a=this;a.target=b;b.on('beforedestroy',a.disable,a);a.onContainerAdd(b)},unbind:function(){var b=this,a=b.target;if(a&&!a.destroying&&!a.destroyed){b.onContainerRemove(a,a);a.un('beforedestroy',b.disable,b)}b.items=Ext.destroy(b.items)},disable:function(){++this.disabled},enable:function(){if(this.disabled>0){--this.disabled}},handleAdd:function(b,a){if(!this.disabled){if(Ext.ComponentQuery.is(a,this.selector)){this.onItemAdd(a.ownerCt,a)}if(a.isQueryable){this.onContainerAdd(a)}}},onItemAdd:function(e,a){var b=this,d=b.items,c=b.addHandler;if(!b.disabled){if(c){c.call(b.scope||a,a)}if(d){d.add(a)}}a.clearPropertiesOnDestroy=a.clearPrototypeOnDestroy=!1},onItemRemove:function(e,b){var a=this,d=a.items,c=a.removeHandler;if(!a.disabled){if(c){c.call(a.scope||b,b)}if(d){d.remove(b)}}},onContainerAdd:function(d,g){var a=this,c,e,b,f;if(d.isContainer){d.on({scope:a,add:a.handleAdd,dockedadd:a.handleAdd,remove:a.handleRemove,dockedremove:a.handleRemove})}if(g!==!0){c=d.query(a.selector);for(b=0,e=c.length;b<e;++b){f=c[b];a.onItemAdd(f.ownerCt,f)}}c=d.query('>container');for(b=0,e=c.length;b<e;++b){a.onContainerAdd(c[b],!0)}d.clearPropertiesOnDestroy=d.clearPrototypeOnDestroy=!1},handleRemove:function(c,a){var b=this;if(!b.disabled){if(Ext.ComponentQuery.is(a,b.selector)){b.onItemRemove(c,a)}if(a.isQueryable){b.onContainerRemove(c,a)}}},onContainerRemove:function(g,c){var d=this,b,a,e,f;if(!c.destroyed&&c.isContainer){d.removeCtListeners(c);if(!c.destroying){b=c.query(d.selector);for(a=0,e=b.length;a<e;++a){f=b[a];d.onItemRemove(f.ownerCt,f)}b=c.query('container');for(a=0,e=b.length;a<e;++a){d.removeCtListeners(b[a])}}}d.invalidateItems(!0)},removeCtListeners:function(b){var a=this;b.un({scope:a,add:a.handleAdd,dockedadd:a.handleAdd,remove:a.handleRemove,dockedremove:a.handleRemove})},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 a=this,b=a.invalidateHandler;if(c&&b){b.call(a.scope||a,a)}a.items=Ext.destroy(a.items)}},1,0,0,0,0,0,[Ext.container,'Monitor'],0));(Ext.cmd.derive('Ext.plugin.Responsive',Ext.mixin.Responsive,{id:'responsive',isPlugin:!0,weight:-1000,$configStrict:!1,constructor:function(c){var a=this,b=c.cmp,d={responsiveConfig:b.responsiveConfig,responsiveFormulas:b.responsiveFormulas};delete d.cmp;a.cmp=b;a.initConfig(d);a.setConfig(c);if(a.transformed){b.setConfig(a.transformed);a.transformed=null}},init:Ext.emptyFn,privates:{transformInstanceConfig:function(c){var a=Ext.mixin.Responsive.prototype.transformInstanceConfig.call(this,c);if(a.ptype){a=Ext.apply({},a);delete a.ptype}this.transformed=a;var b=Ext.apply({},c);delete b.ptype;delete b.responsiveConfig;delete b.responsiveFormulas;return b},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()}},destroy:function(){var a=this.cmp.el;Ext.plugin.Responsive.prototype.destroy.call(this);if(a){delete a.setHeight;delete a.setWidth}},statics:{decorate:function(a){Ext.applyIf(a.prototype||a,{ariaRole:'application',viewportCls:'x-viewport'});Ext.override(a,{isViewport:!0,preserveElOnDestroy:!0,initComponent:function(){this.callParent();this.setupViewport()},getSizeModel:function(){var b=Ext.layout.SizeModel.configured;return b.pairsByHeightOrdinal[b.ordinal]},handleViewportResize:function(){var b=this,c=Ext.dom.Element,e=c.getViewportWidth(),d=c.getViewportHeight();if(e!==b.width||d!==b.height){b.setSize(e,d)}},setupViewport:function(){var b=this,c=document.body;if(!c.id){c.id=b.id}c.setAttribute('data-componentid',b.id);if(!b.ariaStaticRoles[b.ariaRole]){c.setAttribute('role',b.ariaRole)}c=b.el=Ext.getBody();Ext.fly(document.documentElement).addCls(b.viewportCls);c.setHeight=c.setWidth=Ext.emptyFn;c.dom.scroll='no';b.allowDomMove=!1;b.renderTo=c;if(Ext.supports.Touch){b.addMeta('apple-mobile-web-app-capable','yes')}Ext.getScrollbarSize();b.width=b.height=undefined;b.initialViewportHeight=Ext.Element.getViewportHeight();b.initialViewportWidth=Ext.Element.getViewportWidth()},afterLayout:function(b){if(Ext.supports.Touch){document.body.scrollTop=0}this.callParent([b])},onRender:function(){var b=this,d=b.getOverflowEl(),c=Ext.getBody();b.callParent(arguments);Ext.setViewportScroller(b.getScrollable()||{x:!1,y:!1,element:c});if(b.getOverflowEl()!==c){c.setStyle('overflow','hidden')}b.width=b.initialViewportWidth;b.height=b.initialViewportHeight;b.initialViewportWidth=b.initialViewportHeight=null},initInheritedState:function(d,e){var b=this,c=Ext.rootInheritedState;if(d!==c){b.initInheritedState(b.inheritedState=c,b.inheritedStateInner=Ext.Object.chain(c))}else {b.callParent([d,e])}},doDestroy:function(){var b=this,e=Ext.rootInheritedState,d=b.scrollable,c;if(d){d.setConfig({x:!0,y:!0});b.scrollable=null}for(c in e){if(c!=='rtl'){delete e[c]}}delete b.el.setHeight;delete b.el.setWidth;b.removeUIFromElement();b.el.removeCls(b.baseCls);Ext.fly(document.body.parentNode).removeCls(b.viewportCls);b.callParent()},addMeta:function(d,c){var b=document.createElement('meta');b.setAttribute('name',d);b.setAttribute('content',c);Ext.getHead().appendChild(b,!0)},privates:{applyTargetCls:function(b){var c=this.el;if(c===this.getTargetEl()){this.el.addCls(b)}else {this.callParent([b])}},disableTabbing:function(){var b=this.el;if(b){b.saveTabbableState({skipSelf:!0})}},enableTabbing:function(){var b=this.el;if(b){b.restoreTabbableState({skipSelf:!0})}}}})}},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',ariaRole:'application',privates:{updateResponsiveState:function(){this.handleViewportResize();this.mixins.responsive.updateResponsiveState.call(this)}}},0,["viewport"],["component","box","container","viewport"],{"component":!0,"box":!0,"container":!0,"viewport":!0},["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:!0,setsItemSize:!0,beginLayoutCycle:function(f){var h=this,c=0,b,a,e,d,g;Ext.layout.container.Auto.prototype.beginLayoutCycle.apply(this,arguments);e=f.childItems;g=e.length;for(d=0;d<g;++d){a=e[d];b=a.target.anchorSpec;if(b){if(a.widthModel.calculated&&b.right){c|=1}if(a.heightModel.calculated&&b.bottom){c|=2}if(c===3){break}}}f.anchorDimensions=c},calculateItems:function(i,b){var m=this,j=i.childItems,q=j.length,k=b.gotHeight,l=b.gotWidth,o=b.height,p=b.width,n=(l?1:0)|(k?2:0),f=i.anchorDimensions,h,a,g,c,e,d;if(!f){return !0}for(e=0;e<q;e++){a=j[e];g=a.getMarginInfo();h=a.target.anchorSpec;if(l&&a.widthModel.calculated){d=h.right(p)-g.width;d=m.adjustWidthAnchor(d,a);a.setWidth(d)}if(k&&a.heightModel.calculated){c=h.bottom(o)-g.height;c=m.adjustHeightAnchor(c,a);a.setHeight(c)}}return (n&f)===f},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(a,e,d){if(a&&a!=='none'){var b=this.anchorFactory,c;if(this.parseAnchorRE.test(a)){return b.standard(d-e)}if(a.indexOf('%')!==-1){return b.ratio(parseFloat(a.replace('%',''))*0.01)}c=parseInt(a,10);if(!isNaN(c)){return b.offset(c)}}return null},adjustWidthAnchor:function(a,b){return a},adjustHeightAnchor:function(a,b){return a},configureItem:function(a){var d=this,b=d.owner,g=a.anchor,f,c,e;Ext.layout.container.Auto.prototype.configureItem.apply(this,arguments);if(!a.anchor&&a.items&&!Ext.isNumber(a.width)){a.anchor=g=d.defaultAnchor}if(b.anchorSize){if(typeof b.anchorSize==='number'){c=b.anchorSize}else {c=b.anchorSize.width;e=b.anchorSize.height}}else {c=b.initialConfig.width;e=b.initialConfig.height}if(g){f=g.split(' ');a.anchorSpec={right:d.parseAnchor(f[0],a.initialConfig.width,c),bottom:d.parseAnchor(f[1],a.initialConfig.height,e)}}},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(e){var a=e.anchorSpec,d='$',c=this.sizePolicy,b;if(a){b=this.owner.getSizeModel();if(a.right&&!b.width.shrinkWrap){c=c.r}if(a.bottom&&!b.height.shrinkWrap){d='b'}}return c[d]}},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:!0,closable:!0,collapsible:!0,animCollapse:!0,titleCollapse:!0,stateful:!0,draggable:{moveOnDrag:!1},animateClose:!0,loadMask:!0,loadMessage:'Loading...',minHeight:90,resizable:!0,resizeHandles:'s',doClose:function(){var a=this;if(a.animateClose){if(!a.closing){a.closing=!0;a.el.animate({opacity:0,callback:a.finishClose,scope:a})}}else {a.finishClose()}},finishClose:function(){var a=this,b=a.closeAction;a.closing=!1;a.fireEvent('close',a);Ext.suspendLayouts();a[b]();Ext.resumeLayouts(!0);if(b==='hide'){a.el.setOpacity(1)}},afterRender:function(){Ext.panel.Panel.prototype.afterRender.call(this);if(this.loading){this.onViewBeforeLoad()}},doCollapseExpand:function(a){this._expandCollapseRoot=this._isLayoutRoot;this._isLayoutRoot=!0;Ext.panel.Panel.prototype.doCollapseExpand.apply(this,arguments)},afterExpand:function(){this._isLayoutRoot=this._expandCollapseRoot;Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},afterCollapse:function(){this._isLayoutRoot=this._expandCollapseRoot;Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},getLoadMask:function(){var c=this,a=c.rendered&&c.loadMask,b;if(a&&!a.isComponent){b={target:c};if(a===!0){a=b}else {Ext.apply(b,a)}c.loadMask=a=Ext.ComponentManager.create(b,'loadmask')}return a||null},onAdd:function(a){Ext.panel.Panel.prototype.onAdd.apply(this,arguments);a.on({beforeload:'onViewBeforeLoad',load:'onViewLoaded',scope:this})},onViewBeforeLoad:function(){this.loading=!0;var a=this.getLoadMask();if(a){a.show()}},onViewLoaded:function(){this.loading=!1;var a=this.getLoadMask();if(a){a.hide()}var c=this.items.getAt(0);if(c.getTitle){var b=c.getTitle();if(b){this.setTitle(b)}}},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":!0,"box":!0,"container":!0,"panel":!0,"dashboard-panel":!0},["widget.dashboard-panel"],0,[Ext.dashboard,'Panel'],0));(Ext.cmd.derive('Ext.dashboard.Column',Ext.container.Container,{layout:'anchor',isDashboardColumn:!0,defaultType:'dashboard-panel',cls:'x-dashboard-column',synthetic:!0,onRemove:function(i,h){var b=this,e=b.ownerCt,c,d,g,f=0,a;if(e&&b.items.getCount()===0){c=Ext.Array.filter(e.query('>'+b.xtype+'[rowIndex='+b.rowIndex+']'),function(a){return a!==b});d=c.length;if(!b.destroying&&!b.destroyed){e.remove(b);if(d===1){c[0].columnWidth=1}else {for(a=0;a<d;a++){f+=c[a].columnWidth||0}for(a=0;a<d;a++){g=c[a].columnWidth;c[a].columnWidth=Math.floor(g/f*100)/100}}if(h){e.updateLayout()}}}}},0,["dashboard-column"],["component","box","container","dashboard-column"],{"component":!0,"box":!0,"container":!0,"dashboard-column":!0},["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:!0,manageOverflow:!0,setsItemSize:!0,needsItemSize:!0,isItemShrinkWrap:function(a){return !0},getItemSizePolicy:function(b,a){if(b.columnWidth){if(!a){a=this.owner.getSizeModel()}if(!a.width.shrinkWrap){return this.columnWidthSizePolicy}}return this.autoSizePolicy},calculateItems:function(g,k){var i=this,l=i.columnCount,o=g.targetContext,j=g.childItems,n=j.length,f=0,m=k.gotWidth,h,e,c,a,d,b;if(m===!1){o.domBlock(i,'width');h=!0}else if(m){e=k.width}else {return !0}for(c=0;c<n;++c){a=j[c];if(l){if(c%l){a.setProp('clear',null)}else {a.setProp('clear',i.clearSide)}}d=a.getMarginInfo().width;if(!a.widthModel.calculated){b=a.getProp('width');if(typeof b!=='number'){a.block(i,'width');h=!0}f+=b+d}}if(!h){e=(e<f)?0:e-f;for(c=0;c<n;++c){a=j[c];if(a.widthModel.calculated){d=a.marginInfo.width;b=a.target.columnWidth;b=Math.floor(b*e)-d;b=a.setWidth(b);f+=b+d}}g.setContentWidth(f+g.paddingContext.getPaddingInfo().width)}return !h}},0,0,0,0,["layout.column"],0,[Ext.layout.container,'Column',Ext.layout,'ColumnLayout'],0));(Ext.cmd.derive('Ext.dd.DragTracker',Ext.Base,{active:!1,trackOver:!1,tolerance:5,autoStart:!1,constructor:function(b){var a=this;Ext.apply(a,b);a.dragRegion=new Ext.util.Region(0,0,0,0);if(a.el){a.initEl(a.el)}a.mixins.observable.constructor.call(a);if(a.disabled){a.disable()}if(Ext.supports.Touch){Ext.getWin().on({touchstart:'onWindowTouchStart',scope:a,capture:!0})}},initEl:function(d){var a=this,f=a.delegate,c,b,e;a.el=d=Ext.get(d);if(f){if(f.isElement){a.handle=f;e=f}}else {e=d}if(e){e.addCls('x-unselectable')}a.delegate=a.handle?undefined:a.delegate;if(Ext.supports.Touch){c=Ext.Component.from(d);b=c&&c.getScrollable();if(b){c=b.getElement();if(a.handle&&!c.contains(a.handle)){b=!1}else if(a.delegate&&!c.down(a.delegate)){b=!1}else {b=b.getX()||b.getY()}}}if(!a.handle){a.handle=d}a.handleListeners={scope:a,delegate:a.delegate,dragstart:a.onDragStart};if(b){a.handleListeners.longpress=a.onMouseDown;a.handleListeners.mousedown={fn:a.onMouseDown,delegate:a.delegate,translate:!1};a.handleListeners.contextmenu=function(a){a.stopEvent()}}else {a.handleListeners.mousedown=a.onMouseDown}if(!Ext.supports.TouchEvents&&(a.trackOver||a.overCls)){Ext.apply(a.handleListeners,{mouseover:a.onMouseOver,mouseout:a.onMouseOut})}a.mon(a.handle,a.handleListeners);a.keyNav=new Ext.util.KeyNav({target:d,up:a.onResizeKeyDown,left:a.onResizeKeyDown,right:a.onResizeKeyDown,down:a.onResizeKeyDown,scope:a})},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},destroy:function(){this.endDrag({});Ext.destroy(this.keyNav);this.callParent()},onWindowTouchStart:function(a){if(this.mouseIsDown){this.onMouseUp(a)}},onMouseOver:function(d,h){var a=this,f,b,e,g,c;if(!a.disabled){if(d.within(d.target,!0,!0)||a.delegate){f=a.handleCls;a.mouseIsOut=!1;if(f){for(e=0,g=a.handleEls.length;e<g;e++){b=a.handleEls[e];c=b.delegateCls;if(!c){c=b.delegateCls=[f,'-',b.region,'-over'].join('')}b.addCls([c,a.overCls])}}a.fireEvent('mouseover',a,d,a.delegate?d.getTarget(a.delegate,h):a.handle)}}},onMouseOut:function(e){var a=this,c,b,d;if(a.mouseIsDown){a.mouseIsOut=!0}else {if(a.handleCls){for(b=0,d=a.handleEls.length;b<d;b++){c=a.handleEls[b];c.removeCls([c.delegateCls,a.overCls])}}a.fireEvent('mouseout',a,e)}},onMouseDown:function(b,d){var a=this,c=b.parentEvent||b;if(b.button||a.disabled||c.dragTracked){return}a.dragTarget=a.delegate?d:a.handle.dom;a.startXY=a.lastXY=b.getXY();a.startRegion=Ext.fly(a.dragTarget).getRegion();if(a.fireEvent('mousedown',a,b)===!1||a.fireEvent('beforedragstart',a,b)===!1||a.onBeforeStart(b)===!1){return}a.mouseIsDown=!0;c.dragTracked=!0;a.el.setCapture();b.stopPropagation();if(a.preventDefault!==!1||b.pointerType==='touch'){b.preventDefault()}Ext.getDoc().on({scope:a,capture:!0,mouseup:a.onMouseUp,mousemove:a.onMouseMove,selectstart:a.stopSelect});a.dragEnded=!1;if(!a.tolerance){a.triggerStart()}else if(a.autoStart){a.timer=Ext.defer(a.triggerStart,a.autoStart===!0?1000:a.autoStart,a,[b])}},onMouseMove:function(b,e){var a=this,c=b.getXY(),d=a.startXY;b.stopPropagation();if(a.preventDefault!==!1){b.preventDefault()}if(a.dragEnded){return}a.lastXY=c;if(!a.active){if(Math.max(Math.abs(d[0]-c[0]),Math.abs(d[1]-c[1]))>a.tolerance){a.triggerStart(b)}else {return}}if(a.fireEvent('mousemove',a,b)===!1){a.onMouseUp(b)}else {a.onDrag(b);a.fireEvent('drag',a,b)}},onMouseUp:function(b){var a=this;a.mouseIsDown=!1;if(a.mouseIsOut){a.mouseIsOut=!1;a.onMouseOut(b)}if(a.preventDefault!==!1){b.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}a.fireEvent('mouseup',a,b);a.endDrag(b)},endDrag:function(b){var a=this,c=a.active;Ext.getDoc().un({mousemove:a.onMouseMove,mouseup:a.onMouseUp,selectstart:a.stopSelect,capture:!0,scope:a});a.clearStart();a.active=!1;a.dragEnded=!0;if(c){a.onEnd(b);a.fireEvent('dragend',a,b)}else {a.onCancel(b)}a._constrainRegion=null},triggerStart:function(b){var a=this;a.clearStart();a.active=!0;a.onStart(b);a.fireEvent('dragstart',a,b)},clearStart:function(){var a=this.timer;if(a){Ext.undefer(a);this.timer=null}},stopSelect:function(a){a.stopEvent();return !1},onBeforeStart:function(a){},onStart:function(a){},onDrag:function(a){},onCancel: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 a=this.getXY(c),b=this.startXY;return [a[0]-b[0],a[1]-b[1]]},onDragStart:function(a){a.stopPropagation()},constrainModes:{point:function(d,b){var a=d.dragRegion,c=d.getConstrainRegion();if(!c){return b}a.x=a.left=a[0]=a.right=b[0];a.y=a.top=a[1]=a.bottom=b[1];a.constrainTo(c);return [a.left,a.top]},dragTarget:function(e,c){var f=e.startXY,a=e.startRegion.copy(),b=e.getConstrainRegion(),d;if(!b){return c}a.translateBy(c[0]-f[0],c[1]-f[1]);if(a.right>b.right){c[0]+=d=(b.right-a.right);a.left+=d}if(a.left<b.left){c[0]+=(b.left-a.left)}if(a.bottom>b.bottom){c[1]+=d=(b.bottom-a.bottom);a.top+=d}if(a.top<b.top){c[1]+=(b.top-a.top)}return c}}},1,0,0,0,0,[['observable',Ext.util.Observable]],[Ext.dd,'DragTracker'],0));(Ext.cmd.derive('Ext.resizer.SplitterTracker',Ext.dd.DragTracker,{enabled:!0,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(g){var a=this,c=a.getPrevCmp(),b=a.getNextCmp(),e=a.getSplitter().collapseEl,f=g.getTarget(),d;if(!c||!b){return !1}if(e&&f===e.dom){return !1}if(b.collapsed||c.collapsed){return !1}a.prevBox=c.getEl().getBox();a.nextBox=b.getEl().getBox();a.constrainTo=d=a.calculateConstrainRegion();if(!d){return !1}return d},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(b){var a=this,d=a.getSplitter(),f=b.getKey(),e=d.orientation==='vertical'?0:1,g=f===b.UP||f===b.LEFT?-1:1,c;if(!a.active&&a.onBeforeStart(b)){Ext.fly(b.target).on('keyup',a.onResizeKeyUp,a);a.triggerStart(b);a.onMouseDown(b);a.startXY=d.getXY();a.lastKeyDownXY=Ext.Array.slice(a.startXY);c=a.easing=new Ext.fx.easing.Linear();c.setStartTime(Ext.Date.now());c.setStartValue(1);c.setEndValue(4);c.setDuration(2000)}if(a.active){a.lastKeyDownXY[e]=Math.round(a.lastKeyDownXY[e]+(g*a.easing.getValue()));a.lastXY=a.lastKeyDownXY;d.setXY(a.getXY('dragTarget'))}},onResizeKeyUp:function(a){this.onMouseUp(a)},calculateConstrainRegion:function(){var a=this,k=a.getSplitter(),j=k.getWidth(),e=k.defaultSplitMin,l=k.orientation,c=a.prevBox,g=a.getPrevCmp(),b=a.nextBox,f=a.getNextCmp(),i,h,d;if(l==='vertical'){d={prevCmp:g,nextCmp:f,prevBox:c,nextBox:b,defaultMin:e,splitWidth:j};i=new Ext.util.Region(c.y,a.getVertPrevConstrainRight(d),c.bottom,a.getVertPrevConstrainLeft(d));h=new Ext.util.Region(b.y,a.getVertNextConstrainRight(d),b.bottom,a.getVertNextConstrainLeft(d))}else {i=new Ext.util.Region(c.y+(g.minHeight||e),c.right,(g.maxHeight?c.y+g.maxHeight:b.bottom-(f.minHeight||e))+j,c.x);h=new Ext.util.Region((f.maxHeight?b.bottom-f.maxHeight:c.y+(g.minHeight||e))-j,b.right,b.bottom-(f.minHeight||e),b.x)}return i.intersect(h)},performResize:function(p,b){var c=this,k=c.getSplitter(),n=k.orientation,f=c.getPrevCmp(),e=c.getNextCmp(),l=k.ownerCt,j=l.query('>[flex]'),o=j.length,h=n==='vertical',i=0,d=h?'width':'height',m=0,g,a;for(;i<o;i++){g=j[i];a=h?g.getWidth():g.getHeight();m+=a;g.flex=a}b=h?b[0]:b[1];if(f){a=c.prevBox[d]+b;if(f.flex){f.flex=a}else {f[d]=a}}if(e){a=c.nextBox[d]-b;if(e.flex){e.flex=a}else {e[d]=a}}l.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(f){var a=this,d=a.getOffset('dragTarget'),b=a.getSplitter(),c=b.getEl(),e=b.orientation;if(e==="vertical"){c.setX(a.startRegion.left+d[0])}else {c.setY(a.startRegion.top+d[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.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(k,i){var a=this,c=a.getPrevCmp(),b=a.getNextCmp(),h=a.getSplitter(),j=h.ownerCt,g=i[0],e,d,f;if(c&&b){c.width=e=a.prevBox.width+g;b.width=d=a.nextBox.width-g;f=(c.columnWidth+b.columnWidth)/(e+d);c.columnWidth=e*f;b.columnWidth=d*f}j.updateLayout()}},0,0,0,0,0,0,[Ext.layout.container,'ColumnSplitterTracker'],0));(Ext.cmd.derive('Ext.layout.container.ColumnSplitter',Ext.resizer.Splitter,{isSplitter:!0,synthetic:!0,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":!0,"box":!0,"splitter":!0,"columnsplitter":!0},["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(b){var a=Ext.Array;return a.filter(a.from(b),function(a){return a.target&&a.target.isSplitter!==!0})},beginLayout:function(j){var d=this;Ext.layout.container.Column.prototype.beginLayout.call(this,j);var m=j.childItems,a=(j.rows=[]),p=m.length,k=2,i=0,o=0,n=d.owner.getMaxColumns(),c,h,f,g,e,b,l;for(h=0;h<p;++h){b=(c=m[h]).target;e=b&&b.isSplitter;i+=(e?0:1);l=e?0:b.columnWidth||1;if(k+l>1||(n&&(i>n))){if(f){f.orphan=1;f.el.setHeight(0)}k=0;i=1;if(a.length){o=a.length-1;d.syncFirstLast(d.getColumns(a[o].items))}a.push(g={index:a.length,items:[],maxHeight:0})}k+=l;g.items.push(c);c.row=g;b.rowIndex=g.index;if(e){c.el.setHeight(1)}f=c}if(a.length){d.syncFirstLast(d.getColumns(a[a.length-1].items))}},beforeLayoutCycle:function(c){var a=this,b=a.owner.items;if(a.splitterGen!==b.generation){a.syncSplitters();a.splitterGen=b.generation}Ext.layout.container.Column.prototype.beforeLayoutCycle.apply(this,arguments)},finishedLayout:function(g){var d=g.childItems,h=d.length,e,c,a,b,f;Ext.layout.container.Column.prototype.finishedLayout.call(this,g);for(a=0;a<h;a+=2){b=(c=d[a]).target;e=b.lastBox;f=c.row;f.maxHeight=Math.max(f.maxHeight,e.height);b.width=e.width}for(a=1;a<h;a+=2){b=(c=d[a]).target;if(!c.orphan){b.el.setHeight(c.row.maxHeight)}}},syncSplitters:function(){var g=this,a=g.owner,d=a.items.items,f=d.length,b=!0,e=!1,c,h;while(f-->0){c=d[f];if(e){if(c.isSplitter){e=!1}else {if(b){b=!1;a.suspendLayouts()}h=a.add(f+1,g.getSplitterConfig())}}else {if(c.isSplitter){if(b){b=!1;a.suspendLayouts()}a.remove(c)}else {e=!0}}}while(d.length&&(c=d[0]).isSplitter){if(b){b=!1;a.suspendLayouts()}a.remove(c)}if(!b){a.resumeLayouts()}},syncFirstLast:function(c){var i=this,d=i.firstColumnCls,e=i.lastColumnCls,g,h=[d,e],b,a,f;c=Ext.Array.from(c);g=c.length;for(b=0;b<g;++b){a=c[b].target;f=(b===g-1);if(!b){if(f){a.addCls(h)}else {a.addCls(d);a.removeCls(e)}}else if(f){a.addCls(e);a.removeCls(d)}else {a.removeCls(h)}}}},0,0,0,0,["layout.dashboard"],0,[Ext.layout.container,'Dashboard'],0));(Ext.cmd.derive('Ext.dd.DDTarget',Ext.dd.DragDrop,{constructor:function(a,c,b){if(a){this.initTarget(a,c,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:!0,vthresh:25*(window.devicePixelRatio||1),hthresh:25*(window.devicePixelRatio||1),increment:100,frequency:500,animate:!0,animDuration:0.4,ddGroup:undefined,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(b){var a=Ext.dd.ScrollManager;a.dragEl=null;a.clearProc()},triggerRefresh:function(){if(this.ddmInstance.dragCurrent){this.ddmInstance.refreshCache(this.ddmInstance.dragCurrent.groups)}},doScroll:function(){var d=this;if(d.ddmInstance.dragCurrent){var b=d.proc,h=b.el,g=b.component,c=b.el.ddScrollConfig,e=c&&c.increment?c.increment:d.increment,a=c&&'animate' in c?c.animate:d.animate,f=function(){d.triggerRefresh()};if(a){if(a===!0){a={callback:f}}else {a.callback=a.callback?Ext.Function.createSequence(a.callback,f):f}}if(g){e=e*d.dirTrans[b.dir];if(b.dir==='up'||b.dir==='down'){g.scrollBy(0,e,a)}else {g.scrollBy(e,0,a)}}else {h.scroll(b.dir,e,a)}if(!a){f()}}},clearProc:function(){var a=this.proc;if(a.id){Ext.uninterval(a.id)}a.id=0;a.el=null;a.dir=""},startProc:function(a,f){var b=this,d=b.proc,c,e;b.clearProc();d.el=a;d.dir=f;c=a.ddScrollConfig?a.ddScrollConfig.ddGroup:undefined;e=(a.ddScrollConfig&&a.ddScrollConfig.frequency)?a.ddScrollConfig.frequency:b.frequency;if(c===undefined||b.ddmInstance.dragCurrent.ddGroup===c){d.id=Ext.interval(b.doScroll,e)}},onFire:function(l,k){var b=this,d,f,i,j,a,c,e,g,h;if(k||!b.ddmInstance.dragCurrent){return}if(!b.dragEl||b.dragEl!==b.ddmInstance.dragCurrent){b.dragEl=b.ddmInstance.dragCurrent;b.refreshCache()}d=l.getPoint();f=b.proc;i=b.els;for(j in i){a=i[j];c=a.getRegion();e=a.ddScrollConfig||b;if(c&&c.contains(d)){if(!a.isScrollable()){g=a.component&&a.component.ownerCt;h=g&&g.getScrollerOwner&&g.getScrollerOwner();if(h){a=h.getScrollable().getElement();c=a.getRegion()}else {continue}}if(c.bottom-d.y<=e.vthresh){if(f.el!==a){b.startProc(a,"down")}return}else if(c.right-d.x<=e.hthresh){if(f.el!==a){b.startProc(a,"right")}return}else if(d.y-c.top<=e.vthresh){if(f.el!==a){b.startProc(a,"up")}return}else if(d.x-c.left<=e.hthresh){if(f.el!==a){b.startProc(a,"left")}return}}}b.clearProc()},register:function(a){if(Ext.isArray(a)){for(var b=0,c=a.length;b<c;b++){this.register(a[b])}}else {a=Ext.get(a);this.els[a.id]=a}},unregister:function(a){if(Ext.isArray(a)){for(var b=0,c=a.length;b<c;b++){this.unregister(a[b])}}else {a=Ext.get(a);delete this.els[a.id]}},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:!0})},containerScroll:!1,dropAllowed:'x-dd-drop-ok',dropNotAllowed:'x-dd-drop-nodrop',isTarget:!0,isNotifyTarget:!0,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 !1},destroy:function(){if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.el)}Ext.dd.DDTarget.prototype.destroy.call(this)}},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:!0,increment:200},containerScroll:!0,overClass:'x-dashboard-dd-over',constructor:function(a,b){this.dashboard=a;a.body.ddScrollConfig=this.ddScrollConfig;Ext.dd.DropTarget.prototype.constructor.call(this,a.body,b)},getOverEvent:function(u,m,q){var j=this.dashboard,k=j.body,f=j.items.items,p=k.getBox(),t=f.length,r=m.getXY(),n=r[0]-p.x+k.getScrollLeft(),s=r[1]-p.y+k.getScrollTop(),a={columnIndex:0,column:null,dashboard:j,above:null,extensible:!1,beforeAfter:0,data:q,panel:q.panel,rawEvent:m,source:u,status:this.dropAllowed},d,l,b,g,c,e,o,h,i;for(b=0;b<t;b+=2){c=f[b];e=c.lastBox.width;if(f[b+1]){e+=f[b+1].lastBox.width}if(m.within(c.el)){a.columnIndex=b;a.column=c;a.extensible=this.isRowExtensible(c.rowIndex);d=Math.min(80,e*0.2);a.beforeAfter=d=(a.extensible&&((n<d)?-1:((n>e-d)?1:0)));if(!d||!a.extensible){h=c.items.items;for(g=0,o=h.length;g<o;++g){i=h[g];l=i.el.getHeight();if(s<l/2){a.above=i;break}s-=l}}break}n-=e}return a},notifyOver:function(c,n,k){var l=this,b=l.dashboard,a=l.getOverEvent(c,n,k),e=a.column&&a.column.el,m=c.proxy,d,h=a.above,i,f=0,j,g=b.hasListeners;k.lastOver=a;if((!g.validatedrop||b.fireEvent('validatedrop',a)!==!1)&&(!g.beforedragover||b.fireEvent('beforedragover',a)!==!1)){d=c.panelProxy.getProxy();m.getProxy().setWidth('auto');if(e){f=i=e.getWidth();if(a.beforeAfter){c.panelProxy.moveProxy(e.dom,e.dom.firstChild);f=i/2;d.setWidth(f)}else {if(h){c.panelProxy.moveProxy(h.el.dom.parentNode,h.el.dom)}else {c.panelProxy.moveProxy(e.dom,null)}d.setWidth('auto')}if(f){}d.setStyle({'float':'none','clear':'none','margin-left':(a.beforeAfter>0)?(i-f-e.getPadding('lr'))+'px':'','margin-top':'7px'})}else {j=b.body.getPadding('lr');d.setStyle({'float':'left','clear':'left','margin':'0 7px 0 7px'});d.setWidth(b.body.getWidth()-j);c.panelProxy.moveProxy(b.body.dom.firstChild.firstChild,null)}this.scrollPos=b.body.getScroll();if(g.dragover){b.fireEvent('dragover',a)}}return a.status},isRowExtensible:function(c){var d=this,a=d.dashboard,b=a.getMaxColumns()||1;return Ext.Array.from(a.query('>dashboard-column[rowIndex='+c+']')).length<b},notifyDrop:function(m,n,l){Ext.dd.DropTarget.prototype.notifyDrop.apply(this,arguments);var b=this.dashboard,c=l.lastOver,d=c.panel,i=d.ownerCt,a=c.column,j=a?c.beforeAfter:1,k=i.items.indexOf(d),f=a?(c.above?a.items.indexOf(c.above):a.items.getCount()):0,e,g,h=b.hasListeners;if(i===a){if(i.items.getCount()===1){return}if(!j){if(k<f){--f}if(k===f){return}}}if((h.validatedrop&&b.fireEvent('validatedrop',c)===!1)||(h.beforedrop&&b.fireEvent('beforedrop',c)===!1)){return}Ext.suspendLayouts();d.isMoving=!0;if(j){e=b.items.indexOf(a);if(e<0){e=b.items.getCount()}else if(j>0){++e}g=b.createColumn();if(a){g.columnWidth=a.columnWidth=a.columnWidth/2;delete a.width}else {g.columnWidth=1}a=b.insert(e,g);f=0}d.el.dom.style.display='';a.insert(f,d);d.isMoving=!1;a.updateLayout();Ext.resumeLayouts(!0);if(h.drop){b.fireEvent('drop',c)}}},1,0,0,0,0,0,[Ext.dashboard,'DropZone'],0));(Ext.cmd.derive('Ext.dashboard.Part',Ext.Base,{factoryConfig:{type:'part'},isPart:!0,_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(d,c,a,b){a.call(b||this,{})},createView:function(c){var b=this,d=b.getViewTemplate(),a=d.apply(c);a.dashboard=b.getDashboard();a.part=b;a._partConfig=c;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:!0,cls:'x-dashboard',bodyCls:'x-dashboard-body',defaultType:'dashboard-column',scrollable:!0,layout:{type:'dashboard'},stateful:!1,idSeed:1,config:{parts:null},renderConfig:{maxColumns:4},initComponent:function(){var a=this;Ext.panel.Panel.prototype.initComponent.call(this);a.addStateEvents('remove')},applyParts:function(d,b){if(!b){b=new Ext.util.Collection({decoder:Ext.Factory.part})}var c,a;for(c in d){a=d[c];if(Ext.isString(a)){a={type:a}}a.id=c;a.dashboard=this;b.add(a)}return b},getPart:function(b){var a=this.getParts();return a.getByKey(b)},addNew:function(a,d,c){var b=this,e=b.getPart(a);e.displayForm(null,null,function(e){e.type=a;b.addView(e,d,c)})},addView:function(g,j,f){var b=this,h=b.query('dashboard-column'),e=h.length,c=j||0,i=g.id?g:b.createView(g),d=b.columnWidths,a;if(!e){a=b.add(0,b.createColumn({columnWidth:(Ext.isArray(d)?d[0]:1)}));h=[a];e=1}if(c>=e){c=e-1;f=1}if(!f){a=h[c];if(a){return a.add(i)}}if(f>0){++c}a=b.createColumn();if(d){a.columnWidth=d[c]||(d[c]=1)}if(!a.items){a.items=[]}a.items.push(i);a=b.add(a);return a.items.first()},createColumn:function(b){var a=this.cycleLayout;return Ext.apply({items:[],bubbleEvents:['add','childmove','resize'],listeners:{expand:a,collapse:a,scope:this}},b)},createView:function(c){var b=this,d=c.type,e=b.getPart(d),a=e.createView(c);if(!a.id){a.id=b.id+'_'+d+(b.idSeed++)}a.bubbleEvents=Ext.Array.from(a.bubbleEvents).concat(['expand','collapse']);a.stateful=b.stateful;a.listeners={removed:this.onItemRemoved,scope:this};return a},initEvents:function(){Ext.panel.Panel.prototype.initEvents.call(this);this.dd=new Ext.dashboard.DropZone(this,this.dropConfig)},cycleLayout:function(){this.updateLayout()},doDestroy:function(){if(this.dd){Ext.destroy(this.dd)}Ext.panel.Panel.prototype.doDestroy.call(this)},applyState:function(c){delete c.items;var d=this;Ext.panel.Panel.prototype.applyState.call(this,c);var b=c.columnWidths,g=d.items.items,f=g.length,e=b?b.length:0,a,h;if(e){d.columnWidths=[];for(a=0;a<f;++a){d.columnWidths.push(g[a].columnWidth=(a<e)?b[a]:(1/f))}}},getState:function(){var b=this,d=[],e=b.items.items,a=Ext.panel.Panel.prototype.getState.call(this)||{},g=e.length,c,f;for(c=0;c<g;++c){if(!(f=e[c]).isSplitter){d.push(f.columnWidth)}}a.idSeed=b.idSeed;a.items=b.serializeItems();if(d.length){a.columnWidths=b.columnWidths=d}else {delete a.columnWidths}return a},initItems:function(){var a=this,b=a.defaultContent,c;if(a.stateful){c=Ext.state.Manager.get(a.getStateId());b=(c&&c.items)||b}if(!a.items&&b){a.items=a.deserializeItems(b)}Ext.panel.Panel.prototype.initItems.call(this)},deserializeItems:function(j){var g=this,f=j.length,c=[],i=g.columnWidths,l=g.getMaxColumns(),b,d,h,a,k,e;for(a=0;a<f;++a){e=j[a];d=Math.min(e.columnIndex||0,l-1);delete e.columnIndex;if(!(b=c[d])){c[d]=b=g.createColumn();h=i&&i[d];if(h){b.columnWidth=h}}k=g.createView(e);b.items.push(k)}for(a=0,f=c.length;a<f;++a){b=c[a];if(!b.columnWidth){b.columnWidth=1/f}}return c},serializeItem:function(a){return Ext.apply({type:a.part.id,id:a.id,columnIndex:a.columnIndex},a._partConfig)},serializeItems:function(){var i=this,g=i.items.items,k=g.length,h=[],f=0,d,c,a,e,b,j;for(a=0;a<k;++a){e=g[a];if(!e.isSplitter){c=e.items.items;for(b=0,j=c.length;b<j;++b){d=c[b];d.columnIndex=f;h.push(i.serializeItem(d))}++f}}return h},onItemRemoved:function(a,b){if(a.stateful&&!a.isMoving){Ext.state.Manager.clear(a.getStateId())}}},0,["dashboard"],["component","box","container","panel","dashboard"],{"component":!0,"box":!0,"container":!0,"panel":!0,"dashboard":!0},["widget.dashboard"],0,[Ext.dashboard,'Dashboard'],0));(Ext.cmd.derive('Ext.dd.DragZone',Ext.dd.DragSource,{constructor:function(a,d){var c=this,b;Ext.dd.DragSource.prototype.constructor.call(this,a,d);b=c.containerScroll;if(b){a=c.scrollEl||a;a=Ext.get(a);if(Ext.isObject(b)){a.ddScrollConfig=b}Ext.dd.ScrollManager.register(a)}},getDragData:function(a){return Ext.dd.Registry.getHandleFromEvent(a)},onInitDrag:function(a,b){this.proxy.update(this.dragData.ddel.cloneNode(!0));this.onStartDrag(a,b);return !0},getRepairXY:function(a){return Ext.fly(this.dragData.ddel).getXY()},destroy:function(){if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.scrollEl||this.el)}Ext.dd.DragSource.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.dd,'DragZone'],0));(Ext.cmd.derive('Ext.dd.Registry',Ext.Base,{singleton:!0,constructor:function(){this.elements={};this.handles={};this.autoIdSeed=0},getId:function(a,c){if(typeof a==="string"){return a}var b=a.id;if(!b&&c!==!1){b="extdd-"+(++this.autoIdSeed);a.id=b}return b},register:function(b,a){a=a||{};if(typeof b==="string"){b=document.getElementById(b)}a.ddel=b;this.elements[this.getId(b)]=a;if(a.isHandle!==!1){this.handles[a.ddel.id]=a}if(a.handles){var e=a.handles,c,d;for(c=0,d=e.length;c<d;c++){this.handles[this.getId(e[c])]=a}}},unregister:function(f){var e=this.getId(f,!1),b=this.elements[e],c,a,d;if(b){delete this.elements[e];if(b.handles){c=b.handles;for(a=0,d=c.length;a<d;a++){delete this.handles[this.getId(c[a],!1)]}}}},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(a,b,d,c){},onNodeOver:function(a,b,d,c){return this.dropAllowed},onNodeOut:function(a,b,d,c){},onNodeDrop:function(a,b,d,c){return !1},onContainerOver:function(a,c,b){return this.dropNotAllowed},onContainerDrop:function(a,c,b){return !1},notifyEnter:function(a,c,b){Ext.dd.DropTarget.prototype.notifyEnter.call(this,a,c,b);return this.dropNotAllowed},notifyOver:function(c,b,d){var a=this,e=a.getTargetFromEvent(b);if(!e){if(a.lastOverNode){a.onNodeOut(a.lastOverNode,c,b,d);a.lastOverNode=null}return a.onContainerOver(c,b,d)}if(a.lastOverNode!==e){if(a.lastOverNode){a.onNodeOut(a.lastOverNode,c,b,d)}a.onNodeEnter(e,c,b,d);a.lastOverNode=e}return a.onNodeOver(e,c,b,d)},notifyOut:function(a,c,b){Ext.dd.DropTarget.prototype.notifyOut.call(this,a,c,b);if(this.lastOverNode){this.onNodeOut(this.lastOverNode,a,c,b);this.lastOverNode=null}},notifyDrop:function(c,b,d){var a=this,e=a.getTargetFromEvent(b),f=e?a.onNodeDrop(e,c,b,d):a.onContainerDrop(c,b,d);if(a.lastOverNode){a.onNodeOut(a.lastOverNode,c,b,d);a.lastOverNode=null}return f},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.dom.Element,{alternateClassName:'Ext.Layer',isLayer:!0,constructor:function(a,f){a=a||{};var b=this,l=Ext.DomHelper,j=a.parentEl,i=j?Ext.getDom(j):document.body,k=a.hideMode,h='x-'+(a.fixed?'fixed-layer':'layer'),c,d,g,e;if(f){c=Ext.getDom(f);if(!c.parentNode){i.appendChild(c)}}if(!c){c=l.append(i,a.dh||{tag:'div',cls:h})}if(a.id){c.id=a.id}d=c.id;if(d){g=Ext.cache[d];if(g){delete Ext.cache[d];g.dom=null}}Ext.dom.Element.prototype.constructor.call(this,c);if(f){b.addCls(h)}if(a.preventSync){b.preventSync=!0}if(a.cls){b.addCls(a.cls)}b.constrain=a.constrain!==!1;if(k){b.setVisibilityMode(Ext.Element[k.toUpperCase()])}else if(a.useDisplay){b.setVisibilityMode(Ext.Element.DISPLAY)}else {b.setVisibilityMode(Ext.Element.VISIBILITY)}if(a.shadow){b.shadowOffset=a.shadowOffset||4;e={offset:b.shadowOffset,fixed:a.fixed};if(a.shadow!==!0){e.mode=a.shadow}b.enableShadow(e)}else {b.shadowOffset=0}if(a.shim){b.enableShim({fixed:a.fixed})}if(a.hidden===!0){b.hide()}else if(a.hidden===!1){b.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'],publishDelegatedDomEvent:function(c){var h,g,i,e,f,d;this.callParent([c]);h=c.getTarget();g=c.getRelatedTarget();if(g&&Ext.fly(h).contains(g)){return}i=h.id;if(i){e=Ext.cache[i];if(e){f=b[c.type];c=c.chain({type:f});if(e.hasListeners[f]){d=e.events[f];if(d){d=d.directs;if(d){c.setCurrentTarget(e.dom);d.fire(c,c.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:!1,renderTpl:['<div id="{swfId}" role="application"></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 a=this,b=Ext.apply({},a.flashParams),c=Ext.apply({},a.flashVars);Ext.Component.prototype.afterRender.call(this);b=Ext.apply({allowScriptAccess:'always',bgcolor:a.backgroundColor,wmode:a.wmode},b);c=Ext.apply({allowedDomain:document.location.hostname},c);new swfobject.embedSWF(a.url,a.getSwfId(),a.swfWidth,a.swfHeight,a.flashVersion,a.expressInstall?a.statics.EXPRESS_INSTALL_URL:undefined,c,b,a.flashAttributes,a.swfCallback.bind(a))},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,doDestroy:function(){var a=this,b=a.swf;if(b){swfobject.removeSWF(a.getSwfId());a.swf=Ext.destroy(b)}Ext.Component.prototype.doDestroy.call(this)},statics:{EXPRESS_INSTALL_URL:'http://swfobject.googlecode.com/svn/trunk/swfobject/expressInstall.swf'}},0,["flash"],["component","box","flash"],{"component":!0,"box":!0,"flash":!0},["widget.flash"],0,[Ext.flash,'Component',Ext,'FlashComponent'],0));(Ext.cmd.derive('Ext.form.action.Action',Ext.Base,{alternateClassName:'Ext.form.Action',submitEmptyText:!0,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(c){var a=this.form,b=a&&!a.destroying&&!a.destroyed;this.response=c;this.failureType=Ext.form.action.Action.CONNECT_FAILURE;if(b){a.afterAction(this,!1)}},processResponse:function(a){this.response=a;if(!a.responseText&&!a.responseXML){return !0}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 a=this;return {success:a.onSuccess,failure:a.onFailure,scope:a,timeout:(a.timeout||a.form.timeout)*1000}},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(d){var b=this.processResponse(d),a=this.form,c=a&&!a.destroying&&!a.destroyed;if(b===!0||!b.success||!b.data){this.failureType=Ext.form.action.Action.LOAD_FAILURE;if(c){a.afterAction(this,!1)}return}if(c){a.clearInvalid();a.setValues(b.data);a.afterAction(this,!0)}},handleResponse:function(b){var c=this.form.reader,a,d;if(c){a=c.read(b);d=a.records&&a.records[0]?a.records[0].data:null;return {success:a.success,data:d}}return Ext.decode(b.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 a=this,b=a.form;if(a.clientValidation===!1||b.isValid()){a.doSubmit()}else {a.failureType=Ext.form.action.Action.CLIENT_INVALID;b.afterAction(a,!1)}},doSubmit:function(){var a=this,b=Ext.apply(a.createCallback(),{url:a.getUrl(),method:a.getMethod(),headers:a.headers}),e=a.form,d=a.jsonSubmit||e.jsonSubmit,f=d?'jsonData':'params',c;if(e.hasUpload()){c=a.buildForm();b.form=c.formEl;b.isUpload=!0}else {b[f]=a.getParams(d)}Ext.Ajax.request(b);if(c){a.cleanup(c)}},cleanup:function(b){var e=b.formEl,f=b.uploadEls,d=b.uploadFields,g=d.length,a,c;for(a=0;a<g;++a){c=d[a];if(!c.clearOnSubmit){c.restoreInput(f[a])}}if(e){Ext.removeNode(e)}},getParams:function(b){var a=!1,c=Ext.form.action.Action.prototype.getParams.call(this),d=this.form.getValues(a,a,this.submitEmptyText!==a,b,!0);return Ext.apply({},d,c)},buildForm:function(){var a=this,h=[],f,i,q=a.form,j=a.getParams(),c=[],n=[],o=q.getFields().items,b,l=o.length,k,e,d,g,p,m;for(b=0;b<l;++b){k=o[b];if(k.isFileUpload()){c.push(k)}}for(e in j){if(j.hasOwnProperty(e)){d=j[e];if(Ext.isArray(d)){p=d.length;for(g=0;g<p;g++){h.push(a.getFieldConfig(e,d[g]))}}else {h.push(a.getFieldConfig(e,d))}}}f={tag:'form',role:'presentation',action:a.getUrl(),method:a.getMethod(),target:a.target?(Ext.isString(a.target)?a.target:Ext.fly(a.target).dom.name):'_self',style:'display:none',cn:h};if(c.length){f.encoding=f.enctype='multipart/form-data'}i=Ext.DomHelper.append(Ext.getBody(),f);l=c.length;for(b=0;b<l;++b){m=c[b].extractFileInput();i.appendChild(m);n.push(m)}return {formEl:i,uploadFields:c,uploadEls:n}},getFieldConfig:function(b,a){return {tag:'input',type:'hidden',name:b,value:Ext.String.htmlEncode(a)}},onSuccess:function(e){var a=this.form,c=a&&!a.destroying&&!a.destroyed,d=!0,b=this.processResponse(e);if(b!==!0&&!b.success){if(b.errors&&c){a.markInvalid(b.errors)}this.failureType=Ext.form.action.Action.SERVER_INVALID;d=!1}if(c){a.afterAction(this,d)}},handleResponse:function(g){var i=this.form,f=i.errorReader,e,a,b,h,c,d;if(f){e=f.read(g);c=e.records;a=[];if(c){for(b=0,h=c.length;b<h;b++){a[b]=c[b].data}}if(a.length<1){a=null}d={success:e.success,errors:a}}else {try{d=Ext.decode(g.responseText)}catch(j){d={success:!1,errors:[]}}}return d}},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(b,a){this.comp=b;this.initialConstrainTo=a.constrainTo;Ext.dd.DragTracker.prototype.constructor.call(this,a)},onStart:function(c){var a=this,b=a.comp;a.dragTarget=a.el;a.startRegion=a.el.getRegion();a.startPosition=b.getXY();if(b.ghost&&!b.liveDrag){a.proxy=b.ghost()}if(a.constrain||a.constrainDelegate){a.constrainTo=a.calculateConstrainRegion()}if(b.beginDrag){b.beginDrag()}Ext.dom.Element.maskIframes()},calculateConstrainRegion:function(){var c=this,h=c.comp,b=c.initialConstrainTo||c.comp.el.dom.parentNode,a=h.constraintInsets,i,d,f,j=c.proxy?c.proxy.el:h.el,g=j.shadow,e=(g&&!c.constrainDelegate&&h.constrainShadow&&!g.disabled)?g.getShadowSize():0;if(!(b instanceof Ext.util.Region)){i=Ext.fly(b);b=i.getConstrainRegion()}else {b=b.copy()}if(a){a=Ext.isObject(a)?a:Ext.Element.parseBox(a);b.adjust(a.top,a.right,a.bottom,a.left)}if(e){b.adjust(e[0],-e[1],-e[2],e[3])}if(c.constrainDelegate){d=Ext.fly(c.handle).getRegion();f=j.getRegion();b.adjust(f.top-d.top,f.right-d.right,f.bottom-d.bottom,f.left-d.left)}return b},onDrag:function(d){var a=this,c=(a.proxy&&!a.comp.liveDrag)?a.proxy:a.comp,b=a.getOffset(a.constrain||a.constrainDelegate?'dragTarget':null);c.setPagePosition(a.startPosition[0]+b[0],a.startPosition[1]+b[1])},onEnd:function(b){var a=this.comp;if(a.destroyed||a.destroying){return}if(this.proxy&&!a.liveDrag){a.unghost()}if(a.endDrag){a.endDrag()}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:!0,draggable:!0,constrain:!1,constrainHeader:!1,plain:!1,minimizable:!1,maximizable:!1,minHeight:50,minWidth:50,expandOnShow:!0,collapsible:!1,closable:!0,hidden:!0,autoRender:!0,hideMode:'offsets',floating:!0,alignOnScroll:!1,itemCls:'x-window-item',overlapHeader:!0,ignoreHeaderBorderManagement:!0,alwaysFramed:!0,isRootCfg:{isRoot:!0},isWindow:!0,ariaRole:'dialog',focusable:!0,tabGuard:!0,closeToolText:'Close dialog',keyMap:{scope:'this',ESC:'onEsc'},maskClickAction:'focus',disableCloseToolFocus:!0,initComponent:function(){var a=this;a.frame=!1;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(){return this.getDefaultFocus()||this.el},getState:function(){var a=this,e=Ext.panel.Panel.prototype.getState.call(this)||{},c=!!a.maximized,d=a.ghostBox,b;e.maximized=c;if(c){b=a.restorePos}else if(d){b=[d.x,d.y]}else {b=a.getPosition(!0)}Ext.apply(e,{size:c?a.restoreSize:a.getSize(),pos:b});return e},applyState:function(a){var b=this;if(a){b.maximized=a.maximized;if(b.maximized){b.hasSavedRestore=!0;b.restoreSize=a.size;b.restorePos=a.pos}else {Ext.apply(b,{width:a.size.width,height:a.size.height,x:a.pos[0],y:a.pos[1]})}}},onRender:function(c,b){var a=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(a.header){a.header.on({scope:a,click:a.onHeaderClick})}if(a.maximizable){a.header.on({scope:a,dblclick:a.toggleMaximize})}},afterRender:function(){var a=this,b=a.header;if(a.maximized){a.maximized=!1;a.maximize(null,!0);if(b){b.removeCls(b.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);a.initTabGuards()},onEsc:function(a){if(this.closable){a.stopEvent();this.close();return !1}},doDestroy:function(){var a=this;if(a.rendered){Ext.un('resize',a.onWindowResize,a);delete a.animateTarget;a.hide()}Ext.panel.Panel.prototype.doDestroy.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)}},addTool:function(b){var a=this;Ext.panel.Panel.prototype.addTool.call(this,b);if(a.rendered&&a.tabGuard){a.initTabGuards()}},add:function(){var a=this,b;b=Ext.panel.Panel.prototype.add.apply(this,arguments);if(a.rendered&&a.tabGuard){a.initTabGuards()}return b},remove:function(){var a=this,b;b=Ext.panel.Panel.prototype.remove.apply(this,arguments);if(a.rendered&&a.tabGuard){a.initTabGuards()}return b},addDocked:function(){var a=this,b;b=Ext.panel.Panel.prototype.addDocked.apply(this,arguments);if(a.rendered&&a.tabGuard){a.initTabGuards()}return b},removeDocked:function(){var a=this,b;b=Ext.panel.Panel.prototype.removeDocked.apply(this,arguments);if(a.rendered&&a.tabGuard){a.initTabGuards()}return b},onShow:function(){var a=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(a.expandOnShow){a.expand(!1)}a.syncMonitorWindowResize();if(a.rendered&&a.tabGuard){a.initTabGuards()}},doClose:function(){var a=this;if(a.hidden){a.fireEvent('close',a);if(a.closeAction==='destroy'&&!a.destroying&&!a.destroyed){a.destroy()}}else {a.hide(a.animateTarget,a.doClose,a)}},afterHide:function(){var a=this;a.syncMonitorWindowResize();Ext.panel.Panel.prototype.afterHide.apply(this,arguments);if(!a.destroyed&&a.rendered&&a.tabGuard){a.initTabGuards()}},onWindowResize:function(){var a=this,b;if(!a.destroyed){if(a.maximized){a.fitContainer()}else {b=a.getSizeModel();if(b.width.natural||b.height.natural){a.updateLayout()}a.doConstrain()}}},minimize:function(){this.fireEvent('minimize',this);return this},resumeHeaderLayout:function(a){this.header.resumeLayouts(a?this.isRootCfg:null)},afterCollapse:function(){var a=this,b=a.header,c=a.tools;if(b&&a.maximizable){b.suspendLayouts();c.maximize.hide();this.resumeHeaderLayout(!0)}if(a.resizer){a.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var a=this,c=a.header,d=a.tools,b;if(c){c.suspendLayouts();if(a.maximizable){d.maximize.show();b=!0}this.resumeHeaderLayout(b)}if(a.resizer){a.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(c,d){var a=this,b=a.header,g=a.tools,h=a.width,f=a.height,i,e;if(!a.maximized&&!a.maximizing){a.maximizing=!0;a.expand(!1);if(!a.hasSavedRestore){i=a.restoreSize={width:h?h:null,height:f?f:null};if(d){a.restorePos=[a.x||0,a.y||0]}else {a.restorePos=a.getPosition()}}if(b){b.suspendLayouts();if(g.maximize){g.maximize.setType('restore')}if(a.collapseTool){a.collapseTool.hide();e=!0}a.resumeHeaderLayout(e)}a.el.disableShadow();if(a.dd){a.dd.disable();if(b){b.removeCls(b.indicateDragCls)}}if(a.resizer){a.resizer.disable()}a.el.addCls('x-window-maximized');a.container.addCls('x-window-maximized-ct');a.syncMonitorWindowResize();a.fitContainer(c=(c||!!a.animateTarget)?{callback:function(){a.maximizing=!1;a.maximized=!0;if(!d){a.fireEvent('maximize',a)}}}:null);if(!c){a.maximizing=!1;a.maximized=!0;if(!d){a.fireEvent('maximize',a)}}}return a},restore:function(c){var a=this,f=a.tools,b=a.header,d=a.restoreSize,e;if(a.maximized){a.hasSavedRestore=null;a.removeCls('x-window-maximized');if(b){b.suspendLayouts();if(f.maximize){f.maximize.setType('maximize')}if(a.collapseTool){a.collapseTool.show();e=!0}a.resumeHeaderLayout(e)}d.x=a.restorePos[0];d.y=a.restorePos[1];a.setBox(d,c=(c||!!a.animateTarget)?{callback:function(){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}:null);a.restorePos=a.restoreSize=null;if(a.dd){a.dd.enable();if(b){b.addCls(b.indicateDragCls)}}if(a.resizer){a.resizer.enable()}a.container.removeCls('x-window-maximized-ct');a.syncMonitorWindowResize();if(!c){a.el.enableShadow(null,!0);a.maximized=!1;a.fireEvent('restore',a)}}return a},syncMonitorWindowResize:function(){var a=this,b=a._monitoringResize,d=a.monitorResize||a.constrain||a.constrainHeader||a.maximized,c=a.hidden||a.destroying||a.destroyed;if(d&&!c){if(!b){Ext.on('resize',a.onWindowResize,a,{buffer:1});a._monitoringResize=!0}}else if(b){Ext.un('resize',a.onWindowResize,a);a._monitoringResize=!1}},toggleMaximize:function(){return this[this.maximized?'restore':'maximize']()},createGhost:function(){var a=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);a.xtype='window';a.focusOnToFront=!1;return a},getDefaultFocus:function(){var d=this,b,a=d.defaultFocus,c;if(a!==undefined){if(Ext.isNumber(a)){b=d.query('button')[a]}else if(Ext.isString(a)){c=a;if(Ext.validIdRe.test(c)){b=d.down(Ext.makeIdSelector(c))}if(!b){b=d.down(c)}}else if(a.focus){b=a}}return b},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(b,c){var a;if(b.el.contains(c.getTarget())){a=this.getDefaultFocus();if(a){a.focus()}}},initResizable:function(b){var a=this;Ext.panel.Panel.prototype.initResizable.call(this,b);if(a.maximized||a.maximizing){a.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()}},onTabGuardFocusEnter:function(i,g){var f=this,d=f.el,e=f.tabGuardBeforeEl,j=f.tabGuardAfterEl,h=i.relatedTarget,a,c,b;a=d.findTabbableElements({skipSelf:!0});if(a[0]===e.dom){a.shift()}if(a[a.length-1]===j.dom){a.pop()}if(a.length===0){b=d}else if(h===d.dom){c=g===e.dom}else if(d.contains(h)){c=!!i.forwardTab}else {c=g===e.dom}b=b||(c?a[0]:a[a.length-1]);if(b){Ext.fly(b).focus(a.length===1?1:0)}}}},0,["window"],["component","box","container","panel","window"],{"component":!0,"box":!0,"container":!0,"panel":!0,"window":!0},["widget.window"],0,[Ext.window,'Window',Ext,'Window'],0));(Ext.cmd.derive('Ext.form.Labelable',Ext.Mixin,{isLabelable:!0,mixinConfig:{id:'labelable',on:{beforeRender:'beforeLabelRender',onRender:'onLabelRender'}},config:{childEls:['labelEl','bodyEl','errorEl','errorWrapEl','ariaErrorEl','ariaStatusEl','ariaHelpEl','labelTextEl']},labelableRenderTpl:['{beforeLabelTpl}','<label id="{id}-labelEl" data-ref="labelEl" class="{labelCls} {labelCls}-{ui} {labelClsExtra} ','{childElCls} {unselectableCls}" style="{labelStyle}"','<tpl if="inputId && !skipLabelForAttribute"> 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" role="presentation"',' 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}','<tpl if="renderAriaElements">','<tpl if="ariaHelp">','<span id="{id}-ariaHelpEl" data-ref="ariaHelpEl"',' class="x-hidden-offsets">','{ariaHelp}','</span>','</tpl>','<span id="{id}-ariaStatusEl" data-ref="ariaStatusEl" aria-hidden="true"',' class="x-hidden-offsets">','{ariaStatus}','</span>','<span id="{id}-ariaErrorEl" data-ref="ariaErrorEl" aria-hidden="true" aria-live="assertive"',' class="x-hidden-clip">','</span>','</tpl>','</div>','<tpl if="renderError">','<div id="{id}-errorWrapEl" data-ref="errorWrapEl" class="{errorWrapCls} {errorWrapCls}-{ui}',' {errorWrapExtraCls}" style="{errorWrapStyle}">','<div role="presentation" id="{id}-errorEl" data-ref="errorEl" ','class="{errorMsgCls} {invalidMsgCls} {invalidMsgCls}-{ui}" ','data-anchorTarget="{tipAnchorTarget}">','</div>','</div>','</tpl>',{disableFormats:!0}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['<tpl if="errors && errors.length">','<ul class="{listCls}">','<tpl for="errors"><li>{.}</li></tpl>','</ul>','</tpl>'],plaintextActiveErrorsTpl:['<tpl if="errors && errors.length">','<tpl for="errors"><tpl if="xindex &gt; 1">\n</tpl>{.}</tpl>','</tpl>'],ariaActiveErrorsTpl:['<tpl if="errors && errors.length">','<tpl for="errors" between=". ">{.}</tpl>','</tpl>'],isFieldLabelable:!0,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:'',extraFieldBodyCls:'',invalidCls:'x-form-invalid',fieldLabel:undefined,labelAlign:'left',labelWidth:100,labelPad:5,labelSeparator:':',hideLabel:!1,hideEmptyLabel:!0,preventMark:!1,autoFitErrors:!0,msgTarget:'qtip',msgTargets:{qtip:1,title:1,under:1,side:1,none:1},noWrap:!0,ariaHelp:undefined,ariaErrorText:'Input error. {0}.',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.showOnTap=!0;a.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.activeTarget.el).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 b=this,c=b.labelSeparator,a=b.fieldLabel||'',d=a.substr(a.length-1);return d===c?a.slice(0,-1):a},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(b){b=b||'';var a=this,f=a.labelSeparator,h=a.labelEl,c=a.errorWrapEl,g=(a.labelAlign!=='top'),e=a.noLabelCls,d=a.errorWrapUnderSideLabelCls;a.fieldLabel=b;if(a.rendered){if(Ext.isEmpty(b)&&a.hideEmptyLabel){a.addCls(e);if(g&&c){c.removeCls(d)}}else {if(f){b=a.trimLabelSeparator()+f}a.labelTextEl.dom.innerHTML=b;a.removeCls(e);if(g&&c){c.addCls(d)}}a.updateLayout()}},setHideLabel:function(b){var a=this;if(b!==a.hideLabel){a.hideLabel=b;if(a.rendered){a[b?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},setHideEmptyLabel:function(b){var a=this,c;if(b!==a.hideEmptyLabel){a.hideEmptyLabel=b;if(a.rendered&&!a.hideLabel){c=b&&!a.getFieldLabel();a[c?'addCls':'removeCls'](a.noLabelCls);a.updateLayout()}}},getInsertionRenderData:function(c,d){var e=d.length,b,a;while(e--){b=d[e];a=this[b];if(a){if(typeof a!=='string'){if(!a.isTemplate){a=Ext.XTemplate.getTpl(this,b)}a=a.apply(c)}}c[b]=a||''}return c},getLabelableRenderData:function(){var a=this,l=a.labelAlign,o=(l==='top'),r=(l==='right'),c=(a.msgTarget==='side'),i=(a.msgTarget==='under'),q=a.errorMsgCls,b=a.labelPad,m=a.labelWidth,d=a.labelClsExtra||'',j=c?a.errorWrapSideCls:a.errorWrapUnderCls,h='',g='',p=a.hasVisibleLabel(),k=a.autoFitErrors,f=a.defaultBodyWidth,n,e;if(o){d+=' '+a.topLabelCls;if(b){g='padding-bottom:'+b+'px;'}if(c&&!k){d+=' '+a.topLabelSideErrorCls}}else {if(r){d+=' '+a.rightLabelCls}if(b){h+=a.getHorizontalPaddingStyle()+b+'px;'}h+='width:'+(m+(b?b:0))+'px;';g='width:'+m+'px'}if(p){if(!o&&i){j+=' '+a.errorWrapUnderSideLabelCls}}if(f){n='min-width:'+f+'px;max-width:'+f+'px;'}e={id:a.id,inputId:a.getInputId(),labelCls:a.labelCls,labelClsExtra:d,labelStyle:h+(a.labelStyle||''),labelInnerStyle:g,labelInnerCls:a.labelInnerCls,labelTextCls:a.labelTextCls,skipLabelForAttribute:!!a.skipLabelForAttribute,unselectableCls:Ext.Element.unselectableCls,bodyStyle:n,baseBodyCls:a.baseBodyCls,fieldBodyCls:a.fieldBodyCls,extraFieldBodyCls:a.extraFieldBodyCls,errorWrapCls:a.errorWrapCls,errorWrapExtraCls:j,renderError:c||i,invalidMsgCls:c?a.invalidIconCls:i?a.invalidUnderCls:'',errorMsgCls:q,growCls:a.grow?a.growCls:'',tipAnchorTarget:a.id+'-inputEl',errorWrapStyle:(c&&!k)?'visibility:hidden':'display:none',fieldLabel:a.getFieldLabel(),labelSeparator:a.labelSeparator,renderAriaElements:!!a.renderAriaElements,ariaStatus:''};if(a.ariaHelp){e.ariaHelp=Ext.String.htmlEncode(a.ariaHelp)}a.getInsertionRenderData(e,a.labelableInsertions);return e},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 a=this,f={},e=Ext.Element,d=a.errorWrapEl,c,b;if(d){d.setVisibilityMode((a.msgTarget==='side'&&!a.autoFitErrors)?e.VISIBILITY:e.DISPLAY)}if(a.extraMargins){c=a.el.getMargin();for(b in c){if(c.hasOwnProperty(b)){f['margin-'+b]=(c[b]+a.extraMargins[b])+'px'}}a.el.setStyle(f)}},hasVisibleLabel:function(){if(this.hideLabel){return !1}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(c){var a=this,k=a.errorWrapEl,b=a.msgTarget,j=b==='side',m=b==='qtip',e=a.ariaErrorEl,f,d,n,g,l,i,h;c=Ext.Array.from(c);n=a.lookupTpl('activeErrorsTpl');a.activeErrors=c;d=a.activeError=n.apply({fieldLabel:a.fieldLabel,errors:c,listCls:'x-list-plain'});a.renderActiveError();if(a.rendered){f=a.getActionEl();if(j){a.errorEl.dom.setAttribute('data-errorqtip',d)}else if(m){f.dom.setAttribute('data-errorqtip',d)}else if(b==='title'){f.dom.setAttribute('title',d)}if(b!=='title'&&e){l=a.lookupTpl('ariaActiveErrorsTpl');i=l.apply({errors:c});h=Ext.String.formatEncode(a.ariaErrorText,i,a.fieldLabel);if(e.dom.innerHTML!==h){e.dom.innerHTML=h}a.ariaStatusEl.dom.innerHTML=Ext.String.htmlEncode(i)}if(j||m){Ext.form.Labelable.initTip()}if(!a.msgTargets[b]){g=Ext.get(b);if(g){g.dom.innerHTML=d}}}if(k){k.setVisible(c.length>0);if(j&&a.autoFitErrors){a.labelEl.addCls(a.topLabelSideErrorCls)}a.updateLayout()}},unsetActiveError:function(){var a=this,f=a.errorWrapEl,e=a.ariaErrorEl,b=a.msgTarget,g=a.restoreDisplay,c,d;if(a.hasActiveError()){delete a.activeError;delete a.activeErrors;a.renderActiveError();if(a.rendered){c=a.getActionEl();if(b==='qtip'){c.dom.removeAttribute('data-errorqtip')}else if(b==='title'){c.dom.removeAttribute('title')}if(b!=='title'&&e){e.dom.innerHTML=a.ariaStatusEl.dom.innerHTML=''}if(!a.msgTargets[b]){d=Ext.get(b);if(d){d.dom.innerHTML=''}}if(f){f.hide();if(b==='side'&&a.autoFitErrors){a.labelEl.removeCls(a.topLabelSideErrorCls)}a.updateLayout();if(g){a.el.dom.style.display='block';a.restoreDisplay()}}}}},doRestoreDisplay:function(){var a=this.el;if(a&&a.dom){a.dom.style.display=''}},renderActiveError:function(){var a=this,b=a.getActiveError(),c=!!b;if(b!==a.lastActiveError){a.lastActiveError=b;a.fireEvent('errorchange',a,b)}if(a.rendered&&!a.destroyed&&!a.preventMark){a.toggleInvalidCls(c);if(a.errorEl){a.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.cmd.derive('Ext.form.field.Field',Ext.Base,{mixinId:'field',isFormField:!0,config:{validation:null,validationField:null},disabled:!1,submitValue:!0,validateOnChange:!0,valuePublishEvent:'change',suspendCheckChange:0,dirty:!1,initField:function(){var a=this,b=a.valuePublishEvent,d,c;a.initValue();if(Ext.isString(b)){a.on(b,a.publishValue,a)}else {for(c=0,d=b.length;c<d;++c){a.on(b[c],a.publishValue,a)}}},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(a,b){return String(a)===String(b)},isEqualAsString:function(a,b){return String(Ext.valueFrom(a,''))===String(Ext.valueFrom(b,''))},getSubmitData:function(){var a=this,b=null;if(!a.disabled&&a.submitValue){b={};b[a.getName()]=''+a.getValue()}return b},getModelData:function(d,c){var a=this,b=null;if(!a.disabled&&(a.submitValue||!c)){b={};b[a.getFieldIdentifier()]=a.getValue()}return b},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 a=this,b,c;if(!a.suspendCheckChange&&!a.destroying&&!a.destroyed){b=a.getValue();c=a.lastValue;if(a.didValueChange(b,c)){a.lastValue=b;a.fireEvent('change',a,b,c);a.onChange(b,c)}}},didValueChange:function(a,b){return !this.isEqual(a,b)},onChange:function(b){var a=this;if(a.validateOnChange){a.validate()}a.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(e){var b=[],d=this.getValidationField(),a=this.getValidation(),c;if(d){c=d.validate(e,null,null,this._ownerRecord);if(c!==!0){b.push(c)}}if(a&&a!==!0){b.push(a)}return b},isValid:function(){var a=this;return a.disabled||Ext.isEmpty(a.getErrors())},validate:function(){return this.checkValidityChange(this.isValid())},checkValidityChange:function(a){var b=this;if(a!==b.wasValid){b.wasValid=a;b.fireEvent('validitychange',b,a)}return a},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 !1},extractFileInput:function(){return null},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,updateValidation:function(b,a){if(a){this.validate()}},privates:{resetToInitialValue:function(){var a=this,b=a.originalValue;a.originalValue=a.initialValue;a.reset();a.originalValue=b}}},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:!0,shrinkWrap:!0,fieldSubTpl:['<input id="{id}" data-ref="inputEl" type="{type}" {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>','<tpl if="ariaEl == \'inputEl\'">','<tpl foreach="ariaElAttributes"> {$}="{.}"</tpl>','</tpl>','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</tpl>',' class="{fieldCls} {typeCls} {typeCls}-{ui} {editableCls} {inputCls} {fixCls}" autocomplete="off"/>',{disableFormats:!0}],defaultBindProperty:'value',autoEl:{role:'presentation'},subTplInsertions:['inputAttrTpl'],childEls:['inputEl'],inputType:'text',isTextInput:!0,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:!0,readOnly:!1,readOnlyCls:'x-form-readonly',validateOnBlur:!0,validateOnFocusLeave:!1,hasFocus:!1,baseCls:'x-field',fieldBodyCls:'x-field-body',webkitBorderBoxBugCls:'x-webkit-border-box-bug',maskOnDisable:!1,stretchInputElFixed:!0,ariaEl:'inputEl',focusEl:'inputEl',renderAriaElements:!0,initComponent:function(){var a=this;Ext.Component.prototype.initComponent.call(this);a.subTplData=a.subTplData||{};a.initLabelable();a.initField();a.initDefaultName();if(a.validateOnFocusLeave){a.validateOnBlur=!1}if(a.readOnly){a.addCls(a.readOnlyCls)}a.addCls('x-form-type-'+a.inputType);if(a.format&&a.formatText&&!a.ariaHelp){a.ariaHelp=Ext.String.format(a.formatText,a.format)}},initDefaultName:function(){var a=this;if(!a.name){a.name=a.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+'-inputEl')},getSubTplData:function(i){var a=this,e=a.id,h=a.inputType,f=a.getInputId(),j=a.inputCls||'',g='',c,b,d;if(Ext.supports.WebKitInputTableBoxModelBug){g+=a.webkitBorderBoxBugCls}c=Ext.apply({ui:a.ui,id:f,cmpId:e,name:a.name||f,disabled:a.disabled,readOnly:a.readOnly,value:a.getRawValue(),type:h,fieldCls:a.fieldCls,fieldStyle:a.getFieldStyle(),childElCls:i.childElCls,tabIdx:a.tabIndex,inputCls:j,typeCls:'x-form-'+(a.isTextInput?'text':h),fixCls:g,ariaEl:a.ariaEl},a.subTplData);if(a.ariaRole){b={};if(!a.ariaStaticRoles[a.ariaRole]){b['aria-hidden']=!!a.hidden;b['aria-disabled']=!!a.disabled;d={'aria-invalid':!1,'aria-readonly':!!a.readOnly};if(a.ariaLabel){b['aria-label']=Ext.String.htmlEncode(a.ariaLabel)}b=Ext.apply(b,a.getAriaAttributes());if(!b['aria-describedby']){if(a.ariaHelp){d['aria-describedby']=e+'-ariaStatusEl '+e+'-ariaHelpEl'}else {d['aria-describedby']=e+'-ariaStatusEl'}}c.inputElAriaAttributes=d}if(a.ariaRole!=='native'){b.role=a.ariaRole}if(a.ariaLabel){b['aria-label']=a.ariaLabel}if(a.format&&a.formatText&&!c.title){b.title=Ext.String.formatEncode(a.formatText,a.format)}c.ariaElAttributes=b}a.getInsertionRenderData(c,a.subTplInsertions);return c},getSubTplMarkup:function(f){var b=this,c=b.getSubTplData(f),e=b.lookupTpl('preSubTpl'),d=b.lookupTpl('postSubTpl'),a='';if(e){a+=e.apply(c)}a+=b.lookupTpl('fieldSubTpl').apply(c);if(d){a+=d.apply(c)}return a},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(b){var c=this,a=c.inputEl;if(a){a.applyStyles(b)}c.fieldStyle=b},getFieldStyle:function(){var a=this.fieldStyle;return Ext.isObject(a)?Ext.DomHelper.generateStyles(a,null,!0):a||''},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},beforeBlur:function(a){if(this.validateOnBlur){this.validate()}},onFocusLeave:function(a){if(this.validateOnFocusLeave){this.validate()}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 a=this,b=(a.inputEl?a.inputEl.getValue():Ext.valueFrom(a.rawValue,''));a.rawValue=b;return b},setRawValue:function(b){var a=this,c=a.rawValue;if(!a.transformRawValue.$nullFn){b=a.transformRawValue(b)}b=Ext.valueFrom(b,'');if(c===undefined||c!==b){a.rawValue=b;if(a.inputEl){a.bindChangeEvents(!1);a.inputEl.dom.value=b;a.bindChangeEvents(!0)}}if(a.rendered&&a.reference){a.publishState('rawValue',b)}return b},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=!0;if(a.hasActiveError()){a.clearInvalid();a.hadErrorOnDisable=!0}}if(a.wasValid===!1){a.checkValidityChange(!0)}},onEnable:function(){var a=this,b=a.inputEl,d=a.preventMark,c;Ext.Component.prototype.onEnable.call(this);if(b){b.dom.disabled=!1}if(a.wasValid!==undefined){a.forceValidation=!0;a.preventMark=!a.hadErrorOnDisable;c=a.isValid();a.forceValidation=!1;a.preventMark=d;a.checkValidityChange(c)}delete a.hadErrorOnDisable},setReadOnly:function(b){var a=this,c=a.inputEl,d=a.readOnly;b=!!b;a[b?'addCls':'removeCls'](a.readOnlyCls);a.readOnly=b;if(c){c.dom.readOnly=b;c.dom.setAttribute('aria-readonly',b)}else if(a.rendering){a.setReadOnlyOnBoxReady=!0}if(b!==d){a.fireEvent('writeablechange',a,b)}},fireKey:function(a,b){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a,b)}},initEvents:function(){var a=this,d=a.inputEl,f=a.onFieldMutation,e=a.checkChangeEvents,g=e.length,c,b;if(d){a.mon(d,Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress',a.fireKey,a);for(c=0;c<g;++c){b=e[c];if(b==='propertychange'){a.usesPropertychange=!0}if(b==='textInput'){a.usesTextInput=!0}a.mon(d,b,f,a)}}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 a=this,b=a.checkChangeTask;if(!b){a.checkChangeTask=b=new Ext.util.DelayedTask(a.doCheckChangeTask,a)}if(!a.bindNotifyListener){a.bindNotifyListener=Ext.on('beforebindnotify',a.onBeforeNotify,a,{destroyable:!0})}b.delay(a.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 a=this,b=a.disabled,c=a.forceValidation||!b;return c?a.validateValue(a.processRawValue(a.getRawValue())):b},validateValue:function(d){var a=this,c=a.getErrors(d),b=Ext.isEmpty(c);if(!a.preventMark){if(b){a.clearInvalid()}else {a.markInvalid(c)}}return b},markInvalid:function(c){var a=this,d=a.getActiveError(),b;a.setActiveErrors(Ext.Array.from(c));b=a.getActiveError();if(d!==b){a.setError(b);if(!a.ariaStaticRoles[a.ariaRole]&&a.inputEl){a.inputEl.dom.setAttribute('aria-invalid',!0)}}},clearInvalid:function(){var a=this,b=a.hasActiveError();delete a.hadErrorOnDisable;a.unsetActiveError();if(b){a.setError('');if(!a.ariaStaticRoles[a.ariaRole]&&a.inputEl){a.inputEl.dom.setAttribute('aria-invalid',!1)}}},setError:function(d){var a=this,b=a.msgTarget,c;if(a.rendered){if(b==='title'||b==='qtip'){c=b==='qtip'?'data-errorqtip':'title';a.getActionEl().dom.setAttribute(c,d||'')}else {a.updateLayout()}}},renderActiveError:function(){var a=this,c=a.hasActiveError(),b=a.invalidCls+'-field';if(a.inputEl){a.inputEl[c?'addCls':'removeCls']([b,b+'-'+a.ui])}a.mixins.labelable.renderActiveError.call(a)},doDestroy:function(){var a=this,b=a.checkChangeTask;if(b){b.cancel()}Ext.destroy(a.bindNotifyListener);a.cleanupField();Ext.Component.prototype.doDestroy.call(this)},privates:{applyBind:function(f,b){var d=this,e=b&&b.value,a,c;a=Ext.Component.prototype.applyBind.call(this,f,b);if(a){c=a.value;d.hasBindingValue=!!c;if(c!==e&&d.getInherited().modelValidation){d.updateValueBinding(a)}}return a},applyRenderSelectors:function(){var a=this;Ext.Component.prototype.applyRenderSelectors.call(this);if(!a.inputEl){a.inputEl=a.el.getById(a.getInputId())}},bindChangeEvents:function(c){var b=c?'resumeEvent':'suspendEvent',a=this.inputEl;if(this.usesPropertychange){a[b]('propertychange')}if(this.usesTextInput){a[b]('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.lookupTpl('labelableRenderTpl')}return Ext.Component.prototype.initRenderTpl.call(this)},onBeforeNotify:function(){this.checkChangeTask.cancel();this.checkChange()},updateValueBinding:function(b){var d=this,a=b.value,c=b.$fieldBinding;if(c){c.destroy();b.$fieldBinding=null}if(a&&a.bindValidationField){d.fieldBinding=a.bindValidationField('setValidationField',d)}}},deprecated:{"5":{methods:{doComponentLayout:function(){this.bindChangeEvents(!1);this.callParent(arguments);this.bindChangeEvents(!0)}}}}},0,["field"],["component","box","field"],{"component":!0,"box":!0,"field":!0},["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.layout.component.field.Text',Ext.layout.component.Auto,{beginLayoutCycle:function(a,c){var b=a.target;a.el.toggleCls(b.heightedCls,!a.heightModel.shrinkWrap||b.minHeight!=null);Ext.layout.component.Auto.prototype.beginLayoutCycle.call(this,a,c)}},0,0,0,0,["layout.textfield"],0,[Ext.layout.component.field,'Text'],0));(Ext.cmd.derive('Ext.form.field.VTypes',Ext.Base,function(){var b=/^[a-zA-Z_]+$/,a=/^[a-zA-Z0-9_]+$/,c=/^(")?(?:[^\."\s])(?:(?:[\.])?(?:[\w\-!#$%&'*+/=?^_`{|}~]))*\1@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/,d=/(((^https?)|(^ftp)):\/\/((([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*)|(localhost|LOCALHOST))\/?)/i;return {singleton:!0,alternateClassName:'Ext.form.VTypes',email:function(a){return c.test(a)},emailText:'This field should be an e-mail address in the format "user@example.com"',emailMask:/[\w.\-@'"!#$%&'*+/=?^_`{|}~]/i,url:function(a){return d.test(a)},urlText:'This field should be a URL in the format "http://www.example.com"',alpha:function(a){return b.test(a)},alphaText:'This field should only contain letters and _',alphaMask:/[a-z_]/i,alphanum:function(b){return a.test(b)},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:!1,hidden:!1,hideOnReadOnly:undefined,tooltip:null,weight:0,preventMouseDown:!0,focusOnMousedown:!1,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>','<tpl if="ariaRole"> role="{ariaRole}"<tpl else> role="presentation"</tpl>','>','{[values.$trigger.renderBody(values)]}','</div>'],constructor:function(c){var a=this,b;Ext.apply(a,c);if(a.compat4Mode){b=a.cls;a.focusCls=[a.focusCls,b+'-focus'];a.overCls=[a.overCls,b+'-over'];a.clickCls=[a.clickCls,b+'-click']}},afterFieldRender:function(){var a=this,b=a.tooltip;a.initEvents();if(b){a.tooltip=null;a.setTooltip(b)}},destroy:function(){var a=this;a.clickRepeater=a.el=Ext.destroy(a.clickRepeater,a.el);a.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var b=this,a=b.el;b.hidden=!0;if(a){a.hide()}},initEvents:function(){var a=this,b=a.isFieldEnabled,c=a.getStateEl(),d=a.el;c.addClsOnOver(a.overCls,b,a);c.addClsOnClick(a.clickCls,b,a);if(a.repeatClick){a.clickRepeater=new Ext.util.ClickRepeater(d,{preventDefault:!0,handler:a.onClick,listeners:{mousedown:a.onClickRepeaterMouseDown,mouseup:a.onClickRepeaterMouseUp,scope:a},scope:a})}else {a.field.mon(d,{click:a.onClick,mousedown:a.onMouseDown,scope:a})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var a=this,c=a.field,b=!1;if(a.hidden||!c||!a.rendered||a.destroyed){b=!0}return !b},onClick:function(){var a=this,c=arguments,e=a.clickRepeater?c[1]:c[0],d=a.handler,b=a.field;if(d&&!b.readOnly&&a.isFieldEnabled()){Ext.callback(a.handler,a.scope,[b,a,e],0,b)}},resolveListenerScope:function(a){return this.field.resolveSatelliteListenerScope(this,a)},onMouseDown:function(a){if(a.pointerType!=='touch'&&(!this.field.containsFocus||this.focusOnMousedown)){this.field.focus()}if(this.preventMouseDown){a.preventDefault()}},onClickRepeaterMouseDown:function(b,a){if(!a.parentEvent||a.parentEvent.type==='mousedown'){this.field.inputEl.focus()}a.preventDefault()},onClickRepeaterMouseUp:function(d,c){var a=this,b=a.field;Ext.callback(a.endHandler,a.scope,[b,a,c],0,b)},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var a=this,b=a.el=a.field.triggerWrap.selectNode('#'+a.domId,!1);b.setVisibilityMode(Ext.Element.DISPLAY);a.rendered=!0},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(b){var a=this,d=a.width,c=a.hidden?'display:none;':'';if(d){c+='width:'+d}return Ext.XTemplate.getTpl(a,'renderTpl').apply({$trigger:a,fieldData:b,ui:b.ui,childElCls:b.childElCls,triggerId:a.domId=a.field.id+'-trigger-'+a.id,cls:a.cls,triggerStyle:c,extraCls:a.extraCls,baseCls:a.baseCls,ariaRole:a.ariaRole})},setHidden:function(a){if(a!==this.hidden){this[a?'hide':'show']()}},setTooltip:function(a){var b=this,c=b.el,d=b.tooltip;if(a!==d){b.tooltip=a;if(c){c.dom.setAttribute('data-qtip',Ext.htmlEncode(a))}}},setVisible:function(a){this.setHidden(!a)},show:function(){var b=this,a=b.el;b.hidden=!1;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'],componentLayout:'textfield',config:{hideTrigger:!1,autoHideInputMask:null,inputMask:null,triggers:undefined},renderConfig:{editable:!0},growMin:30,growMax:800,allowBlank:!0,validateBlank:!1,allowOnlyWhitespace:!0,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:'',emptyText:'',emptyCls:'x-form-empty-field',placeholderCoverCls:'x-placeholder-label',requiredCls:'x-form-required-field',ariaRole:'textbox',repeatTriggerClick:!1,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',heightedCls:'x-form-text-heighted',emptyClsElements:null,needArrowKeys:!0,childEls:['triggerWrap','inputWrap','placeholderLabel'],preSubTpl:['<div id="{cmpId}-triggerWrap" data-ref="triggerWrap"','<tpl if="ariaEl == \'triggerWrap\'">','<tpl foreach="ariaElAttributes"> {$}="{.}"</tpl>','<tpl else>',' role="presentation"','</tpl>',' class="{triggerWrapCls} {triggerWrapCls}-{ui}">','<div id={cmpId}-inputWrap data-ref="inputWrap"',' role="presentation" class="{inputWrapCls} {inputWrapCls}-{ui}">'],postSubTpl:['<tpl if="!Ext.supports.Placeholder">','<label id="{cmpId}-placeholderLabel" data-ref="placeholderLabel" for="{id}" class="{placeholderCoverCls} {placeholderCoverCls}-{ui}">{placeholder}</label>','</tpl>','</div>','<tpl for="triggers">{[values.renderTrigger(parent)]}</tpl>','</div>'],initComponent:function(){var a=this,b=a.emptyCls;if(a.allowOnlyWhitespace===!1){a.allowBlank=!1}if(a.grow){a.liquidLayout=!1}if(a.size){a.defaultBodyWidth=a.size*6.5+20}if(!a.onTrigger1Click){a.onTrigger1Click=a.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(a.readOnly){a.setReadOnly(a.readOnly)}a.fieldFocusCls=a.baseCls+'-focus';a.emptyUICls=b+' '+b+'-'+a.ui;a.addStateEvents('change')},initEvents:function(){var a=this,b=a.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(a.maskRe||(a.vtype&&a.disableKeyFilter!==!0&&(a.maskRe=Ext.form.field.VTypes[a.vtype+'Mask']))){a.mon(b,'keypress',a.filterKeys,a)}if(a.enableKeyEvents){a.mon(b,{scope:a,keyup:a.onKeyUp,keydown:a.onKeyDown,keypress:a.onKeyPress})}},isEqual:function(a,b){return this.isEqualAsString(a,b)},onChange:function(a,b){Ext.form.field.Base.prototype.onChange.call(this,a,b);this.autoSize()},getSubTplData:function(g){var a=this,f=a.getRawValue(),h=a.emptyText&&f.length<1,b=a.maxLength,e,d,c;if(a.enforceMaxLength){if(b===Number.MAX_VALUE){b=undefined}}else {b=undefined}if(a.emptyText){e=Ext.String.htmlEncode(a.emptyText)}d=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{triggerWrapCls:a.triggerWrapCls,inputWrapCls:a.inputWrapCls,placeholderCoverCls:a.placeholderCoverCls,triggers:a.orderedTriggers,maxLength:b,readOnly:!a.editable||a.readOnly,placeholder:e,value:f,fieldCls:a.fieldCls+(a.allowBlank?'':' '+a.requiredCls)+(h?' '+a.emptyUICls:'')});c=d.inputElAriaAttributes;if(c){c['aria-required']=!a.allowBlank}return d},beforeRender:function(){var a=this,b=a.height!=null||a.minHeight!=null||!!(a.ownerLayout&&a.ownerLayout.getItemSizePolicy(a,a.fakeSizeModel).setsHeight);if(b){a.protoEl.addCls(a.heightedCls)}(arguments.callee.$previous||Ext.form.field.Base.prototype.beforeRender).call(this)},onRender:function(){var a=this,b=a.getTriggers(),c=[],d;if(Ext.supports.FixedTableWidthBug){a.el._needsTableWidthFix=!0}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);a.emptyClsElements=[a.inputEl];if(b){a.invokeTriggers('onFieldRender');for(d in b){c.push(b[d].el)}a.triggerEl=a.triggerCell=new Ext.CompositeElement(c,!0)}a.inputCell=a.inputWrap;a.refreshEmptyText()},onResize:function(e,d,c,b){var a=this;if(a.rendered&&a.grow){a.autoSize()}Ext.form.field.Base.prototype.onResize.call(this,e,d,c,b)},afterRender:function(){Ext.form.field.Base.prototype.afterRender.call(this);this.invokeTriggers('afterFieldRender')},onBoxReady:function(b,a){var c=this;Ext.form.field.Base.prototype.onBoxReady.call(this,b,a);if(!c.liquidLayout){this.autoSize()}},applyInputMask:function(b,d){var a=Ext.field,c=a&&a['InputMask'];return b?c.from(b,d):null},applyTriggers:function(c){var a=this,j=a.getHideTrigger(),k=a.readOnly,f=a.orderedTriggers=[],i=a.repeatTriggerClick,e,b,h,g,d;if(!c){c={};if(a.triggerCls&&!a.trigger1Cls){a.trigger1Cls=a.triggerCls}for(d=1;(g=a['trigger'+d+'Cls']);d++){c['trigger'+d]={cls:g,extraCls:'x-trigger-index-'+d,handler:'onTrigger'+d+'Click',compat4Mode:!0,scope:a}}}for(e in c){if(c.hasOwnProperty(e)){b=c[e];b.field=a;b.id=e;if((k&&b.hideOnReadOnly!==!1)||(j&&b.hidden!==!1)){b.hidden=!0}if(i&&(b.repeatClick!==!1)){b.repeatClick=!0}h=c[e]=Ext.form.trigger.Trigger.create(b);f.push(h)}}Ext.Array.sort(f,Ext.weightSortFn);return c},invokeTriggers:function(d,e){var f=this,a=f.getTriggers(),c,b;if(a){for(c in a){if(a.hasOwnProperty(c)){b=a[c];b[d].apply(b,e||[])}}}},getTrigger:function(a){return this.getTriggers()[a]},updateMinHeight:function(a,b){Ext.form.field.Base.prototype.updateMinHeight.call(this,a,b);this.toggleCls('x-has-min-height',!!a)},updateInputMask:function(b,a){if(a){a.release()}if(b){this.enableKeyEvents=!0}},updateHideTrigger:function(a){this.invokeTriggers(a?'hide':'show')},updateEditable:function(a,b){this.setReadOnlyAttr(!a||this.readOnly)},setReadOnly:function(a){var b=this,d=b.getTriggers(),f=b.getHideTrigger(),c,e;a=!!a;Ext.form.field.Base.prototype.setReadOnly.call(this,a);if(b.rendered){b.setReadOnlyAttr(a||!b.editable)}if(d){for(e in d){c=d[e];if(c.hideOnReadOnly===!0||(c.hideOnReadOnly!==!1&&!f)){c.setVisible(!a)}}}},setReadOnlyAttr:function(c){var a=this,b='readonly',d=a.inputEl.dom;if(c){d.setAttribute(b,b)}else {d.removeAttribute(b)}if(!a.ariaStaticRoles[a.ariaRole]){a.inputEl.dom.setAttribute('aria-readonly',!!c)}},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=(a.ignoreCase)?'i':'';d+=(a.multiline)?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){e.setRawValue(b);if(e.lastValue===c){e.lastValue=b}c=b}}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(c){var a=this,b=a.getInputMask();if(b){b.onKeyDown(a,a.getValue(),c)}this.fireEvent('keydown',this,c)},onKeyUp:function(a){this.fireEvent('keyup',this,a)},onKeyPress:function(c){var a=this,b=a.getInputMask();if(b){b.onKeyPress(a,a.getValue(),c)}a.fireEvent('keypress',a,c)},getEmptyText:function(){return this.emptyText},setEmptyText:function(a){var b=this,c=b.inputEl;a=a||'';b.emptyText=a;if(b.rendered){if(Ext.supports.Placeholder&&!b.simulatePlaceholder){if(a){c.dom.setAttribute('placeholder',a)}else {c.dom.removeAttribute('placeholder')}}else {b.placeholderLabel.setHtml(a)}b.refreshEmptyText()}return this},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,a);this.triggerWrap[b](this.triggerWrapInvalidCls);this.inputWrap[b](this.inputWrapInvalidCls)},onFieldMutation:function(a){this.refreshEmptyText();Ext.form.field.Base.prototype.onFieldMutation.call(this,a)},refreshEmptyText:function(){var a=this,f=a.inputEl,e=a.emptyClsElements,d,c,b;if(f){d=a.getValue();c=!(f.dom.value||(Ext.isArray(d)&&d.length));if(a.placeholderLabel){a.placeholderLabel.setDisplayed(c)}for(b=0;b<e.length;b++){e[b].toggleCls(a.emptyUICls,c)}}},setValue:function(a){a=Ext.form.field.Base.prototype.setValue.call(this,a);this.refreshEmptyText();return a},onFocus:function(f){var a=this,b=a.inputEl.dom,c=a.getInputMask(),d,e;Ext.form.field.Base.prototype.onFocus.call(this,f);if(a.emptyText){a.autoSize()}if(c){c.onFocus(a,b.value)}a.addCls(a.fieldFocusCls);a.triggerWrap.addCls(a.triggerWrapFocusCls);a.inputWrap.addCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldFocus',[f]);if(a.selectOnFocus&&document.activeElement===b){d=b.value;e=d.length;Ext.asap(a.selectText,a,[0,e])}},onBlur:function(e){var a=this,c=a.inputEl.dom,b=a.getInputMask(),d;Ext.form.field.Base.prototype.onBlur.call(this,e);d=c&&c.value;a.removeCls(a.fieldFocusCls);a.triggerWrap.removeCls(a.triggerWrapFocusCls);a.inputWrap.removeCls(a.inputWrapFocusCls);a.invokeTriggers('onFieldBlur',[e]);if(b&&a.getAutoHideInputMask()!==!1){b.onBlur(a,d)}},filterKeys:function(a){if((a.ctrlKey&&!a.altKey)||a.isSpecialKey()){return}var b=String.fromCharCode(a.getCharCode());if(!this.maskRe.test(b)){a.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),'value')},applyState:function(a){Ext.form.field.Base.prototype.applyState.call(this,a);if(a.hasOwnProperty('value')){this.setValue(a.value)}},getErrors:function(b){b=arguments.length?(b==null?'':b):this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Base.prototype.getErrors.call(this,b),f=a.validator,d=a.vtype,j=Ext.form.field.VTypes,k=a.regex,i=Ext.String.format,e,h,g;if(Ext.isFunction(f)){e=f.call(a,b);if(e!==!0){c.push(e)}}h=a.allowOnlyWhitespace?b:Ext.String.trim(b);if(h.length<1){if(!a.allowBlank){c.push(a.blankText)}if(!a.validateBlank){return c}g=!0}if(!g&&b.length<a.minLength){c.push(i(a.minLengthText,a.minLength))}if(b.length>a.maxLength){c.push(i(a.maxLengthText,a.maxLength))}if(d){if(!j[d](b,a)){c.push(a.vtypeText||j[d+'Text'])}}if(k&&!k.test(b)){c.push(a.regexText||a.invalidText)}return c},getCaretPos:function(){return this.inputEl.getCaretPos()},setCaretPos:function(a){this.inputEl.setCaretPos(a)},getTextSelection:function(){return this.inputEl.getTextSelection()},selectText:function(b,c,a){if(!this.destroyed){this.inputEl.selectText(b,c,a);return this}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var a=this,e,g,d,f,b,c;if(a.grow&&a.rendered&&a.getSizeModel().width.auto){f=a.inputEl;e=a.getTriggers();d=0;c=Ext.util.Format.htmlEncode(a.getGrowWidth()||(a.hasFocus?'':a.emptyText)||'');c=c.replace(/\s/g,'&nbsp;');for(g in e){d+=e[g].el.getWidth()}b=f.getTextWidth(c)+d+a.inputWrap.getBorderWidth('lr')+a.triggerWrap.getBorderWidth('lr')+f.getPadding('lr');b=Math.min(Math.max(b,a.growMin),a.growMax);a.bodyEl.setWidth(b);a.updateLayout();a.fireEvent('autosize',a,b)}},doDestroy:function(){var a=this;a.invokeTriggers('destroy');Ext.destroy(a.triggerRepeater);a.setInputMask(null);Ext.form.field.Base.prototype.doDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return 'textfield'}},deprecated:{5:{methods:{getTriggerWidth:function(){var a=this.getTriggers(),c=0,b;if(a&&this.rendered){for(b in a){if(a.hasOwnProperty(b)){c+=a[b].el.getWidth()}}}return c}}}}},0,["textfield"],["component","box","field","textfield"],{"component":!0,"box":!0,"field":!0,"textfield":!0},["widget.textfield"],0,[Ext.form.field,'Text',Ext.form,'TextField',Ext.form,'Text'],function(b){var a=Ext.layout.SizeModel.calculated;b.prototype.fakeSizeModel=a.pairsByHeightOrdinal[a.ordinal]}));(Ext.cmd.derive('Ext.form.field.TextArea',Ext.form.field.Text,{alternateClassName:'Ext.form.TextArea',fieldSubTpl:['<textarea id="{id}" data-ref="inputEl" rows="1" {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} {fixCls}" ','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>','<tpl foreach="ariaElAttributes"> {$}="{.}"</tpl>','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</tpl>',' autocomplete="off">\n','<tpl if="value">{[Ext.util.Format.htmlEncode(values.value)]}</tpl>','</textarea>',{disableFormats:!0}],growMin:60,growMax:1000,growAppend:'\n-',enterIsSpecial:!1,preventScrollbars:!1,returnRe:/\r/g,inputCls:'x-form-textarea',extraFieldBodyCls:'x-form-textarea-body',ariaAttributes:{'aria-multiline':!0},getSubTplData:function(d){var a=this,c=a.getFieldStyle(),b=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(a.grow){if(a.preventScrollbars){b.fieldStyle=(c||'')+';overflow:hidden;'}}return b},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,a=b.getValue(),c=b.maxLength;if(a.length>c){a=a.substr(0,c);b.setValue(a)}},fireKey:function(a){var b=this,c=a.getKey(),d;if(a.isSpecialKey()&&(b.enterIsSpecial||(c!==a.ENTER||a.hasModifier()))){b.fireEvent('specialkey',b,a)}if(b.needsMaxCheck&&c!==a.BACKSPACE&&c!==a.DELETE&&!a.isNavKeyPress()&&!b.isCutCopyPasteSelectAll(a,c)){d=b.getValue();if(d.length>=b.maxLength){a.stopEvent()}}},isCutCopyPasteSelectAll:function(a,b){if(a.ctrlKey){return b===a.A||b===a.C||b===a.V||b===a.X}return !1},autoSize:function(){var a=this,b,e,c,f,d;if(a.grow&&a.rendered&&a.getSizeModel().height.auto){b=a.inputEl;f=b.getWidth(!0);d=Ext.util.Format.htmlEncode(b.dom.value)||'&#160;';d+=a.growAppend;d=d.replace(/\n/g,'<br/>');c=Ext.util.TextMetrics.measure(b,d,f).height+b.getPadding('tb')+a.inputWrap.getBorderWidth('tb')+a.triggerWrap.getBorderWidth('tb');c=Math.min(Math.max(c,a.growMin),a.growMax);e=a.preventScrollbars||!a.growMax||c<a.growMax;b.setStyle('overflow-y',e?'hidden':'auto');a.bodyEl.setHeight(c);a.updateLayout();a.fireEvent('autosize',a,c)}},doDestroy:function(){var a=this.pasteTask;if(a){a.cancel()}Ext.form.field.Text.prototype.doDestroy.call(this)}},0,["textarea","textareafield"],["component","box","field","textfield","textareafield","textarea"],{"component":!0,"box":!0,"field":!0,"textfield":!0,"textareafield":!0,"textarea":!0},["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:!1,scrollable:!0,title:'&#160;',defaultMinWidth:250,defaultMaxWidth:600,defaultMinHeight:110,defaultMaxHeight:500,minWidth:null,maxWidth:null,minHeight:null,maxHeight:null,constrain:!0,cls:['x-message-box','x-hidden-offsets'],layout:{type:'vbox',align:'stretch'},shrinkWrapDock:!0,defaultTextHeight:75,minProgressWidth:250,minPromptWidth:250,buttonText:{ok:'OK',yes:'Yes',no:'No',cancel:'Cancel'},buttonIds:['ok','yes','no','cancel'],baseIconCls:'x-message-box-icon',ariaRole:'alertdialog',makeButton:function(b){var a=this.buttonIds[b];return new Ext.button.Button({handler:this.btnCallback,itemId:a,scope:this,text:this.buttonText[a],minWidth:75})},btnCallback:function(e,b){var a=this,d,c;if(b&&b.type==='keydown'&&!b.isSpecialKey()){b.getTarget(null,null,!0).on({keyup:function(c){a.btnCallback(e,c)},single:!0});return}if(a.cfg.prompt||a.cfg.multiline){if(a.cfg.multiline){c=a.textArea}else {c=a.textField}d=c.getValue();c.reset()}a.hide();a.userCallback(e.itemId,d,a.cfg)},hide:function(){var a=this,b=a.cfg?a.cfg.cls:'';a.progressBar.reset();if(b){a.removeCls(b)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(b){var a=this;Ext.window.Window.prototype.constructor.apply(this,arguments);a.minWidth=a.defaultMinWidth=(a.minWidth||a.defaultMinWidth);a.maxWidth=a.defaultMaxWidth=(a.maxWidth||a.defaultMaxWidth);a.minHeight=a.defaultMinHeight=(a.minHeight||a.defaultMinHeight);a.maxHeight=a.defaultMaxHeight=(a.maxHeight||a.defaultMaxHeight)},initComponent:function(e){var a=this,b=a.id,d,c;a.title=a.title||'&#160;';a.iconCls=a.iconCls||'';a.topContainer=new Ext.container.Container({layout:'hbox',padding:10,style:{overflow:'hidden'},items:[a.iconComponent=new Ext.Component({cls:a.baseIconCls}),a.promptContainer=new Ext.container.Container({flex:1,layout:{type:'vbox',align:'stretch'},items:[a.msg=new Ext.Component({id:b+'-msg',cls:a.baseCls+'-text'}),a.textField=new Ext.form.field.Text({id:b+'-textfield',enableKeyEvents:!0,ariaAttributes:{'aria-labelledby':a.msg.id},listeners:{keydown:a.onPromptKey,scope:a}}),a.textArea=new Ext.form.field.TextArea({id:b+'-textarea',height:75,ariaAttributes:{'aria-labelledby':a.msg.id}})]})]});a.progressBar=new Ext.ProgressBar({id:b+'-progressbar',margin:'0 10 10 10'});a.items=[a.topContainer,a.progressBar];a.msgButtons=[];for(d=0;d<4;d++){c=a.makeButton(d);a.msgButtons[c.itemId]=c;a.msgButtons.push(c)}a.bottomTb=new Ext.toolbar.Toolbar({id:b+'-toolbar',ui:'footer',dock:'bottom',focusableContainer:!1,ariaRole:null,layout:{pack:'center'},items:[a.msgButtons[0],a.msgButtons[1],a.msgButtons[2],a.msgButtons[3]]});a.dockedItems=[a.bottomTb];a.on('close',a.onClose,a);Ext.window.Window.prototype.initComponent.call(this)},afterRender:function(){var a=this;Ext.window.Window.prototype.afterRender.apply(this,arguments);a.textField.labelEl.dom.removeAttribute('for');a.textArea.labelEl.dom.removeAttribute('for')},onClose:function(){var a=this.msgButtons[3];if(a){this.btnCallback(a)}},onPromptKey:function(c,b){var a=this;if(b.keyCode===b.RETURN||b.keyCode===10){if(a.msgButtons.ok.isVisible()){a.msgButtons.ok.handler.call(a,a.msgButtons.ok)}else if(a.msgButtons.yes.isVisible()){a.msgButtons.yes.handler.call(a,a.msgButtons.yes)}}},reconfigure:function(b){var a=this,k=0,s=!0,w=a.buttonText,g=a.resizer,c=a.header,u=c&&!c.isHeader,v=b&&(b.message||b.msg),t=b.buttonTips,p,n,i,q,o,e,d,f,l,j,m,h,r;a.updateButtonText();a.cfg=b=b||{};h=b.wait;if(b.width){q=b.width}if(b.height){o=b.height}a.minWidth=b.minWidth||a.defaultMinWidth;a.maxWidth=b.maxWidth||a.defaultMaxWidth;a.minHeight=b.minHeight||a.defaultMinHeight;a.maxHeight=b.maxHeight||a.defaultMaxHeight;if('maskClickAction' in b){a.maskClickAction=b.maskClickAction}else {delete a.maskClickAction}if(g){i=g.resizeTracker;g.minWidth=i.minWidth=a.minWidth;g.maxWidth=i.maxWidth=a.maxWidth;g.minHeight=i.minHeight=a.minHeight;g.maxHeight=i.maxHeight=a.maxHeight}delete a.defaultFocus;if(b.defaultFocus){a.defaultFocus=b.defaultFocus}a.animateTarget=b.animateTarget||undefined;a.modal=b.modal!==!1;if(b.title!=null){p=b.title}else if(u&&c.title!=null){p=c.title}else {p=a.title}if(b.iconCls!=null){n=b.iconCls}else if(u&&c.iconCls!=null){n=c.iconCls}else {n=a.iconCls}a.setTitle(p);a.setIconCls(n);if(Ext.isObject(b.buttons)){a.buttonText=b.buttons;k=0}else {a.buttonText=b.buttonText||a.buttonText;k=Ext.isNumber(b.buttons)?b.buttons:0}Ext.each(a.buttonIds,function(c){a.msgButtons[c].setTooltip((t&&t[c])||null)});k=k|a.updateButtonText();a.buttonText=w;Ext.suspendLayouts();a.width=a.height=null;if(q||o){if(q){a.setWidth(q)}if(o){a.setHeight(o)}}if(!a.rendered){a.render(Ext.getBody())}a.closable=b.closable!==!1&&!h;c=a.header;if(c){r=c.child('[type=close]');if(r){r.setVisible(a.closable)}if(!b.title&&!a.closable&&!b.iconCls){c.hide()}else {c.show()}}a.liveDrag=!b.proxyDrag;a.userCallback=Ext.Function.bindCallback(b.callback||b.fn||Ext.emptyFn,b.scope||Ext.global);a.setIcon(b.icon);l=a.msg;if(v){l.setHtml(v);l.show();a.ariaEl.dom.setAttribute('aria-describedby',l.id)}else {l.hide();a.ariaEl.dom.removeAttribute('aria-describedby')}d=a.textArea;f=a.textField;if(b.prompt||b.multiline){a.multiline=b.multiline;if(b.multiline){d.setValue(b.value);d.setHeight(b.defaultTextHeight||a.defaultTextHeight);d.show();f.hide();a.defaultFocus=d}else {f.setValue(b.value);d.hide();f.show();a.defaultFocus=f}a.ariaEl.dom.removeAttribute('aria-describedby')}else {d.hide();f.hide()}j=a.progressBar;if(b.progress||h){j.show();a.updateProgress(0,b.progressText);a.defaultFocus=j;if(h){j.wait(h===!0?b.waitConfig:h)}}else {j.hide()}m=a.msgButtons;for(e=0;e<4;e++){if(k&Math.pow(2,e)){if(!a.defaultFocus){a.defaultFocus=m[e]}m[e].show();s=!1}else {m[e].hide()}}if(s){a.bottomTb.hide()}else {a.bottomTb.show()}Ext.resumeLayouts(!0)},updateButtonText:function(){var b=this,c=b.buttonText,e=0,a,d;for(a in c){if(c.hasOwnProperty(a)){d=b.msgButtons[a];if(d){if(b.cfg&&b.cfg.buttonText){e=e|Math.pow(2,Ext.Array.indexOf(b.buttonIds,a))}if(d.text!==c[a]){d.setText(c[a])}}}}return e},show:function(b){var a=this,c;b=b||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){a.show(b)},single:!0});return a}a.reconfigure(b);if(b.cls){a.addCls(b.cls)}c=a.query('textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])');a.preventFocusOnActivate=!c.length;Ext.window.Window.prototype.show.call(this);return a},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(a){this.msg.setHtml(a)},setIcon:function(e,d,c){var b=this,a=b.iconComponent,f=b.messageIconCls;if(f){a.removeCls(f)}if(e){a.show();if(d||c){a.setSize(d||a.getWidth(),c||a.getHeight())}a.addCls('x-dlg-icon');a.addCls(b.messageIconCls=e)}else {a.removeCls('x-dlg-icon');a.hide()}return b},updateProgress:function(c,b,a){this.progressBar.updateProgress(c,b);if(a){this.updateText(a)}return this},onEsc:function(){if(this.closable!==!1){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(a,b,d,c){if(Ext.isString(a)){a={title:a,icon:this.QUESTION,message:b,buttons:this.YESNO,callback:d,scope:c}}return this.show(a)},prompt:function(a,c,f,d,b,e){if(Ext.isString(a)){a={prompt:!0,title:a,minWidth:this.minPromptWidth,message:c,buttons:this.OKCANCEL,callback:f,scope:d,multiline:b,value:e}}return this.show(a)},wait:function(a,c,b){if(Ext.isString(a)){a={title:c,message:a,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b}}return this.show(a)},alert:function(a,b,d,c){if(Ext.isString(a)){a={title:a,message:b,buttons:this.OK,fn:d,scope:c,minWidth:this.minWidth}}return this.show(a)},progress:function(a,c,b){if(Ext.isString(a)){a={title:a,message:c,progress:!0,progressText:b}}return this.show(a)},privates:{syncHeaderConfigs:Ext.privateFn}},1,["messagebox"],["component","box","container","panel","window","messagebox"],{"component":!0,"box":!0,"container":!0,"panel":!0,"window":!0,"messagebox":!0},["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(c,d){var a=this,b;a.owner=c;a.fieldMonitors={validitychange:a.checkValidityDelay,enable:a.checkValidityDelay,disable:a.checkValidityDelay,dirtychange:a.checkDirtyDelay,errorchange:a.checkErrorDelay,scope:a};a.checkValidityTask=new Ext.util.DelayedTask(a.checkValidity,a);a.checkDirtyTask=new Ext.util.DelayedTask(a.checkDirty,a);a.checkErrorTask=new Ext.util.DelayedTask(a.checkError,a);a.monitor=new Ext.container.Monitor({selector:'[isFormField]:not([excludeForm])',scope:a,addHandler:a.onFieldAdd,removeHandler:a.onFieldRemove,invalidateHandler:a.onMonitorInvalidate});a.monitor.bind(c);Ext.apply(a,d);if(Ext.isString(a.paramOrder)){a.paramOrder=a.paramOrder.split(/[\s,|]/)}b=a.reader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.reader=Ext.createByAlias('reader.'+b.type,b)}b=a.errorReader;if(b&&!b.isReader){if(typeof b==='string'){b={type:b}}a.errorReader=Ext.createByAlias('reader.'+b.type,b)}Ext.util.Observable.prototype.constructor.call(this)},initialize:function(){this.initialized=!0;this.onValidityChange(!this.hasInvalidField())},timeout:30,paramsAsHash:!1,waitTitle:'Please Wait...',trackResetOnLoad:!1,wasDirty:!1,destroy:function(){var a=this,b=a.monitor;Ext.undefer(a.actionTimer);if(b){b.unbind();a.monitor=null}a.clearListeners();a.checkValidityTask.cancel();a.checkDirtyTask.cancel();a.checkErrorTask.cancel();a.checkValidityTask=a.checkDirtyTask=a.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},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(a){var c=a.preventMark,b;a.preventMark=!0;b=a.isValid();a.preventMark=c;return !b})},isValid:function(){var b=this,a;Ext.suspendLayouts();a=b.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(!0);return a.length<1},checkValidity:function(){var a=this,b;if(a.destroyed){return}b=!a.hasInvalidField();if(b!==a.wasValid){a.onValidityChange(b);a.fireEvent('validitychange',a,b);a.wasValid=b}},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(e){var d=this.getBoundItems(),b,a,f,c;if(d){b=d.items;f=b.length;for(a=0;a<f;a++){c=b[a];if(c.disabled===e){c.setDisabled(!e)}}}},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.destroyed){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(a,c){var b=this;if(Ext.isString(a)){a=Ext.ClassManager.instantiateByAlias('formaction.'+a,Ext.apply({},c,{form:b}))}if(b.fireEvent('beforeaction',b,a)!==!1){b.beforeAction(a);b.actionTimer=Ext.defer(a.run,100,a)}return b},submit:function(a){a=a||{};var c=this,b;if(a.standardSubmit||c.standardSubmit){b='standardsubmit'}else {b=c.api?'directsubmit':'submit'}return c.doAction(b,a)},load:function(a){return this.doAction(this.api?'directload':'load',a)},updateRecord:function(a){a=a||this._record;if(!a){return this}var d=a.self.fields,e=this.getFieldValues(),f={},c=0,g=d.length,b;for(;c<g;++c){b=d[c].name;if(e.hasOwnProperty(b)){f[b]=e[b]}}a.beginEdit();a.set(f);a.endEdit();return this},loadRecord:function(a){this._record=a;return this.setValues(a.getData())},getRecord:function(){return this._record},beforeAction:function(g){var a=this,c=g.waitMsg,f='x-mask-loading',h=a.getFields().items,e,i=h.length,d,b;for(e=0;e<i;e++){d=h[e];if(d.isFormField&&d.syncValue){d.syncValue()}}if(c){b=a.waitMsgTarget;if(b===!0){a.owner.el.mask(c,f)}else if(b){b=a.waitMsgTarget=Ext.get(b);b.mask(c,f)}else {a.floatingAncestor=a.owner.up('[floating]');if(a.floatingAncestor){a.savePreventFocusOnActivate=a.floatingAncestor.preventFocusOnActivate;a.floatingAncestor.preventFocusOnActivate=!0}Ext.MessageBox.wait(c,g.waitTitle||a.waitTitle)}}},afterAction:function(a,e){var b=this;if(a.waitMsg){var d=Ext.MessageBox,c=b.waitMsgTarget;if(c===!0){b.owner.el.unmask()}else if(c){c.unmask()}else {d.hide()}}if(b.floatingAncestor){b.floatingAncestor.preventFocusOnActivate=b.savePreventFocusOnActivate}if(e){if(a.reset){b.reset()}Ext.callback(a.success,a.scope||a,[b,a]);b.fireEvent('actioncomplete',b,a)}else {Ext.callback(a.failure,a.scope||a,[b,a]);b.fireEvent('actionfailed',b,a)}},findField:function(a){return this.getFields().findBy(function(b){return b.id===a||b.name===a||b.dataIndex===a})},markInvalid:function(a){var g=this,c,d,b,f,e;function mark(c,d){var b=g.findField(c);if(b){b.markInvalid(d)}}if(Ext.isArray(a)){d=a.length;for(c=0;c<d;c++){b=a[c];mark(b.id||b.field,b.msg||b.message)}}else if(a instanceof Ext.data.ErrorCollection){d=a.items.length;for(c=0;c<d;c++){b=a.items[c];mark(b.field,b.message)}}else {for(e in a){if(a.hasOwnProperty(e)){f=a[e];mark(e,f,a)}}}return this},setValues:function(a){var e=this,b,d,c;function setVal(c,d){var b=e.findField(c);if(b){b.setValue(d);if(e.trackResetOnLoad){b.resetOriginalValue()}}}Ext.suspendLayouts();if(Ext.isArray(a)){d=a.length;for(b=0;b<d;b++){c=a[b];setVal(c.id,c.value)}}else {Ext.iterate(a,setVal)}Ext.resumeLayouts(!0);return this},getValues:function(o,n,h,k,l){var a={},j=this.getFields().items,p=j.length,i=Ext.isArray,m=k?'getModelData':'getSubmitData',e,f,c,d,b,g;for(g=0;g<p;g++){e=j[g];if(!n||e.isDirty()){f=e[m](h,l);if(Ext.isObject(f)){for(b in f){if(f.hasOwnProperty(b)){c=f[b];if(h&&c===''){c=e.emptyText||''}if(!e.isRadio){if(a.hasOwnProperty(b)){d=a[b];if(!i(d)){d=a[b]=[d]}if(i(c)){a[b]=d.concat(c)}else {d.push(c)}}else {a[b]=c}}else {a[b]=a[b]||c}}}}}}if(o){a=Ext.Object.toQueryString(a)}return a},getFieldValues:function(a){return this.getValues(!1,a,!1,!0)},clearInvalid:function(){Ext.suspendLayouts();var c=this,b=c.getFields().items,a,d=b.length;for(a=0;a<d;a++){b[a].clearInvalid()}Ext.resumeLayouts(!0);return c},reset:function(d){Ext.suspendLayouts();var b=this,c=b.getFields().items,a,e=c.length;for(a=0;a<e;a++){c[a].reset()}Ext.resumeLayouts(!0);if(d===!0){delete b._record}return b},applyToFields:function(d){var b=this.getFields().items,a,c=b.length;for(a=0;a<c;a++){Ext.apply(b[a],d)}return this},applyIfToFields:function(d){var b=this.getFields().items,a,c=b.length;for(a=0;a<c;a++){Ext.applyIf(b[a],d)}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:{doDestroy:'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(a){var c=a.fieldDefaults,b=this.fieldDefaults;if(b){if(c){a.fieldDefaults=Ext.apply(Ext.Object.chain(c),b)}else {a.fieldDefaults=b}}},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(b,c){var a=this;if(b!==a){a.fireEvent('fieldvaliditychange',a,b,c);a.onFieldValidityChange(b,c)}},handleFieldErrorChange:function(b,c){var a=this;if(b!==a){a.fireEvent('fielderrorchange',a,b,c);a.onFieldErrorChange(b,c)}},onFieldValidityChange:Ext.emptyFn,onFieldErrorChange:Ext.emptyFn,onBeforeDestroy:function(){this.monitor=Ext.destroy(this.monitor)}},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:!0,waitForOuterWidthInDom:!0,beginLayout:function(a){var b=this.owner.containerEl;Ext.layout.component.Auto.prototype.beginLayout.call(this,a);a.hasRawContent=!0;b.setStyle('width','');b.setStyle('height','');a.containerElContext=a.getEl('containerEl')},calculateOwnerHeightFromContentHeight:function(b,a){var c=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.call(this,b,a);return c+this.getHeightAdjustment()},calculateOwnerWidthFromContentWidth:function(b,a){var c=Ext.layout.component.Auto.prototype.calculateOwnerWidthFromContentWidth.call(this,b,a);return c+this.getWidthAdjustment()},measureContentHeight:function(a){return a.hasDomProp('containerLayoutDone')?Ext.layout.component.Auto.prototype.measureContentHeight.call(this,a):NaN},measureContentWidth:function(a){return a.hasDomProp('containerLayoutDone')?Ext.layout.component.Auto.prototype.measureContentWidth.call(this,a):NaN},publishInnerHeight:function(b,a){a-=this.getHeightAdjustment();b.containerElContext.setHeight(a)},publishInnerWidth:function(b,a){a-=this.getWidthAdjustment();b.containerElContext.setWidth(a)},privates:{getHeightAdjustment:function(){var a=this.owner,b=0;if(a.labelAlign==='top'&&a.hasVisibleLabel()){b+=a.labelEl.getHeight()}if(a.msgTarget==='under'&&a.hasActiveError()){b+=a.errorWrapEl.getHeight()}return b+a.bodyEl.getPadding('tb')},getWidthAdjustment:function(){var a=this.owner,b=0;if(a.labelAlign!=='top'&&a.hasVisibleLabel()){b+=(a.labelWidth+(a.labelPad||0))}if(a.msgTarget==='side'&&a.hasActiveError()){b+=a.errorWrapEl.getWidth()}return b+a.bodyEl.getPadding('lr')}}},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:!0,autoEl:{tag:'div',role:'presentation'},childEls:['containerEl'],combineLabels:!1,labelConnector:', ',combineErrors:!1,maskOnDisable:!1,invalidCls:'',fieldSubTpl:['<div id="{id}-containerEl" data-ref="containerEl" class="{containerElCls}"','<tpl if="ariaAttributes">','<tpl foreach="ariaAttributes"> {$}="{.}"</tpl>','<tpl else>',' role="presentation"','</tpl>','>','{%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(b){var a=this;if(b.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&a.layout.type==='absolute'&&!a.hideLabel&&a.labelAlign!=='top'){b.x+=(a.labelWidth+a.labelPad)}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(b.isLabelable&&a.combineLabels){b.oldHideLabel=b.hideLabel;b.hideLabel=!0}a.updateLabel()},onRemove:function(a,c){var b=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!c){if(a.isLabelable&&b.combineLabels){a.hideLabel=a.oldHideLabel}b.updateLabel()}},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.containerElCls=b.containerElCls;a=Ext.applyIf(a,b.getLabelableRenderData());if(b.labelAlign==='top'||b.msgTarget==='under'){a.extraFieldBodyCls+=' x-field-container-body-vertical'}a.tipAnchorTarget=b.id+'-containerEl';return a},getFieldLabel:function(){var a=this.fieldLabel||'';if(!a&&this.combineLabels){a=Ext.Array.map(this.query('[isFieldLabelable]'),function(a){return a.getFieldLabel()}).join(this.labelConnector)}return a},getSubTplData:function(){var a=this.initRenderData();Ext.apply(a,this.subTplData);return a},getSubTplMarkup:function(d){var b=this,a=b.lookupTpl('fieldSubTpl'),c;if(!a.renderContent){b.setupRenderTpl(a)}c=a.apply(b.getSubTplData(d));return c},updateLabel:function(){var a=this,b=a.labelEl;if(b){a.setFieldLabel(a.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var a=this,d=a.getActiveError(),c=Ext.Array.filter(a.query('[isFormField]'),function(a){return a.hasActiveError()}),b=a.getCombinedErrors(c);if(b){a.setActiveErrors(b)}else {a.unsetActiveError()}if(d!==a.getActiveError()){a.updateLayout()}}},getCombinedErrors:function(f){var g=[],b,j=f.length,d,c,a,i,h,e;for(b=0;b<j;b++){d=f[b];c=d.getActiveErrors();i=c.length;for(a=0;a<i;a++){h=c[a];e=d.getFieldLabel();g.push((e?e+': ':'')+h)}}return g},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.lookupTpl('labelableRenderTpl')}return Ext.container.Container.prototype.initRenderTpl.call(this)}}},0,["fieldcontainer"],["component","box","container","fieldcontainer"],{"component":!0,"box":!0,"container":!0,"fieldcontainer":!0},["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:!0,type:'checkboxgroup',createsInnerCt:!0,childEls:['innerCt'],renderTpl:'<table id="{ownerId}-innerCt" data-ref="innerCt" class="x-table-plain" cellpadding="0"role="presentation" style="{tableStyle}"><tbody role="presentation"><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></tbody></table>',lastOwnerItemsGeneration:null,initLayout:function(){var b=this,a=b.owner;b.columnsArray=Ext.isArray(a.columns);b.autoColumns=!a.columns||a.columns==='auto';if(!b.autoColumns){b.vertical=a.vertical||(a.columns===1||a.columns.length===1)}Ext.layout.container.Container.prototype.initLayout.call(this)},beginLayout:function(i){var d=this,h,e,a,c,f,j=0,g=0,k=d.autoFlex,b=d.innerCt.dom.style;Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);h=d.rowNodes[0].children;i.innerCtContext=i.getEl('innerCt',d);if(!i.widthModel.shrinkWrap){e=h.length;if(d.columnsArray){for(a=0;a<e;a++){c=d.owner.columns[a];if(c<1){j+=c;g++}}for(a=0;a<e;a++){c=d.owner.columns[a];if(c<1){f=((c/j)*100)+'%'}else {f=c+'px'}h[a].style.width=f}}else {for(a=0;a<e;a++){f=k?(1/e*100)+'%':'';h[a].style.width=f;g++}}if(!g){b.tableLayout='fixed';b.width=''}else if(g<e){b.tableLayout='fixed';b.width='100%'}else {b.tableLayout='auto';if(k){b.width='100%'}else {b.width=''}}}else {b.tableLayout='auto';b.width=''}},cacheElements:function(){var a=this;Ext.layout.container.Container.prototype.cacheElements.call(this);a.rowNodes=a.innerCt.query('tr',!0);a.tBodyNode=a.rowNodes[0].parentNode},calculate:function(a){var h=this,d,c,b,g,f,e;if(!a.getDomProp('containerChildrenSizeDone')){h.done=!1}else {d=a.innerCtContext;c=a.widthModel.shrinkWrap;b=a.heightModel.shrinkWrap;g=b||c;f=d.el.dom;e=g&&d.getPaddingInfo();if(c){a.setContentWidth(f.offsetWidth+e.width,!0)}if(b){a.setContentHeight(f.offsetHeight+e.height,!0)}}},doRenderColumn:function(m,h,g){var l=h.$layout,j=l.owner,f=h.columnCount,i=j.items.items,b=i.length,e,a,d,c,k;if(j.vertical){d=Math.ceil(b/f);a=g*d;b=Math.min(b,a+d);c=1}else {a=g;c=f}for(;a<b;a+=c){e=i[a];l.configureItem(e);k=e.getRenderTree();Ext.DomHelper.generateMarkup(k,m)}},getColumnCount:function(){var c=this,b=c.owner,a=b.columns;if(c.columnsArray){return a.length}if(Ext.isNumber(a)){return a}return b.items.length},getItemSizePolicy:function(a){return this.autoSizePolicy},getRenderData:function(){var c=this,d=Ext.layout.container.Container.prototype.getRenderData.call(this),k=c.owner,a,e=c.getColumnCount(),b,g,h,j=c.autoFlex,i=0,f=0;if(c.columnsArray){for(a=0;a<e;a++){b=c.owner.columns[a];if(b<1){i+=b;f++}}}d.colCls=k.groupCls;d.columnCount=e;d.columns=[];for(a=0;a<e;a++){g=(d.columns[a]={});if(c.columnsArray){b=c.owner.columns[a];if(b<1){h=((b/i)*100)+'%'}else {h=b+'px'}g.style='width:'+h}else {g.style='width:'+(1/e*100)+'%';f++}}d.tableStyle=!f?'table-layout:fixed;':(f<e)?'table-layout:fixed;width:100%':(j)?'table-layout:auto;width:100%':'table-layout:auto;';return d},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(i){var a=this,g=i.length,e,d,b,h,f,c;if(g){Ext.suspendLayouts();if(a.autoColumns){b=g;d=1}else {b=a.columnsArray?a.owner.columns.length:a.owner.columns;d=Math.ceil(g/b)}for(c=0;c<g;c++){e=i[c];h=a.getRenderRowIndex(c,d,b);f=a.getRenderColumnIndex(c,d,b);if(!e.rendered){a.renderItem(e,h,f)}else if(!a.isItemAtPosition(e,h,f)){a.moveItem(e,h,f)}}a.pruneRows(d,b);Ext.resumeLayouts(!0)}},isItemAtPosition:function(c,b,a){return c.el.dom===this.getItemNodeAt(b,a)},getRenderColumnIndex:function(a,c,b){if(this.vertical){return Math.floor(a/c)}else {return a%b}},getRenderRowIndex:function(a,c,b){if(this.vertical){return a%c}else {return Math.floor(a/b)}},getItemNodeAt:function(a,c){var b=this.getColumnNodeAt(a,c);return this.vertical?b.children[a]:b.children[0]},getRowNodeAt:function(b){var c=this,a;b=c.vertical?0:b;a=c.rowNodes[b];if(!a){a=c.rowNodes[b]=document.createElement('tr');a.role='presentation';c.tBodyNode.appendChild(a)}return a},getColumnNodeAt:function(d,c,b){var a;b=b||this.getRowNodeAt(d);a=b.children[c];if(!a){a=Ext.fly(b).appendChild({tag:'td',cls:this.owner.groupCls,vAlign:'top',role:'presentation'},!0)}return a},pruneRows:function(e,i){var h=this,f=h.tBodyNode.children,b,a,c,d,g;e=h.vertical?1:e;while(f.length>e){a=f[f.length-1];while(a.children.length){Ext.get(a.children[0]).destroy()}a.parentNode.removeChild(a)}for(d=e-1;d>=0;d--){a=f[d];b=a.children;while(b.length>i){c=b[b.length-1];Ext.get(c).destroy()}if(d>0){for(g=b.length-1;g>=0;g--){c=b[g];if(c.children.length===0){Ext.get(c).destroy()}else {break}}}}},renderItem:function(e,c,f){var a=this,d,b;a.configureItem(e);b=a.vertical?c:0;d=Ext.get(a.getColumnNodeAt(c,f));e.render(d,b)},moveItem:function(g,d,f){var e=this,a,c,b;c=e.vertical?d:0;a=e.getColumnNodeAt(d,f);b=a.children[c];a.insertBefore(g.el.dom,b||null)},destroy:function(){if(this.owner.rendered){var c=this.getRenderTarget(),b,a,d;if(c){b=c.query('.'+this.owner.groupCls,!1);for(a=0,d=b.length;a<d;a++){b[a].destroy()}}}Ext.layout.container.Container.prototype.destroy.call(this)}},0,0,0,0,["layout.checkboxgroup"],0,[Ext.layout.container,'CheckboxGroup'],0));(Ext.cmd.derive('Ext.form.CheckboxManager',Ext.util.MixedCollection,{singleton:!0,getByName:function(b,a){return this.filterBy(function(c){return c.name===b&&c.getFormId()===a})}},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',modelValue:!0,modelValueUnchecked:!1,stretchInputElFixed:!1,childEls:['boxLabelEl','innerWrapEl','displayEl'],fieldSubTpl:['<div id="{cmpId}-innerWrapEl" data-ref="innerWrapEl" role="presentation"',' class="{wrapInnerCls}">','<tpl if="labelAlignedBefore">','{beforeBoxLabelTpl}','<label id="{cmpId}-boxLabelEl" data-ref="boxLabelEl" {boxLabelAttrTpl} class="{boxLabelCls} ','{boxLabelCls}-{ui} {boxLabelCls}-{boxLabelAlign} {noBoxLabelCls} {childElCls}" for="{id}">','{beforeBoxLabelTextTpl}','{boxLabel}','{afterBoxLabelTextTpl}','</label>','{afterBoxLabelTpl}','</tpl>','<span id="{cmpId}-displayEl" data-ref="displayEl" role="presentation" class="{fieldCls} {typeCls} ','{typeCls}-{ui} {inputCls} {inputCls}-{ui} {fixCls} {childElCls} {afterLabelCls}">','<input type="{inputType}" id="{id}" name="{inputName}" data-ref="inputEl" {inputAttrTpl}','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>','<tpl if="disabled"> disabled="disabled"</tpl>','<tpl if="checked"> checked="checked"</tpl>','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>',' class="{checkboxCls}" autocomplete="off" hidefocus="true" ','<tpl foreach="ariaElAttributes"> {$}="{.}"</tpl>','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</tpl>','/>','</span>','<tpl if="!labelAlignedBefore">','{beforeBoxLabelTpl}','<label id="{cmpId}-boxLabelEl" data-ref="boxLabelEl" {boxLabelAttrTpl} class="{boxLabelCls} ','{boxLabelCls}-{ui} {boxLabelCls}-{boxLabelAlign} {noBoxLabelCls} {childElCls}" for="{id}">','{beforeBoxLabelTextTpl}','{boxLabel}','{afterBoxLabelTextTpl}','</label>','{afterBoxLabelTpl}','</tpl>','</div>',{disableFormats:!0,compiled:!0}],publishes:{checked:1},subTplInsertions:['beforeBoxLabelTpl','afterBoxLabelTpl','beforeBoxLabelTextTpl','afterBoxLabelTextTpl','boxLabelAttrTpl','inputAttrTpl'],isCheckbox:!0,focusCls:'form-checkbox-focus',fieldBodyCls:'x-form-cb-wrap',checked:!1,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-no-box-label',inputValue:'on',checkChangeEvents:[],changeEventName:'change',inputType:'checkbox',isTextInput:!1,ariaRole:'native',onRe:/^on$/i,inputCls:'x-form-cb',_checkboxCls:'x-form-cb-input',initComponent:function(){var a=this,b=a.value;if(b!==undefined){a.checked=a.isChecked(b,a.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);a.getManager().add(a)},initDefaultName:Ext.emptyFn,initValue:function(){var a=this,b=!!a.checked;a.originalValue=a.initialValue=a.lastValue=b;a.setValue(b)},getElConfig:function(){var a=this;if(a.isChecked(a.rawValue,a.inputValue)){a.addCls(a.checkedCls)}if(!a.fieldLabel){a.skipLabelForAttribute=!0}return Ext.form.field.Base.prototype.getElConfig.call(this)},getModelData:function(){var a=this,b=Ext.form.field.Base.prototype.getModelData.apply(this,arguments);if(b){b[a.getName()]=a.checked?a.modelValue:a.modelValueUnchecked}return b},getSubTplData:function(g){var a=this,f=a.boxLabel,e=a.boxLabelAlign,d=e==='before',c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,g),{inputType:a.inputType,checkboxCls:a._checkboxCls,disabled:a.readOnly||a.disabled,checked:!!a.checked,wrapInnerCls:a.wrapInnerCls,boxLabel:f,boxLabelCls:a.boxLabelCls,boxLabelAlign:e,labelAlignedBefore:d,afterLabelCls:d?a.afterLabelCls:'',noBoxLabelCls:!f?a.noBoxLabelCls:'',inputName:a.name||a.id});b=c.inputElAriaAttributes;if(b){delete b['aria-readonly']}return c},initEvents:function(){var a=this;Ext.form.field.Base.prototype.initEvents.call(this);a.inputEl.on(a.changeEventName,a.onChangeEvent,a,{delegated:!1});if(Ext.isIE){a.bodyEl.on('mousedown',a.onBodyElMousedown,a)}else if(Ext.isMac&&(Ext.isGecko||Ext.isSafari)){a.boxLabelEl.on('mousedown',a.onBoxLabelOrInputMousedown,a);a.inputEl.on('mousedown',a.onBoxLabelOrInputMousedown,a)}},setBoxLabel:function(b){var a=this;a.boxLabel=b;if(a.rendered){a.boxLabelEl.setHtml(b);a.boxLabelEl[b?'removeCls':'addCls'](a.noBoxLabelCls);a.updateLayout()}},onBodyElMousedown:function(a){if(a.target!==this.inputEl.dom){a.preventDefault()}},onBoxLabelOrInputMousedown:function(a){this.inputEl.focus();a.preventDefault()},onChangeEvent:function(a){this.updateValueFromDom()},updateValueFromDom:function(){var a=this,b=a.inputEl&&a.inputEl.dom;if(b){a.checked=a.rawValue=a.value=b.checked;a.checkChange()}},updateCheckedCls:function(a){var b=this;a=a!=null?a:b.getValue();b[a?'addCls':'removeCls'](b.checkedCls)},getRawValue:function(){var a=this.inputEl&&this.inputEl.dom;return a?a.checked:this.checked},getValue:function(){var a=this.inputEl&&this.inputEl.dom;return a?a.checked:this.checked},getSubmitValue:function(){var a=this.uncheckedValue,b=Ext.isDefined(a)?a:null;return this.getValue()?this.inputValue:b},isChecked:function(a,b){var c=!1;if(a===!0||a==='true'){c=!0}else {if(b!=='on'&&(b||b===0)&&(Ext.isString(a)||Ext.isNumber(a))){c=a==b}else {c=a==='1'||a===1||this.onRe.test(a)}}return c},setRawValue:function(d){var a=this,c=a.inputEl&&a.inputEl.dom,b=a.isChecked(d,a.inputValue);if(c){a.duringSetRawValue=!0;c.checked=b;a.duringSetRawValue=!1;a.updateCheckedCls(b)}a.checked=a.rawValue=b;if(!a.duringSetValue){a.lastValue=b}return b},setValue:function(e){var a=this,c,b,f,d;if(Ext.isArray(e)){c=a.getManager().getByName(a.name,a.getFormId()).items;f=c.length;for(b=0;b<f;++b){d=c[b];d.setValue(Ext.Array.contains(e,d.inputValue))}}else {a.duringSetValue=!0;Ext.form.field.Base.prototype.setValue.apply(this,arguments);delete a.duringSetValue}return a},valueToRaw:Ext.identityFn,onChange:function(b,d){var a=this,c=a.handler;a.updateCheckedCls(b);if(c){Ext.callback(c,a.scope,[a,b],0,a)}Ext.form.field.Base.prototype.onChange.apply(this,arguments);if(a.reference&&a.publishState){a.publishState('checked',b)}},resetOriginalValue:function(f){var c=this,b,d,e,a;if(!f){b=c.getManager().getByName(c.name,c.getFormId()).items;e=b.length;for(a=0;a<e;++a){d=b[a];if(d!==c){b[a].resetOriginalValue(!0)}}}Ext.form.field.Base.prototype.resetOriginalValue.call(this)},doDestroy:function(){this.getManager().removeAtKey(this.id);Ext.form.field.Base.prototype.doDestroy.call(this)},getManager:function(){return Ext.form.CheckboxManager},onEnable:function(){var a=this,b=a.inputEl&&a.inputEl.dom;Ext.form.field.Base.prototype.onEnable.call(this);if(b){b.disabled=a.readOnly}},setReadOnly:function(c){var a=this,b=a.inputEl&&a.inputEl.dom;if(b){b.disabled=!!c||a.disabled}Ext.form.field.Base.prototype.setReadOnly.apply(this,arguments)},getFormId:function(){var a=this,b;if(!a.formId){b=a.up('form');if(b){a.formId=b.id}}return a.formId},getFocusClsEl:function(){return this.displayEl}},0,["checkbox","checkboxfield"],["component","box","field","checkboxfield","checkbox"],{"component":!0,"box":!0,"field":!0,"checkboxfield":!0,"checkbox":!0},["widget.checkbox","widget.checkboxfield"],0,[Ext.form.field,'Checkbox',Ext.form,'Checkbox'],0));(Ext.cmd.derive('Ext.form.CheckboxGroup',Ext.form.FieldContainer,{isCheckboxGroup:!0,columns:'auto',vertical:!1,allowBlank:!0,blankText:"You must select at least one item in this group",defaultType:'checkboxfield',defaultBindProperty:'value',groupCls:'x-form-check-group',extraFieldBodyCls:'x-form-checkboxgroup-body',layout:'checkboxgroup',componentCls:'x-form-checkboxgroup',ariaRole:'group',ariaEl:'containerEl',skipLabelForAttribute:!0,ariaRenderAttributes:{'aria-invalid':!1},initComponent:function(){var a=this;a.name=a.name||a.id;Ext.form.FieldContainer.prototype.initComponent.call(this);a.initField()},initRenderData:function(){var c=this,b,a,d,g,f,e;b=Ext.form.FieldContainer.prototype.initRenderData.call(this);b.inputId=c.id+'-'+c.ariaEl;a=b.ariaAttributes;if(a){if(!a['aria-labelledby']){a['aria-labelledby']=c.id+'-labelTextEl'}}return b},initValue:function(){var a=this,b=a.value;a.originalValue=a.lastValue=b||a.getValue();if(b){a.setValue(b)}},onAdd:function(a){var b=this,d,e,c;if(a.isCheckbox){if(a.name==null){a.name=b.name}b.mon(a,'change',b.checkChange,b)}else if(a.isContainer){d=a.items.items;for(c=0,e=d.length;c<e;c++){b.onAdd(d[c])}}Ext.form.FieldContainer.prototype.onAdd.apply(this,arguments)},onRemove:function(a){var b=this,d,e,c;if(a.isCheckbox){b.mun(a,'change',b.checkChange,b)}else if(a.isContainer){d=a.items.items;for(c=0,e=d.length;c<e;c++){b.onRemove(d[c])}}Ext.form.FieldContainer.prototype.onRemove.apply(this,arguments)},isEqual:function(b,c){var a=Ext.Object.toQueryString;return a(b)===a(c)},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 b=this.getBoxes(),a,c=b.length;for(a=0;a<c;a++){if(b[a].isDirty()){return !0}}},setReadOnly:function(b){var c=this.getBoxes(),a,d=c.length;for(a=0;a<d;a++){c[a].setReadOnly(b)}this.readOnly=b},reset:function(){var a=this,c=a.hasActiveError(),b=a.preventMark;a.preventMark=!0;a.batchChanges(function(){var c=a.getBoxes(),b,d=c.length;for(b=0;b<d;b++){c[b].reset()}});a.preventMark=b;a.unsetActiveError();if(c){a.updateLayout()}},resetOriginalValue:function(){var a=this,c=a.getBoxes(),b,d=c.length;for(b=0;b<d;b++){c[b].resetOriginalValue()}a.originalValue=a.getValue();a.checkDirty()},setValue:function(b){var f=this,g=f.getBoxes(),e,h=g.length,d,c,a;f.batchChanges(function(){Ext.suspendLayouts();for(e=0;e<h;e++){d=g[e];c=d.getName();a=!1;if(b){if(Ext.isArray(b[c])){a=Ext.Array.contains(b[c],d.inputValue)}else {a=b[c]}}d.setValue(a)}Ext.resumeLayouts(!0)});return f},getValue:function(){var b={},g=this.getBoxes(),e,h=g.length,d,c,f,a;for(e=0;e<h;e++){d=g[e];c=d.getName();f=d.inputValue;if(d.getValue()){if(b.hasOwnProperty(c)){a=b[c];if(!Ext.isArray(a)){a=b[c]=[a]}a.push(f)}else {b[c]=f}}}return b},getSubmitData:function(){return null},getModelData:function(){return null},validate:function(){var a=this,c,b,d;if(a.disabled){b=!0}else {c=a.getErrors();b=Ext.isEmpty(c);d=a.wasValid;if(b){a.unsetActiveError()}else {a.setActiveError(c)}}if(b!==d){a.wasValid=b;a.fireEvent('validitychange',a,b);a.updateLayout()}return b}},0,["checkboxgroup"],["component","box","container","fieldcontainer","checkboxgroup"],{"component":!0,"box":!0,"container":!0,"fieldcontainer":!0,"checkboxgroup":!0},["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,{checkboxUI:'default',collapsed:!1,toggleOnTitleClick:!0,baseCls:'x-fieldset',layout:'anchor',descriptionText:'{0} field set',expandText:'Expand field set',componentLayout:'fieldset',ariaRole:'group',focusable:!1,autoEl:'fieldset',checkbox:null,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:!1,initComponent:function(){var a=this,b=a.baseCls;if(a.ariaRole&&!a.ariaLabel){a.ariaLabel=Ext.String.formatEncode(a.descriptionText,a.title||'')}a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!a.collapsed;a.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);a.layout.managePadding=a.layout.manageOverflow=!1;if(a.collapsed){a.addCls(b+'-collapsed');a.collapse()}if(a.title||a.checkboxToggle||a.collapsible){a.addTitleClasses();a.legend=a.createLegendCt()}a.initMonitor()},initRenderData:function(){var b=this,a=Ext.container.Container.prototype.initRenderData.call(this);a.bodyTargetCls=b.bodyTargetCls;b.protoBody.writeTo(a);delete b.protoBody;return a},doDestroy:function(){var b=this,a=b.legend;if(a){delete a.ownerCt;a.destroy();b.legend=null}Ext.container.Container.prototype.doDestroy.call(this)},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 !0},collapsedVertical:function(){return !0},createLegendCt:function(){var a=this,b=[],d={baseCls:a.baseCls+'-header',layout:'container',ui:a.ui,id:a.id+'-legend',autoEl:'legend',ariaRole:null,items:b,ownerCt:a,shrinkWrap:!0,ownerLayout:a.componentLayout},c;if(a.checkboxToggle){b.push(a.createCheckboxCmp())}else if(a.collapsible){b.push(a.createToggleCmp())}b.push(a.createTitleCmp());c=new Ext.container.Container(d);return c},createTitleCmp:function(){var a=this,b={html:a.title,ui:a.ui,cls:a.baseCls+'-header-text',id:a.id+'-legendTitle',ariaRole:'presentation'};if(a.collapsible&&a.toggleOnTitleClick){b.listeners={click:{element:'el',scope:a,fn:a.toggle}};b.cls+=' '+a.baseCls+'-header-text-collapsible'}a.titleCmp=new Ext.Component(b);return a.titleCmp},createCheckboxCmp:function(){var a=this,d='-checkbox',b=a.baseCls+'-header'+d,c;b+=' '+b+'-'+a.ui;a.checkboxCmp=c=new Ext.form.field.Checkbox(Ext.apply({hideEmptyLabel:!0,name:a.checkboxName||a.id+d,cls:b,id:a.id+'-legendChk',ui:a.checkboxUI,checked:!a.collapsed,msgTarget:'none',listeners:{change:a.onCheckChange,scope:a},ariaLabel:a.expandText},a.checkbox));return c},createToggleCmp:function(){var a=this,b;a.toggleCmp=b=new Ext.panel.Tool({cacheHeight:!1,cls:a.baseCls+'-header-tool-'+a.ui,type:'toggle',handler:a.toggle,id:a.id+'-legendToggle',scope:a,ariaRole:'checkbox',ariaLabel:a.expandText,ariaRenderAttributes:{'aria-checked':!a.collapsed}});return b},doRenderLegend:function(e,d){var c=d.$comp,a=c.legend,b;if(a){a.ownerLayout.configureItem(a);c.setLegendCollapseImmunity(a);b=a.getRenderTree();Ext.DomHelper.generateMarkup(b,e)}},getCollapsed:function(){return this.collapsed?'top':!1},getCollapsedDockedItems:function(){var a=this.legend;return a?[a]:[]},setTitle:function(c){var a=this,b=a.legend;a.title=c;a.ariaLabel=Ext.String.formatEncode(a.descriptionText,c||'');if(a.rendered){if(!b){a.legend=b=a.createLegendCt();a.addTitleClasses();b.ownerLayout.configureItem(b);a.setLegendCollapseImmunity(b);b.render(a.el,0)}a.titleCmp.update(c);a.ariaEl.dom.setAttribute('aria-label',a.ariaLabel)}else if(b){a.titleCmp.update(c)}else {a.addTitleClasses();a.legend=a.createLegendCt()}return a},addTitleClasses:function(){var a=this,c=a.title,b=a.baseCls;if(c){a.addCls(b+'-with-title')}if(c||a.checkboxToggle||a.collapsible){a.addCls(b+'-with-legend')}},expand:function(){return this.setExpanded(!0)},collapse:function(){return this.setExpanded(!1)},setCollapsed:function(a){this.setExpanded(!a)},setExpanded:function(b){var a=this,d=a.checkboxCmp,c=a.toggleCmp,e=b?'expand':'collapse';if(!a.rendered||a.fireEvent('before'+e,a)!==!1){b=!!b;if(d){d.setValue(b)}else if(c&&c.ariaEl.dom){c.ariaEl.dom.setAttribute('aria-checked',b)}if(b){a.removeCls(a.baseCls+'-collapsed')}else {a.addCls(a.baseCls+'-collapsed')}if(a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-expanded',!!b)}a.collapsed=!b;if(b){delete a.getInherited().collapsed}else {a.getInherited().collapsed=!0}if(a.rendered){a.updateLayout({isRoot:!1});a.fireEvent(e,a)}}return a},getRefItems:function(c){var a=Ext.container.Container.prototype.getRefItems.apply(this,arguments),b=this.legend;if(b){a.unshift(b);if(c){a.unshift.apply(a,b.getRefItems(!0))}}return a},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:!0})}return a},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){return this.body||this.frameBody||this.el},initPadding:function(d){var b=this,e=b.getProtoBody(),a=b.padding,c;if(a!==undefined){if(Ext.isIE8){a=b.parseBox(a);c=Ext.Element.parseBox(0);c.top=a.top;a.top=0;e.setStyle('padding',b.unitizeBox(c))}d.setStyle('padding',b.unitizeBox(a))}},onCheckChange:function(b,a){this.setExpanded(a)},setLegendCollapseImmunity:function(a){a.collapseImmune=!0;a.getInherited().collapseImmune=!0},setupRenderTpl:function(a){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);a.renderLegend=this.doRenderLegend}}},0,["fieldset"],["component","box","container","fieldset"],{"component":!0,"box":!0,"container":!0,"fieldset":!0},["widget.fieldset"],[['fieldAncestor',Ext.form.FieldAncestor]],[Ext.form,'FieldSet'],0));(Ext.cmd.derive('Ext.form.Label',Ext.Component,{autoEl:'label',maskOnDisable:!1,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!==!1;if(b){a.text=c;delete a.html}else {a.html=c;delete a.text}if(a.rendered){a.el.dom.innerHTML=b!==!1?Ext.util.Format.htmlEncode(c):c;a.updateLayout()}return a}},0,["label"],["component","box","label"],{"component":!0,"box":!0,"label":!0},["widget.label"],0,[Ext.form,'Label'],0));(Ext.cmd.derive('Ext.form.Panel',Ext.panel.Panel,{alternateClassName:['Ext.FormPanel','Ext.form.FormPanel'],layout:'anchor',bodyAriaRole:'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=!1}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 d={},c=this.basicFormConfigs,e=c.length,b=0,a;for(;b<e;++b){a=c[b];d[a]=this[a]}return new Ext.form.Basic(this,d)},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,c,a,b){return this.getForm().getValues(d,c,a,b)},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()},doDestroy:function(){this.stopPolling();this.form.destroy();Ext.panel.Panel.prototype.doDestroy.call(this)},load:function(a){this.form.load(a)},submit:function(a){this.form.submit(a)},startPolling:function(a){this.stopPolling();this.pollTask=Ext.util.TaskManager.start({interval:a,run:this.checkChange,scope:this})},stopPolling:function(){var a=this.pollTask;if(a){Ext.util.TaskManager.stop(a,!0);this.pollTask=null}},checkChange:function(){var b=this.form.getFields().items,a,c=b.length;for(a=0;a<c;a++){b[a].checkChange()}}},0,["form"],["component","box","container","panel","form"],{"component":!0,"box":!0,"container":!0,"panel":!0,"form":!0},["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:!0,getByName:function(b,a){return this.filterBy(function(c){return c.name===b&&c.getFormId()===a})},getWithValue:function(c,b,a){return this.filterBy(function(d){return d.name===c&&d.inputValue==b&&d.getFormId()===a})},getChecked:function(b,a){return this.findBy(function(c){return c.name===b&&c.checked&&c.getFormId()===a})}},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:!0,inputType:'radio',formId:null,modelValue:undefined,modelValueUnchecked:null,initComponent:function(){var a=this;if(a.modelValue===undefined){a.modelValue=a.inputValue}Ext.form.field.Checkbox.prototype.initComponent.call(this)},getGroupValue:function(){var a=this.getManager().getChecked(this.name,this.getFormId());return a?a.inputValue:null},onRemoved:function(){Ext.form.field.Checkbox.prototype.onRemoved.apply(this,arguments);this.formId=null},setValue:function(c){var a=this,b;if(Ext.isBoolean(c)){Ext.form.field.Checkbox.prototype.setValue.apply(this,arguments)}else {b=a.getManager().getWithValue(a.name,c,a.getFormId()).getAt(0);if(b){b.setValue(!0)}}return a},getSubmitValue:function(){return this.checked?this.inputValue:null},onChange:function(g,h){var a=this,b=a.ownerCt,c,f,e,d;Ext.form.field.Checkbox.prototype.onChange.apply(this,arguments);if(!a.$groupChange){if(g){d=a.getManager().getByName(a.name,a.getFormId()).items;f=d.length;for(c=0;c<f;c++){e=d[c];if(e!==a){e.updateValueFromDom()}}}if(b&&b.isRadioGroup&&b.simpleValue){b.checkChange()}}},getManager:function(){return Ext.form.RadioManager}},0,["radio","radiofield"],["component","box","field","checkboxfield","checkbox","radiofield","radio"],{"component":!0,"box":!0,"field":!0,"checkboxfield":!0,"checkbox":!0,"radiofield":!0,"radio":!0},["widget.radio","widget.radiofield"],0,[Ext.form.field,'Radio',Ext.form,'Radio'],0));(Ext.cmd.derive('Ext.form.RadioGroup',Ext.form.CheckboxGroup,{isRadioGroup:!0,allowBlank:!0,blankText:'You must select one item in this group',defaultType:'radiofield',local:!1,simpleValue:!1,defaultBindProperty:'value',groupCls:'x-form-radio-group',ariaRole:'radiogroup',initRenderData:function(){var c=this,b,a;b=Ext.form.CheckboxGroup.prototype.initRenderData.call(this);a=b.ariaAttributes;if(a){a['aria-required']=!c.allowBlank;a['aria-invalid']=!1}return b},lookupComponent:function(b){var a=Ext.form.CheckboxGroup.prototype.lookupComponent.call(this,b);if(this.local){a.formId=this.getId()}return a},getBoxes:function(a,b){return (b||this).query('[isRadio]'+(a||''))},checkChange:function(){var c=this,a,b;a=c.getValue();b=typeof a==='object'&&Ext.Object.getKeys(a)[0];if(c.simpleValue||(b&&!Ext.isArray(a[b]))){Ext.form.CheckboxGroup.prototype.checkChange.apply(this,arguments)}},isEqual:function(a,b){if(this.simpleValue){return a===b}return Ext.form.CheckboxGroup.prototype.isEqual.call(this,a,b)},getValue:function(){var e=this,d=e.items.items,c,a,b;if(e.simpleValue){for(c=d.length;c-->0;){a=d[c];if(a.checked){b=a.inputValue;break}}}else {b=Ext.form.CheckboxGroup.prototype.getValue.call(this)}return b},setValue:function(c){var f=this.items,h,a,i,e,b,d,g;Ext.suspendLayouts();if(this.simpleValue){for(b=0,d=f.length;b<d;++b){a=f.items[b];a.$groupChange=!0;a.setValue(a.inputValue===c);delete a.$groupChange}}else if(Ext.isObject(c)){a=f.first();i=a?a.getFormId():null;for(g in c){h=c[g];e=Ext.form.RadioManager.getWithValue(g,h,i).items;d=e.length;for(b=0;b<d;++b){e[b].setValue(!0)}}}Ext.resumeLayouts(!0);return this},markInvalid:function(b){var a=this.ariaEl.dom;Ext.form.CheckboxGroup.prototype.markInvalid.call(this,b);if(a){a.setAttribute('aria-invalid',!0)}},clearInvalid:function(){var a=this.ariaEl.dom;Ext.form.CheckboxGroup.prototype.clearInvalid.call(this);if(a){a.setAttribute('aria-invalid',!1)}}},0,["radiogroup"],["component","box","container","fieldcontainer","checkboxgroup","radiogroup"],{"component":!0,"box":!0,"container":!0,"fieldcontainer":!0,"checkboxgroup":!0,"radiogroup":!0},["widget.radiogroup"],0,[Ext.form,'RadioGroup'],function(){if(Ext.isGecko){this.override({onFocusEnter:function(e){var a=e.toComponent,c,b,d;if(a.isRadio){c=a.getManager().getByName(a.name,a.getFormId()).items;for(b=0,d=c.length;b<d;b++){c[b].disableTabbing()}}},onFocusLeave:function(e){var a=e.fromComponent,c,b,d;if(a.isRadio){c=a.getManager().getByName(a.name,a.getFormId()).items;for(b=0,d=c.length;b<d;b++){c[b].enableTabbing()}}}})}}));(Ext.cmd.derive('Ext.form.action.DirectAction',Ext.Mixin,{mixinConfig:{id:'directaction'},resolveMethod:function(b){var d=this,e=d.form,c,a;c=Ext.direct.Manager.resolveApi(e.api,d);a=c[b];if(!a){Ext.raise("Cannot resolve Ext Direct API method "+fnName+" for "+b+" action")}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 a=this,b=a.form,f=a.metadata||b.metadata,d=a.timeout||b.timeout,e,c;c=a.resolveMethod('load');e=c.directCfg.method.getArgs({params:a.getParams(),paramOrder:b.paramOrder,paramsAsHash:b.paramsAsHash,options:d!=null?{timeout:d*1000}:null,metadata:f,callback:a.onComplete,scope:a});c.apply(window,e)},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 a=this,f=a.form,g=a.metadata||f.metadata,d=a.timeout||f.timeout,c,b,e;c=a.resolveMethod('submit');b=a.buildForm();e=c.directCfg.method.getArgs({params:b.formEl,options:d!=null?{timeout:d*1000}:null,metadata:g,callback:a.onComplete,scope:a});c.apply(window,e);a.cleanup(b)},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',focusOnMousedown:!0}}},renderConfig:{editable:!0},keyMap:{scope:'this',DOWN:'onDownArrow',ESC:'onEsc'},keyMapTarget:'inputEl',isPickerField:!0,matchFieldWidth:!0,pickerAlign:'tl-bl?',openCls:'x-pickerfield-open',isExpanded:!1,applyTriggers:function(a){var c=this,b=a.picker;if(!b.cls){b.cls=c.triggerCls}return Ext.form.field.Text.prototype.applyTriggers.call(this,a)},getSubTplData:function(d){var c=this,b,a;b=Ext.form.field.Text.prototype.getSubTplData.call(this,d);if(!c.ariaStaticRoles[c.ariaRole]){a=b.ariaElAttributes;if(a){a['aria-haspopup']=!0;a['aria-expanded']=!1}}return b},initEvents:function(){Ext.form.field.Text.prototype.initEvents.call(this);if(Ext.isGecko){this.inputEl.dom.setAttribute('autocomplete','off')}},updateEditable:function(b,c){var a=this;if(!b){a.inputEl.on('click',a.onInputElClick,a)}else {a.inputEl.un('click',a.onInputElClick,a)}Ext.form.field.Text.prototype.updateEditable.call(this,b,c)},onEsc:function(a){if(Ext.isIE){a.preventDefault()}if(this.isExpanded){this.collapse();a.stopEvent()}},onDownArrow:function(b){var a=this;if((b.time-a.lastDownArrow)>150){delete a.lastDownArrow}if(!a.isExpanded){b.stopEvent();a.onTriggerClick(a,a.getPickerTrigger(),b);a.lastDownArrow=b.time}else if(!b.stopped&&(b.time-a.lastDownArrow)<150){delete a.lastDownArrow}},expand:function(){var a=this,c,b,d;if(a.rendered&&!a.isExpanded&&!a.destroyed){c=a.bodyEl;b=a.getPicker();d=Ext.getDoc();b.setMaxHeight(b.initialConfig.maxHeight);if(a.matchFieldWidth){b.setWidth(a.bodyEl.getWidth())}b.show();a.isExpanded=!0;a.alignPicker();c.addCls(a.openCls);if(!a.ariaStaticRoles[a.ariaRole]){if(!a.ariaEl.dom.hasAttribute('aria-owns')){a.ariaEl.dom.setAttribute('aria-owns',b.listEl?b.listEl.id:b.el.id)}a.ariaEl.dom.setAttribute('aria-expanded',!0)}a.touchListeners=d.on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0});a.scrollListeners=Ext.on({scroll:a.onGlobalScroll,scope:a,destroyable:!0});Ext.on('resize',a.alignPicker,a,{buffer:1});a.fireEvent('expand',a);a.onExpand()}},onExpand:Ext.emptyFn,alignPicker:function(){var a=this,b;if(a.rendered&&!a.destroyed){b=a.getPicker();if(b.isVisible()&&b.isFloating()){a.doAlign()}}},doAlign:function(){var b=this,a=b.picker,e='-above',d,c;a.el.alignTo(b.triggerWrap,b.pickerAlign,b.pickerOffset);d=a.floatParent?a.getOffsetsTo(a.floatParent.getTargetEl()):a.getXY();a.x=d[0];a.y=d[1];c=a.el.getY()<b.inputEl.getY();b.bodyEl[c?'addCls':'removeCls'](b.openCls+e);a[c?'addCls':'removeCls'](a.baseCls+e)},collapse:function(){var a=this;if(a.isExpanded&&!a.destroyed&&!a.destroying){var d=a.openCls,b=a.picker,c='-above';b.hide();a.isExpanded=!1;a.bodyEl.removeCls([d,d+c]);b.el.removeCls(b.baseCls+c);if(!a.ariaStaticRoles[a.ariaRole]){a.ariaEl.dom.setAttribute('aria-expanded',!1)}a.touchListeners.destroy();a.scrollListeners.destroy();Ext.un('resize',a.alignPicker,a);a.fireEvent('collapse',a);a.onCollapse()}},onCollapse:Ext.emptyFn,collapseIf:function(b){var a=this;if(!a.destroyed&&!b.within(a.bodyEl,!1,!0)&&!a.owns(b.target)&&!Ext.fly(b.target).isFocusable()){a.collapse()}},getPicker:function(){var a=this,b=a.picker;if(!b){a.creatingPicker=!0;a.picker=b=a.createPicker();b.ownerCmp=a;delete a.creatingPicker}return a.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},getPickerTrigger:function(){return this.triggers&&this.triggers.picker},createPicker:Ext.emptyFn,onInputElClick:function(a){this.onTriggerClick(this,this.getPickerTrigger(),a)},onTriggerClick:function(c,b,d){var a=this;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {a.expand()}}},doDestroy:function(){var a=this,b=a.picker;Ext.un('resize',a.alignPicker,a);Ext.destroy(a.keyNav,b);if(b){a.picker=b.pickerField=null}Ext.form.field.Text.prototype.doDestroy.call(this)},privates:{onGlobalScroll:function(b){var a=b.getElement();if(!this.picker.owns(a)&&a.isAncestor(this.el)){this.collapse()}}}},0,["pickerfield"],["component","box","field","textfield","pickerfield"],{"component":!0,"box":!0,"field":!0,"textfield":!0,"pickerfield":!0},["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:!1,$configStrict:!1,config:{store:null,selected:{}},isSelectionModel:!0,allowDeselect:undefined,toggleOnClick:!0,ordered:!1,selected:null,pruneRemoved:!0,suspendChange:0,ignoreRightMouseSelection:!1,constructor:function(b){var a=this;a.modes={SINGLE:!0,SIMPLE:!0,MULTI:!0};Ext.mixin.Observable.prototype.constructor.call(this,b);a.setSelectionMode(a.mode);if(a.selectionMode!=='SINGLE'){a.allowDeselect=!0}},updateStore:function(b,a){this.bindStore(b,!a)},applySelected:function(a){if(!a.isBag&&!a.isCollection){a=new Ext.util[this.ordered?'Collection':'Bag'](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(c,b,a){if(!a){this.updateSelectedInstances(this.selected)}},suspendChanges:function(){++this.suspendChange},resumeChanges:function(){if(this.suspendChange){--this.suspendChange}},selectAll:function(b){var a=this,c=a.store.getRange(),d=a.getSelection().length;a.suspendChanges();a.doSelect(c,!0,b);if(!a.destroyed){a.resumeChanges();if(!b){a.maybeFireSelectionChange(a.getSelection().length!==d)}}},deselectAll:function(f){var a=this,b=a.getSelection(),d={},i=a.store,h=b.length,c,g,e;for(c=0,g=b.length;c<g;c++){e=b[c];d[e.id]=i.indexOf(e)}b=Ext.Array.sort(b,function(c,e){var a=d[c.id],b=d[e.id];return a<b?-1:1});a.suspendChanges();a.doDeselect(b,f);if(!a.destroyed){a.resumeChanges();if(!f){a.maybeFireSelectionChange(a.getSelection().length!==h)}}},getSelectionStart:function(){return this.selectionStart},setSelectionStart:function(a){this.selectionStart=a},selectWithEvent:function(b,c){var a=this,d=a.isSelected(b),e=c.shiftKey;switch(a.selectionMode){case 'MULTI':a.selectWithEventMulti(b,c,d);break;case 'SIMPLE':a.selectWithEventSimple(b,c,d);break;case 'SINGLE':a.selectWithEventSingle(b,c,d);break;}if(a.destroyed){return}if(!e){if(a.isSelected(b)){a.selectionStart=b}else {a.selectionStart=null}}},vetoSelection:function(a){if(a.stopSelection){return !0}else if(a.type!=='keydown'&&a.button!==0){if(this.ignoreRightMouseSelection||this.isSelected(a.record)){return !0}}else {return a.type==='mousedown'}},onNavigate:function(d){if(!d.record||this.vetoSelection(d.keyEvent)){return}this.onBeforeNavigate(d);var a=this,b=d.keyEvent,f=b.ctrlKey||d.ctrlKey,g=d.recordIndex,c=d.record,j=d.previousRecord,l=a.isSelected(c),h=(a.selectionStart&&a.isSelected(d.previousRecord))?a.selectionStart:(a.selectionStart=d.previousRecord),m=d.previousRecordIndex,e=b.getCharCode(),n=e===b.SPACE,k=d.record!==d.previousRecord,i=e===b.UP||e===b.PAGE_UP||e===b.HOME||(e===b.LEFT&&k)?'up':(e===b.DOWN||e===b.PAGE_DOWN||e===b.END||(e===b.RIGHT&&k)?'down':null);switch(a.selectionMode){case 'MULTI':a.setSelectionStart(d.selectionStart);if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else if(n){if(b.shiftKey){a.selectRange(h,c,f)}else {if(l){if(a.allowDeselect){a.doDeselect(c)}}else {a.doSelect(c,f)}}}else if(b.shiftKey&&h){if(i==='up'&&m<=g){a.deselectRange(j,g+1)}else if(i==='down'&&m>=g){a.deselectRange(j,g-1)}else if(h!==c){a.selectRange(h,c,f)}a.lastSelected=c}else if(e){if(!f){a.doSelect(c,!1)}}else {a.selectWithEvent(c,b)};break;case 'SIMPLE':if(e===b.A&&f){a.selected.beginUpdate();a.selectRange(0,a.store.getCount()-1);a.selected.endUpdate()}else if(l){a.doDeselect(c)}else {a.doSelect(c,!0)};break;case 'SINGLE':if(!f){if(i){a.doSelect(c,!1)}else if(n||!e){a.selectWithEvent(c,b)}};}if(!b.shiftKey&&!a.destroyed&&a.isSelected(c)){a.selectionStart=c;a.selectionStartIdx=g}},selectRange:function(d,f,m){var a=this,i=a.store,l=a.selected.items,h,b,g,e,c,j,k;if(a.isLocked()){return}h=a.normalizeRowRange(d,f);d=h[0];f=h[1];e=[];for(b=d;b<=f;b++){if(!a.isSelected(i.getAt(b))){e.push(i.getAt(b))}}if(!m){c=[];a.suspendChanges();for(b=0,g=l.length;b<g;++b){k=l[b];j=i.indexOf(k);if(j<d||j>f){c.push(k)}}for(b=0,g=c.length;b<g;++b){a.doDeselect(c[b]);if(a.destroyed){break}}if(!a.destroyed){a.resumeChanges()}}if(!a.destroyed){if(e.length){a.doMultiSelect(e,!0)}else if(c){a.maybeFireSelectionChange(c.length>0)}}},deselectRange:function(d,e){var a=this,h=a.store,g,c,b,f;if(a.isLocked()){return}g=a.normalizeRowRange(d,e);d=g[0];e=g[1];b=[];for(c=d;c<=e;c++){f=h.getAt(c);if(a.isSelected(f)){b.push(f)}}if(b.length){a.doDeselect(b)}},normalizeRowRange:function(a,b){var c=this.store,d;if(!Ext.isNumber(a)){a=c.indexOf(a)}a=Math.max(0,a);if(!Ext.isNumber(b)){b=c.indexOf(b)}b=Math.min(b,c.getCount()-1);if(a>b){d=b;b=a;a=d}return [a,b]},select:function(a,c,b){if(Ext.isDefined(a)&&!(Ext.isArray(a)&&!a.length)){this.doSelect(a,c,b)}},deselect:function(b,a){this.doDeselect(b,a)},doSelect:function(a,e,d){var b=this,c;if(b.locked||a==null){return}if(typeof a==="number"){c=b.store.getAt(a);if(!c){return}a=[c]}if(b.selectionMode==="SINGLE"){if(a.isModel){a=[a]}if(a.length){b.doSingleSelect(a[0],d)}}else {b.doMultiSelect(a,e,d)}},doMultiSelect:function(b,k,c){var a=this,e=a.selected,h=!1,f,g,j,d,i;if(a.locked){return}b=!Ext.isArray(b)?[b]:b;j=b.length;if(!k&&e.getCount()>0){f=a.deselectDuringSelect(b,c);if(a.destroyed){return}if(f[0]){a.maybeFireSelectionChange(f[1]>0&&!c);return}else {h=f[1]>0}}i=function(){if(!e.getCount()){a.selectionStart=d}if(!c){e.add(d)}h=!0};for(g=0;g<j;g++){d=b[g];if(a.isSelected(d)){continue}a.onSelectChange(d,!0,c,i);if(a.destroyed){return}}a.lastSelected=d;if(c){e.add(b)}a.maybeFireSelectionChange(h&&!c)},deselectDuringSelect:function(h,g){var a=this,f=a.selected.getRange(),i=f.length,c=0,d=!1,e,b;a.suspendChanges();a.deselectingDuringSelect=!0;for(b=0;b<i;++b){e=f[b];if(!Ext.Array.contains(h,e)){if(a.doDeselect(e,g)){++c}else {d=!0}}if(a.destroyed){d=!0;c=0;break}}a.deselectingDuringSelect=!1;if(!a.destroyed){a.resumeChanges()}return [d,c]},doDeselect:function(b,d){var a=this,f=a.selected,g=0,j,c,h=0,e=0,i;if(a.locked||!a.store){return !1}if(typeof b==="number"){c=a.store.getAt(b);if(!c){return !1}b=[c]}else if(!Ext.isArray(b)){b=[b]}i=function(){++e;if(!d){f.remove(c)}if(c===a.selectionStart){a.selectionStart=null}};j=b.length;a.suspendChanges();for(;g<j;g++){c=b[g];if(a.isSelected(c)){if(a.lastSelected===c){a.lastSelected=f.last()}++h;a.onSelectChange(c,!1,d,i);if(a.destroyed){return !1}}}a.resumeChanges();if(d){f.remove(b)}a.maybeFireSelectionChange(e>0&&!d);return e===h},doSingleSelect:function(b,c){var a=this,e=!1,d=a.selected,f;if(a.locked){return}if(a.isSelected(b)){return}f=function(){if(d.getCount()){a.suspendChanges();var f=a.deselectDuringSelect([b],c);if(a.destroyed){return}a.resumeChanges();if(f[0]){return !1}}a.lastSelected=b;if(!d.getCount()){a.selectionStart=b}d.add(b);e=!0};a.onSelectChange(b,!0,c,f);if(e&&!a.destroyed){a.maybeFireSelectionChange(!c)}},maybeFireSelectionChange:function(b){var a=this;if(b&&!a.suspendChange){a.fireEvent('selectionchange',a,a.getSelection())}},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(b,c){var e=this,f=e.store,a,d;d=e.normalizeRowRange(b,c);b=d[0];c=d[1];for(a=b;a<=c;a++){if(!e.isSelected(f.getAt(a))){return !1}}return !0},isSelected:function(a){a=Ext.isNumber(a)?this.store.getAt(a):a;return this.selected?this.selected.contains(a):!1},hasSelection:function(){var a=this.getSelected();return !!(a&&a.getCount())},refresh:function(){var b=this,k=b.store,g=[],j=b.getSelection(),l=j.length,a=b.getSelected(),h,i,d,e,c,f;if(!k||!(a.isCollection||a.isBag||a.isRows)||!a.getCount()){return}d=k.getData();if(d.getSource){i=d.getSource();if(i){d=i}}b.refreshing=!0;a.beginUpdate();b.suspendChanges();for(f=0;f<l;f++){e=j[f];c=d.get(e.getId());if(c){if(c!==e){if(a.replace){a.replace(c)}else {a.add(c)}}if(!b.lastSelected){b.lastSelected=c}}else if(b.pruneRemoved){g.push(e)}}if(g.length){h=!0;a.remove(g)}b.resumeChanges();if(h){a.endUpdate()}else {a.updating--}b.refreshing=!1;b.maybeFireSelectionChange(h)},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(!0)}},onStoreRemove:function(i,c,j,h){var a=this,b=c,d,g,f,e;if(a.selectionStart&&Ext.Array.contains(c,a.selectionStart)){a.selectionStart=null}if(h||a.locked||!a.pruneRemoved){return}e=i.isMoving(null,!0);if(e){b=null;for(d=0,g=c.length;d<g;++d){f=c[d];if(!e[f.id]){(b||(b=[])).push(f)}}}if(b){a.deselect(b)}},onPageRemove:function(c,b,a){this.onStoreRemove(this.store,a)},onPageAdd:function(f,e,c){var d=c.length,a,b;for(a=0;a<d;a++){b=c[a];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.clearSelections();a.bindStore(null);a.selected=Ext.destroy(a.selected);Ext.mixin.Observable.prototype.destroy.call(this)},onStoreUpdate:Ext.emptyFn,onIdChanged:function(d,b,a,c){this.selected.updateKey(b,a)},onStoreRefresh:function(){this.updateSelectedInstances(this.selected)},updateSelectedInstances:function(b){var a=this,c=a.getStore(),d=a.lastSelected,h=0,l=a.pruneRemovedOnRefresh(),i,k,g,e,f,j;if(c&&c.isBufferedStore){return}i=b.getRange();k=i.length;if(d){a.lastSelected=c.getById(d.id);j=a.lastSelected!==d}a.refreshing=!0;if(c){for(g=0;g<k;++g){e=i[g];f=c.getById(e.id);if(f){if(f!==e){b.add(f)}}else if(l){b.remove(e);++h}}}else {h=b.getCount();b.removeAll()}a.refreshing=!1;a.maybeFireSelectionChange(h>0);if(j){a.fireEvent('lastselectedchanged',a,a.getSelection(),d)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(d,e,b,f){var a=this,c=e?'select':'deselect';if((b||a.fireEvent('before'+c,a,d))!==!1&&f()!==!1){if(!b&&!a.destroyed){a.fireEvent(c,a,d)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(a){Ext.Array.include(this.views||(this.views=[]),a)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(a){var c=this.view,b;if(c){b=c.resolveSatelliteListenerScope(this,a)}return b||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,a)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,getLastSelected:function(){return this.lastSelected},selectWithEventMulti:function(b,l,e){var a=this,g=l.shiftKey,c=l.ctrlKey,j=g?(a.getSelectionStart()):null,i=a.getSelection(),k=i.length,f,d,h;if(g&&j){a.selectRange(j,b,c)}else if(c&&e){if(a.allowDeselect){a.doDeselect(b,!1)}}else if(c){a.doSelect(b,!0,!1)}else if(e&&!g&&!c&&k>1){if(a.allowDeselect){f=[];for(d=0;d<k;++d){h=i[d];if(h!==b){f.push(h)}}a.doDeselect(f)}}else if(!e){a.doSelect(b,!1)}},selectWithEventSimple:function(a,c,b){if(b){this.doDeselect(a)}else {this.doSelect(a,!0)}},selectWithEventSingle:function(c,e,d){var a=this,b=a.allowDeselect;if(b&&!e.ctrlKey){b=a.toggleOnClick}if(b&&d){a.doDeselect(c)}else {a.doSelect(c,!1)}}}},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:!0,bindComponent:function(b){var a=this,c;if(a.view!==b){if(a.view){a.navigationModel=null;Ext.destroy(a.viewListeners,a.navigationListeners)}a.view=b;if(b){c=a.getViewListeners();c.scope=a;c.destroyable=!0;a.navigationModel=b.getNavigationModel();a.viewListeners=b.on(c);a.navigationListeners=a.navigationModel.on({navigate:a.onNavigate,scope:a,destroyable:!0})}}},getViewListeners:function(){var b=this,a={};a[b.view.triggerCtEvent]=b.onContainerClick;return a},onUpdate:function(a){var b=this.view;if(b&&this.isSelected(a)){b.onItemSelect(a)}},onContainerClick:function(){if(this.deselectOnContainerClick){this.deselectAll()}},onSelectChange:function(b,f,d,h){var a=this,c=a.view,g=f?'select':'deselect',e=a.store.indexOf(b);if((d||a.fireEvent('before'+g,a,b,e))!==!1&&h()!==!1){if(c&&!c.destroyed){if(f){c.onItemSelect(b)}else {c.onItemDeselect(b)}}if(!d&&!a.destroyed){a.fireEvent(g,a,b,e)}}},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,{config:{store:null},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(c){var a=this,d=c.dataSource,b;a.initKeyNav(c);if(!d.isEmptyStore){a.setStore(d)}b=a.getViewListeners();b.destroyable=!0;a.viewListeners=a.viewListeners||[];a.viewListeners.push(c.on(b))},updateStore:function(a){this.mixins.storeholder.bindStore.apply(this,[a])},getViewListeners:function(){var a=this;return {containermousedown:a.onContainerMouseDown,itemmousedown:a.onItemMouseDown,itemclick:a.onItemClick,itemcontextmenu:a.onItemMouseDown,scope:a}},initKeyNav:function(b){var a=this;a.keyNav=new Ext.util.KeyNav({target:b,ignoreInputFields:!0,eventName:'itemkeydown',defaultEventAction:'stopEvent',processEvent:a.processViewEvent,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},scope:a})},processViewEvent:function(e,b,d,c,a){return a},addKeyBindings:function(a){this.keyNav.addBindings(a)},enable:function(){this.keyNav.enable();this.disabled=!1},disable:function(){this.keyNav.disable();this.disabled=!0},onContainerMouseDown:function(b,a){if(Ext.getScrollbarSize().width){if(!b.el.getClientRegion().contains(a.getPoint())){a.preventDefault();b.lastFocused='scrollbar'}}},onItemMouseDown:function(e,c,d,b,a){if(a.pointerType!=='touch'){this.setPosition(b)}},onItemClick:function(e,b,d,c,a){if(this.record===b){this.fireNavigateEvent(a)}else {this.setPosition(c,a)}},setPosition:function(d,h,j,g,k){var a=this,f=a.view,i=f.getSelectionModel(),e=f.dataSource,b,c;if(d==null||!f.all.getCount()){a.record=a.recordIndex=null}else {if(typeof d==='number'){c=Math.max(Math.min(d,e.getCount()-1),0);b=e.getAt(d)}else if(d.isEntity){b=e.getById(d.id);c=e.indexOf(b);if(c===-1){b=e.getAt(0);c=0}}else if(d.tagName){b=f.getRecord(d);c=e.indexOf(b)}else {b=c=null}}if(b===a.record){a.recordIndex=c;return a.focusPosition(c)}if(a.item){a.item.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.recordIndex=c;a.record=b;g=g||a.record===a.lastFocused;if(b){a.focusPosition(a.recordIndex)}else if(!k){a.item=null}if(!j){i.fireEvent('focuschange',i,a.previousRecord,a.record)}if(!g&&h){a.fireNavigateEvent(h)}},focusPosition:function(b){var a=this;if(b!=null&&b!==-1){if(b.isEntity){b=a.view.dataSource.indexOf(b)}a.item=a.view.all.item(b);if(a.item){a.lastFocused=a.record;a.lastFocusedIndex=a.recordIndex;a.focusItem(a.item)}else {a.record=null}}else {a.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)},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(){this.setStore(null);Ext.destroy(this.viewListeners,this.keyNav);this.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.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,'NavigationModel'],0));(Ext.cmd.derive('Ext.view.AbstractView',Ext.Component,{isDataView:!0,inheritableStatics:{getRecord:function(a){return this.getBoundView(a).getRecord(a)},getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},defaultBindProperty:'store',renderBuffer:new Ext.dom.Fly(document.createElement('div')),statics:{updateDelay:Ext.platformTags.desktop?200:1000,queueRecordChange:function(n,o,d,m,f){var a=this,g=a.changeQueue||(a.changeQueue={}),i=d.internalId,h,b,l,e,c,j,k;h=g[i]||(g[i]={operation:m,record:d,data:{},views:[]});b=h.data;Ext.Array.include(h.views,n);if(f&&(l=f.length)){for(e=0;e<l;e++){c=f[e];j=d.data[c];if(b.hasOwnProperty(c)){if(d.isEqual(b[c],j)){delete b[c];k=!0}}else {b[c]=j}}if(k&&!Ext.Object.getKeys(b).length){delete g[i]}}else {Ext.apply(b,d.data)}if(!a.flushQueueTask){a.flushQueueTask=new Ext.util.DelayedTask(Ext.global.requestAnimationFrame?Ext.Function.createAnimationFrame(a.flushChangeQueue,a):a.flushChangeQueue.bind(a),a,null,!1)}if(!a.flushTimer){a.flushTimer=a.flushQueueTask.delay(Ext.view.AbstractView.updateDelay)}},flushChangeQueue:function(){var b=this,f,h,e,a,g,d,c;if(Ext.isScrolling){return b.flushTimer=b.flushQueueTask.delay(1)}b.flushTimer=null;e=b.changeQueue;b.changeQueue={};for(g in e){a=e[g];f=a.views;h=f.length;for(d=0;d<h;d++){c=f[d];if(!c.destroyed){c.handleUpdate(c.dataSource,a.record,a.operation,Ext.Object.getKeys(a.data))}}}}},config:{store:'ext-empty-store',navigationModel:{type:'default'},selectionModel:{type:'dataviewmodel'}},publishes:['selection'],twoWayBindable:['selection'],selection:null,throttledUpdate:!1,deferInitialRefresh:!1,itemCls:'x-dataview-item',loadingText:'Loading...',loadMask:!0,loadingUseMsg:!0,selectedItemCls:'x-item-selected',emptyText:"",deferEmptyText:!0,trackOver:!1,blockRefresh:!1,preserveScrollOnRefresh:!1,preserveScrollOnReload:!1,autoDestroyBoundStore:!0,ariaRole:'listbox',itemAriaRole:'option',last:!1,focusable:!0,tabIndex:0,triggerEvent:'itemclick',triggerCtEvent:'containerclick',refreshNeeded:!0,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 a=this,f=Ext.isDefined,b=a.itemTpl,c={},e=a.selection,d;if(e){a.selection=null;a.setSelection(e)}if(b){if(Ext.isArray(b)){if(typeof b[b.length-1]!=='string'){b=b.slice(0);c=b.pop()}b=b.join('')}else if(Ext.isObject(b)){c=Ext.apply(c,b.initialConfig);b=b.html}if(!a.itemSelector){a.itemSelector='.'+a.itemCls}if(c.fn){c.baseFn=c.fn;delete c.fn;b="{%this.baseFn(out, values, parent, xindex, xcount, xkey)%}"}b=Ext.String.format('<tpl for="."><div class="{0}" role="{2}">{1}</div></tpl>',a.itemCls,b,a.itemAriaRole);a.tpl=new Ext.XTemplate(b,c)}Ext.Component.prototype.initComponent.call(this);a.tpl=a.lookupTpl('tpl');if(a.overItemCls){a.trackOver=!0}a.addCmpEvents();d=a.store=Ext.data.StoreManager.lookup(a.store||'ext-empty-store');if(!a.dataSource){a.dataSource=d}a.bindStore(d,!0);a.getNavigationModel().bindComponent(this);if(!a.all){a.all=new Ext.CompositeElementLite()}a.scrollState={top:0,left:0};a.savedTabIndexAttribute='data-savedtabindex-'+a.id},getElConfig:function(){var a=this.mixins.renderable.getElConfig.call(this);if(this.focusable){a.tabIndex=0}return a},onRender:function(c,b){var a=this.loadMask;Ext.Component.prototype.onRender.call(this,c,b);if(a){this.createMask(a)}},beforeLayout:function(){var a=this;Ext.Component.prototype.beforeLayout.call(this);if(a.refreshNeeded&&!a.pendingRefresh){if(a.refreshCounter){a.refreshView()}else {a.doFirstRefresh(a.dataSource)}}},onMaskBeforeShow:function(){var a=this,b=a.loadingHeight;if(b&&b>a.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.minHeight;a.minHeight=b;a.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.call(this);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.call(this);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var a=this.loadMask,b=[];if(a&&a.isComponent){b.push(a)}return b},getSelection:function(){return this.getSelectionModel().getSelection()},setSelection:function(a){var b=this.selection;if(a!==b){this.selection=a;this.updateSelection(a,b)}},updateSelection:function(b){var a=this,c;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;c=a.getSelectionModel();if(b){c.select(b)}else {c.deselectAll()}a.ignoreNextSelection=!1}a.publishState('selection',b)},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},applySelectionModel:function(b,d){var a=this,g=a.grid,c,f,e;if(d){if(!d.destroyed){d.un({scope:a,selectionchange:a.updateBindSelection,lastselectedchanged:a.updateBindSelection})}Ext.destroy(a.selModelRelayer);b=Ext.Factory.selection(b)}else {if(b&&b.isSelectionModel){b.locked=a.disableSelection}else {if(a.simpleSelect){c='SIMPLE'}else if(a.multiSelect){c='MULTI'}else {c='SINGLE'}if(typeof b==='string'){b={type:b}}b=Ext.Factory.selection(Ext.apply({allowDeselect:a.allowDeselect||a.multiSelect,mode:c,locked:a.disableSelection},b))}}if(b.mode!=='SINGLE'){e=(g||a).ariaEl.dom;if(e){e.setAttribute('aria-multiselectable',!0)}else if(!g){f=a.ariaRenderAttributes||(a.ariaRenderAttributes={});f['aria-multiselectable']=!0}}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});return b},updateSelectionModel:function(a){this.selModel=a},applyNavigationModel:function(a){return Ext.Factory.viewNavigation(a)},onFocusEnter:function(c){var a=this,d=a.getNavigationModel(),b=a.lastFocused;a.lastFocused=null;if(b==='scrollbar'){c.relatedTarget.focus();return}a.toggleChildrenTabbability(!1);if(!a.itemFocused&&a.all.getCount()){if(c.event.getTarget()===a.tabGuardEl){b=a.all.getCount()-1}else {b=d.getLastFocused()}d.setPosition(b||0,c.event,null,!b);a.itemFocused=d.getPosition()!=null}if(a.itemFocused){a.el.dom.setAttribute('tabIndex',-1);if(a.tabGuardEl){a.tabGuardEl.setAttribute('tabIndex',-1)}}Ext.Component.prototype.onFocusEnter.call(this,c)},onFocusLeave:function(b){var a=this;if(a.itemFocused&&!a.refreshing){a.getNavigationModel().setPosition(null,b.event,null,!0);a.itemFocused=!1;a.el.dom.setAttribute('tabIndex',0);if(a.tabGuardEl){a.tabGuardEl.setAttribute('tabIndex',0)}}Ext.Component.prototype.onFocusLeave.call(this,b)},cancelFocusTask:function(){var a=this.getFocusTask();if(a){a.cancel()}},onRemoved:function(a){Ext.Component.prototype.onRemoved.call(this,a);if(!a){this.onFocusLeave({})}},refresh:function(){var a=this,c=a.all,j=c.getCount(),f=a.refreshCounter,g,e,k=a.getSelectionModel(),i,d=f&&c.getCount()&&a.preserveScrollOnRefresh&&a.getScrollable(),h=a.bufferedRenderer,b;if(!a.rendered||a.destroyed){return}if(!a.hasListeners.beforerefresh||a.fireEvent('beforerefresh',a)!==!1){a.refreshing=!0;i=a.saveFocusState();g=a.getTargetEl();e=a.getViewRange();if(d){b=d.getPosition();if(!(b.x||b.y)){b=null}}if(f||a.emptyEl){a.clearViewEl()}if(f){a.refreshCounter++}else {a.refreshCounter=1}a.tpl.append(g,a.collectData(e,c.startIndex||0));if(e.length<1){a.addEmptyText();c.clear()}else {a.collectNodes(g.dom);a.updateIndexes(0)}i();if(a.refreshSelmodelOnRefresh!==!1){k.refresh()}a.refreshNeeded=!1;a.refreshSize(c.getCount()!==j);a.fireItemMutationEvent('refresh',a,e);if(d){d.scrollTo(b)}if(!a.viewReady){a.viewReady=!0;a.fireEvent('viewready',a)}a.refreshing=!1;if(h){h.refreshSize()}a.cleanupData()}if(!a.tabGuardEl){a.tabGuardEl=a.el.createChild({cls:'x-tab-guard x-tab-guard-after',tabIndex:"0"},null,!0)}},addEmptyText:function(){var a=this,b=a.getStore();if(a.emptyText&&!b.isLoading()&&(!a.deferEmptyText||a.refreshCounter>1||b.isLoaded())){if(!a.emptyEl){a.emptyEl=Ext.core.DomHelper.insertHtml('beforeEnd',a.getTargetEl().dom,a.emptyText)}else {Ext.fly(a.emptyEl).setHtml(a.emptyText)}}},getEmptyText:function(){return this.emptyText},setEmptyText:function(b){var a=this;if(a.emptyText!==b){a.emptyText=b;a.refresh()}return a},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(c){var b=this,a=b.getSizeModel();if(a.height.shrinkWrap||a.width.shrinkWrap||c){b.updateLayout()}},afterFirstLayout:function(d,c){var a=this,b=a.getScrollable();if(b){a.viewScrollListeners=b.on({scroll:a.onViewScroll,scrollend:a.onViewScrollEnd,scope:a,onFrame:!!Ext.global.requestAnimationFrame,destroyable:!0})}Ext.Component.prototype.afterFirstLayout.call(this,d,c)},clearViewEl:function(){var a=this,b=a.getTargetEl(),c=a.all,h=a.getStore(),d,g,e,f=a.getNodeContainer()===b;g=c.slice();e=[];for(d=c.startIndex;d<=c.endIndex;d++){e.push(h.getByInternalId(c.item(d,!0).getAttribute('data-recordId')))}a.fireItemMutationEvent('itemremove',e,c.startIndex||0,g,a);a.clearEmptyEl();a.all.clear(!f);b=f?b.dom:a.getNodeContainer();if(b){b.innerHTML=''}},clearEmptyEl:function(){var a=this.emptyEl;if(a){Ext.removeNode(a)}this.emptyEl=null},onViewScroll:function(c,a,b){if(!this.destroyed){this.fireEvent('scroll',this,a,b)}},onViewScrollEnd:function(c,a,b){if(!this.destroyed){this.fireEvent('scrollend',this,a,b)}},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(c,f,e){var a,b,d;if(e){a=e.getAssociatedData();for(b in a){if(a.hasOwnProperty(b)){if(!d){c=Ext.Object.chain(c);d=!0}c[b]=a[b]}}}return c},collectData:function(c,e){var d=[],a=0,f=c.length,b;for(;a<f;a++){b=c[a];d[a]=this.prepareData(b.data,e+a,b)}return d},cleanupData:Ext.emptyFn,bufferRender:function(g,h){var b=this,e=b.renderBuffer,d=document.createDocumentFragment(),a,f,c;b.tpl.overwrite(e,b.collectData(g,h));a=e.query(b.getItemSelector());for(c=0,f=a.length;c<f;c++){d.appendChild(a[c])}return {fragment:d,children:a}},nodeContainerSelector:null,setItemsDraggable:function(d){var b=this,c='#'+b.id+' '+b.getItemSelector(),a=b.viewStyleSheet;if(d){if(!a){a=Ext.view.AbstractView.prototype.viewStyleSheet=Ext.util.CSS.createStyleSheet('','AbstractView')}Ext.util.CSS.createRule(a,c,'touch-action: pinch-zoom double-tap-zoom;-ms-touch-action: pinch-zoom double-tap-zoom;-webkit-user-drag: none;')}else if(a){Ext.util.CSS.deleteRule(c)}},getNodeContainerSelector:function(){return this.nodeContainerSelector},onUpdate:function(f,c,e,d,b){var a=this,g=b&&b.filtered;if(!g&&a.getNode(c)){if(a.throttledUpdate){a.statics().queueRecordChange(a,f,c,e,d)}else {a.handleUpdate(f,c,e,d,b)}}},handleUpdate:function(f,b){var a=this,c,d,e=a.getSelectionModel();if(a.viewReady&&!a.refreshNeeded){c=a.dataSource.indexOf(b);if(c>-1){if(a.getNode(b)){d=a.bufferRender([b],c).children[0];a.all.replaceElement(c,d,!0);a.updateIndexes(c,c);e.onUpdate(b);a.refreshSizePending=!0;if(e.isSelected(b)){a.onItemSelect(b)}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',b,c,d,a)}return d}}}},onReplace:function(q,b,f,e){var a=this,d=a.all,c=a.getScrollable(),p=c&&c.getPosition().y,o=a.getSelectionModel(),k=b,i,n,h,g,m,l,j;if(a.rendered){i=a.bufferRender(e,b,!0);h=i.fragment;g=i.children;n=d.item(b);if(n){d.item(b).insertSibling(h,'before',!0)}else {a.appendNodes(h)}d.insert(b,g);if(f.length){j=a.saveFocusState()}b+=e.length;l=b+f.length-1;m=d.removeRange(b,l,!0);if(c){c.scrollTo(null,p)}if(a.refreshSelmodelOnRefresh!==!1){o.refresh()}a.updateIndexes(b);a.fireItemMutationEvent('itemremove',f,k,m,a);a.fireItemMutationEvent('itemadd',e,k,g,a);j();a.refreshSize()}},onAdd:function(f,d,b){var a=this,c,e=a.getSelectionModel();if(a.rendered&&!a.refreshNeeded){if(a.all.getCount()===0){a.refresh();c=a.all.slice()}else {c=a.doAdd(d,b);if(a.refreshSelmodelOnRefresh!==!1){e.refresh()}a.updateIndexes(b);a.refreshSizePending=!0}a.fireItemMutationEvent('itemadd',d,b,c,a)}},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(j,b){var d=this,g=d.bufferRender(j,b,!0),f=g.fragment,c=g.children,a=d.all,h=a.getCount(),e=a.startIndex||0,i=a.endIndex||h-1;if(h===0||b>i){d.appendNodes(f)}else if(b<=e){a.item(e).insertSibling(f,'before',!0)}else {a.item(b).insertSibling(c,'before',!0)}a.insert(b,c);return c},onRemove:function(k,e,f){var a=this,h=a.all,c,b,j,d,g,i;if(a.rendered&&!a.refreshNeeded&&h.getCount()){if(a.dataSource.getCount()===0){a.refresh()}else {i=a.saveFocusState();d=[];for(b=e.length-1;b>=0;--b){j=e[b];c=f+b;if(d){g=h.item(c);d[b]=g?g.dom:undefined}if(h.item(c)){a.doRemove(j,c)}}a.fireItemMutationEvent('itemremove',e,f,d,a);i();a.updateIndexes(f)}a.refreshSizePending=!0}},doRemove:function(b,a){this.all.removeElement(a,!0)},eventLifecycleMap:{refresh:'onViewRefresh',itemremove:'onItemRemove',itemadd:'onItemAdd'},fireItemMutationEvent:function(d){var a=this,b=a.ownerGrid,c;Ext.suspendLayouts();if(b){if(d!=='refresh'){c=a.lookupViewModel()}b[a.eventLifecycleMap[d]].apply(b,Ext.Array.slice(arguments,1))}a.fireEvent.apply(a,arguments);if(c){c.notify()}Ext.resumeLayouts(!0)},saveFocusState:function(){var a=this,f=a.dataSource||a.store,d=a.getNavigationModel(),b=d.recordIndex,c=d.record,e=a.el.contains(Ext.Element.getActiveElement());if(c){if(e){a.el.dom.focus()}return function(){if(f.getCount()){b=Math.min(b,a.all.getCount()-1);d.setPosition(f.contains(c)?c:b,null,null,!0,!e)}}}return Ext.emptyFn},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.onUpdate(this.dataSource,a)},updateIndexes:function(f,c){var b=this,h=b.all.elements,i=b.getViewRange(),g=b.getSelectionModel(),j=b.id,e,d,a;f=f||0;c=c||((c===0)?0:(h.length-1));for(a=f;a<=c;a++){e=h[a];d=i[a];e.setAttribute('data-recordIndex',a);e.setAttribute('data-recordId',d.internalId);e.setAttribute('data-boundView',j);if(g.getLastSelected()){b[g.isSelected(d)?'onItemSelect':'onItemDeselect'](d)}}},bindStore:function(b,e){var a=this,c=a.getSelectionModel(),d=a.getNavigationModel();if(c&&!c.destroyed){c.bindStore(b,e);c.bindComponent(b?a:null)}a.mixins.storeholder.bindStore.apply(a,arguments);if(d&&!d.destroyed){d.setStore(b)}if(b&&a.componentLayoutCounter&&!a.blockRefresh){a.doFirstRefresh(b,!e)}},doFirstRefresh:function(b,c){var a=this;if(a.deferInitialRefresh&&!c){Ext.defer(a.doFirstRefresh,1,a,[b,!0])}else {if(b&&!a.deferRefreshForLoad(b)){a.refresh()}}},onUnbindStore:function(a){this.setMaskBind(null);if(this.dataSource===a){this.dataSource=null}},onBindStore:function(c,b){var a=this;if(a.store.isBufferedStore){a.store.preserveScrollOnReload=a.preserveScrollOnReload}if(b&&b.isBufferedStore){delete b.preserveScrollOnReload}a.setMaskBind(c);if(!a.dataSource){a.dataSource=c}},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(!0);if(a.refreshSizePending){a.refreshSize(!0);a.refreshSizePending=!1}},onDataRefresh:function(b){var a=this,c=a.preserveScrollOnRefresh;if(b.loadCount>(a.lastRefreshLoadCount||0)){a.preserveScrollOnRefresh=a.preserveScrollOnReload}a.refreshView();a.preserveScrollOnRefresh=c;a.lastRefreshLoadCount=b.loadCount},refreshView:function(c){var a=this,d=a.blockRefresh||!a.rendered||a.up('[collapsed],[isCollapsingOrExpanding=1],[hidden]'),b=a.bufferedRenderer;if(d){a.refreshNeeded=!0}else {if(b){b.refreshView(c)}else {a.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 c=[],b=this.getSelectionModel().getSelection(),d=b.length,a=0;for(;a<d;a++){c.push(this.getNode(b[a]))}return c},getRecords:function(c){var d=this,b=[],a;for(a=0;a<c.length;a++){b.push(d.getRecord(c[a]))}return b},getRecord:function(a){var b=Ext.getDom(a),c=b.getAttribute('data-recordId');return this.dataSource.getByInternalId(c)},isSelected:function(a){var b=this.getRecord(a);return this.getSelectionModel().isSelected(b)},select:function(c,b,a){this.getSelectionModel().select(c,b,a)},deselect:function(b,a){this.getSelectionModel().deselect(b,a)},getNode:function(a){var c=this,b;if(c.rendered&&(a||a===0)){if(Ext.isString(a)){b=document.getElementById(a)}else if(a.isModel){b=c.getNodeByRecord(a)}else if(Ext.isNumber(a)){b=c.all.elements[a]}else {if(a.target&&a.target.nodeType){a=a.target}b=Ext.fly(a).findParent(c.itemSelector,c.getTargetEl())}}return b||null},getNodeByRecord:function(a){var b=this.store.indexOf(a);return this.all.elements[b]||null},getNodes:function(b,a){var c=this.all;if(a!==undefined){a++}return c.slice(b,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)},doDestroy:function(){var a=this,c=a.updateSuspendCounter,b=a.tabGuardEl;if(a.viewScrollListeners){a.viewScrollListeners.destroy()}if(a.all&&!a.all.destroyed){a.all.clear()}if(b){if(b.parentNode){b.parentNode.removeChild(b)}}a.emptyEl=null;a.setItemsDraggable(!1);a.bindStore(null);if(a.selModelRelayer){a.selModelRelayer.destroy()}Ext.destroy(a.navigationModel,a.selectionModel,a.loadMask);while(c--){Ext.resumeLayouts(!0)}Ext.Component.prototype.doDestroy.call(this)},onItemSelect:function(b){var a=this.getNode(b);if(a){Ext.fly(a).addCls(this.selectedItemCls);a.setAttribute('aria-selected','true')}return a},onItemDeselect:function(b){var a=this.getNode(b);if(a){Ext.fly(a).removeCls(this.selectedItemCls);a.setAttribute('aria-selected','false')}return a},getItemSelector:function(){return this.itemSelector},addItemCls:function(b,c){var a=this.getNode(b);if(a){Ext.fly(a).addCls(c)}},removeItemCls:function(b,c){var a=this.getNode(b);if(a){Ext.fly(a).removeCls(c)}},setStore:function(b){var a=this;if(a.store!==b){if(a.isConfiguring){a.store=b}else {a.bindStore(b,!1)}}},privates:{deferRefreshForLoad:function(a){return a.isLoading()},toggleChildrenTabbability:function(b){var a=this.getTargetEl();if(b){a.restoreTabbableState({skipSelf:!0})}else {a.saveTabbableState({skipSelf:!0,includeSaved:!1})}},collectNodes:function(c){var a=this.all,b={role:this.itemAriaRole};a.fill(Ext.fly(c).query(this.getItemSelector()),a.startIndex||0);if(this.focusable){b.tabindex='-1'}a.set(b)},createMask:function(d){var a=this,c=a.getStore(),b;if(c&&!c.isEmptyStore&&!c.loadsSynchronously()){b={target:a,msg:a.loadingText,useMsg:a.loadingUseMsg,store:c};if(a.loadingCls){b.msgCls=a.loadingCls}if(Ext.isObject(d)){b=Ext.apply(b,d)}a.loadMask=new Ext.LoadMask(b);a.loadMask.on({scope:a,beforeshow:a.onMaskBeforeShow,hide:a.onMaskHide})}return a.loadMask},getNodeContainer:function(){var b=this.getTargetEl(),a=this.nodeContainerSelector;return a?b.down(a,!0):b},getOverflowEl:function(){return Ext.Component.prototype.getTargetEl.call(this)}}},1,0,["component","box"],{"component":!0,"box":!0},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(d,c,b){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 a=this.getSelectionModel();return a.select.apply(a,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:!1,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(b){var a=this,d=a.getTargetSelector(),c=b.getTarget(d);if(!a.destroyed){if(c){if(a.mouseOverItem!==c&&a.el.contains(c)){a.mouseOverItem=b.item=c;b.newType='mouseenter';a.handleEvent(b)}}else {a.handleEvent(b)}}},handleMouseOut:function(a){var c=this,f=c.getTargetSelector(),b=a.getTarget(f),e=a.getRelatedTarget(f),d;if((b===e)&&!(b===null&&e===null)){return}if(!c.destroyed){if(b&&(d=c.self.getBoundView(b))){a.item=b;a.newType='mouseleave';d.handleEvent(a);d.mouseOverItem=null}else {c.handleEvent(a)}}},handleEvent:function(a){var b=this,c=b.keyEventRe.test(a.type);a.isInputFieldEvent=Ext.fly(a.target).isInputField();a.view=b;a.item=a.getTarget(b.itemSelector);if(a.item){a.record=b.getRecord(a.item)}if(b.processUIEvent(a)!==!1&&!b.destroyed){b.processSpecialEvent(a)}if(c&&!a.isInputFieldEvent){if(a.getKey()===a.SPACE||a.isNavKeyPress(!0)){a.preventDefault()}}a.view=null},processItemEvent:Ext.emptyFn,processContainerEvent:Ext.emptyFn,processSpecialEvent:Ext.emptyFn,processUIEvent:function(b){if(!Ext.getBody().isAncestor(b.target)){return}var a=this,f=b.item,j=a.self,h=j.EventMap,i=j.TouchEventMap,g,e=b.record,d=b.type,c=d;if(b.newType){c=b.newType}if(f){c=i[c]||c;g=b.recordIndex=a.indexInStore?a.indexInStore(e):a.indexOf(f);if(!e||a.processItemEvent(e,f,g,b)===!1){return !1}if((a['onBeforeItem'+h[c]](e,f,g,b)===!1)||(a.fireEvent('beforeitem'+c,a,e,f,g,b)===!1)||(a['onItem'+h[c]](e,f,g,b)===!1)){return !1}a.fireEvent('item'+c,a,e,f,g,b)}else {d=i[d]||d;if((a.processContainerEvent(b)===!1)||(a['onBeforeContainer'+h[d]](b)===!1)||(a.fireEvent('beforecontainer'+d,a,b)===!1)||(a['onContainer'+h[d]](b)===!1)){return !1}a.fireEvent('container'+d,a,b)}return !0},onItemMouseEnter:function(b,a,c,d){if(this.trackOver){this.highlightItem(a)}},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 a=this,b=a.highlightedItem,d=a.overItemCls;if(b!==c){if(b){Ext.fly(b).removeCls(d);if(Ext.isIE8){a.repaintBorder(b);a.repaintBorder(b.nextSibling)}if(a.hasListeners.unhighlightitem){a.fireEvent('unhighlightitem',a,b)}}a.highlightedItem=c;if(c){Ext.fly(c).addCls(a.overItemCls);if(Ext.isIE8){a.repaintBorder(c.nextSibling)}if(a.hasListeners.highlightitem){a.fireEvent('highlightitem',a,c)}}}},highlightItem:function(a){this.setHighlightedItem(a)},clearHighlight:function(){this.setHighlightedItem(undefined)},handleUpdate:function(f,e){var a=this,d,c,b;if(a.viewReady){d=a.getNode(e);c=Ext.view.AbstractView.prototype.handleUpdate.apply(this,arguments);b=a.highlightedItem;if(b&&b===d){delete a.highlightedItem;if(c){a.highlightItem(c)}}}},refresh:function(){this.clearHighlight();Ext.view.AbstractView.prototype.refresh.apply(this,arguments)},focusNode:function(h){var g=this,e=Ext.fly(g.getNode(h)),f=g.el,d=0,c=0,a=f.getRegion(),b;a.bottom=a.top+f.dom.clientHeight;a.right=a.left+f.dom.clientWidth;if(e){b=e.getRegion();if(b.top<a.top){d=b.top-a.top}else if(b.bottom>a.bottom){d=b.bottom-a.bottom}if(b.left<a.left){c=b.left-a.left}else if(b.right>a.right){c=b.right-a.right}if(c||d){g.scrollBy(c,d,!1)}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":!0,"box":!0,"dataview":!0},["widget.dataview"],0,[Ext.view,'View',Ext,'DataView'],0));(Ext.cmd.derive('Ext.view.BoundListKeyNav',Ext.view.NavigationModel,{navigateOnSpace:!0,initKeyNav:function(c){var a=this,b=c.pickerField;if(!a.keyNav){Ext.view.NavigationModel.prototype.initKeyNav.call(this,c);a.keyNav.map.addBinding({key:Ext.event.Event.ESC,fn:a.onKeyEsc,scope:a})}if(!b){return}if(!b.rendered){b.on('render',Ext.Function.bind(a.initKeyNav,a,[c],0),a,{single:!0});return}a.fieldKeyNav=new Ext.util.KeyNav({disabled:!0,target:b.inputEl,forceKeyDown:!0,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a})},processViewEvent:function(b,c,e,d,a){if(a.within(b.listWrap)){return a}if(a.getKey()===a.ESC){if(Ext.fly(a.target).isInputField()){a.target=a.target.parentNode}return a}},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(e,b,d,c,a){Ext.view.NavigationModel.prototype.onItemMouseDown.call(this,e,b,d,c,a);if(a.pointerType==='mouse'){a.preventDefault()}},onKeyUp:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b>0?b-1:f.getCount()-1;d.setPosition(e);g.preventDefault()},onKeyDown:function(g){var d=this,a=d.view,f=a.all,c=a.highlightedItem,b=c?a.indexOf(c):-1,e=b<f.getCount()-1?b+1:0;d.setPosition(e);g.preventDefault()},onKeyLeft:Ext.returnTrue,onKeyRight:Ext.returnTrue,onKeyTab:function(c){var b=this.view,a=b.pickerField;if(b.isVisible()){if(a.selectOnTab){this.selectHighlighted(c)}if(a.collapse){a.collapse()}}return !0},onKeyEnter:function(b){var d=this.view,c=d.getSelectionModel(),a=d.pickerField,e=c.getCount();b.stopEvent();this.selectHighlighted(b);if(!a.multiSelect&&e===c.getCount()&&a.collapse){a.collapse()}a.fireEvent('specialkey',a,b,{fromBoundList:!0});return !1},onKeySpace:function(){if(this.navigateOnSpace){Ext.view.NavigationModel.prototype.onKeySpace.apply(this,arguments)}return !0},onKeyEsc:function(){if(this.view.pickerField){this.view.pickerField.collapse()}},focusItem:function(a){var c=this,b=c.view;if(typeof a==='number'){a=b.all.item(a)}if(a){a=a.dom;b.highlightItem(a);b.getScrollable().ensureVisible(a,{x:!1})}},selectHighlighted:function(d){var c=this,b=c.view,e=b.getSelectionModel(),a,f=c.recordIndex;if(b.all.getCount()){a=c.getRecord();if(a){if(d.getKey()===d.ENTER||!e.isSelected(a)){e.selectWithEvent(a,d);if(!b.store.data.contains(a)){c.setPosition(Math.min(f,b.store.getCount()-1))}}}}},destroy:function(){this.fieldKeyNav=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(a){var d=this,b=d.owner,c=b.pagingToolbar;d.scrollPos=b.listWrap.getScroll();Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);if(b.floating){a.savedXY=b.getXY();b.setXY([0,-9999])}if(c){a.toolbarContext=a.context.getCmp(c)}a.listContext=a.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 !0},finishedLayout:function(e){var a=this,d=e.savedXY,f=a.owner,c=f.listWrap,b=a.scrollPos;Ext.layout.component.Auto.prototype.finishedLayout.apply(this,arguments);if(d){a.owner.setXY(d)}c.setScrollLeft(b.left);c.setScrollTop(b.top)},measureContentWidth:function(a){return this.owner.listWrap.getWidth()},measureContentHeight:function(a){return this.owner.listWrap.getHeight()},publishInnerHeight:function(b,d){var c=b.toolbarContext,a=0;if(c){a=c.getProp('height')}if(a===undefined){this.done=!1}else {b.listContext.setHeight(d-b.getFrameInfo().height-a)}},calculateOwnerHeightFromContentHeight:function(c){var b=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),a=c.toolbarContext;if(a){b+=a.getProp('height')}return b}},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":!0,"box":!0,"tbitem":!0},["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":!0,"box":!0,"tbitem":!0,"tbtext":!0},["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:!0,vertical:!0,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 a=this,d=arguments,c=a.clickRepeater?d[1]:d[0],b=a.field;if(!b.readOnly&&!b.disabled){if(a.upEl.contains(c.target)){Ext.callback(a.upHandler,a.scope,[b,a,c],0,b)}else if(a.downEl.contains(c.target)){Ext.callback(a.downHandler,a.scope,[b,a,c],0,b)}}b.inputEl.focus()},onFieldRender:function(){var a=this,d=a.vertical,c,b;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);c=a.spinnerEl=a.el.select('.'+a.spinnerCls,!0);b=c.elements;a.upEl=d?b[0]:b[1];a.downEl=d?b[1]:b[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',endHandler:'onSpinEnd',scope:'this'}}},spinUpEnabled:!0,spinDownEnabled:!0,keyNavEnabled:!0,mouseWheelEnabled:!0,repeatTriggerClick:!0,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 a=this,b=a.getTrigger('spinner');(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(a.keyNavEnabled){a.spinnerKeyNav=new Ext.util.KeyNav({target:a.inputEl,scope:a,up:a.spinUp,down:a.spinDown});a.inputEl.on({keyup:a.onInputElKeyUp,scope:a})}if(a.mouseWheelEnabled){a.mon(a.bodyEl,'mousewheel',a.onMouseWheel,a)}a.spinUpEl=b.upEl;a.spinDownEl=b.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(b){var a=this,c=a.spinUpEnabled;a.spinUpEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setUpEnabled(b)}},setSpinDownEnabled:function(b){var a=this,c=a.spinDownEnabled;a.spinDownEnabled=b;if(c!==b&&a.rendered){a.getTrigger('spinner').setDownEnabled(b)}},onMouseWheel:function(c){var a=this,b;if(a.hasFocus){b=c.getWheelDelta();if(b>0){a.spinUp()}else if(b<0){a.spinDown()}c.stopEvent();a.onSpinEnd()}},onInputElKeyUp:function(a){if(a.keyCode===a.UP||a.keyCode===a.DOWN){this.onSpinEnd()}},doDestroy:function(){Ext.destroyMembers(this,'spinnerKeyNav');Ext.form.field.Text.prototype.doDestroy.call(this)}},0,["spinnerfield"],["component","box","field","textfield","spinnerfield"],{"component":!0,"box":!0,"field":!0,"textfield":!0,"spinnerfield":!0},["widget.spinnerfield"],0,[Ext.form.field,'Spinner',Ext.form,'Spinner'],function(a){var b=function(){if(!this.destroying&&!this.destroyed){this.fireEvent('spinend',this)}};a.prototype.onSpinEnd=Ext.Function.createBuffered(b,100)}));(Ext.cmd.derive('Ext.form.field.Number',Ext.form.field.Spinner,{alternateClassName:['Ext.form.NumberField','Ext.form.Number'],allowExponential:!0,allowDecimals:!0,decimalSeparator:null,submitLocaleSeparator:!0,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:!1,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)},getSubTplData:function(g){var f=this,e=f.minValue,d=f.maxValue,c,a,b;c=Ext.form.field.Spinner.prototype.getSubTplData.call(this,g);a=c.inputElAriaAttributes;if(a){if(e>Number.NEGATIVE_INFINITY){a['aria-valuemin']=e}if(d<Number.MAX_VALUE){a['aria-valuemax']=d}b=f.getValue();if(b!=null&&b>=e&&b<=d){a['aria-valuenow']=b}}return c},setValue:function(d){var a=this,c,b;if(a.hasFocus){c=a.getBind();b=c&&c.value;if(b&&b.syncing&&d===a.value){return a}}return Ext.form.field.Spinner.prototype.setValue.call(this,d)},getErrors:function(b){b=arguments.length>0?b:this.processRawValue(this.getRawValue());var a=this,c=Ext.form.field.Spinner.prototype.getErrors.call(this,b),e=Ext.String.format,d;if(b.length<1){return c}b=String(b).replace(a.decimalSeparator,'.');if(isNaN(b)){c.push(e(a.nanText,b))}d=a.parseValue(b);if(a.minValue===0&&d<0){c.push(this.negativeText)}else if(d<a.minValue){c.push(e(a.minText,a.minValue))}if(d>a.maxValue){c.push(e(a.maxText,a.maxValue))}return c},rawToValue:function(b){var a=this.fixPrecision(this.parseValue(b));if(a===null){a=b||null}return a},valueToRaw:function(a){var b=this,c=b.decimalSeparator;a=b.parseValue(a);a=b.fixPrecision(a);a=Ext.isNumber(a)?a:parseFloat(String(a).replace(c,'.'));a=isNaN(a)?'':String(a).replace('.',c);return a},getSubmitValue:function(){var b=this,a=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!b.submitLocaleSeparator){a=a.replace(b.decimalSeparator,'.')}return a},onChange:function(a){var b=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(b){if(Ext.isNumber(a)&&isFinite(a)){b.setAttribute('aria-valuenow',a)}else {b.removeAttribute('aria-valuenow')}}},toggleSpinners:function(){var a=this,c=a.getValue(),d=c===null,b;if(a.spinUpEnabled||a.spinUpDisabledByToggle){b=d||c<a.maxValue;a.setSpinUpEnabled(b,!0)}if(a.spinDownEnabled||a.spinDownDisabledByToggle){b=d||c>a.minValue;a.setSpinDownEnabled(b,!0)}},setMinValue:function(e){var a=this,c=a.ariaEl.dom,d,b,c;a.minValue=d=Ext.Number.from(e,Number.NEGATIVE_INFINITY);a.toggleSpinners();if(c){if(d>Number.NEGATIVE_INFINITY){c.setAttribute('aria-valuemin',d)}else {c.removeAttribute('aria-valuemin')}}if(a.disableKeyFilter!==!0){b=a.baseChars+'';if(a.allowExponential){b+=a.decimalSeparator+'e+-'}else {if(a.allowDecimals){b+=a.decimalSeparator}if(a.minValue<0){b+='-'}}b=Ext.String.escapeRegex(b);a.maskRe=new RegExp('['+b+']');if(a.autoStripChars){a.stripCharsRe=new RegExp('[^'+b+']','gi')}}},setMaxValue:function(c){var b=this.ariaEl.dom,a;this.maxValue=a=Ext.Number.from(c,Number.MAX_VALUE);if(b){if(a<Number.MAX_VALUE){b.setAttribute('aria-valuemax',a)}else {b.removeAttribute('aria-valuemax')}}this.toggleSpinners()},parseValue:function(a){a=parseFloat(String(a).replace(this.decimalSeparator,'.'));return isNaN(a)?null:a},fixPrecision:function(a){var d=this,c=isNaN(a),b=d.decimalPrecision;if(c||!a){return c?'':a}else if(!d.allowDecimals||b<=0){b=0}return parseFloat(Ext.Number.toFixed(parseFloat(a),b))},onBlur:function(c){var a=this,b=a.rawToValue(a.getRawValue());if(!Ext.isEmpty(b)){a.setValue(b)}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":!0,"box":!0,"field":!0,"textfield":!0,"spinnerfield":!0,"numberfield":!0},["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:!1,prependButtons:!1,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 a=this,b={scope:a,blur:a.onPagingBlur};b[Ext.supports.SpecialKeyDownRepeat?'keydown':'keypress']=a.onPagingKeyDown;return [{itemId:'first',tooltip:a.firstText,overflowText:a.firstText,iconCls:'x-tbar-page-first',disabled:!0,handler:a.moveFirst,scope:a},{itemId:'prev',tooltip:a.prevText,overflowText:a.prevText,iconCls:'x-tbar-page-prev',disabled:!0,handler:a.movePrevious,scope:a},'-',a.beforePageText,{xtype:'numberfield',itemId:'inputItem',name:'inputItem',cls:'x-tbar-page-number',allowDecimals:!1,minValue:1,hideTrigger:!0,enableKeyEvents:!0,keyNavEnabled:!1,selectOnFocus:!0,submitValue:!1,isFormField:!1,width:a.inputItemWidth,margin:'-1 2 3 2',listeners:b},{xtype:'tbtext',itemId:'afterTextItem',html:Ext.String.format(a.afterPageText,1)},'-',{itemId:'next',tooltip:a.nextText,overflowText:a.nextText,iconCls:'x-tbar-page-next',disabled:!0,handler:a.moveNext,scope:a},{itemId:'last',tooltip:a.lastText,overflowText:a.lastText,iconCls:'x-tbar-page-last',disabled:!0,handler:a.moveLast,scope:a},'-',{itemId:'refresh',tooltip:a.refreshText,overflowText:a.refreshText,iconCls:'x-tbar-loading',disabled:a.store.isLoading(),handler:a.doRefresh,scope:a}]},initComponent:function(){var a=this,c=a.items||a.buttons||[],b;a.bindStore(a.store||'ext-empty-store',!0);b=a.getPagingItems();if(a.prependButtons){a.items=c.concat(b)}else {a.items=b.concat(c)}delete a.buttons;if(a.displayInfo){a.items.push('->');a.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()},onAdded:function(c){var a=this,f=a.store,d=a._autoStore,b,e;if(d===undefined){a._autoStore=d=!(f&&!f.isEmptyStore)}if(d){b=a._storeChangeListener;if(b){b.destroy();b=null}e=c&&c.store;if(e){b=c.on({destroyable:!0,scope:a,storechange:'onOwnerStoreChange'})}a._storeChangeListener=b;a.onOwnerStoreChange(c,e)}Ext.toolbar.Toolbar.prototype.onAdded.apply(this,arguments)},onOwnerStoreChange:function(b,a){this.setStore(a||Ext.getStore('ext-empty-store'))},updateBarInfo:function(){var a=this;if(!a.store.isLoading()){a.calledInternal=!0;a.onLoad();a.calledInternal=!1}},updateInfo:function(){var a=this,d=a.child('#displayItem'),f=a.store,b=a.getPageData(),e,c;if(d){e=f.getCount();if(e===0){c=a.emptyMsg}else {c=Ext.String.format(a.displayMsg,b.fromRecord,b.toRecord,b.total)}d.setText(c)}},onLoad:function(){var a=this,f,c,b,g,h,d,e;h=a.store.getCount();d=h===0;if(!d){f=a.getPageData();c=f.currentPage;b=f.pageCount;if(c>b){if(b>0){a.store.loadPage(b)}else {a.getInputItem().reset()}return}g=Ext.String.format(a.afterPageText,isNaN(b)?1:b)}else {c=0;b=0;g=Ext.String.format(a.afterPageText,0)}Ext.suspendLayouts();e=a.child('#afterTextItem');if(e){e.update(g)}e=a.getInputItem();if(e){e.setDisabled(d).setValue(c)}a.setChildDisabled('#first',c===1||d);a.setChildDisabled('#prev',c===1||d);a.setChildDisabled('#next',c===b||d);a.setChildDisabled('#last',c===b||d);a.setChildDisabled('#refresh',!1);a.updateInfo();Ext.resumeLayouts(!0);if(!a.calledInternal){a.fireEvent('change',a,f||a.emptyPageData)}},setChildDisabled:function(c,b){var a=this.child(c);if(a){a.setDisabled(b)}},getPageData:function(){var a=this.store,b=a.getTotalCount(),c=Math.ceil(b/a.pageSize),d=Math.min(a.currentPage*a.pageSize,b);return {total:b,currentPage:a.currentPage,pageCount:Ext.Number.isFinite(c)?c:1,fromRecord:((a.currentPage-1)*a.pageSize)+1,toRecord:d||b}},onLoadError:function(){this.setChildDisabled('#refresh',!1)},getInputItem:function(){return this.child('#inputItem')},readPageFromInput:function(d){var a=this.getInputItem(),b=!1,c;if(a){c=a.getValue();b=parseInt(c,10);if(!c||isNaN(b)){a.setValue(d.currentPage);return !1}}return b},onPagingBlur:function(c){var a=this.getInputItem(),b;if(a){b=this.getPageData().currentPage;a.setValue(b)}},onPagingKeyDown:function(a,b){this.processKeyEvent(a,b)},processKeyEvent:function(g,b){var e=this,c=b.getKey(),d=e.getPageData(),f=b.shiftKey?10:1,a;if(c===b.RETURN){b.stopEvent();a=e.readPageFromInput(d);if(a!==!1){a=Math.min(Math.max(1,a),d.pageCount);if(a!==d.currentPage&&e.fireEvent('beforechange',e,a)!==!1){e.store.loadPage(a)}}}else if(c===b.HOME||c===b.END){b.stopEvent();a=c===b.HOME?1:d.pageCount;g.setValue(a)}else if(c===b.UP||c===b.PAGE_UP||c===b.DOWN||c===b.PAGE_DOWN){b.stopEvent();a=e.readPageFromInput(d);if(a){if(c===b.DOWN||c===b.PAGE_DOWN){f*=-1}a+=f;if(a>=1&&a<=d.pageCount){g.setValue(a)}}}},beforeLoad:function(){this.setChildDisabled('#refresh',!0)},moveFirst:function(){if(this.fireEvent('beforechange',this,1)!==!1){this.store.loadPage(1);return !0}return !1},movePrevious:function(){var a=this,b=a.store,c=b.currentPage-1;if(c>0){if(a.fireEvent('beforechange',a,c)!==!1){b.previousPage();return !0}}return !1},moveNext:function(){var a=this,b=a.store,d=a.getPageData().pageCount,c=b.currentPage+1;if(c<=d){if(a.fireEvent('beforechange',a,c)!==!1){b.nextPage();return !0}}return !1},moveLast:function(){var a=this,b=a.getPageData().pageCount;if(a.fireEvent('beforechange',a,b)!==!1){a.store.loadPage(b);return !0}return !1},doRefresh:function(){var a=this,c=a.store,b=c.currentPage;if(a.fireEvent('beforechange',a,b)!==!1){c.loadPage(b);return !0}return !1},getStoreListeners:function(){return {beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},doDestroy:function(){var a=this,b=a._storeChangeListener;if(b){b.destroy();a._storeChangeListener=null}a.bindStore(null);Ext.toolbar.Toolbar.prototype.doDestroy.call(this)}},0,["pagingtoolbar"],["component","box","container","toolbar","pagingtoolbar"],{"component":!0,"box":!0,"container":!0,"toolbar":!0,"pagingtoolbar":!0},["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:!1,trackOver:!0,preserveScrollOnRefresh:!0,enableInitialSelection:!1,refreshSelmodelOnRefresh:!0,componentLayout:'boundlist',navigationModel:'boundlist',scrollable:!0,ariaEl:'listEl',tabIndex:-1,childEls:['listWrap','listEl'],renderTpl:['<div id="{id}-listWrap" data-ref="listWrap"',' class="{baseCls}-list-ct ',Ext.dom.Element.unselectableCls,'">','<ul id="{id}-listEl" data-ref="listEl" class="','x-','list-plain"','<tpl foreach="ariaAttributes"> {$}="{.}"</tpl>','>','</ul>','</div>','{%','var pagingToolbar=values.$comp.pagingToolbar;','if (pagingToolbar) {','Ext.DomHelper.generateMarkup(pagingToolbar.getRenderTree(), out);','}','%}',{disableFormats:!0}],focusOnToFront:!1,alignOnScroll:!1,initComponent:function(){var a=this,b=a.baseCls,c=a.itemCls;a.selectedItemCls=b+'-selected';if(a.trackOver){a.overItemCls=b+'-item-over'}a.itemSelector='.'+c;if(a.floating){a.addCls(b+'-floating')}if(!a.tpl){a.generateTpl()}else if(!a.tpl.isTemplate){a.tpl=new Ext.XTemplate(a.tpl)}if(a.pageSize){a.pagingToolbar=a.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 b=Ext.view.View.prototype.getRefItems.call(this),a=this.pagingToolbar;if(a){b.push(a)}return b},createPagingToolbar:function(){var a=this;return new Ext.toolbar.Paging({id:a.id+'-paging-toolbar',pageSize:a.pageSize,store:a.dataSource,border:!1,ownerCt:a,ownerLayout:a.getComponentLayout()})},refresh:function(){var a=this,b=a.tpl;b.field=a.pickerField;b.store=a.store;Ext.view.View.prototype.refresh.call(this);b.field=b.store=null;if(!a.ariaStaticRoles[a.ariaRole]){a.refreshAriaAttributes()}},refreshAriaAttributes:function(){var a=this,d=a.store,k=a.getSelectionModel(),i,f,g,c,b,j,e,h;f=d.isFiltered()?d.getCount():d.getTotalCount()||d.getCount();g=a.getNodes();i=a.pickerField&&a.pickerField.multiSelect;for(e=0,h=g.length;e<h;e++){c=g[e];b=null;if(f!==h){b=a.getRecord(c);j=d.indexOf(b);c.setAttribute('aria-setsize',f);c.setAttribute('aria-posinset',j)}if(i){b=b||a.getRecord(c);c.setAttribute('aria-selected',k.isSelected(b))}}},bindStore:function(c,b){var a=this.pagingToolbar;Ext.view.View.prototype.bindStore.apply(this,arguments);if(a){a.bindStore(c,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(e,d,c,b){var a=this.pickerField;Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b);if(a&&a.alignPicker){a.alignPicker()}},onItemSelect:function(b){var c=this,a;a=Ext.view.View.prototype.onItemSelect.call(this,b);if(a){if(c.ariaSelectable){a.setAttribute('aria-selected','true')}else {a.removeAttribute('aria-selected')}}return a},onItemDeselect:function(c){var b=this,a;a=Ext.view.View.prototype.onItemDeselect.call(this,c);if(a&&b.ariaSelectable){if(b.pickerField&&b.pickerField.multiSelect){a.setAttribute('aria-selected','false')}else {a.removeAttribute('aria-selected')}}return a},onItemClick:function(e){var d=this,b=d.pickerField,c,a;if(!b){return}c=b.valueField;a=d.getSelectionModel().getSelection();if(!b.multiSelect&&a.length){a=a[0];if(a&&b.isEqual(e.get(c),a.get(c))&&b.collapse){b.collapse()}}},onContainerClick:function(c){var a=this.pagingToolbar,b;if(a&&a.rendered&&c.within(a.el)){return !1}if(Ext.isIE10||Ext.isIE11){b=this.listWrap.getClientRegion();if(!c.getPoint().isContainedBy(b)){return !1}}},doDestroy:function(){this.pagingToolbar=Ext.destroy(this.pagingToolbar);Ext.view.View.prototype.doDestroy.call(this)},privates:{getNodeContainer:function(){return this.listEl},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":!0,"box":!0,"dataview":!0,"boundlist":!0},["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:!1,hiddenDataCls:'x-hidden-display x-form-data-hidden',ariaRole:'combobox',autoDestroyBoundStore:!0,childEls:{'hiddenDataEl':!0},filtered:!1,afterRender:function(){var a=this;Ext.form.field.Picker.prototype.afterRender.apply(this,arguments);a.setHiddenValue(a.value)},multiSelect:!1,triggerAction:'all',allQuery:'',queryParam:'query',queryMode:'remote',queryCaching:!0,autoLoadOnValue:!1,pageSize:0,anyMatch:!1,caseSensitive:!1,autoSelect:!0,autoSelectLast:!0,typeAhead:!1,typeAheadDelay:250,selectOnTab:!0,forceSelection:!1,growToLongestValue:!0,clearFilterOnBlur:!0,defaultListConfig:{loadingHeight:70,minWidth:70,maxHeight:300,shadow:'sides'},transformInPlace:!0,clearValueOnEmpty:!0,newlineRe:/\r?\n/g,getGrowWidth:function(){var a=this,i=a.inputEl.dom.value,h,e,g,c,b,f,d;if(a.growToLongestValue){h=a.displayField;e=a.store;g=e.data.length;c=0;for(b=0;b<g;b++){f=e.getAt(b).data[h];d=f.length;if(d>c){c=d;i=f}}}return i},initComponent:function(){var a=this,d=Ext.isDefined,f=a.store,e=a.transform,b,c;if('pinList' in a){a.collapseOnSelect=!a.pinList}if(e){b=Ext.getDom(e);if(b){if(!a.store){f=Ext.Array.map(Ext.Array.from(b.options),function(a){return [a.value,a.text]})}if(!a.name){a.name=b.name}if(!('value' in a)){a.value=b.value}}}if(!a.displayTpl){a.setDisplayTpl(!1)}a.bindStore(f||'ext-empty-store',!0,!0);c=a.queryMode==='local';if(!d(a.queryDelay)){a.queryDelay=c?10:500}if(!d(a.minChars)){a.minChars=c?0:4}Ext.form.field.Picker.prototype.initComponent.call(this);a.doQueryTask=new Ext.util.DelayedTask(a.doRawQuery,a);if(b){if(a.transformInPlace){a.render(b.parentNode,b);delete a.renderTo}Ext.removeNode(b)}},initEvents:function(){var a=this;Ext.form.field.Picker.prototype.initEvents.call(this);a.altArrowKeyNav=new Ext.util.KeyNav({target:a.inputEl,forceKeyDown:!0,priority:1002,scope:a,down:{alt:!0,handler:a.onAltDownArrow},up:{alt:!0,handler:a.onAltUpArrow}})},getSubTplData:function(e){var c=this,d=c.id,b,a;b=Ext.form.field.Picker.prototype.getSubTplData.call(this,e);if(!c.ariaStaticRoles[c.ariaRole]){a=b.ariaElAttributes;if(a){a['aria-owns']=d+'-inputEl '+d+'-picker-listEl';a['aria-autocomplete']='list'}}return b},getSubTplMarkup:function(c){var b=this,a='',d=Ext.form.field.Picker.prototype.getSubTplMarkup.apply(this,arguments);if(b.hiddenName){a='<div id="'+c.id+'-hiddenDataEl" data-ref="hiddenDataEl" class="'+b.hiddenDataCls+'" role="presentation"></div>'}return a+d},applyDisplayTpl:function(a){var b=this;if(!a){a=new Ext.XTemplate('<tpl for=".">{[typeof values === "string" ? values : values["'+b.getDisplayField()+'"]]}<tpl if="xindex < xcount">'+b.getDelimiter()+'</tpl></tpl>');a.auto=!0}else if(!a.isTemplate){a=new Ext.XTemplate(a)}return a},applyFilters:function(b,a){var c=this;if(b===null||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.beginUpdate();a.splice(0,a.length,b);a.each(function(d){d.ownerId=c.id});a.endUpdate()}return a},applyValueNotFoundText:function(c){var a=this,d=a.valueNotFoundRecord||(a.valueNotFoundRecord=new Ext.data.Model()),e=a.getDisplayField(),b=a.valueField;d.set(e,c);if(b&&e!==b){d.set(b,c)}return c},getFilters:function(b){var a=this.filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},updateFilters:function(a,c){var b=this;if(c){c.un('endupdate','onEndUpdateFilters',b)}if(a){a.on('endupdate','onEndUpdateFilters',b)}b.onEndUpdateFilters(a)},onEndUpdateFilters:function(a){var b=this,f=b.filtered,e=!!a&&(a.length>0),d,c;if(f||e){b.filtered=e;d=[];c=b.store.getFilters();c.each(function(c){if(c.ownerId===b.id&&!a.contains(c)){d.push(c)}});c.splice(0,d,a.items)}},clearLocalFilter:function(){var a=this,b=a.queryFilter;if(b){a.queryFilter=null;a.changingFilters=!0;a.store.removeFilter(b,!0);a.changingFilters=!1}},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()}},onAltDownArrow:function(a){a.stopEvent();if(!this.isExpanded){this.onDownArrow(a)}return !1},onAltUpArrow:function(a){a.stopEvent();if(this.isExpanded){this.onEsc(a)}return !1},assertValue:function(){var a=this,e=a.getRawValue(),d=a.getDisplayValue(),c=a.lastSelectedRecords,g=!1,f,b;if(a.forceSelection){if(a.multiSelect){if(e!==d){a.setRawValue(d)}}else {b=a.findRecordByDisplay(e);if(!b){if(c&&(!a.allowBlank||a.rawValue)){b=c[0]}else if(a.displayTplData&&a.displayTplData.length){b=a.findRecordByValue(a.displayTplData[0][a.valueField])}}else if(a.getDisplayValue([a.getRecordDisplayData(b)])===d){b=null;g=!0}if(b){a.select(b,!0);a.fireEvent('select',a,b)}else if(!g){if(c){delete a.lastSelectedRecords}a.setRawValue('')}}}else if((f=a.getValue())&&f==e){b=a.findRecordByDisplay(f);if(b&&(b!==(c&&c[0])||a.displayField!==a.valueField)){a.select(b,!0);a.fireEvent('select',a,b)}}a.collapse()},onTypeAhead:function(){var a=this,d=a.displayField,e=a.store.findRecord(d,a.getRawValue()),b,f,c;if(e){b=e.get(d);f=b.length;c=a.getRawValue().length;if(c!==0&&c!==f){a.lastMutatedValue=b;a.setRawValue(b);a.selectText(c,b.length)}}},resetToDefault:Ext.emptyFn,beforeReset:function(){Ext.form.field.Picker.prototype.beforeReset.call(this);this.clearLocalFilter()},onUnbindStore:function(){var a=this,b=a.picker;if(a.queryFilter&&!a.store.destroyed){a.clearLocalFilter()}if(b){b.bindStore(null)}a.pickerSelectionModel.destroy()},onBindStore:function(b,f){var a=this,d=a.picker,c,e;if(b){if(b.autoCreated){a.queryMode='local';a.valueField=a.displayField='field1';if(!b.expanded){a.displayField='field2'}if(a.getDisplayTpl().auto){a.setDisplayTpl(null)}}if(!Ext.isDefined(a.valueField)){a.valueField=a.displayField}c={byValue:{rootProperty:'data',unique:!1}};c.byValue.property=a.valueField;b.setExtraKeys(c);if(a.displayField===a.valueField){b.byText=b.byValue}else {c.byText={rootProperty:'data',unique:!1};c.byText.property=a.displayField;b.setExtraKeys(c)}e={rootProperty:'data',extraKeys:{byInternalId:{property:'internalId'},byValue:{property:a.valueField,rootProperty:'data'}},listeners:{beginupdate:a.onValueCollectionBeginUpdate,endupdate:a.onValueCollectionEndUpdate,scope:a}};a.valueCollection=new Ext.util.Collection(e);a.pickerSelectionModel=new Ext.selection.DataViewModel({mode:a.multiSelect?'SIMPLE':'SINGLE',ordered:!0,deselectOnContainerClick:!1,enableInitialSelection:!1,pruneRemoved:!1,selected:a.valueCollection,store:b,listeners:{scope:a,lastselectedchanged:a.updateBindSelection}});if(!f){a.resetToDefault()}if(d){a.pickerSelectionModel.on({scope:a,beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect});d.setSelectionModel(a.pickerSelectionModel);if(d.getStore()!==b){d.bindStore(b)}}}},bindStore:function(a,e,c){var b=this,d=b.queryFilter;b.mixins.storeholder.bindStore.call(b,a,c);a=b.getStore();if(a&&d&&!e){a.getFilters().add(d)}if(!c&&a&&!a.isEmptyStore){b.setValueOnData()}},getStoreListeners:function(c){if(!c.isEmptyStore){var a=this,b={datachanged:a.onDataChanged,load:a.onLoad,exception:a.onException,update:a.onStoreUpdate,remove:a.checkValueOnChange};if(!c.getRemoteFilter()){b.filterchange=a.checkValueOnChange}return b}},onDataChanged:function(){if(this.grow&&this.growToLongestValue){this.autoSize()}},checkValueOnChange:function(){var a=this;if(!a.destroying&&a.getStore().isLoaded()){if(a.multiSelect){}else {if(a.forceSelection&&!a.changingFilters&&!a.findRecordByValue(a.value)){if(a.queryMode!='local'&&(a.hasFocus||a.isPaging)){return}a.setValue(null)}}}},onStoreUpdate:function(b,a){this.updateValue()},onException:function(){this.isPaging=!1;this.collapse()},onLoad:function(b,e,d){var a=this,c=!a.valueCollection.byValue.get(a.value);if(d&&c&&!a.isPaging&&!(b.lastOptions&&'rawQuery' in b.lastOptions)){a.setValueOnData()}a.checkValueOnChange();a.isPaging=!1},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,!1,!0)},doQuery:function(d,e,f){var a=this,h=a.getStore(),g=h.getFilters(),b=a.beforeQuery({lastQuery:a.lastQuery||'',query:d||'',rawQuery:f,forceAll:e,combo:a,cancel:!1}),c;if(b!==!1&&!b.cancel){c=!!d&&(!a.queryFilter||a.queryFilter&&(g.indexOf(a.queryFilter)<0));if(a.queryCaching&&!c&&b.query===a.lastQuery){a.getPicker().refresh();a.expand();a.afterQuery(b)}else {a.lastQuery=b.query;if(a.queryMode==='local'){a.doLocalQuery(b)}else {a.doRemoteQuery(b)}}return !0}else {a.startCheckChangeTask()}return !1},beforeQuery:function(a){var b=this;if(b.fireEvent('beforequery',a)===!1){a.cancel=!0}else if(!a.cancel){if(a.query.length<b.minChars&&!a.forceAll){a.cancel=!0}}return a},doLocalQuery:function(d){var a=this,c=d.query,f=a.getStore(),b=c,e;a.clearLocalFilter();if(c){if(a.enableRegEx){try{b=new RegExp(b)}catch(g){b=null}}if(b!==null){a.changingFilters=!0;e=a.queryFilter=new Ext.util.Filter({id:a.id+'-filter',anyMatch:a.anyMatch,caseSensitive:a.caseSensitive,root:'data',property:a.displayField,value:b});f.addFilter(e,!0);a.changingFilters=!1}}if(a.store.getCount()||a.getPicker().emptyText){a.getPicker().refresh();a.expand()}else {a.collapse()}a.afterQuery(d)},doRemoteQuery:function(b){var a=this,c=function(){if(!a.destroyed){a.afterQuery(b)}};a.expand();if(a.pageSize){a.loadPage(1,{rawQuery:b.rawQuery,callback:c})}else {a.store.load({params:a.getParams(b.query),rawQuery:b.rawQuery,callback:c})}},afterQuery:function(b){var a=this;if(a.store.getCount()){if(a.typeAhead){a.doTypeAhead(b)}if(b.rawQuery){if(a.picker&&!a.picker.getSelectionModel().hasSelection()){a.doAutoSelect()}}else {a.doAutoSelect()}}a.startCheckChangeTask()},loadPage:function(b,a){this.isPaging=!0;this.store.loadPage(b,Ext.apply({params:this.getParams(this.lastQuery)},a))},onPageChange:function(b,a){this.loadPage(a);return !1},getParams:function(c){var a={},b=this.queryParam;if(b){a[b]=c}return a},doAutoSelect:function(){var b=this,f=b.store,d=b.picker,e=0,c,a;if(d&&b.autoSelect&&f.getCount()>0){if(b.autoSelectLast){c=d.getSelectionModel();a=c.lastSelected;if(a&&c.selected.length&&f.indexOf(a)>-1){e=a}}d.getNavigationModel().setPosition(e)}},doTypeAhead:function(b){var a=this;if(!a.typeAheadTask){a.typeAheadTask=new Ext.util.DelayedTask(a.onTypeAhead,a)}if(b.query.length>b.lastQuery.length||!Ext.String.startsWith(b.lastQuery,b.query)){a.typeAheadTask.delay(a.typeAheadDelay)}},onTriggerClick:function(d,e,b){var a=this,c;if(!a.readOnly&&!a.disabled){if(a.isExpanded){a.collapse()}else {if(b&&b.type==='keydown'&&b.altKey){c=a.autoSelect;a.autoSelect=!1;a.expand();a.autoSelect=c}else {if(a.triggerAction==='all'){a.doQuery(a.allQuery,!0)}else if(a.triggerAction==='last'){a.doQuery(a.lastQuery,!0)}else {a.doQuery(a.getRawValue(),!1,!0)}}}}},onFieldMutation:function(b){var a=this,c=b.getKey(),d=c===b.BACKSPACE||c===b.DELETE,e=a.inputEl.dom.value,f=e.length;if(!a.readOnly&&(e!==a.lastMutatedValue||d)&&c!==b.TAB){a.lastMutatedValue=e;a.refreshEmptyText();if(f&&(b.type!=='keyup'||(!b.isSpecialKey()||d))){a.doQueryTask.delay(a.queryDelay)}else {if(!f&&(!c||d)){++a.suspendCheckChange;if(!a.multiSelect){a.value=null;a.displayTplData=undefined}if(a.clearValueOnEmpty){a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.removeAll();a.valueCollection.endUpdate()}a.collapse();if(a.queryFilter){a.clearLocalFilter()}a.lastQuery=null;--a.suspendCheckChange}Ext.form.field.Picker.prototype.onFieldMutation.call(this,b)}}},doDestroy:function(){var a=this;a.doQueryTask.cancel();if(a.typeAheadTask){a.typeAheadTask.cancel();a.typeAheadTask=null}a.bindStore(null);Ext.destroy(a.altArrowKeyNav,a.valueCollection);Ext.form.field.Picker.prototype.doDestroy.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 a=this,b,c=Ext.apply({xtype:'boundlist',id:a.id+'-picker',pickerField:a,selectionModel:a.pickerSelectionModel,floating:!0,hidden:!0,store:a.getPickerStore(),displayField:a.displayField,preserveScrollOnRefresh:!0,pageSize:a.pageSize,tpl:a.tpl,ariaSelectable:a.ariaSelectable},a.listConfig,a.defaultListConfig);b=a.picker=Ext.widget(c);if(a.pageSize){b.pagingToolbar.on('beforechange',a.onPageChange,a)}if(!b.initialConfig.maxHeight){b.on({beforeshow:a.onBeforePickerShow,scope:a})}b.getSelectionModel().on({beforeselect:a.onBeforeSelect,beforedeselect:a.onBeforeDeselect,focuschange:a.onFocusChange,scope:a});b.getNavigationModel().navigateOnSpace=!1;return b},getPickerStore:function(){return this.store},onBeforePickerShow:function(d){var b=this,a=b.getPosition()[1]-Ext.getBody().getScroll().top,c=Ext.Element.getViewportHeight()-a-b.getHeight();d.maxHeight=Math.max(a,c)-5},onBeforeSelect:function(c,b,a){return this.fireEvent('beforeselect',this,b,a)},onBeforeDeselect:function(c,b,a){return this.fireEvent('beforedeselect',this,b,a)},onFocusChange:function(f,e,b){var d=this.picker,c=this.inputEl,a;if(b){a=d.getNodeByRecord(b);if(!a.id){}if(a){if(!a.id){a.id=Ext.id()}c.dom.setAttribute('aria-activedescendant',a.id)}else {c.dom.removeAttribute('aria-activedescendant')}}},getSelection:function(){var a=this.getPicker().getSelectionModel(),b=a.getSelection();return b.length?a.getLastSelected():null},updateSelection:function(c){var a=this,b;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;b=a.getPicker().getSelectionModel();if(c){b.select(c);a.hasHadSelection=!0}else {b.deselectAll()}a.ignoreNextSelection=!1}},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},onValueCollectionBeginUpdate:Ext.emptyFn,onValueCollectionEndUpdate:function(){var a=this,e=a.store,b=a.valueCollection.getRange(),c=b[0],d=b.length;a.updateBindSelection(a.pickerSelectionModel,b);if(a.isSelectionUpdating()){return}Ext.suspendLayouts();a.lastSelection=b;if(d){a.lastSelectedRecords=b}a.updateValue();if(d&&((!a.multiSelect&&e.contains(c))||a.collapseOnSelect||!e.getCount())){a.updatingValue=!0;a.collapse();a.updatingValue=!1}Ext.resumeLayouts(!0);if(!a.suspendCheckChange){if(!a.multiSelect){b=c}a.fireEvent('select',a,b)}},isSelectionUpdating:function(){var a=this.pickerSelectionModel;return a.deselectingDuringSelect||a.refreshing},onExpand:function(){var b=this,d=b.getPicker(),c=d.getNavigationModel(),a;if(c){c.enable()}b.doAutoSelect();a=d.highlightedItem;if(a){if(!a.id){a.id=Ext.id()}b.inputEl.dom.setAttribute('aria-activedescendant',a.id)}},onCollapse:function(){var a=this,b=a.getPicker().getNavigationModel();if(b){b.disable()}if(a.updatingValue){a.doQueryTask.cancel()}a.inputEl.dom.removeAttribute('aria-activedescendant')},select:function(b,e){var a=this,d=a.picker,c;if(b&&b.isModel&&e===!0&&d){c=!d.getSelectionModel().isSelected(b)}if(!c){a.suspendEvent('select')}a.setValue(b);a.resumeEvent('select')},findRecord:function(c,d){var b=this.store,a=b.findExact(c,d);return a!==-1?b.getAt(a):!1},getSelectedRecord:function(){return this.findRecordByValue(this.value)||null},findRecordByValue:function(c){var a=this.store.byValue.get(c),b=!1;if(a){b=a[0]||a}return b},findRecordByDisplay:function(c){var a=this.store.byText.get(c),b=!1;if(a){b=a[0]||a}return b},addValue:function(a){if(a!=null){return this.doSetValue(a,!0)}},setValue:function(b){var a=this,d,c;if(a.hasFocus){d=a.getBind();c=d&&d.value;if(c&&c.syncing){if((Ext.isEmpty(b)&&Ext.isEmpty(a.value))||b===a.value){return a}else if(Ext.isArray(b)&&Ext.isArray(a.value)&&Ext.Array.equals(b,a.value)){return a}}}else {a.lastSelectedRecords=null}if(b!=null){a.doSetValue(b)}else {a.suspendEvent('select');a.valueCollection.beginUpdate();a.pickerSelectionModel.deselectAll();a.valueCollection.endUpdate();a.resumeEvent('select')}return a},setRawValue:function(a){Ext.form.field.Picker.prototype.setRawValue.call(this,a);this.lastMutatedValue=a},doSetValue:function(c,t){var a=this,i=a.getStore(),y=i.getModel(),g=[],x=[],v=a.autoLoadOnValue,q=i.getCount()>0||i.isLoaded(),p=i.hasPendingLoad(),s=v&&!q&&!p,w=a.forceSelection,r=a.pickerSelectionModel,j=a.displayField,d=a.valueField,n=j===d,m=i.isEmptyStore,o=a.lastSelection,e,l,b,h,k,u,f;if(p||s||!q||m){if(!c.isModel){if(t){a.value=Ext.Array.from(a.value).concat(c)}else {a.value=c}a.setHiddenValue(a.value);a.setRawValue(n?c:'');if(n&&!Ext.isEmpty(c)&&a.inputEl&&a.emptyText){a.inputEl.removeCls(a.emptyUICls)}}if(s&&!m){i.load()}if(!c.isModel||m){return a}}c=t?Ext.Array.from(a.value).concat(c):Ext.Array.from(c);for(e=0,l=c.length;e<l;e++){b=f=c[e];if(!b||!b.isModel){b=a.findRecordByValue(u=b);if(!b){b=a.valueCollection.find(d,u)}}if(!b){if(!w){if(!b&&f){h={};if(Ext.isObject(f)){h[j]=f[j];h[d]=f[d]}else {h[j]=f;if(d&&j!==d){h[d]=f}}b=new y(h)}}else if(a.valueNotFoundRecord){b=a.valueNotFoundRecord}}if(b){g.push(b);x.push(b.get(d))}}if(o){l=o.length;if(l===g.length){for(e=0;!k&&e<l;e++){if(Ext.Array.indexOf(a.lastSelection,g[e])===-1){k=!0}}}else {k=!0}}else {k=g.length}if(k){a.suspendEvent('select');a.valueCollection.beginUpdate();if(g.length){r.select(g,!1)}else {r.deselectAll()}a.valueCollection.endUpdate();a.resumeEvent('select')}else {a.updateValue()}return a},updateValue:function(){var a=this,b=a.valueCollection.getRange(),i=b.length,c=[],f=a.displayTplData||(a.displayTplData=[]),h=a.inputEl,e,d,g;f.length=0;for(e=0;e<i;e++){d=b[e];f.push(a.getRecordDisplayData(d));if(d!==a.valueNotFoundRecord){c.push(d.get(a.valueField))}}a.setHiddenValue(c);a.value=a.multiSelect?c:c[0];if(!Ext.isDefined(a.value)){a.value=undefined}a.displayTplData=f;g=a.getDisplayValue();a.setRawValue(g);a.refreshEmptyText();a.checkChange();if(!a.lastSelectedRecords&&b.length){a.lastSelectedRecords=b}if(h&&a.typeAhead&&a.hasFocus){a.selectText(g.length)}},setHiddenValue:function(f){var h=this,i=h.hiddenName,e,d,b,g,c,a;if(!h.hiddenDataEl||!i){return}f=Ext.Array.from(f);d=h.hiddenDataEl.dom;b=d.childNodes;g=b[0];c=f.length;a=b.length;if(!g&&c>0){h.hiddenDataEl.setHtml(Ext.DomHelper.markup({tag:'input',type:'hidden',name:i}));a=1;g=d.firstChild}while(a>c){d.removeChild(b[0]);--a}while(a<c){d.appendChild(g.cloneNode(!0));++a}for(e=0;e<c;e++){b[e].value=f[e]}},getDisplayValue:function(b){var a;b=b||this.displayTplData;a=this.getDisplayTpl().apply(b);a=(a==null)?'':String(a);return a.replace(this.newlineRe,'')},getRecordDisplayData:function(a){return a.data},getValue:function(){var a=this,e=a.getStore(),d=a.picker,c=a.getRawValue(),b=a.value;if(!e.isEmptyStore&&a.getDisplayValue()!==c){a.displayTplData=undefined;if(d){a.valueCollection.suspendEvents();d.getSelectionModel().deselectAll();a.valueCollection.resumeEvents();a.lastSelection=null}if(e.isLoaded()&&(a.multiSelect||a.forceSelection)){b=a.value=undefined}else {b=a.value=c}}a.value=b==null?null:b;return a.value},getSubmitValue:function(){var a=this.getValue();if(Ext.isEmpty(a)){a=''}return a},isEqual:function(b,c){var e=Ext.Array.from,a,d;b=e(b);c=e(c);d=b.length;if(d!==c.length){return !1}for(a=0;a<d;a++){if(c[a]!==b[a]){return !1}}return !0},clearValue:function(){this.setValue(null)}},0,["combo","combobox"],["component","box","field","textfield","pickerfield","combobox","combo"],{"component":!0,"box":!0,"field":!0,"textfield":!0,"pickerfield":!0,"combobox":!0,"combo":!0},["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:!0,focusable:!0,childEls:['bodyEl','prevEl','nextEl','monthEl','yearEl','buttons'],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 id="{id}-buttons" data-ref="buttons" 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:!0,footerButtonUI:'default',measureWidth:35,measureMaxHeight:20,smallCls:'x-monthpicker-small',totalYears:10,yearOffset:5,monthOffset:6,alignOnScroll:!1,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({ui:a.footerButtonUI,text:a.okText,handler:a.onOkClick,scope:a});a.cancelBtn=new Ext.button.Button({ui:a.footerButtonUI,text:a.cancelText,handler:a.onCancelClick,scope:a})}Ext.Component.prototype.initComponent.call(this)},beforeRender:function(){var a=this,b=0,f=[],c=Ext.Date.getShortMonthName,d=a.monthOffset,e=a.monthMargin,g='';if(a.padding&&!a.width){a.cacheWidth()}Ext.Component.prototype.beforeRender.call(this);for(;b<d;++b){f.push(c(b),c(b+d))}if(Ext.isDefined(e)){g='margin: 0 '+e+'px;'}Ext.apply(a.renderData,{months:f,years:a.getYears(),showButtons:a.showButtons,monthStyle:g})},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 a=this,b=a.bodyEl;Ext.Component.prototype.afterRender.call(this);if(a.up('[floating=true]')){a.el.on('mousedown',a.onElClick,a,{translate:!1})}b.on({scope:a,click:'onBodyClick',dblclick:'onBodyClick'});a.years=b.select('.'+a.baseCls+'-year a');a.months=b.select('.'+a.baseCls+'-month a');a.backRepeater=new Ext.util.ClickRepeater(a.prevEl,{handler:Ext.Function.bind(a.adjustYear,a,[-a.totalYears])});a.prevEl.addClsOnOver(a.baseCls+'-yearnav-prev-over');a.nextRepeater=new Ext.util.ClickRepeater(a.nextEl,{handler:Ext.Function.bind(a.adjustYear,a,[a.totalYears])});a.nextEl.addClsOnOver(a.baseCls+'-yearnav-next-over');a.updateBody();if(!Ext.isDefined(a.monthMargin)){Ext.picker.Month.prototype.monthMargin=a.calculateMonthMargin()}},calculateMonthMargin:function(){var b=this,c=b.months,d=c.first(),a=d.getMargin('l');while(a&&b.getLargest()>b.measureMaxHeight){--a;c.setStyle('margin','0 '+a+'px')}return a},getLargest:function(b){var a=0;this.months.each(function(d){var c=d.getHeight();if(c>a){a=c}});return a},setValue:function(b){var a=this,d=a.activeYear,c;if(!b){a.value=[null,null]}else if(Ext.isDate(b)){a.value=[b.getMonth(),b.getFullYear()]}else {a.value=[b[0],b[1]]}if(a.rendered){c=a.value[1];if(c!==null){if((c<d||c>d+a.yearOffset)){a.activeYear=c-a.yearOffset+1}}a.updateBody()}return a},getValue:function(){return this.value},hasSelection:function(){var a=this.value;return a[0]!==null&&a[1]!==null},getYears:function(){var e=this,b=e.yearOffset,c=e.activeYear,f=c+b,a=c,d=[];for(;a<f;++a){d.push(a,a+b)}return d},updateBody:function(){var a=this,j=a.years,i=a.months,l=a.getYears(),d=a.selectedCls,m=a.getYear(null),b=a.value[0],h=a.monthOffset,f,e,c,k,g;if(a.rendered){j.removeCls(d);i.removeCls(d);e=j.elements;k=e.length;for(c=0;c<k;c++){g=Ext.fly(e[c]);f=l[c];g.dom.innerHTML=f;if(f===m){g.addCls(d)}}if(b!==null){if(b<h){b=b*2}else {b=(b-h)*2+1}i.item(b).addCls(d)}}},getYear:function(c,a){var b=this.value[1];a=a||0;return b===null?c:b+a},onElClick:function(a){a.stopEvent()},onBodyClick:function(a,d){var b=this,c=a.type==='dblclick';if(a.getTarget('.'+b.baseCls+'-month')){a.stopEvent();b.onMonthClick(d,c)}else if(a.getTarget('.'+b.baseCls+'-year')){a.stopEvent();b.onYearClick(d,c)}},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,b){var a=this;a.value[0]=a.resolveOffset(a.months.indexOf(c),a.monthOffset);a.updateBody();a.fireEvent('month'+(b?'dbl':'')+'click',a,a.value);a.fireEvent('select',a,a.value)},onYearClick:function(c,b){var a=this;a.value[1]=a.activeYear+a.resolveOffset(a.years.indexOf(c),a.yearOffset);a.updateBody();a.fireEvent('year'+(b?'dbl':'')+'click',a,a.value);a.fireEvent('select',a,a.value)},resolveOffset:function(a,b){if(a%2===0){return (a/2)}else {return b+Math.floor(a/2)}},doDestroy:function(){Ext.destroy(this.backRepeater,this.nextRepeater,this.okBtn,this.cancelBtn);Ext.Component.prototype.doDestroy.call(this)},privates:{finishRenderChildren:function(){var a=this;Ext.Component.prototype.finishRenderChildren.apply(this,arguments);if(this.showButtons){a.okBtn.finishRender();a.cancelBtn.finishRender()}}}},0,["monthpicker"],["component","box","monthpicker"],{"component":!0,"box":!0,"monthpicker":!0},["widget.monthpicker"],0,[Ext.picker,'Month',Ext,'MonthPicker'],0));(Ext.cmd.derive('Ext.picker.Date',Ext.Component,{alternateClassName:'Ext.DatePicker',todayText:'Today',ariaTitle:'Date Picker: {0}',ariaTitleDateFormat:'F d',todayTip:'{0} (Spacebar)',minText:'This date is before the minimum date',ariaMinText:"This date is before the minimum date",maxText:'This date is after the maximum date',ariaMaxText:"This date is after the maximum date",disabledDaysText:'Disabled',ariaDisabledDaysText:"This day of week is disabled",disabledDatesText:'Disabled',ariaDisabledDatesText:"This date is disabled",nextText:'Next Month (Control+Right)',prevText:'Previous Month (Control+Left)',monthYearText:'Choose a month (Control+Up/Down to move years)',monthYearFormat:'F Y',showToday:!0,disableAnim:!1,baseCls:'x-datepicker',longDayFormat:'F d, Y',footerButtonUI:'default',isDatePicker:!0,alignOnScroll:!1,ariaRole:'region',focusable:!0,childEls:['innerEl','eventEl','prevEl','nextEl','middleBtnEl','footerEl'],border:!0,renderTpl:['<div id="{id}-innerEl" data-ref="innerEl" role="presentation">','<div class="{baseCls}-header">','<div id="{id}-prevEl" data-ref="prevEl" class="{baseCls}-prev {baseCls}-arrow" role="presentation" 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="presentation" title="{nextText}"></div>','</div>','<table role="grid" id="{id}-eventEl" data-ref="eventEl" class="{baseCls}-inner" cellspacing="0" tabindex="0" aria-readonly="true">','<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 id="{id}-todayText" class="x-hidden-clip">{todayText}.</div>','<div id="{id}-ariaMinText" class="x-hidden-clip">{ariaMinText}.</div>','<div id="{id}-ariaMaxText" class="x-hidden-clip">{ariaMaxText}.</div>','<div id="{id}-ariaDisabledDaysText" class="x-hidden-clip">{ariaDisabledDaysText}.</div>','<div id="{id}-ariaDisabledDatesText" class="x-hidden-clip">{ariaDisabledDatesText}.</div>','</div>',{firstInitial:function(a){return Ext.picker.Date.prototype.getDayInitial(a)},isEndOfWeek:function(a){a--;var b=a%7===0&&a!==0;return b?'</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)}}],initHour:12,numDays:42,initComponent:function(){var a=this,b=Ext.Date.clearTime;a.selectedCls=a.baseCls+'-selected';a.disabledCellCls=a.baseCls+'-disabled';a.prevCls=a.baseCls+'-prevday';a.activeCls=a.baseCls+'-active';a.cellCls=a.baseCls+'-cell';a.nextCls=a.baseCls+'-prevday';a.todayCls=a.baseCls+'-today';a.defaultValue=Ext.isDate(a.defaultValue)?a.defaultValue:new Date();if(!a.format){a.format=Ext.Date.defaultFormat}if(!a.dayNames){a.dayNames=Ext.Date.dayNames}if(a.startDay==null){a.startDay=Ext.Date.firstDayOfWeek}a.dayNames=a.dayNames.slice(a.startDay).concat(a.dayNames.slice(0,a.startDay));Ext.Component.prototype.initComponent.call(this);a.value=a.value?b(a.value,!0):b(a.defaultValue);a.initDisabledDays()},getRefOwner:function(){return this.pickerField||Ext.Component.prototype.getRefOwner.call(this)},getRefItems:function(){var a=[],b=this.monthBtn,c=this.todayBtn;if(b){a.push(b)}if(c){a.push(c)}return a},beforeRender:function(){var a=this,b=Ext.String.htmlEncode,d=new Array(a.numDays),c=Ext.Date.format(new Date(),a.format);if(a.padding&&!a.width){a.cacheWidth()}a.monthBtn=new Ext.button.Split({ownerCt:a,ownerLayout:a.getComponentLayout(),text:'',tooltip:a.monthYearText,tabIndex:-1,ariaRole:'presentation',listeners:{click:a.doShowMonthPicker,arrowclick:a.doShowMonthPicker,scope:a}});if(a.showToday){a.todayBtn=new Ext.button.Button({ui:a.footerButtonUI,ownerCt:a,ownerLayout:a.getComponentLayout(),text:Ext.String.format(a.todayText,c),tooltip:Ext.String.format(a.todayTip,c),tooltipType:'title',tabIndex:-1,ariaRole:'presentation',handler:a.selectToday,scope:a})}Ext.Component.prototype.beforeRender.call(this);Ext.applyIf(a,{renderData:{}});Ext.apply(a.renderData,{dayNames:a.dayNames,showToday:a.showToday,prevText:b(a.prevText),nextText:b(a.nextText),todayText:b(a.todayText),ariaMinText:b(a.ariaMinText),ariaMaxText:b(a.ariaMaxText),ariaDisabledDaysText:b(a.ariaDisabledDaysText),ariaDisabledDatesText:b(a.ariaDisabledDatesText),days:d});a.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(c,d){var a=this,b='div.'+a.baseCls+'-date';Ext.Component.prototype.onRender.apply(this,arguments);a.cells=a.eventEl.select('tbody td');a.textNodes=a.eventEl.query(b);a.eventEl.set({'aria-labelledby':a.monthBtn.id});a.mon(a.eventEl,{scope:a,mousewheel:a.handleMouseWheel,click:{fn:a.handleDateClick,delegate:b}})},initEvents:function(){var a=this;Ext.Component.prototype.initEvents.call(this);if(a.pickerField){a.el.on('mousedown',a.onMouseDown,a)}a.monthBtn.el.on('mousedown',a.onMouseDown,a);a.prevRepeater=new Ext.util.ClickRepeater({el:a.prevEl,handler:a.showPrevMonth,scope:a,mousedownStopEvent:!0});a.nextRepeater=new Ext.util.ClickRepeater({el:a.nextEl,handler:a.showNextMonth,scope:a,mousedownStopEvent:!0});a.keyNav=new Ext.util.KeyNav(Ext.apply({target:a.eventEl,scope:a,left:a.onLeftKey,right:a.onRightKey,up:a.onUpKey,down:a.onDownKey,pageUp:a.onPageUpKey,pageDown:a.onPageDownKey,home:a.onHomeKey,end:a.onEndKey,enter:a.onEnterKey,space:a.onSpaceKey,tab:function(a){this.handleTabKey(a);return !0}},a.keyNavConfig));if(a.disabled){a.syncDisabled(!0,!0)}if(a.minDate&&a.minDate>a.value){a.value=a.minDate}else if(a.maxDate&&a.maxDate<a.value){a.value=a.maxDate}a.update(a.value)},onMouseDown:function(a){a.preventDefault()},handleTabKey:function(d){var a=this,b=a.getSelectedDate(a.activeDate),c=a.handler;if(!a.disabled&&b.dateValue&&!Ext.fly(b.parentNode).hasCls(a.disabledCellCls)){a.setValue(new Date(b.dateValue));a.fireEvent('select',a,a.value);if(c){Ext.callback(c,a.scope,[a,a.value],null,a,a)}if(a.pickerField&&a.pickerField.isEditorComponent){d.preventDefault()}a.onSelect()}else {a.fireEventArgs('tabout',[a])}},getSelectedDate:function(g){var e=this,i=g.getTime(),d=e.cells,h=e.selectedCls,c=d.elements,f=c.length,b,a;d.removeCls(h);for(a=0;a<f;a++){b=c[a].firstChild;if(b.dateValue===i){return b}}return null},initDisabledDays:function(){var d=this,c=d.disabledDates,e='(?:',g,a,f,b;if(!d.disabledDatesRE&&c){g=c.length-1;f=c.length;for(a=0;a<f;a++){b=c[a];e+=Ext.isDate(b)?'^'+Ext.String.escapeRegex(Ext.Date.dateFormat(b,d.format))+'$':b;if(a!==g){e+='|'}}d.disabledDatesRE=new RegExp(e+')')}},setDisabledDates:function(b){var a=this;if(Ext.isArray(b)){a.disabledDates=b;a.disabledDatesRE=null}else {a.disabledDatesRE=b}a.initDisabledDays();a.update(a.value,!0);return a},setDisabledDays:function(a){this.disabledDays=a;return this.update(this.value,!0)},setMinDate:function(a){this.minDate=a;return this.update(this.value,!0)},setMaxDate:function(a){this.maxDate=a;return this.update(this.value,!0)},setValue:function(a){this.value=Ext.Date.clearTime(a||this.defaultValue,!0);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(!1,!0);a.update(a.activeDate)},onShow:function(){var a=this;Ext.Component.prototype.onShow.call(this);a.syncDisabled(!1);if(a.pickerField){a.startValue=a.pickerField.getValue()}},onHide:function(){Ext.Component.prototype.onHide.call(this);this.syncDisabled(!0)},onDisable:function(){Ext.Component.prototype.onDisable.call(this);this.syncDisabled(!0,!0)},getActive:function(){return this.activeDate||this.value},runAnimation:function(c){var a=this.monthPicker,b={duration:200,callback:function(){a.setVisible(!c)}};if(c){a.el.slideOut('t',b)}else {a.el.slideIn('t',b)}},hideMonthPicker:function(c){var a=this,b=a.monthPicker;if(b&&b.isVisible()){a.focus();if(a.shouldAnimate(c)){a.runAnimation(!0)}else {b.hide()}}return a},doShowMonthPicker:function(){this.showMonthPicker()},doHideMonthPicker:function(){this.hideMonthPicker()},showMonthPicker:function(d){var a=this,c=a.el,b;if(a.rendered&&!a.disabled){b=a.createMonthPicker();if(!b.isVisible()){b.setValue(a.getActive());b.setSize(c.getSize());b.floatParent=null;b.setPosition(-c.getBorderWidth('l'),-c.getBorderWidth('t'));if(a.shouldAnimate(d)){a.runAnimation(!1)}else {b.show()}}}return a},shouldAnimate:function(a){return Ext.isDefined(a)?a:!this.disableAnim},createMonthPicker:function(){var a=this,b=a.monthPicker;if(!b){a.monthPicker=b=new Ext.picker.Month({renderTo:a.el,ownerCmp:a,floating:!0,padding:a.padding,shadow:!1,small:a.showToday===!1,footerButtonUI:a.footerButtonUI,listeners:{scope:a,cancelclick:a.onCancelClick,okclick:a.onOkClick,yeardblclick:a.onOkClick,monthdblclick:a.onOkClick}});if(!a.disableAnim){b.el.setStyle('display','none')}b.hide();a.on('beforehide',a.doHideMonthPicker,a)}return b},onLeftKey:function(a){if(a.ctrlKey){this.showPrevMonth()}else {this.update(Ext.Date.add(this.activeDate,Ext.Date.DAY,-1))}a.preventDefault()},onRightKey:function(a){if(a.ctrlKey){this.showNextMonth()}else {this.update(Ext.Date.add(this.activeDate,Ext.Date.DAY,1))}a.preventDefault()},onUpKey:function(a){if(a.ctrlKey){this.showNextYear()}else {this.update(Ext.Date.add(this.activeDate,Ext.Date.DAY,-7))}a.preventDefault()},onDownKey:function(a){if(a.ctrlKey){this.showPrevYear()}else {this.update(Ext.Date.add(this.activeDate,Ext.Date.DAY,7))}a.preventDefault()},onPageUpKey:function(a){if(a.ctrlKey){this.showPrevYear()}else {this.showPrevMonth()}a.preventDefault()},onPageDownKey:function(a){if(a.ctrlKey){this.showNextYear()}else {this.showNextMonth()}a.preventDefault()},onHomeKey:function(a){this.update(Ext.Date.getFirstDateOfMonth(this.activeDate));a.preventDefault()},onEndKey:function(a){this.update(Ext.Date.getLastDateOfMonth(this.activeDate));a.preventDefault()},onEnterKey:function(a){this.handleDateClick(a,this.activeCell.firstChild)},onSpaceKey:function(f){var a=this,b=a.pickerField,d,e,c;a.setValue(new Date(a.activeCell.firstChild.dateValue));if(b){d=a.startValue;e=a.value;c=b.getValue();if(c&&d&&c.getTime()===e.getTime()){b.setValue(d)}else {b.setValue(e)}}f.preventDefault()},onOkClick:function(f,d){var c=this,a=d[0],e=d[1],b=new Date(e,a,c.getActive().getDate());if(b.getMonth()!==a){b=Ext.Date.getLastDateOfMonth(new Date(e,a,1))}c.setValue(b);c.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(b){var a;b.stopEvent();if(!this.disabled){a=b.getWheelDelta();if(a>0){this.showPrevMonth()}else if(a<0){this.showNextMonth()}}},handleDateClick:function(d,b){var a=this,c=a.handler;d.stopEvent();if(!a.disabled&&b.dateValue&&!Ext.fly(b.parentNode).hasCls(a.disabledCellCls)){a.setValue(new Date(b.dateValue));a.fireEvent('select',a,a.value);if(c){Ext.callback(c,a.scope,[a,a.value],null,a,a)}a.onSelect()}},onSelect:function(){if(this.hideOnSelect){this.hide()}},selectToday:function(){var a=this,c=a.todayBtn,b=a.handler;if(c&&!c.disabled){a.setValue(Ext.Date.clearTime(new Date()));a.fireEvent('select',a,a.value);if(b){Ext.callback(b,a.scope,[a,a.value],null,a,a)}a.onSelect()}return a},selectedUpdate:function(g){var b=this,h=g.getTime(),d=b.cells,e=b.selectedCls,c,f=d.getCount(),a;b.eventEl.dom.setAttribute('aria-busy','true');a=b.activeCell;if(a){Ext.fly(a).removeCls(e);a.setAttribute('aria-selected',!1)}for(c=0;c<f;c++){a=d.item(c);if(b.textNodes[c].dateValue===h){b.activeCell=a.dom;b.eventEl.dom.setAttribute('aria-activedescendant',a.dom.id);a.dom.setAttribute('aria-selected',!0);a.addCls(e);b.fireEvent('highlightitem',b,a);break}}b.eventEl.dom.removeAttribute('aria-busy')},fullUpdate:function(h){var a=this,D=a.cells.elements,A=a.textNodes,i=a.disabledCellCls,b=Ext.Date,d=0,z=0,B=+b.clearTime(h,!0),E=+b.clearTime(new Date()),v=a.minDate?b.clearTime(a.minDate,!0):Number.NEGATIVE_INFINITY,u=a.maxDate?b.clearTime(a.maxDate,!0):Number.POSITIVE_INFINITY,j=a.disabledDatesRE,C=a.disabledDatesText,l=a.disabledDays?a.disabledDays.join(''):!1,y=a.disabledDaysText,k=a.format,t=b.getDaysInMonth(h),x=b.getFirstDateOfMonth(h),e=x.getDay()-a.startDay,o=b.add(h,b.MONTH,-1),w=a.ariaTitleDateFormat,r,c,p,g,s,m,n,q,f;if(e<0){e+=7}t+=e;r=b.getDaysInMonth(o)-e;c=new Date(o.getFullYear(),o.getMonth(),r,a.initHour);if(a.showToday){g=b.clearTime(new Date());p=(g<v||g>u||(j&&k&&j.test(b.dateFormat(g,k)))||(l&&l.indexOf(g.getDay())!==-1));a.todayDisabled=p;if(!a.disabled){a.todayBtn.setDisabled(p)}}s=function(m,g){var d=D[m],e=[];if(!d.hasAttribute('id')){d.setAttribute('id',a.id+'-cell-'+m)}f=+b.clearTime(c,!0);d.firstChild.dateValue=f;d.setAttribute('aria-label',b.format(c,w));d.removeAttribute('aria-describedby');d.removeAttribute('data-qtip');if(f===E){g+=' '+a.todayCls;e.push(a.id+'-todayText')}if(f===B){a.activeCell=d;a.eventEl.dom.setAttribute('aria-activedescendant',d.id);d.setAttribute('aria-selected',!0);g+=' '+a.selectedCls;a.fireEvent('highlightitem',a,d)}else {d.setAttribute('aria-selected',!1)}if(f<v){g+=' '+i;e.push(a.id+'-ariaMinText');d.setAttribute('data-qtip',a.minText)}else if(f>u){g+=' '+i;e.push(a.id+'-ariaMaxText');d.setAttribute('data-qtip',a.maxText)}else if(l&&l.indexOf(c.getDay())!==-1){d.setAttribute('data-qtip',y);e.push(a.id+'-ariaDisabledDaysText');g+=' '+i}else if(j&&k){q=b.dateFormat(c,k);if(j.test(q)){d.setAttribute('data-qtip',C.replace('%0',q));e.push(a.id+'-ariaDisabledDatesText');g+=' '+i}}if(e.length){d.setAttribute('aria-describedby',e.join(' '))}d.className=g+' '+a.cellCls};a.eventEl.dom.setAttribute('aria-busy','true');for(;d<a.numDays;++d){if(d<e){m=(++r);n=a.prevCls}else if(d>=t){m=(++z);n=a.nextCls}else {m=d-e+1;n=a.activeCls}A[d].innerHTML=m;c.setDate(c.getDate()+1);s(d,n)}a.eventEl.dom.removeAttribute('aria-busy');a.monthBtn.setText(Ext.Date.format(h,a.monthYearFormat))},update:function(c,d){var a=this,b=a.activeDate;if(a.rendered){a.activeDate=c;if(!d&&b&&a.el&&b.getMonth()===c.getMonth()&&b.getFullYear()===c.getFullYear()){a.selectedUpdate(c,b)}else {a.fullUpdate(c,b)}}return a},doDestroy:function(){var a=this;if(a.rendered){Ext.destroy(a.keyNav,a.monthPicker,a.monthBtn,a.nextRepeater,a.prevRepeater,a.todayBtn,a.todayElSpan)}Ext.Component.prototype.doDestroy.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(b,e){var a=this,d=a.keyNav,c=a.todayBtn;if(d){d.setDisabled(b);a.prevRepeater.setDisabled(b);a.nextRepeater.setDisabled(b)}if(e&&c){c.setDisabled(a.todayDisabled||b)}}}},0,["datepicker"],["component","box","datepicker"],{"component":!0,"box":!0,"datepicker":!0},["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",ariaFormat:'M j 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",ariaDisabledDaysText:"This day of week is disabled",disabledDatesText:"Disabled",ariaDisabledDatesText:"This date cannot be selected",minText:"The date in this field must be equal to or after {0}",ariaMinText:"The date must be equal to or after {0}",maxText:"The date in this field must be equal to or before {0}",ariaMaxText:"The date must be equal to or before {0}",invalidText:"{0} is not a valid date - it must be in the format {1}",formatText:'Expected date format {0}.',triggerCls:'x-form-date-trigger',showToday:!0,useStrict:undefined,initTime:'12',initTimeFormat:'H',matchFieldWidth:!1,startDay:0,valuePublishEvent:['select','blur'],componentCls:'x-form-field-date',ariaRole:'combobox',rawDate:null,rawDateText:'',validateOnFocusLeave:!0,initComponent:function(){var a=this,d=Ext.isString,c,b;c=a.minValue;b=a.maxValue;if(d(c)){a.minValue=a.parseDate(c)}if(d(b)){a.maxValue=a.parseDate(b)}a.disabledDatesRE=null;a.initDisabledDays();Ext.form.field.Picker.prototype.initComponent.call(this)},getSubTplData:function(d){var b=this,c,a;c=Ext.form.field.Picker.prototype.getSubTplData.call(this,d);if(!b.ariaStaticRoles[b.ariaRole]){a=c.ariaElAttributes;if(a){a['aria-owns']=b.id+'-inputEl '+b.id+'-picker-eventEl';a['aria-autocomplete']='none'}}return c},initValue:function(){var a=this,b=a.value;if(Ext.isString(b)){a.value=a.rawToValue(b);a.rawDate=a.value;a.rawDateText=a.parseDate(a.value)}else {a.value=b||null;a.rawDate=a.value;a.rawDateText=a.value?a.parseDate(a.value):''}Ext.form.field.Picker.prototype.initValue.call(this)},initDisabledDays:function(){if(this.disabledDates){var c=this.disabledDates,f=c.length-1,d="(?:",a,e=c.length,b;for(a=0;a<e;a++){b=c[a];d+=Ext.isDate(b)?'^'+Ext.String.escapeRegex(b.dateFormat(this.format))+'$':b;if(a!==f){d+='|'}}this.disabledDatesRE=new RegExp(d+')')}},setDisabledDates:function(c){var a=this,b=a.picker;a.disabledDates=c;a.initDisabledDays();if(b){b.setDisabledDates(a.disabledDatesRE)}},setDisabledDays:function(a){var b=this.picker;this.disabledDays=a;if(b){b.setDisabledDays(a)}},setMinValue:function(c){var a=this,b=a.picker,d=(Ext.isString(c)?a.parseDate(c):c);a.minValue=d;if(b){b.minText=Ext.String.format(a.minText,a.formatDate(a.minValue));b.setMinDate(d)}},setMaxValue:function(c){var a=this,b=a.picker,d=(Ext.isString(c)?a.parseDate(c):c);a.maxValue=d;if(b){b.maxText=Ext.String.format(a.maxText,a.formatDate(a.maxValue));b.setMaxDate(d)}},getErrors:function(b){b=arguments.length>0?b:this.formatDate(this.processRawValue(this.getRawValue()));var a=this,e=Ext.String.format,l=Ext.Date.clearTime,c=Ext.form.field.Picker.prototype.getErrors.call(this,b),d=a.disabledDays,k=a.disabledDatesRE,g=a.minValue,f=a.maxValue,o=d?d.length:0,j=0,m,h,n,i;if(b===null||b.length<1){return c}m=b;b=a.parseDate(b);if(!b){c.push(e(a.invalidText,m,Ext.Date.unescapeFormat(a.format)));return c}i=b.getTime();if(g&&i<l(g).getTime()){c.push(e(a.minText,a.formatDate(g)))}if(f&&i>l(f).getTime()){c.push(e(a.maxText,a.formatDate(f)))}if(d){n=b.getDay();for(;j<o;j++){if(n===d[j]){c.push(a.disabledDaysText);break}}}h=a.formatDate(b);if(k&&k.test(h)){c.push(e(a.disabledDatesText,h))}return c},rawToValue:function(a){var b=this;if(a===b.rawDateText){return b.rawDate}return b.parseDate(a)||a||null},valueToRaw:function(a){return this.formatDate(this.parseDate(a))},setValue:function(c){var a=this,d=Ext.Date,b;a.lastValue=a.rawDateText;a.lastDate=a.rawDate;if(Ext.isDate(c)){b=a.rawDate=c;a.rawDateText=a.formatDate(c)}else {b=a.rawDate=a.rawToValue(c);a.rawDateText=a.formatDate(c);if(b===c){b=a.rawDate=null;a.rawDateText=''}}if(b&&!d.formatContainsHourInfo(a.format)){a.rawDate=d.clearTime(b,!0)}Ext.form.field.Picker.prototype.setValue.apply(this,arguments)},checkChange:function(){var a=this,b,c,d;if(!a.suspendCheckChange){b=a.getRawValue();c=a.lastValue;d=a.lastDate;if(!a.destroyed&&a.didValueChange(b,c)){a.rawDate=a.rawToValue(b);a.rawDateText=a.formatDate(b);a.lastValue=b;a.lastDate=a.rawDate;a.fireEvent('change',a,a.getValue(),d);a.onChange(b,c)}}},safeParse:function(g,c){var e=this,a=Ext.Date,d=null,f=e.useStrict,b;if(a.formatContainsHourInfo(c)){d=a.parse(g,c,f)}else {b=a.parse(g+' '+e.initTime,c+' '+e.initTimeFormat,f);if(b){d=a.clearTime(b)}}return d},getSubmitValue:function(){var b=this.submitFormat||this.format,a=this.rawDate;return a?Ext.Date.format(a,b):''},getValue:function(){return this.rawDate||null},setRawValue:function(a){var b=this;Ext.form.field.Picker.prototype.setRawValue.call(this,a);b.rawDate=Ext.isDate(a)?a:b.rawToValue(a);b.rawDateText=this.formatDate(a)},parseDate:function(a){if(!a||Ext.isDate(a)){return a}var b=this,d=b.safeParse(a,b.format),f=b.altFormats,c=b.altFormatsArray,e=0,g;if(!d&&f){c=c||f.split('|');g=c.length;for(;e<g&&!d;++e){d=b.safeParse(a,c[e])}}return d},formatDate:function(a,b){return Ext.isDate(a)?Ext.Date.dateFormat(a,b||this.format):a},createPicker:function(){var a=this,b=Ext.String.format;return new Ext.picker.Date({id:a.id+'-picker',pickerField:a,floating:!0,preventRefocus:!0,hidden:!0,minDate:a.minValue,maxDate:a.maxValue,disabledDatesRE:a.disabledDatesRE,disabledDatesText:a.disabledDatesText,ariaDisabledDatesText:a.ariaDisabledDatesText,disabledDays:a.disabledDays,disabledDaysText:a.disabledDaysText,ariaDisabledDaysText:a.ariaDisabledDaysText,format:a.format,showToday:a.showToday,startDay:a.startDay,minText:b(a.minText,a.formatDate(a.minValue)),ariaMinText:b(a.ariaMinText,a.formatDate(a.minValue,a.ariaFormat)),maxText:b(a.maxText,a.formatDate(a.maxValue)),ariaMaxText:b(a.ariaMaxText,a.formatDate(a.maxValue,a.ariaFormat)),listeners:{scope:a,select:a.onSelect,tabout:a.onTabOut},keyNavConfig:{esc:function(){a.inputEl.focus();a.collapse()}}})},createInitialDate:function(a){var c=this.minValue,b=this.maxValue;a=a||new Date();if(c&&c>a){a=c}else if(b&&b<a){a=b}return a},onSelect:function(c,b){var a=this;a.setValue(b);a.rawDate=b;a.fireEvent('select',a,b);a.onTabOut(c)},onTabOut:function(a){this.inputEl.focus();this.collapse()},onExpand:function(){var a=this.rawDate;this.picker.setValue(Ext.isDate(a)?a:this.createInitialDate())},onBlur:function(c){var a=this,b=a.rawToValue(a.getRawValue());if(b===''||Ext.isDate(b)){a.setValue(b)}Ext.form.field.Picker.prototype.onBlur.call(this,c)}},0,["datefield"],["component","box","field","textfield","pickerfield","datefield"],{"component":!0,"box":!0,"field":!0,"textfield":!0,"pickerfield":!0,"datefield":!0},["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'],fieldSubTpl:['<div id="{id}" data-ref="inputEl" role="textbox" aria-readonly="true"',' aria-labelledby="{cmpId}-labelEl" {inputAttrTpl}',' tabindex="<tpl if="tabIdx != null">{tabIdx}<tpl else>-1</tpl>"','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>',' class="{fieldCls} {fieldCls}-{ui}">{value}</div>',{compiled:!0,disableFormats:!0}],ariaRole:undefined,focusable:!1,skipLabelForAttribute:!0,readOnly:!0,fieldCls:'x-form-display-field',fieldBodyCls:'x-form-display-field-body',htmlEncode:!1,noWrap:!1,validateOnChange:!1,initEvents:Ext.emptyFn,submitValue:!1,getValue:function(){return this.value},valueToRaw:function(a){if(a||a===0||a===!1){return a}else {return ''}},isDirty:function(){return !1},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,c=this.getRawValue(),d=a.renderer,b;if(d){b=Ext.callback(d,a.scope,[c,a],0,a)}else {b=a.htmlEncode?Ext.util.Format.htmlEncode(c):c}return b},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":!0,"box":!0,"field":!0,"displayfield":!0},["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:!1,tabIndex:undefined,useTabGuards:Ext.isIE||Ext.isEdge,promptCalled:!1,autoEl:{tag:'div',unselectable:'on'},afterTpl:['<input id="{id}-fileInputEl" data-ref="fileInputEl" class="{childElCls} {inputCls}" ','type="file" size="1" name="{inputName}" unselectable="on" ','<tpl if="accept != null">accept="{accept}"</tpl>','<tpl if="tabIndex != null">tabindex="{tabIndex}"</tpl>','>'],keyMap:null,ariaEl:'fileInputEl',getAfterMarkup:function(a){return this.lookupTpl('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.tabIndex!=null?b.tabIndex:null;a.accept=b.accept||null;a.role=b.ariaRole;return a},afterRender:function(){var a=this,c,b;Ext.button.Button.prototype.afterRender.apply(this,arguments);c={scope:a,mousedown:a.handlePrompt,keydown:a.handlePrompt,change:a.fireChange,focus:a.onFileFocus,blur:a.onFileBlur,destroyable:!0};if(a.useTabGuards){b={tag:'span',role:'button','aria-hidden':'true','data-tabguard':'true',style:{height:0,width:0}};b.tabIndex=a.tabIndex!=null?a.tabIndex:0;a.beforeInputGuard=a.el.createChild(b,a.fileInputEl);a.afterInputGuard=a.el.createChild(b);a.afterInputGuard.insertAfter(a.fileInputEl);a.beforeInputGuard.on('focus',a.onInputGuardFocus,a);a.afterInputGuard.on('focus',a.onInputGuardFocus,a);c.keydown=a.onFileInputKeydown}a.fileInputElListeners=a.fileInputEl.on(c)},doDestroy:function(){var a=this;if(a.fileInputElListeners){a.fileInputElListeners.destroy()}if(a.beforeInputGuard){a.beforeInputGuard.destroy();a.beforeInputGuard=null}if(a.afterInputGuard){a.afterInputGuard.destroy();a.afterInputGuard=null}Ext.button.Button.prototype.doDestroy.call(this)},fireChange:function(a){this.fireEvent('change',this,a,this.fileInputEl.dom.value)},createFileInput:function(d){var a=this,b,c;b=a.fileInputEl=a.el.createChild({name:a.inputName||a.id,id:!d?a.id+'-fileInputEl':undefined,cls:a.inputCls+(a.getInherited().rtl?' x-rtl':''),tag:'input',type:'file',size:1,unselectable:'on'},a.afterInputGuard);b.dom.setAttribute('data-componentid',a.id);if(a.tabIndex!=null){a.setTabIndex(a.tabIndex)}if(a.accept){b.dom.setAttribute('accept',a.accept)}c={scope:a,change:a.fireChange,mousedown:a.handlePrompt,keydown:a.handlePrompt,focus:a.onFileFocus,blur:a.onFileBlur};if(a.useTabGuards){c.keydown=a.onFileInputKeydown}b.on(c)},handlePrompt:function(a){var b;if(a.type=='keydown'){b=a.getKey();this.promptCalled=((!Ext.isIE&&b===a.ENTER)||b===a.SPACE)?!0:!1}else {this.promptCalled=!0}},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=!1;b.preventDefault();return}if(this.hasFocus){this.onBlur(b)}if(a&&a.hasFocus){a.onBlur(b)}},onInputGuardFocus:function(a){this.fileInputEl.focus()},onFileInputKeydown:function(a){var c=a.getKey(),b;if(c===a.TAB){b=a.shiftKey?this.beforeInputGuard:this.afterInputGuard;if(b){b.suspendEvent('focus');b.focus();Ext.defer(function(){b.resumeEvent('focus')},1)}}else if(c===a.ENTER||c===a.SPACE){this.handlePrompt(a)}return !0},reset:function(b){var a=this;if(b){a.fileInputEl.destroy()}a.createFileInput(!b);if(b){a.ariaEl=a.fileInputEl}},restoreInput:function(a){var b=this;b.fileInputEl.destroy();a=Ext.get(a);if(b.useTabGuards){a.insertBefore(b.afterInputGuard)}else {b.el.appendChild(a)}b.fileInputEl=a},onDisable:function(){Ext.button.Button.prototype.onDisable.call(this);this.fileInputEl.dom.disabled=!0},onEnable:function(){Ext.button.Button.prototype.onEnable.call(this);this.fileInputEl.dom.disabled=!1},privates:{getFocusEl:function(){return this.fileInputEl},getFocusClsEl:function(){return this.el},setTabIndex:function(b){var a=this;if(!a.focusable){return}a.tabIndex=b;if(!a.rendered||a.destroying||a.destroyed){return}if(a.useTabGuards){a.fileInputEl.dom.setAttribute('tabIndex',-1);a.beforeInputGuard.dom.setAttribute('tabIndex',b);a.afterInputGuard.dom.setAttribute('tabIndex',b)}else {a.fileInputEl.dom.setAttribute('tabIndex',b)}}}},0,["filebutton"],["component","box","button","filebutton"],{"component":!0,"box":!0,"button":!0,"filebutton":!0},["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'],emptyText:undefined,needArrowKeys:!1,triggers:{filebutton:{type:'component',hideOnReadOnly:!1,preventMouseDown:!1}},buttonText:'Browse...',buttonOnly:!1,buttonMargin:3,clearOnSubmit:!0,extraFieldBodyCls:'x-form-file-wrap',inputCls:'x-form-text-file',readOnly:!0,editable:!1,submitValue:!1,triggerNoEditCls:'',childEls:['browseButtonWrap'],applyTriggers:function(c){var a=this,b=(c||{}).filebutton;if(b){b.component=Ext.apply({xtype:'filebutton',ownerCt:a,id:a.id+'-button',ui:a.ui,disabled:a.disabled,tabIndex:a.tabIndex,text:a.buttonText,style:a.buttonOnly?'':a.getButtonMarginProp()+a.buttonMargin+'px',accept:a.accept,inputName:a.getName(),listeners:{scope:a,change:a.onFileChange}},a.buttonConfig);return Ext.form.field.Text.prototype.applyTriggers.call(this,c)}},getSubTplData:function(b){var a=Ext.form.field.Text.prototype.getSubTplData.call(this,b);a.tabIdx=-1;return a},onRender:function(){var a=this,b,e,c,d;(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).apply(this,arguments);b=a.inputEl;b.dom.name='';b.on('focus',a.onInputFocus,a);b.on('mousedown',a.onInputMouseDown,a);d=a.getTrigger('filebutton');e=a.button=d.component;a.fileInputEl=e.fileInputEl;c=e.el;if(a.buttonOnly){a.inputWrap.setDisplayed(!1);a.shrinkWrap=3}d.el.setWidth(c.getWidth()+c.getMargin('lr'));if(Ext.isIE8){a.button.getEl().repaint()}},getTriggerMarkup:function(){return '<td id="'+this.id+'-browseButtonWrap" data-ref="browseButtonWrap" role="presentation"></td>'},onFileChange:function(b,c,a){this.duringFileSelect=!0;Ext.form.field.File.superclass.setValue.call(this,a);delete this.duringFileSelect},didValueChange:function(){return !!this.duringFileSelect},setEmptyText:Ext.emptyFn,setValue:Ext.emptyFn,reset:function(){var a=this,b=a.clearOnSubmit;if(a.rendered){a.button.reset(b);a.fileInputEl=a.button.fileInputEl;if(b){a.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}},doDestroy:function(){this.fileInputEl=this.button=null;Ext.form.field.Text.prototype.doDestroy.call(this)},getButtonMarginProp:function(){return this.getInherited().rtl?'margin-right:':'margin-left:'},onInputFocus:function(b){var a=this;if(a.selectOnFocus&&document.activeElement===a.inputEl.dom){a.inputEl.dom.select()}a.focus();if(Ext.isIE9m){a.fileInputEl.addCls('x-position-relative');a.fileInputEl.removeCls('x-position-relative')}},onInputMouseDown:function(a){a.preventDefault();this.focus()},privates:{getFocusEl:function(){return this.button},getFocusClsEl:Ext.privateFn}},0,["filefield","fileuploadfield"],["component","box","field","textfield","filefield","fileuploadfield"],{"component":!0,"box":!0,"field":!0,"textfield":!0,"filefield":!0,"fileuploadfield":!0},["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:!1,inputType:'hidden',isTextInput:!1,hideLabel:!0,hidden:!0,ariaRole:'presentation',initComponent:function(){this.formItemCls+='-hidden';Ext.form.field.Base.prototype.initComponent.call(this)},isEqual:function(a,b){return this.isEqualAsString(a,b)},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":!0,"box":!0,"field":!0,"hiddenfield":!0,"hidden":!0},["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",constrainPosition:!0,autoRender:!0,hidden:!0,baseCls:'x-tip',focusOnToFront:!1,maskOnDisable:!1,closeAction:'hide',alwaysFramed:!0,frameHeader:!1,initComponent:function(){var a=this;a.floating=Ext.apply({},{shadow:a.shadow},a.self.prototype.floating);Ext.panel.Panel.prototype.initComponent.apply(this,arguments);a.constrain=a.constrain||a.constrainPosition},showAt:function(b){var a=this;a.calledFromShowAt=!0;Ext.panel.Panel.prototype.showAt.apply(this,arguments);if(a.isVisible()){a.doAlignment(a.getRegion().alignTo({target:new Ext.util.Point(b[0],b[1]),inside:a.constrainPosition?Ext.getBody().getRegion().adjust(5,-5,-5,5):null,align:'tl-tl',overlap:!0}))}a.calledFromShowAt=0},doAlignment:function(b){var c=this,a=c.anchorEl,d=b.anchor;c.setPagePosition([b.x,b.y]);if(a){a.removeCls(c.anchorCls);if(d){c.anchorCls='x-tip-anchor-'+d.position;a.addCls(c.anchorCls);a.show();if(d.align&1){a.setTop(b.anchor.y-b.y);a.dom.style.left=''}else {a.setLeft(b.anchor.x-b.x);a.dom.style.top=''}}else {a.hide()}}},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":!0,"box":!0,"container":!0,"panel":!0,"tip":!0},["widget.tip"],0,[Ext.tip,'Tip',Ext,'Tip'],0));(Ext.cmd.derive('Ext.tip.ToolTip',Ext.tip.Tip,{alternateClassName:'Ext.ToolTip',autoHide:!0,showDelay:500,hideDelay:200,dismissDelay:5000,mouseOffset:[15,18],trackMouse:!1,anchorToTarget:!0,targetCounter:0,quickShowInterval:250,hideAction:'hide',fadeOutDuration:1000,defaultAlign:'bl-tl',ariaRole:'tooltip',alwaysOnTop:!0,initComponent:function(){var a=this;Ext.tip.Tip.prototype.initComponent.call(this);a.setTarget(a.target);a.currentTarget=new Ext.dom.Fly()},onRender:function(c,b){var a=this;Ext.tip.Tip.prototype.onRender.apply(this,arguments);a.anchorEl=a.el.createChild({role:'presentation',cls:'x-tip-anchor'})},show:function(){if(!this.currentTarget.dom&&this.target){return this.showBy(this.target)}Ext.tip.Tip.prototype.show.call(this)},setTarget:function(b){var a=this,c;if(a.targetListeners){a.targetListeners.destroy()}if(b){a.target=b=Ext.get(b.el||b);c={mouseover:'onTargetOver',mouseout:'onTargetOut',mousemove:'onMouseMove',tap:'onTargetTap',scope:a,destroyable:!0};a.targetListeners=b.on(c)}else {a.target=null}},onMouseMove:function(c){var a=this,b=a.dismissDelay;a.pointerEvent=c;if(a.isVisible()&&a.currentTarget.contains(c.target)){if(b&&a.autoHide!==!1){a.clearTimer('dismiss');a.dismissTimer=Ext.defer(a.hide,b,a)}if(a.trackMouse){a.doAlignment(a.getAlignRegion())}}},getAlignRegion:function(){var a=this,c=a.anchorEl,d=a.getAnchorAlign(),g,e,f,b=a.mouseOffset;if(!a.anchorSize){c.addCls('x-tip-anchor-top');c.show();a.anchorSize=new Ext.util.Offset(c.getWidth(!1,!0),c.getHeight(!1,!0));c.removeCls('x-tip-anchor-top');c.hide()}if((a.anchor||a.align)&&a.anchorToTarget&&!a.trackMouse){f=a.currentTarget.getRegion()}else {f=a.pointerEvent?a.pointerEvent.getPoint().adjust(-Math.abs(b[1]),Math.abs(b[0]),Math.abs(b[1]),-Math.abs(b[0])):new Ext.util.Point();if(!a.anchor){g=!0;if(b[0]>0){if(b[1]>0){d='tl-br'}else {d='bl-tr'}}else {if(b[1]>0){d='tr-bl'}else {d='br-tl'}}}}e={align:a.convertPositionSpec(d),axisLock:a.axisLock,target:f,overlap:g,offset:a.targetOffset,inside:a.constrainPosition?(a.constrainTo||Ext.getBody().getRegion().adjust(5,-5,-5,5)):null};if(a.anchor){e.anchorSize=a.anchorSize}return a.getRegion().alignTo(e)},fadeOut:function(){var a=this;a.el.fadeOut({duration:a.fadeOutDuration,callback:function(){a.hide();a.el.setOpacity('')}})},getAnchorAlign:function(){switch(this.anchor){case 'top':return 'tl-bl';case 'left':return 'tl-tr';case 'right':return 'tr-tl';default:return this.defaultAlign;}},onTargetTap:function(a){if(this.showOnTap&&a.pointerType!=='mouse'&&Ext.fly(a.target).isVisible(!0)){this.onTargetOver(a)}},onTargetOver:function(c){var a=this,e=a.delegate,d=a.currentTarget,g=c.relatedTarget||c.fromElement,b,f=a.hasListeners;if(a.disabled){return}if(e){if(d.contains(c.target)){return}b=c.getTarget(e);if(b&&c.getRelatedTarget(e)===b){return}}else if(!a.target.contains(g)){b=a.target.dom}else {return}if(b){if((f.beforeshow||f.show)&&a.isVisible()){a.hide()}a.triggerElement=b;a.pointerEvent=c;d.attach(b);a.handleTargetOver(b,c)}else if(d.dom){a.handleTargetOut()}},handleTargetOver:function(b,a){if(a.pointerType!=='mouse'){this.showFromDelay()}else {this.delayShow()}},delayShow:function(){var a=this;a.clearTimer('hide');if(a.hidden&&!a.showTimer){if(a.delegate&&Ext.Date.getElapsed(a.lastHidden)<a.quickShowInterval){a.showFromDelay()}else {a.showTimer=Ext.defer(a.showFromDelay,a.pointerEvent.pointerType!=='mouse'?0:a.showDelay,a)}}else if(!a.hidden&&a.autoHide!==!1){a.showFromDelay()}},showFromDelay:function(){var a=this;if(!a.disabled){a.fireEvent('hovertarget',a,a.currentTarget,a.currentTarget.dom);if(a.isVisible()){a.realignToTarget()}else {a.triggerElement=a.currentTarget.dom;a.fromDelayShow=!0;a.show();a.fromDelayShow=!1}}},onTargetOut:function(a){if(this.currentTarget.dom&&!this.currentTarget.contains(a.relatedTarget)){this.handleTargetOut()}},handleTargetOut:function(){var a=this;if(a.showTimer){a.clearTimer('show')}if(a.isVisible()&&a.autoHide){a.delayHide()}},delayHide:function(){var a=this;if(!a.hidden&&!a.hideTimer){a.clearTimer('dismiss');a.hideTimer=Ext.defer(a[a.hideAction],a.hideDelay,a)}},hide:function(){var a=this;a.currentTarget.detach();a.clearTimer('dismiss');a.lastHidden=new Date();if(a.anchorEl){a.anchorEl.hide()}Ext.tip.Tip.prototype.hide.apply(this,arguments);a.triggerElement=null},afterShow:function(){Ext.tip.Tip.prototype.afterShow.call(this);this.realignToTarget()},realignToTarget:function(){var a=this;a.clearTimers();if(!a.calledFromShowAt){a.doAlignment(a.getAlignRegion())}if(a.dismissDelay&&a.autoHide!==!1){a.dismissTimer=Ext.defer(a.hide,a.dismissDelay,a)}},showBy:function(b){var a=this;a.align=a.defaultAlign;if(b.isEvent){a.currentTarget.attach(b.target);a.pointerEvent=b}else {a.currentTarget.attach(Ext.getDom(b.el||b));a.triggerElement=a.currentTarget.dom}if(a.isVisible()){a.realignToTarget()}else {a.show()}return a},_timerNames:{},clearTimer:function(b){var a=this,d=a._timerNames,c=d[b]||(d[b]=b+'Timer'),e=a[c];if(e){Ext.undefer(e);a[c]=null;if(b==='show'&&a.isHidden()){a.currentTarget.detach()}}},clearTimers:function(){var a=this;a.clearTimer('show');a.clearTimer('dismiss');a.clearTimer('hide');a.clearTimer('enable')},onShow:function(){var a=this;Ext.tip.Tip.prototype.onShow.call(this);a.mousedownListener=Ext.on({mousedown:'onDocMouseDown',scope:a,destroyable:!0})},onHide:function(){var a=this;Ext.tip.Tip.prototype.onHide.call(this);Ext.destroy(a.mousedownListener)},onDocMouseDown:function(b){var a=this,c=a.delegate;if(b.within(a.el.dom)){if(b.pointerType!=='mouse'&&a.allowOver){a.clearTimer('dismiss')}}else if(!a.closable){if(b.within(a.target)&&(!c||b.getTarget(c))){a.delayHide()}else {a.disable();a.enableTimer=Ext.defer(a.enable,100,a)}}},doEnable:function(){if(!this.destroyed){this.enable()}},onDisable:function(){Ext.tip.Tip.prototype.onDisable.call(this);this.clearTimers();this.hide()},doDestroy:function(){var a=this;a.clearTimers();a.destroyMembers('mousedownListener','anchorEl');Ext.tip.Tip.prototype.doDestroy.call(this)},privates:{getTrackMouse:function(){return this.trackMouse},clipTo:function(a,c){var b;if(a.isRegion){b=a}else {b=(a.isComponent?a.el:Ext.fly(a)).getConstrainRegion()}Ext.tip.Tip.prototype.clipTo.call(this,b,c);this.anchorEl.clipTo(b,c)}}},0,["tooltip"],["component","box","container","panel","tip","tooltip"],{"component":!0,"box":!0,"container":!0,"panel":!0,"tip":!0,"tooltip":!0},["widget.tooltip"],0,[Ext.tip,'ToolTip',Ext,'ToolTip'],0));(Ext.cmd.derive('Ext.tip.QuickTip',Ext.tip.ToolTip,{alternateClassName:'Ext.QuickTip',interceptTitles:!1,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'},isQuickTip:!0,shrinkWrapDock:!0,initComponent:function(){var a=this;a.delegate=a.delegate.bind(a);a.target=a.target||Ext.getDoc();a.targets=a.targets||{};a.header=a.header||{};a.header.focusableContainer=!1;Ext.tip.ToolTip.prototype.initComponent.call(this)},setTagConfig:function(a){this.tagConfig=Ext.apply({},a);delete this.tagConfig.attr},text:null,register:function(a){var f=Ext.isArray(a)?a:arguments,d=0,g=f.length,b,c,e;for(;d<g;d++){a=f[d];b=a.target;if(b){if(Ext.isArray(b)){for(c=0,e=b.length;c<e;c++){this.targets[Ext.id(b[c])]=a}}else {this.targets[Ext.id(b)]=a}}}},unregister:function(a){delete this.targets[Ext.id(a)]},cancelShow:function(a){var b=this,c=b.currentTarget;a=Ext.getDom(a);if(b.isVisible()){if(c.dom===a){b.hide()}}else if(c.dom===a){b.clearTimer('show')}},delegate:function(b){var d=this,a=d.tagConfig,e=a.attr||(a.attr=a.namespace+a.attribute),c;c=b.getAttribute(e)||(d.interceptTitles&&b.title);return !!c},getTipText:function(a){var c=a.title,b=this.tagConfig,d=b.attr||(b.attr=b.namespace+b.attribute);if(this.interceptTitles&&c){a.setAttribute(d,c);a.removeAttribute('title');return c}else {return a.getAttribute(d)}},onTargetOver:function(d){var b=this,g=b.currentTarget,a=d.target,e,c,f;if(!a||a.nodeType!==1||a===document.documentElement||a===document.body){return}b.pointerEvent=d;e=b.targets;for(f in e){if(e.hasOwnProperty(f)){c=e[f];a=Ext.getDom(c.target);if(a&&Ext.fly(a).contains(d.target)&&!Ext.fly(a).contains(d.relatedTarget)){g.attach(a);b.activeTarget=c;c.el=g;b.anchor=c.anchor;b.activateTarget();return}}}Ext.tip.ToolTip.prototype.onTargetOver.call(this,d)},handleTargetOver:function(g,h){var a=this,b=a.currentTarget,c=a.tagConfig,d=c.namespace,f=a.getTipText(g,h),e;if(f){e=b.getAttribute(d+c.hide);a.activeTarget={el:b,text:f,width:+b.getAttribute(d+c.width)||null,autoHide:e!=="user"&&e!=='false',title:b.getAttribute(d+c.title),cls:b.getAttribute(d+c.cls),align:b.getAttribute(d+c.align),showDelay:b.getAttribute(d+c.showDelay),hideAction:b.getAttribute(d+c.hideAction),alignTarget:b.getAttribute(d+c.anchorTarget)};if(!a.initialConfig.hasOwnProperty('anchor')){a.anchor=b.getAttribute(d+c.anchor)}if(a.anchor&&!a.initialConfig.hasOwnProperty('anchorTarget')){a.alignTarget=a.activeTarget.alignTarget||g}a.activateTarget()}},activateTarget:function(){var a=this,b=a.activeTarget,d=b.showDelay,c=b.hideAction;if(a.isVisible()){a.updateContent();a.realignToTarget()}else {if(b.showDelay){d=a.showDelay;a.showDelay=parseInt(b.showDelay,10)}a.delayShow();if(b.showDelay){a.showDelay=d}if(!(c=b.hideAction)){delete a.hideAction}else {a.hideAction=c}}},getAnchorAlign:function(){var a=this.activeTarget;return (a&&a.align)||Ext.tip.ToolTip.prototype.getAnchorAlign.call(this)},getAlignRegion:function(){var a=this,b=a.activeTarget,d=a.currentTarget.dom,c;if(b&&b.alignTarget&&a.anchor&&!a.initialConfig.hasOwnProperty('anchorTarget')){a.currentTarget.attach(Ext.getDom(b.alignTarget))}a.anchorToTarget=!!(b.align||a.anchor);c=Ext.tip.ToolTip.prototype.getAlignRegion.call(this);a.currentTarget.attach(d);return c},handleTargetOut:function(e){var a=this,b=a.activeTarget,c=a.autoHide,d=a.hideDelay;if(b&&c!==!1){a.autoHide=!0;if(b.hideDelay){a.hideDelay=parseInt(b.hideDelay,10)}Ext.tip.ToolTip.prototype.handleTargetOut.call(this,e);a.autoHide=c;a.hideDelay=d}},targetTextEmpty:function(){var c=this,a=c.activeTarget,e=c.tagConfig,b,d;if(a){b=a.el;if(b){d=b.getAttribute(e.namespace+e.attribute);if(!d&&!c.targets[Ext.id(a.el.dom)]){return !0}}}return !1},show:function(){var a=this,b=a.fromDelayShow;if(b&&a.targetTextEmpty()){a.activeTarget=null;a.currentTarget.detach();return}Ext.tip.ToolTip.prototype.show.apply(this,arguments)},beforeShow:function(){this.updateContent();Ext.tip.ToolTip.prototype.beforeShow.apply(this,arguments)},updateContent:function(){var a=this,b=a.activeTarget,e=a.header,d,c;if(b){a.suspendLayouts();if(b.title){a.setTitle(b.title);e.show()}else if(e){e.hide()}a.update(b.text);a.autoHide=b.autoHide;d=b.dismissDelay;a.dismissDelay=Ext.isNumber(d)?d:a.dismissDelay;c=a.lastCls;if(c){a.removeCls(c);delete a.lastCls}c=b.cls;if(c){a.addCls(c);a.lastCls=c}a.setWidth(b.width);a.align=b.align;a.resumeLayouts(!0)}},hide:function(){this.activeTarget=null;Ext.tip.ToolTip.prototype.hide.call(this)}},0,["quicktip"],["component","box","container","panel","tip","tooltip","quicktip"],{"component":!0,"box":!0,"container":!0,"panel":!0,"tip":!0,"tooltip":!0,"quicktip":!0},["widget.quicktip"],0,[Ext.tip,'QuickTip',Ext,'QuickTip'],0));(Ext.cmd.derive('Ext.tip.QuickTipManager',Ext.Base,{singleton:!0,alternateClassName:'Ext.QuickTips',disabled:!1,init:function(d,e){var b=this;if(!b.tip){if(!Ext.isReady){Ext.onInternalReady(function(){Ext.tip.QuickTipManager.init(d,e)});return !1}var a=Ext.apply({disabled:b.disabled,id:'ext-quicktips-tip'},e),c=a.className,f=a.xtype;if(c){delete a.className}else if(f){c='widget.'+f;delete a.xtype}if(d!==!1){a.renderTo=document.body}b.tip=Ext.create(c||'Ext.tip.QuickTip',a);b.tip.destroy=Ext.emptyFn;Ext.quickTipsActive=!0}},destroy:function(){var a=this.tip;if(a){delete a.destroy;a.destroy();this.tip=null}Ext.quickTipsActive=!1},ddDisable:function(){var b=this,a=b.tip;if(a&&!b.disabled){a.disable()}},ddEnable:function(){var b=this,a=b.tip;if(a&&!b.disabled){a.enable()}},enable:function(){var b=this,a=b.tip;if(a){a.enable()}b.disabled=!1},disable:function(){var b=this,a=b.tip;if(a){a.disable()}b.disabled=!0},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.cmd.derive('Ext.picker.Color',Ext.Component,{alternateClassName:'Ext.ColorPalette',focusable:!0,componentCls:'x-color-picker',selectedCls:'x-color-picker-selected',itemCls:'x-color-picker-item',value:null,clickEvent:'click',allowReselect:!1,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,!0)}},initRenderData:function(){var a=this;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{itemCls:a.itemCls,colors:a.colors})},onRender:function(){var a=this,b=a.clickEvent;Ext.Component.prototype.onRender.apply(this,arguments);a.mon(a.el,b,a.handleClick,a,{delegate:'a'});if(b!=='click'){a.mon(a.el,'click',Ext.emptyFn,a,{delegate:'a',stopEvent:!0})}},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,!0)}},handleClick:function(c){var a=this,b;c.stopEvent();if(!a.disabled){b=c.currentTarget.className.match(a.colorRe)[1];a.select(b.toUpperCase())}},select:function(b,g){var a=this,e=a.selectedCls,f=a.value,d,c;b=b.replace('#','');if(!a.rendered){a.value=b;return}if(b!==f||a.allowReselect){d=a.el;if(a.value){c=d.down('a.color-'+f,!0);Ext.fly(c).removeCls(e)}c=d.down('a.color-'+b,!0);Ext.fly(c).addCls(e);a.value=b;if(g!==!0){a.fireEvent('select',a,b)}}},clear:function(){var a=this,b=a.value,c;if(b&&a.rendered){c=a.el.down('a.color-'+b,!0);Ext.fly(c).removeCls(a.selectedCls)}a.value=null},getValue:function(){return this.value||null}},0,["colorpicker"],["component","box","colorpicker"],{"component":!0,"box":!0,"colorpicker":!0},["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(a){var b=this.owner,c;if(Ext.isGecko){c=b.textareaEl.dom;this.lastValue=c.value;c.value=''}Ext.layout.component.field.FieldContainer.prototype.beginLayout.apply(this,arguments);a.toolbarContext=a.context.getCmp(b.toolbar);a.inputCmpContext=a.context.getCmp(b.inputCmp);a.bodyCellContext=a.getEl('bodyEl');a.textAreaContext=a.getEl('textareaEl');a.iframeContext=a.getEl('iframeEl')},beginLayoutCycle:function(a){var b=this,e=a.widthModel,c=a.heightModel,h=b.owner,f=h.iframeEl,d=h.textareaEl,g=(c.natural||c.shrinkWrap)?b.naturalHeight:'';Ext.layout.component.field.FieldContainer.prototype.beginLayoutCycle.apply(this,arguments);if(e.shrinkWrap){f.setStyle('width','');d.setStyle('width','')}else if(e.natural){a.bodyCellContext.setWidth(b.naturalWidth)}f.setStyle('height',g);d.setStyle('height',g)},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":!0,"box":!0,"tbitem":!0,"tbseparator":!0},["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(a,b){Ext.layout.container.boxOverflow.None.prototype.beginLayoutCycle.call(this,a,b);if(!b){this.clearOverflow(a);this.layout.cacheChildItems(a)}},onRemove:function(a){Ext.Array.remove(this.menuItems,a)},clearItem:function(a){var b=a.menu;if(a.isButton&&b){a.setMenu(b,!1)}},getSuffixConfig:function(){var a=this,c=a.layout,b=c.owner,d=b.id;a.menu=new Ext.menu.Menu({listeners:{scope:a,beforeshow:a.beforeMenuShow}});a.menuTrigger=new Ext.button.Button({id:d+'-menu-trigger',cls:a.menuCls+'-after x-toolbar-item',plain:b.usePlainButtons,ownerCt:b,ownerLayout:c,iconCls:'x-'+a.getOwnerType(b)+'-more-icon',ui:b.defaultButtonUI||'default',menu:a.menu,showEmptyMenu:!0,getSplitCls:function(){return ''}});return a.menuTrigger.getRenderTree()},getOverflowCls:function(a){return this.menuCls+'-body-'+a},handleOverflow:function(b){var a=this,c=a.layout;a.showTrigger(b);if(c.direction!=='vertical'){a.menuTrigger.setLocalY((b.state.boxPlan.maxSize-a.menuTrigger[c.names.getHeight]())/2)}return {reservedSpace:a.triggerTotalWidth}},captureChildElements:function(){var b=this,a=b.menuTrigger,c=b.layout.names;if(a.rendering){a.finishRender();b.triggerTotalWidth=a[c.getWidth]()+a.el.getMargin(c.parallelMargins)}},clearOverflow:function(h){var b=this,d=b.menuItems,g=d.length,e=b.layout.owner,f=e._asLayoutRoot,a,c;e.suspendLayouts();b.captureChildElements();b.hideTrigger();e.resumeLayouts();for(c=0;c<g;c++){a=d[c];a.suspendLayouts();a.show();b.clearItem(a);a.resumeLayouts(f)}d.length=0},showTrigger:function(i){var b=this,m=b.layout,o=m.owner,n=m.names,p=n.x,l=n.width,q=i.state.boxPlan,k=q.targetSize[l],j=i.childItems,e=b.menuTrigger,f=b.menuItems,d,h,a,g,c;e.suspendLayouts();e.show();e.resumeLayouts(b._asLayoutRoot);k-=b.triggerTotalWidth;o.suspendLayouts();for(a=0,c=f.length;a<c;++a){b.clearItem(f[a])}f.length=0;for(a=0,c=j.length;a<c;a++){d=j[a];g=d.props;if(g[p]+g[l]>k){h=d.target;b.menuItems.push(h);h.hide()}}o.resumeLayouts()},hideTrigger:function(){var a=this.menuTrigger;if(a){a.hide()}},beforeMenuShow:function(a){var e=this,g=e.menuItems,d=0,h=g.length,b,c,f=function(b,c){return b.isXType('buttongroup')&&!(c instanceof Ext.toolbar.Separator)};a.suspendLayouts();a.removeAll(!1);for(;d<h;d++){b=g[d];if(!d&&(b instanceof Ext.toolbar.Separator)){continue}if(c&&(f(b,c)||f(c,b))){a.add('-')}e.addComponentToMenu(a,b);c=b}if(a.items.length<1){a.add(e.noItemsMenuText)}a.resumeLayouts()},createMenuConfig:function(a,d){var b=Ext.apply({},a.initialConfig),c=a.toggleGroup;Ext.copy(b,a,['iconCls','icon','itemId','disabled','handler','scope','menu','tabIndex']);Ext.applyIf(b,{hideOnClick:d,destroyMenu:!1,listeners:null});b.text=a.overflowText||a.text;b.masterComponent=a;if(a.isFormField){b.value=a.getValue();if(a instanceof Ext.form.field.Checkbox){b={xtype:'menucheckitem',group:a.isRadio?a.name+'_clone':undefined,text:a.boxLabel||a.fieldLabel,name:a.name,masterComponent:a,checked:a.getValue(),hideOnClick:!1,checkChangeDisabled:!0}}b.listeners={change:function(c,b,e){c.masterComponent.setValue(b)}};a.on('change',function(c,b,e){c.overflowClone.setValue(b)})}else if(c||a.enableToggle){Ext.apply(b,{hideOnClick:!1,group:c,checked:a.pressed,handler:function(b,c){b.masterComponent.onClick(c)}})}if(a.isButton&&!a.changeListenersAdded){a.on({textchange:this.onButtonAttrChange,iconchange:this.onButtonAttrChange,toggle:this.onButtonToggle});a.changeListenersAdded=!0}a.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(b){var a=b.overflowClone;a.suspendLayouts();a.setText(b.text);a.setIcon(b.icon);a.setIconCls(b.iconCls);a.resumeLayouts(!0)},onButtonToggle:function(b,a){if(b.overflowClone.checked!==a){b.overflowClone.setChecked(a)}},onComponentStatusChange:function(b){var a=b.overflowClone;if(a){a.setDisabled(b.disabled)}},addComponentToMenu:function(b,a){var c=this,d,e,f;if(a instanceof Ext.toolbar.Fill){return}else if(a instanceof Ext.toolbar.Separator){b.add('-')}else if(a.overflowClone){b.add(a.overflowClone)}else if(a.isComponent){if(a.isXType('splitbutton')){a.overflowClone=b.add(c.createMenuConfig(a,!0))}else if(a.isXType('button')){a.overflowClone=b.add(c.createMenuConfig(a,!a.menu))}else if(a.isXType('buttongroup')){e=a.items.items;f=e.length;for(d=0;d<f;d++){c.addComponentToMenu(b,e[d])}}else if(a.isCheckbox){a.overflowClone=b.add(c.createMenuConfig(a));Ext.apply(a.overflowClone,{getValue:function(){return a.overflowClone.checked},setValue:function(){a.overflowClone.setChecked(a.getValue())}});a.overflowClone.on('click',function(c){c.setChecked(c.masterComponent.isRadio?!0:!c.checked);c.fireEvent('change',c,c.checked)})}else {a.overflowClone=b.add(Ext.create(Ext.getClassName(a),c.createMenuConfig(a)))}}},destroy:function(){Ext.destroy(this.menu,this.menuTrigger);this.callParent()}},1,0,0,0,["box.overflow.Menu","box.overflow.menu"],0,[Ext.layout.container.boxOverflow,'Menu',Ext.layout.boxOverflow,'Menu'],0));(Ext.cmd.derive('Ext.form.field.HtmlEditor',Ext.form.FieldContainer,{alternateClassName:'Ext.form.HtmlEditor',focusable:!0,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:!0}],stretchInputElFixed:!0,subTplInsertions:['beforeTextAreaTpl','afterTextAreaTpl','beforeIFrameTpl','afterIFrameTpl','iframeAttrTpl','inputAttrTpl'],enableFormat:!0,enableFontSize:!0,enableColors:!0,enableAlignments:!0,enableLists:!0,enableSourceEdit:!0,enableLinks:!0,enableFont:!0,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',buttonDefaults:null,initialized:!1,activated:!1,sourceEditMode:!1,iframePad:3,hideMode:'offsets',layout:{type:'vbox',align:'stretch'},maskOnDisable:!0,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()];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.lookupTpl('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 a=this,b=[],e,f=Ext.quickTipsActive&&Ext.tip.QuickTipManager.isEnabled(),c='x-',g,d;function btn(b,g,e){return Ext.merge({itemId:b,cls:c+'btn-icon',iconCls:c+'edit-'+b,enableToggle:g!==!1,scope:a,handler:e||a.relayBtnCmd,clickEvent:'mousedown',tooltip:f?a.buttonTips[b]:d,overflowText:a.buttonTips[b].title||d,tabIndex:-1},a.buttonDefaults)}if(a.enableFont){g=Ext.widget('component',{itemId:'fontSelect',renderTpl:['<select id="{id}-selectEl" data-ref="selectEl" class="'+c+'font-select">','</select>'],childEls:['selectEl'],afterRender:function(){a.fontSelect=this.selectEl;Ext.Component.prototype.afterRender.apply(this,arguments)},onDisable:function(){var a=this.selectEl;if(a){a.dom.disabled=!0}Ext.Component.prototype.onDisable.apply(this,arguments)},onEnable:function(){var a=this.selectEl;if(a){a.dom.disabled=!1}Ext.Component.prototype.onEnable.apply(this,arguments)},listeners:{change:function(){a.win.focus();a.relayCmd('fontName',a.fontSelect.dom.value);a.deferFocus()},element:'selectEl'}});b.push(g,'-')}if(a.enableFormat){b.push(btn('bold'),btn('italic'),btn('underline'))}if(a.enableFontSize){b.push('-',btn('increasefontsize',!1,a.adjustFont),btn('decreasefontsize',!1,a.adjustFont))}if(a.enableColors){b.push('-',Ext.merge({itemId:'forecolor',cls:c+'btn-icon',iconCls:c+'edit-forecolor',overflowText:a.buttonTips.forecolor.title,tooltip:f?a.buttonTips.forecolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',allowReselect:!0,focus:Ext.emptyFn,value:'000000',plain:!0,clickEvent:'mousedown',handler:function(c,b){a.relayCmd('forecolor',Ext.isWebKit||Ext.isIE||Ext.isEdge?'#'+b:b);this.up('menu').hide()}}]})},a.buttonDefaults),Ext.merge({itemId:'backcolor',cls:c+'btn-icon',iconCls:c+'edit-backcolor',overflowText:a.buttonTips.backcolor.title,tooltip:f?a.buttonTips.backcolor||d:d,tabIndex:-1,menu:Ext.widget('menu',{plain:!0,items:[{xtype:'colorpicker',focus:Ext.emptyFn,value:'FFFFFF',plain:!0,allowReselect:!0,clickEvent:'mousedown',handler:function(c,b){if(Ext.isGecko){a.execCmd('useCSS',!1);a.execCmd('hilitecolor','#'+b);a.execCmd('useCSS',!0);a.deferFocus()}else {a.relayCmd(Ext.isOpera?'hilitecolor':'backcolor',Ext.isWebKit||Ext.isIE||Ext.isEdge||Ext.isOpera?'#'+b:b)}this.up('menu').hide()}}]})},a.buttonDefaults))}if(a.enableAlignments){b.push('-',btn('justifyleft'),btn('justifycenter'),btn('justifyright'))}if(a.enableLinks){b.push('-',btn('createlink',!1,a.createLink))}if(a.enableLists){b.push('-',btn('insertorderedlist'),btn('insertunorderedlist'))}if(a.enableSourceEdit){b.push('-',btn('sourceedit',!0,function(){a.toggleSourceEdit(!a.sourceEditMode)}))}for(e=0;e<b.length;e++){if(b[e].itemId!=='sourceedit'){b[e].disabled=!0}}return {xtype:'toolbar',defaultButtonUI:a.defaultButtonUI,cls:'x-html-editor-tb',enableOverflow:!0,items:b,listeners:{click:function(a){a.preventDefault()},element:'el'}}},getMaskTarget:function(){return Ext.isGecko?this.inputCmp.el:this.bodyEl},setReadOnly:function(b){var a=this,d=a.textareaEl,e=a.iframeEl,c;a.readOnly=b;if(d){d.dom.readOnly=b}if(a.initialized){c=a.getEditorBody();if(Ext.isIE){e.setDisplayed(!1);c.contentEditable=!b;e.setDisplayed(!0)}else {a.setDesignMode(!b)}if(c){c.style.cursor=b?'default':'text'}a.disableItems(b)}},getDocMarkup:function(){var a=this,b=a.iframeEl.getHeight()-a.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:'+(a.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>',a.iframePad,b,a.defaultFont)},getEditorBody:function(){var a=this.getDoc();return a&&a.body},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 b=this,h=0,c,a,f,e,d,i,g;if(!b.defaultFont){a=b.textareaEl.getStyle('font-family');a=Ext.String.capitalize(a.split(',')[0]);c=Ext.Array.clone(b.fontFamilies);Ext.Array.include(c,a);c.sort();b.defaultFont=a;f=b.down('#fontSelect').selectEl.dom;for(d=0,i=c.length;d<i;++d){a=c[d];g=a.toLowerCase();e=new Option(a,g);if(a===b.defaultFont){h=d}e.style.fontFamily=g;if(Ext.isIE){f.add(e)}else {f.options.add(e)}}f.options[h].selected=!0}},isEqual:function(a,b){return this.isEqualAsString(a,b)},afterRender:function(){var a=this,b=a.inputCmp;Ext.form.FieldContainer.prototype.afterRender.apply(this,arguments);a.iframeEl=b.iframeEl;a.textareaEl=b.textareaEl;a.inputEl=a.iframeEl;if(a.enableFont){a.initDefaultFont()}a.initPhase=0;a.initializeTask=Ext.TaskManager.start({run:a.initFrameDoc,scope:a,interval:10,duration:5000})},initFrameDoc:function(){var a=this,b=a.getDoc();if(a.destroying||a.destroyed){return Ext.TaskManager.stop(a.initializeTask)}switch(a.initPhase){case 0:if(b){a.win=a.getWin();b.open();b.write(a.getDocMarkup());b.close();a.initPhase++};break;case 1:if(b.body||b.readyState==='complete'){a.setDesignMode(!0);a.initPhase++};break;case 2:a.initEditor();Ext.TaskManager.stop(a.initializeTask);}},setDesignMode:function(a){var c=this,b=c.getDoc();if(b){if(c.readOnly){a=!1}b.designMode=(/on|true/i).test(String(a).toLowerCase())?'on':'off'}},getDesignMode:function(){var a=this.getDoc();return !a?'':String(a.designMode).toLowerCase()},disableItems:function(d){var c=this.getToolbar().items.items,a,e=c.length,b;for(a=0;a<e;a++){b=c[a];if(b.getItemId()!=='sourceedit'){b.setDisabled(d)}}},toggleSourceEdit:function(b){var a=this,e=a.iframeEl,c=a.textareaEl,d='x-hidden',f=a.getToolbar().getComponent('sourceedit');if(!Ext.isBoolean(b)){b=!a.sourceEditMode}a.sourceEditMode=b;if(f.pressed!==b){f.toggle(b)}if(b){a.disableItems(!0);a.syncValue();e.addCls(d);c.removeCls(d);c.dom.removeAttribute('tabIndex');c.focus();a.inputEl=c}else {if(a.initialized){a.disableItems(a.readOnly)}a.pushValue();e.removeCls(d);c.addCls(d);c.dom.setAttribute('tabIndex',-1);a.deferFocus();a.inputEl=e}a.fireEvent('editmodechange',a,b);a.updateLayout()},createLink:function(){var a=prompt(this.createLinkText,this.defaultLinkValue);if(a&&a!=='http://'){this.relayCmd('createlink',a)}},clearInvalid:Ext.emptyFn,setValue:function(b){var a=this,c=a.textareaEl;if(b===null||b===undefined){b=''}if(a.value!==b){if(c){c.dom.value=b}a.pushValue();if(!a.rendered&&a.inputCmp){a.inputCmp.data.value=b}a.mixins.field.setValue.call(a,b)}return a},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 b=this,e,g,a,f,d,c;if(b.initialized){e=b.getEditorBody();a=e.innerHTML;c=b.textareaEl.dom;if(Ext.isWebKit){f=e.style.cssText;d=f.match(b.textAlignRE);if(d&&d[1]){a='<div style="'+d[0]+'">'+a+'</div>'}}a=b.cleanHtml(a);if(b.fireEvent('beforesync',b,a)!==!1){if(Ext.isGecko&&c.value===''&&a==='<br>'){a=''}if(c.value!==a){c.value=a;g=!0}b.fireEvent('sync',b,a);if(g){b.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 a=this,b;if(a.initialized){b=a.textareaEl.dom.value||'';if(!a.activated&&b.length<1){b=a.defaultValue}if(a.fireEvent('beforepush',a,b)!==!1){a.getEditorBody().innerHTML=b;if(Ext.isGecko){a.setDesignMode(!1);a.setDesignMode(!0)}a.fireEvent('push',a,b)}}},focus:function(e,c){var a=this,d,b;if(c){if(!a.focusTask){a.focusTask=new Ext.util.DelayedTask(a.focus)}a.focusTask.delay(Ext.isNumber(c)?c:10,null,a,[e,!1])}else {if(e){if(a.textareaEl&&a.textareaEl.dom){d=a.textareaEl.dom.value}if(d&&d.length){a.execCmd('selectall',!0)}}b=a.getFocusEl();if(b&&b.focus){b.focus()}}return a},initEditor:function(){var a=this,e=a.getEditorBody(),f=a.textareaEl.getStyle(['font-size','font-family','background-image','background-repeat','background-color','color']),d=a.getDoc(),c=Ext.get(d),b;f['background-attachment']='fixed';e.bgProperties='fixed';Ext.DomHelper.applyStyles(e,f);if(c){try{c.clearListeners()}catch(g){}b=Ext.Function.createBuffered(a.updateToolbar,100,a);c.on({mousedown:b,dblclick:b,click:b,keyup:b,delegated:!1});b=a.onRelayedEvent;c.on({mousedown:b,mousemove:b,mouseup:b,click:b,dblclick:b,delegated:!1,scope:a});if(Ext.isGecko){c.on('keypress',a.applyCommand,a)}if(a.fixKeys){c.on('keydown',a.fixKeys,a,{delegated:!1})}if(a.fixKeysAfter){c.on('keyup',a.fixKeysAfter,a,{delegated:!1})}if(Ext.isIE9){Ext.get(d.documentElement).on('focus',a.focus,a)}if(Ext.isIE8){c.on('focusout',function(){a.savedSelection=d.selection.type!=='None'?d.selection.createRange():null},a);c.on('focusin',function(){if(a.savedSelection){a.savedSelection.select()}},a)}Ext.getWin().on('unload',a.destroyEditor,a);a.initialized=!0;a.pushValue();a.setReadOnly(a.readOnly);a.fireEvent('initialize',a)}},destroyEditor:function(){var b=this,d=b.initializeTask,a,c;if(d){Ext.TaskManager.stop(d,!0)}if(b.rendered){Ext.getWin().un('unload',b.destroyEditor,b);a=b.getDoc();if(a){Ext.get(a).destroy();if(a.hasOwnProperty){for(c in a){try{if(a.hasOwnProperty(c)){delete a[c]}}catch(e){}}}}}},doDestroy:function(){this.destroyEditor();Ext.form.FieldContainer.prototype.doDestroy.call(this)},onRelayedEvent:function(a){var b=this.iframeEl,c=Ext.fly(b).getTrueXY(),e=a.getXY(),d=a.getXY();a.xy=[c[0]+d[0],c[1]+d[1]];a.injectEvent(b);a.xy=e},onFirstFocus:function(){var a=this,b,c;a.activated=!0;a.disableItems(a.readOnly);if(Ext.isGecko){a.win.focus();b=a.win.getSelection();if(b.focusNode&&!a.getValue().length){c=b.getRangeAt(0);c.selectNodeContents(a.getEditorBody());c.collapse(!0);a.deferFocus()}try{a.execCmd('useCSS',!0);a.execCmd('styleWithCSS',!1)}catch(d){}}a.fireEvent('activate',a)},adjustFont:function(e){var b=e.getItemId()==='increasefontsize'?1:-1,a=this.getDoc().queryCommandValue('FontSize')||'2',d=Ext.isString(a)&&a.indexOf('px')!==-1,c;a=parseInt(a,10);if(d){if(a<=10){a=1+b}else if(a<=13){a=2+b}else if(a<=16){a=3+b}else if(a<=18){a=4+b}else if(a<=24){a=5+b}else {a=6+b}a=Ext.Number.constrain(a,1,6)}else {c=Ext.isSafari;if(c){b*=2}a=Math.max(1,a+b)+(c?'px':0)}this.relayCmd('FontSize',a)},updateToolbar:function(){var a=this,c,i,h,g,b,d,f,e;if(a.readOnly){return}if(!a.activated){a.onFirstFocus();return}h=a.getToolbar().items.map;g=a.getDoc();if(a.enableFont){d=g.queryCommandValue('fontName');b=(d?d.split(",")[0].replace(a.reStripQuotes,''):a.defaultFont).toLowerCase();f=a.fontSelect.dom;if(b!==f.value||b!==d){f.value=b}}function updateButtons(){var a;for(c=0,i=arguments.length,b;c<i;c++){b=arguments[c];try{a=g.queryCommandState(b)}catch(j){a=!1}h[b].toggle(a)}}if(a.enableFormat){updateButtons('bold','italic','underline')}if(a.enableAlignments){updateButtons('justifyleft','justifycenter','justifyright')}if(a.enableLists){updateButtons('insertorderedlist','insertunorderedlist')}e=a.toolbar.query('menu');for(c=0;c<e.length;c++){e[c].hide()}a.syncValue()},relayBtnCmd:function(a){this.relayCmd(a.getItemId())},relayCmd:function(b,a){Ext.defer(function(){var c=this;if(!this.destroyed){c.win.focus();c.execCmd(b,a);c.updateToolbar()}},10,this)},execCmd:function(c,a){var b=this,d=b.getDoc();d.execCommand(c,!1,(a===undefined?null:a));b.syncValue()},applyCommand:function(d){if(d.ctrlKey){var c=this,b=d.getCharCode(),a;if(b>0){b=String.fromCharCode(b);switch(b){case 'b':a='bold';break;case 'i':a='italic';break;case 'u':a='underline';break;}if(a){c.win.focus();c.execCmd(a);c.deferFocus();d.preventDefault()}}}},insertAtCursor:function(j){var e=this,g=e.getWin(),d=e.getDoc(),b,a,h,c,i,f,k;if(e.activated){g.focus();if(g.getSelection){b=g.getSelection();if(b.getRangeAt&&b.rangeCount){a=b.getRangeAt(0);a.deleteContents();h=d.createElement("div");h.innerHTML=j;c=d.createDocumentFragment();while((i=h.firstChild)){f=c.appendChild(i)}k=c.firstChild;a.insertNode(c);if(f){a=a.cloneRange();a.setStartAfter(f);a.collapse(!0);b.removeAllRanges();b.addRange(a)}}}else if(d.selection&&b.type!=='Control'){b=d.selection;a=b.createRange();a.collapse(!0);b.createRange().pasteHTML(j)}e.deferFocus()}},fixKeys:(function(){var a;if(Ext.isIE10m){return function(c){var b=this,f=c.getKey(),e=b.getDoc(),d=b.readOnly,a,g;if(f===c.TAB){c.stopEvent();if(!d){a=e.selection.createRange();if(a){if(a.collapse){a.collapse(!0);a.pasteHTML('&#160;&#160;&#160;&#160;')}b.deferFocus()}}}}}if(Ext.isOpera){return function(b){var a=this,d=b.getKey(),c=a.readOnly;if(d===b.TAB){b.stopEvent();if(!c){a.win.focus();a.execCmd('InsertHTML','&#160;&#160;&#160;&#160;');a.deferFocus()}}}}return null}()),fixKeysAfter:(function(){if(Ext.isIE){return function(b){var d=this,e=b.getKey(),c=d.getDoc(),f=d.readOnly,a;if(!f&&(e===b.BACKSPACE||e===b.DELETE)){a=c.body.innerHTML;if(a==='<p>&nbsp;</p>'||a==='<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(!1,!0)},getFocusEl:function(){return this.sourceEditMode?this.textareaEl:this.iframeEl}}},0,["htmleditor"],["component","box","container","fieldcontainer","htmleditor"],{"component":!0,"box":!0,"container":!0,"fieldcontainer":!0,"htmleditor":!0},["widget.htmleditor"],[['field',Ext.form.field.Field]],[Ext.form.field,'HtmlEditor',Ext.form,'HtmlEditor'],0));(Ext.cmd.derive('Ext.view.TagKeyNav',Ext.view.BoundListKeyNav,{onKeySpace:function(c){var b=this,a=b.view.pickerField;if(a.isExpanded&&a.inputEl.dom.value===''){a.preventKeyUpEvent=!0;b.navigateOnSpace=!0;Ext.view.BoundListKeyNav.prototype.onKeySpace.call(this,c);c.stopEvent();return !1}return !0}},0,0,0,0,["view.navigation.tagfield"],0,[Ext.view,'TagKeyNav'],0));(Ext.cmd.derive('Ext.form.field.Tag',Ext.form.field.ComboBox,{noWrap:!1,multiSelect:!0,delimiter:',',tipTpl:undefined,forceSelection:!0,createNewOnEnter:!1,createNewOnBlur:!1,encodeSubmitValue:!1,triggerOnClick:!0,stacked:!1,filterPickList:!1,clearOnBackspace:!0,grow:!0,growMin:!1,growMax:!1,simulatePlaceholder:!0,selectOnFocus:!0,ariaHelpText:'Use Up and Down arrows to view available values, Enter to select. Use Left and Right arrows to view selected values, Delete key to deselect.',ariaHelpTextEditable:'Use Up and Down arrows to view available values, Enter to select. Type and press Enter to create a new value. Use Left and Right arrows to view selected values, Delete key to deselect.',ariaSelectedText:'Selected {0}.',ariaDeselectedText:'{0} removed from selection.',ariaNoneSelectedText:'No value selected.',ariaSelectedListLabel:'Selected values',ariaAvailableListLabel:'Available values',fieldSubTpl:['<div id="{cmpId}-listWrapper" data-ref="listWrapper"'+(Ext.isGecko?' tabindex="-1"':''),'<tpl foreach="ariaElAttributes"> {$}="{.}"</tpl>',' class="x-tagfield {fieldCls} {typeCls} {typeCls}-{ui}"<tpl if="wrapperStyle"> style="{wrapperStyle}"</tpl>>','<span id="{cmpId}-selectedText" data-ref="selectedText" aria-hidden="true" class="x-hidden-clip"></span>','<ul id="{cmpId}-itemList" data-ref="itemList" role="presentation" class="x-tagfield-list{itemListCls}">','<li id="{cmpId}-inputElCt" data-ref="inputElCt" role="presentation" class="x-tagfield-input">','<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>','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</tpl>','class="x-tagfield-input-field {inputElCls} {emptyCls} {fixCls}" autocomplete="off">','</li>','</ul>','<ul id="{cmpId}-ariaList" data-ref="ariaList" role="listbox"','<tpl if="ariaSelectedListLabel"> aria-label="{ariaSelectedListLabel}"</tpl>','<tpl if="multiSelect"> aria-multiselectable="true"</tpl>',' class="x-tagfield-arialist">','</ul>','</div>',{disableFormats:!0}],postSubTpl:['<label id="{cmpId}-placeholderLabel" data-ref="placeholderLabel" for="{cmpId}-inputEl" class="{placeholderCoverCls} {placeholderCoverCls}-{ui} {emptyCls}">{emptyText}</label>','</div>','<tpl for="triggers">{[values.renderTrigger(parent)]}</tpl>','</div>'],extraFieldBodyCls:'x-tagfield-body',childEls:['listWrapper','itemList','inputEl','inputElCt','selectedText','ariaList'],clearValueOnEmpty:!1,ariaSelectable:!0,ariaEl:'listWrapper',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 a=this,c=a.typeAhead,b=a.delimiter;if(a.createNewOnEnter||a.createNewOnBlur){a.forceSelection=!1}a.typeAhead=!1;if(a.value==null){a.value=[]}a.selectionModel=new Ext.selection.Model({mode:'MULTI',onSelectChange:function(d,c,b,a){a()},listeners:{scope:a,selectionchange:a.onSelectionChange,focuschange:a.onFocusChange}});if(!a.ariaHelp){a.ariaHelp=a.createNewOnEnter?a.ariaHelpTextEditable:a.ariaHelpText}Ext.form.field.ComboBox.prototype.initComponent.call(this);a.typeAhead=c;if(b&&a.multiSelect){a.delimiterRegexp=new RegExp(Ext.String.escapeRegex(b))}},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})},createPicker:function(){var a=this,b;b=Ext.apply({navigationModel:'tagfield'},a.defaultListConfig);if(a.ariaAvailableListLabel){b.ariaRenderAttributes={'aria-label':Ext.String.htmlEncode(a.ariaAvailableListLabel)}}a.defaultListConfig=b;return Ext.form.field.ComboBox.prototype.createPicker.call(this)},isValid:function(){var a=this,b=a.disabled,c=a.forceValidation||!b;return c?a.validateValue(a.getValue()):b},onBindStore:function(b){var a=this;Ext.form.field.ComboBox.prototype.onBindStore.call(this,b);if(b){a.valueStore=new Ext.data.Store({model:b.getModel(),proxy:'memory',useModelWarning:!1});a.selectionModel.bindStore(a.valueStore);if(a.filterPickList){a.listFilter=new Ext.util.Filter({scope:a,filterFn:a.filterPicked});a.changingFilters=!0;b.filter(a.listFilter);a.changingFilters=!1}}},filterPicked:function(a){return !this.valueCollection.contains(a)},onUnbindStore:function(d){var a=this,b=a.valueStore,c=a.picker;if(c){c.bindStore(null)}if(b){b.destroy();a.valueStore=null}if(a.filterPickList&&!d.destroyed){a.changingFilters=!0;d.removeFilter(a.listFilter);a.changingFilters=!1}Ext.form.field.ComboBox.prototype.onUnbindStore.apply(this,arguments)},clearInput:function(){var a=this,b=a.getValueRecords(),d=a.inputEl&&a.inputEl.dom.value,c;if(b.length&&d){c=b[b.length-1].get(a.displayField);if(!Ext.String.startsWith(c,d,!0)){return}a.inputEl.dom.value='';if(a.queryMode=='local'){a.clearLocalFilter();a.getPicker().refresh()}}},onValueCollectionEndUpdate:function(){var a=this,c=a.valueCollection.items,b=a.valueStore;if(a.isSelectionUpdating()){return}if(a.filterPickList){a.changingFilters=!0;a.store.filter(a.listFilter);a.changingFilters=!1}Ext.form.field.ComboBox.prototype.onValueCollectionEndUpdate.call(this);Ext.suspendLayouts();if(b){b.suspendEvents();b.loadRecords(c);b.resumeEvents()}a.refreshEmptyText();a.clearInput();Ext.resumeLayouts(!0);a.alignPicker()},checkValueOnDataChange:Ext.emptyFn,onSelectionChange:function(e,b){var a=this,c=a.inputEl,d;a.applyMultiselectItemMarkup();a.applyAriaListMarkup();a.applyAriaSelectedText();if(c){if(b.length===0){c.dom.removeAttribute('aria-activedescendant')}else {d=a.getAriaListNode(b[0]);if(d){c.dom.setAttribute('aria-activedescendant',d.id)}}}a.fireEvent('valueselectionchange',a,b)},onFocusChange:function(d,b,a){var c=this;Ext.form.field.ComboBox.prototype.onFocusChange.call(this,d,b,a);c.fireEvent('valuefocuschange',c,b,a)},getAriaListNode:function(b){var a=this.ariaList,c;if(a&&b){c=a.selectNode('[data-recordid="'+b.internalId+'"]')}return c},doDestroy:function(){Ext.destroy(this.selectionModel);Ext.form.field.ComboBox.prototype.doDestroy.call(this)},getSubTplData:function(j){var b=this,e=b.id,a=Ext.form.field.ComboBox.prototype.getSubTplData.apply(this,arguments),h=b.emptyText,i=h&&a.value.length<1,g=b.growMin,f=b.growMax,d='',c;a.value='';a.emptyText=i?h:'';a.itemListCls='';a.emptyCls=i?b.emptyUICls:'';if(b.grow){if(Ext.isNumber(g)&&g>0){d+='min-height:'+g+'px;'}if(Ext.isNumber(f)&&f>0){d+='max-height:'+f+'px;'}}else {d+='max-height: 1px;'}a.wrapperStyle=d;if(b.stacked===!0){a.itemListCls+=' x-tagfield-stacked'}if(!b.multiSelect){a.itemListCls+=' x-tagfield-singleselect'}if(!b.ariaStaticRoles[b.ariaRole]){a.multiSelect=b.multiSelect;a.ariaSelectedListLabel=Ext.String.htmlEncode(b.ariaSelectedListLabel);c=a.ariaElAttributes;if(c){c['aria-owns']=e+'-inputEl '+e+'-picker '+e+'-ariaList'}c=a.inputElAriaAttributes;if(c){c.role='textbox';c['aria-describedby']=e+'-selectedText '+(c['aria-describedby']||'')}}return a},onRender:function(b,c){var a=this;(arguments.callee.$previous||Ext.form.field.ComboBox.prototype.onRender).call(this,b,c);a.emptyClsElements.push(a.listWrapper,a.placeholderLabel)},afterRender:function(){var a=this,b=a.inputEl,c=a.emptyText;if(c){if(Ext.supports.Placeholder&&b){b.dom.removeAttribute('placeholder')}}a.applyMultiselectItemMarkup();a.applyAriaListMarkup();a.applyAriaSelectedText();Ext.form.field.ComboBox.prototype.afterRender.call(this)},findRecord:function(b,c){var a=this.getStore().queryRecords(b,c);return a.length?a[0]:!1},getCursorPosition:function(){var a;if(document.selection){a=document.selection.createRange();a.collapse(!0);a.moveStart('character',-this.inputEl.dom.value.length);a=a.text.length}else {a=this.inputEl.dom.selectionStart}return a},hasSelectedText:function(){var a=this.inputEl.dom,c,b;if(document.selection){c=document.selection;b=c.createRange();return (b.parentElement()===a)}else {return a.selectionStart!==a.selectionEnd}},onKeyDown:function(a){var b=this,e=a.getKey(),l=b.inputEl,n=l&&l.dom.value,f=b.valueCollection,c=b.selectionModel,g=!1,j,d,i,h,k,m;if(b.destroyed||b.readOnly||b.disabled||!b.editable){return}j=f.getCount();if(j>0&&n===''){d=(c.getCount()>0)?f.indexOf(c.getLastSelected()):-1;if((e===a.BACKSPACE&&b.clearOnBackspace)||(e===a.DELETE&&d>-1)){if(d>-1){if(c.getCount()>1){d=-1}i=c.getSelection();h=[];for(k=0,m=i.length;k<m;k++){h.push(i[k].get(b.displayField))}h=h.join(', ')}else {i=f.last();h=i.get(b.displayField)}f.remove(i);if(h){b.ariaErrorEl.dom.innerHTML=Ext.String.formatEncode(b.ariaDeselectedText,h)}c.clearSelections();if(d===(j-1)){c.select(f.last())}else if(d>-1){c.select(d)}else if(f.getCount()){c.select(f.last())}g=!0}else if(e===a.RIGHT||e===a.LEFT){if(d===-1&&e===a.LEFT){c.select(f.last());g=!0}else if(d>-1){if(e===a.RIGHT){if(d<(j-1)){c.select(d+1,a.shiftKey);g=!0}else if(!a.shiftKey){c.deselectAll();g=!0}}else if(e===a.LEFT&&(d>0)){c.select(d-1,a.shiftKey);g=!0}}}else if(e===a.A&&a.ctrlKey){c.selectAll();g=a.A}}if(g){b.preventKeyUpEvent=g;a.stopEvent();return}if(b.isExpanded&&e===a.ENTER&&b.picker.highlightedItem){b.preventKeyUpEvent=!0}if(b.enableKeyEvents){Ext.form.field.ComboBox.prototype.onKeyDown.apply(this,arguments)}if(!a.isSpecialKey()&&!a.hasModifier()){c.deselectAll()}},onKeyUp:function(c,f){var a=this,d=a.inputEl,b=d.dom.value,e=a.preventKeyUpEvent;if(a.preventKeyUpEvent){c.stopEvent();if(e===!0||c.getKey()===e){delete a.preventKeyUpEvent}return}if(a.multiSelect&&a.delimiterRegexp&&a.delimiterRegexp.test(b)||(a.createNewOnEnter&&c.getKey()===c.ENTER)){if(a.createNewOnEnter&&b){a.ariaErrorEl.dom.innerHTML=Ext.String.formatEncode(a.ariaSelectedText,b)}b=Ext.Array.clean(b.split(a.delimiterRegexp));d.dom.value='';a.setValue(a.valueStore.getRange().concat(b));d.focus()}Ext.form.field.ComboBox.prototype.onKeyUp.call(this,c,f)},onEsc:function(c){var b=this,a=b.selectionModel,d=b.isExpanded;Ext.form.field.ComboBox.prototype.onEsc.call(this,c);if(!d&&a.getCount()>0){a.deselectAll()}c.stopEvent()},onTypeAhead:function(){var b=this,e=b.displayField,d=b.inputEl.dom,f=b.getStore().findRecord(e,d.value),a,g,c;if(f){a=f.get(e);g=a.length;c=d.value.length;if(c!==0&&c!==g){b.lastMutatedValue=a;d.value=a;b.selectText(c,a.length)}}},onItemListClick:function(c){var a=this,d=a.selectionModel,b=c.getTarget(a.tagItemSelector),e=b?c.getTarget(a.tagItemCloseSelector):!1;if(a.readOnly||a.disabled){return}c.stopPropagation();if(b){if(e){a.removeByListItemNode(b);if(a.valueStore.getCount()>0){a.fireEvent('select',a,a.valueStore.getRange())}}else {a.toggleSelectionByListItemNode(b,c.shiftKey)}if(!Ext.supports.TouchEvents){a.inputEl.focus()}}else {if(d.getCount()>0){d.deselectAll()}a.inputEl.focus();if(a.triggerOnClick){a.onTriggerClick()}}},onItemMouseDown:function(a){if(a.target!==this.inputEl.dom){a.preventDefault()}},getMultiSelectItemMarkup:function(){var a=this,b=(a._getChildElCls&&a._getChildElCls())||'';if(!a.multiSelectItemTpl){if(!a.labelTpl){a.labelTpl='{'+a.displayField+'}'}a.labelTpl=a.lookupTpl('labelTpl');if(a.tipTpl){a.tipTpl=a.lookupTpl('tipTpl')}a.multiSelectItemTpl=new Ext.XTemplate(['<tpl for=".">','<li data-selectionIndex="{[xindex - 1]}" data-recordId="{internalId}" role="presentation" class="'+a.tagItemCls+b,'<tpl if="this.isSelected(values)">',' '+a.tagSelectedCls,'</tpl>','{%','values = values.data;','%}',a.tipTpl?'" data-qtip="{[this.getTip(values)]}">':'">','<div role="presentation" class="'+a.tagItemTextCls+'">{[this.getItemLabel(values)]}</div>','<div role="presentation" class="'+a.tagItemCloseCls+b+'"></div>','</li>','</tpl>',{isSelected:function(b){return a.selectionModel.isSelected(b)},getItemLabel:function(b){return Ext.String.htmlEncode(a.labelTpl.apply(b))},getTip:function(b){return Ext.String.htmlEncode(a.tipTpl.apply(b))},strict:!0}])}if(!a.multiSelectItemTpl.isTemplate){a.multiSelectItemTpl=this.lookupTpl('multiSelectItemTpl')}return a.multiSelectItemTpl.apply(a.valueCollection.getRange())},applyMultiselectItemMarkup:function(){var a=this,b=a.itemList;if(b){b.select('.x-tagfield-item').destroy();a.inputElCt.insertHtml('beforeBegin',a.getMultiSelectItemMarkup());a.autoSize()}},getAriaListMarkup:function(){var a=this,c,b;if(!a.ariaListItemTpl){a.ariaListItemTpl=new Ext.XTemplate(['<tpl for=".">','<li id="'+a.id+'-{internalId}" role="option"',' class="x-tagfield-arialist-item"',' aria-selected="{[this.isPicked(values)]}"','  data-recordId="{internalId}"','>','{[this.getItemLabel(values.data)]}','</li>','</tpl>',{isPicked:function(b){return a.filterPicked(b)?'false':'true'},isSelected:function(b){return a.selectionModel.isSelected(b)?'true':'false'},getItemLabel:function(b){return Ext.String.htmlEncode(a.labelTpl.apply(b))},strict:!0}])}if(!a.ariaListItemTpl.isTemplate){a.ariaListtemTpl=a.lookupTpl('ariaListItemTpl')}b=a.valueCollection.getRange();return a.ariaListItemTpl.apply(b)},applyAriaListMarkup:function(){var b=this,a=b.ariaList;if(a){a.select('*').destroy();a.insertHtml('afterBegin',b.getAriaListMarkup())}},getAriaSelectedText:function(b){var a=this;if(!a.ariaSelectedItemTpl){a.ariaSelectedItemTpl=new Ext.XTemplate(['<tpl for="." between=", ">','{[this.getItemLabel(values.data)]}','</tpl>',{getItemLabel:function(c){return Ext.String.htmlEncode(a.labelTpl.apply(c))},strict:!0}])}if(!a.ariaSelectedItemTpl.isTemplate){a.ariaSelectedItemTpl=a.lookupTpl('ariaSelectedItemTpl')}return Ext.String.format(a.ariaSelectedText,a.ariaSelectedItemTpl.apply(b))},applyAriaSelectedText:function(){var a=this,c=a.selectedText,b,d;if(c){b=a.valueCollection.getRange();d=b.length?a.getAriaSelectedText(b):a.ariaNoneSelectedText;c.dom.innerHTML=Ext.String.htmlEncode(d)}},getRecordByListItemNode:function(a){return this.valueCollection.items[Number(a.getAttribute('data-selectionIndex'))]},toggleSelectionByListItemNode:function(e,d){var c=this,a=c.getRecordByListItemNode(e),b=c.selectionModel;if(a){if(b.isSelected(a)){b.deselect(a)}else {b.select(a,d)}}},removeByListItemNode:function(c){var b=this,a=b.getRecordByListItemNode(c);if(a){b.pickerSelectionModel.deselect(a)}},getDisplayValue:function(){return this.getRawValue()},getRawValue:function(){var e=this,b=e.getValueRecords(),c=[],a,d;for(a=0,d=b.length;a<d;a++){c.push(b[a].data[e.displayField])}return c.join(',')},setRawValue:function(a){return},removeValue:function(b){var c=this,g=c.valueCollection,f,d,a,e=[];if(b){b=Ext.Array.from(b);for(d=0,f=b.length;d<f;++d){a=b[d];if(!a.isModel){a=g.byValue.get(a)}if(a){e.push(a)}}c.valueCollection.beginUpdate();c.pickerSelectionModel.deselect(e);c.valueCollection.endUpdate()}},getValue:function(){var a=Ext.form.field.ComboBox.prototype.getValue.call(this);if(a){a=Ext.Array.from(a)}return a},setValue:function(a,l,r){var b=this,k=b.valueStore,j=b.valueField,g=[],f=b.store,o=b.autoLoadOnValue,q=f.getCount()>0||f.isLoaded(),p=f.hasPendingLoad(),s=o&&!q&&!p,e,n,d,c,m,i,h;if(Ext.isEmpty(a)){a=null;h=!0}else if(Ext.isString(a)&&b.multiSelect){a=a.split(b.delimiter)}else {a=Ext.Array.from(a,!0)}if(!h&&b.queryMode==='remote'&&!f.isEmptyStore&&r!==!0&&s){for(d=0,n=a.length;d<n;d++){e=a[d];if(!e||!e.isModel){c=k.findExact(j,e);if(c>-1){a[d]=k.getAt(c)}else {c=b.findRecord(j,e);if(!c){if(b.forceSelection){g.push(e)}else {c={};c[b.valueField]=e;c[b.displayField]=e;m=b.valueStore.getModel();c=new m(c)}}if(c){a[d]=c}}}}if(g.length){i={};i[b.valueParam||b.valueField]=g.join(b.delimiter);f.load({params:i,callback:function(){b.setValue(a,l,!0);b.autoSize();b.lastQuery=!1}});return !1}}if(!h&&!b.multiSelect&&a.length>0){for(d=a.length-1;d>=0;d--){if(a[d].isModel){a=a[d];break}}if(Ext.isArray(a)){a=a[a.length-1]}}return Ext.form.field.ComboBox.prototype.setValue.call(this,a,l)},updateValue:function(){var a=this,b=a.valueCollection.getRange(),d=b.length,c;for(c=0;c<d;c++){b[c]=b[c].get(a.valueField)}a.setHiddenValue(b);a.value=a.multiSelect?b:b[0];if(!Ext.isDefined(a.value)){a.value=undefined}a.applyMultiselectItemMarkup();a.applyAriaListMarkup();a.applyAriaSelectedText();a.checkChange()},getValueRecords:function(){return this.valueCollection.getRange()},getSubmitData:function(){var b=this,a=Ext.form.field.ComboBox.prototype.getSubmitData.apply(this,arguments);if(b.multiSelect&&b.encodeSubmitValue&&a&&a[b.name]){a[b.name]=Ext.encode(a[b.name])}return a},assertValue:function(){var a=this,b=a.inputEl.dom.value,d=!Ext.isEmpty(b)?a.findRecordByDisplay(b):!1,c=!1;if(!d&&!a.forceSelection&&a.createNewOnBlur&&!Ext.isEmpty(b)){c=b}else if(d){c=d}if(c){a.addValue(c)}a.inputEl.dom.value='';a.collapse();a.refreshEmptyText()},isEqual:function(b,c){var f=Ext.Array.from,e=this.valueField,a,d,g,h;b=f(b);c=f(c);d=b.length;if(d!==c.length){return !1}for(a=0;a<d;a++){g=b[a].isModel?b[a].get(e):b[a];h=c[a].isModel?c[a].get(e):c[a];if(g!==h){return !1}}return !0},onFocus:function(){var c=this,a=c.focusCls,b=c.itemList;if(a&&b){b.addCls(a)}Ext.form.field.ComboBox.prototype.onFocus.apply(this,arguments)},onBlur:function(){var c=this,a=c.focusCls,b=c.itemList;if(a&&b){b.removeCls(a)}Ext.form.field.ComboBox.prototype.onBlur.apply(this,arguments)},renderActiveError:function(){var a=this,c=a.invalidCls,b=a.itemList,d=a.hasActiveError();if(c&&b){b[d?'addCls':'removeCls'](a.invalidCls+'-field')}Ext.form.field.ComboBox.prototype.renderActiveError.apply(this,arguments)},autoSize:function(){var a=this;if(a.grow&&a.rendered){a.autoSizing=!0;a.updateLayout()}return a},afterComponentLayout:function(){var a=this,b;if(a.autoSizing){b=a.getHeight();if(b!==a.lastInputHeight){if(a.isExpanded){a.alignPicker()}a.fireEvent('autosize',a,b);a.lastInputHeight=b;a.autoSizing=!1}}}},0,["tagfield"],["component","box","field","textfield","pickerfield","combobox","combo","tagfield"],{"component":!0,"box":!0,"field":!0,"textfield":!0,"pickerfield":!0,"combobox":!0,"combo":!0,"tagfield":!0},["widget.tagfield"],0,[Ext.form.field,'Tag'],0));(Ext.cmd.derive('Ext.picker.Time',Ext.view.BoundList,{config:{store:!0},statics:{createStore:function(g,f){var c=Ext.Date,d=c.clearTime,a=this.prototype.initDate,e=[],b=d(new Date(a[0],a[1],a[2])),h=c.add(d(new Date(a[0],a[1],a[2])),'mi',(24*60)-1);while(b<=h){e.push({disp:c.dateFormat(b,g),date:b});b=c.add(b,'mi',f)}return new Ext.data.Store({model:Ext.picker.Time.prototype.modelType,data:e})}},increment:15,format:"g:i A",displayField:'disp',initDate:[2008,0,1],componentCls:'x-timepicker',alignOnScroll:!1,loadMask:!1,initComponent:function(){var b=this,d=Ext.Date,c=d.clearTime,a=b.initDate;b.absMin=c(new Date(a[0],a[1],a[2]));b.absMax=d.add(c(new Date(a[0],a[1],a[2])),'mi',(24*60)-1);b.updateList();Ext.view.BoundList.prototype.initComponent.call(this)},setStore:function(a){this.store=(a===!0)?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(b){var a=this.initDate;b.setFullYear(a[0],a[1],a[2]);return b},updateList:function(){var a=this,e=a.normalizeDate(a.minValue||a.absMin),d=a.normalizeDate(a.maxValue||a.absMax),b=a.getStore().getFilters(),c=a.rangeFilter;b.beginUpdate();if(c){b.remove(c)}c=a.rangeFilter=new Ext.util.Filter({filterFn:function(b){var a=b.get('date');return a>=e&&a<=d}});b.add(c);b.endUpdate()}},0,["timepicker"],["component","box","dataview","boundlist","timepicker"],{"component":!0,"box":!0,"dataview":!0,"boundlist":!0,"timepicker":!0},["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",formatText:'Expected time format HH:MM space AM or PM',increment:15,pickerMaxHeight:300,selectOnTab:!0,snapToIncrement:!1,valuePublishEvent:['select','blur'],initDate:'1/1/2008',initDateParts:[2008,0,1],initDateFormat:'j/n/Y',queryMode:'local',displayField:'disp',valueField:'date',initComponent:function(){var a=this,c=a.minValue,b=a.maxValue;if(c){a.setMinValue(c)}if(b){a.setMaxValue(b)}a.displayTpl=new Ext.XTemplate('<tpl for=".">{[typeof values === "string" ? values : this.formatDate(values["'+a.displayField+'"])]}<tpl if="xindex < xcount">'+a.delimiter+'</tpl></tpl>',{formatDate:a.formatDate.bind(a)});a.store=Ext.picker.Time.createStore(a.format,a.increment);Ext.form.field.ComboBox.prototype.initComponent.call(this);a.getPicker()},afterQuery:function(b){var a=this;Ext.form.field.ComboBox.prototype.afterQuery.call(this,b);if(a.value===null&&a.getRawValue()&&a.validateOnChange){a.validate()}},isEqual:function(b,c){var e=Ext.Array.from,f=Ext.Date.isEqual,a,d;b=e(b);c=e(c);d=b.length;if(d!==c.length){return !1}for(a=0;a<d;a++){if(!(c[a] instanceof Date)||!(b[a] instanceof Date)||!f(c[a],b[a])){return !1}}return !0},setMinValue:function(c){var a=this,b=a.picker;a.setLimit(c,!0);if(b){b.setMinValue(a.minValue)}},setMaxValue:function(c){var a=this,b=a.picker;a.setLimit(c,!1);if(b){b.setMaxValue(a.maxValue)}},setLimit:function(b,e){var d=this,a,c;if(Ext.isString(b)){a=d.parseDate(b)}else if(Ext.isDate(b)){a=b}if(a){c=d.getInitDate();c.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds())}else {c=null}d[e?'minValue':'maxValue']=c},getInitDate:function(d,b,c){var a=this.initDateParts;return new Date(a[0],a[1],a[2],d||0,b||0,c||0,0)},valueToRaw:function(a){return this.formatDate(this.parseDate(a))},getErrors:function(j){j=arguments.length>0?j:this.getRawValue();var a=this,e=Ext.String.format,b=Ext.form.field.ComboBox.prototype.getErrors.call(this,j),i=a.minValue,h=a.maxValue,f=a.displayTplData,k=a.getRawValue(),g,l,c,d;if(f&&f.length>0){for(g=0,l=f.length;g<l;g++){d=f[g];d=d.date||d.disp;c=a.parseDate(d);if(!c){b.push(e(a.invalidText,d,Ext.Date.unescapeFormat(a.format)));continue}}}else if(k.length){c=a.parseDate(k);if(!c){b.push(e(a.invalidText,k,Ext.Date.unescapeFormat(a.format)))}}if(!b.length){if(i&&c<i){b.push(e(a.minText,a.formatDate(i)))}if(h&&c>h){b.push(e(a.maxText,a.formatDate(h)))}}return b},formatDate:function(a){var c=[],b,d;a=Ext.Array.from(a);for(b=0,d=a.length;b<d;b++){c.push(Ext.form.field.Date.prototype.formatDate.call(this,a[b]))}return c.join(this.delimiter)},parseDate:function(c){var b=this,a=c,f=b.altFormats,d=b.altFormatsArray,e=0,g;if(c&&!Ext.isDate(c)){a=b.safeParse(c,b.format);if(!a&&f){d=d||f.split('|');g=d.length;for(;e<g&&!a;++e){a=b.safeParse(c,d[e])}}}if(a&&b.snapToIncrement){a=new Date(Ext.Number.snap(a.getTime(),b.increment*60*1000))}return a},safeParse:function(e,c){var f=this,b=Ext.Date,a,d=null;if(b.formatContainsDateInfo(c)){d=b.parse(e,c)}else {a=b.parse(f.initDate+' '+e,f.initDateFormat+' '+c);if(a){d=a}}return d},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(e){var d=this,c,b,a,f;if(d.multiSelect){b=[];c=Ext.Array.from(e);for(a=0,f=c.length;a<f;a++){b.push(d.parseDate(c[a]))}return b}return d.parseDate(e)},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":!0,"box":!0,"field":!0,"textfield":!0,"pickerfield":!0,"combobox":!0,"combo":!0,"timefield":!0},["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":!0,"box":!0,"field":!0,"textfield":!0,"triggerfield":!0,"trigger":!0},["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:!0,generation:0,constructor:function(a){this.view=a},setPosition:function(a,c){var b=this;if(arguments.length===1){if(a.length){c=a[0];a=a[1]}else if(a.isCellContext){return b.setAll(a.view,a.rowIdx,a.colIdx,a.record,a.column)}else {if(a.view){b.view=a.view}c=a.column;a=a.row}}b.setRow(a);b.setColumn(c);return b},setAll:function(f,d,c,e,b){var a=this;a.view=f;a.rowIdx=d;a.colIdx=c;a.record=e;a.column=b;a.generation++;return a},setRow:function(b){var a=this,c=a.view.dataSource,e=a.record,d;if(b!==undefined){if(typeof b==='number'){d=c.getCount();b=b<0?Math.max(d+b,0):Math.max(Math.min(b,d-1),0);a.rowIdx=b;a.record=c.getAt(b)}else if(b.isModel){a.record=b;a.rowIdx=c.indexOf(b)}else if(b.tagName||b.isElement){a.record=a.view.getRecord(b);a.rowIdx=a.record?(a.record.isCollapsedPlaceholder?c.indexOfPlaceholder(a.record):c.indexOf(a.record)):-1}}if(a.record!==e){a.generation++}return a},setColumn:function(b){var a=this,c=a.view.getVisibleColumnManager(),d=a.column;if(b!==undefined){if(typeof b==='number'){a.colIdx=b;a.column=c.getHeaderAtIndex(b)}else if(b.isHeader){a.column=b;a.colIdx=c.indexOf(b)}}if(a.column!==d){a.generation++}return a},setView:function(a){this.view=a;this.refresh()},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 a=this,b=new a.self(a.view);b.rowIdx=a.rowIdx;b.colIdx=a.colIdx;b.record=a.record;b.column=a.column;return b},privates:{isFirstColumn:function(){var a=this.getCell(!0);if(a){return !a.previousSibling}},isLastColumn:function(){var a=this.getCell(!0);if(a){return !a.nextSibling}},isLastRenderedRow:function(){return this.view.all.endIndex===this.rowIdx},getLastColumnIndex:function(){var a=this.getRow(!0);if(a){return a.lastChild.cellIndex}return -1},refresh:function(){var a=this,c=a.view.dataSource.indexOf(a.record),b=a.view.getVisibleColumnManager().indexOf(a.column);a.setRow(c===-1?a.rowIdx:a.record);a.setColumn(b===-1?a.colIdx:a.column)},navigate:function(c){var a=this,b=a.view.getVisibleColumnManager().getColumns();switch(c){case -1:do{if(!a.colIdx){a.colIdx=b.length-1}else {a.colIdx--}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;case 1:do{if(a.colIdx>=b.length){a.colIdx=0}else {a.colIdx++}a.setColumn(a.colIdx)}while(!a.getCell(!0));break;}}},statics:{compare:function(a,b){return a.rowIdx-b.rowIdx||a.colIdx-b.colIdx}}},1,0,0,0,0,0,[Ext.grid,'CellContext'],0));(Ext.cmd.derive('Ext.grid.CellEditor',Ext.Editor,{isCellEditor:!0,alignment:'l-l!',hideEl:!1,cls:'x-small-editor x-grid-editor x-grid-cell-editor',treeNodeSelector:'.x-tree-node-text',shim:!1,shadow:!1,floating:!0,alignOnScroll:!1,useBoundValue:!1,focusLeaveAction:'completeEdit',setGrid:function(a){this.grid=a},startEdit:function(a,c,b){this.context=this.editingPlugin.context;Ext.Editor.prototype.startEdit.call(this,a,c,b)},onShow:function(){var b=this,a=b.boundEl.dom.querySelector(b.context.view.innerSelector);if(a){if(b.isForTree){a=a.querySelector(b.treeNodeSelector)}Ext.fly(a).hide()}Ext.Editor.prototype.onShow.apply(this,arguments)},onFocusEnter:function(){var b=this,a=b.context,c=a.view;b.reattachToBody();a.node=c.getNode(a.record);a.row=c.getRow(a.record);a.cell=a.getCell(!0);a.rowIdx=c.indexOf(a.row);b.realign(!0);Ext.Editor.prototype.onFocusEnter.apply(this,arguments);b.focusEnterEvent=null},onFocusLeave:function(d){var a=this,b=a.context.view,c=Ext.fly(d.relatedTarget);if(a[a.focusLeaveAction]()===!1){d.event.stopEvent();return}delete a.focusLeaveAction;if(!b.destroyed&&b.el.contains(c)&&(!c.isAncestor(d.target)||c===b.el)&&!c.up(b.getCellSelector(),b.el,!0)){a.context.grid.setActionableMode(!1,b.actionPosition)}a.cacheElement();Ext.container.Container.prototype.onFocusLeave.apply(a,arguments)},completeEdit:function(c){var a=this,b=a.context;if(a.editing){b.value=a.field.value;if(a.editingPlugin.validateEdit(b)===!1){if(b.cancel){b.value=a.originalValue;a.editingPlugin.cancelEdit()}return !!b.cancel}}Ext.Editor.prototype.completeEdit.call(this,c)},onEditComplete:function(f,g){var a=this,c=Ext.Element.getActiveElement(),e=a.context,d=e&&e.store,b;a.editing=!1;b=a.boundEl=a.context.getCell();if(b){a.restoreCell();if(b.contains(c)&&b.dom!==c){b.focus()}}Ext.Editor.prototype.onEditComplete.apply(this,arguments);if(g){a.editingPlugin.cancelEdit(a);if(f&&d&&d.isExpandingOrCollapsing){a.cacheElement()}}else {a.editingPlugin.onEditComplete(a,a.getValue(),a.startValue)}},cacheElement:function(a){if((!this.editing||a)&&!this.destroyed){this.detachFromBody()}},onHide:function(){this.cacheElement(!0);Ext.Editor.superclass.onHide.apply(this,arguments)},onSpecialKey:function(h,a,d){var b=this,e=a.getKey(),f=b.completeOnEnter&&e===a.ENTER&&(!d||!d.fromBoundList),c=b.cancelOnEsc&&e===a.ESC,g=b.editingPlugin.view;if(f||c){a.stopEvent();if(c){b.focusLeaveAction='cancelEdit'}g.ownerGrid.setActionableMode(!1)}},getRefOwner:function(){return this.column&&this.column.getView()},restoreCell:function(){var b=this,a=b.boundEl.dom.querySelector(b.context.view.innerSelector);if(a){if(b.isForTree){a=a.querySelector(b.treeNodeSelector)}Ext.fly(a).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(!1,10)},realign:function(j){var a=this,c=a.boundEl,b=c.dom.querySelector(a.context.view.innerSelector),d=b.firstChild,f=c.getWidth(),h=Ext.Array.clone(a.offsets),k=a.grid,e,i='',g=!d||(d.nodeType===3&&!(Ext.String.trim(i=d.data).length));if(a.isForTree){e=a.getTreeNodeOffset(b);f-=Math.abs(e);h[0]+=e}if(k.columnLines){f-=c.getBorderWidth('rl')}if(j===!0){a.field.setWidth(f)}if(g){b.innerHTML='X'}a.alignTo(c,a.alignment,h);if(g){b.firstChild.data=i}},getTreeNodeOffset:function(a){return Ext.fly(a.querySelector(this.treeNodeSelector)).getOffsetsTo(a)[0]}},0,["celleditor"],["component","box","container","editor","celleditor"],{"component":!0,"box":!0,"container":!0,"editor":!0,"celleditor":!0},["widget.celleditor"],0,[Ext.grid,'CellEditor'],0));(Ext.cmd.derive('Ext.grid.ColumnComponentLayout',Ext.layout.component.Auto,{type:'columncomponent',setWidthInDom:!0,_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(d){var b=this,a=b.owner,c=d.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c){a.el.setWidth('')}a.textContainerEl[c&&!a.isGroupHeader?'addCls':'removeCls'](b.columnAutoCls);a.titleEl.setStyle(b._paddingReset)},publishInnerHeight:function(a,e){var d=this,b=d.owner,c;if(b.getRootHeaderCt().hiddenHeaders){a.setProp('innerHeight',0);return}if(!a.hasRawContent){if(b.headerWrap&&!a.hasDomProp('width')){d.done=!1;return}c=e-a.getBorderInfo().height;a.setProp('innerHeight',c-b.titleEl.getHeight(),!1)}},measureContentHeight:function(a){return a.el.dom.offsetHeight},publishInnerWidth:function(a,b){if(!a.hasRawContent){a.setProp('innerWidth',b-a.getBorderInfo().width,!1)}},calculateOwnerHeightFromContentHeight:function(a,c){var d=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),b=this.owner;if(!a.hasRawContent){if(!b.headerWrap||a.hasDomProp('width')){return c+b.titleEl.getHeight()+a.getBorderInfo().height}return null}return d},calculateOwnerWidthFromContentWidth:function(a,d){var c=this.owner,f=a.getPaddingInfo().width,e=this.getTriggerOffset(c,a),b;if(c.isGroupHeader){b=d}else {b=Math.max(d,c.textEl.getWidth()+a.titleContext.getPaddingInfo().width)}return b+f+e},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','Ext.layout.Fit'],itemCls:'x-fit-item',type:'fit',manageMargins:!0,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(d,b){var a=b||this.owner.getSizeModel(),c=(a.width.shrinkWrap?0:1)|(a.height.shrinkWrap?0:2);return this.sizePolicies[c]},beginLayoutCycle:function(a,p){var f=this,j=f.lastHeightModel&&f.lastHeightModel.calculated,m=f.lastWidthModel&&f.lastWidthModel.calculated,l=m||j,h=0,i=0,b,k,g,e,q,n,c,d,o,r;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(l&&a.targetContext.el.dom.tagName.toUpperCase()!=='TD'){l=m=j=!1}k=a.childItems;q=k.length;for(g=0;g<q;++g){e=k[g];if(p){b=e.target;c=b.minHeight;d=b.minWidth;if(d||c){n=e.marginInfo||e.getMarginInfo();c+=n.height;d+=n.height;if(h<c){h=c}if(i<d){i=d}}}if(l){o=e.el.dom.style;if(j){o.height=''}if(m){o.width=''}}}if(p){a.maxChildMinHeight=h;a.maxChildMinWidth=i}b=a.target;a.overflowX=(!a.widthModel.shrinkWrap&&a.maxChildMinWidth&&b.scrollFlags.x)||r;a.overflowY=(!a.heightModel.shrinkWrap&&a.maxChildMinHeight&&b.scrollFlags.y)||r},calculate:function(a){var d=this,p=a.childItems,m=p.length,b=d.getContainerSize(a),c={length:m,ownerContext:a,targetSize:b},o=a.widthModel.shrinkWrap,n=a.heightModel.shrinkWrap,j=a.overflowX,k=a.overflowY,e,f,l,g,i,h;a.state.info=c;if(j||k){e=d.getScrollbarsNeeded(j&&b.width,k&&b.height,a.maxChildMinWidth,a.maxChildMinHeight);if(e){f=Ext.getScrollbarSize();if(e&1){b.height-=f.height}if(e&2){b.width-=f.width}}}if(m>0){for(g=0;g<m;++g){c.index=g;d.fitItem(p[g],c)}}else {c.contentWidth=c.contentHeight=0}if(n||o){l=a.targetContext.getPaddingInfo();if(o){if(k&&!b.gotHeight){d.done=!1}else {i=c.contentWidth+l.width;if(e&2){i+=f.width}if(!a.setContentWidth(i)){d.done=!1}}}if(n){if(j&&!b.gotWidth){d.done=!1}else {h=c.contentHeight+l.height;if(e&1){h+=f.height}if(!a.setContentHeight(h)){d.done=!1}}}}},fitItem:function(b,a){var c=this;if(b.invalid){c.done=!1;return}a.margins=b.getMarginInfo();a.needed=a.got=0;c.fitItemWidth(b,a);c.fitItemHeight(b,a);if(a.got!==a.needed){c.done=!1}},fitItemWidth:function(b,a){var c,d;if(a.ownerContext.widthModel.shrinkWrap){d=b.getProp('width')+a.margins.width;c=a.contentWidth;if(c===undefined){a.contentWidth=d}else {a.contentWidth=Math.max(c,d)}}else if(b.widthModel.calculated){++a.needed;if(a.targetSize.gotWidth){++a.got;this.setItemWidth(b,a)}else {return}}this.positionItemX(b,a)},fitItemHeight:function(b,a){var c,d;if(a.ownerContext.heightModel.shrinkWrap){d=b.getProp('height')+a.margins.height;c=a.contentHeight;if(c===undefined){a.contentHeight=d}else {a.contentHeight=Math.max(c,d)}}else if(b.heightModel.calculated){++a.needed;if(a.targetSize.gotHeight){++a.got;this.setItemHeight(b,a)}else {return}}this.positionItemY(b,a)},positionItemX:function(c,b){var a=b.margins;if(b.index||a.left){c.setProp('x',a.left)}if(a.width&&b.ownerContext.widthModel.shrinkWrap){c.setProp('margin-right',a.width)}},positionItemY:function(c,b){var a=b.margins;if(b.index||a.top){c.setProp('y',a.top)}if(a.height&&b.ownerContext.heightModel.shrinkWrap){c.setProp('margin-bottom',a.height)}},setItemHeight:function(b,a){b.setHeight(a.targetSize.height-a.margins.height)},setItemWidth:function(b,a){b.setWidth(a.targetSize.width-a.margins.width)}},0,0,0,0,["layout.fit"],0,[Ext.layout.container,'Fit',Ext.layout,'FitLayout',Ext.layout,'Fit'],0));(Ext.cmd.derive('Ext.panel.Table',Ext.panel.Panel,{extraBaseCls:'x-grid',extraBodyCls:'x-grid-body',actionableModeCls:'x-grid-actionable',noHeaderBordersCls:'x-no-header-borders',defaultBindProperty:'store',layout:'fit',manageLayoutScroll:!1,ariaRole:'presentation',config:{focused:null,headerBorders:!0,hideHeaders:null},publishes:['selection'],twoWayBindable:['selection'],selection:null,autoLoad:!1,variableRowHeight:!1,numFromEdge:2,trailingBufferZone:10,leadingBufferZone:20,hasView:!1,viewType:null,deferRowRender:!1,sortableColumns:!0,multiColumnSort:!1,enableLocking:!1,scrollerOwner:!0,enableColumnMove:!0,sealedColumns:!1,enableColumnResize:!0,columnLines:!1,rowLines:!0,bufferedRenderer:!0,preciseHeight:!1,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:!0,constructor:function(d){var a=this,c=d&&d.ownerGrid,b;a.ownerGrid=c||a;a.actionables=c?c.actionables:[];Ext.panel.Panel.prototype.constructor.call(this,d);b=a.store;b.trackStateChanges=!0;if(a.autoLoad){if(!b.isEmptyStore){b.load()}}},registerActionable:function(a){Ext.Array.include(this.actionables,a)},initComponent:function(){var a=this,d=a.columns||a.colModel||[],i=a.selection,c,h,f,j,g,e,b;if(i){a.selection=null;a.setSelection(i)}c=a.store;if(c&&Ext.isObject(c)&&!c.isStore&&!c.storeId){c=Ext.apply({autoDestroy:!0},c)}c=a.store=Ext.data.StoreManager.lookup(c||'ext-empty-store');a.enableLocking=a.enableLocking||a.hasLockedColumns(d);if(a.plugins){a.plugins=a.constructPlugins()}if(a.columnLines){a.addBodyCls(a.colLinesCls)}a.addBodyCls(a.rowLines?a.rowLinesCls:a.noRowLinesCls);a.addBodyCls(a.extraBodyCls);if(a.enableLocking){if(!a.mixins.lockable){a.self.mixin('lockable',Ext.grid.locking.Lockable)}a.injectLockable()}else {if(d.isRootHeader){a.headerCt=b=d;b.grid=a;b.forceFit=!!a.forceFit;d=[];a.columnManager=b.columnManager;a.visibleColumnManager=b.visibleColumnManager}else {e={grid:a,$initParent:a,forceFit:a.forceFit,sortable:a.sortableColumns,enableColumnMove:a.enableColumnMove,enableColumnResize:a.enableColumnResize,columnLines:a.columnLines,sealed:a.sealedColumns};if(Ext.isObject(d)){Ext.apply(e,d);d=d.items;delete e.items}a.headerCt=b=new Ext.grid.header.Container(e)}if(Ext.isDefined(a.enableColumnHide)){b.enableColumnHide=a.enableColumnHide}}a.scrollTask=new Ext.util.DelayedTask(a.syncHorizontalScroll,a);a.cls=(a.cls||'')+(' '+a.extraBaseCls);delete a.autoScroll;g=a.plugins&&Ext.Array.findBy(a.plugins,function(a){return a.isBufferedRenderer});if(g){a.bufferedRenderer=g}if(!a.hasView){if(c.isBufferedStore&&!c.getRemoteSort()){for(f=0,j=d.length;f<j;f++){d[f].sortable=!1}}a.relayHeaderCtEvents(b);a.features=a.features||[];if(!Ext.isArray(a.features)){a.features=[a.features]}a.viewConfig=a.viewConfig||{};h=a.getView();a.items=[h];a.hasView=!0;a.bindStore(c,!0);a.mon(h,{viewready:a.onViewReady,refresh:a.onRestoreHorzScroll,scope:a})}a.selModel=a.view.getSelectionModel();a.selModel.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.relayEvents(a.view,['beforeitemlongpress','beforeitemmousedown','beforeitemmouseup','beforeitemmouseenter','beforeitemmouseleave','beforeitemclick','beforeitemdblclick','beforeitemcontextmenu','itemlongpress','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','beforeselect','select','beforedeselect','deselect','beforerowexit']);if(!a.selModel.isSpreadsheetModel){a.relayEvents(a.view,['selectionchange'])}if(b){b.view=a.view;(a.dockedItems=Ext.Array.from(a.dockedItems,!0)).unshift(b);b.add(d)}a.columns=a.headerCt.getGridColumns();Ext.panel.Panel.prototype.initComponent.call(this);a.syncHeaderVisibility();if(a.enableLocking){a.afterInjectLockable()}a.addStateEvents(['columnresize','columnmove','columnhide','columnshow','sortchange','filteractivate','filterdeactivate','filterchange','groupchange'])},updateHideHeaders:function(a){if(!this.isConfiguring){this.syncHeaderVisibility()}},beforeRender:function(){var a=this,b=a.bufferedRenderer,c;if(a.lockable){a.getProtoBody().addCls(a.lockingBodyCls)}else {if(b&&a.getSizeModel().height.auto){a.bufferedRenderer=b=!1}if(b&&!b.isBufferedRenderer){b={xclass:'Ext.grid.plugin.BufferedRenderer'};Ext.copy(b,a,'variableRowHeight,numFromEdge,trailingBufferZone,leadingBufferZone,scrollToLoadBuffer',!0);a.bufferedRenderer=a.addPlugin(b)}c=a.ariaRenderAttributes||(a.ariaRenderAttributes={});c['aria-readonly']=!a.isEditable;c['aria-multiselectable']=a.selModel.selectionMode!=='SINGLE'}Ext.panel.Panel.prototype.beforeRender.apply(this,arguments)},beforeLayout:function(){var a=this.mixins.lockable;if(a){a.beforeLayout.call(this)}Ext.panel.Panel.prototype.beforeLayout.call(this)},onHide:function(a,c,b){this.getView().onOwnerGridHide();Ext.panel.Panel.prototype.onHide.call(this,a,c,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()},getScrollable:function(){return this.scrollable||this.view.getScrollable()},focus:function(){this.getView().focus()},disableColumnHeaders:function(){this.headerCt.disable()},enableColumnHeaders:function(){this.headerCt.enable()},hasLockedColumns:function(a){var b,d,c;if(a.isRootHeader){a=a.items.items}else if(Ext.isObject(a)){a=a.items}for(b=0,d=a.length;b<d;b++){c=a[b];if(!c.processed&&c.locked){return !0}}},relayHeaderCtEvents:function(a){this.relayEvents(a,['columnresize','columnmove','columnhide','columnshow','columnschanged','sortchange','headerclick','headercontextmenu','headertriggerclick'])},getState:function(){var b=this,a=Ext.panel.Panel.prototype.getState.call(this),c=b.store.getState();a=b.addPropertyToState(a,'columns',b.headerCt.getColumnsState());if(c){a.storeState=c}return a},applyState:function(d){var f=this,a=d.sort,c=d.storeState,e=f.store,h=d.columns=f.buildColumnHash(d.columns),g,b;Ext.panel.Panel.prototype.applyState.apply(this,arguments);if(h){f.headerCt.applyColumnsState(h,c)}if(a){if(e.getRemoteSort()){e.sort({property:a.property,direction:a.direction,root:a.root},null,!1)}else {e.sort(a.property,a.direction)}}else if(c){g=this.getBind();b=g&&g.store;if(b&&b.isBinding){f.getViewModel().bind('{'+b.stub.path+'}',function(a){a.applyState(c)},this,{single:!0})}else {e.applyState(c)}}},buildColumnHash:function(c){var e,a,b,d;if(c){d={};for(b=0,e=c.length;b<e;b++){a=c[b];a.index=b;if(a.columns){a.columns=this.buildColumnHash(a.columns)}d[a.id]=a}return d}},getStore:function(){return this.store},onViewRefresh:function(b,a){this.onItemAdd(a,0)},onItemAdd:function(f,i,j,k){var b=this,h=f.length,e=b.freeRowContexts,g=b.liveRowContexts||(b.liveRowContexts={}),a,d,c;for(d=0;d<h;d++){c=f[d];if(!g[c.internalId]){a=e&&e.shift();if(!a){a=new Ext.grid.RowContext({ownerGrid:b})}b.liveRowContexts[c.internalId]=a;a.setRecord(c,i++)}}},onItemRemove:function(j,k,f,h){var d=this,g=d.freeRowContexts||(d.freeRowContexts=[]),e=d.liveRowContexts,i=f.length,b,c,a;for(b=0;b<i;b++){c=f[b].getAttribute('data-recordId');a=e[c];if(a){a.free(h);g.push(a);delete e[c]}}},createManagedWidget:function(d,b,a,c){return this.liveRowContexts[c.internalId].getWidget(d,b,a)},destroyManagedWidgets:function(b){var g=this,f=g.liveRowContexts,d=g.freeRowContexts,h=d&&d.length,c,e,a;for(e in f){a=f[e].widgets;if(a){Ext.destroy(a[b]);delete a[b]}}for(c=0;c<h;c++){a=d[c].widgets;if(a){Ext.destroy(a[b]);delete a[b]}}},getManagedWidgets:function(d){var e=this,b=e.liveRowContexts,a,c=[];for(a in b){c.push(b[a].widgets[d])}return c},getView:function(){var a=this,d,c,b;if(!a.view){b=a.viewConfig;d=b.scroll||a.scroll;c=a.scrollable;if(c==null&&b.scrollable==null&&d!==null){if(d===!0||d==='both'){c=!0}else if(d===!1||d==='none'){c=!1}else if(d==='vertical'){c={x:!1,y:!0}}else if(d==='horizontal'){c={x:!0,y:!1}}}b=Ext.apply({grid:a,ownerGrid:a.ownerGrid,deferInitialRefresh:a.deferRowRender,variableRowHeight:a.variableRowHeight,preserveScrollOnRefresh:!0,trackOver:a.trackMouseOver!==!1,throttledUpdate:a.throttledUpdate===!0,xtype:a.viewType,store:a.store,headerCt:a.headerCt,columnLines:a.columnLines,rowLines:a.rowLines,navigationModel:'grid',features:a.features,panel:a,emptyText:a.emptyText||''},a.viewConfig);if(!('scrollable' in b||'scroll' in b||'autoScroll' in b)&&c!=null){b.scrollable=c}b.$initParent=a;Ext.create(b);delete b.$initParent;if(a.view.emptyText){a.view.emptyText='<div class="'+a.emptyCls+'">'+a.view.emptyText+'</div>'}a.view.getComponentLayout().headerCt=a.headerCt;a.mon(a.view,{uievent:a.processEvent,scope:a});if(a.hasListeners.viewcreated){a.fireEvent('viewcreated',a,a.view)}}return a.view},getEmptyText:function(){return this.view.emptyText},setEmptyText:function(a){this.emptyText=a;this.view.setEmptyText('<div class="'+this.emptyCls+'">'+a+'</div>');return this},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(b){var a=this.view;a=a&&(a.normalView||a);if(a){a.setScrollable(b)}return b},processEvent:function(g,h,f,c,d,b,e,i){var a=b.position.column;if(a){return a.processEvent.apply(a,arguments)}},ensureVisible:function(b,a){this.doEnsureVisible(b,a)},scrollByDeltaY:function(b,a){this.getView().scrollBy(null,b,a)},scrollByDeltaX:function(b,a){this.getView().scrollBy(b,null,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,f,b,c,d){var a=this;if(a.optimizedColumnMove===!1){a.view.refreshView()}else {a.view.moveColumn(c,d,b)}a.delayScroll()},onHeaderHide:function(b,c){var a=this.view;if(!b.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 a=this,b=a.scrollXPos;if(b){a.syncHorizontalScroll(a,!0)}},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},!0))},getRhsMarker:function(){var a=this;return a.rhsMarker||(a.rhsMarker=Ext.DomHelper.append(a.el,{role:'presentation',cls:a.resizeMarkerCls},!0))},getSelection:function(){return this.getSelectionModel().getSelection()},setSelection:function(a){var b=this.selection;if(a!==b){this.selection=a;this.updateSelection(a,b)}},updateSelection:function(b){var a=this,c;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;c=a.getSelectionModel();if(b){c.select(b)}else {c.deselectAll()}a.ignoreNextSelection=!1}a.publishState('selection',b)},updateBindSelection:function(d,c){var a=this,b=null;if(!a.ignoreNextSelection){a.ignoreNextSelection=!0;if(c.length){b=d.getLastSelected();a.hasHadSelection=!0}if(a.hasHadSelection){a.setSelection(b)}a.ignoreNextSelection=!1}},updateFocused:function(a){this.getNavigationModel().setPosition(a)},updateHeaderBorders:function(a){this[a?'removeCls':'addCls'](this.noHeaderBordersCls)},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,b){var a=this,c=a.view.getScrollX(),d;b=b===!0;if(a.rendered&&(b||c!==a.scrollXPos)){if(b){d=a.getScrollTarget();d.setScrollX(c)}a.headerCt.setScrollX(c);a.scrollXPos=c}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(b,e){var a=this,d=a.getView(),c=a.getStore();if(b){a.store=b;if(d.store!==b){d.bindStore(b,!1)}a.mon(b,{load:a.onStoreLoad,scope:a});a.storeRelayers=a.relayEvents(b,['filterchange','groupchange']);if(!a.reconfiguring&&a.hasListeners.storechange&&b!==c){a.fireEvent('storechange',a,b,c)}}else {a.unbindStore()}},unbindStore:function(){var a=this,b=a.store,c;if(b){b.trackStateChanges=!1;a.store=null;a.mun(b,{load:a.onStoreLoad,scope:a});Ext.destroy(a.storeRelayers);c=a.view;if(c.store){c.bindStore(null)}else if(!b.destroyed&&b.autoDestroy){b.destroy()}if(!a.reconfiguring&&a.hasListeners.storechange){a.fireEvent('storechange',a,null,b)}}},setColumns:function(a){if(a.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,a)}},setStore:function(b){var a=this;a.reconfigure(b,undefined,!0);if(a.isVisible(!0)){if(b&&a.autoLoad&&!b.isEmptyStore&&!(b.loading||b.isLoaded())){b.load()}}else if(!a.globalShowListener){a.globalShowListener=Ext.GlobalEvents.on({show:a.onGlobalShow,scope:a,destroyable:!0})}},onGlobalShow:function(c){var a=this,b=a.store;if(c===a||(c.isAncestor(a)&&a.isVisible(!0))){if(b&&a.autoLoad&&!b.isEmptyStore&&!(b.loading||b.isLoaded())){b.load()}Ext.destroy(a.globalShowListener)}},reconfigure:function(b,c,k){var a=this,d=a.store,g=a.headerCt,m=a.lockable,l=g?g.items.getRange():a.columns,e=a.getView(),n,o,i,f,h,j;if(arguments.length===1&&Ext.isArray(b)){c=b;b=null}if(c){c=Ext.Array.slice(c)}a.reconfiguring=!0;if(b){b=Ext.StoreManager.lookup(b);f=b&&b!==d}else if(k){b=Ext.StoreManager.lookup('ext-empty-store');f=b!==d}a.fireEvent('beforereconfigure',a,b,c,d,l);Ext.suspendLayouts();if(a.rendered&&a.layoutCounter&&(n=a.getScrollable())){n.scrollTo(0,0)}if(m){a.reconfigureLockable(b,c,k)}else {o=e.blockRefresh;e.blockRefresh=!0;j=e.saveFocusState();if(f){a.unbindStore();a.bindStore(b)}if(c){delete a.scrollXPos;g.removeAll();g.add(c);h=!0}g.onOwnerGridReconfigure(f,h);i=e.refreshCounter}Ext.resumeLayouts(!0);a.reconfiguring=!1;if(m){a.afterReconfigureLockable()}else {e.blockRefresh=o;if(e.refreshCounter===i){e.refreshView();j()}}a.fireEvent('reconfigure',a,b,c,d,l);delete a.reconfiguring;if(f){a.fireEvent('storechange',a,b,d);if(!d.destroyed&&d.autoDestroy){d.destroy()}}},doDestroy:function(){var a=this,b=a.scrollTask,c=a.view;if(c){c.destroying=!0}if(a.lockable){a.destroyLockable()}if(b){b.cancel()}Ext.destroy(a.rowContextParent,a.plugins,a.focusEnterLeaveListeners,a.freeRowContents,Ext.Object.getValues(a.liveRowContexts),a.lhsMarker,a.rhsMarker);Ext.panel.Panel.prototype.doDestroy.call(this);a.unbindStore()},getElementHeight:function(b){var a=this.preciseHeight&&b.getBoundingClientRect();return a?(a.height||(a.bottom-a.top)):b.offsetHeight},getElementSize:function(b){var a=this.preciseHeight&&b.getBoundingClientRect();return {width:a?(a.width||(a.right-a.left)):b.offsetWidth,height:a?(a.height||(a.bottom-a.top)):b.offsetHeight}},privates:{initFocusableElement:function(){},doEnsureVisible:function(b,e){if(this.lockable){return this.ensureLockedVisible(b,e)}if(typeof b!=='number'&&!b.isEntity){b=this.store.getById(b)}var a=this,c=a.getView(),f=c.getNode(b),r=a.ownerGrid.lockable,g,n,k,j,m,l,h,d,q,p,o,i;if(e){g=e.callback;n=e.scope;k=e.animate;j=e.highlight;m=e.select;l=e.focus;d=e.column}if(a.deferredEnsureVisible){a.deferredEnsureVisible.destroy()}if(!c.componentLayoutCounter){a.deferredEnsureVisible=c.on({resize:a.doEnsureVisible,args:Ext.Array.slice(arguments),scope:a,single:!0,destroyable:!0});return}if(typeof d==='number'){d=a.ownerGrid.getVisibleColumnManager().getColumns()[d]}if(f){if(!b.isEntity){b=c.getRecord(f)}h=r?a.ownerGrid.getScrollable():c.getScrollable();if(g||m||l){o=function(){p=new Ext.grid.CellContext(c).setPosition(b,d||0);if(m){c.getSelectionModel().selectByPosition(p)}if(l){c.getNavigationModel().setPosition(p)}Ext.callback(g,n||a,[!0,b,f])}}if(h){if(d){q=Ext.fly(f).selectNode(d.getCellSelector())}if(r&&d){h.ensureVisible(f,{x:!1});i=c.getScrollable().ensureVisible(q||f,{animation:k,highlight:j})}else {i=h.ensureVisible(q||f,{animation:k,highlight:j,x:!!d})}if(i&&o){i.then(o)}}}else if(c.bufferedRenderer){c.bufferedRenderer.scrollTo(b,{animate:k,highlight:j,select:m,focus:l,column:d,callback:function(f,d,c){Ext.callback(g,n||a,[!0,d,c])}})}else {Ext.callback(g,n||a,[!1,null])}},getFocusEl:function(){return this.getView().getFocusEl()},getRowContextViewModelParent:function(){var a=this.lookupViewModel()||this.rowContextParent;if(!a){this.rowContextParent=a=new Ext.app.ViewModel()}return a},handleWidgetViewChange:function(f,e){var d=this.liveRowContexts,b=this.freeRowContexts,g=b&&b.length,a,c;for(c in d){d[c].handleWidgetViewChange(f,e)}for(a=0;a<g;a++){b[a].handleWidgetViewChange(f,e)}},initInheritedState:function(a,b){a.inLockedGrid=!!this.isLocked;Ext.panel.Panel.prototype.initInheritedState.call(this,a,b)},setActionableMode:function(b,c){var a=this.ownerGrid;if(!a.destroying&&a.view.setActionableMode(b,c)!==!1){a.fireEvent('actionablemodechange',b);a[b?'addCls':'removeCls'](a.actionableModeCls);return !0}},getOverflowStyle:function(){this.scrollFlags=this._scrollFlags['false']['false'];return {overflowX:'hidden',overflowY:'hidden'}},getOverflowEl:function(){return null},shouldAutoHideHeaders:function(){var f=this,d=f.headerCt.items.items,e=d.length,c=!!e,a,b;for(b=0;c&&b<e;b++){a=d[b];if(!a.isEmptyText(a.text,!0)||a.columns||(a.isGroupHeader&&a.items.items.length)){c=!1}}return c},syncHeaderVisibility:function(){var a=this,c=a.headerCt,b=a.hideHeaders,d,e;if(a.lockable){a.syncLockableHeaderVisibility();return}if(b==null){b=a.shouldAutoHideHeaders()}e=c.height===0;if(!c.rendered||b!==e){c.setHeight(b?0:null);c.hiddenHeaders=b;c.toggleCls(a.hiddenHeaderCtCls,b);a.toggleCls(a.hiddenHeaderCls,b);if(!b){c.setScrollable({x:!1,y:!1});d=a.view.getScrollable();if(d){c.getScrollable().addPartner(d,'x')}}}}}},1,["tablepanel"],["component","box","container","panel","tablepanel"],{"component":!0,"box":!0,"container":!0,"panel":!0,"tablepanel":!0},["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(d){var b=this,j=b.owner,e=b.firstHeaderCls,f=b.lastHeaderCls,h=[e,f],i=b.getVisibleItems(),g=i.length,c,a;Ext.layout.container.HBox.prototype.beginLayout.call(this,d);for(c=0;c<g;c++){a=i[c];if(g===1){a.addCls(h)}else if(c===0){a.addCls(e);a.removeCls(f)}else if(c===g-1){a.removeCls(e);a.addCls(f)}else {a.removeCls(h)}}b.scrollbarWidth=0;if(j.isRootHeader&&!j.grid.isLocked){b.determineScrollbarWidth(d)}if(!b.scrollbarWidth){d.manageScrollbar=!1}},moveItemBefore:function(b,a){var c=b.ownerCt,d=a&&a.nextSibling();if(b!==a&&c){c.remove(b,{destroy:!1,detach:!1});if(a&&a.destroyed){a=d}}return Ext.layout.container.HBox.prototype.moveItemBefore.call(this,b,a)},determineScrollbarWidth:function(f){var e=this,g=e.owner,a=g.grid,b=a.reserveScrollbar,d=a.view.getScrollable(),c=!b&&d&&d.getY();f.manageScrollbar=c;if(!a.ownerGrid.collapsed&&(b||c)){delete e.scrollbarWidth}},calculate:function(a){var b=this,l=b.owner,m=l.grid,i=a.viewContext,g=a.state,o=a.context,f,c,j,n,e,d,k,h;Ext.layout.container.HBox.prototype.calculate.call(this,a);if(m&&l.isRootHeader&&g.parallelDone){f=i.lockingPartnerContext;if(m.forceFit&&!g.reflexed){if(b.convertWidthsToFlexes(a)){b.cacheFlexes(a);b.done=!1;a.invalidate({state:{reflexed:!0,scrollbarAdjustment:b.getScrollbarAdjustment(a)}});return}}if((c=g.columnsChanged)===undefined){j=a.target.getVisibleGridColumns();c=!1;for(e=0,n=j.length;e<n;e++){d=o.getCmp(j[e]);if(!d.lastBox||d.props.width!==d.lastBox.width){(c||(c=[]))[e]=d}}g.columnsChanged=c;a.setProp('columnsChanged',c)}if(a.manageScrollbar){k=b.getScrollbarAdjustment(a);if(k){h=i.getProp('viewOverflowY');if(h===undefined){b.done=!1;return}if(!h){if(f){f.invalidate();f.headerContext.invalidate()}i.invalidate();a.invalidate({state:{scrollbarAdjustment:0}})}}}}},finishedLayout:function(a){Ext.layout.container.HBox.prototype.finishedLayout.call(this,a);if(this.owner.ariaRole==='rowgroup'){this.innerCt.dom.setAttribute('role','row')}a.props.columnsChanged=null},convertWidthsToFlexes:function(d){var i=this,f=0,h=i.sizeModels.calculated,e,g,c,a,b;e=d.childItems;g=e.length;for(c=0;c<g;c++){a=e[c];b=a.target;f+=a.props.width;if(!(b.fixed||b.resizable===!1)){b.flex=d.childItems[c].flex=a.props.width;b.width=null;a.widthModel=h}}return f!==d.props.width},getScrollbarAdjustment:function(b){var e=this,c=b.state,d=e.owner.grid,a=c.scrollbarAdjustment;if(a===undefined){a=0;if(d.reserveScrollbar||(b.manageScrollbar&&!d.ownerGrid.getSizeModel().height.shrinkWrap)){a=e.scrollbarWidth}c.scrollbarAdjustment=a}return a},getContainerSize:function(a){var j=this,e,d,i,h,g,c,b,f;if(j.owner.isRootHeader){f=Ext.layout.container.HBox.prototype.getContainerSize.call(this,a);if(f.gotWidth){f.width-=j.getScrollbarAdjustment(a)}}else {i=a.paddingContext.getPaddingInfo();e=d=0;if(!a.widthModel.shrinkWrap){++d;c=a.getProp('innerWidth');h=(typeof c==='number');if(h){++e;c-=i.width;if(c<0){c=0}}}if(!a.heightModel.shrinkWrap){++d;b=a.getProp('innerHeight');g=(typeof b==='number');if(g){++e;b-=i.height;if(b<0){b=0}}}return {width:c,height:b,needed:d,got:e,gotAll:e===d,gotWidth:h,gotHeight:g}}return f},publishInnerCtSize:function(a){var e=this,c=e.owner,d=a.peek('contentWidth'),b=0;if(d!=null&&c.isRootHeader){b=-a.state.scrollbarAdjustment}return Ext.layout.container.HBox.prototype.publishInnerCtSize.call(this,a,b)},roundFlex:function(a){return Math.round(a)}},0,0,0,0,["layout.gridcolumn"],0,[Ext.grid,'ColumnLayout'],0));(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 a=this,c=a.getColumns(),d=c.length,b;if(a.variableRowHeight==null){a.variableRowHeight=!1;for(b=0;!a.variableRowHeight&&b<d;b++){a.variableRowHeight=!!c[b].variableRowHeight}}return a.variableRowHeight},getHeaderIndex:function(a){if(a.isGroupHeader){a=this.getHeaderColumns(a)[0]}return Ext.Array.indexOf(this.getColumns(),a)},getHeaderAtIndex:function(b){var a=this.getColumns(),c=a[b];return c||null},getPreviousSibling:function(c){var a=this.getHeaderIndex(c),b=null;if(a>0){b=this.getColumns()[a-1]}return b},getNextSibling:function(c){var a=this.getHeaderIndex(c),b;if(a!==-1){b=this.getColumns()[a+1]}return b||null},getFirst:function(){var a=this.getColumns();return a.length>0?a[0]:null},getLast:function(){var a=this.getColumns(),b=a.length;return b>0?a[b-1]:null},getHeaderByDataIndex:function(c){var d=this.getColumns(),e=d.length,a,b;if(Ext.isEmpty(c)){return null}for(a=0;a<e;++a){b=d[a];if(b.dataIndex===c){return b}}return null},getHeaderById:function(e){var c=this.getColumns(),d=c.length,a,b;for(a=0;a<d;++a){b=c[a];if(b.getItemId()===e){return b}}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 a=this.getHeaderColumns(this.headerCt),b=this.secondHeaderCt;if(b){a=a.concat(this.getHeaderColumns(b))}this.columns=a},getHeaderColumns:function(a){var b=this.visibleOnly?a.getVisibleGridColumns():a.getGridColumns();return Ext.Array.clone(b)},invalidate:function(){var a=this.rootColumns;this.columns=this.variableRowHeight=null;if(a){a.invalidate()}},destroy:function(){this.columns=this.rootColumns=null;this.callParent()}},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 {focusmove:{element:'el',fn:a.onFocusMove},containermousedown:a.onContainerMouseDown,cellmousedown:a.onCellMouseDown,cellclick:a.onCellClick,itemmousedown:a.onItemMouseDown,itemclick:a.onItemClick,itemcontextmenu:a.onItemClick,scope:a}},initKeyNav:function(c){var a=this,b;if(!a.keyNav){a.keyNav=[];a.position=new Ext.grid.CellContext(c)}b=new Ext.util.KeyNav({target:c,ignoreInputFields:!0,eventName:Ext.supports.SpecialKeyDownRepeat?'itemkeydown':'itemkeypress',defaultEventAction:'stopEvent',processEvent:a.processViewEvent,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,space:a.onKeySpace,enter:a.onKeyEnter,esc:a.onKeyEsc,113:{ctrl:!1,shift:!1,alt:!1,handler:a.onKeyF2},tab:a.onKeyTab,A:{ctrl:!0,handler:a.onSelectAllKeyPress},scope:a});a.keyNav.push(b);a.onKeyNavCreate(b)},onKeyNavCreate:Ext.emptyFn,addKeyBindings:function(b){var c=this.keyNav.length,a;for(a=0;a<c;a++){this.keyNav[a].addBindings(b)}},enable:function(){var b=this.keyNav.length,a;for(a=0;a<b;a++){this.keyNav[a].enable()}this.disabled=!1},disable:function(){var b=this.keyNav.length,a;for(a=0;a<b;a++){this.keyNav[a].disable()}this.disabled=!0},processViewEvent:function(c,e,f,d,a){var b=a.getKey();if(c.actionableMode){this.map.ignoreInputFields=!1;if(b===a.TAB||b===a.ESC||b===a.F2){return a}}else {this.map.ignoreInputFields=!0;return b===a.TAB?null:a}},onContainerMouseDown:function(a,b){var f=this,d=new Ext.grid.CellContext(a),e,c;Ext.view.NavigationModel.prototype.onContainerMouseDown.call(this,a,b);e=a.lastFocused;c=(a.actionableMode&&a.actionPosition)||e;if(!c||e==='scrollbar'){return}d.setPosition(c.record,c.column);b.position=d;f.attachClosestCell(b);if(!f.position.isEqual(d)){f.setPosition(d,null,b)}},onCellMouseDown:function(b,e,h,i,j,g,a){var d=Ext.Component.from(a,e),c=a.getTarget(this.isFocusableEl,e),f;if(b.actionableMode){if(!c){c=(f=Ext.ComponentManager.getActiveComponent())&&f!==b&&f.owns(a)}if(c){b.setActionableMode(!0,a.position)}else {b.setActionableMode(!1,a.position)}return}if(a.pointerType!=='touch'){if(a.position.column.cellFocusable!==!1){if(c){if(!b.containsFocus){b.containsFocus=!0;b.toggleChildrenTabbability(!1)}if(b.setActionableMode(!0,a.position)!==!1){c.focus()}}else {e.focus()}if(a.button===2){this.fireNavigateEvent(a)}if(d&&d.isFocusable&&d.isFocusable()){b.setActionableMode(!0,a.position);d.focus()}}else {a.preventDefault(!0)}}},onCellClick:function(c,f,h,i,j,g,a){var b=this,d=Ext.Component.from(a,f),e=d&&d.isFocusable&&d.isFocusable();if(!Ext.isIE10m&&!c.el.contains(Ext.Element.getActiveElement())&&a.pointerType!=='touch'){return}if(c.actionableMode){if(!a.position.isEqual(c.actionPosition)){if(!e){c.setActionableMode(!1,a.position)}}b.fireEvent('navigate',{view:c,navigationModel:b,keyEvent:a,previousPosition:b.previousPosition,previousRecordIndex:b.previousRecordIndex,previousRecord:b.previousRecord,previousItem:b.previousItem,previousCell:b.previousCell,previousColumnIndex:b.previousColumnIndex,previousColumn:b.previousColumn,position:a.position,recordIndex:a.position.rowIdx,record:a.position.record,selectionStart:b.selectionStart,item:a.item,cell:a.position.cellElement,columnIndex:a.position.colIdx,column:a.position.column})}else {if(b.position.isEqual(a.position)||e){if(Ext.isIE10m&&!b.record){return}b.fireNavigateEvent(a)}else if(a.position.column.cellFocusable!==!1){b.setPosition(a.position,null,a)}else {a.preventDefault()}}},onFocusMove:function(b){var a=Ext.Component.from(b.delegatedTarget,null,'tableview'),f=b.target,g=Ext.fly(f).is(a.cellSelector),e,d,c;if(a){if(b.toElement===a.el.dom){a.actionableMode=!1;return a.onFocusEnter(b)}if(!a.actionableMode&&g){e=a.getRecord(f);d=a.getHeaderByCell(f);if(e&&d){c=new Ext.grid.CellContext(a).setPosition(e,d);if(!c.isEqual(this.position)){this.setPosition(c)}}}else if((a.actionableMode||a.activating)&&!g&&a.el.contains(b.target)&&a.el.dom!==b.target){a.ownerGrid.fireEvent('cellactivate',a.ownerGrid,a.actionPosition)}}},onItemMouseDown:function(d,e,g,f,a){var c=this,b;if(!a.position.cellElement&&(a.pointerType!=='touch')){if(!d.enableTextSelection){a.preventDefault()}c.attachClosestCell(a);if(!c.position.isEqual(a.position)){c.setPosition(a.position,null,a)}b=d.getScrollable();if(b){b.restoreState()}}},onItemClick:function(e,b,d,c,a){if(!a.position.cellElement){this.attachClosestCell(a);if(a.pointerType==='touch'){this.setPosition(a.position,null,a)}else {this.fireNavigateEvent(a)}}},attachClosestCell:function(f){var a=f.position,h=a.cellElement,e,c,g,b,i,d;if(!h){e=f.getX();c=a.view.getVisibleColumnManager().getColumns();g=c.length;for(b=0;b<g;b++){i=c[b];d=c[b].getBox();if(e>=d.left&&e<d.right){a.setColumn(c[b]);a.rowElement=a.getRow(!0);a.cellElement=a.getCell(!0);return}}}},deferSetPosition:function(g,e,d,f,c,b){var a=this.view.getFocusTask();a.delay(g,this.setPosition,this,[e,d,f,c,b]);return a},setPosition:function(c,h,l,r,p){var a=this,k=c==null&&h==null,q=a.record==null&&a.recordIndex==null&&a.item==null,b,n,o,i,m,f,e,d,g,j;if(c&&c.isCellContext){b=c.view}else if(l&&l.view){b=l.view}else if(a.lastFocused){b=a.lastFocused.view}else {b=a.view}b.cancelFocusTask();if(b.destroyed||!b.refreshCounter||!b.ownerCt||k&&q||!b.all.getCount()){return}o=b.getSelectionModel();i=b.dataSource;m=b.getVisibleColumnManager();j=m.getColumns();if(c&&c.isCellContext){d=c.record;f=c.rowIdx;e=Math.min(c.colIdx,j.length-1);g=j[e];if(i.indexOf(d)===-1){n=b.getScrollable();a.recordIndex=-1;if(n&&(n.getPosition().y>=n.getMaxPosition().y-b.all.last(!0).offsetHeight)){c.rowIdx--}f=Math.min(c.rowIdx,i.getCount()-1);d=i.getAt(f)}}else {if(k){d=f=null}else {if(h==null){h=a.lastFocused?a.lastFocused.column:0}if(typeof c==='number'){f=Math.max(Math.min(c,i.getCount()-1),0);d=i.getAt(c)}else if(c.isEntity){d=c;f=i.indexOf(d)}else if(c.tagName){d=b.getRecord(c);f=i.indexOf(d);if(f===-1){d=null}}else {if(q){return}k=!0;d=f=null}}if(d){if(f===-1){a.recordIndex=-1;d=i.getAt(0);f=0;h=null}if(h==null){if(!(g=a.column)){e=0;g=j[0]}}else if(typeof h==='number'){g=j[h];e=h}else {g=h;e=m.indexOf(h)}}else {k=!0;g=e=null}}if(g&&m.indexOf(g)===-1){if(e===-1){e=0}else {e=Math.min(e,j.length-1)}g=j[e]}if(b.actionableMode&&!k){return b.ownerGrid.setActionableMode(!1,new Ext.grid.CellContext(b).setPosition(d,g))}if(f===a.recordIndex&&e===a.columnIndex&&b===a.position.view){return a.focusPosition(a.position)}if(a.cell){a.cell.removeCls(a.focusCls)}a.previousRecordIndex=a.recordIndex;a.previousRecord=a.record;a.previousItem=a.item;a.previousCell=a.cell;a.previousColumn=a.column;a.previousColumnIndex=a.columnIndex;a.previousPosition=a.position.clone();a.selectionStart=o.selectionStart;a.position.setAll(b,a.recordIndex=f,a.columnIndex=e,a.record=d,a.column=g);if(k){a.item=a.cell=null}else {a.focusPosition(a.position,p)}if(!r){o.fireEvent('focuschange',o,a.previousRecord,a.record);b.fireEvent('rowfocus',a.record,a.item,a.recordIndex);b.fireEvent('cellfocus',a.record,a.cell,a.position)}if(l&&!p&&a.cell!==a.previousCell){a.fireNavigateEvent(l)}},focusPosition:function(b){var a=this,c,d,e;a.item=a.cell=null;if(b&&b.record&&b.column){c=b.view;if(b.rowElement){d=a.item=b.rowElement}else {d=c.getRowByRecord(b.record)}if(d){a.cell=b.cellElement||Ext.fly(d).down(b.column.getCellSelector(),!0);if(a.cell){a.cell=new Ext.dom.Fly(a.cell);c.lastFocused=a.lastFocused=a.position.clone();e=c.getScrollable();if(e){e.ensureVisible(a.cell)}a.focusItem(a.cell);c.focusEl=a.cell}else {a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null}}else {d=c.dataSource.indexOf(b.record);a.position.setAll();a.record=a.column=a.recordIndex=a.columnIndex=null;if(d!==-1&&c.bufferedRenderer){a.lastKeyEvent=null;c.bufferedRenderer.scrollTo(d,!1,a.afterBufferedScrollTo,a)}}}},focusItem:function(a){a.addCls(this.focusCls);a.focus()},getCell:function(){return this.cell},getPosition:function(f){var c=this,a=c.position,b,e,d;if(a.record&&a.column){if(f){return a}e=a.view;d=e.dataSource;b=d.indexOf(a.record);if(b===-1){b=a.rowIdx;if(!(a.record=d.getAt(b))){b=-1}}if(b===-1||e.getVisibleColumnManager().indexOf(a.column)===-1){a.setAll();c.record=c.column=c.recordIndex=c.columnIndex=null}else {return a}}return null},getLastFocused:function(){var c=this,b,a=c.lastFocused;if(a&&a.record&&a.column){b=a.view;if(b.dataSource.indexOf(a.record)!==-1&&b.getVisibleColumnManager().indexOf(a.column)!==-1){return a}}},onKeyTab:function(a){var d=!a.shiftKey,f=a.position.view,e,b,c;e=f.findFocusPosition(a.target,a.position,d,a);b=e.target;c=e.position;if(b){this.actionPosition=c.view.actionPosition=c;Ext.fly(b).focus()}else {f.onRowExit(a,a.item,a.item[d?'nextSibling':'previousSibling'],d)}a.preventDefault()},onKeyUp:function(b){var c=b.view.walkRecs(b.record,-1),a=this.getPosition();if(c){a.setRow(c);if(!a.getCell(!0)){a.navigate(-1)}this.setPosition(a,null,b)}},onKeyDown:function(a){var c=a.record.isExpandingOrCollapsing?null:a.view.walkRecs(a.record,1),b=this.getPosition();if(c){b.setRow(c);if(!b.getCell(!0)){b.navigate(-1)}this.setPosition(b,null,a)}},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)}},onKeyEnter:function(a){var b=['cellclick',a.view,a.position.cellElement,a.position.colIdx,a.record,a.position.rowElement,a.recordIndex,a],c=a.position.getCell(!0);if(c){if(!c.querySelector('[tabIndex="-1"]')){a.stopEvent();a.view.fireEvent.apply(a.view,b);b[0]='celldblclick';a.view.fireEvent.apply(a.view,b)}if(!this.view.actionableMode){this.view.ownerGrid.setActionableMode(!0,this.getPosition())}}},onKeyF2:function(c){var b=this.view.ownerGrid,a=b.actionableMode;b.setActionableMode(!a,a?null:this.getPosition())},onKeyEsc:function(b){var a=this.view.ownerGrid;if(a.actionableMode){a.setActionableMode(!1)}else {return !0}},move:function(c,e){var d=this,b=d.getPosition(),a=b,f=e.shiftKey&&(c==='right'||c==='left');if(b&&b.record){while(a){a=a.view.walkCells(a,c,f?d.vetoRowChange:null,d);if(a&&a.getCell(!0)&&a.column.cellFocusable!==!1){return a}}}},vetoRowChange:function(a){return this.getPosition().record===a.record},onKeyPageDown:function(a){var b=this,c=a.view,d=b.getRowsVisible(),f,e;if(d){if(c.bufferedRenderer){f=Math.min(a.recordIndex+d,c.dataSource.getCount()-1);b.lastKeyEvent=a;c.bufferedRenderer.scrollTo(f,!1,b.afterBufferedScrollTo,b)}else {e=c.walkRecs(a.record,d);b.setPosition(e,null,a)}}},onKeyPageUp:function(a){var b=this,d=a.view,c=b.getRowsVisible(),f,e;if(c){if(d.bufferedRenderer){f=Math.max(a.recordIndex-c,0);b.lastKeyEvent=a;d.bufferedRenderer.scrollTo(f,!1,b.afterBufferedScrollTo,b)}else {e=d.walkRecs(a.record,-c);b.setPosition(e,null,a)}}},onKeyHome:function(a){var b=this,c=a.view;if(a.altKey){if(c.bufferedRenderer){b.lastKeyEvent=a;c.bufferedRenderer.scrollTo(0,!1,b.afterBufferedScrollTo,b)}else {b.setPosition(c.walkRecs(a.record,-c.dataSource.indexOf(a.record)),null,a)}}else {b.setPosition(a.record,0,a)}},afterBufferedScrollTo:function(b,a){this.setPosition(a,null,this.lastKeyEvent,null,!this.lastKeyEvent)},onKeyEnd:function(a){var c=this,b=a.view;if(a.altKey){if(b.bufferedRenderer){c.lastKeyEvent=a;b.bufferedRenderer.scrollTo(b.store.getCount()-1,!1,c.afterBufferedScrollTo,c)}else {c.setPosition(b.walkRecs(a.record,b.dataSource.getCount()-1-b.dataSource.indexOf(a.record)),null,a)}}else {c.setPosition(a.record,a.view.getVisibleColumnManager().getColumns().length-1,a)}},getRowsVisible:function(){var b=!1,e=this.view,d=e.all.first(),c,a;if(d){c=d.getHeight();a=e.el.getHeight();b=Math.floor(a/c)}return b},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})},isFocusableEl:function(a){return Ext.fly(a).isFocusable()}},0,0,0,0,["view.navigation.grid"],0,[Ext.grid,'NavigationModel'],0));(Ext.cmd.derive('Ext.view.TableLayout',Ext.layout.component.Auto,{type:'tableview',beginLayout:function(a){var c=this,i=c.owner,f=i.ownerGrid,d=i.lockingPartner,b=a.lockingPartnerContext,g=d&&d.grid.isVisible()&&!(d.grid.collapsed||d.grid.floatedFromCollapse),h=a.context,e=f.getScrollable();a.doSyncRowHeights=g&&(f.syncRowHeight||f.syncRowHeightOnNextLayout);a.allowScrollX=e&&e.config&&e.config.x;if(!c.columnFlusherId){c.columnFlusherId=c.id+'-columns';c.rowHeightFlusherId=c.id+'-rows'}Ext.layout.component.Auto.prototype.beginLayout.call(this,a);if(g){if(!b&&d.componentLayout.isRunning()){(b=a.lockingPartnerContext=h.getCmp(d)).lockingPartnerContext=a;if(!b.lockingPartnerContext){b.lockingPartnerContext=a}}if(a.doSyncRowHeights){if(b&&!b.rowHeightSynchronizer){b.rowHeightSynchronizer=b.target.syncRowHeightBegin()}a.rowHeightSynchronizer=c.owner.syncRowHeightBegin()}}(a.headerContext=h.getCmp(c.headerCt)).viewContext=a},beginLayoutCycle:function(a,b){Ext.layout.component.Auto.prototype.beginLayoutCycle.call(this,a,b);if(a.syncRowHeights){a.target.syncRowHeightClear(a.rowHeightSynchronizer);a.syncRowHeights=!1}},calculate:function(a){var b=this,r=a.context,s=a.lockingPartnerContext,t=a.headerContext,m=a.ownerCtContext,e=b.owner,l=t.getProp('columnsChanged'),c=a.state,p,n,o,d,j,q=e.body.dom,f,i,h,g,k;if(!e.all.getCount()&&(!q||!e.body.child('table',!0))){a.setProp('viewOverflowY',!1);Ext.layout.component.Auto.prototype.calculate.call(this,a);return}if(b.calcCount===1&&b.owner.bufferedRenderer){b.owner.bufferedRenderer.beforeTableLayout(a)}if(l===undefined){b.done=!1;return}if(l){if(!(n=c.columnFlusher)){r.queueFlush(c.columnFlusher=n={ownerContext:a,columnsChanged:l,layout:b,id:b.columnFlusherId,flush:b.flushColumnWidths},!0)}if(!n.flushed){b.done=!1;return}}if(a.doSyncRowHeights){if(!(j=c.rowHeightFlusher)){if(!(d=c.rowHeights)){c.rowHeights=d=a.rowHeightSynchronizer;b.owner.syncRowHeightMeasure(d);a.setProp('rowHeights',d)}if(!(o=s.getProp('rowHeights'))){b.done=!1;return}r.queueFlush(c.rowHeightFlusher=j={ownerContext:a,synchronizer:d,otherSynchronizer:o,layout:b,id:b.rowHeightFlusherId,flush:b.flushRowHeights},!0)}if(!j.flushed){b.done=!1;return}}Ext.layout.component.Auto.prototype.calculate.call(this,a);if(!a.heightModel.shrinkWrap){if(!m.heightModel.shrinkWrap){p=!0;i=m.target.layout.getContainerSize(m);if(!i.gotHeight){b.done=!1;return}f=q.offsetHeight;if(f>i.height){h=!0}}}k=Ext.getScrollbarSize().height;if(b.done&&a.allowScrollX&&k){if(!e.lockingPartner){if(e.isAutoTree){g=!0}else {g=!!a.headerContext.state.boxPlan.tooNarrow}a.setProp('overflowX',g)}if(g&&f&&p){h=(f+k)>i.height}}if(b.done||h!=null){a.setProp('viewOverflowY',!!h)}},measureContentHeight:function(e){var d=this.owner,b=d.body.dom,c=d.emptyEl,a=0;if(c){a+=c.offsetHeight}if(b){a+=b.offsetHeight}if(e.headerContext.state.boxPlan.tooNarrow){a+=Ext.getScrollbarSize().height}return a},flushColumnWidths:function(){var b=this,i=b.layout,e=b.ownerContext,g=b.columnsChanged,h=e.target,j=g.length,a,d,c,f;if(e.state.columnFlusher!==b){return}for(d=0;d<j;d++){if(!(a=g[d])){continue}c=a.props.width;h.body.select(h.getColumnSizerSelector(a.target)).setWidth(c);if(a.target.onCellsResized){a.target.onCellsResized(c)}f=a.lastBox;if(f){f.width=c}}b.flushed=!0;if(!i.pending){e.context.queueLayout(i)}},flushRowHeights:function(){var a=this,c=a.layout,b=a.ownerContext;if(b.state.rowHeightFlusher!==a){return}b.target.syncRowHeightFinish(a.synchronizer,a.otherSynchronizer);a.flushed=!0;b.syncRowHeights=!0;if(!c.pending){b.context.queueLayout(c)}},finishedLayout:function(c){var b=this,f=b.owner.ownerGrid,e=Ext.fly(b.owner.getNodeContainer()),d=this.owner.getScrollable(),a;Ext.layout.component.Auto.prototype.finishedLayout.call(this,c);if(e){e.setWidth(c.headerContext.props.contentWidth)}a=b.owner.bufferedRenderer;if(a){a.afterTableLayout(c)}if(f){f.syncRowHeightOnNextLayout=!1}if(d&&!d.isScrolling){if(a){if(a.nextRefreshStartIndex===0||b.owner.hasVariableRowHeight()){return}}d.restoreState()}},getLayoutItems:function(){return this.owner.getRefItems()},isValidParent:function(){return !0}},0,0,0,0,["layout.tableview"],0,[Ext.view,'TableLayout'],0));(Ext.cmd.derive('Ext.grid.locking.RowSynchronizer',Ext.Base,{constructor:function(c,d){var b=this,a;b.view=c;b.rowEl=d;b.els={};b.add('data',c.rowSelector);for(a=c.rowTpl;a;a=a.nextTpl){if(a.beginRowSync){a.beginRowSync(b)}}},add:function(c,b){var a=Ext.fly(this.rowEl).down(b,!0);if(a){this.els[c]={el:a}}},finish:function(i){var d=this,f=d.els,j=i.els,e,h=0,g=0,b,c,a;for(c in f){e=j[c];a=e?e.height:0;b=a-f[c].height;if(b>0){h+=b;Ext.fly(f[c].el).setHeight(a)}else {g-=b}}a=i.rowHeight+g;if(Ext.isIE9&&d.view.ownerGrid.rowLines){a--}if(d.rowHeight+h<a){Ext.fly(d.rowEl).setHeight(a)}},measure:function(){var a=this,c=a.els,d=a.view.ownerGrid,b;a.rowHeight=d.getElementHeight(a.rowEl);for(b in c){c[b].height=d.getElementHeight(c[b].el)}},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()},destroy:function(){var a=this;if(!a.destroyed){a.el.destroy();a.el=a.view=null;a.destroyed=!0}a.callParent()},clear:function(e){var a=this,b=a.elements,c=a.statics().range,d;if(a.count&&e){if(c&&Ext.getBody().contains(b[0])){c.setStartBefore(b[a.startIndex]);c.setEndAfter(b[a.endIndex]);c.deleteContents()}else {for(d in b){Ext.removeNode(b[d])}}}a.elements={};a.count=a.startIndex=0;a.endIndex=-1},fill:function(f,a,c){c=c||0;var d=this,g=d.elements={},b,e=f.length-c;if(!a){a=0}for(b=0;b<e;b++){g[a+b]=f[b+c]}d.startIndex=a;d.endIndex=a+e-1;d.count=e;return this},insert:function(c,f){var b=this,e=b.elements,a,d=f.length;if(b.count){if(c<b.count){for(a=b.endIndex+d;a>=c+d;a--){e[a]=e[a-d];e[a].setAttribute('data-recordIndex',a)}}b.endIndex=b.endIndex+d}else {b.startIndex=c;b.endIndex=c+d-1}for(a=0;a<d;a++,c++){e[c]=f[a];e[c].setAttribute('data-recordIndex',c)}b.count+=d},invoke:function(d,e){var a=this,c,b;d=Ext.dom.Element.prototype[d];for(b=a.startIndex;b<=a.endIndex;b++){c=a.item(b);if(c){d.apply(c,e)}}return a},item:function(a,c){var d=this.elements[a],b=null;if(d){b=c?this.elements[a]:this.el.attach(this.elements[a])}return b},first:function(a){return this.item(this.startIndex,a)},last:function(a){return this.item(this.endIndex,a)},moveBlock:function(c){var b=this,d=b.elements,g,f,e,a;if(!c){return}if(c<0){a=b.startIndex-1;f=b.endIndex;e=1}else {a=b.endIndex+1;f=b.startIndex;e=-1}b.startIndex+=c;b.endIndex+=c;do{a+=e;g=d[a+c]=d[a];g.setAttribute('data-recordIndex',a+c);if(a<b.startIndex||a>b.endIndex){delete d[a]}}while(a!==f);delete d[a]},getCount:function(){return this.count},slice:function(e,a){var d=this.elements,c=[],b;if(!a){a=this.endIndex}else {a=Math.min(this.endIndex,a-1)}for(b=e||this.startIndex;b<=a;b++){c.push(d[b])}return c},replaceElement:function(a,b,d){var e=this.elements,c=(typeof a==='number')?a:this.indexOf(a);if(c>-1){b=Ext.getDom(b);if(d){a=e[c];a.parentNode.insertBefore(b,a);Ext.removeNode(a);b.setAttribute('data-recordIndex',c)}this.elements[c]=b}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},clip:function(i,d){var a=this,g=a.elements,h=[],b,e,f,c;if(i===1){b=a.startIndex;a.startIndex+=d}else {a.endIndex-=d;b=a.endIndex+1}for(c=b,e=b+d-1;c<=e;c++){f=g[c];h.push(f);Ext.removeNode(f);delete g[c]}a.count-=d;a.view.fireItemMutationEvent('itemremove',a.view.dataSource.getRange(b,e),b,h,a.view)},removeRange:function(g,c,j){var a=this,e=a.elements,i=[],d,b,h,f;if(c==null){c=a.endIndex+1}else {c=Math.min(a.endIndex+1,c+1)}if(g==null){g=a.startIndex}h=c-g;for(b=g,f=c;b<=a.endIndex;b++,f++){d=e[b];if(b<c){i.push(d);if(j){Ext.removeNode(d)}}if(f<=a.endIndex){d=e[b]=e[f];d.setAttribute('data-recordIndex',b)}else {delete e[b]}}a.count-=h;a.endIndex-=h;return i},removeElement:function(a,k){var b=this,i,f,h=b.elements,j,e,c=0,d,g;if(Ext.isArray(a)){i=a;a=[];e=i.length;for(c=0;c<e;c++){f=i[c];if(typeof f!=='number'){f=b.indexOf(f)}if(f>=b.startIndex&&f<=b.endIndex){a[a.length]=f}}Ext.Array.sort(a);e=a.length}else {if(a<b.startIndex||a>b.endIndex){return}e=1;a=[a]}for(d=g=a[0],c=0;d<=b.endIndex;d++,g++){if(c<e&&d===a[c]){g++;c++;if(k){Ext.removeNode(h[d])}}if(g<=b.endIndex&&g>=b.startIndex){j=h[d]=h[g];j.setAttribute('data-recordIndex',d)}else {delete h[d]}}b.endIndex-=e;b.count-=e},scroll:function(i,r,k){var b=this,e=b.view,o=e.store,c=b.elements,q=i.length,p=e.getNodeContainer(),h=b.statics().range,a,d,n,j,l,m,f,g;if(!(i.length||k)){return}if(r===-1){if(k){f=[];g=[];m=(b.endIndex-k)+1;if(h){h.setStartBefore(c[m]);h.setEndAfter(c[b.endIndex]);h.deleteContents();for(a=m;a<=b.endIndex;a++){d=c[a];delete c[a];f.push(o.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}else {for(a=m;a<=b.endIndex;a++){d=c[a];delete c[a];Ext.removeNode(d);f.push(o.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}e.fireItemMutationEvent('itemremove',f,m,g,e);b.endIndex-=k}if(i.length){l=e.bufferRender(i,b.startIndex-=q);j=l.children;for(a=0;a<q;a++){c[b.startIndex+a]=j[a]}p.insertBefore(l.fragment,p.firstChild);e.fireItemMutationEvent('itemadd',i,b.startIndex,j,e)}}else {if(k){f=[];g=[];n=b.startIndex+k;if(h){h.setStartBefore(c[b.startIndex]);h.setEndAfter(c[n-1]);h.deleteContents();for(a=b.startIndex;a<n;a++){d=c[a];delete c[a];f.push(o.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}else {for(a=b.startIndex;a<n;a++){d=c[a];delete c[a];Ext.removeNode(d);f.push(o.getByInternalId(d.getAttribute('data-recordId')));g.push(d)}}e.fireItemMutationEvent('itemremove',f,b.startIndex,g,e);b.startIndex=n}l=e.bufferRender(i,b.endIndex+1);j=l.children;for(a=0;a<q;a++){c[b.endIndex+=1]=j[a]}p.appendChild(l.fragment);e.fireItemMutationEvent('itemadd',i,b.endIndex+1,j,e)}b.count=b.endIndex-b.startIndex+1;return j},sumHeights:function(){var b=0,c=this.elements,a;for(a=this.startIndex;a<=this.endIndex;a++){b+=c[a].offsetHeight}return b}},1,0,0,0,0,0,[Ext.view,'NodeCache'],function(){Ext.dom.CompositeElementLite.importElementMethods.call(this)}));(Ext.cmd.derive('Ext.scroll.TableScroller',Ext.scroll.Scroller,{config:{lockingScroller:null},privates:{getEnsureVisibleXY:function(b,c){var e=this.getLockingScroller(),a=this.getPosition(),d;if(b&&b.element&&!b.isElement){c=b;b=c.element}c=c||{};if(e){a.y=e.position.y}d=Ext.fly(b).getScrollIntoViewXY(this.getElement(),a.x,a.y);d.x=(c.x===!1)?a.x:d.x;if(e){d.y=(c.y===!1)?a.y:Ext.fly(b).getScrollIntoViewXY(e.getElement(),a.x,a.y).y}return d},doScrollTo:function(f,b,e){var c,d,a;if(b!=null){c=this.getLockingScroller();if(c){d=c.doScrollTo(null,b,e);b=null}}a=Ext.scroll.Scroller.prototype.doScrollTo.call(this,f,b,e);if(d){a=Ext.Promise.all([a,d])}return a},restoreState:function(){var a=this,d=a.getScrollElement(),c=a.getLockingScroller(),b;if(d){b=c?c.trackingScrollTop:a.trackingScrollTop;if(b!==undefined){if(!a.restoreTimer){a.restoreTimer=Ext.defer(function(){a.restoreTimer=null},50)}a.doScrollTo(a.trackingScrollLeft,b,!1)}}}}},0,0,0,0,["scroller.table"],0,[Ext.scroll,'TableScroller'],0));(Ext.cmd.derive('Ext.view.Table',Ext.view.View,{alternateClassName:'Ext.grid.View',isTableView:!0,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","scroll"]},scrollable:!0,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:!0,positionCells:!1,stripeOnUpdate:null,actionableMode:!1,trackOver:!0,getRowClass:null,stripeRows:!0,markDirty:!0,ariaRole:'rowgroup',rowAriaRole:'row',cellAriaRole:'gridcell',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" role="presentation" style="width:{fullWidth}px">','{[view.renderTHead(values, out, parent)]}','{%','view.renderRows(values.rows, values.columns, values.viewStartIndex, out);','%}','{[view.renderTFoot(values, out, parent)]}','</div>','{% ','view = columns = column = null;','%}',{definitions:'var view, tableCls, columns, i, len, column;',priority:0}],outerRowTpl:['<table id="{rowId}" role="presentation" ','data-boundView="{view.id}" ','data-recordId="{record.internalId}" ','data-recordIndex="{recordIndex}" ','class="{[values.itemClasses.join(" ")]}" cellpadding="0" cellspacing="0" 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]}"',' role="{rowRole}" {rowAttr:attributes}>','<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} {cellAttr:attributes}',' style="width:{column.cellWidth}px;','{% if(values.tdStyle){out.push(values.tdStyle);}%}"','{% if (values.column.cellFocusable === false) {%}',' role="presentation"','{% } else { %}',' role="{cellRole}" tabindex="-1"','{% } %}','  data-columnid="{[values.column.getItemId()]}">','<div {unselectableAttr} class="x-grid-cell-inner {innerCls}" ','style="text-align:{align};','{% if (values.style) {out.push(values.style);} %}" ','{cellInnerAttr:attributes}>{value}</div>','</td>',{priority:0}],refreshSelmodelOnRefresh:!1,scrollableType:'table',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(b){var a=this;return a.variableRowHeight||a.store.isGrouped()||a.getVisibleColumnManager().hasVariableRowHeight()||(!b&&a.lockingPartner&&a.lockingPartner.hasVariableRowHeight(!0))},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);a.actionRowFly=new Ext.dom.Fly();Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(a,f){var d=this,b=d.ownerGrid,e=a.type,c=d.disableSelection||b.disableSelection;if(!f){if(!(a&&a.isSelectionModel)){a=b.selModel||a}}if(a){if(a.isSelectionModel){a.allowDeselect=b.allowDeselect||a.selectionMode!=='SINGLE';a.locked=c}else {if(typeof a==='string'){a={type:a}}else {a.type=b.selType||a.selType||a.type||e}if(!a.mode){if(b.simpleSelect){a.mode='SIMPLE'}else if(b.multiSelect){a.mode='MULTI'}}a=Ext.Factory.selection(Ext.apply({allowDeselect:b.allowDeselect,locked:c},a))}}return a},updateSelectionModel:function(b,c){var a=this;if(c){c.un({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});Ext.destroy(a.selModelRelayer)}a.selModelRelayer=a.relayEvents(b,['selectionchange','beforeselect','beforedeselect','select','deselect','focuschange']);b.on({scope:a,lastselectedchanged:a.updateBindSelection,selectionchange:a.updateBindSelection});a.selModel=b},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(c,h,j){var b=this,m=j>1,e=m&&document.createRange?document.createRange():null,g=m&&!e?document.createDocumentFragment():null,l=h,p=b.getGridColumns().length,k=p-1,r=(b.firstCls||b.lastCls)&&(h===0||h===p||c===0||c===k),f,i,q,n,d,a,o;if(b.rendered&&h!==c){q=b.el.query(b.rowSelector);for(f=0,n=q.length;f<n;f++){d=q[f];a=d.childNodes;if(r){if(a.length===1){Ext.fly(a[0]).addCls(b.firstCls);Ext.fly(a[0]).addCls(b.lastCls);continue}if(c===0){Ext.fly(a[0]).removeCls(b.firstCls);Ext.fly(a[1]).addCls(b.firstCls)}else if(c===k){Ext.fly(a[k]).removeCls(b.lastCls);Ext.fly(a[k-1]).addCls(b.lastCls)}if(h===0){Ext.fly(a[0]).removeCls(b.firstCls);Ext.fly(a[c]).addCls(b.firstCls)}else if(h===p){Ext.fly(a[k]).removeCls(b.lastCls);Ext.fly(a[c]).addCls(b.lastCls)}}if(m){if(e){e.setStartBefore(a[c]);e.setEndAfter(a[c+j-1]);g=e.extractContents()}else {for(i=0;i<j;i++){g.appendChild(a[c])}}d.insertBefore(g,a[l]||null)}else {d.insertBefore(a[c],a[l]||null)}}o=b.el.query('colgroup');for(f=0,n=o.length;f<n;f++){d=o[f];if(m){if(e){e.setStartBefore(d.childNodes[c]);e.setEndAfter(d.childNodes[c+j-1]);g=e.extractContents()}else {for(i=0;i<j;i++){g.appendChild(d.childNodes[c])}}d.insertBefore(g,d.childNodes[l]||null)}else {d.insertBefore(d.childNodes[c],d.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(e,a,d){var c=this.getRow(e),b;if(c){if(typeof a==='number'){a=this.getHeaderAtIndex(a)}b=c.querySelector(a.getCellSelector());return d?Ext.get(b):b}},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 !0}})}},initFeatures:function(e){var a=this,d,c,b,f;a.tpl=this.lookupTpl('tpl');a.rowTpl=a.lookupTpl('rowTpl');a.addRowTpl(a.lookupTpl('outerRowTpl'));a.cellTpl=a.lookupTpl('cellTpl');a.featuresMC=new Ext.util.MixedCollection();c=a.features=a.constructFeatures();f=c?c.length:0;for(d=0;d<f;d++){b=c[d];b.view=a;b.grid=e;a.featuresMC.add(b);b.init(e)}},renderTHead:function(c,f,e){var b=c.view.headerFns,d,a;if(b){for(a=0,d=b.length;a<d;++a){b[a].call(this,c,f,e)}}},addHeaderFn:function(b){var a=this.headerFns;if(!a){a=this.headerFns=[]}a.push(b)},renderTFoot:function(c,f,e){var b=c.view.footerFns,d,a;if(b){for(a=0,d=b.length;a<d;++a){b[a].call(this,c,f,e)}}},addFooterFn:function(b){var a=this.footerFns;if(!a){a=this.footerFns=[]}a.push(b)},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(d,a){var e=this,b,c;if(a.isTemplate){a=Ext.Object.chain(a)}else {a=new Ext.XTemplate('{%this.nextTpl.applyOut(values, out, parent);%}',a)}for(b=e[d];a.priority<b.priority;b=b.nextTpl){c=b}if(c){c.nextTpl=a}else {e[d]=a}a.nextTpl=b;return a},tplApplyOut:function(b,c,a){if(this.before){if(this.before(b,c,a)===!1){return}}this.nextTpl.applyOut(b,c,a);if(this.after){this.after(b,c,a)}},constructFeatures:function(){var f=this,c=f.features,a,d,b=0,e;if(c){d=[];e=c.length;for(;b<e;b++){a=c[b];if(!a.isFeature){a=Ext.create('feature.'+a.ftype,a)}d[b]=a}}return d},beforeRender:function(){Ext.view.View.prototype.beforeRender.call(this);if(!this.enableTextSelection){this.protoEl.unselectable()}},updateScrollable:function(a){var c=this,b=c.grid.ownerGrid;if(!b.lockable&&a.isScroller&&a!==b.scrollable){b.scrollable=a}},afterComponentLayout:function(e,d,c,b){var f=this,a=f.grid.ownerGrid;if(a.mixins.lockable){a.syncLockableLayout()}Ext.view.View.prototype.afterComponentLayout.call(this,e,d,c,b)},getElConfig:function(){var a=Ext.view.View.prototype.getElConfig.call(this);delete a['aria-hidden'];delete a['aria-disabled'];return a},onBindStore:function(c){var a=this,b=a.bufferedRenderer;if(b&&b.store!==c){b.bindStore(c)}if(a.all&&a.all.getCount()&&!a.grid.reconfiguring){a.clearViewEl(!0)}Ext.view.View.prototype.onBindStore.apply(this,arguments)},onOwnerGridHide:function(){var b=this.getScrollable(),a=this.bufferedRederer;if(b){b.suspendPartnerSync()}if(a){a.disable()}},onOwnerGridShow:function(){var b=this.getScrollable(),a=this.bufferedRederer;if(b){b.resumePartnerSync()}if(a){a.enable()}},getStoreListeners:function(d){var b=this,a=Ext.view.View.prototype.getStoreListeners.call(this,d),c=b.dataSource;if(c&&c.isFeatureStore){delete a.add;delete a.remove}if(b.bufferedRenderer){delete a.clear}a.beforepageremove=b.beforePageRemove;return a},beforePageRemove:function(c,a){var d=this.all,b=c.getPageSize();if(d.startIndex>=(a-1)*b&&d.endIndex<=(a*b-1)){c.get(a);return !1}},onViewScroll:function(a,b,c){if(!this.destroyed&&!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,a,b,c)}},createRowElement:function(f,g,e){var a=this,d=a.renderBuffer,c=a.collectData([f],g),b;c.columns=e;a.tpl.overwrite(d,c);a.cleanupData();b=d.dom.querySelector(a.getNodeContainerSelector()).firstChild;Ext.fly(b).saveTabbableState(a.saveTabOptions);return b},bufferRender:function(e,f){var b=this,a=b.renderBuffer,c,d=document.createRange?document.createRange():null;b.tpl.overwrite(a,b.collectData(e,f));b.cleanupData();a.saveTabbableState(b.saveTabOptions);a=a.dom.querySelector(b.getNodeContainerSelector());if(d){d.selectNodeContents(a);c=d.extractContents()}else {c=document.createDocumentFragment();while(a.firstChild){c.appendChild(a.firstChild)}}return {fragment:c,children:Ext.Array.toArray(c.childNodes)}},collectData:function(d,c){var b=this,a=b.tableValues;b.rowValues.view=b;a.view=b;a.rows=d;a.columns=null;a.viewStartIndex=c;a.tableStyle='width:'+b.headerCt.getTableWidth()+'px';return a},cleanupData:function(){var a=this.tableValues;a.view=a.columns=a.rows=this.rowValues.view=null},refreshSize:function(e){var a=this,d=a.getBodySelector(),b=a.lockingPartner,c;if(!a.actionableMode){c=a.saveFocusState()}if(d){a.body.attach(a.el.dom.querySelector(d))}if(!a.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.call(this,e);if(e||(a.hasVariableRowHeight()&&a.dataSource.getCount())){a.grid.updateLayout()}Ext.resumeLayouts(!b||!b.grid.isVisible()||(b.all.getCount()===a.all.getCount()));if(c){c()}}},isLayoutRoot:function(){return !1},clearViewEl:function(c){var b=this,a;if(b.rendered){Ext.view.View.prototype.clearViewEl.call(this);if(!c){a=Ext.get(b.getNodeContainer());if(a&&a.dom!==b.getTargetEl().dom){a.destroy()}}}},getRefItems:function(h){var i=this,e=i.ownerGrid.liveRowContexts,j=!!i.isLockedView,a=Ext.view.View.prototype.getRefItems.call(this,h),f,c,d,b,g;for(g in e){d=e[g].getWidgets();f=d.length;for(c=0;c<f;c++){b=d[c];if(j===b.$fromLocked){a[a.length]=b;if(h&&b.getRefItems){a.push.apply(a,b.getRefItems(!0))}}}}return a},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(a){return Ext.getCmp(a.getAttribute('data-boundView'))}},getRecord:function(a){if(this.store.destroyed){return}if(a.isModel){return a}a=this.getNode(a);if(a){return this.dataSource.getByInternalId(a.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(a){var c=this.dataSource,b;if(a.isCollapsedPlaceholder){b=c.indexOfPlaceholder(a)}else {b=c.indexOf(a)}return b},renderRows:function(e,g,d,h){var b=this,a=b.rowValues,f=e.length,c;a.view=b;a.columns=g;a.rowRole=b.rowAriaRole;b.cellValues.cellRole=b.cellAriaRole;for(c=0;c<f;c++,d++){a.itemClasses.length=a.rowClasses.length=0;b.renderRow(e[c],d,h)}a.view=a.columns=a.record=null},renderColumnSizer:function(f,d){var b=f.columns||this.getGridColumns(),g=b.length,a,c,e;d.push('<colgroup role="presentation">');for(a=0;a<g;a++){c=b[a];e=c.cellWidth?c.cellWidth:Ext.grid.header.Container.prototype.defaultWidth;d.push('<col role="presentation" class="','x-','grid-cell-',b[a].getItemId(),'" style="width:'+e+'px">')}d.push('</colgroup>')},renderRow:function(c,e,j){var a=this,k=e===-1,h=a.selectionModel,b=a.rowValues,d=b.itemClasses,g=b.rowClasses,l=a.itemCls,f,i=a.rowTpl;b.rowAttr={};b.record=c;b.recordId=c.internalId;b.recordIndex=a.store.indexOf(c);b.rowIndex=e;b.rowId=a.getRowId(c);b.itemCls=b.rowCls='';if(!b.columns){b.columns=a.ownerCt.getVisibleColumnManager().getColumns()}d.length=g.length=0;if(!k){d[0]=l;if(!a.ownerCt.disableSelection&&h.isRowSelected){if(h.isRowSelected(c)){d.push(a.selectedItemCls)}}if(a.stripeRows&&e%2!==0){d.push(a.altRowCls)}if(a.getRowClass){f=a.getRowClass(c,e,null,a.dataSource);if(f){g.push(f)}}}if(j){i.applyOut(b,j,a.tableValues)}else {return i.apply(b,a.tableValues)}},renderCell:function(b,f,l,p,m,r){var c=this,i=b.renderer,o,j=c.selectionModel,a=c.cellValues,d=a.classes,n=f.data[b.dataIndex],q=c.cellTpl,h=b.enableTextSelection,g,e,k=c.navigationModel.getPosition();if(h==null){h=c.enableTextSelection}a.record=f;a.column=b;a.recordIndex=l;a.rowIndex=p;a.columnIndex=a.cellIndex=m;a.align=b.textAlign;a.innerCls=b.innerCls;a.tdCls=a.tdStyle=a.tdAttr=a.style="";a.unselectableAttr=h?'':'unselectable="on"';d[1]=b.getCellId();e=2;if(i&&i.call){o=i.length>4?c.ownerCt.columnManager.getHeaderIndex(b):m;g=i.call(b.usingDefaultRenderer?b:b.scope||c.ownerCt,n,a,f,l,o,c.dataSource,c);if(a.css){f.cssWarning=!0;a.tdCls+=' '+a.css;a.css=null}if(a.tdCls){d[e++]=a.tdCls}}else {g=n}a.value=(g==null||g.length===0)?b.emptyCellText:g;if(b.tdCls){d[e++]=b.tdCls}if(c.markDirty&&f.dirty&&f.isModified(b.dataIndex)){d[e++]=c.dirtyCls;if(b.dirtyTextElementId){a.tdAttr=(a.tdAttr?a.tdAttr+' ':'')+'aria-describedby="'+b.dirtyTextElementId+'"'}}if(b.isFirstVisible){d[e++]=c.firstCls}if(b.isLastVisible){d[e++]=c.lastCls}if(!h){d[e++]=c.unselectableCls}if(j&&(j.isCellModel||j.isSpreadsheetModel)&&j.isCellSelected(c,l,b)){d[e++]=c.selectedCellCls}if(k&&k.record.id===f.id&&k.column===b){d[e++]=c.focusedItemCls}d.length=e;a.tdCls=d.join(' ');q.applyOut(a,r);a.column=a.record=null},getRow:function(a){var b=this,c=b.rowSelector;if((!a&&a!==0)||!b.rendered){return null}if(Ext.isString(a)){a=Ext.getDom(a);return a&&a.querySelectorAll(c)[0]}if(Ext.isNumber(a)){a=b.all.item(a,!0);return a&&a.querySelectorAll(c)[0]}if(a.isModel){return b.getRowByRecord(a)}a=Ext.fly(a.target||a);if(a.is(b.itemSelector)){return b.getRowFromItem(a)}return a.findParent(c,b.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,!1)},getRowById:function(a){a=this.constructRowId(a);return this.retrieveNode(a,!0)},getNodeByRecord:function(a){return this.retrieveNode(this.getRowId(a),!1)},getRowByRecord:function(a){return this.retrieveNode(this.getRowId(a),!0)},getRowFromItem:function(c){var b=Ext.getDom(c).tBodies[0].childNodes,d=b.length,a;for(a=0;a<d;a++){if(Ext.fly(b[a]).is(this.rowSelector)){return b[a]}}},retrieveNode:function(c,b){var a=this.el.getById(c,!0);if(b&&a){return a.querySelector(this.rowSelector,!0)}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,c){var a=this.getRow(b);if(a){Ext.fly(a).addCls(c)}},removeRowCls:function(b,c){var a=this.getRow(b);if(a){Ext.fly(a).removeCls(c)}},onRowSelect:function(c){var a=this,b;a.addItemCls(c,a.selectedItemCls);b=a.getRow(c);if(b){b.setAttribute('aria-selected',!0)}if(Ext.isIE8){a.repaintBorder(c+1)}},onRowDeselect:function(c){var a=this,b;a.removeItemCls(c,a.selectedItemCls);b=a.getRow(c);if(b){b.removeAttribute('aria-selected')}if(Ext.isIE8){a.repaintBorder(c+1)}},onCellSelect:function(b){var a=this.getCellByPosition(b,!0);if(a){Ext.fly(a).addCls(this.selectedCellCls);a.setAttribute('aria-selected',!0)}},onCellDeselect:function(b){var a=this.getCellByPosition(b,!0);if(a){Ext.fly(a).removeCls(this.selectedCellCls);a.removeAttribute('aria-selected')}},getCellInclusive:function(a,e){if(a){var d=this.getRow(a.row),c=this.ownerCt.getColumnManager().getHeaderAtIndex(a.column),b;if(c&&d){b=d.querySelector(this.getCellSelector(c));return e?b:Ext.get(b)}}return !1},getColumnByPosition:function(b){var c,a;if(b){a=b.column;if(a&&!a.destroyed&&a.isColumn){return a}else {c=b.view||this;a=typeof a==='number'?a:b.colIdx;return c.getVisibleColumnManager().getHeaderAtIndex(a)}}return !1},getCellByPosition:function(a,f){if(a){var d=a.view||this,e=d.getRow(a.record||a.row),b,c;b=d.getColumnByPosition(a);if(b&&e){c=e.querySelector(d.getCellSelector(b));return f?c:Ext.get(c)}}return !1},onFocusEnter:function(d){var a=this,g=d.fromComponent,f=a.getNavigationModel(),c,e,b;if(a.containsFocus){return Ext.Component.prototype.onFocusEnter.call(a,d)}if(a.actionableMode){if(a.actionPosition){a.el.dom.setAttribute('tabIndex','-1');a.cellFocused=!0;return}a.ownerGrid.setActionableMode(!1)}d=d.event;if(!a.cellFocused&&a.all.getCount()&&a.dataSource.getCount()){b=d.getTarget();if(b===a.el.dom){if(a.lastFocused==='scrollbar'){if(d.relatedTarget){d.relatedTarget.focus()}return}c=a.getDefaultFocusPosition(g);if(!c){d.stopEvent();a.el.focus();return}b=null}else if(b===a.tabGuardEl){c=new Ext.grid.CellContext(a).setPosition(a.all.endIndex,a.getVisibleColumnManager().getColumns().length-1);b=null}else if(e=d.getTarget(a.getCellSelector())){if(b===e){c=new Ext.grid.CellContext(a).setPosition(a.getRecord(b),a.getHeaderByCell(e));b=null}else if(b&&Ext.fly(b).isFocusable()&&a.el.contains(b)){c=new Ext.grid.CellContext(a).setPosition(a.getRecord(b),a.getHeaderByCell(e))}}}if(c){a.toggleChildrenTabbability(!1);if(b){c.target=b;if(a.ownerGrid.setActionableMode(!0,c)){c=null}}if(c){f.setPosition(c,null,d,null,!0)}a.cellFocused=a.el.contains(Ext.Element.getActiveElement());if(a.cellFocused){a.el.dom.setAttribute('tabIndex','-1')}}Ext.Component.prototype.onFocusEnter.call(a,d)},onFocusLeave:function(b){var a=this,c;if(!a.destroying&&!a.refreshing){c=!a.lockingPartner||!b.toComponent||(b.toComponent!==a.lockingPartner&&!a.lockingPartner.isAncestor(b.toComponent));if(a.cellFocused){if(c){a.getNavigationModel().setPosition(null,null,b.event,null,!0)}a.cellFocused=!1;a.focusEl=a.el;a.focusEl.dom.setAttribute('tabIndex',0)}if(c){if(a.ownerGrid.actionableMode){a.lastFocused=a.actionPosition;a.ownerGrid.setActionableMode(!1)}}else {a.actionPosition=null}Ext.Component.prototype.onFocusLeave.call(a,b)}},onRowFocus:function(b,d,c){var a=this;if(d){a.addItemCls(b,a.focusedItemCls);if(!c){a.focusRow(b)}}else {a.removeItemCls(b,a.focusedItemCls)}if(Ext.isIE8){a.repaintBorder(b+1)}},focusRow:function(d,b){var a=this,c=a.getFocusTask();if(b){c.delay(Ext.isNumber(b)?b:10,a.focusRow,a,[d,!1]);return}c.cancel();if(a.isVisible(!0)){a.getNavigationModel().setPosition(a.getRecord(d))}},focusNode:function(b,a){this.focusRow(b,a)},scrollRowIntoView:function(a,b){a=this.getRow(a);if(a){this.scrollElIntoView(a,!1,b)}},focusCell:function(b,c){var a=this,e,d=a.getFocusTask();if(c){d.delay(Ext.isNumber(c)?c:10,a.focusCell,a,[b,!1]);return}d.cancel();if(a.isVisible(!0)&&(e=a.getCellByPosition(b))){a.getNavigationModel().setPosition(b)}},findFocusPosition:function(j,g,f,l){var i=this,a=g.cellElement,h=i.ownerGrid.actionables,k=h.length,c,b,d,e;c=g.clone();b=Ext.fly(a).findTabbableElements();d=b[Ext.Array.indexOf(b,j)+(f?1:-1)];while(!d&&(a=a[f?'nextSibling':'previousSibling'])){c.setColumn(i.getHeaderByCell(a));for(e=0;e<k;e++){h[e].activateCell(c)}a=c.getCell(!0);if(a&&(b=Ext.fly(a).findTabbableElements()).length){d=b[f?0:b.length-1]}}return {target:d,position:c}},getDefaultFocusPosition:function(c){var b=this,f=b.dataSource,a=b.lastFocused,g=new Ext.grid.CellContext(b).setPosition(0,0),d,e;if(c){if(c.isColumn&&c.cellFocusable!==!1){if(!a){a=g}a.setColumn(c);a.setView(c.getView())}else if(c.isTableView&&c.lastFocused&&c.ownerGrid===b.ownerGrid){a=new Ext.grid.CellContext(b).setPosition(c.lastFocused.record,0)}}if(a){e=b.getScrollable();if(!f.contains(a.record)||(e&&!e.isInView(a.getRow(!0)).y)){a.setRow(f.getAt(Math.min(a.rowIdx,f.getCount()-1)))}}else {a=g;d=b.el.dom.querySelector(b.getCellSelector()+'[tabIndex="-1"]');if(d){a.setPosition(b.getRecord(d),b.getHeaderByCell(d))}else {a=null}}return a},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(d,c,b){var a=this.getScrollable();if(a){a.ensureVisible(d,{animation:b,x:c})}},syncRowHeightBegin:function(){var f=this,b=f.all,h=b.count,d=[],g=Ext.grid.locking.RowSynchronizer,a,c,e;for(a=0,c=b.startIndex;a<h;a++,c++){d[a]=e=new g(f,b.elements[c]);e.reset()}return d},syncRowHeightClear:function(b){var e=this,c=e.all,d=c.count,a;for(a=0;a<d;a++){b[a].reset()}},syncRowHeightMeasure:function(b){var c=b.length,a;for(a=0;a<c;a++){b[a].measure()}},syncRowHeightFinish:function(c,d){var e=c.length,b=this.bufferedRenderer,a;for(a=0;a<e;a++){c[a].finish(d[a])}if(b){b.syncRowHeightsFinish()}},refreshNode:function(a){if(Ext.isNumber(a)){a=this.store.getAt(a)}this.handleUpdate(this.dataSource,a,null,null,null,!0)},handleUpdate:function(J,d,y,B,K,I){var a=this,D=a.store.indexOf(d),n=a.rowTpl,x=a.markDirty,j=a.dirtyCls,g=[],o=a.variableRowHeight,p=0,G=a.ownerCt,k=a.cellFly||(a.self.prototype.cellFly=new Ext.dom.Fly()),c,E,i,r,H,s,l,v,m,b,t,h,u,e,F,f,q,C,A,z,w;y=y||Ext.data.Model.EDIT;q=y!==Ext.data.Model.EDIT;if(a.viewReady){a.updatingRows=!0;c=a.getNodeByRecord(d);if(c){if(d.isCollapsedPlaceholder){Ext.fly(c).syncContent(a.createRowElement(d,a.indexOfRow(d)));return}v=a.overItemCls;m=a.ownerCt.getVisibleColumnManager().getColumns();if(I){g=m;p=1}else {for(h=0,t=m.length;h<t;h++){b=m[h];if(b.preventUpdate){e=c.querySelector(b.getCellSelector());if(e&&!q&&x){k.attach(e);if(d.isModified(b.dataIndex)){k.addCls(j);if(b.dirtyTextElementId){e.setAttribute('aria-describedby',b.dirtyTextElementId)}}else {k.removeCls(j);e.removeAttribute('aria-describedby')}}}else {u=a.shouldUpdateCell(d,b,B);if(u){p=p|u;g[g.length]=b;o=o||b.variableRowHeight}}}}if(a.hasListeners.beforeitemupdate){a.fireEvent('beforeitemupdate',d,D,c,g)}if(a.getRowClass||!a.getRowFromItem(c)||(p&1)||(c.tBodies[0].childNodes.length>1)){z=c._extData;i=a.createRowElement(d,a.indexOfRow(d),g);if(Ext.fly(c,'_internal').hasCls(v)){Ext.fly(i).addCls(v)}if(Ext.isIE9m&&c.mergeAttributes){c.mergeAttributes(i,!0)}else {r=i.attributes;H=r.length;for(l=0;l<H;l++){s=r[l].name;f=r[l].value;if(s!=='id'&&c.getAttribute(s)!==f){c.setAttribute(s,f)}}}if(z){z.isSynchronized=!1}if(m.length&&(E=a.getRow(c))){a.updateColumns(E,i.querySelector(a.rowSelector),g,d)}while(n){if(n.syncContent){if(n.syncContent(c,i,B?g:null)===!1){break}}n=n.nextTpl}}else {for(h=0,t=g.length;h<t;h++){b=g[h];F=b.dataIndex;f=d.get(F);e=c.querySelector(b.getCellSelector());k.attach(e);if(!q&&x){if(d.isModified(b.dataIndex)){k.addCls(j);if(b.dirtyTextElementId){e.setAttribute('aria-describedby',b.dirtyTextElementId)}}else {k.removeCls(j);e.removeAttribute('aria-describedby')}}C=b.usingDefaultRenderer;A=C?b:b.scope;if(b.updater){Ext.callback(b.updater,A,[e,f,d,a,a.dataSource],0,b,G)}else {if(b.renderer){f=Ext.callback(b.renderer,A,[f,null,d,0,0,a.dataSource,a],0,b,G)}w=f==null||f.length===0;f=w?b.emptyCellText:f;if(b.producesHTML||w){e.querySelector(a.innerSelector).innerHTML=f}else {e.querySelector(a.innerSelector).childNodes[0].data=f}}if(a.highlightClass){Ext.fly(e).addCls(a.highlightClass);if(!a.changedCells){a.self.prototype.changedCells=[];a.prototype.clearChangedTask=new Ext.util.DelayedTask(a.clearChangedCells,a.prototype);a.clearChangedTask.delay(a.unhighlightDelay)}a.changedCells.push({cell:e,cls:a.highlightClass,expires:Ext.Date.now()+1000})}}}if(q&&x&&!d.dirty){Ext.fly(c,'_internal').select('.'+j).removeCls(j).set({'aria-describedby':undefined})}if(o){Ext.suspendLayouts()}if(a.hasListeners.itemupdate){a.fireEvent('itemupdate',d,D,c,a)}if(o){a.ownerGrid.updateLayout();Ext.resumeLayouts(!0)}}a.updatingRows=!1}},clearChangedCells:function(){var a=this,e=Ext.Date.now(),b;for(var d=0,c=a.changedCells.length;d<c;){b=a.changedCells[d];if(b.expires<=e){Ext.fly(b.cell).removeCls(b.highlightClass);Ext.Array.erase(a.changedCells,d,1);c--}else {break}}if(c){a.clearChangedTask.delay(a.unhighlightDelay)}},updateColumns:function(e,n,o,p){var h=this,b,j,c,a,q=o.length,i,k,g,m,l=h.getCellSelector(),d,f;if(e.mergeAttributes){e.mergeAttributes(n,!0)}else {b=n.attributes;j=b.length;for(a=0;a<j;a++){c=b[a].name;f=b[a].value;if(c!=='id'&&e.getAttribute(c)!==f){e.setAttribute(c,f)}}}d=e._extData;if(d){d.isSynchronized=!1}for(i=0;i<q;i++){k=o[i];l=h.getCellSelector(k);g=e.querySelector(l);m=n.querySelector(l);b=m.attributes;j=b.length;for(a=0;a<j;a++){c=b[a].name;f=b[a].value;if(c!=='id'&&g.getAttribute(c)!==f){g.setAttribute(c,f)}}d=g._extData;if(d){d.isSynchronized=!1}h.oldCellFly.attach(g.querySelector(h.innerSelector)).syncContent(m.querySelector(h.innerSelector));if(p&&k.onItemAdd){k.onItemAdd([p])}}},shouldUpdateCell:function(c,b,a){return b.shouldUpdateCell(c,a)},refresh:function(){var a=this;if(a.destroying){return}if(a.getVisibleColumnManager().getColumns().length){Ext.view.View.prototype.refresh.apply(this,arguments);a.headerCt.setSortState()}else {if(a.refreshCounter){a.clearViewEl(!0)}a.addEmptyText()}},processContainerEvent:function(b){var a=Ext.Component.from(b.target.parentNode);if(a&&a.up(this.ownerCt)){return !1}},processItemEvent:function(h,o,g,b){var a=this,p=a.self,q=p.EventMap,d=b.type,n=a.features,r=n.length,k,f,j,m,i,l=b.position=a.eventPosition||(a.eventPosition=new Ext.grid.CellContext()),e,c;if(Ext.isIE&&d==='mouseup'&&!b.within(a.el)){return !1}if(a.indexInStore(o)!==-1){e=l.rowElement=o.querySelector(a.rowSelector);c=b.getTarget(a.getCellSelector(),e);d=p.TouchEventMap[d]||d;if(c){if(!c.parentNode){return !1}i=a.getHeaderByCell(c);if(i){f=a.ownerCt.getColumnManager().getHeaderIndex(i)}else {i=c=null;f=-1}}else {f=-1}l.setAll(a,g,i?a.getVisibleColumnManager().getHeaderIndex(i):-1,h,i);l.cellElement=c;j=a.fireEvent('uievent',d,a,c,g,f,b,h,e);if((j===!1||Ext.view.View.prototype.processItemEvent.apply(this,arguments)===!1)){return !1}for(k=0;k<r;++k){m=n[k];if(m.wrapsItem){if(m.vetoEvent(h,e,g,b)===!1){a.processSpecialEvent(b);return !1}}}if(c&&d!=='mouseover'&&d!=='mouseout'){j=!((a['onBeforeCell'+q[d]](c,f,h,e,g,b)===!1)||(a.fireEvent('beforecell'+d,a,c,f,h,e,g,b)===!1)||(a['onCell'+q[d]](c,f,h,e,g,b)===!1)||(a.fireEvent('cell'+d,a,c,f,h,e,g,b)===!1))}if(j!==!1){j=a.fireEvent('row'+d,a,h,e,g,b)}return j}else {a.processSpecialEvent(b);if(b.pointerType==='mouse'){b.preventDefault()}return !1}},processSpecialEvent:function(f){var a=this,k=a.features,l=k.length,b=f.type,g,c,i,d,h,j,e=a.ownerCt;Ext.view.View.prototype.processSpecialEvent.apply(this,arguments);if(b==='mouseover'||b==='mouseout'){return}b=a.self.TouchEventMap[b]||b;for(g=0;g<l;g++){c=k[g];if(c.hasFeatureEvent){d=f.getTarget(c.eventSelector,a.getTargetEl());if(d){i=c.eventPrefix;h=c.getFireEventArgs('before'+i+b,a,d,f);j=c.getFireEventArgs(i+b,a,d,f);if((a.fireEvent.apply(a,h)===!1)||(e.fireEvent.apply(e,h)===!1)||(a.fireEvent.apply(a,j)===!1)||(e.fireEvent.apply(e,j)===!1)){return !1}}}}return !0},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(b){var c=this,d=c.el.query(b.getCellInnerSelector()),j=b.getWidth(),f=0,i=d.length,g=c.body.select(c.getColumnSizerSelector(b)),h=Math.max,e=0,a;if(i>0){if(Ext.supports.ScrollWidthInlinePaddingBug){e+=c.getCellPaddingAfter(d[0])}if(c.columnLines){e+=Ext.fly(d[0].parentNode).getBorderWidth('lr')}}g.setWidth(1);b.textEl.setStyle({"text-overflow":'clip',display:'table-cell'});a=b.textEl.dom.offsetWidth+b.titleEl.getPadding('lr');b.textEl.setStyle({"text-overflow":'',display:''});for(;f<i;f++){a=h(a,d[f].scrollWidth)}a+=e;a=h(a+1,40);g.setWidth(j);return a},getPositionByEvent:function(b){var a=this,c=b.getTarget(a.cellSelector),d=b.getTarget(a.itemSelector),f=a.getRecord(d),e=a.getHeaderByCell(c);return a.getPosition(f,e)},getHeaderByCell:function(a){if(a){return this.ownerGrid.getVisibleColumnManager().getHeaderById(Ext.getDom(a).getAttribute('data-columnId'))}return !1},walkCells:function(e,i,g,j){var c=this,b=e.clone(),d=c.lockingPartner&&c.lockingPartner.grid.isVisible()?c.lockingPartner:null,a=e.rowIdx,h=c.dataSource.getCount()-1,f=c.ownerCt.getVisibleColumnManager().getColumns();switch(i.toLowerCase()){case 'right':if(e.isLastColumn()){a=d&&c.isLockedView?a:a+1;if(a>h){return !1}if(d){b.view=d}b.setPosition(a,0)}else {b.navigate(+1)};break;case 'left':if(e.isFirstColumn()){a=d&&c.isNormalView?a:a-1;if(a<0){return !1}if(d){b.view=d;f=d.getVisibleColumnManager().getColumns()}b.setPosition(a,f[f.length-1])}else {b.navigate(-1)};break;case 'up':if(a===0){return !1}else {b.setRow(a-1)};break;case 'down':if(a===h){return !1}else {b.setRow(a+1)};break;}if(g&&g.call(j||c,b)!==!0){return !1}return b},walkRows:function(f,e){var i=this,j=i.dataSource,g=0,d=f,h,b=(e<0)?0:j.getCount()-1,c=b?1:-1,a=f;do{if(b?a>=b:a<=b){return d||b}a+=c;if((h=Ext.fly(i.getRow(a)))&&h.isVisible(!0)){g+=c;d=a}}while(g!==e);return a},walkRecs:function(h,g){var k=this,a=k.dataSource,i=0,e=h,j,c=(g<0)?0:(a.isBufferedStore?a.getTotalCount():a.getCount())-1,f=c?1:-1,b=a.indexOf(h),d;do{if(c?b>=c:b<=c){return e}b+=f;d=a.getAt(b);if(!d.isCollapsedPlaceholder&&(j=Ext.fly(k.getNodeByRecord(d)))&&j.isVisible(!0)){i+=f;e=d}}while(i!==g);return e},getFirstVisibleRowIndex:function(){var a=this,c=(a.dataSource.isBufferedStore?a.dataSource.getTotalCount():a.dataSource.getCount()),b=a.indexOf(a.all.first())-1;do{b+=1;if(b===c){return}}while(!Ext.fly(a.getRow(b)).isVisible(!0));return b},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(!0));return a},getHeaderCt:function(){return this.headerCt},getPosition:function(b,a){return new Ext.grid.CellContext(this).setPosition(b,a)},doDestroy:function(){var a=this,d=a.featuresMC,b,c,e;a.bindStore(null);if(d){for(c=0,e=d.getCount();c<e;++c){b=d.getAt(c);if(b&&!b.destroyed){b.destroy()}}}a.all.destroy();a.body.destroy();a.actionRowFly.destroy();Ext.view.View.prototype.doDestroy.call(this)},onReplace:function(g,d,f,e){var a=this,b=a.bufferedRenderer,c;if(a.rendered&&b){c=a.saveFocusState();b.onReplace(g,d,f,e);c()}else {Ext.view.View.prototype.onReplace.apply(this,arguments)}a.setPendingStripe(d)},onResize:function(e,d,c,b){var f=this,a=f.bufferedRenderer;if(a){a.onViewResize(f,e,d,c,b)}Ext.view.View.prototype.onResize.call(this,e,d,c,b)},onAdd:function(e,c,d){var a=this,b=a.bufferedRenderer;a.addingRows=!0;if(a.rendered&&b&&(b.bodyTop||a.dataSource.getCount()+c.length>=b.viewSize)){b.onReplace(e,d,[],c)}else {Ext.view.View.prototype.onAdd.apply(this,arguments)}a.setPendingStripe(d);a.addingRows=!1},onRemove:function(f,c,e){var a=this,b=a.bufferedRenderer,d;if(a.rendered&&b&&a.dataSource.getCount()+c.length>=b.viewSize){d=a.saveFocusState();b.onReplace(f,e,c,[]);d()}else {Ext.view.View.prototype.onRemove.apply(this,arguments)}if(a.actionPosition&&Ext.Array.indexOf(c,a.actionPosition.record)!==-1){a.actionPosition=null}a.setPendingStripe(e)},saveFocusState:function(){var b=this,g=b.dataSource,d=b.actionableMode,f=b.getNavigationModel(),a=d?b.actionPosition:f.getPosition(!0),e=Ext.fly(Ext.Element.getActiveElement()),h=a&&a.view===b&&Ext.fly(a.getCell(!0)),j,i,c;if(!b.skipSaveFocusState&&h&&h.contains(e)){a=a.clone();e.suspendFocusEvents();if(d&&h.dom!==e.dom){b.suspendActionableMode()}else {d=!1;f.setPosition()}e.resumeFocusEvents();if(g.isExpandingOrCollapsing){return Ext.emptyFn}return function(){var e;g=b.dataSource;if(g.getCount()){e=b.all;j=Math.min(Math.max(a.rowIdx,e.startIndex),e.endIndex);i=Math.min(a.colIdx,b.getVisibleColumnManager().getColumns().length-1);c=a.record;a=new Ext.grid.CellContext(b).setPosition(c&&g.contains(c)&&!c.isCollapsedPlaceholder?c:j,i);if(a.getCell(!0)){if(d){b.resumeActionableMode(a)}else {f.setPosition(a,null,null,null,!0);if(!f.getPosition()){a.column.focus()}}}}else {a.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(c){var b=this,a=b.ownerCt;if(a&&a.isCollapsingOrExpanding===2){a.on('expand',b.onDataRefresh,b,{single:!0});return}Ext.view.View.prototype.onDataRefresh.call(this,c)},getViewRange:function(){var a=this;if(a.bufferedRenderer){return a.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(b){var a=this.stripeOnUpdate;if(a===null){a=b}else {a=Math.min(a,b)}this.stripeOnUpdate=a},onEndUpdate:function(){var b=this,a=b.stripeOnUpdate,c=b.all.startIndex;if(b.rendered&&(a||a===0)){if(a<c){a=c}b.doStripeRows(a);b.stripeOnUpdate=null}Ext.view.View.prototype.onEndUpdate.apply(this,arguments)},doStripeRows:function(d,g){var a=this,e,f,c,b;if(a.rendered&&a.stripeRows){e=a.getNodes(d,g);for(c=0,f=e.length;c<f;c++){b=e[c];b.className=b.className.replace(a.rowClsRe,' ');d++;if(d%2===0){b.className+=(' '+a.altRowCls)}}}},hasActiveFeature:function(){return (this.isGrouping&&this.store.isGrouped())||this.isRowWrapped},getCellPaddingAfter:function(a){return Ext.fly(a).getPadding('r')},privates:{saveTabOptions:{skipSelf:!0,includeHidden:!0},collectNodes:function(a){this.all.fill(this.getNodeContainer().childNodes,this.all.startIndex)},setActionableMode:function(g,b){var a=this,j=a.getNavigationModel(),c,f=a.grid.actionables,m=f.length,d,l,k,i=!1,h,e;if(a.actionableMode===g){if(!g||b.isEqual(a.actionPosition)){return !1}}if(g){if(b&&(b.view===a||(b.view===(h=a.lockingPartner)&&h.actionableMode))){i=a.activateCell(b)}return i}else {c=Ext.fly(Ext.Element.getActiveElement());if(a.el.contains(c)&&!Ext.fly(c).is(a.getCellSelector())){l=(a.actionPosition&&a.actionPosition.record)||a.getRecord(c);k=a.getHeaderByCell(c.findParent(a.getCellSelector()));e=b&&b.getCell(!0);if(!b||!e){b=new Ext.grid.CellContext(a).setPosition(l||0,k||0);e=b.getCell(!0)}Ext.fly(e).focus();c=Ext.fly(Ext.Element.getActiveElement());if(!(a.el.contains(c)&&c.is(a.getCellSelector()))){b=null}}for(d=0;d<m;d++){if(f[d].deactivate){f[d].deactivate()}}if(a.actionRow){a.actionRow.saveTabbableState({skipSelf:!0,includeSaved:!1})}if(a.destroyed){return !1}a.actionableMode=a.ownerGrid.actionableMode=!1;a.actionPosition=j.actionPosition=a.actionRow=null;if(b){j.setPosition(b)}}},activateCell:function(b){var a=this,g=b.view!==a?a.lockingPartner:null,h=a.grid.actionables,n=h.length,l=a.getNavigationModel(),k=b.target,m,i,f,e,c,j,d;b=b.clone();m=b.record;b.view.grid.ensureVisible(m,{column:b.column});f=a.all.item(b.rowIdx,!0);if(a.actionPosition){i=a.all.item(a.actionPosition.rowIdx,!0);if(i&&f!==i){Ext.fly(i).saveTabbableState({skipSelf:!0,includeSaved:!1})}}a.activating=!0;if(!g){e=Ext.fly(b.getCell(!0));a.actionPosition=b;for(c=0;c<n;c++){j=j||h[c].activateCell(b,null,!0)}e=Ext.fly(b.getCell(!0))}if(g||(e&&(e.restoreTabbableState({skipSelf:!0}).length|(d=e.findTabbableElements()).length))||j){for(c=0;c<n;c++){if(h[c].activateRow){h[c].activateRow(f)}}if(g||d.length){Ext.fly(f).restoreTabbableState({skipSelf:!0});if(g){a.actionableMode=!0;a.actionPosition=null;a.activating=!1;return !0}if(d){a.actionRow=a.actionRowFly.attach(f);a.actionableMode=a.ownerGrid.actionableMode=!0;l.setPosition();l.actionPosition=a.actionPosition=b;if(k&&Ext.Array.contains(d,k)){Ext.fly(k).focus()}else {Ext.fly(d[0]).focus()}a.activating=!1;return !0}}}a.activating=!1},suspendActionableMode:function(){var d=this,b=d.grid.actionables,c=b.length,a;for(a=0;a<c;a++){b[a].suspend()}},resumeActionableMode:function(e){var c=this,d=c.grid.actionables,f=d.length,a,b;c.toggleChildrenTabbability(!1);for(a=0;a<f;a++){b=b||d[a].resume(e)}if(!b){c.activateCell(e)}},onRowExit:function(f,g,e,b,i){var a=this,h=b?'nextSibling':'previousSibling',d=a.lockingPartner,c;if(d&&d.grid.isVisible()){c=a.all.indexOf(g);if(b){if(a.isNormalView){c++}}else if(a.isLockedView){c--}a.actionPosition=null;a=d;e=a.all.item(c,!0)}if(!a.hasListeners.beforerowexit||a.fireEvent('beforerowexit',a,f,g,e,b)!==!1){a.findFirstActionableElement(f,e,h,b,i)}else {return !1}},findFirstActionableElement:function(o,c,s,e,p){var a=this,q=a.getVisibleColumnManager().getColumns(),n=q.length,g=a.grid.actionables,m=g.length,d=new Ext.grid.CellContext(a),f,h,b,j,r,l,k,i;if(c){d.setRow(c);for(b=0;b<m;b++){if(g[b].activateRow){g[b].activateRow(c)}}for(b=(e?0:n-1);(e?b<n:b>-1)&&!h;b=b+(e?1:-1)){r=q[b];d.setColumn(r);f=(c.dom||c).querySelector(d.column.getCellSelector());for(j=0;j<m;j++){l=l||g[j].activateCell(d)}f=Ext.fly(d.getCell(!0));if(f){c=d.getNode(!0);f.restoreTabbableState({skipSelf:!0});if((k=f.findTabbableElements()).length||l){i=a.actionRow&&a.actionRow.dom;a.actionRow=a.actionRowFly.attach(c);a.actionRow.restoreTabbableState({skipSelf:!0});h=k[e?0:k.length-1]}}}if(h){a.actionPosition=a.getNavigationModel().actionPosition=d;Ext.fly(h).focus(Ext.asyncFocus?1:0);if(i&&c!==i){Ext.fly(i).saveTabbableState({skipSelf:!0,includeSaved:!1})}}else {a.onRowExit(o,c,a.all.item(d.rowIdx+(e?1:-1)),e,p)}}else if(!p){a.grid.ensureVisible(e?0:a.dataSource.getCount()-1,{callback:function(b,f,d){if(b){a.findFirstActionableElement(o,d,s,e,!0)}else {a.ownerGrid.setActionableMode(!1)}}})}else {a.ownerGrid.setActionableMode(!1)}},stretchHeight:function(d){var a=this,e=a.getScrollable(),c=a.stretchers,b;if(d&&a.tabGuardEl){if(c){c[0].style.marginTop=c[1].style.marginTop=a.el.dom.style.height=0}a.el.dom.style.height=e.constrainScrollRange(d)+'px';b=d-a.el.dom.offsetHeight;if(b>0){a.el.dom.style.height='';c=a.getStretchers();b=d-a.el.dom.offsetHeight;if(b>0){c[0].style.marginTop=e.constrainScrollRange(b)+'px';b=d-a.el.dom.offsetHeight;if(b>0){c[1].style.marginTop=Math.min(b,e.maxSpacerMargin||0)+'px'}}}}},getStretchers:function(){var b=this,a=b.stretchers,c;if(a){b.el.appendChild(a)}else {c={cls:'x-scroller-spacer',style:'position:relative'};a=b.stretchers=b.el.appendChild([c,c],!0)}return a}}},1,["gridview","tableview"],["component","box","dataview","tableview","gridview"],{"component":!0,"box":!0,"dataview":!0,"tableview":!0,"gridview":!0},["widget.gridview","widget.tableview"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.view,'Table',Ext.grid,'View'],function(a){a.prototype.oldCellFly=new Ext.dom.Fly()}));(Ext.cmd.derive('Ext.grid.Panel',Ext.panel.Table,{alternateClassName:['Ext.list.ListView','Ext.ListView','Ext.grid.GridPanel'],viewType:'tableview',ariaRole:'grid',lockable:!1,rowLines:!0},0,["grid","gridpanel"],["component","box","container","panel","tablepanel","gridpanel","grid"],{"component":!0,"box":!0,"container":!0,"panel":!0,"tablepanel":!0,"gridpanel":!0,"grid":!0},["widget.grid","widget.gridpanel"],0,[Ext.grid,'Panel',Ext.list,'ListView',Ext,'ListView',Ext.grid,'GridPanel'],0));(Ext.cmd.derive('Ext.grid.RowContext',Ext.Base,{constructor:function(a){Ext.apply(this,a);this.widgets={}},setRecord:function(c,b){var a=this.viewModel;this.record=c;this.recordIndex=b;if(a){a.set('record',c);a.set('recordIndex',b)}},free:function(d){var e=this,g=e.widgets,f,b,a,c=e.viewModel;e.record=null;if(c){c.set('record');c.set('recordIndex')}for(f in g){b=g[f];if(d&&d.refreshing&&!d.el.contains(b.el)){continue}a=b.getFocusEl();if(a){if(a.isTabbable(!0)){a.saveTabbableState({includeHidden:!0})}a.blur()}b.detachFromBody()}},getWidget:function(i,g,f){var a=this,h=a.widgets||(a.widgets={}),d=a.ownerGrid,c=d.rowViewModel,e=a.viewModel,b;if((f.bind||c)&&!e){if(typeof c==='string'){c={type:c}}a.viewModel=e=Ext.Factory.viewModel(Ext.merge({parent:d.getRowContextViewModelParent(),data:{record:a.record,recordIndex:a.recordIndex}},c))}if(!(b=h[g])){b=h[g]=Ext.widget(Ext.apply({ownerCmp:i,_rowContext:a,$vmParent:e||d.getRowContextViewModelParent(),initInheritedState:a.initInheritedStateHook,lookupViewModel:a.lookupViewModelHook},f));b.$fromLocked=!!i.isLockedView;if(b.isWidget){b.initBindable()}else {b.collectContainerElement=!0}}return b},getWidgets:function(){var a=this.widgets,c,b=[];for(c in a){b.push(a[c])}return b},handleWidgetViewChange:function(b,c){var a=this.widgets[c];if(a){a.ownerCmp=b;a.$fromLocked=!!b.isLockedView}},destroy:function(){var b=this,d=b.widgets,c,a;for(c in d){a=d[c];a._rowContext=null;a.destroy()}Ext.destroy(b.viewModel);b.callParent()},privates:{initInheritedStateHook:function(a,c){var b=this.$vmParent;this.self.prototype.initInheritedState.call(this,a,c);if(!a.hasOwnProperty('viewModel')&&b){a.viewModel=b}},lookupViewModelHook:function(b){var a=b?null:this.getViewModel();if(!a){a=this.$vmParent||null}return a}}},1,0,0,0,0,0,[Ext.grid,'RowContext'],0));(Ext.cmd.derive('Ext.grid.RowEditorButtons',Ext.container.Container,{frame:!0,shrinkWrap:!0,position:'bottom',ariaRole:'toolbar',constructor:function(c){var a=this,b=c.rowEditor,d='x-',e=b.editingPlugin;c=Ext.apply({baseCls:d+'grid-row-editor-buttons',defaults:{xtype:'button',ui:b.buttonUI,scope:e,flex:1,minWidth:Ext.panel.Panel.prototype.minButtonWidth},items:[{cls:d+'row-editor-update-button',itemId:'update',handler:e.completeEdit,text:b.saveBtnText,disabled:b.updateButtonDisabled,listeners:{element:'el',keydown:a.onUpdateKeyDown,scope:a}},{cls:d+'row-editor-cancel-button',itemId:'cancel',handler:e.cancelEdit,text:b.cancelBtnText,listeners:{element:'el',keydown:a.onCancelKeyDown,scope:a}}]},c);Ext.container.Container.prototype.constructor.call(this,c);a.addClsWithUI(a.position)},onUpdateKeyDown:function(a){if(a.shiftKey&&a.getKey()===a.TAB){a.stopEvent();this.rowEditor.child(':focusable:not([isButton]):last').focus(!1,!0)}},onCancelKeyDown:function(a){if(!a.shiftKey&&a.getKey()===a.TAB){a.stopEvent();this.rowEditor.child(':focusable').focus(!1,!0)}},setButtonPosition:function(b){var a=this,e=this.rowEditor,c=e.getHeight(),d=e.body,f='',g='';a.removeClsWithUI(a.position);a.position=b;a.addClsWithUI(b);if(b==='top'){f=(c-d.getBorderWidth('t'))+'px'}else {g=(c-d.getBorderWidth('b'))+'px'}a.el.setStyle({top:g,bottom:f})},privates:{getFramingInfoCls:function(){return this.baseCls+'-'+this.ui+'-'+this.position},getFrameInfo:function(){var a=Ext.container.Container.prototype.getFrameInfo.call(this);a.top=!0;return a}}},1,["roweditorbuttons"],["component","box","container","roweditorbuttons"],{"component":!0,"box":!0,"container":!0,"roweditorbuttons":!0},["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:!1,tabGuard:!0,_wrapCls:'x-grid-row-editor-wrap',errorCls:'x-grid-row-editor-errors-item',buttonUI:'default',hideMode:'offsets',defaultFocus:'field:canfocus',layout:{type:'hbox',align:'middle'},_cachedNode:!1,initComponent:function(){var a=this,b=a.editingPlugin.grid,f=Ext.container.Container,c,e,d;a.cls='x-grid-editor x-grid-row-editor';a.lockable=b.lockable;if(a.lockable){a.items=[d=a.lockedColumnContainer=new f({$initParent:a,id:b.id+'-locked-editor-cells',scrollable:{x:!1,y:!1},layout:{type:'hbox',align:'middle'},margin:'0 1 0 0'}),e=a.normalColumnContainer=new f({$initParent:a,id:b.id+'-normal-editor-cells',scrollable:{x:!1,y:!1},layout:{type:'hbox',align:'middle'},flex:1})];delete d.$initParent;delete e.$initParent;d.getScrollable().addPartner(b.lockedGrid.view.getScrollable(),'x');e.getScrollable().addPartner(b.normalGrid.view.getScrollable(),'x');b.lockedGrid.on({collapse:a.onGridResize,expand:a.onGridResize,beginfloat:a.onBeginFloat,scope:a})}else {a.setScrollable({x:!1,y:!1});a.getScrollable().addPartner(b.view.getScrollable(),'x');a.lockedColumnContainer=a.normalColumnContainer=a}Ext.form.Panel.prototype.initComponent.call(this);if(a.fields){a.addFieldsForColumn(a.fields,!0);a.insertColumnEditor(a.fields);delete a.fields}a.mon(Ext.GlobalEvents,{scope:a,show:a.repositionIfVisible});c=a.getForm();c.trackResetOnLoad=!0;c.on('validitychange',a.onValidityChange,a);c.on('errorchange',a.onErrorChange,a)},onGridResize:function(){if(this.rendered){var a=this,c=a.getClientWidth(),b=a.editingPlugin.grid,d=b.body,e=a.getFloatingButtons();a.wrapEl.setLocalX(d.getOffsetsTo(b)[0]+d.getBorderWidth('l')-b.el.getBorderWidth('l'));a.setWidth(c);e.setLocalX((c-e.getWidth())/2);if(a.lockable){a.lockedColumnContainer.setWidth(b.normalGrid.el.getLeft(!0))}}},onBeginFloat:function(a){if(a.isSliding&&this.isVisible()){return !1}},syncAllFieldWidths:function(){var a=this,d=a.query('[isEditorComponent]'),e=d.length,c,b;a.preventReposition=!0;for(b=0;b<e;++b){c=d[b].column;if(c.isVisible()){a.onColumnShow(c)}}a.preventReposition=!1},syncFieldWidth:function(c){var a=c.getEditor(),b;a._marginWidth=(a._marginWidth||a.el.getMargin('lr'));b=Math.max(c.getWidth()-a._marginWidth,0);a.setWidth(b);if(a.xtype==='displayfield'){a.inputWidth=b}},onValidityChange:function(b,a){this.updateButton(a)},onErrorChange:function(){var a=this,b;if(a.errorSummary&&a.isVisible()){b=a.getForm().isValid();a[b?'hideToolTip':'showToolTip']()}},updateButton:function(b){var a=this.floatingButtons;if(a){a.child('#update').setDisabled(!b)}else {this.updateButtonDisabled=!b}},afterRender:function(){var a=this,c=a.editingPlugin,b=c.grid;a.scroller=b.getScrollable();Ext.form.Panel.prototype.afterRender.apply(this,arguments);a.scrollingView=b.lockable?b.normalGrid.view:b.view;a.scrollingViewEl=a.scrollingView.el;a.scroller.on('scroll',a.onViewScroll,a);a.mon(a.el,{click:Ext.emptyFn,stopPropagation:!0});a.mon(b,'resize',a.onGridResize,a);if(a.lockable){b.lockedGrid.view.on('resize','onGridResize',a)}a.el.swallowEvent(['keypress','keydown']);a.initKeyNav();a.mon(c.view,{beforerefresh:a.onBeforeViewRefresh,refresh:a.onViewRefresh,itemremove:a.onViewItemRemove,scope:a});a.syncAllFieldWidths();if(a.floatingButtons){a.body.dom.setAttribute('aria-owns',a.floatingButtons.id)}},initKeyNav:function(){var a=this,b=a.editingPlugin;a.keyNav=new Ext.util.KeyNav({target:a.el,tab:{fn:a.onFieldTab,scope:a},enter:b.onEnterKey,esc:b.onEscKey,scope:b})},onBeforeViewRefresh:function(c){var b=this,a=c.el.dom;if(b.el.dom.parentNode===a){a.removeChild(b.el.dom)}},onViewRefresh:function(c){var b=this,a=b.context,d;if(!b.completing){if(a&&!a.column.destroyed&&(d=c.getRow(a.record))){if(c===a.column.getView()){a.row=d;a.view=c;b.reposition();if(b.tooltip&&b.tooltip.isVisible()){b.tooltip.setTarget(a.row)}}}else {b.editingPlugin.cancelEdit()}}},onViewItemRemove:function(h,i,j,g){var a=this,f=a.context,e,d,c,b;if(!g.refreshing&&f){b=a.editingPlugin;e=b.grid;d=e.getStore();c=a.editingPlugin.view;if(d.getById(a.getRecord().getId())&&!a._cachedNode){if(b.editing){a._cachedNode=!0;a.mon(c,{itemadd:a.onViewItemAdd,scope:a})}}else if(!a._cachedNode){a.activeField=null;a.editingPlugin.cancelEdit()}}},onViewItemAdd:function(d,g,h,i){var a=this,f=a.editingPlugin,b,e,c;if(a._cachedNode&&a.context){b=f.view;if((e=Ext.Array.indexOf(d,a.context.record))!==-1){c=d[e];a.context.node=c;a.context.row=b.getRow(c);a.context.cell=b.getCellByPosition(a.context,!0);a.clearCache()}}},onViewScroll:function(){var a=this,g=a.editingPlugin.view.el,e=a.scrollingView,c=a.scroller.getPosition().y,f=e.getScrollX(),d=c!==a.lastScrollTop,b;a.lastScrollTop=c;a.lastScrollLeft=f;if(a.isVisible()){b=Ext.getDom(a.context.row);if(b&&g.contains(b)){if(a.getLocalY()){a.setLocalY(0)}if(d){a.context.row=b;a.reposition(null,!0);if((a.tooltip&&a.tooltip.isVisible())){a.repositionTip()}}}else {a.setLocalY(-400);a.floatingButtons.hide()}}},onColumnResize:function(b,c){var a=this;if(a.rendered&&!a.editingPlugin.reconfiguring){a.onGridResize();a.onViewScroll();if(a.lockable){a.lockedColumnContainer.getScrollable().syncWithPartners();a.normalColumnContainer.getScrollable().syncWithPartners()}else {a.getScrollable().syncWithPartners()}if(!b.isGroupHeader){a.syncFieldWidth(b);a.repositionIfVisible()}}},onColumnHide:function(a){if(!this.editingPlugin.reconfiguring&&!a.isGroupHeader){a.getEditor().hide();this.repositionIfVisible()}},onColumnShow:function(b){var a=this;if(a.rendered&&!a.editingPlugin.reconfiguring&&!b.isGroupHeader&&b.getEditor){b.getEditor().show();a.syncFieldWidth(b);if(!a.preventReposition){a.repositionIfVisible()}}},onColumnMove:function(a,j,g){var b=this,k=a.isLocked(),h=k?b.lockedColumnContainer:b.normalColumnContainer,d,c,i,f,e;if(a.isGroupHeader){Ext.suspendLayouts();f=g>j;e=f?1:0;d=a.getGridColumns();for(c=0,i=d.length;c<i;++c){a=d[c];g=a.getIndex();if(f){++e}b.setColumnEditor(a,g+e,h)}Ext.resumeLayouts(!0)}else {b.setColumnEditor(a,a.getIndex(),h)}},setColumnEditor:function(a,c,b){this.addFieldsForColumn(a);b.insert(c,a.getEditor())},onColumnAdd:function(a,b){if(a.isGroupHeader){a=a.getGridColumns()}this.preventReposition=!0;this.addFieldsForColumn(a);this.insertColumnEditor(a,b);this.preventReposition=!1},insertColumnEditor:function(a,d){var b=this,f,e,g,c;if(Ext.isArray(a)){for(c=0,g=a.length;c<g;c++){b.insertColumnEditor(a[c])}return}if(!a.getEditor){return}if(d==null){d=a.getIndex()}e=a.isLocked()?b.lockedColumnContainer:b.normalColumnContainer;e.insert(d,f=a.getEditor());f.on('focus',b.onFieldFocus,b);b.needsSyncFieldWidths=!0},onFieldFocus:function(a){if(a.selectText){a.selectText(a.inputEl.dom.value.length)}this.activeField=a;this.context.setColumn(a.column);if(!this.skipFocusScroll){a.column.getView().getScrollable().ensureVisible(a.el)}else {this.skipFocusScroll=null}},onFieldTab:function(g){var a=this,d=a.activeField,b=a.context.rowIdx,e=!g.shiftKey,c=d[e?'nextNode':'previousNode'](':focusable'),f;g.stopEvent();if(!c||!c.isDescendant(a)){if(a.isDirty()&&!a.autoUpdate){a.floatingButtons.child('#update').focus()}else {f=a.view.dataSource.getCount();b=b+(e?1:-1);if(b<0){b=f-1}else if(b>=f){b=0}if(e){c=a.down(':focusable:not([isButton]):first');d.column.getView().getScrollable().ensureVisible(d.ownerCt.child(':focusable').el)}else {c=a.down(':focusable:not([isButton]):last')}a.tabGuardBeforeEl.focus();a.editingPlugin.startEdit(b,c.column)}}else {c.focus()}},destroyColumnEditor:function(a){var b;if(a.hasEditor()&&(b=a.getEditor())){b.destroy()}},getFloatingButtons:function(){var a=this,b=a.floatingButtons;if(!b&&!a.destroying&&!a.destroyed){a.floatingButtons=b=new Ext.grid.RowEditorButtons({ownerCmp:a,rowEditor:a,hidden:a.hidden})}return b},repositionIfVisible:function(b){var a=this,c=a.view;if(b&&(b===a||!b.el.isAncestor(c.el))){return}if(a.isVisible()&&c.isVisible(!0)){a.reposition()}},isLayoutChild:function(a){return !1},getRefOwner:function(){return this.editingPlugin.grid},getRefItems:function(d){var b=this,a,c;if(b.lockable){a=[b.lockedColumnContainer];a.push.apply(a,b.lockedColumnContainer.getRefItems(d));a.push(b.normalColumnContainer);a.push.apply(a,b.normalColumnContainer.getRefItems(d))}else {a=Ext.form.Panel.prototype.getRefItems.apply(this,arguments)}c=b.getFloatingButtons();if(c){a.push.apply(a,c.getRefItems(d))}return a},reposition:function(d,j){var a=this,b=a.context,g=b&&b.row,i=a.wrapEl,h,f,e,c;if(g&&Ext.isElement(g)){e=a.syncButtonPosition(b);h=a.calculateLocalRowTop(g);f=a.calculateEditorTop(h);c=function(){a.syncEditorClip();a.wrapAnim=null;if(!j){if(e){a.scroller.scrollBy(0,e,!0)}a.focusColumnField(b.column)}};if(d){a.wrapAnim=i.addAnimation(Ext.applyIf({to:{top:f},duration:d.duration||125,callback:c},d))}else {i.setLocalY(f);c()}}},getScrollDelta:function(){var b=this,d=b.scroller.getElement().dom,h=b.context,f=b.body,a=0,c,g,e;if(h){a=Ext.fly(h.row).getOffsetsTo(d)[1];if(a<0){a-=f.getBorderPadding().beforeY}else if(a>0){c=d.clientHeight;g=d.scrollHeight;e=b.getHeight()+b.floatingButtons.getHeight();if(c===g&&e>c){return 0}a=Math.max(a+e-c-f.getBorderWidth('b'),0);if(a>0){a-=f.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 d=this,a=d.editingPlugin.grid,c,b;if(d.lockable){c=(a.lockedGrid.collapsed&&a.lockedGrid.placeholder)||a.lockedGrid;b=c.getRegion().union(a.scrollBody.el.getClientRegion()).width}else {b=a.view.el.dom.clientWidth}return b},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(a,f){var d=this,e,g,c,b;if(Ext.isArray(a)){for(e=0,g=a.length;e<g;e++){d.addFieldsForColumn(a[e],f)}return}if(a.getEditor){c=a.getEditor(null,d.getDefaultFieldCfg());c.preventRefocus=!0;if(a.align==='right'){b=c.fieldStyle;if(b){if(Ext.isObject(b)){b=Ext.apply({},b)}else {b=Ext.dom.Element.parseStyles(b)}if(!b.textAlign&&!b['text-align']){b.textAlign='right'}}else {b='text-align:right'}c.fieldStyle=b}if(a.xtype==='actioncolumn'){c.fieldCls+=' x-form-action-col-field'}if(d.isVisible()&&d.context){if(c.is('displayfield')){d.renderColumnData(c,d.context.record,a)}else {c.suspendEvents();c.setValue(d.context.record.get(a.dataIndex));c.resumeEvents()}}if(a.hidden){d.onColumnHide(a)}else if(a.rendered&&!f){d.onColumnShow(a)}}},getDefaultFieldCfg:function(){return {xtype:'displayfield',skipLabelForAttribute:!0,getModelData:function(){return null}}},loadRecord:function(i){var b=this,c=b.getForm(),j=c.getFields(),g=j.items,d=g.length,a,e,f,h;for(a=0;a<d;a++){h=g[a];h.suspendEvents();h.resetToInitialValue()}c.loadRecord(i);for(a=0;a<d;a++){g[a].resumeEvents()}if(c.hasInvalidField()===c.wasValid){delete c.wasValid}f=c.isValid();if(b.errorSummary){if(f){b.hideToolTip()}else {b.showToolTip()}}b.updateButton(f);e=b.query('>displayfield');d=e.length;for(a=0;a<d;a++){b.renderColumnData(e[a],i)}},renderColumnData:function(i,b,m){var l=this,o=l.editingPlugin.grid,d=o.headerCt,k=l.scrollingView,j=k.dataSource,a=m||i.column,c=b.get(a.dataIndex),f=a.editRenderer||a.renderer,e,h,g,n=(a.usingDefaultRenderer&&!a.scope)?a:a.scope;if(f){e={tdCls:'',style:''};h=j.indexOf(b);g=d.getHeaderIndex(a);c=f.call(n||d.ownerCt,c,e,b,h,g,j,k)}i.setRawValue(c)},beforeEdit:function(){var a=this,b;if(a.lockable&&a.editingPlugin.grid.lockedGrid.floatedFromCollapse){return !1}if(a.isVisible()&&(a.isDirty()||a.context.record.phantom)){if(a.autoUpdate){a.editingPlugin.completeEdit()}else if(a.autoCancel){a.editingPlugin.cancelEdit()}else if(a.errorSummary){b=a.getScrollDelta();if(b){a.scrollingViewEl.scrollBy(0,b,!0)}a.showToolTip();return !1}}},startEdit:function(g,j){var a=this,d=a.editingPlugin,i=d.grid,f=a.context=d.context,c=a.isVisible(),b=a.wrapEl,e=a.rendered,h;if(a._cachedNode){a.clearCache()}Ext.suspendLayouts();if(!e){a.width=a.getClientWidth();a.render(i.el,i.el.dom.firstChild);b=a.wrapEl=a.el.wrap();b.setVisibilityMode(3);b.addCls(a._wrapCls);a.getFloatingButtons().render(b);a.onViewScroll()}a.setLocalY(0);f.grid.getSelectionModel().selectByPosition({row:g,column:j});if(a.rendered&&a.formAriaLabel){h=Ext.String.formatEncode(a.formAriaLabel,a.formAriaLabelRowBase+f.rowIdx);a.body.dom.setAttribute('aria-label',h)}a.onGridResize();Ext.resumeLayouts(c);if(c){a.reposition(!0)}else {a.skipFocusScroll=!0;a.show()}a.loadRecord(g);if(!e){if(a.lockable){a.lockedColumnContainer.getScrollable().syncWithPartners();a.normalColumnContainer.getScrollable().syncWithPartners()}else {a.getScrollable().syncWithPartners()}}},syncButtonPosition:function(d){var a=this,c=a.getScrollDelta(),b=a.getFloatingButtons(),g=a.scrollingView,e=Math.max(0,a.scroller.getSize().y-a.scroller.getClientSize().y),f=c-(e-a.scroller.getPosition().y);b.show();if(f>0||(d.rowIdx>0&&d.isLastRenderedRow())){if(!a._buttonsOnTop){b.setButtonPosition('top');a._buttonsOnTop=!0;a.layout.setAlign('bottom');a.updateLayout()}c=0}else if(a._buttonsOnTop!==!1){b.setButtonPosition('bottom');a._buttonsOnTop=!1;a.layout.setAlign('top');a.updateLayout()}else {b.setButtonPosition(b.position)}return c},syncEditorClip:function(){var a=this,c=a.tooltip,b=a.scroller.getElement().getConstrainRegion();a.clipTo(b);a.floatingButtons.clipTo(b);if(c&&c.isVisible()){c.clipTo(b,5)}},focusColumnField:function(a){var b,c;if(a&&!a.destroyed){if(a.isVisible()){b=this.getEditor(a);if(b&&b.isFocusable(!0)){c=!0;b.focus()}}if(!c){this.focusColumnField(a.next())}}},cancelEdit:function(){var b=this,e=b.getForm(),g=e.getFields(),d=g.items,f=d.length,a,c=b.context.record;if(b._cachedNode){b.clearCache()}b.hide();if(c&&c.phantom&&!c.modified&&b.removeUnmodified){b.editingPlugin.grid.store.remove(c)}e.clearInvalid();for(a=0;a<f;a++){d[a].suspendEvents()}e.reset();for(a=0;a<f;a++){d[a].resumeEvents()}},clearCache:function(){var a=this;a.mun(a.editingPlugin.view,{itemadd:a.onViewItemAdd,scope:a});a._cachedNode=!1},completeEdit:function(){var a=this,b=a.getForm();if(!b.isValid()){return !1}a.completing=!0;b.updateRecord(a.context.record);a.hide();a.completing=!1;return !0},onShow:function(){var a=this;a.wrapEl.show();Ext.form.Panel.prototype.onShow.apply(this,arguments);if(a.needsSyncFieldWidths){a.suspendLayouts();a.preventReposition=!0;a.syncAllFieldWidths();a.preventReposition=!1;a.resumeLayouts(!0)}delete a.needsSyncFieldWidths;if(a.rendered){a.initTabGuards(!0)}a.reposition()},onHide:function(){var a=this,d=a.context,b,c,e=Ext.Element.getActiveElement();a.context=null;if(a.el.contains(e)&&a.activeField){b=a.activeField.column}else {b=d.column}if(b&&!b.destroyed){c=new Ext.grid.CellContext(b.getView()).setPosition(d.record,b);c.view.getNavigationModel().setPosition(c)}a.activeField=null;a.wrapEl.hide();Ext.form.Panel.prototype.onHide.apply(this,arguments);if(a.rendered){a.initTabGuards(!1)}if(a.tooltip){a.hideToolTip()}},onResize:function(b,a){this.wrapEl.setSize(b,a)},isDirty:function(){return this.getForm().isDirty()},getToolTip:function(){var a=this,b=a.tooltip,c=a.editingPlugin.grid;if(!b){a.tooltip=b=new Ext.tip.ToolTip({cls:'x-grid-row-editor-errors',title:a.errorsText,autoHide:!1,closable:!0,closeAction:'disable',anchor:'left',anchorToTarget:!0,targetOffset:[Ext.getScrollbarSize().width,0],constrainPosition:!0,constrainTo:document.body});c.add(b);a.mon(c,{afterlayout:a.onGridLayout,scope:a})}return b},hideToolTip:function(){var b=this,a=b.getToolTip();if(a.rendered){a.disable()}},showToolTip:function(c){var a=this,b=a.getToolTip();if(!c&&a.wrapAnim){return a.wrapAnim.on({afteranimate:a.showToolTip,scope:a,single:!0})}b.update(a.getErrors());a.repositionTip();b.enable()},onGridLayout:function(){if(this.tooltip&&this.tooltip.isVisible()){this.repositionTip()}},repositionTip:function(){var b=this,a=b.getToolTip();if(a.isVisible()){a.realignToTarget()}else {a.showBy(b.el)}b.syncEditorClip()},getErrors:function(){var a=this,b=[],f=a.query('>[isFormField]'),g=f.length,c,d,e;for(c=0;c<g;c++){e=f[c];d=e.getErrors();if(d.length){b.push(a.createErrorListItem(d[0],e.column.text))}}if(!b.length&&!a.autoCancel&&a.isDirty()){b[0]=a.createErrorListItem(a.dirtyText)}return '<ul class="x-list-plain">'+b.join('')+'</ul>'},createErrorListItem:function(a,b){a=b?b+': '+a:a;return '<li class="'+this.errorCls+'">'+a+'</li>'},doDestroy:function(){var a=this;if(a.wrapAnim){Ext.fx.Manager.removeAnim(a.wrapAnim);a.wrapAnim=null}a.keyNav=a.floatingButtons=a.tooltip=Ext.destroy(a.keyNav,a.floatingButtons,a.tooltip,a.wrapEl);Ext.form.Panel.prototype.doDestroy.call(this)}},0,["roweditor"],["component","box","container","panel","form","roweditor"],{"component":!0,"box":!0,"container":!0,"panel":!0,"form":!0,"roweditor":!0},["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(b){var a=this;Ext.apply(a,b);if(!a.ddGroup){a.ddGroup='view-dd-zone-'+a.view.id}Ext.dd.DropZone.prototype.constructor.call(this,a.view.el)},fireViewEvent:function(){var a=this,b;a.lock();b=a.view.fireEvent.apply(a.view,arguments);a.unlock();return b},getTargetFromEvent:function(h){var e=h.getTarget(this.view.getItemSelector()),d,b,c,a,g,f;if(!e){d=h.getY();for(a=0,b=this.view.getNodes(),g=b.length;a<g;a++){c=b[a];f=Ext.fly(c).getBox();if(d<=f.bottom){return c}}}return e},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:!0,alignOnScroll:!1,shadow:!1})}return a.indicator},getPosition:function(d,c){var e=d.getXY()[1],a=Ext.fly(c).getRegion(),b;if((a.bottom-e)>=(a.bottom-a.top)/2){b="before"}else {b="after"}return b},containsRecordAtOffset:function(f,d,g){if(!d){return !1}var a=this.view,e=a.indexOf(d),c=a.getNode(e+g),b=c?a.getRecord(c):null;return b&&Ext.Array.contains(f,b)},positionIndicator:function(e,k,l){var a=this,i=a.view,c=a.getPosition(l,e),b=i.getRecord(e),f=k.records,g,h,d,j;if(!Ext.Array.contains(f,b)&&(c==='before'&&!a.containsRecordAtOffset(f,b,-1)||c==='after'&&!a.containsRecordAtOffset(f,b,1))){a.valid=!0;if(a.overRecord!==b||a.currentPosition!==c){h=a.view.getScrollable();d=h&&h.getElement();j=(d&&!d.isScrollable())?d:Ext.fly(i.getNodeContainer());g=Ext.fly(e).getY()-j.getY()-1;if(c==='after'){g+=Ext.fly(e).getHeight()}a.getIndicator().setWidth(Ext.fly(i.el).getWidth()).showAt(0,g);a.overRecord=b;a.currentPosition=c}}else {a.invalidateDrop()}},invalidateDrop:function(){if(this.valid){this.valid=!1;this.getIndicator().hide()}},onNodeOver:function(c,e,d,b){var a=this;if(!Ext.Array.contains(b.records,a.view.getRecord(c))){a.positionIndicator(c,b,d)}return a.valid?a.dropAllowed:a.dropNotAllowed},notifyOut:function(d,b,e,c){var a=this;Ext.dd.DropZone.prototype.notifyOut.apply(this,arguments);a.overRecord=a.currentPosition=null;a.valid=!1;if(a.indicator){a.indicator.hide()}},onContainerOver:function(f,e,d){var a=this,b=a.view,c=b.dataSource.getCount();if(c){a.positionIndicator(b.all.last(),d,e)}else {a.overRecord=a.currentPosition=null;a.getIndicator().setWidth(Ext.fly(b.el).getWidth()).showAt(0,0);a.valid=!0}return a.dropAllowed},onContainerDrop:function(b,c,a){return this.onNodeDrop(b,null,c,a)},onNodeDrop:function(h,i,j,g){var a=this,e=!1,f=a.overRecord,c=a.currentPosition,d={wait:!1,processDrop:function(){a.invalidateDrop();a.handleNodeDrop(g,f,c);e=!0;a.fireViewEvent('drop',h,g,f,c)},cancelDrop:function(){a.invalidateDrop();e=!0}},b=!1;if(a.valid){b=a.fireViewEvent('beforedrop',h,g,f,c,d);if(d.wait){return}if(b!==!1){if(!e){d.processDrop()}}}return b},destroy:function(){this.indicator=Ext.destroy(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(a,i,h){var d=this.view,f=d.getStore(),g=d!==a.view,e,c,b,j;if(a.copy){c=a.records;for(b=0,j=c.length;b<j;b++){c[b]=c[b].copy()}}else if(g){a.view.store.remove(a.records)}if(i&&h){e=f.indexOf(i);if(h!=='before'){e++}f.insert(e,a.records)}else {f.add(a.records)}if(g){d.getSelectionModel().select(a.records)}d.getNavigationModel().setPosition(a.records[0])}},0,0,0,0,0,0,[Ext.grid,'ViewDropZone'],0));(Ext.cmd.derive('Ext.grid.plugin.HeaderResizer',Ext.plugin.Abstract,{disabled:!1,config:{dynamic:!1},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,b=a.tracker;if(b){b.destroy();a.tracker=null}a.headerCt.un('render',a.afterHeaderRender,a);a.headerCt=null;Ext.plugin.Abstract.prototype.destroy.call(this)},afterHeaderRender:function(){var a=this,b=a.headerCt,c=b.el;b.mon(c,'mousemove',a.onHeaderCtMouseMove,a);a.markerOwner=a.ownerGrid=a.headerCt.up('tablepanel').ownerGrid;a.tracker=new Ext.dd.DragTracker({disabled:a.disabled,onBeforeStart:a.onBeforeStart.bind(a),onStart:a.onStart.bind(a),onDrag:a.onDrag.bind(a),onEnd:a.onEnd.bind(a),onCancel:a.onCancel.bind(a),tolerance:3,autoStart:300,el:c});b.setTouchAction({panX:!1})},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(f){var d=this,e=d.headerCt,i=f.getTarget('.'+d.colHeaderCls,e.el,!0),h=d.ownerGrid,g=h.ownerLockable,a,b,c,j;d.activeHd=null;if(i){a=Ext.getCmp(i.id);if(a.isAtEndEdge(f)){if(e.visibleColumnManager.getColumns().length===1&&e.forceFit){return}b=a}else if(a.isAtStartEdge(f)){c=e.visibleColumnManager.getColumns();j=a.isGroupHeader?a.getGridColumns()[0]:a;b=c[Ext.Array.indexOf(c,j)-1];if(!b&&g&&!h.isLocked){c=g.lockedGrid.headerCt.visibleColumnManager.getColumns();b=c[c.length-1]}}if(b){if(b.isGroupHeader){c=b.getGridColumns();b=c[c.length-1]}if(b&&!(b.fixed||(b.resizable===!1))){d.activeHd=b;a.el.dom.style.cursor=d.eResizeCursor;if(a.triggerEl){a.triggerEl.dom.style.cursor=d.eResizeCursor}}}else {a.el.dom.style.cursor='';if(a.triggerEl){a.triggerEl.dom.style.cursor=''}}}return d.activeHd},onBeforeStart:function(b){var a=this;a.dragHd=a.activeHd||b.pointerType==='touch'&&a.findActiveHeader(b);if(a.dragHd&&!a.headerCt.dragging){b.claimGesture();a.xDelta=a.dragHd.getX()+a.dragHd.getWidth()-a.tracker.getXY()[0];a.tracker.constrainTo=a.getConstrainRegion();return !0}else {a.headerCt.dragging=!1;return !1}},onCancel:function(a){this.dragHd=this.activeHd=null;this.headerCt.dragging=!1},getConstrainRegion:function(){var a=this,e=a.dragHd.el,c,b=a.ownerGrid,g=b.getSizeModel().width,d=g.shrinkWrap?a.headerCt.getWidth()-a.headerCt.visibleColumnManager.getColumns().length*a.minColWidth:a.maxColWidth,f;if(a.headerCt.forceFit){c=a.dragHd.nextNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(c&&a.headerInSameGrid(c)){d=e.getWidth()+(c.getWidth()-a.minColWidth)}}else if(b.isLocked&&g.shrinkWrap){d=a.dragHd.up('[scrollerOwner]').getTargetEl().getWidth(!0)-b.getWidth()-(b.ownerLockable.normalGrid.visibleColumnManager.getColumns().length*a.minColWidth+Ext.getScrollbarSize().width)}f=a.adjustConstrainRegion(e.getRegion(),0,0,0,a.minColWidth);f.right=e.getX()+d;return f},onStart:function(k){var a=this,i=a.dragHd,j=i.el.getWidth(),h=i.getRootHeaderCt(),f,g,b,c,d,e;a.headerCt.dragging=!0;a.origWidth=j;if(!a.dynamic){b=a.markerOwner;if(b.frame&&b.resizable){a.gridOverflowSetting=b.el.dom.style.overflow;b.el.dom.style.overflow='hidden'}f=a.getLeftMarkerX(b);c=b.getLhsMarker();d=b.getRhsMarker();e=a.ownerGrid.body.getHeight()+h.getHeight();g=h.getOffsetsTo(b)[1]-b.el.getBorderWidth('t');c.dom.style.cursor=a.eResizeCursor;d.dom.style.cursor=a.eResizeCursor;c.setLocalY(g);d.setLocalY(g);c.setHeight(e);d.setHeight(e);a.setMarkerX(c,f);a.setMarkerX(d,f+j)}},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(c){var a=this,b=a.markerOwner;a.headerCt.dragging=!1;if(a.dragHd){if(!a.dynamic){if('gridOverflowSetting' in a){b.el.dom.style.overflow=a.gridOverflowSetting}a.setMarkerX(b.getLhsMarker(),-9999);a.setMarkerX(b.getRhsMarker(),-9999)}a.doResize();if(c.pointerType!=='touch'){a.dragHd=null;a.activeHd.el.dom.style.cursor=a.eResizeCursor}else {a.dragHd=a.activeHd=null}}a.headerCt.blockNextEvent()},doResize:function(){var b=this,c=b.dragHd,a,d=b.tracker.getOffset('point');if(c&&d[0]){if(c.flex){delete c.flex}Ext.suspendLayouts();b.adjustColumnWidth(d[0]-b.xDelta);if(b.headerCt.forceFit){a=c.nextNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(a&&!b.headerInSameGrid(a)){a=null}if(a){delete a.flex;a.setWidth(a.getWidth()-d[0])}}Ext.resumeLayouts(!0)}},headerInSameGrid:function(a){var b=this.dragHd.up('tablepanel');return !!a.up(b)},disable:function(){var a=this.tracker;this.disabled=!0;if(a){a.disable()}},enable:function(){var a=this.tracker;this.disabled=!1;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(a,b){a.setLocalX(b)},adjustConstrainRegion:function(a,e,d,b,c){return a.adjust(e,d,b,c)},adjustColumnWidth:function(a){this.dragHd.setWidth(this.origWidth+a)}},0,0,0,0,["plugin.gridheaderresizer"],0,[Ext.grid.plugin,'HeaderResizer'],0));(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=!0;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(c){if(c.getTarget(this.colInnerSelector)){var d=c.getTarget(this.colHeaderSelector),a,b;if(d){a=Ext.getCmp(d.id);if(!this.headerCt.dragging&&a.draggable&&!(a.isAtStartEdge(c)||a.isAtEndEdge(c))){b=document.createElement('div');b.role='presentation';b.innerHTML=a.text;return {ddel:b,header:a}}}}return !1},onBeforeDrag:function(){return !(this.headerCt.dragging||this.disabled)},onInitDrag:function(){this.headerCt.dragging=!0;this.headerCt.hideMenu();Ext.dd.DragZone.prototype.onInitDrag.apply(this,arguments)},onDragDrop:function(){this.headerCt.dragging=!1;Ext.dd.DragZone.prototype.onDragDrop.apply(this,arguments)},afterRepair:function(){Ext.dd.DragZone.prototype.afterRepair.call(this);this.headerCt.dragging=!1},getRepairXY:function(){return this.dragData.header.el.getXY()},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1}},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=!0;Ext.dd.DropZone.prototype.constructor.call(this,b.el)},destroy:function(){Ext.destroy(this.topIndicator,this.bottomIndicator);Ext.dd.DropZone.prototype.destroy.call(this)},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,c){var e=d.getXY()[0],a=Ext.fly(c).getRegion(),b;if((a.right-e)<=(a.right-a.left)/2){b="after"}else {b="before"}return {pos:b,header:Ext.getCmp(c.id),node:c}},positionIndicator:function(t,v,w){var a=this,f=t.header,n=a.getLocation(w,v),b=n.header,c=n.pos,r,s,e,d,o,m,j,h,g,q,p,l,u,k,i;if(b===a.lastTargetHeader&&c===a.lastDropPos){return}r=f.nextSibling('gridcolumn:not([hidden])');s=f.previousSibling('gridcolumn:not([hidden])');a.lastTargetHeader=b;a.lastDropPos=c;if(!b.draggable&&c==='before'&&b.getIndex()===0){return !1}t.dropLocation=n;if((f!==b)&&((c==="before"&&r!==b)||(c==="after"&&s!==b))&&!b.isDescendantOf(f)){l=Ext.dd.DragDropManager.getRelated(a);u=l.length;k=0;for(;k<u;k++){i=l[k];if(i!==a&&i.invalidateDrop){i.invalidateDrop()}}a.valid=!0;e=a.getTopIndicator();d=a.getBottomIndicator();if(c==='before'){o='bc-tl';m='tc-bl'}else {o='bc-tr';m='tc-br'}j=e.getAlignToXY(b.el,o);h=d.getAlignToXY(b.el,m);g=a.headerCt.el;q=g.getX()-a.indicatorXOffset;p=g.getX()+g.getWidth();j[0]=Ext.Number.constrain(j[0],q,p);h[0]=Ext.Number.constrain(h[0],q,p);e.setXY(j);d.setXY(h);e.show();d.show()}else {a.invalidateDrop()}},invalidateDrop:function(){this.valid=!1;this.hideIndicators()},onNodeOver:function(h,j,i,a){var c=this,d=a.header,b,e,g,f;if(a.header.el.dom===h){b=!1}else {a.isLock=a.isUnlock=a.crossPanel=!1;g=c.getLocation(i,h).header;b=(d.ownerCt===g.ownerCt);if(!b&&(!d.ownerCt.isSealed()&&!g.ownerCt.isSealed())){b=!0;e=d.up('tablepanel');f=g.up('tablepanel');if(e!==f){a.crossPanel=!0;a.isLock=f.isLocked&&!e.isLocked;a.isUnlock=!f.isLocked&&e.isLocked;if((a.isUnlock&&d.lockable===!1)||(a.isLock&&!d.isLockable())){b=!1}}}}if(b){c.positionIndicator(a,h,i)}else {c.valid=!1}return c.valid?c.dropAllowed:c.dropNotAllowed},hideIndicators:function(){var a=this;a.getTopIndicator().hide();a.getBottomIndicator().hide();a.lastTargetHeader=a.lastDropPos=null},onNodeOut:function(){this.hideIndicators()},getNestedHeader:function(a,b){var c=a.items,d;if(a.isGroupHeader&&c.length){d=!b?'first':'last';a=this.getNestedHeader(c[d](),b)}return a},onNodeDrop:function(q,p,r,f){this.headerCt.blockNextEvent();if(!this.valid){return}var g=this,a=f.header,n=f.dropLocation,l=n.pos,b=n.header,e=a.ownerCt,m=e.getRootHeaderCt(),d=b.ownerCt,j=g.headerCt.visibleColumnManager,h=j.getHeaderIndex(a),c,i,k,o;if(f.isLock||f.isUnlock){k=e.up('[scrollerOwner]');c=d.items.indexOf(b);if(l==='after'){c++}if(f.isLock){k.lock(a,c,d)}else {k.unlock(a,c,d)}}else {c=l==='after'?j.getHeaderIndex(g.getNestedHeader(b,1))+1:j.getHeaderIndex(g.getNestedHeader(b,0));g.invalidateDrop();o=a.getWidth();Ext.suspendLayouts();m.isDDMoveInGrid=!f.crossPanel;if(a.isGroupHeader&&b.isGroupHeader){a.setNestedParent(b)}if(l==='before'){d.moveBefore(a,b)}else {d.moveAfter(a,b)}if(c>=0&&!(b.isGroupHeader&&(!b.items||!b.items.length))&&h!==c){i=a.isGroupHeader?a.query('gridcolumn:not([hidden]):not([isGroupHeader])').length:1;if((h<=c)&&i>1){c-=i}d.getRootHeaderCt().grid.view.moveColumn(h,c,i)}m.fireEvent('columnmove',e,a,h,c);m.isDDMoveInGrid=!1;if(d.isGroupHeader&&!e.isGroupHeader){if(e!==d){a.savedFlex=a.flex;delete a.flex;a.width=o}}else if(!e.isGroupHeader){if(a.savedFlex){a.flex=a.savedFlex;delete a.width}}Ext.resumeLayouts(!0);if(g.headerCt.grid.floated){g.headerCt.grid.updateLayout()}}}},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:!0,scope:this})},destroy:function(){var a=this;a.headerCt.un('boxready',a.onHeaderCtRender,a);Ext.destroy(a.dragZone,a.dropZone);a.headerCt=a.dragZone=a.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(b){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()}b.setTouchAction({panX:!1})},enable:function(){this.disabled=!1;if(this.dragZone){this.dragZone.enable()}},disable:function(){this.disabled=!0;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,{border:!0,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',blockEvents:!1,dragging:!1,sortOnClick:!0,focusableContainer:!1,childHideCount:0,sortable:!0,enableColumnHide:!0,initComponent:function(){var a=this;a.plugins=a.plugins||[];a.defaults=a.defaults||{};if(!a.isColumn){a.isRootHeader=!0;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=!1;if(!a.hasOwnProperty('focusable')){a.focusable=!0}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.isRootHeader){if(!a.hiddenHeaders){a.focusableContainer=!0;a.ariaRole='rowgroup'}a.columnManager=new Ext.grid.ColumnManager(!1,a);a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);if(a.grid){a.grid.columnManager=a.columnManager;a.grid.visibleColumnManager=a.visibleColumnManager}}else {a.visibleColumnManager=new Ext.grid.ColumnManager(!0,a);a.columnManager=new Ext.grid.ColumnManager(!1,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 a=this,b=a.getRefOwner().query('>:not([hidden])');return (b.length===1&&b[0]===a)},isSealed:function(){return !!(this.sealed||this.getInherited().sealed)},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=!1;a.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&a.ownerCt.items.length===1)},initEvents:function(){var a=this,b,c;Ext.container.Container.prototype.initEvents.call(this);if(!a.isColumn&&!a.isGroupHeader){b=a.onHeaderCtEvent;c={click:b,dblclick:b,contextmenu:b,mousedown:a.onHeaderCtMouseDown,mouseover:a.onHeaderCtMouseOver,mouseout:a.onHeaderCtMouseOut,scope:a};if(Ext.supports.Touch){c.longpress=a.onHeaderCtLongPress}a.mon(a.el,c)}},onHeaderCtEvent:function(a,g){var c=this,f=c.getHeaderElByEvent(a),b,e,d;if(c.longPressFired){c.longPressFired=!1;return}if(f&&!c.blockEvents){b=Ext.getCmp(f.id);if(b){e=b[b.clickTargetName];if((!b.isGroupHeader&&!b.isContainer)||a.within(e)){if(a.type==='click'||a.type==='tap'){d=b.onTitleElClick(a,e,c.sortOnClick);if(d){c.onHeaderTriggerClick(d,a,a.pointerType==='touch'?d.el:d.triggerEl)}else {c.onHeaderClick(b,a,g)}}else if(a.type==='contextmenu'){c.onHeaderContextMenu(b,a,g)}else if(a.type==='dblclick'){b.onTitleElDblClick(a,e.dom)}}}}},blockNextEvent:function(){var a=this;a.blockEvents=!0;if(!a.unblockTimer){a.unblockTimer=Ext.asap(a.unblockEvents,a)}},unblockEvents:function(){this.blockEvents=this.unblockTimer=!1},onHeaderCtMouseDown:function(h,g){var a=Ext.Component.from(g),c,b,f,e,d;if(!h.defaultPrevented&&a!==this){if(a.isGroupHeader){c=a.getVisibleGridColumns();e=this.getScrollable();for(b=0,f=c.length;b<f;++b){d=c[b];if(e.doIsInView(d.el,!0).x){a=d;break}}}a.focus()}},onHeaderCtMouseOver:function(b,e){var c,a,d;if(!b.within(this.el,!0)){c=b.getTarget('.'+Ext.grid.column.Column.prototype.baseCls);a=c&&Ext.getCmp(c.id);if(a){d=a[a.clickTargetName];if(b.within(d)){a.onTitleMouseOver(b,d.dom)}}}},onHeaderCtMouseOut:function(c,g){var f='.'+Ext.grid.column.Column.prototype.baseCls,d=c.getTarget(f),e=c.getRelatedTarget(f),a,b;if(d!==e){if(d){a=Ext.getCmp(d.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOut(c,b.dom)}}if(e){a=Ext.getCmp(e.id);if(a){b=a[a.clickTargetName];a.onTitleMouseOver(c,b.dom)}}}},onHeaderCtLongPress:function(d){var c=this,b=c.getHeaderElByEvent(d),a;if(b){a=Ext.getCmp(b.id);if(a&&!a.menuDisabled){c.longPressFired=!0;c.showMenuBy(d,b,a)}}},getHeaderElByEvent:function(a){return a.getTarget('.'+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return !1}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){return this.isRootHeader?this:this.up('[isRootHeader]')},doDestroy:function(){var a=this;if(a.menu){a.menu.un('hide',a.onMenuHide,a)}Ext.unasap(a.unblockTimer);a.menuTask.cancel();Ext.destroy(a.visibleColumnManager,a.columnManager,a.menu);Ext.container.Container.prototype.doDestroy.call(this)},removeAll:function(b){var a=this;a.suspendEvent('columnschanged');Ext.container.Container.prototype.removeAll.call(this,b);a.resumeEvent('columnschanged');a.fireEvent('columnschanged',a)},applyColumnsState:function(j,l){if(!j){return}var f=this,k=f.items.items,m=k.length,a=0,i=!1,c=[],g=[],h,e,b,d;f.purgeCache();for(a=0;a<m;a++){e=k[a];b=j[e.getStateId()];if(b){d=b.index;c[d]=e;if(a!==d){i=!0}if(e.applyColumnState){e.applyColumnState(b,l)}}else {g.push({index:a,column:e})}}c=Ext.Array.clean(c);h=g.length;if(h){for(a=0;a<h;a++){b=g[a];d=b.index;if(d<c.length){i=!0;Ext.Array.splice(c,d,0,b.column)}else {c.push(b.column)}}}if(i){f.applyingState=!0;f.removeAll(!1);delete f.applyingState;f.add(c)}},getColumnsState:function(){var c=this,b=[],a;c.items.each(function(c){a=c.getColumnState&&c.getColumnState();if(a){b.push(a)}});return b},onAdd:function(c){var b=this,a;Ext.container.Container.prototype.onAdd.apply(this,arguments);a=b.getRootHeaderCt();b.onHeadersChanged(c,a&&a.isDDMoveInGrid)},move:function(b,e){var d=this,c=d.items,a;if(b.isComponent){a=b;b=c.indexOf(a)}else {a=c.getAt(b)}a.visibleFromIdx=d.getRootHeaderCt().visibleColumnManager.indexOf(a);Ext.container.Container.prototype.move.apply(this,arguments)},onMove:function(a,g,h){var e=this,d=e.getRootHeaderCt(),f=d.visibleColumnManager,c=1,b;e.onHeadersChanged(a,!0);b=f.indexOf(a);if(b>=a.visibleFromIdx){b++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(a.isGroupHeader){c=a.visibleColumnManager.getColumns().length}d.onHeaderMoved(a,c,a.visibleFromIdx,b)},maybeContinueRemove:function(){var a=this;return (a.isGroupHeader&&!a.applyingState)&&!a.isNestedParent&&a.ownerCt&&!a.items.getCount()},onRemove:function(b,c){var a=this,d=a.ownerCt;Ext.container.Container.prototype.onRemove.call(this,b,c);if(!a.destroying){if(!a.getRootHeaderCt().isDDMoveInGrid){a.onHeadersChanged(b,!1)}if(a.maybeContinueRemove()){if(b.rendered){b.detachFromBody()}a.destroyAfterRemoving=!0;Ext.suspendLayouts();d.remove(a,!1);Ext.resumeLayouts(!0)}}},onHeadersChanged:function(d,c){var b,a=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(a){a.onColumnsChanged();b=a.ownerCt;if(b&&!c){b.onHeadersChanged(a,d)}}},onHeaderMoved:function(d,f,c,e){var a=this,b=a.ownerCt;if(a.rendered){if(b&&b.onHeaderMove){b.onHeaderMove(a,d,f,c,e)}a.fireEvent('columnmove',a,d,c,e)}},onColumnsChanged:function(){var a=this,d=a.menu,b,c;if(a.rendered){a.fireEvent('columnschanged',a);if(d){b=d.child('#columnItemSeparator');c=d.child('#columnItem');if(b){b.destroy()}if(c){c.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 e=this.up('[store]').store,d=this.visibleColumnManager.getColumns(),f=d.length,c,b,a;for(c=0;c<f;c++){b=d[c];a=b.getSorter();if(a){if(!e.getSorters().contains(a)){a=null}}else {a=e.getSorters().get(b.getSortParam())}b.setSortState(a)}},getHeaderMenu:function(){var b=this.getMenu(),a;if(b){a=b.child('#columnItem');if(a){return a.menu}}return null},onHeaderVisibilityChange:function(d,e){var a=this,c=a.getHeaderMenu(),b;a.purgeHeaderCtCache(d.ownerCt);if(c){b=a.getMenuItemForHeader(c,d);if(b){b.setChecked(e,!0)}if(c.isVisible()){a.menuTask.delay(50)}}},updateMenuDisabledState:function(e){var f=this,g=f.query('gridcolumn:not([hidden])'),b,h=g.length,d,a,c;if(!e){e=f.getMenu()}for(b=0;b<h;++b){d=g[b];a=f.getMenuItemForHeader(e,d);if(a){c=d.isHideable()?'enable':'disable';if(a.menu){c+='CheckChange'}a[c]()}}},getMenuItemForHeader:function(b,a){return a?b.down('menucheckitem[headerId='+a.id+']'):null},onHeaderShow:function(b){var a=this,d=a.ownerCt,c=b.lastHiddenHeader;if(!d){return}if(a.forceFit){delete a.flex}if(c&&!b.query('[hidden=false]').length){c.show();b.lastHiddenHeader=null}a.onHeaderVisibilityChange(b,!0);d.onHeaderShow(a,b);a.fireEvent('columnshow',a,b);a.fireEvent('columnschanged',this)},onHeaderHide:function(b){var a=this,c=a.ownerCt;if(!c){return}a.onHeaderVisibilityChange(b,!1);c.onHeaderHide(a,b);a.fireEvent('columnhide',a,b);a.fireEvent('columnschanged',this)},onHeaderResize:function(c,d){var a=this,b=a.ownerCt;if(b){b.onHeaderResize(a,c,d)}a.fireEvent('columnresize',a,c,d)},onHeaderClick:function(a,d,f){var b=this,e=a.getView().getSelectionModel(),c;a.fireEvent('headerclick',b,a,d,f);c=b.fireEvent('headerclick',b,a,d,f);if(c!==!1){if(e.onHeaderClick){e.onHeaderClick(b,a,d)}}return c},onHeaderContextMenu:function(a,b,c){a.fireEvent('headercontextmenu',this,a,b,c);this.fireEvent('headercontextmenu',this,a,b,c)},onHeaderTriggerClick:function(a,c,d){var b=this;if(a.fireEvent('headertriggerclick',b,a,c,d)!==!1&&b.fireEvent('headertriggerclick',b,a,c,d)!==!1){if(a.activeMenu){if(c.pointerType){a.activeMenu.hide()}else {a.activeMenu.focus()}}else {b.showMenuBy(c,d,a)}}},showMenuBy:function(b,g,d){var a=this.getMenu(),f=a.down('#ascItem'),e=a.down('#descItem'),c,h=b&&b.pointerType==='touch';a.activeHeader=a.ownerCmp=d;d.setMenuActive(a);c=d.sortable?'enable':'disable';if(f){f[c]()}if(e){e[c]()}a.autoFocus=!b||b.keyCode;a.showBy(g,'tl-bl?');if(!a.isVisible()){this.onMenuHide(a)}},hideMenu:function(){if(this.menu){this.menu.hide()}},onMenuHide:function(a){a.activeHeader.setMenuActive(!1)},purgeHeaderCtCache:function(a){while(a){a.purgeCache();if(a.isRootHeader){return}a=a.ownerCt}},purgeCache:function(){var a=this,b=a.visibleColumnManager,c=a.columnManager;a.gridVisibleColumns=a.gridDataColumns=a.hideableColumns=null;if(b){b.invalidate();c.invalidate()}},getMenu:function(){var a=this,b=a.view&&a.view.ownerGrid;if(!a.menu){a.menu=new Ext.menu.Menu({hideOnParentHide:!1,items:a.getMenuItems(),listeners:{beforeshow:a.beforeMenuShow,hide:a.onMenuHide,scope:a}});a.fireEvent('menucreate',a,a.menu);if(b){b.fireEvent('headermenucreate',b,a.menu,a)}}return a.menu},beforeMenuShow:function(d){var a=this,e=d.child('#columnItem'),b,c;if(!e){b=a.enableColumnHide?a.getColumnMenu(a):null;c=a.sortable?2:0;if(b&&b.length){d.insert(c,[{itemId:'columnItemSeparator',xtype:'menuseparator'},{itemId:'columnItem',text:a.columnsText,iconCls:a.menuColsIcon,menu:{items:b},hideOnClick:!1}])}}a.updateMenuDisabledState(a.menu)},getMenuItems:function(){var a=this,b=[],c=a.enableColumnHide?a.getColumnMenu(a):null;if(a.sortable){b=[{itemId:'ascItem',text:a.sortAscText,iconCls:a.menuSortAscCls,handler:a.onSortAscClick,scope:a},{itemId:'descItem',text:a.sortDescText,iconCls:a.menuSortDescCls,handler:a.onSortDescClick,scope:a}]}if(c&&c.length){if(a.sortable){b.push({itemId:'columnItemSeparator',xtype:'menuseparator'})}b.push({itemId:'columnItem',text:a.columnsText,iconCls:a.menuColsIcon,menu:c,hideOnClick:!1})}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(f){var b=[],c=0,a,e=f.query('>gridcolumn[hideable]'),g=e.length,d;for(;c<g;c++){a=e[c];d=new Ext.menu.CheckItem({text:a.menuText||a.text,checked:!a.hidden,hideOnClick:!1,headerId:a.id,menu:a.isGroupHeader?this.getColumnMenu(a):undefined,checkHandler:this.onColumnCheckChange,scope:this});b.push(d)}return b.length?b:null},onColumnCheckChange:function(c,b){var a=Ext.getCmp(c.headerId);if(a.rendered){a[b?'show':'hide']()}else {a.hidden=!b}},getColumnCount:function(){return this.getGridColumns().length},getTableWidth:function(){var b=0,c=this.getVisibleGridColumns(),d=c.length,a;for(a=0;a<d;a++){b+=c[a].getCellWidth()||0}return b},getVisibleGridColumns:function(){var b=this,e,f,a,g,d,c;if(b.gridVisibleColumns){return b.gridVisibleColumns}e=b.getGridColumns();f=b.getRootHeaderCt();a=[];g=e.length;for(d=0;d<g;d++){c=e[d];if(!c.hidden&&!c.isColumnHidden(f)){a[a.length]=c}}b.gridVisibleColumns=a;return a},isColumnHidden:function(b){var a=this.getRefOwner();while(a&&a!==b){if(a.hidden){return !0}a=a.getRefOwner()}return !1},getGridColumns:function(g,f){if(!g&&this.gridDataColumns){return this.gridDataColumns}var i=this,c=g||[],h,b,d,a,e;f=f||i.hidden;if(i.items){h=i.items.items;if(h){for(b=0,d=h.length;b<d;b++){a=h[b];if(a.isGroupHeader){a.visibleIndex=c.length;a.getGridColumns(c,f)}else {a.hiddenAncestor=f;c.push(a)}}}}if(!g){i.gridDataColumns=c}if(!g&&d){for(b=0,d=c.length;b<d;b++){a=c[b];a.fullColumnIndex=b;a.isFirstVisible=a.isLastVisible=!1;if(!(a.hidden||a.hiddenAncestor)){if(!e){a.isFirstVisible=!0}e=a}}if(e){e.isLastVisible=!0}}return c},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(b){var k=this,j=k.view,i=Ext.grid.plugin.HeaderResizer.prototype.minColWidth,l=!1,m=Ext.grid.header.Container.prototype.defaultWidth,h=k.el.dom.clientWidth-(j.el.dom.scrollHeight>j.el.dom.clientHeight?Ext.getScrollbarSize().width:0),n=0,e=k.getVisibleGridColumns(),o=b.hidden,g,c,a,f,d;function getTotalFlex(){for(c=0,g=e.length;c<g;c++){a=e[c];if(a===b){continue}a.flex=a.flex||a.width||a.getWidth();n+=a.flex;a.width=null}}function applyWidth(){var f;for(c=0,g=e.length;c<g;c++){a=e[c];f=(a===b);if(l&&!f){a.flex=i;a.width=null}else if(!f){d=a.flex||m;a.flex=Math.max(Math.ceil((d/n)*h),i);a.width=null}a.setWidth(a.width||a.flex)}}Ext.suspendLayouts();f=(h-((e.length+1)*i));b.flex=null;if(o){d=b.width||b.savedWidth||Math.floor(f/(e.length+1));b.savedWidth=null}else {d=j.getMaxContentWidth(b)}if(d>f){b.width=f;l=!0}else {b.width=d;h-=d+m;getTotalFlex()}applyWidth();Ext.resumeLayouts(!0)},autoSizeColumn:function(a){var b=this.view;if(b){b.autoSizeColumn(a);if(this.forceFit){this.applyForceFit(a)}}},getRefItems:function(b){var a=Ext.container.Container.prototype.getRefItems.call(this,b);if(this.menu){a.push(this.menu)}return a},initInheritedState:function(a,b){if(this.sealed){a.sealed=!0}Ext.container.Container.prototype.initInheritedState.call(this,a,b)},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},initFocusableContainerKeyNav:function(b){var a=this;if(!a.focusableKeyNav){a.focusableKeyNav=new Ext.util.KeyNav({target:b,scope:a,down:a.showHeaderMenu,left:a.onFocusableContainerLeftKey,right:a.onFocusableContainerRightKey,home:a.onHomeKey,end:a.onEndKey,space:a.onHeaderActivate,enter:a.onHeaderActivate})}},onHomeKey:function(a){return this.focusChild(null,!0,a)},onEndKey:function(a){return this.focusChild(null,!1,a)},showHeaderMenu:function(b){var a=this.getFocusableFromEvent(b);if(a&&a.isColumn&&a.triggerEl){this.onHeaderTriggerClick(a,b,a.triggerEl)}},onHeaderActivate:function(b){var a=this.getFocusableFromEvent(b),d,c;if(a&&a.isColumn){d=a.getView();if(a.sortable&&this.sortOnClick){c=d.getNavigationModel().getLastFocused();a.toggleSortState();if(c){d.ownerCt.ensureVisible(c.record)}}else if(b.getKey()===b.SPACE){a.onTitleElClick(b,b.target,this.sortOnClick)}return this.onHeaderClick(a,b,a.el)}},onOwnerGridReconfigure:function(c,b){var a=this;if(!a.rendered||a.destroying||a.destroyed){return}if(c||b){if(Ext.Component.layoutSuspendCount){a.$initFocusableContainerAfterLayout=!0}else {a.initFocusableContainer()}}}}},0,["headercontainer"],["component","box","container","headercontainer"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0},["widget.headercontainer"],0,[Ext.grid.header,'Container'],0));(Ext.cmd.derive('Ext.grid.column.Column',Ext.grid.header.Container,{alternateClassName:'Ext.grid.Column',config:{triggerVisible:!1,sorter:null,align:'start'},baseCls:'x-column-header',hoverCls:'x-column-header-over',ariaRole:'columnheader',focusableContainer:!1,sortState:null,possibleSortStates:['ASC','DESC'],ariaSortStates:{ASC:'ascending',DESC:'descending'},childEls:['titleEl','triggerEl','textEl','textContainerEl','textInnerEl'],headerWrap:!1,renderTpl:['<div id="{id}-titleEl" data-ref="titleEl" role="presentation"','{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" role="presentation" class="','x-','column-header-text-container">','<div role="presentation" class="','x-','column-header-text-wrapper">','<div id="{id}-textEl" data-ref="textEl" role="presentation" class="','x-','column-header-text','{childElCls}">','<span id="{id}-textInnerEl" data-ref="textInnerEl" role="presentation" class="','x-','column-header-text-inner">{text}</span>','</div>','{%','values.$comp.afterText(out, values);','%}','</div>','</div>','<tpl if="!menuDisabled">','<div id="{id}-triggerEl" data-ref="triggerEl" role="presentation" unselectable="on" class="','x-','column-header-trigger','{childElCls}" style="{triggerStyle}"></div>','</tpl>','</div>','{%this.renderContainer(out,values)%}'],dataIndex:null,text:'\xa0',menuText:null,emptyCellText:'\xa0',sortable:!0,resizable:!0,hideable:!0,menuDisabled:!1,renderer:!1,draggable:!0,tooltipType:'qtip',initDraggable:Ext.emptyFn,tdCls:'',dirtyText:"Cell value has been edited",producesHTML:!0,ignoreExport:!1,exportStyle:null,exportRenderer:!1,exportSummaryRenderer:!1,isHeader:!0,isColumn:!0,scrollable:!1,requiresMenu:!1,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:!0,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=!0;a.ariaRole='presentation';a.items=a.columns;a.columns=null;a.cls=(a.cls||'')+' '+a.groupHeaderCls;a.sortable=a.resizable=!1;a.align='center'}else {if(a.flex){a.minWidth=a.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}a.addCls('x-column-header-align-'+a.getMappedAlignment(a.align));a.setupRenderer();a.setupRenderer('edit');a.setupRenderer('summary');Ext.grid.header.Container.prototype.initComponent.call(this)},beforeLayout:function(){var b=this,a=b.items,f=0,g=b.flex,h,d,c,e;if(g&&b.isGroupHeader){if(!Ext.isArray(a)){a=a.items}h=a.length;for(d=0;!e&&d<h;d++){c=a[d];if(c.isColumn&&!c.hidden){++f;e=c.flex}}if(!e&&f){b.savedFlex=g;b.flex=null}}Ext.grid.header.Container.prototype.beforeLayout.call(this)},onAdded:function(b,d,c){var a=this;Ext.grid.header.Container.prototype.onAdded.call(this,b,d,c);a.view=a.rootHeaderCt=a.cellSelector=a.visibleIndex=null;if(!a.headerId){a.calculateHeaderId()}a.configureStateInfo()},_initSorterFn:function(g,h){var a=this,e=a.column,b=e.resolveListenerScope(),f=a.methodName,c=b&&b[f],d=0;if(c){a.setSorterFn(c);a.column=null;d=c.call(b,g,h)}return d},applySorter:function(b){var c=this,e=b?b.sorterFn:null,d,a;if(typeof e==='string'){a=new Ext.util.Sorter(Ext.applyIf({sorterFn:c._initSorterFn},b));a.methodName=e;a.column=c}else {d=c.getRootHeaderCt().up('tablepanel');a=d.store.getData().getSorters().decodeSorter(b)}return a},updateAlign:function(a){this.textAlign=this.getMappedAlignment(a)},bindFormatter:function(b){var a=this;return function(c){return b(c,a.rendererScope||a.resolveListenerScope())}},bindRenderer:function(b){var a=this;a.hasCustomRenderer=!0;return function(){return Ext.callback(b,a.rendererScope,arguments,0,a)}},setupRenderer:function(b){b=b||'column';var a=this,d=a[a.formatterNames[b]],c=a[a.rendererNames[b]],f=b==='column',e,g;if(!d){if(c){if(typeof c==='string'){c=a[a.rendererNames[b]]=a.bindRenderer(c);g=!0}if(f){a.hasCustomRenderer=g||c.length>1}}else if(f&&a.defaultRenderer){a.renderer=a.defaultRenderer;a.usingDefaultRenderer=!0}}else {e=Ext.app.bind.Parser.fly(d);d=e.compileFormat();e.release();a[a.formatterNames[b]]=null;a[a.rendererNames[b]]=a.bindFormatter(d)}},getView:function(){var a;if(!this.view){a=this.getRootHeaderCt();if(a){this.view=a.view}}return this.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 c=this.items.items,d=c.length,a,b;for(a=0;a<d;++a){b=c[a];if(b.isColumn&&!b.hidden){return !0}}return !1},onAdd:function(b){var a=this;if(b.isColumn){b.isSubHeader=!0;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,c){var a=this;if(b.isSubHeader){b.isSubHeader=!1;b.removeCls(a.groupSubHeaderCls)}Ext.grid.header.Container.prototype.onRemove.call(this,b,c);if(!(a.destroyed||a.destroying)&&!a.hasVisibleChildColumns()&&(a.ownerCt&&!a.ownerCt.isNested())){a.hide()}},initRenderData:function(){var a=this,b='',d=a.tooltip,c=a.text,e=a.tooltipType==='qtip'?'data-qtip':'title';if(!Ext.isEmpty(d)){b=e+'="'+d+'" '}return Ext.applyIf(Ext.grid.header.Container.prototype.initRenderData.apply(this,arguments),{text:c,empty:a.isEmptyText(c),menuDisabled:a.menuDisabled,tipMarkup:b,triggerStyle:this.getTriggerVisible()?'display:block':''})},applyColumnState:function(a,g){var b=this,e=b.getSorter(),d=g&&g.sorters,h,c,i,f;if(e&&d&&(h=d.length)){f=e.getId();for(c=0;!i&&c<h;c++){if(d[c].id===f){e.setDirection(d[c].direction);d[c]=e;break}}}b.applyColumnsState(a.columns);if(a.hidden!=null){b.hidden=a.hidden}if(a.locked!=null){b.locked=a.locked}if(a.sortable!=null){b.sortable=a.sortable}if(a.width!=null){b.flex=null;b.width=a.width}else if(a.flex!=null){b.width=null;b.flex=a.flex}},getColumnState:function(){var b=this,c=b.items.items,a={id:b.getStateId()};b.savePropsToState(['hidden','sortable','locked','flex','width'],a);if(b.isGroupHeader&&c&&c.length){a.columns=b.getColumnsState()}if('width' in a){delete a.flex}return a},setText:function(b){var a=this,c;a.text=b;if(a.rendered){c=a.getView().ownerGrid;a.textInnerEl.setHtml(b);a.titleEl.toggleCls('x-column-header-inner-empty',a.isEmptyText(b));c.syncHeaderVisibility()}},getIndex:function(){return this.isGroupColumn?!1:this.getRootHeaderCt().getHeaderIndex(this)},getVisibleIndex:function(){return this.visibleIndex!=null?this.visibleIndex:this.isGroupColumn?!1:Ext.Array.indexOf(this.getRootHeaderCt().getVisibleGridColumns(),this)},getLabelChain:function(){var c=this,b=[],a;while((a=c.up('headercontainer'))){if(a.text){b.unshift(Ext.util.Format.stripTags(a.text))}c=a}return b},beforeRender:function(){var a=this,d=a.getRootHeaderCt(),e=a.isSortable(),c=[],b;a.textAlign=a.getMappedAlignment(a.getAlign());Ext.grid.header.Container.prototype.beforeRender.call(this);if(!a.requiresMenu&&!e&&!a.groupable&&!a.lockable&&(d.grid.enableColumnHide===!1||!d.getHideableColumns().length)){a.menuDisabled=!0}if(a.cellWrap){a.variableRowHeight=!0}b=a.ariaRenderAttributes||(a.ariaRenderAttributes={});b['aria-readonly']=!0;if(e){b['aria-sort']=a.ariaSortStates[a.sortState]}if(a.isSubHeader){c=a.getLabelChain();if(a.text){c.push(Ext.util.Format.stripTags(a.text))}if(c.length){b['aria-label']=c.join(' ')}}a.protoEl.unselectable()},getTriggerElWidth:function(){var c=this,a=c.triggerEl,b=c.self.triggerElWidth;if(a&&b===undefined){a.setStyle('display','block');b=c.self.triggerElWidth=a.getWidth();a.setStyle('display','')}return b},afterComponentLayout:function(c,g,b,f){var a=this,d=a.getRootHeaderCt(),e=a.savedFlex;Ext.grid.header.Container.prototype.afterComponentLayout.call(this,c,g,b,f);if(d&&(b!=null||a.flex)&&c!==b){d.onHeaderResize(a,c)}if(e){a.flex=e;delete a.savedFlex}},doDestroy:function(){Ext.destroy(this.field,this.editor);Ext.grid.header.Container.prototype.doDestroy.call(this)},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(e){var a=this,b,c,d;if(a.isAtStartEdge(e)){b=a.previousNode('gridcolumn:not([hidden]):not([isGroupHeader])');if(b&&b.getRootHeaderCt()===a.getRootHeaderCt()){b.autoSize()}}else if(a.isAtEndEdge(e)){if(a.isGroupHeader&&e.getPoint().isContainedBy(a.layout.innerCt)){c=a.query('gridcolumn:not([hidden]):not([isGroupHeader])');c[c.length-1].autoSize();return}else {d=a.getRootHeaderCt();if(d.visibleColumnManager.getColumns().length===1&&d.forceFit){return}}a.autoSize()}},autoSize:function(){var a=this,c,d,b,e;if(a.resizable){if(a.isGroupHeader){c=a.query('gridcolumn:not([hidden]):not([isGroupHeader])');d=c.length;e=a.getRootHeaderCt();Ext.suspendLayouts();for(b=0;b<d;b++){e.autoSizeColumn(c[b])}Ext.resumeLayouts(!0);return}a.getRootHeaderCt().autoSizeColumn(a)}},isEmptyText:function(a,b){if(b){return Ext.String.trim(a).length===0}else {return a==null||a===''}},onTitleElClick:function(b,g,f){var a=this,c,d,e;if(b.pointerType==='touch'){d=a.previousSibling(':not([hidden])');if(!a.menuDisabled){e=parseInt(a.triggerEl.getStyle('width'),10);if(isNaN(e)){e=a.getHandleWidth(b)*3}if(a.isAtEndEdge(b,e)){c=a}}if(!c&&d&&!d.menuDisabled&&a.isAtStartEdge(b)){c=d}}else {c=a.triggerEl&&(b.target===a.triggerEl.dom||g===a.triggerEl||b.within(a.triggerEl))?a:null}if(f!==!1&&(!c&&!a.isAtStartEdge(b)&&!a.isAtEndEdge(b)||b.getKey())){a.toggleSortState()}return c},processEvent:function(d,e,c,a,b,f){return this.fireEvent.apply(this,arguments)},isSortable:function(){var a=this.getRootHeaderCt(),c=a?a.grid:null,b=this.sortable;if(c&&c.sortableColumns===!1){b=!1}return b},toggleSortState:function(){if(this.isSortable()){this.sort()}},sort:function(a){var d=this,c=d.up('tablepanel'),e=c.store,b=d.getSorter();Ext.suspendLayouts();if(b){if(a){b.setDirection(a)}e.sort(b,c.multiColumnSort?'multi':'replace')}else {e.sort(d.getSortParam(),a,c.multiColumnSort?'multi':'replace')}Ext.resumeLayouts(!0)},getSortParam:function(){return this.dataIndex},setSortState:function(h){var a=this,g=h&&h.getDirection(),c=a.ascSortCls,b=a.descSortCls,f=a.getRootHeaderCt(),d=a.ariaEl.dom,e;switch(g){case 'DESC':if(!a.hasCls(b)){a.addCls(b);a.sortState='DESC';e=!0};a.removeCls(c);break;case 'ASC':if(!a.hasCls(c)){a.addCls(c);a.sortState='ASC';e=!0};a.removeCls(b);break;default:a.removeCls([c,b]);a.sortState=null;break;}if(d){if(a.sortState){d.setAttribute('aria-sort',a.ariaSortStates[a.sortState])}else {d.removeAttribute('aria-sort')}}if(e){f.fireEvent('sortchange',f,a,g)}},isHideable:function(){var a={hideCandidate:this,result:this.hideable};if(a.result){this.ownerCt.bubble(this.hasOtherMenuEnabledChildren,null,[a])}return a.result},hasOtherMenuEnabledChildren:function(b){var a,c;if(!this.isXType('headercontainer')){b.result=!1;return !1}a=this.query('>gridcolumn:not([hidden]):not([menuDisabled])');c=a.length;if(Ext.Array.contains(a,b.hideCandidate)){c--}if(c){return !1}b.hideCandidate=this},isLockable:function(){var a={result:this.lockable!==!1};if(a.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[a])}return a.result},isLocked:function(){if(this.locked==null){this.locked=this.getInherited().inLockedGrid}return this.locked},hasMultipleVisibleChildren:function(a){if(!this.isXType('headercontainer')){a.result=!1;return !1}if(this.query('>gridcolumn:not([hidden])').length>1){return !1}},hide:function(){var a=this,b=a.getRootHeaderCt(),c=a.getRefOwner();if(c.constructing){Ext.grid.header.Container.prototype.hide.call(this);return a}if(a.rendered&&!a.isVisible()){return a}if(b.forceFit){a.visibleSiblingCount=b.getVisibleGridColumns().length-1;if(a.flex){a.savedWidth=a.getWidth();a.flex=null}}b.beginChildHide();Ext.suspendLayouts();if(c.isGroupHeader){if(a.isNestedGroupHeader()){c.hide()}if(a.isSubHeader&&!a.isGroupHeader&&c.query('>gridcolumn:not([hidden])').length===1){c.lastHiddenHeader=a}}Ext.grid.header.Container.prototype.hide.call(this);b.endChildHide();b.onHeaderHide(a);Ext.resumeLayouts(!0);return a},show:function(){var a=this,c=a.getRootHeaderCt(),b=a.getRefOwner();if(a.isVisible()){return a}if(b.isGroupHeader){b.lastHiddenHeader=null}if(a.rendered){if(c.forceFit){c.applyForceFit(a)}}Ext.suspendLayouts();if(a.isSubHeader&&b.hidden){b.show(!1,!0)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(a.isGroupHeader){a.maybeShowNestedGroupHeader()}b=a.getRootHeaderCt();if(b){b.onHeaderShow(a)}Ext.resumeLayouts(!0);return a},shouldUpdateCell:function(d,b){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(b){var e=b.length,a,c;for(a=0;a<e;++a){c=b[a];if(c===this.dataIndex||c===d.idProperty){return 2}}}else {return 2}}},getCellWidth:function(){var a=this,b;if(a.rendered&&a.componentLayout&&a.componentLayout.lastComponentSize){b=a.componentLayout.lastComponentSize.width}else if(a.width){b=a.width}else if(!a.isColumn){b=a.getTableWidth()}return b},getCellId:function(){return 'x-grid-cell-'+this.getItemId()},getCellSelector:function(){if(!this.cellSelector){var a=this.getView();this.cellSelector=(a?a.getCellSelector():'')+'.'+this.getCellId()}return this.cellSelector},getCellInnerSelector:function(){return this.getCellSelector()+' .x-grid-cell-inner'},isAtStartEdge:function(b){var a=b.getXY()[0]-this.getX();if(a<0&&this.getIndex()===0){return !1}return (a<this.getHandleWidth(b))},isAtEndEdge:function(a,b){return (this.getX()+this.getWidth()-a.getXY()[0]<=(b||this.getHandleWidth(a)))},getHandleWidth:function(a){return a.pointerType==='touch'?10:4},setMenuActive:function(a){this.activeMenu=a;this.titleEl[a?'addCls':'removeCls'](this.headerOpenCls)},privates:{_alignMap:{start:'left',end:'right'},afterText:function(a,b){if(this.dirtyText){this.dirtyTextElementId=this.id+'-dirty-cell-text';a.push('<span id="'+this.dirtyTextElementId+'" class="x-hidden-offsets">'+this.dirtyText+'</span>')}},calculateHeaderId:function(){var a=this,c,b,d,f,e,g;if(!a.headerId){c=a.up('tablepanel');if(!c){return}d=a.items.items;if(d){for(e=0,g=d.length;e<g;++e){f=d[e];if(f.isColumn){f.calculateHeaderId()}}}b=c?c.ownerGrid:a.getRootHeaderCt();b.headerCounter=(b.headerCounter||0)+1;a.headerId='h'+b.headerCounter}a.configureStateInfo()},getMappedAlignment:function(a){return this._alignMap[a]||a},configureStateInfo:function(){var a=this,b;if(!a.stateId){a.stateId=a.initialConfig.id||a.headerId}b=a.getSorter();if(!a.hasSetSorter&&b&&!b.initialConfig.id){if(a.dataIndex||a.stateId){b.setId((a.dataIndex||a.stateId)+'-sorter');a.hasSetSorter=!0}}},onLock:function(d){var c=this.items.items,e=c.length,a,b;for(a=0;a<e;++a){b=c[a];if(b.isColumn){b.onLock(d)}}},onUnlock:function(d){var c=this.items.items,e=c.length,a,b;for(a=0;a<e;++a){b=c[a];if(b.isColumn){b.onUnlock(d)}}}},deprecated:{5:{methods:{bindRenderer:function(a){return function(b){return Ext.util.Format[a](b)}}}}}},0,["gridcolumn"],["component","box","container","headercontainer","gridcolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0},["widget.gridcolumn"],0,[Ext.grid.column,'Column',Ext.grid,'Column'],0));(Ext.cmd.derive('Ext.grid.column.ActionProxy',Ext.Base,{constructor:function(b,c,a){this.column=b;this.item=c;this.itemIndex=a},setHandler:function(a){this.item.handler=a},setDisabled:function(a){if(a){this.column.disableAction(this.itemIndex)}else {this.column.enableAction(this.itemIndex)}},setIconCls:function(a){this.item.iconCls=a;this.column.getView().refreshView()},setIconGlyph:function(a){this.item.glyph=a;this.column.getView().refreshView()},setHidden:function(a){this.item.hidden=a;this.column.getView().refreshView()},setVisible:function(a){this.setHidden(!a)},on:function(){return this.column.on.apply(this.column,arguments)}},1,0,0,0,0,0,[Ext.grid.column,'ActionProxy'],0));(Ext.cmd.derive('Ext.grid.column.Action',Ext.grid.column.Column,{alternateClassName:'Ext.grid.ActionColumn',stopSelection:!0,actionIdRe:new RegExp('x-action-col-(\\d+)'),altText:'',menuText:'<i>Actions</i>',itemTabIndex:0,itemAriaRole:'button',maskOnDisable:!1,ignoreExport:!0,sortable:!1,innerCls:'x-grid-cell-inner-action-col',actionIconCls:'x-action-col-icon',constructor:function(h){var a=this,c=Ext.apply({},h),e=c.items||a.items||[a],f,d,g,b;a.origRenderer=c.renderer||a.renderer;a.origScope=c.scope||a.scope;a.renderer=a.scope=c.renderer=c.scope=null;c.items=null;Ext.grid.column.Column.prototype.constructor.call(this,c);if(a.hasOwnProperty('isDisabled')){a.isActionDisabled=a.isDisabled;delete a.isDisabled}a.items=e;for(d=0,g=e.length;d<g;++d){b=e[d];if(b.substr&&b[0]==='@'){b=a.getAction(b.substr(1))}if(b.hasOwnProperty('isDisabled')){b.isActionDisabled=b.isDisabled;delete b.isDisabled}if(b.isAction){e[d]=b.initialConfig;b.addComponent(new Ext.grid.column.ActionProxy(a,e[d],d))}if(b.getClass){f=!0}}if(a.origRenderer||f){a.hasCustomRenderer=!0}},initComponent:function(){var a=this;Ext.grid.column.Column.prototype.initComponent.call(this);if(a.sortable&&!a.dataIndex){a.sortable=!1}},defaultRenderer:function(u,m,o,p,n,t,r){var b=this,q=b.origScope||b,l=b.items,s=l.length,d,a,i,j,h,k,e,c,g,f;i=Ext.isFunction(b.origRenderer)?b.origRenderer.apply(q,arguments)||'':'';m.tdCls+=' x-action-col-cell';for(d=0;d<s;d++){a=l[d];e=a.icon;c=a.glyph;j=a.disabled||(a.isActionDisabled?Ext.callback(a.isActionDisabled,a.scope||b.origScope,[r,p,n,a,o],0,b):!1);h=a.tooltip||(a.getTip?Ext.callback(a.getTip,a.scope||b.origScope,arguments,0,b):null);k=a.getAltText?Ext.callback(a.getAltText,a.scope||b.origScope,arguments,0,b):a.altText||b.altText;if(!a.hasActionConfiguration){a.stopSelection=b.stopSelection;a.disable=Ext.Function.bind(b.disableAction,b,[d],0);a.enable=Ext.Function.bind(b.enableAction,b,[d],0);a.hasActionConfiguration=!0}if(c){c=Ext.Glyph.fly(c)}g=(a!==b&&a.tabIndex!==undefined)?a.tabIndex:b.itemTabIndex;f=(a!==b&&a.ariaRole!==undefined)?a.ariaRole:b.itemAriaRole;i+='<'+(e?'img':'div')+(typeof g==='number'?' tabIndex="'+g+'"':'')+(f?' role="'+f+'"':' role="presentation"')+(e?(' alt="'+k+'" src="'+a.icon+'"'):'')+' class="'+b.actionIconCls+' x-action-col-'+String(d)+' '+(j?b.disabledCls+' ':' ')+(a.hidden?'x-hidden-display ':'')+(a.getClass?Ext.callback(a.getClass,a.scope||b.origScope,arguments,undefined,b):(a.iconCls||b.iconCls||''))+'"'+(h?' data-qtip="'+h+'"':'')+(e?'/>':c?(' style="font-family:'+c.fontFamily+'">'+c.character+'</div>'):'></div>')}return i},updater:function(e,d,c,f,b){var a={};Ext.fly(e).addCls(a.tdCls).down(this.getView().innerSelector,!0).innerHTML=this.defaultRenderer(d,a,c,null,null,b,f)},enableAction:function(a,c){var b=this;if(!a){a=0}else if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}b.items[a].disabled=!1;b.up('tablepanel').el.select('.x-action-col-'+a).removeCls(b.disabledCls);if(!c){b.fireEvent('enable',b)}},disableAction:function(a,c){var b=this;if(!a){a=0}else if(!Ext.isNumber(a)){a=Ext.Array.indexOf(b.items,a)}b.items[a].disabled=!0;b.up('tablepanel').el.select('.x-action-col-'+a).addCls(b.disabledCls);if(!c){b.fireEvent('disable',b)}},doDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.doDestroy.call(this)},processEvent:function(f,g,o,i,j,c,m,p){var b=this,d=c.getTarget(),e=f==='keydown'&&c.getKey(),n,a,k,l=Ext.fly(o),h;c.stopSelection=!e&&b.stopSelection;if(e&&(d===o||!l.contains(d))){d=l.query('.'+b.actionIconCls,!0);if(d.length===1){d=d[0]}else {return}}if(d&&(n=d.className.match(b.actionIdRe))){a=b.items[parseInt(n[1],10)];k=a.disabled||(a.isActionDisabled?Ext.callback(a.isActionDisabled,a.scope||b.origScope,[g,i,j,a,m],0,b):!1);if(a&&!k){if(f==='mousedown'&&!b.getView().actionableMode){c.preventDefault()}else if(f==='click'||(e===c.ENTER||e===c.SPACE)){h=Ext.Element.getActiveElement();Ext.callback(a.handler||b.handler,a.scope||b.origScope,[g,i,j,a,c,m,p],undefined,b);if(g.destroyed){return !1}else {if(!c.position.getNode(!0)){c.position.refresh()}if(Ext.Element.getActiveElement()!==h){return !1}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(b,a){b.call(a||this,this)},getRefItems:function(){return []},contains:function(){return !1},privates:{getFocusables:function(){return []},shouldUpdateCell:function(){return 2}}},1,["actioncolumn"],["component","box","container","headercontainer","gridcolumn","actioncolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"actioncolumn":!0},["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:'\xa0',defaultFilterType:'boolean',producesHTML:!1,defaultRenderer:function(a){if(a===undefined){return this.undefinedText}if(!a||a==='false'){return this.falseText}return this.trueText},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Boolean.prototype.defaultRenderer.call(this,a)}},0,["booleancolumn"],["component","box","container","headercontainer","gridcolumn","booleancolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"booleancolumn":!0},["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'],isCheckColumn:!0,config:{headerCheckbox:!1},align:'center',triggerEvent:'click',invert:!1,ignoreExport:!0,stopSelection:!0,headerCheckedCls:'x-grid-hd-checker-on',headerCheckboxCls:'x-column-header-checkbox',checkboxCls:'x-grid-checkcolumn',checkboxCheckedCls:'x-grid-checkcolumn-checked',innerCls:'x-grid-checkcolumn-cell-inner',clickTargetName:'el',defaultFilterType:'boolean',checkboxAriaRole:'button',constructor:function(a){this.scope=this;Ext.grid.column.Column.prototype.constructor.call(this,a)},afterComponentLayout:function(){var a=this;Ext.grid.column.Column.prototype.afterComponentLayout.apply(this,arguments);if(a.useAriaElements&&a.headerCheckbox){a.updateHeaderAriaDescription(a.areAllChecked())}if(!a.storeListeners){a.updateHeaderState();a.storeListeners=a.getView().dataSource.on({datachanged:a.onDataChanged,scope:a,destroyable:!0})}},onRemoved:function(){Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments);this.storeListeners=Ext.destroy(this.storeListeners)},onDataChanged:function(b,a){this.updateHeaderState()},updateHeaderCheckbox:function(c){var a=this,b='x-column-header-checkbox';if(c){a.addCls(b);a.sortable=!1;if(a.useAriaElements){a.updateHeaderAriaDescription(a.areAllChecked())}}else {a.removeCls(b);if(a.useAriaElements&&a.ariaEl.dom){a.ariaEl.dom.removeAttribute('aria-describedby')}}a.updateHeaderState()},processEvent:function(h,l,k,e,m,b,d,n){var a=this,f=h==='keydown'&&b.getKey(),g=h===a.triggerEvent,j=a.disabled,i,c;b.stopSelection=!f&&a.stopSelection;if(!j&&(g||(f===b.ENTER||f===b.SPACE))){c=!a.isRecordChecked(d);if(a.fireEvent('beforecheckchange',a,e,c,d,b)!==!1){a.setRecordCheck(d,e,c,k,b);if(g&&!l.actionableMode){b.preventDefault()}if(a.hasListeners.checkchange){a.fireEvent('checkchange',a,e,c,d,b)}}}else {i=Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)}return i},onTitleElClick:function(b,d,c){var a=this;if(!a.disabled&&(b.keyCode||!a.text||(Ext.fly(b.target).hasCls(a.headerCheckboxCls)))){a.toggleAll(b)}else {return Ext.grid.column.Column.prototype.onTitleElClick.call(this,b,d,c)}},toggleAll:function(c){var a=this,d=a.getView(),f=d.getStore(),b=!a.allChecked,e;if(a.fireEvent('beforeheadercheckchange',a,b,c)!==!1){if(a.hasListeners.checkchange||a.hasListeners.beforecheckchange){e=c.position=new Ext.grid.CellContext(d)}f.each(function(e,f){a.setRecordCheck(e,f,b,d.getCell(e,a))});a.setHeaderStatus(b,c);a.fireEvent('headercheckchange',a,b,c)}},setHeaderStatus:function(b,c){var a=this;if(a.allChecked!==b){a.allChecked=b;if(a.headerCheckbox){a[b?'addCls':'removeCls'](a.headerCheckedCls);if(a.useAriaElements){a.updateHeaderAriaDescription(b)}}}},updateHeaderState:function(b){var a=this;if(!a.headerStateTimer){a.headerStateTimer=Ext.raf(a.doUpdateHeaderState,a)}},doUpdateHeaderState:function(b){var a=this;a.headerStateTimer=null;if(!a.destroyed&&a.headerCheckbox){a.setHeaderStatus(a.areAllChecked(),b)}},onEnable:function(){Ext.grid.column.Column.prototype.onEnable.apply(this,arguments);this._setDisabled(!1)},onDisable:function(){this._setDisabled(!0)},_setDisabled:function(d){var b=this,c=b.disabledCls,a;a=b.up('tablepanel').el.select(b.getCellSelector());if(d){a.addCls(c)}else {a.removeCls(c)}},defaultRenderer:function(b,d){var a=this,e=a.checkboxCls,c='';if(a.invert){b=!b}if(a.disabled){d.tdCls+=' '+a.disabledCls}if(b){e+=' '+a.checkboxCheckedCls;c=a.checkedTooltip}else {c=a.tooltip}if(c){d.tdAttr+=' data-qtip="'+Ext.htmlEncode(c)+'"'}if(a.useAriaElements){d.tdAttr+=' aria-describedby="'+a.id+'-cell-description'+(!b?'-not':'')+'-selected"'}a.updateHeaderState();return '<span class="'+e+'" role="'+a.checkboxAriaRole+'"'+(!a.ariaStaticRoles[a.checkboxAriaRole]?' tabIndex="0"':'')+'></span>'},isRecordChecked:function(a){var b=this.property;if(b){return a[b]}return a.get(this.dataIndex)},areAllChecked:function(){var e=this,c=e.getView().getStore(),b,d,a;if(!c.isBufferedStore&&c.getCount()>0){b=c.getData().items;d=b.length;for(a=0;a<d;++a){if(!e.isRecordChecked(b[a])){return !1}}return !0}},setRecordCheck:function(b,f,a,e){var d=this,c=d.property;if(c?b[c]:b.get(d.dataIndex)!=a){if(c){b[c]=a;d.updater(e,a)}else {b.set(d.dataIndex,a)}}},updater:function(b,c){var a=this,d;if(a.invert){c=!c}if(c){d=a.checkedTooltip}else {d=a.tooltip}if(d){b.setAttribute('data-qtip',d)}else {b.removeAttribute('data-qtip')}if(a.useAriaElements){a.updateCellAriaDescription(null,c,b)}b=Ext.fly(b);b[a.disabled?'addCls':'removeCls'](a.disabledCls);Ext.fly(b.down(a.getView().innerSelector,!0).firstChild)[c?'addCls':'removeCls']('x-grid-checkcolumn-checked');a.updateHeaderState()},updateHeaderAriaDescription:function(b){var a=this;if(a.useAriaElements&&a.ariaEl.dom){a.ariaEl.dom.setAttribute('aria-describedby',a.id+'-header-description'+(!b?'-not':'')+'-selected')}},updateCellAriaDescription:function(d,c,a){var b=this;if(b.useAriaElements){a=a||b.getView().getCell(d,b);if(a){a.setAttribute('aria-describedby',b.id+'-cell-description'+(!c?'-not':'')+'-selected')}}},doDestroy:function(){Ext.unraf(this.headerStateTimer);Ext.grid.column.Column.prototype.doDestroy.call(this)},privates:{afterText:function(c,d){var a=this,b=a.id;c.push('<span role="presentation" class="',a.headerCheckboxCls,'"></span>');if(a.useAriaElements){c.push('<span id="'+b+'-header-description-selected" class="x-hidden-offsets">'+a.headerDeselectText+'</span><span id="'+b+'-header-description-not-selected" class="x-hidden-offsets">'+a.headerSelectText+'</span><span id="'+b+'-cell-description-selected" class="x-hidden-offsets">'+a.rowDeselectText+'</span><span id="'+b+'-cell-description-not-selected" class="x-hidden-offsets">'+a.rowSelectText+'</span>')}}}},1,["checkcolumn"],["component","box","container","headercontainer","gridcolumn","checkcolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"checkcolumn":!0},["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:!0,defaultFilterType:'date',producesHTML:!1,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(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Date.prototype.defaultRenderer.call(this,a)}},0,["datecolumn"],["component","box","container","headercontainer","gridcolumn","datecolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"datecolumn":!0},["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:!1,defaultRenderer:function(a){return Ext.util.Format.number(a,this.format)},updater:function(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.Number.prototype.defaultRenderer.call(this,a)}},0,["numbercolumn"],["component","box","container","headercontainer","gridcolumn","numbercolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"numbercolumn":!0},["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:!0,text:"&#160;",width:30,sortable:!1,draggable:!1,autoLock:!0,lockable:!1,align:'right',producesHTML:!1,ignoreExport:!0,constructor:function(b){var a=this;a.width=a.width;Ext.grid.column.Column.prototype.constructor.apply(this,arguments);a.sortable=!1;a.scope=a},resizable:!1,hideable:!1,menuDisabled:!0,dataIndex:'',cls:'x-row-numberer',tdCls:'x-grid-cell-row-numberer x-grid-cell-special',innerCls:'x-grid-cell-inner-row-numberer',rowspan:undefined,onAdded:function(){var a=this;a.renumberRows=Ext.Function.createBuffered(a.renumberRows,1,a);Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a.storeListener=a.getView().on({itemadd:a.renumberRows,itemremove:a.renumberRows,destroyable:!0})},onRemoved:function(){var a=this;Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments);if(a.storeListener){a.storeListener=a.storeListener.destroy()}if(a.renumberRows.timer){Ext.undefer(a.renumberRows.timer)}a.renumberRows=null;delete a.renumberRows},defaultRenderer:function(g,b,d,k,j,a,h){var i=this,c=i.rowspan,f=a.currentPage,e=d?h.store.indexOf(d):g-1;if(b&&c){b.tdAttr='rowspan="'+c+'"'}if(f>1){e+=(f-1)*a.pageSize}return e+1},updater:function(b,e,d,f,c){var a=b&&b.querySelector(this.getView().innerSelector);if(a){a.innerHTML=this.defaultRenderer(e,null,d,null,null,c,f)}},renumberRows:function(){if(this.destroying||this.destroyed){return}var b=this,c=b.getView(),d=c.dataSource,g=d.getCount(),e=new Ext.grid.CellContext(c).setColumn(b),f=b.getView().all,a=f.startIndex;while(a<=f.endIndex&&a<g){e.setRow(a);b.updater(e.getCell(!0),++a,null,c,d)}}},1,["rownumberer"],["component","box","container","headercontainer","gridcolumn","rownumberer"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"rownumberer":!0},["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=!0;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(b,a){Ext.fly(b).down(this.getView().innerSelector,!0).innerHTML=Ext.grid.column.CheckColumn.prototype.defaultRenderer.call(this,a)}},0,["templatecolumn"],["component","box","container","headercontainer","gridcolumn","templatecolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"templatecolumn":!0},["widget.templatecolumn"],0,[Ext.grid.column,'Template',Ext.grid,'TemplateColumn'],0));(Ext.cmd.derive('Ext.grid.column.Widget',Ext.grid.column.Column,{config:{defaultWidgetUI:{}},ignoreExport:!0,sortable:!1,onWidgetAttach:null,preventUpdate:!0,innerCls:'x-grid-widgetcolumn-cell-inner',stopSelection:!0,initComponent:function(){var b=this,a;Ext.grid.column.Column.prototype.initComponent.apply(this,arguments);a=b.widget;b.widget=a=Ext.apply({},a);if(!a.ui){a.ui=b.getDefaultWidgetUI()[a.xtype]||'default'}b.isFixedSize=Ext.isNumber(a.width)},processEvent:function(c,d,h,e,f,b,g,i){var a;if(this.stopSelection&&c==='click'){a=b.getTarget(d.innerSelector);if(a&&a!==b.target){b.stopSelection=!0}}},beforeRender:function(){var a=this,c=a.tdCls,b;b=Ext.widget(a.widget);a.bindDataIndex=a.dataIndex&&b.defaultBindProperty&&!b.bind;c=c?c+' ':'';a.tdCls=c+b.getTdCls();a.setupViewListeners(a.getView());Ext.grid.column.Column.prototype.beforeRender.call(this);b.destroy()},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(c,b,a){this.updateWidget(a)},onCellsResized:function(f){var a=this,c=a.ownerGrid.getManagedWidgets(a.getId()),g=c.length,e=a.getView(),b,d;if(!a.isFixedSize&&a.rendered&&e&&e.viewReady){d=e.getEl().down(a.getCellInnerSelector());if(d){f-=parseInt(a.getCachedStyle(d,'padding-left'),10)+parseInt(a.getCachedStyle(d,'padding-right'),10);for(b=0;b<g;++b){c[b].ownerLayout=null;c[b].setWidth(f);c[b].ownerLayout=e.componentLayout}}}},onAdded:function(){var a=this,b;Ext.grid.column.Column.prototype.onAdded.apply(this,arguments);a.ownerGrid=a.up('tablepanel').ownerGrid;if(a.ownerGrid.lockable){a.variableRowHeight=!0}b=a.getView();if(b){a.setupViewListeners(b)}},onRemoved:function(b){var a=this.viewListeners;if(a){Ext.destroy(a)}if(b){this.ownerGrid.destroyManagedWidgets(this.getId())}Ext.grid.column.Column.prototype.onRemoved.apply(this,arguments)},doDestroy:function(){this.ownerGrid.destroyManagedWidgets(this.getId());Ext.grid.column.Column.prototype.doDestroy.call(this)},privates:{getWidget:function(c){var a=this,b=null;if(c){b=a.ownerGrid.createManagedWidget(a.getView(),a.getId(),a.widget,c);b.getWidgetRecord=a.widgetRecordDecorator;b.getWidgetColumn=a.widgetColumnDecorator;b.measurer=a;b.isLayoutChild=a.returnFalse}return b},onItemAdd:function(l){var a=this,i=a.getView(),m=!!a.onWidgetAttach,k=a.dataIndex,h=a.isFixedSize,n=l.length,g,d,c,b,j,e,f;if(a.isVisible(!0)){for(g=0;g<n;g++){d=l[g];if(d.isNonData){continue}c=i.getCell(d,a);if(c){c=c.firstChild;if(!h&&!f&&a.lastBox){f=a.lastBox.width-parseInt(a.getCachedStyle(c,'padding-left'),10)-parseInt(a.getCachedStyle(c,'padding-right'),10)}b=a.getWidget(d);b.$widgetColumn=a;b.$widgetRecord=d;Ext.fly(c).empty();if(b.defaultBindProperty&&k){b.setConfig(b.defaultBindProperty,d.get(k))}j=b.el||b.element;if(j){c.appendChild(j.dom);if(!h){b.setWidth(f)}b.reattachToBody()}else {if(!h){b.width=f||100}b.render(c)}if(m){Ext.callback(a.onWidgetAttach,a.scope,[a,b,d],0,a)}e=b.getFocusEl();if(e){if(i.actionableMode){if(!e.isTabbable()){e.restoreTabbableState()}}else {if(e.isTabbable()){e.saveTabbableState()}}}}}}else {i.refreshNeeded=!0}},onItemUpdate:function(a,b,c){this.updateWidget(a)},onLock:function(a){Ext.grid.column.Column.prototype.onLock.call(this,a);this.resetView()},onUnlock:function(a){Ext.grid.column.Column.prototype.onUnlock.call(this,a);this.resetView()},onViewRefresh:function(b,a){Ext.suspendLayouts();this.onItemAdd(a);Ext.resumeLayouts(!0)},resetView:function(){var a=this,b=a.viewListeners;if(b){Ext.destroy(b)}a.setupViewListeners(a.getView());a.ownerGrid.handleWidgetViewChange(a.getView(),a.getId())},returnFalse:function(){return !1},setupViewListeners:function(c){var a=this,b={refresh:a.onViewRefresh,itemadd:a.onItemAdd,scope:a,destroyable:!0};if(a.bindDataIndex){b.itemUpdate=a.onItemUpdate}a.viewListeners=c.on(b)},updateWidget:function(b){var c=this.dataIndex,a;if(this.rendered&&this.bindDataIndex){a=this.getWidget(b);if(a){a.setConfig(a.defaultBindProperty,b.get(c))}}},widgetRecordDecorator:function(){return this.$widgetRecord},widgetColumnDecorator:function(){return this.$widgetColumn}}},0,["widgetcolumn"],["component","box","container","headercontainer","gridcolumn","widgetcolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"widgetcolumn":!0},["widget.widgetcolumn"],[[Ext.mixin.StyleCacher.prototype.mixinId||Ext.mixin.StyleCacher.$className,Ext.mixin.StyleCacher]],[Ext.grid.column,'Widget'],0));(Ext.cmd.derive('Ext.grid.feature.Feature',Ext.util.Observable,{wrapsItem:!1,isFeature:!0,disabled:!1,hasFeatureEvent:!0,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,getFireEventArgs:function(b,c,a,d){return [b,c,a,d]},vetoEvent:Ext.emptyFn,enable:function(){this.disabled=!1},disable:function(){this.disabled=!0}},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',summaryRowSelector:'.x-grid-row-summary',readDataOptions:{recordCreator:Ext.identityFn},summaryRowTpl:{fn:function(c,a,b){if(a.record.isSummary){this.summaryFeature.outputSummaryRecord(a.record,a,c,b)}else {this.nextTpl.applyOut(a,c,b)}},priority:1000},showSummaryRow:!0,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'}if(a.hasOwnProperty('summaryRowCls')){a.summaryRowSelector='.'+a.summaryRowCls}},bindStore:function(c,b){var a=this;Ext.destroy(a.readerListeners);if(a.remoteRoot){a.readerListeners=b.getProxy().getReader().on({scope:a,destroyable:!0,rawdata:a.onReaderRawData})}},onReaderRawData:function(a){this.summaryRows=null;this.readerRawData=a},toggleSummaryRow:function(a,d){var b=this,e=b.showSummaryRow,c;a=a!=null?!!a:!b.showSummaryRow;b.showSummaryRow=a;if(a&&a!==e){b.updateSummaryRow=!0}if(b.lockingPartner){if(!d){b.lockingPartner.toggleSummaryRow(a,!0);c=!0}}else {c=!0}if(c){b.grid.ownerGrid.getView().refresh()}},createRenderer:function(a,c){var e=this,d=c.ownerGroup,f=d?e.summaryData[d]:e.summaryData,b=a.dataIndex||a.getItemId();return function(e,d){return a.summaryRenderer?a.summaryRenderer(c.data[b],f,b,d):c.data[b]}},outputSummaryRecord:function(e,f,j){var c=f.view,i=c.rowValues,d=f.columns||c.headerCt.getVisibleGridColumns(),g=d.length,b,a,h={view:c,record:e,rowStyle:'',rowClasses:[this.summaryRowCls,this.summaryItemCls],itemClasses:[],recordIndex:-1,rowId:c.getRowId(e),columns:d};for(b=0;b<g;b++){a=d[b];a.savedRenderer=a.renderer;if(a.summaryType||a.summaryRenderer){a.renderer=this.createRenderer(a,e)}else {a.renderer=Ext.emptyFn}}c.rowValues=h;c.self.prototype.rowTpl.applyOut(h,j,parent);c.rowValues=i;for(b=0;b<g;b++){a=d[b];a.renderer=a.savedRenderer;a.savedRenderer=null}},getSummary:function(f,c,b,e){var d=!!e,a=d?e:f;if(c){if(Ext.isFunction(c)){if(d){return a.aggregate(b,c)}else {return a.aggregate(c,null,!1,[b])}}switch(c){case 'count':return a.count();case 'min':return a.min(b);case 'max':return a.max(b);case 'sum':return a.sum(b);case 'average':return a.average(b);default:return '';}}},getRawData:function(){var a=this.readerRawData;if(a){return a}return this.view.getStore().getProxy().getReader().rawData},generateSummaryData:function(h){var c=this,a=c.summaryRows,e={},k={},g,d,i,b,f,a,j,l;if(!a){i=c.getRawData();if(!i){return}g=c.view.store.getProxy().getReader();d=Ext.create('reader.'+g.type,g.getConfig());d.setRootProperty(c.remoteRoot);a=d.getRoot(i);if(a){j=[];if(!Ext.isArray(a)){a=[a]}f=a.length;for(b=0;b<f;++b){l=d.extractRecordData(a[b],c.readDataOptions);j.push(l)}c.summaryRows=a=j}d.destroy();c.readerRawData=null}if(a){for(b=0,f=a.length;b<f;b++){e=a[b];if(h){k[e[h]]=e}}}return h?k:e},setSummaryData:function(e,d,c,b){var a=this.summaryData;if(b){if(!a[b]){a[b]={}}a[b][d]=c}else {a[d]=c}},destroy:function(){Ext.destroy(this.readerListeners);this.readerRawData=this.summaryRows=null;Ext.grid.feature.Feature.prototype.destroy.call(this)}},0,0,0,0,["feature.abstractsummary"],0,[Ext.grid.feature,'AbstractSummary'],0));(Ext.cmd.derive('Ext.grid.feature.GroupStore',Ext.util.Observable,{isStore:!0,defaultViewSize:100,isFeatureStore:!0,badGrouperKey:'[object Object]',constructor:function(b,c){var a=this;Ext.util.Observable.prototype.constructor.call(this);a.groupingFeature=b;a.bindStore(c);if(!b.grid.isLocked){a.bindViewStoreListeners()}},bindStore:function(b){var a=this;if(!b||a.store!==b){Ext.destroy(a.storeListeners);a.store=null}if(b){a.storeListeners=b.on({datachanged:a.onDataChanged,groupchange:a.onGroupChange,idchanged:a.onIdChanged,update:a.onUpdate,scope:a,destroyable:!0});a.store=b;a.processStore(b)}},bindViewStoreListeners:function(){var b=this.groupingFeature.view,a=b.getStoreListeners(this);a.scope=b;this.on(a)},processStore:function(a){var e=this,c=e.groupingFeature,h=c.startCollapsed,b=e.data,i=a.getGroups(),k=i?i.length:0,m=a.getGroupField(),f,g,j,d,l;if(b){b.clear()}else {b=e.data=new Ext.util.Collection({rootProperty:'data',extraKeys:{byInternalId:{property:'internalId',rootProperty:''}}})}if(a.getCount()){c.startCollapsed=!1;if(k>0){for(g=0;g<k;g++){d=i.getAt(g);l=d.getGroupKey();if(e.badGrouperKey===l&&(j=c.getGrouper(m))){a.getGroups().remove(d);c.startCollapsed=h;a.group(j);return}f=c.getMetaGroup(d);if(h){f.isCollapsed=h}if(f.isCollapsed){b.add(f.placeholder)}else {b.insert(e.data.length,d.items)}}}else {b.add(a.getRange())}}},isCollapsed:function(a){return this.groupingFeature.getCache()[a].isCollapsed},isLoading:function(){return !1},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,a){var c=this.data.getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},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(b){var a=this,f=a.groupingFeature,e,d,c,g;if(typeof b==='string'){b=f.getGroup(b)}if(b){g=b.items;e=f.getMetaGroup(b);d=e.placeholder}if(g.length&&(c=a.data.indexOf(d))!==-1){e.isCollapsed=!1;a.isExpandingOrCollapsing=1;a.data.removeAt(c);a.data.insert(c,b.items);a.fireEvent('replace',a,c,[d],b.items);a.fireEvent('groupexpand',a,b);a.isExpandingOrCollapsing=0}},collapseGroup:function(b){var a=this,e=a.groupingFeature,d,f,g,c;if(typeof b==='string'){b=e.getGroup(b)}if(b){c=b.items}if(c&&(g=c.length)&&(d=a.data.indexOf(c[0]))!==-1){e.getMetaGroup(b).isCollapsed=!0;a.isExpandingOrCollapsing=2;a.data.removeAt(d,g);a.data.insert(d,f=a.getGroupPlaceholder(b));a.fireEvent('replace',a,d,c,[f]);a.fireEvent('groupcollapse',a,b);a.isExpandingOrCollapsing=0}},getGroupPlaceholder:function(d){var b=this.groupingFeature.getMetaGroup(d);if(!b.placeholder){var e=this.store,g=e.getModel(),c={},f=d.getGroupKey(),a;c[e.getGroupField()]=f;a=b.placeholder=new g(c);a.isNonData=a.isCollapsedPlaceholder=!0;a.groupKey=f}return b.placeholder},indexOf:function(a){var b=-1;if(a&&!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)},onIdChanged:function(d,b,a,c){this.data.updateKey(b,a)},onUpdate:function(k,b,j,c){var a=this,g=a.groupingFeature,f,i,d,e,h;if(k.isGrouped()){f=b.group=g.getGroup(b);if(f){i=g.getMetaGroup(b);if(c&&Ext.Array.contains(c,g.getGroupField())){a.onDataChanged();delete b.group;return}if(i.isCollapsed){a.fireEvent('update',a,i.placeholder)}else {Ext.suspendLayouts();a.fireEvent('update',a,b,j,c);h=f.items;d=h[0];e=h[h.length-1];if(d!==b){d.group=f;a.fireEvent('update',a,d,'edit',c);delete d.group}if(e!==b&&e!==d&&g.showSummaryRow){e.group=f;a.fireEvent('update',a,e,'edit',c);delete e.group}Ext.resumeLayouts(!0)}}delete b.group}else {a.fireEvent('update',a,b,j,c)}},onGroupChange:function(b,a){if(!a){this.processStore(b)}this.fireEvent('groupchange',b,a)},onDataChanged:function(){this.processStore(this.store);this.fireEvent('refresh',this)},destroy:function(){var a=this;a.bindStore(null);Ext.destroy(a.data);a.groupingFeature=null;Ext.util.Observable.prototype.destroy.call(this)}},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:!0,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:!1,startCollapsed:!1,enableGroupingMenu:!0,enableNoGroups:!0,collapsible:!0,groupers:null,expandTip:'Click to expand. CTRL key collapses all others',collapseTip:'Click to collapse. CTRL/click collapses all others',showSummaryRow:!1,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",','tooltip = "";','if (me.collapsible) {','tooltip = Ext.String.format(\'data-qtip="{0}"\', values.isCollapsedGroup ? me.expandTip : me.collapseTip);','}','%}','<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} {[tooltip]}>','{[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(b){var a=this.groupingFeature;b.add('header',a.eventSelector);b.add('summary',a.summaryRowSelector)},syncContent:function(c,b,f){c=Ext.fly(c,'syncDest');b=Ext.fly(b,'syncSrc');var a=this.groupingFeature,h=c.down(a.eventSelector,!0),g=b.down(a.eventSelector,!0),e=c.down(a.summaryRowSelector,!0),d=b.down(a.summaryRowSelector,!0);if(h&&g){Ext.fly(h).syncContent(g)}if(e&&d){if(f){this.groupingFeature.view.updateColumns(e,d,f)}else {Ext.fly(e).syncContent(d)}}}}],relayedEvents:['groupcollapse','groupexpand'],init:function(c){var a=this,b=a.view,f=a.gridStore=c.getStore(),d,e;b.isGrouping=f.isGrouped();a.mixins.summary.init.call(a);Ext.grid.feature.Feature.prototype.init.call(this,c);b.headerCt.on({columnhide:a.onColumnHideShow,columnshow:a.onColumnHideShow,columnmove:a.onColumnMove,scope:a});b.addTpl(Ext.XTemplate.getTpl(a,'outerTpl')).groupingFeature=a;b.addRowTpl(Ext.XTemplate.getTpl(a,'groupRowTpl')).groupingFeature=a;b.preserveScrollOnRefresh=!0;if(f.isBufferedStore){a.collapsible=!1}else {d=a.lockingPartner;if(d&&d.dataSource){a.dataSource=b.dataSource=e=d.dataSource}else {a.dataSource=b.dataSource=e=new Ext.grid.feature.GroupStore(a,f)}}c=c.ownerLockable||c;c.on('beforereconfigure',a.beforeReconfigure,a);if(!b.isLockedView){a.gridEventRelayers=c.relayEvents(b,a.relayedEvents)}b.on({afterrender:a.afterViewRender,scope:a,single:!0});a.groupRenderInfo={};if(e){e.on('groupchange',a.onGroupChange,a)}else {a.setupStoreListeners(f)}a.mixins.summary.bindStore.call(a,c,c.getStore())},getGridStore:function(){return this.gridStore},indexOf:function(a){if(a.isCollapsedPlaceholder){return this.dataSource.indexOfPlaceholder(a)}return this.dataSource.indexOf(a)},indexOfPlaceholder:function(a){return this.dataSource.indexOfPlaceholder(a)},isInCollapsedGroup:function(d){var c=this,e=c.getGridStore(),b=!1,a;if(e.isGrouped()&&(a=c.getMetaGroup(d))){b=!!(a&&a.isCollapsed)}return b},getCache:function(){var e=this,d=e.getId(),b={},c=this.getGridStore().getGroups(),a;if(c){c.eachKey(function(e,c){a=c.$groupingContext||(c.$groupingContext={});b[e]=a[d]})}return b},invalidateCache:function(){var c=this,d=c.getId(),b=c.getGridStore().getGroups(),a;if(b){b.eachKey(function(c,b){a=b.$groupingContext;if(a){a[d]=null}})}},vetoEvent:function(d,e,c,a){var b=!1;if(a.type!=='mouseover'&&a.type!=='mouseout'&&a.type!=='mouseenter'&&a.type!=='mouseleave'&&a.getTarget(this.eventSelector)){b=!0}if(this.showSummaryRow&&!b&&a.getTarget(this.summaryRowSelector)){b=!0}if(b){return !1}},enable:function(){var a=this,c=a.view,e=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),b;c.isGrouping=!0;if(c.lockingPartner){c.lockingPartner.isGrouping=!0}Ext.grid.feature.Feature.prototype.enable.call(this);if(a.lastGrouper){e.group(a.lastGrouper);a.lastGrouper=null}if(d){d.hide()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!0,!0)}},disable:function(){var a=this,c=a.view,f=a.getGridStore(),d=a.hideGroupedHeader&&a.getGroupedHeader(),e=f.getGrouper(),b;c.isGrouping=!1;if(c.lockingPartner){c.lockingPartner.isGrouping=!1}Ext.grid.feature.Feature.prototype.disable.call(this);if(e){a.lastGrouper=e;f.clearGrouping()}if(d){d.show()}b=a.view.headerCt.getMenu().down('#groupToggleMenuItem');if(b){b.setChecked(!1,!0);b.disable()}},afterViewRender:function(){var a=this,b=a.view;b.on({scope:a,groupmousedown:a.onGroupMousedown,groupclick:a.onGroupClick});if(a.enableGroupingMenu){a.injectGroupingMenu()}a.pruneGroupedHeader();a.lastGrouper=a.getGridStore().getGrouper();if(a.disabled){a.disable()}},injectGroupingMenu:function(){var b=this,a=b.view.headerCt;a.showMenuBy=Ext.Function.createInterceptor(a.showMenuBy,b.showMenuBy);a.getMenuItems=b.getMenuItems()},onColumnHideShow:function(l,m){var a=this,e=a.view,k=e.headerCt,i=k.getMenu(),c=i.activeHeader,f=i.down('#groupMenuItem'),g,h=a.grid.getVisibleColumnManager().getColumns().length,d,j,b;if(c&&f){g=c.groupable===!1||!c.dataIndex||a.view.headerCt.getVisibleGridColumns().length<2?'disable':'enable';f[g]()}if(e.rendered&&h){d=e.el.query('.'+a.ctCls);for(b=0,j=d.length;b<j;++b){d[b].colSpan=h}}},onColumnMove:function(){var a=this,f=a.view,e,g,b,c,d,h;if(f.getStore().isGrouped()){g=a.getCache();Ext.suspendLayouts();for(e in g){b=a.getGroup(e);if(b){c=b.first();d=b.last();h=a.getMetaGroup(b);if(h.isCollapsed){c=d=a.dataSource.getGroupPlaceholder(e)}f.refreshNode(c);if(a.showSummaryRow&&d!==c){f.refreshNode(d)}}}Ext.resumeLayouts(!0)}},showMenuBy:function(h,i,d){var b=this,e=b.getMenu(),f=e.down('#groupMenuItem'),g=d.groupable===!1||!d.dataIndex||b.view.headerCt.getVisibleGridColumns().length<2?'disable':'enable',a=e.down('#groupToggleMenuItem'),c=b.grid.getStore().isGrouped();f[g]();if(a){a.setChecked(c,!0);a[c?'enable':'disable']()}},getMenuItems:function(){var a=this,e=a.groupByText,f=a.disabled||!a.getGroupField(),c=a.showGroupsText,b=a.enableNoGroups,d=a.view.headerCt.getMenuItems;return function(){var g=d.call(this);g.push('-',{iconCls:'x-group-by-icon',itemId:'groupMenuItem',text:e,handler:a.onGroupMenuItemClick,scope:a});if(b){g.push({itemId:'groupToggleMenuItem',text:c,checked:!f,checkHandler:a.onGroupToggleMenuItemClick,scope:a})}return g}},onGroupMenuItemClick:function(c,g){var a=this,e=c.parentMenu,b=e.activeHeader,f=a.view,d=a.getGridStore();if(a.disabled){a.lastGrouper=null;a.block();a.enable();a.unblock()}f.isGrouping=!0;d.group(a.getGrouper(b.dataIndex)||b.dataIndex);a.pruneGroupedHeader()},block:function(b){var a=this;a.blockRefresh=a.view.blockRefresh=!0;if(a.lockingPartner&&!b){a.lockingPartner.block(!0)}},unblock:function(b){var a=this;a.blockRefresh=a.view.blockRefresh=!1;if(a.lockingPartner&&!b){a.lockingPartner.unblock(!0)}},onGroupToggleMenuItemClick:function(b,a){this[a?'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(!0)}},getHeaderNode:function(f){var e=this.view.getEl(),b,a,d,c;if(e){b=e.query(this.eventSelector);for(a=0,d=b.length;a<d;++a){c=b[a];if(c.getAttribute('data-groupName')===f){return c}}}},getGroup:function(a){var b=this.getGridStore(),e=a,c,d;if(b.isGrouped()){if(a.isModel){a=a.get(b.getGroupField())}if(typeof a!=='string'){a=b.getGrouper().getGroupString(e)}if(b.isBufferedStore){c=b.groups||(b.groups={});d=c[a]||(c[a]={getGroupKey:function(){return a}})}else {d=b.getGroups().getByKey(a)}}return d},getGrouper:function(b){var a=this.groupers;if(!a){return null}return Ext.Array.findBy(a,function(a){return a.property===b})},getGroupField:function(){return this.getGridStore().getGroupField()},getMetaGroup:function(a){var g=this,j=g.getId(),f,d,i,e,b,c,h;if(a.isModel||typeof a==='string'){a=g.getGroup(a)}if(a){f=a.getGroupKey();h=a.$groupingContext||(a.$groupingContext={});d=h[j];if(!d){i=g.getGridStore().getModel();e={};e[g.getGroupField()]=f;b=new i(e);b.isNonData=b.isCollapsedPlaceholder=!0;b.groupKey=f;c=new Ext.data.Model(e);c.isNonData=c.isSummary=!0;c.groupKey=f;d=h[j]={placeholder:b,isCollapsed:!1,lastGroup:null,lastGroupGeneration:null,lastFilterGeneration:null,aggregateRecord:c}}}return d},isExpanded:function(a){return !this.getMetaGroup(a).isCollapsed},expand:function(a,b){this.doCollapseExpand(!1,a,b)},expandAll:function(){var c=this,b=c.getCache(),d=c.lockingPartner,a;for(a in b){if(b.hasOwnProperty(a)){b[a].isCollapsed=!1}}Ext.suspendLayouts();c.dataSource.onDataChanged();Ext.resumeLayouts(!0);for(a in b){if(b.hasOwnProperty(a)){c.afterCollapseExpand(!1,a);if(d){d.afterCollapseExpand(!1,a)}}}},collapse:function(a,b){this.doCollapseExpand(!0,a,b)},isAllCollapsed:function(){var c=this,a=c.getCache(),b;for(b in a){if(a.hasOwnProperty(b)){if(!a[b].isCollapsed){return !1}}}return !0},isAllExpanded:function(){var c=this,a=c.getCache(),b;for(b in a){if(a.hasOwnProperty(b)){if(a[b].isCollapsed){return !1}}}return !0},collapseAll:function(){var c=this,b=c.getCache(),a,d=c.lockingPartner;for(a in b){if(b.hasOwnProperty(a)){b[a].isCollapsed=!0}}Ext.suspendLayouts();c.dataSource.onDataChanged();Ext.resumeLayouts(!0);for(a in b){if(b.hasOwnProperty(a)){c.afterCollapseExpand(!0,a);if(d){d.afterCollapseExpand(!0,a)}}}},doCollapseExpand:function(c,d,a){var b=this,f=b.lockingPartner,e=b.getGroup(d);if(a===!0){a={focus:!0}}if(b.getMetaGroup(e).isCollapsed!==c){b.isExpandingOrCollapsing=!0;Ext.suspendLayouts();if(c){b.dataSource.collapseGroup(e)}else {b.dataSource.expandGroup(e)}Ext.resumeLayouts(!0);b.afterCollapseExpand(c,d,a);if(f){if(a&&a.focus){a=Ext.Object.chain(a);a.focus=!1}f.afterCollapseExpand(c,d,a)}b.isExpandingOrCollapsing=!1}},afterCollapseExpand:function(e,b,c){var a=this,g=a.view,f,d;f=a.getHeaderNode(b);g.fireEvent(e?'groupcollapse':'groupexpand',g,f,b);if(c){if(e){c.focus=!1;d=a.getMetaGroup(b).placeholder}else {d=a.getGroup(b).getAt(0)}a.grid.ensureVisible(d,c)}},onGroupChange:function(b,a){if(!a){this.view.ownerGrid.getView().refreshView()}else {this.lastGrouper=a}},getMenuItem:function(c){var b=this.view,a=b.headerCt.down('gridcolumn[dataIndex='+c+']'),d=b.headerCt.getMenu();return a?d.down('menuitem[headerId='+a.id+']'):null},onGroupKey:function(d,a){var b=this,c=b.getGroupName(a.target);if(c){b.onGroupClick(b.view,a.target,c,a)}},onGroupMousedown:function(d,b,c,a){a.preventDefault()},onGroupClick:function(h,g,b,f){var a=this,e=a.getCache(),d=!a.isExpanded(b),c;if(a.collapsible){if(f.ctrlKey){Ext.suspendLayouts();for(c in e){if(c===b){if(d){a.expand(b)}}else if(!e[c].isCollapsed){a.doCollapseExpand(!0,c,!1)}}Ext.resumeLayouts(!0);return}if(d){a.expand(b)}else {a.collapse(b)}}},setupRowData:function(d,u,a){var c=this,j=a.recordIndex,i=c.refreshData,b=c.groupRenderInfo,m=i.header,f=i.groupField,h=c.getGridStore(),t=c.view.dataSource,q=t.isBufferedStore,l=c.grid.columnManager.getHeaderByDataIndex(f),r=!!(l&&l.renderer),s=d.groupKey,n=d.isCollapsedPlaceholder&&Ext.isDefined(s)?c.getGroup(s):d.group,k,e,p,o,g;a.isCollapsedGroup=!1;a.summaryRecord=a.groupHeaderCls=null;if(i.doGrouping){k=h.getGrouper();if(d.isCollapsedPlaceholder){e=n.getGroupKey();g=n.items;d=g[0];a.isFirstRow=a.isLastRow=!0;a.groupHeaderCls=c.hdCollapsedCls;a.isCollapsedGroup=a.needsWrap=!0;a.groupName=e;a.groupRenderInfo=b;b.groupField=f;b.groupValue=d.get(f);b.name=b.renderedGroupValue=r?l.renderer(b.groupValue,{},d):e;b.columnName=m?m.text:f;a.collapsibleCls=c.collapsible?c.collapsibleCls:c.hdNotCollapsibleCls;b.rows=b.children=g;if(c.showSummaryRow){a.summaryRecord=i.summaryData[e]}return}e=k.getGroupString(d);if(n){g=n.items;a.isFirstRow=d===g[0];a.isLastRow=d===g[g.length-1]}else {a.isFirstRow=j===0;if(!a.isFirstRow){p=h.getAt(j-1);if(p){a.isFirstRow=!p.isEqual(k.getGroupString(p),e)}}a.isLastRow=j===(q?h.getTotalCount():h.getCount())-1;if(!a.isLastRow){o=h.getAt(j+1);if(o){a.isLastRow=!o.isEqual(k.getGroupString(o),e)}}}if(a.isFirstRow){b.groupField=f;b.name=b.renderedGroupValue=r?l.renderer(d.get(f),{},d):e;b.groupValue=d.get(f);b.columnName=m?m.text:f;a.collapsibleCls=c.collapsible?c.collapsibleCls:c.hdNotCollapsibleCls;a.groupName=e;if(!c.isExpanded(e)){a.itemClasses.push(c.hdCollapsedCls);a.isCollapsedGroup=!0}if(q){b.rows=b.children=[]}else {b.rows=b.children=c.getRecordGroup(d).items}a.groupRenderInfo=b}if(a.isLastRow){if(c.showSummaryRow){a.summaryRecord=i.summaryData[e];a.itemClasses.push('x-grid-group-last')}}a.needsWrap=(a.isFirstRow||a.summaryRecord)}},setup:function(g,f){var a=this,b=a.refreshData,d=f.view,c=d.isGrouping=!a.disabled&&a.getGridStore().isGrouped(),e=d.bufferedRenderer;a.skippedRows=0;if(e){e.variableRowHeight=d.hasVariableRowHeight()||c}b.groupField=a.getGroupField();b.header=a.getGroupedHeader(b.groupField);b.doGrouping=c;f.groupHeaderTpl=Ext.XTemplate.getTpl(a,'groupHeaderTpl');if(c&&a.showSummaryRow){b.summaryData=a.generateSummaryData()}},cleanup:function(c,a){var b=this.refreshData;a.groupRenderInfo=a.groupHeaderTpl=a.isFirstRow=null;b.groupField=b.header=b.summaryData=null},generateSummaryData:function(){var a=this,d=a.getGridStore(),i=d.getFilters(),k=d.getGroups().items,r=d.getProxy().getReader(),q=a.getGroupField(),p=a.lockingPartner,n=a.updateSummaryRow,l={},j=a.view.ownerCt,o=a.didColumnsChange(),e,m,c,b,g,h,f;if(a.remoteRoot){f=a.mixins.summary.generateSummaryData.call(a,q);h=!!f}for(e=0,m=k.length;e<m;++e){c=k[e];b=a.getMetaGroup(c);if(n||h||d.updating||a.grid.reconfiguring||o||a.didGroupChange(c,b,i)){g=a.populateRecord(c,b,f);if(!p||(j===j.ownerLockable.normalGrid)){b.lastGroup=c;b.lastGroupGeneration=c.generation;b.lastFilterGeneration=i.generation}}else {g=b.aggregateRecord}l[c.getGroupKey()]=g}a.updateSummaryRow=!1;return l},getGroupName:function(d){var e=this,f=e.view,c=e.eventSelector,a,b;a=Ext.fly(d).findParent(c);if(!a){b=Ext.fly(d).findParent(f.itemSelector);if(b){a=b.down(c,!0)}}if(a){return a.getAttribute('data-groupname')}},getRecordGroup:function(c){var a=this.getGridStore(),b=a.getGrouper();if(b){return a.getGroups().getItemGroup(c)}},getGroupedHeader:function(a){var d=this,f=d.view.headerCt,e=d.lockingPartner,c,b;a=a||d.getGroupField();if(a){c='[dataIndex='+a+']';b=f.down(c);if(!b&&e){b=e.view.headerCt.down(c)}}return b||null},getFireEventArgs:function(b,c,a,d){return [b,c,a,this.getGroupName(a),d]},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;if(b&&!b.destroyed){b.bindStore(null);Ext.destroy(b)}Ext.grid.feature.Feature.prototype.destroy.call(this)},beforeReconfigure:function(i,a,h,e,g){var b=this,f=b.view,d=b.dataSource,c;if(a&&a!==e){b.gridStore=a;c=a.isBufferedStore;if(!d){Ext.destroy(b.storeListeners);b.setupStoreListeners(a)}if(c!==e.isBufferedStore){Ext.raise('Cannot reconfigure grouping switching between buffered and non-buffered stores')}f.isGrouping=!!a.getGrouper();d.bindStore(a)}},populateRecord:function(l,m,h){var c=this,o=c.grid.ownerLockable?c.grid.ownerLockable.view:c.view,n=c.getGridStore(),a=m.aggregateRecord,k=o.headerCt.getGridColumns(),p=k.length,j=l.getGroupKey(),f,d,g,b,i,e;a.beginEdit();if(h){f=h[j];for(d in f){if(f.hasOwnProperty(d)){if(d!==a.idProperty){a.set(d,f[d])}}}}for(g=0;g<p;++g){b=k[g];i=b.dataIndex||b.getItemId();if(!h){e=c.getSummary(n,b.summaryType,i,l);a.set(i,e)}else {e=a.get(b.dataIndex)}c.setSummaryData(a,b.getItemId(),e,j)}a.ownerGroup=j;a.endEdit(!0);a.commit();return a},privates:{didGroupChange:function(b,a,d){var c=!0;if(b===a.lastGroup){c=a.lastGroupGeneration!==b.generation||a.lastFilterGeneration!==d.generation}return c},didColumnsChange:function(){var a=this,b=(a.view.headerCt.items.generation!==a.lastHeaderCtGeneration);a.lastHeaderCtGeneration=a.view.headerCt.items.generation;return b},setupStoreListeners:function(b){var a=this;a.storeListeners=b.on({groupchange:a.onGroupChange,scope:a,destroyable:!0})}}},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:!0},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',innerSelector:'.x-grid-rowbody',rowBodyHiddenCls:'x-grid-row-body-hidden',rowBodyTdSelector:'td.x-grid-cell-rowbody',eventPrefix:'rowbody',eventSelector:'tr.x-grid-rowbody-tr',bodyBefore:!1,outerTpl:{fn:function(h,e,g){var c=this.rowBody,b=e.view,f=b.getVisibleColumnManager().getColumns(),a=b.rowValues,d=c.rowExpander&&c.rowExpander.expanderColumn;a.rowBodyColspan=f.length;a.rowBodyCls=c.rowBodyCls;a.rowIdCls=c.rowIdCls;if(d&&d.getView()===b){b.grid.removeCls('x-grid-hide-row-expander-spacer');a.addSpacerCell=!0;a.rowBodyColspan-=1;a.spacerCellCls='x-grid-cell x-grid-row-expander-spacer x-grid-cell-special'}else {b.grid.addCls('x-grid-hide-row-expander-spacer');a.addSpacerCell=!1}this.nextTpl.applyOut(e,h,g);a.rowBodyCls=a.rowBodyColspan=a.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} {rowIdCls}" {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(e,d,f){var b=this.rowBody,a,c;if(b.doSync){a=Ext.fly(e).down(b.eventSelector,!0);if(a&&(c=Ext.fly(d).down(b.eventSelector,!0))){Ext.fly(a).syncContent(c)}}}}],doSync:!0,init:function(c){var a=this,b=a.view=c.getView();c.variableRowHeight=b.variableRowHeight=!0;b.rowBodyFeature=a;b.headerCt.on({columnschanged:a.onColumnsChanged,scope:a});b.addTpl(a.outerTpl).rowBody=a;b.addRowTpl(Ext.XTemplate.getTpl(this,'extraRowTpl')).rowBody=a;Ext.grid.feature.Feature.prototype.init.apply(this,arguments)},getSelectedRow:function(c,b){var a=c.getNode(b);if(a){return Ext.fly(a).down(this.eventSelector)}return null},onColumnsChanged:function(f){var d=this.view,b,c,e,a;if(!d.rendered){return}b=d.el.query(this.rowBodyTdSelector);c=f.getVisibleGridColumns().length;e=b.length;for(a=0;a<e;++a){b[a].setAttribute('colSpan',c)}},setupRowData:function(b,c,a){if(this.getAdditionalData){Ext.apply(a,this.getAdditionalData(b.data,c,b,a))}}},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,summaryItemCls:'x-grid-row-summary-item',dockedSummaryCls:'x-docked-summary',summaryRowCls:'x-grid-row-summary x-grid-row-total',summaryRowSelector:'.x-grid-row-summary.x-grid-row-total',panelBodyCls:'x-summary-',hasFeatureEvent:!1,fullSummaryTpl:{fn:function(g,b,f){var a=this.summaryFeature,d=a.summaryRecord,c=b.view,e=c.bufferedRenderer;this.nextTpl.applyOut(b,g,f);if(!a.disabled&&a.showSummaryRow&&!c.addingRows&&c.store.isLast(b.record)){if(e&&!a.dock){e.variableRowHeight=!0}a.outputSummaryRecord((d&&d.isModel)?d:a.createSummaryRecord(c),b,g,f)}},priority:300,beginRowSync:function(a){a.add('fullSummary',this.summaryFeature.summaryRowSelector)},syncContent:function(d,c,e){d=Ext.fly(d,'syncDest');c=Ext.fly(c,'sycSrc');var g=this.summaryFeature,f=g.summaryRowSelector,b=d.down(f,!0),a=c.down(f,!0);if(b&&a){if(e){this.summaryFeature.view.updateColumns(b,a,e)}else {Ext.fly(b).syncContent(a)}}}},init:function(b){var a=this,d=a.view,c=a.dock;Ext.grid.feature.AbstractSummary.prototype.init.apply(this,arguments);if(c){b.addBodyCls(a.panelBodyCls+c);b.headerCt.on({add:a.onStoreUpdate,remove:a.onStoreUpdate,scope:a});b.on({beforerender:function(){var e=[a.summaryTableCls];if(d.columnLines){e[e.length]=d.ownerCt.colLinesCls}a.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="'+a.summaryRowCls+'"></tr>','</table>','</div>'],scrollable:{x:!1,y:!1},hidden:!a.showSummaryRow,itemId:'summaryBar',cls:[a.dockedSummaryCls,a.dockedSummaryCls+'-'+c],xtype:'component',dock:c,weight:10000000})[0]},afterrender:function(){b.getView().getScrollable().addPartner(a.summaryBar.getScrollable(),'x');a.onStoreUpdate()},single:!0})}else {if(b.bufferedRenderer){a.wrapsItem=!0;d.addRowTpl(a.fullSummaryTpl).summaryFeature=a;d.on('refresh',a.onViewRefresh,a)}else {a.wrapsItem=!1;a.view.addFooterFn(a.renderSummaryRow)}}b.headerCt.on({afterlayout:a.afterHeaderCtLayout,scope:a});b.ownerGrid.on({beforereconfigure:a.onBeforeReconfigure,columnmove:a.onStoreUpdate,scope:a});a.bindStore(b,b.getStore())},onBeforeReconfigure:function(b,a){this.summaryRecord=null;if(a){this.bindStore(b,a)}},bindStore:function(c,b){var a=this;Ext.destroy(a.storeListeners);a.storeListeners=b.on({scope:a,destroyable:!0,update:a.onStoreUpdate,datachanged:a.onStoreUpdate});Ext.grid.feature.AbstractSummary.prototype.bindStore.call(this,c,b)},renderSummaryRow:function(e,d,f){var c=e.view,a=c.findFeature('summary'),b,g;if(!a.disabled&&a.showSummaryRow&&!c.addingRows&&!c.updatingRows){b=a.summaryRecord;d.push('<table cellpadding="0" cellspacing="0" class="'+a.summaryItemCls+'" style="table-layout: fixed; width: 100%;">');a.outputSummaryRecord((b&&b.isModel)?b:a.createSummaryRecord(c),e,d,f);d.push('</table>')}},toggleSummaryRow:function(d,c){var a=this,b=a.summaryBar;Ext.grid.feature.AbstractSummary.prototype.toggleSummaryRow.call(this,d,c);if(b){b.setVisible(a.showSummaryRow);a.onViewScroll()}},getSummaryBar:function(){return this.summaryBar},getSummaryRowPlaceholder:function(d){var c=this.summaryItemCls,a,b;a=Ext.fly(d.getNodeContainer());if(!a){return null}b=a.down('.'+c,!0);if(!b){b=a.createChild({tag:'table',cellpadding:0,cellspacing:0,cls:c,style:'table-layout: fixed; width: 100%',children:[{tag:'tbody'}]},!1,!0)}return b},vetoEvent:function(c,d,b,a){return !a.getTarget(this.summaryRowSelector)},onViewScroll:function(){this.summaryBar.setScrollX(this.view.getScrollX())},onViewRefresh:function(b){var a=this,c,d;if(!a.disabled&&a.showSummaryRow&&!b.all.getCount()){c=a.createSummaryRecord(b);d=a.getSummaryRowPlaceholder(b);d.tBodies[0].appendChild(b.createRowElement(c,-1).querySelector(a.summaryRowSelector))}},createSummaryRecord:function(g){var c=this,h=g.headerCt.getGridColumns(),i=c.remoteRoot,a=c.summaryRecord||(c.summaryRecord=new Ext.data.Model({id:g.id+'-summary-record'})),j=h.length,e,d,f,b,k;a.beginEdit();if(i){b=c.generateSummaryData();if(b){a.set(b)}}else {for(e=0;e<j;e++){d=h[e];f=d.dataIndex||d.getItemId();b=c.getSummary(g.store,d.summaryType,f);a.set(f,b);c.setSummaryData(a,d.getItemId(),b)}}a.endEdit(!0);a.commit(!0);a.isSummary=!0;return a},onStoreUpdate:function(){var d=this,c=d.view,f=d.summaryRowSelector,h=d.dock,g,e,b,a;if(!c.rendered){return}g=d.createSummaryRecord(c);e=Ext.fly(c.createRowElement(g,-1)).down(f,!0);if(!e){return}if(h){a=d.summaryBar.item.dom.firstChild;b=a.firstChild;a.insertBefore(e,b);a.removeChild(b)}else {b=c.el.down(f,!0);a=b&&b.parentNode;if(a){a.removeChild(b)}a=c.getRow(c.all.last());if(a){a=a.parentElement}else {a=d.getSummaryRowPlaceholder(c);a=a&&a.tBodies&&a.tBodies[0]}if(a){a.appendChild(e)}}},afterHeaderCtLayout:function(h){var a=this,e=a.view,i=e.getVisibleColumnManager().getColumns(),b,k=i.length,f,c,g,d,j;if(a.showSummaryRow&&e.refreshCounter){if(a.dock){c=a.summaryBar.el;d=h.getTableWidth();j=a.summaryBar.innerCt;a.summaryBar.item.setWidth(d);if(h.tooNarrow){d+=Ext.getScrollbarSize().width}j.setWidth(d)}else {c=Ext.fly(Ext.fly(e.getNodeContainer()).down('.'+a.summaryItemCls,!0))}if(c){for(f=0;f<k;f++){b=i[f];g=c.down(e.getCellSelector(b),!0);if(g){Ext.fly(g).setWidth(b.width||(b.lastBox?b.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:!0,config:{glyph:null},activated:!1,activeCls:'x-menu-item-active',clickHideDelay:0,destroyMenu:!0,disabledCls:'x-menu-item-disabled',hideOnClick:!0,menuAlign:'tl-tr?',menuExpandDelay:200,menuHideDelay:200,tooltipType:'qtip',focusable:!0,ariaRole:'menuitem',ariaEl:'itemEl',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}" <tpl if="hrefTarget"> target="{hrefTarget}"</tpl> hidefocus="true" unselectable="on"<tpl if="tabIndex != null"> tabindex="{tabIndex}"</tpl><tpl foreach="ariaAttributes"> {$}="{.}"</tpl>><span id="{id}-textEl" data-ref="textEl" class="{textCls} {textCls}-{ui} {indentCls}{childElCls}" unselectable="on" role="presentation">{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"><tpl if="glyphFontFamily">font-family:{glyphFontFamily};</tpl>">{glyph}<tpl else>"></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>',autoEl:{role:'presentation'},maskOnDisable:!1,iconAlign:'left',initComponent:function(){var a=this,b=a.cls?[a.cls]:[],c;if(a.hasOwnProperty('canActivate')){a.focusable=a.canActivate}if(a.plain){b.push('x-menu-item-plain')}if(b.length){a.cls=b.join(' ')}if(a.menu){c=a.menu;a.menu=null;a.setMenu(c)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var a=this;return a.focusable&&a.rendered&&a.canActivate!==!1&&!a.destroying&&!a.destroyed&&a.isVisible(!0)},onFocus:function(b){var a=this;Ext.Component.prototype.onFocus.call(this,b);if(!a.plain){a.addCls(a.activeCls)}a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}},onFocusLeave:function(b){var a=this;Ext.Component.prototype.onFocusLeave.call(this,b);if(!a.plain){a.removeCls(a.activeCls)}a.doHideMenu();a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}},doHideMenu:function(){var a=this.menu;this.cancelDeferExpand();if(a&&a.isVisible()){a.hide()}},deferHideParentMenus:function(){for(var a=this.getRefOwner();a&&((a.isMenu&&a.floating)||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},expandMenu:function(c,b){var a=this;if(!a.disabled&&a.activated&&a.menu){a.hideOnClick=!1;a.cancelDeferHide();b=b==null?a.menuExpandDelay:b;if(b===0){a.doExpandMenu(c)}else {a.cancelDeferExpand();a.expandMenuTimer=Ext.defer(a.doExpandMenu,b,a,[c])}}},doExpandMenu:function(c){var b=this,a=b.menu;if(!a.isVisible()){b.parentMenu.activeChild=a;a.ownerCmp=b;a.parentMenu=b.parentMenu;a.constrainTo=document.body;a.autoFocus=!c||!c.pointerType;a.showBy(b,b.menuAlign)}else if(c&&c.type==='keydown'){a.focus()}},getRefItems:function(c){var b=this.menu,a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},getValue:function(){return this.value},hideMenu:function(b){var a=this;if(a.menu){a.cancelDeferExpand();a.hideMenuTimer=Ext.defer(a.doHideMenu,Ext.isNumber(b)?b:a.menuHideDelay,a)}},onClick:function(b){var a=this,e=a.clickHideDelay,f=b.browserEvent,d,c;if(!a.href||a.disabled){b.stopEvent();if(a.disabled){return !1}}if(a.disabled||a.handlingClick){return}if(a.hideOnClick&&!a.menu){if(!e){a.deferHideParentMenus()}else {a.deferHideParentMenusTimer=Ext.defer(a.deferHideParentMenus,e,a)}}d=a.fireEvent('click',a,b);if(a.destroyed){return}if(d!==!1&&a.handler){Ext.callback(a.handler,a.scope,[a,b],0,a)}if(a.destroyed){return}if(Ext.isIE9m){c=f.returnValue===!1?!0:!1}else {c=!!f.defaultPrevented}if(a.href&&b.type!=='click'&&!c){a.handlingClick=!0;a.itemEl.dom.click();a.handlingClick=!1}if(!a.hideOnClick&&!a.hasFocus){a.focus()}return d},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},doDestroy:function(){var a=this;if(a.rendered){a.clearTip()}a.cancelDeferExpand();a.cancelDeferHide();Ext.undefer(a.deferHideParentMenusTimer);a.setMenu(null);Ext.Component.prototype.doDestroy.call(this)},beforeRender:function(){var a=this,b=a.glyph,i,c=!!(a.icon||a.iconCls||b),f=!!a.menu,h=((a.iconAlign==='right')&&!f),e=a.isMenuCheckItem,d=[],j=a.ownerCt,g=j.plain;if(a.plain){a.ariaEl='el'}Ext.Component.prototype.beforeRender.call(this);if(c){if(f&&a.showCheckbox){c=!1}}if(b){i=b.fontFamily;b=b.character}if(!g||(c&&!h)||e){if(j.showSeparator&&!g){d.push(a.indentCls)}else {d.push(a.indentNoSeparatorCls)}}if(f){d.push(a.indentRightArrowCls)}else if(c&&(h||e)){d.push(a.indentRightIconCls)}Ext.applyIf(a.renderData,{hasHref:!!a.href,href:a.href||'#',hrefTarget:a.hrefTarget,icon:a.icon,iconCls:a.iconCls,glyph:b,glyphCls:b?'x-menu-item-glyph':undefined,glyphFontFamily:i,hasIcon:c,hasMenu:f,indent:!g||c||e,isCheckItem:e,rightIcon:h,plain:a.plain,text:a.text,arrowCls:a.arrowCls,baseIconCls:a.baseIconCls,textCls:a.textCls,indentCls:d.join(' '),linkCls:a.linkCls,linkHrefCls:a.linkHrefCls,groupCls:a.group?a.groupCls:'',tabIndex:a.tabIndex})},onRender:function(){var a=this;Ext.Component.prototype.onRender.apply(this,arguments);if(a.tooltip){a.setTooltip(a.tooltip,!0)}},getMenu:function(){return this.menu||null},setMenu:function(b,f){var a=this,e=a.menu,h=a.arrowEl,d=a.ariaEl.dom,c,g;if(e){e.ownerCmp=e.parentMenu=null;if(f===!0||(f!==!1&&a.destroyMenu)){Ext.destroy(e)}if(d){d.removeAttribute('aria-haspopup');d.removeAttribute('aria-owns')}else {c=(a.ariaRenderAttributes||(a.ariaRenderAttributes={}));delete c['aria-haspopup'];delete c['aria-owns']}}if(b){g=b.isMenu;b=a.menu=Ext.menu.Manager.get(b,{ownerCmp:a,focusOnToFront:!1});b.setOwnerCmp(a,g);if(d){d.setAttribute('aria-haspopup',!0);d.setAttribute('aria-owns',b.id)}else {c=(a.ariaRenderAttributes||(a.ariaRenderAttributes={}));c['aria-haspopup']=!0;c['aria-owns']=b.id}}else {b=a.menu=null}if(b&&a.rendered&&!a.destroying&&h){h[b?'addCls':'removeCls'](a.arrowCls)}},setHandler:function(b,a){this.handler=b||null;this.scope=a},setIcon:function(b){var a=this,c=a.iconEl,d=a.icon;if(a.glyph){a.setGlyph(null)}if(c){c.setStyle('background-image',b?'url('+b+')':'')}a.icon=b;a.fireEvent('iconchange',a,d,b)},setIconCls:function(b){var a=this,c=a.iconEl,d=a.iconCls;if(a.glyph){a.setGlyph(null)}if(c){c.setStyle('background-image','');if(a.iconCls){c.removeCls(a.iconCls)}if(b){c.addCls(b)}}a.iconCls=b;a.fireEvent('iconchange',a,d,b)},setText:function(b){var a=this,d=a.textEl||a.el,c=a.text;a.text=b;if(a.rendered){d.setHtml(b||'');a.updateLayout()}a.fireEvent('textchange',a,c,b)},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(b,c){var a=this;if(a.rendered){if(!c){a.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(b)){Ext.tip.QuickTipManager.register(Ext.apply({target:a.itemEl.id},b));a.tooltip=b}else {a.itemEl.dom.setAttribute(a.getTipAttr(),b)}}else {a.tooltip=b}return a},getFocusEl:function(){return this.plain?this.el:this.itemEl},getFocusClsEl:function(){return this.el},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)}},applyGlyph:function(a,b){if(a){if(!a.isGlyph){a=new Ext.Glyph(a)}if(a.isEqual(b)){a=undefined}}return a},updateGlyph:function(b,c){var a=this.iconEl;if(a){a.setStyle('background-image','none');this.icon=null;if(b){a.dom.innerHTML=b.character;a.setStyle(b.getStyle())}else {a.dom.innerHTML=''}}}},0,["menuitem"],["component","box","menuitem"],{"component":!0,"box":!0,"menuitem":!0},["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:!1,checkChangeDisabled:!1,submenuText:'{0} submenu',ariaRole:'menuitemcheckbox',childEls:['checkEl'],defaultBindProperty:'checked',showCheckbox:!0,isMenuCheckItem:!0,checkboxCls:'x-menu-item-checkbox',initComponent:function(){var a=this,b=a.checked;a.checkedConfigure=b;a.checked=!!b;Ext.menu.Item.prototype.initComponent.call(this);if(a.group){Ext.menu.Manager.registerCheckable(a);if(a.initialConfig.hideOnClick!==!1){a.hideOnClick=!0}}},beforeRender:function(){var a=this,b;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(a.renderData,{checkboxCls:a.checkboxCls,showCheckbox:a.showCheckbox});b=(a.ariaRenderAttributes||(a.ariaRenderAttributes={}));b['aria-checked']=a.menu?'mixed':a.checked;if(a.menu){b['aria-label']=Ext.String.formatEncode(a.submenuText,a.text)}},afterRender:function(){var a=this;Ext.menu.Item.prototype.afterRender.call(this);a.checked=!a.checked;a.initial=!0;a.setChecked(!a.checked,!0);a.initial=!1;if(a.checkChangeDisabled){a.disableCheckChange()}if(Ext.isGecko&&a.checkEl){a.checkEl.on('mousedown',a.onMouseDownCheck)}},disableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.addCls(a.disabledCls)}if(Ext.isIE8&&a.rendered){a.el.repaint()}a.checkChangeDisabled=!0},enableCheckChange:function(){var a=this,b=a.checkEl;if(b){b.removeCls(a.disabledCls)}a.checkChangeDisabled=!1},onMouseDownCheck:function(a){a.preventDefault()},onClick:function(b){var a=this;if(!(a.disabled||a.checkChangeDisabled||a.checked&&a.group||a.menu&&"touch"===b.pointerType&&!a.checkEl.contains(b.target))){a.setChecked(!a.checked);if(b.type==='keydown'&&a.menu){return !1}}return Ext.menu.Item.prototype.onClick.call(this,b)},doDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.doDestroy.call(this)},setText:function(c){var a=this,b=a.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,c);if(b&&a.menu){b.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,c))}},setChecked:function(b,d){var a=this,f=a.checkedCls,e=a.uncheckedCls,c=a.el,g=a.ariaEl.dom,h=a.checkedConfigure;if(a.checked!==b&&(d||a.fireEvent('beforecheckchange',a,b)!==!1)){if(c){if(b){c.addCls(f);c.removeCls(e)}else {c.addCls(e);c.removeCls(f)}}if(g){g.setAttribute('aria-checked',a.menu?'mixed':!!b)}a.checked=b;a.checkedConfigure=b;Ext.menu.Manager.onCheckChange(a,b);if(!(a.initial&&h==null)){a.publishState('checked',b)}if(!d){Ext.callback(a.checkHandler,a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}}}},0,["menucheckitem"],["component","box","menuitem","menucheckitem"],{"component":!0,"box":!0,"menuitem":!0,"menucheckitem":!0},["widget.menucheckitem"],0,[Ext.menu,'CheckItem'],0));(Ext.cmd.derive('Ext.menu.Separator',Ext.menu.Item,{focusable:!1,canActivate:!1,hideOnClick:!1,plain:!0,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":!0,"box":!0,"menuitem":!0,"menuseparator":!0},["widget.menuseparator"],0,[Ext.menu,'Separator'],0));(Ext.cmd.derive('Ext.menu.Menu',Ext.panel.Panel,{defaultType:'menuitem',enableKeyNav:!0,allowOtherMenus:!1,ariaRole:'menu',floating:!0,constrain:!0,hidden:!0,hideMode:'visibility',ignoreParentClicks:!1,mouseLeaveDelay:50,isMenu:!0,showSeparator:!0,minWidth:undefined,defaultMinWidth:120,defaultAlign:'tl-bl?',focusOnToFront:!1,bringParentToFront:!1,alignOnScroll:!1,focusable:!0,tabIndex:-1,focusableContainer:!0,defaultFocus:':focusable',allowFocusingDisabledChildren:!0,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 a=this,d=['x-menu'],c=a.bodyCls?[a.bodyCls]:[],e=a.floating!==!1,b={element:'el',click:a.onClick,mouseover:a.onMouseOver,scope:a};if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.on(b);a.on({beforeshow:a.onBeforeShow,scope:a});if(a.plain){d.push('x-menu-plain')}a.cls=d.join(' ');c.push('x-menu-body',Ext.dom.Element.unselectableCls);a.bodyCls=c.join(' ');if(e){if(a.minWidth===undefined){a.minWidth=a.defaultMinWidth}}else {a.hidden=!!a.initialConfig.hidden;a.constrain=!1}Ext.panel.Panel.prototype.initComponent.call(this);Ext.override(a.getLayout(),{configureItem:a.configureItem});a.itemOverTask=new Ext.util.DelayedTask(a.handleItemOver,a)},initFloatConstrain:Ext.emptyFn,getInherited:function(){var a=Ext.panel.Panel.prototype.getInherited.call(this);if(this.floating){a.hidden=this.hidden}return a},beforeRender:function(){var a=this;Ext.panel.Panel.prototype.beforeRender.call(this);if(!a.getSizeModel().width.shrinkWrap){a.layout.align='stretch'}if(a.floating){a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-expanded']=!!a.autoShow}},onBoxReady:function(e,d){var a=this,b=a._iconSeparatorCls,c=a.focusableKeyNav;if(c){c.map.addBinding([{key:Ext.event.Event.ESC,handler:a.onEscapeKey,scope:a},{key:/[\w]/,handler:a.onShortcutKey,scope:a,shift:!1,ctrl:!1,alt:!1}])}else {a.escapeKeyNav=new Ext.util.KeyNav({target:a.el,eventName:'keydown',scope:a,esc:a.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.call(this,e,d);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:!1})}a.mouseMonitor=a.el.monitorMouseLeave(a.mouseLeaveDelay,a.onMouseLeave,a)},onFocusEnter:function(c){var a=this,b;Ext.panel.Panel.prototype.onFocusEnter.call(this,c);a.mixins.focusablecontainer.onFocusEnter.call(a,c);if(a.floating){b=a.getInherited();if(!b.topmostFocusEvent){b.topmostFocusEvent=c}}},onFocusLeave:function(b){var a=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,b);a.lastFocusedChild=null;a.mixins.focusablecontainer.onFocusLeave.call(a,b);if(a.floating){a.hide()}},handleItemOver:function(b,a){if(!a.containsFocus&&(b.pointerType==='mouse'||a.isMenuItem)){a.focus()}if(a.expandMenu){a.expandMenu(b)}},canActivateItem:function(a){return a&&a.isFocusable()},deactivateActiveItem:function(){var b=this,a=b.lastFocusedChild;if(a){a.blur()}},getItemFromEvent:function(d){var c=this,b=c.layout.getRenderTarget().dom,a=d.getTarget();while(a.parentNode!==b){a=a.parentNode;if(!a){return}}return Ext.getCmp(a.id)},lookupComponent:function(a){var b=this;if(typeof a==='string'){if(a[0]==='@'){a=Ext.panel.Panel.prototype.lookupComponent.call(this,a)}else {a=b.lookupItemFromString(a)}}else if(Ext.isObject(a)){a=b.lookupItemFromObject(a)}if(!a.dock){a.minWidth=a.minWidth||b.minWidth}return a},lookupItemFromObject:function(a){var b=this.defaultType;if(!a.isComponent){if(!a.xtype&&Ext.isBoolean(a.checked)){b='menucheckitem'}a=Ext.ComponentManager.create(a,b)}if(a.isMenuItem){a.parentMenu=this}return a},lookupItemFromString:function(a){return (a==='separator'||a==='-')?new Ext.menu.Separator():new Ext.menu.Item({canActivate:!1,hideOnClick:!1,plain:!0,text:a})},configureItem:function(a){var c=this.owner,f='x-',e=c.ui,b,d;if(a.isMenuItem){a.setUI(e)}else if(c.items.getCount()>1&&!a.rendered&&!a.dock){d=c._itemCmpCls;b=[d,d+'-'+e];if(!c.plain&&(a.indent!==!1||a.iconCls==='no-icon')){b.push(f+'menu-item-indent-'+e)}if(a.rendered){a.el.addCls(b)}else {a.cls=(a.cls||'')+' '+b.join(' ')}a.$extraMenuCls=b}this.callParent(arguments)},onRemove:function(a){Ext.panel.Panel.prototype.onRemove.call(this,a);if(!a.destroyed&&a.$extraMenuCls){a.el.removeCls(a.$extraMenuCls)}},onClick:function(b){var c=this,f=b.type,a,d,e=f==='keydown';if(c.disabled){b.stopEvent();return}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.menu||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(c.destroyed){return}if(a.menu&&d!==!1&&e){a.expandMenu(b,0)}}if(!a||a.disabled){a=undefined}c.fireEvent('click',c,a,b)},doDestroy:function(){var a=this;if(a.escapeKeyNav){a.escapeKeyNav.destroy()}a.itemOverTask.cancel();a.parentMenu=a.ownerCmp=a.escapeKeyNav=null;if(a.rendered){a.el.un(a.mouseMonitor);Ext.destroy(a.iconSepEl)}Ext.menu.Manager.onHide(a);Ext.panel.Panel.prototype.doDestroy.call(this)},onMouseLeave:function(b){var a=this;if(a.itemOverTask){a.itemOverTask.cancel()}if(a.disabled){return}a.fireEvent('mouseleave',a,b)},onMouseOver:function(b){var a=this,g=b.getRelatedTarget(),e=!a.el.contains(g),d=a.getItemFromEvent(b),c=a.parentMenu,f=a.ownerCmp;if(e&&c){c.setActiveItem(f);f.cancelDeferHide();c.mouseMonitor.mouseenter();c.itemOverTask.cancel()}if(a.disabled){return}if(d){if(b.pointerType==='touch'){a.handleItemOver(b,d)}else {a.itemOverTask.delay(a.expanded?a.mouseLeaveDelay:0,null,null,[b,d])}}if(e){a.fireEvent('mouseenter',a,b)}a.fireEvent('mouseover',a,d,b)},setActiveItem:function(a){var b=this;if(a&&(a!==b.lastFocusedChild)){b.focusChild(a,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(h,g){var f=String.fromCharCode(g.getCharCode()),c=this.query('>[text]'),e=c.length,a=this.lastFocusedChild,d=Ext.Array.indexOf(c,a),b=d;if(e===0){return}for(;;){if(++b===e){b=0}a=c[b];if(b===d){return}if(a.text&&a.text[0].toUpperCase()===f){a.focus();return}}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)<this.menuClickBuffer){return !1}},beforeShow:function(){var a=this,b;if(a.floating){b=a.hasFloatMenuParent();if(!b&&!a.allowOtherMenus){Ext.menu.Manager.hideAll()}}Ext.panel.Panel.prototype.beforeShow.call(this)},afterShow:function(c,d,e){var a=this,b=a.ariaEl.dom;Ext.panel.Panel.prototype.afterShow.call(this,c,d,e);Ext.menu.Manager.onShow(a);if(a.parentMenu){a.parentMenu.expanded=!0}if(a.floating&&b){b.setAttribute('aria-expanded',!0)}if(a.floating){a.maxHeight=a.savedMaxHeight}if(a.autoFocus){a.focus()}},onHide:function(c,e,d){var a=this,b=a.ariaEl.dom;Ext.panel.Panel.prototype.onHide.call(this,c,e,d);a.lastHide=Ext.Date.now();Ext.menu.Manager.onHide(a);if(a.parentMenu){a.parentMenu.expanded=!1}if(a.floating&&b){b.setAttribute('aria-expanded',!1)}},afterHide:function(b,a){Ext.panel.Panel.prototype.afterHide.call(this,b,a);delete this.getInherited().topmostFocusEvent},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.call(this,a)}return a},initFocusableElement:function(){var b=this,c=b.tabIndex,a=b.el;if(b.floating&&c!=null&&a&&a.dom){a.dom.setAttribute('tabIndex',c);a.dom.setAttribute('data-componentid',b.id)}},processFocusableContainerKeyEvent:function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}else if(a.keyCode===a.TAB&&Ext.fly(a.target).is('input[type=text],textarea')){a.preventDefault();a.target=this.getItemFromEvent(a).el.dom;if(a.shiftKey){a.shiftKey=!1;a.keyCode=a.UP}else {a.keyCode=a.DOWN}}else {return Ext.panel.Panel.prototype.processFocusableContainerKeyEvent.call(this,a)}return a},onFocusableContainerTabKey:function(b){var a=this;if(a.floating){if(b.shiftKey){b.preventDefault()}else {a.focusEnterEvent=a.getInherited().topmostFocusEvent}a.hide()}},onFocusableContainerEnterKey:function(a){this.onClick(a)},onFocusableContainerSpaceKey:function(a){this.onClick(a)},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(b){var c=this,a=c.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},hasFloatMenuParent:function(){return this.parentMenu||this.up('menu[floating=true]')},setOwnerCmp:function(b,c){var a=this;a.parentMenu=b.isMenuItem?b:null;a.ownerCmp=b;a.registerWithOwnerCt();delete a.hierarchicallyHidden;a.onInheritedAdd(b,c);a.containerOnAdded(b,c)}}},0,["menu"],["component","box","container","panel","menu"],{"component":!0,"box":!0,"container":!0,"panel":!0,"menu":!0},["widget.menu"],0,[Ext.menu,'Menu'],0));(Ext.cmd.derive('Ext.grid.filters.filter.Base',Ext.Base,{factoryConfig:{type:'grid.filter'},$configPrefixed:!1,$configStrict:!1,config:{itemDefaults:null,menuDefaults:{xtype:'menu'},updateBuffer:500,serializer:null},active:!1,type:'string',dataIndex:null,menu:null,isGridFilter:!0,defaultRoot:'data',filterIdPrefix:'x-gridfilter',constructor:function(c){var a=this,b;a.initConfig(c);b=a.column;a.columnListeners=b.on('destroy',a.destroy,a,{destroyable:!0});a.dataIndex=a.dataIndex||b.dataIndex;a.task=new Ext.util.DelayedTask(a.setValue,a)},destroy:function(){var a=this;if(a.task){a.task.cancel();a.task=null}a.columnListeners=a.columnListeners.destroy();a.grid=a.menu=Ext.destroy(a.menu);a.callParent()},addStoreFilter:function(b){var a=this.getGridStore().getFilters(),d=a.indexOf(b),c=d!==-1?a.getAt(d):null;if(!c||!Ext.util.Filter.isEqual(c,b)){a.add(b)}},createFilter:function(b,c){var a=new Ext.util.Filter(this.getFilterConfig(b,c));a.isGridFilter=!0;return a},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}a.serializer=this.getSerializer();return a},createMenu:function(){this.menu=Ext.widget(this.getMenuConfig())},getActiveState:function(b,c){var a=b.active;return (a!==undefined)?a:c!==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(f,c){var a=this,e=c.getKey(),d=a.updateBuffer,b;if(e===c.TAB){return}if(f.isValid()){if(e===c.RETURN){a.menu.hide();return}b=a.getValue(f);if(b===a.value){return}if(d){a.task.delay(d,null,null,[b])}else {a.setValue(b)}}},preprocess:Ext.emptyFn,removeStoreFilter:function(a){this.getGridStore().getFilters().remove(a)},getValue:Ext.emptyFn,setActive:function(b){var a=this,d=a.owner.activeFilterMenuItem,c;if(a.active!==b){a.active=b;c=a.getGridStore().getFilters();c.beginUpdate();if(b){a.activate()}else {a.deactivate()}c.endUpdate();if(d&&d.activeFilter===a){d.setChecked(b)}a.setColumnActive(b);a.grid.fireEventArgs(b?'filteractivate':'filterdeactivate',[a,a.column])}},setColumnActive:function(a){this.column[a?'addCls':'removeCls'](this.owner.filterCls)},showMenu:function(b){var a=this;if(!a.menu){a.createMenu()}b.activeFilter=a;b.setMenu(a.menu,!1);b.setChecked(a.active);b.setDisabled(a.disabled===!0);a.activate(!0)},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(d){var a=this,b,c;Ext.grid.filters.filter.Base.prototype.constructor.call(this,d);c=a.value;b=a.getStoreFilter();if(b){a.active=!0}else {if(a.grid.stateful&&a.getGridStore().saveStatefulFilters){c=undefined}a.active=a.getActiveState(d,c);b=a.createFilter({operator:a.operator,value:c});if(a.active){a.addStoreFilter(b)}}if(a.active){a.setColumnActive(!0)}a.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=!1}}},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:!1,yesText:'Yes',noText:'No',updateBuffer:0,constructor:function(c){var a=this,b;Ext.grid.filters.filter.SingleFilter.prototype.constructor.call(this,c);if(a.filter){b=a.filter.getValue();if(Ext.isEmpty(b,!0)&&a.defaultValue!==null){a.filter.setValue(!!a.defaultValue)}}},createMenu:function(e){var a=this,d=Ext.id(),c={scope:a,click:a.onClick},b=a.getItemDefaults();Ext.grid.filters.filter.SingleFilter.prototype.createMenu.apply(this,arguments);a.menu.add([Ext.apply({text:a.yesText,filterKey:1,group:d,checked:!!a.defaultValue,hideOnClick:!1,listeners:c},b),Ext.apply({text:a.noText,filterKey:0,group:d,checked:!a.defaultValue&&a.defaultValue!==null,hideOnClick:!1,listeners:c},b)])},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(!0)}},activateMenu:Ext.emptyFn},1,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(i){var a=this,f=!1,g={},d,e,c,b,h;Ext.grid.filters.filter.Base.prototype.constructor.call(this,i);b=a.value;e=a.getStoreFilter('lt');d=a.getStoreFilter('gt');c=a.getStoreFilter('eq');if(e||d||c){f=a.active=!0;if(e){a.onStateRestore(e)}if(d){a.onStateRestore(d)}if(c){a.onStateRestore(c)}}else {if(a.grid.stateful&&a.getGridStore().saveStatefulFilters){b=undefined}a.active=a.getActiveState(i,b)}g.lt=e||a.createFilter({operator:'lt',value:(!f&&b&&Ext.isDefined(b.lt))?b.lt:null},'lt');g.gt=d||a.createFilter({operator:'gt',value:(!f&&b&&Ext.isDefined(b.gt))?b.gt:null},'gt');g.eq=c||a.createFilter({operator:'eq',value:(!f&&b&&Ext.isDefined(b.eq))?b.eq:null},'eq');a.filter=g;if(a.active){a.setColumnActive(!0);if(!f){for(h in b){a.addStoreFilter(a.filter[h])}}}},activate:function(h){var c=this,g=c.filter,i=c.fields,f,a,e,b,d;if(c.preventFilterRemoval){return}for(e in g){f=g[e];a=i[e];b=f.getValue();if(b||b===0){if(a.isComponent){a.setValue(b);if(d===undefined){d=c.owner.activeFilterMenuItem===a.up('menuitem')}if(!d){a.up('menuitem').setChecked(!0,!0)}}else {a.value=b}if(!h){c.addStoreFilter(f)}}}},deactivate:function(){var a=this,d=a.filter,e,b,c;if(!a.countActiveFilters()||a.preventFilterRemoval){return}a.preventFilterRemoval=!0;for(e in d){b=d[e];c=b.getValue();if(c||c===0){a.removeStoreFilter(b)}}a.preventFilterRemoval=!1},countActiveFilters:function(){var d=this.filter,a=this.getGridStore().getFilters(),e=this.getBaseIdPrefix(),c=0,b;if(a.length){for(b in d){if(a.get(e+'-'+b)){c++}}}return c},onFilterRemove:function(c){var a=this,b;if(!a.menu&&a.countActiveFilters()){a.active=!1}else if(a.menu){b={};b[c]=null;a.setValue(b)}},onStateRestore:Ext.emptyFn,setValue:function(f){var c=this,b=c.filter,i=[],d=[],k=!1,l=c.getGridStore().getFilters(),j,a,e,h,g;if(c.preventFilterRemoval){return}c.preventFilterRemoval=!0;if('eq' in f){a=b.lt.getValue();if(a||a===0){d.push(b.lt)}a=b.gt.getValue();if(a||a===0){d.push(b.gt)}a=f.eq;if(a||a===0){i.push(b.eq);b.eq.setValue(a)}else {d.push(b.eq)}}else {a=b.eq.getValue();if(a||a===0){d.push(b.eq)}if('lt' in f){a=f.lt;if(a||a===0){i.push(b.lt);b.lt.setValue(a)}else {d.push(b.lt)}}if('gt' in f){a=f.gt;if(a||a===0){i.push(b.gt);b.gt.setValue(a)}else {d.push(b.gt)}}}h=d.length;g=i.length;k=!!(c.countActiveFilters()+g-h);if(h||g||k!==c.active){l.beginUpdate();if(h){for(e=0;e<h;e++){j=d[e];c.fields[j.getOperator()].setValue(null);j.setValue(null);c.removeStoreFilter(j)}}if(g){for(e=0;e<g;e++){c.addStoreFilter(i[e])}}c.setActive(k);l.endUpdate()}c.preventFilterRemoval=!1}},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:!0,width:125,menu:{layout:'auto',plain:!0}},applyDateFormat:function(a){return a||Ext.Date.defaultFormat},createMenu:function(m){var a=this,l={scope:a,checkchange:a.onCheckChange},i=a.menuItems,f,e,j,d,k,b,h,c,g;Ext.grid.filters.filter.TriFilter.prototype.createMenu.apply(this,arguments);e=a.getItemDefaults();f=a.getFields();j=Ext.apply({minDate:a.minDate,maxDate:a.maxDate,format:a.dateFormat,listeners:{scope:a,select:a.onMenuSelect}},a.getPickerDefaults());a.fields={};for(d=0,k=i.length;d<k;d++){b=i[d];if(b!=='-'){c={menu:{xtype:'datemenu',hideOnClick:!1,pickerCfg:Ext.apply({itemId:b},j)}};if(e){Ext.merge(c,e)}if(f){Ext.merge(c,f[b])}h=a.menu.add(c);g=a.fields[b]=h.down('datepicker');g.filter=a.filter[b];g.filterKey=b;h.on(l)}else {a.menu.add(b)}}},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(a){var b={};b[a]=null;this.setValue(b);this.fields[a].up('menuitem').setChecked(!1,!0)},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,!0).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(i,f){var g=this,b=g.fields,h=g.filter,a=b[i.itemId],c=b.gt,d=b.lt,j=b.eq,e={};a.up('menuitem').setChecked(!0,!0);if(a===j){d.up('menuitem').setChecked(!1,!0);c.up('menuitem').setChecked(!1,!0)}else {j.up('menuitem').setChecked(!1,!0);if(a===c&&(+d.value<+f)){d.up('menuitem').setChecked(!1,!0);if(h.lt.getValue()!=null){e.lt=null}}else if(a===d&&(+c.value>+f)){c.up('menuitem').setChecked(!1,!0);if(h.gt.getValue()!=null){e.gt=null}}}e[a.filterKey]=f;g.setValue(e);i.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:!1,hideOnClick:!1},idField:'id',labelField:'text',labelIndex:null,loadingText:'Loading...',loadOnShow:!0,single:!1,plain:!0,gridStoreListenersCfg:{add:'onDataChanged',refresh:'onDataChanged',remove:'onDataChanged',update:'onDataChanged'},constructor:function(c){var a=this,b;Ext.grid.filters.filter.SingleFilter.prototype.constructor.call(this,c);a.labelIndex=a.labelIndex||a.column.dataIndex;if(a.store){a.store=Ext.StoreManager.lookup(a.store)}if(!a.store&&!a.options){b=a.getGridStore();if(a.value!=null&&a.active&&!b.isEmptyStore){a.gridStoreListeners=b.on(Ext.apply({scope:a,destroyable:!0},a.gridStoreListenersCfg))}a.gridListeners=a.grid.on({reconfigure:a.onReconfigure,scope:a,destroyable:!0});a.inferOptionsFromGridStore=!0}},destroy:function(){var a=this,b=a.store,c=a.autoStore;if(b&&b.isStore){if(c||b.autoDestroy){b.destroy()}else {b.un('load',a.bindMenuStore,a)}a.store=null}Ext.destroy(a.gridStoreListeners,a.gridListeners);Ext.grid.filters.filter.SingleFilter.prototype.destroy.call(this)},activateMenu:function(){var f=this,d=f.filter.getValue(),c,a,e,b;if(!d||!d.length){return}c=f.menu.items;for(a=0,e=c.length;a<e;a++){b=c.getAt(a);if(Ext.Array.indexOf(d,b.value)>-1){b.setChecked(!0,!0)}}},bindMenuStore:function(b){var a=this;if(a.grid.destroyed||a.preventFilterRemoval){return}a.createListStore(b);a.createMenuItems(a.store);a.loaded=!0},createListStore:function(d){var a=this,e=a.store,l=d.isStore,j=a.idField,i=a.labelField,h=!1,c,g,f,k,b;if(l){if(d!==a.getGridStore()){h=!0;e=a.store=d}else {a.autoStore=!0;c=a.getOptionsFromStore(d)}}else {c=[];for(f=0,k=d.length;f<k;f++){b=d[f];switch(Ext.typeOf(b)){case 'array':c.push(b);break;case 'object':c.push(b);break;default:if(b!=null){g={};g[j]=b;g[i]=b;c.push(g)};}}}if(!h){if(e){e.destroy()}e=a.store=new Ext.data.Store({fields:[j,i],data:c});if(a.inferOptionsFromGridStore&!a.gridStoreListeners){a.gridStoreListeners=a.getGridStore().on(Ext.apply({scope:a,destroyable:!0},a.gridStoreListenersCfg))}a.loaded=!0}a.setStoreFilter(e)},createMenu:function(f){var a=this,c=a.getGridStore(),b=a.store,e=a.options,d;if(b){a.store=b=Ext.StoreManager.lookup(b)}Ext.grid.filters.filter.SingleFilter.prototype.createMenu.call(this,f);d=a.menu;if(b){if(!b.getCount()){d.add({text:a.loadingText,iconCls:'x-mask-msg-text'});d.on({show:a.show,scope:a});b.on('load',a.bindMenuStore,a,{single:!0})}else {a.createMenuItems(b)}}else if(e){a.bindMenuStore(e)}else if(c.getCount()||c.isFiltered()){a.bindMenuStore(c)}else {c.on('load',a.bindMenuStore,a,{single:!0})}},createMenuItems:function(k){var a=this,b=a.menu,m=k.getCount(),n=Ext.Array.contains,p,h,g,l,f,j,c,i,d,o,e;if(m&&b){h=a.getItemDefaults();b.suspendLayouts();b.removeAll(!0);l=a.single?Ext.id():null;j=a.idField;i=a.labelField;e=[];for(d=0;d<m;d++){g=k.getAt(d);f=g.get(j);c=g.get(i);if(c==null||n(e,f)){continue}e.push(c);o=b.add(Ext.apply({text:c,group:l,value:f,checkHandler:a.onCheckChange,scope:a},h))}b.resumeLayouts(!0)}},getFilterConfig:function(b,c){var a=b.value;if(Ext.isEmpty(a)){a=[]}else if(!Ext.isArray(a)){a=[a]}b.value=a;return Ext.grid.filters.filter.SingleFilter.prototype.getFilterConfig.call(this,b,c)},getOptionsFromStore:function(c){var h=this,e=c.getData(),f={},g=[],j=h.dataIndex,i=h.labelIndex,d,a,b;if(c.isFiltered()&&!c.remoteFilter){e=e.getSource()}c.each(function(e){d=e.data;a=d[j];b=d[i];if(b===undefined){b=a}if(!f[a]){f[a]=1;g.push([a,b])}},null,{filtered:!0,collapsed:!0});return g},onCheckChange:function(){var a=this,b=a.updateBuffer;if(b){a.task.delay(b)}else {a.setValue()}},onDataChanged:function(a){if(this.preventDefault){this.preventDefault=!1}else {this.bindMenuStore(a)}},onReconfigure:function(b,a){if(a){this.bindMenuStore(a)}},setActive:function(a){if(this.active!==a){this.preventDefault=!0;Ext.grid.filters.filter.SingleFilter.prototype.setActive.call(this,a)}},setStoreFilter:function(d){var a=this,b=a.value,c=a.filter;if(b){if(!Ext.isArray(b)){b=[b]}c.setValue(b)}if(a.active){a.preventFilterRemoval=!0;a.addStoreFilter(c);a.preventFilterRemoval=!1}},setValue:function(){var a=this,f=a.menu.items,c=[],d,b,e;a.preventDefault=!0;for(d=0,b=f.length;d<b;d++){e=f.getAt(d);if(e.checked){c.push(e.value)}}if(!Ext.Array.equals(c,a.filter.getValue())){a.filter.setValue(c);b=c.length;if(b&&a.active){a.updateStoreFilter()}else {a.setActive(!!b)}}},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:!0,hideEmptyLabel:!1,labelSeparator:'',labelWidth:29,selectOnFocus:!1},menuDefaults:{bodyPadding:3,showSeparator:!1},createMenu:function(){var a=this,j={scope:a,keyup:a.onValueChange,spin:{fn:a.onInputSpin,buffer:200},el:{click:a.stopFn}},g=a.getItemDefaults(),h=a.menuItems,k=a.getFields(),f,e,i,c,d,b;Ext.grid.filters.filter.TriFilter.prototype.createMenu.call(this);a.fields={};for(e=0,i=h.length;e<i;e++){c=h[e];if(c!=='-'){f=k[c];b={labelClsExtra:'x-grid-filters-icon '+f.iconCls};if(g){Ext.merge(b,g)}Ext.merge(b,f);b.emptyText=b.emptyText||a.emptyText;delete b.iconCls;a.fields[c]=d=a.menu.add(b);d.filter=a.filter[c];d.filterKey=c;d.on(j)}else {a.menu.add(c)}}},getValue:function(a){var b={};b[a.filterKey]=a.getValue();return b},onInputSpin:function(a,c){var b={};b[a.filterKey]=a.getValue();this.setValue(b)},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:!0,hideEmptyLabel:!1,iconCls:'x-grid-filters-find',labelSeparator:'',labelWidth:29,margin:0,selectOnFocus:!0},menuDefaults:{bodyPadding:3,showSeparator:!1},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(a){a.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())},createFilter:function(b,c){var a=this;if(a.filterFn){return new Ext.util.Filter({filterFn:function(d){return Ext.callback(a.filterFn,a.scope,[d,a.inputItem.getValue()])}})}else {return Ext.grid.filters.filter.SingleFilter.prototype.createFilter.call(this,b,c)}}},0,0,0,0,["grid.filter.string"],0,[Ext.grid.filters.filter,'String'],0));(Ext.cmd.derive('Ext.grid.filters.Filters',Ext.plugin.Abstract,{id:'gridfilters',defaultFilterTypes:{'boolean':'boolean','int':'number',date:'date',number:'number'},filterCls:'x-grid-filters-filtered-column',menuFilterText:'Filters',showMenu:!0,stateId:undefined,init:function(b){var a=this,c,d;a.grid=b;b.filters=a;if(a.grid.normalGrid){a.isLocked=!0}b.clearFilters=a.clearFilters.bind(a);c=b.store;d=b.headerCt;a.headerCtListeners=d.on({destroyable:!0,scope:a,add:a.onAdd,menucreate:a.onMenuCreate});a.gridListeners=b.on({destroyable:!0,scope:a,reconfigure:a.onReconfigure});a.bindStore(c);if(b.stateful){c.statefulFilters=!0}a.initColumns()},initColumns:function(){var f=this.grid,g=f.getStore(),e=f.columnManager.getColumns(),h=e.length,b,c,d,a;for(b=0;b<h;b++){c=e[b];d=c.filter;if(d&&!d.isGridFilter){if(!a){a=g.getFilters();a.beginUpdate()}this.createColumnFilter(c)}}if(a){a.endUpdate()}},createColumnFilter:function(a){var c=this,d=a.filter,b={column:a,grid:c.grid,owner:c},e,f,g;if(Ext.isString(d)){b.type=d}else {Ext.apply(b,d)}if(!b.type){f=c.store.getModel();e=f&&f.getField(a.dataIndex);g=e&&e.type;b.type=(g&&c.defaultFilterTypes[g])||a.defaultFilterType||'string'}a.filter=Ext.Factory.gridFilter(b);if(!a.menuDisabled){a.requiresMenu=!0}},onAdd:function(c,a,d){var b=a.filter;if(b&&!b.isGridFilter){this.createColumnFilter(a)}},onMenuCreate:function(b,a){a.on({beforeshow:this.onMenuBeforeShow,scope:this})},onMenuBeforeShow:function(f){var a=this,b,c,e,d;if(a.showMenu){if(!a.filterMenuItem){a.filterMenuItem={}}e=f.up('tablepanel');d=e.id;b=a.filterMenuItem[d];if(!b||b.destroyed){b=a.createMenuItem(f,d)}a.activeFilterMenuItem=b;c=a.getMenuFilter(e.headerCt);if(c){c.showMenu(b)}b.setVisible(!!c);if(a.sep){a.sep.setVisible(!!c)}}},createMenuItem:function(b,d){var a=this,c;if(b.items.length){a.sep=b.add('-')}c=b.add({checked:!1,itemId:'filters',text:a.menuFilterText,listeners:{scope:a,checkchange:a.onCheckChange}});return (a.filterMenuItem[d]=c)},destroy:function(){var a=this,b=a.filterMenuItem,c;Ext.destroy(a.headerCtListeners,a.gridListeners);a.bindStore(null);a.sep=Ext.destroy(a.sep);for(c in b){b[c].destroy()}Ext.plugin.Abstract.prototype.destroy.call(this)},onUnbindStore:function(a){if(a&&!a.destroyed){a.getFilters().un('remove',this.onFilterRemove,this)}},onBindStore:function(a,c,b){this.local=!a.getRemoteFilter();a.getFilters().on('remove',this.onFilterRemove,this)},onFilterRemove:function(h,e){var g=e.items.length,f=this.grid.columnManager,c,b,d,a;for(c=0;c<g;c++){b=e.items[c];d=f.getHeaderByDataIndex(b.getProperty());if(d){a=d.filter;if(!a||!a.menu||b.getId().indexOf(a.getBaseIdPrefix())===-1){continue}if(!a.preventFilterRemoval){a.onFilterRemove(b.getOperator())}}}},getMenuFilter:function(a){return a.getMenu().activeHeader.filter},onCheckChange:function(d,c){var a=this.isLocked?d.up('tablepanel'):this.grid,b=this.getMenuFilter(a.headerCt);b.setActive(c)},getHeaders:function(){return this.grid.view.headerCt.columnManager.getColumns()},isStateful:function(){return this.grid.stateful},addFilter:function(b){var c=this,l=c.grid,j=c.store,h=!1,g=!0,i,d,f,k,e,a;if(!Ext.isArray(b)){b=[b]}for(f=0,k=b.length;f<k;f++){e=b[f];i=e.dataIndex;d=l.columnManager.getHeaderByDataIndex(i);if(d){h=!0;if(e.value){g=!1}a=d.filter;if(a&&a.isGridFilter){a.deactivate();a.destroy();if(c.activeFilterMenuItem){c.activeFilterMenuItem.menu=null}}d.filter=e}}if(h){j.suppressNextFilter=g;c.initColumns();j.suppressNextFilter=!1}},addFilters:function(a){if(a){this.addFilter(a)}},clearFilters:function(){var f=this.grid,d=f.columnManager.getColumns(),h=f.store,e,b,c,g,a;for(c=0,g=d.length;c<g;c++){e=d[c];b=e.filter;if(b&&b.isGridFilter){if(!a){a=h.getFilters();a.beginUpdate()}b.setActive(!1)}}if(a){a.endUpdate()}},onReconfigure:function(h,c,g,b){var a=this,d=a.filterMenuItem,e=b!==c,f;if(g){for(f in d){d[f].setMenu(null)}}if(c){if(b&&!b.destroyed&&e){a.resetFilters(b)}if(e){a.bindStore(c);a.applyFilters(c)}}a.initColumns()},privates:{applyFilters:function(f){var d=this.grid.columnManager.getColumns(),g=d.length,c,e,b,a;for(c=0;c<g;c++){e=d[c];b=e.filter;if(b&&b.isGridFilter){if(!a){a=f.getFilters();a.beginUpdate()}if(b.active){b.activate()}}}if(a){a.endUpdate()}},resetFilters:function(e){var a=e.getFilters(),b,c,d;if(a){for(b=a.getCount()-1;b>=0;--b){d=a.getAt(b);if(d.isGridFilter){if(!c){a.beginUpdate()}a.remove(d);c=!0}}if(c){a.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(d){var a=this,b=d.lockedGrid,c=d.normalGrid;a.lockable=d;Ext.grid.header.Container.prototype.constructor.call(this);b.visibleColumnManager.rootColumns=c.visibleColumnManager.rootColumns=d.visibleColumnManager=a.visibleColumnManager=new Ext.grid.ColumnManager(!0,b.headerCt,c.headerCt);b.columnManager.rootColumns=c.columnManager.rootColumns=d.columnManager=a.columnManager=new Ext.grid.ColumnManager(!1,b.headerCt,c.headerCt);a.lockedEventRelayers=a.relayEvents(b.headerCt,a.headerCtRelayEvents);a.normalEventRelayers=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 a=this,b=a.lockable.lockedGrid.headerCt.getColumnsState(),c=a.lockable.normalGrid.headerCt.getColumnsState();return b.concat(c)},applyColumnsState:function(e,h){var j=this,g=j.lockable.lockedGrid,m=j.lockable.normalGrid,d=g.headerCt,f=j.lockable.normalGrid.headerCt,i=d.items.items.concat(f.items.items),n=i.length,c,b,a,k,l;for(c=0;c<n;c++){a=i[c];b=e[a.getStateId()];if(b){l=b.locked!=null&&!!a.locked!==b.locked;if(a.applyColumnState){a.applyColumnState(b,h)}if(l){(a.locked?d:f).add(a)}}}k=d.items.items.length;for(c=0;c<n;c++){a=i[c];b=e[a.getStateId()];if(b&&!a.locked){b.index-=k}}d.applyColumnsState(e,h);f.applyColumnsState(e,h);if(!g.getVisibleColumnManager().getColumns().length){g.hide()}if(!m.getVisibleColumnManager().getColumns().length){m.hide()}},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":!0,"box":!0,"container":!0,"headercontainer":!0},0,0,[Ext.grid.locking,'HeaderContainer'],0));(Ext.cmd.derive('Ext.grid.locking.View',Ext.Base,{alternateClassName:'Ext.grid.LockingView',isLockingView:!0,loadMask:!0,eventRelayRe:/^(beforeitem|beforecontainer|item|container|cell|refresh)/,constructor:function(b){var d=Ext,a=this,e,c;a.ownerGrid=b.ownerGrid;a.ownerGrid.view=a;a.navigationModel=b.locked.xtype==='treepanel'?new d.tree.NavigationModel(a):new d.grid.NavigationModel(a);b.locked.viewConfig.bindStore=d.emptyFn;b.normal.viewConfig.bindStore=a.subViewBindStore;b.normal.viewConfig.isNormalView=b.locked.viewConfig.isLockedView=!0;b.locked.viewConfig.navigationModel=b.normal.viewConfig.navigationModel=a.navigationModel;a.lockedGrid=a.ownerGrid.lockedGrid=d.ComponentManager.create(b.locked);a.lockedView=e=a.lockedGrid.getView();a.selModel=b.normal.viewConfig.selModel=e.getSelectionModel();if(a.lockedGrid.isTree){a.lockedView.animate=!1;b.normal.store=e.store;b.normal.viewConfig.stripeRows=a.lockedView.stripeRows;b.normal.rowLines=a.lockedGrid.rowLines}a.normalGrid=a.ownerGrid.normalGrid=d.ComponentManager.create(b.normal);e.lockingPartner=c=a.normalView=a.normalGrid.getView();c.lockingPartner=e;Ext.override(a.normalGrid,{beforeRender:a.beforeNormalGridRender});a.loadMask=(b.loadMask!==undefined)?b.loadMask:a.loadMask;a.mixins.observable.constructor.call(a);a.lockedViewEventRelayers=a.relayEvents(e,d.view.Table.events);a.normalViewEventRelayers=a.relayEvents(c,d.view.Table.events.concat(d.view.Table.normalSideEvents));c.on({scope:a,itemmouseleave:a.onItemMouseLeave,itemmouseenter:a.onItemMouseEnter});e.on({scope:a,itemmouseleave:a.onItemMouseLeave,itemmouseenter:a.onItemMouseEnter});a.loadingText=c.loadingText;a.loadingCls=c.loadingCls;a.loadingUseMsg=c.loadingUseMsg;a.itemSelector=a.getItemSelector();a.all=c.all;a.bindStore(c.dataSource,!0,'dataSource')},subViewBindStore:function(e,d){var a=this,c=a.ownerGrid,b;if(a.destroying||a.destroyed||c.destroying||c.destroyed){return}b=a.getSelectionModel();b.bindStore(e,d);b.bindComponent(a)},beforeNormalGridRender:function(){if(this.ownerGrid.lockedGrid.getHeader()&&!this.title){this.title='\xa0'}this.callParent()},onPanelRender:function(d){var a=this,b=a.loadMask,c={target:a.ownerGrid,msg:a.loadingText,msgCls:a.loadingCls,useMsg:a.loadingUseMsg,store:a.ownerGrid.store};a.el=d;a.rendered=!0;a.fireEvent('render',a);a.ownerGrid.maskElement='scrollBody';if(b){if(Ext.isObject(b)){c=Ext.apply(c,b)}a.loadMask=new Ext.LoadMask(c)}},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 a.getView().getEl()},getCellSelector:function(){return this.normalView.getCellSelector()},getItemSelector:function(){return this.normalView.getItemSelector()},onItemMouseEnter:function(d,f){var e=this,b=e.lockedView,a=e.normalView,c;if(d.trackOver){if(d!==b){a=b}c=a.getNode(f);a.highlightItem(c)}},onItemMouseLeave:function(c,e){var d=this,a=d.lockedView,b=d.normalView;if(c.trackOver){if(c!==a){b=a}b.clearHighlight()}},relayFn:function(d,b){b=b||[];var c=this,a=c.lockedView;c.relayingOperation=!0;a[d].apply(a,b);a=c.normalView;a[d].apply(a,b);c.relayingOperation=!1},getSelectionModel:function(){return this.normalView.getSelectionModel()},getNavigationModel:function(){return this.navigationModel},getStore:function(){return this.ownerGrid.store},onBindStore:function(c){var d=this,b=d.lockedView,a=d.normalView;if(a.componentLayoutCounter&&!(b.blockRefresh&&a.blockRefresh)){Ext.suspendLayouts();b.doFirstRefresh(c);a.doFirstRefresh(c);Ext.resumeLayouts(!0)}},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(!0)},onOwnerGridShow:function(){Ext.suspendLayouts();this.relayFn('onOwnerGridShow',arguments);Ext.resumeLayouts(!0)},onBeginUpdate:function(){Ext.suspendLayouts();this.relayFn('onBeginUpdate',arguments);Ext.resumeLayouts(!0)},onEndUpdate:function(){Ext.suspendLayouts();this.relayFn('onEndUpdate',arguments);Ext.resumeLayouts(!0)},onDataRefresh:function(){Ext.suspendLayouts();this.relayFn('onDataRefresh',arguments);Ext.resumeLayouts(!0)},onReplace:function(){Ext.suspendLayouts();this.relayFn('onReplace',arguments);Ext.resumeLayouts(!0)},onAdd:function(){Ext.suspendLayouts();this.relayFn('onAdd',arguments);Ext.resumeLayouts(!0)},onRemove:function(){Ext.suspendLayouts();this.relayFn('onRemove',arguments);Ext.resumeLayouts(!0)},setActionableMode:function(d,a){var c,b;if(d){if(!a){a=this.getNavigationModel().getPosition()}if(a){a=a.clone();a.view=b=a.column.getView();c=b.setActionableMode(d,a);if(c!==!1&&b.lockingPartner.grid.isVisible()){b.lockingPartner.setActionableMode(d,a);if(!b.lockingPartner.actionableMode){b.setActionableMode(!1);c=!1}}return c}else {return !1}}else {this.relayFn('setActionableMode',[!1,a])}},onUpdate:function(){Ext.suspendLayouts();this.relayFn('onUpdate',arguments);Ext.resumeLayouts(!0)},refresh:function(){var a=this.lockedView,b=this.normalView;Ext.suspendLayouts();a.clearViewEl(!0);b.clearViewEl(!0);b.refresh();a.refresh();Ext.resumeLayouts(!0)},refreshView:function(){var b=this.lockedView,a=this.normalView,c=a.all.startIndex;Ext.suspendLayouts();b.clearViewEl(!0);a.clearViewEl(!0);a.refreshView(c);b.refreshView(c);Ext.resumeLayouts(!0)},setScrollable:function(a){Ext.suspendLayouts();this.lockedView.setScrollable(a);if(a.isScroller){a=new Ext.scroll.Scroller(a.initialConfig)}this.normalView.setScrollable(a);Ext.resumeLayouts(!0)},getNode:function(a){return this.normalView.getNode(a)},getRow:function(a){return this.normalView.getRow(a)},getCell:function(d,a,c){var e=a.getView().getRow(d),b=e.querySelector(a.getCellSelector());return c?Ext.get(b):b},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 b,a=this.getNavigationModel().lastFocused;b=a?a.view:this.normalView;b.focusRow(c)},focusCell:function(a){a.view.focusCell(a)},onRowFocus:function(){this.relayFn('onRowFocus',arguments)},cancelFocusTask:function(){this.lockedView.cancelFocusTask();this.normalView.cancelFocusTask()},isVisible:function(a){return this.ownerGrid.isVisible(a)},getCellInclusive:function(a,c){var d=a.column,b=this.lockedGrid.getColumnManager().getColumns().length;if(d>=b){a=Ext.apply({},a);a.column-=b;return this.normalView.getCellInclusive(a,c)}else {return this.lockedView.getCellInclusive(a,c)}},getHeaderByCell:function(a){if(a){return this.getVisibleColumnManager().getHeaderById(a.getAttribute('data-columnId'))}return !1},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(a,c){var e=this,b=a.view,d=a.column;if(b===e){a=new Ext.grid.CellContext(d.getView()).setPosition(a.record,a.column)}return b.getCellByPosition(a,c)},getRecord:function(b){var a=this.lockedView.getRecord(b);if(!a){a=this.normalView.getRecord(b)}return a},scrollBy:function(){var a=this.ownerGrid.getScrollable();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.rendered=!1;a.bindStore(null,!1,'dataSource');Ext.destroy(a.selModel,a.navigationModel,a.loadMask);a.lockedView.lockingPartner=a.normalView.lockingPartner=null;a.callParent()}},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.mixin.Focusable.prototype.mixinId||Ext.mixin.Focusable.$className,Ext.mixin.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.scroll.LockingScroller',Ext.scroll.Scroller,{config:{lockedScroller:null,normalScroller:null},scrollTo:function(d,f,e){var c,b,a;if(Ext.isObject(d)){c=d.lockedX;if(c){b=this.getLockedScroller().scrollTo(c,null,e)}}a=Ext.scroll.Scroller.prototype.scrollTo.call(this,d,f,e);if(b){a=Ext.Promise.all([a,b])}return a},updateLockedScroller:function(a){a.on('scroll','onLockedScroll',this);a.setLockingScroller(this)},updateNormalScroller:function(a){a.on('scroll','onNormalScroll',this);a.setLockingScroller(this)},updateTouchAction:function(a,b){Ext.scroll.Scroller.prototype.updateTouchAction.call(this,a,b);this.getLockedScroller().setTouchAction(a);this.getNormalScroller().setTouchAction(a)},getPosition:function(){var a=Ext.scroll.Scroller.prototype.getPosition.call(this);a.x=this.getNormalScroller().getPosition().x;a.lockedX=this.getLockedScroller().getPosition().x;return a},privates:{updateSpacerXY:function(d){var e=this,f=e.getLockedScroller(),g=e.getNormalScroller(),a=f.component,b=g.component,c=d.y+((b.headerCt.tooNarrow||a.headerCt.tooNarrow)?Ext.getScrollbarSize().height:0);b.stretchHeight(c);a.stretchHeight(c);Ext.scroll.Scroller.prototype.updateSpacerXY.call(this,d)},doScrollTo:function(b,e,d){var a,c;if(b!=null){c=this.getNormalScroller().scrollTo(b,null,d);b=null}a=Ext.scroll.Scroller.prototype.doScrollTo.call(this,b,e,d);if(c){a=Ext.Promise.all([a,c])}return a},onLockedScroll:function(b,a,c){this.position.lockedX=a},onNormalScroll:function(b,a,c){this.position.x=a},readPosition:function(a){var b=this;a=Ext.scroll.Scroller.prototype.readPosition.call(this,a);a=a||{};a.x=b.getNormalScroller().getPosition().x;return a}}},0,0,0,0,["scroller.locking"],0,[Ext.scroll,'LockingScroller'],0));(Ext.cmd.derive('Ext.grid.locking.Lockable',Ext.Base,{alternateClassName:'Ext.grid.Lockable',syncRowHeight:!0,headerCounter:0,lockedGridCls:'x-grid-inner-locked',normalGridCls:'x-grid-inner-normal',lockingBodyCls:'x-grid-locking-body',scrollContainerCls:'x-grid-scroll-container',scrollBodyCls:'x-grid-scroll-body',scrollbarClipperCls:'x-grid-scrollbar-clipper',scrollbarCls:'x-grid-scrollbar',scrollbarVisibleCls:'x-grid-scrollbar-visible',lockText:'Lock',unlockText:'Unlock',bothCfgCopy:['hideHeaders','enableColumnHide','enableColumnMove','enableColumnResize','sortableColumns','multiColumnSort','columnLines','rowLines','variableRowHeight','numFromEdge','trailingBufferZone','leadingBufferZone','scrollToLoadBuffer','syncRowHeight'],normalCfgCopy:['scroll'],lockedCfgCopy:[],determineXTypeToCreate:function(b){var a=this;if(a.subGridXType){return a.subGridXType}else if(!b){return 'gridpanel'}return a.isXType('treepanel')?'treepanel':'gridpanel'},injectLockable:function(){this.focusable=!1;this.lockable=!0;this.hasView=!0;var a=this,m=a.store=Ext.StoreManager.lookup(a.store),e=a.lockedViewConfig,f=a.normalViewConfig,q=Ext.Object,k,i,b,c,d,l,g,h,j=a.viewConfig,o=j&&j.loadMask,r=(o!==undefined)?o:a.loadMask,n=a.bufferedRenderer,p;k=a.constructLockableFeatures();a.scrollable=new Ext.scroll.LockingScroller({component:a,x:!1,y:!0});a.features=null;i=a.constructLockablePlugins();a.plugins=i.topPlugins;b={id:a.id+'-locked',$initParent:a,isLocked:!0,bufferedRenderer:n,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(!0),store:m,scrollerOwner:!1,animate:!1,border:!1,cls:a.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||this.ownerGrid.normalGrid.floatedFromCollapse},features:k.lockedFeatures,plugins:i.lockedPlugins};c={id:a.id+'-normal',$initParent:a,isLocked:!1,bufferedRenderer:n,ownerGrid:a,ownerLockable:a,xtype:a.determineXTypeToCreate(),store:m,reserveScrollbar:a.reserveScrollbar,scrollerOwner:!1,border:!1,cls:a.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||this.ownerGrid.lockedGrid.floatedFromCollapse},features:k.normalFeatures,plugins:i.normalPlugins};a.addCls('x-grid-locked');Ext.copy(c,a,a.bothCfgCopy,!0);Ext.copy(b,a,a.bothCfgCopy,!0);Ext.copy(c,a,a.normalCfgCopy,!0);Ext.copy(b,a,a.lockedCfgCopy,!0);Ext.apply(c,a.normalGridConfig);Ext.apply(b,a.lockedGridConfig);for(d=0;d<a.normalCfgCopy.length;d++){delete a[a.normalCfgCopy[d]]}for(d=0;d<a.lockedCfgCopy.length;d++){delete a[a.lockedCfgCopy[d]]}a.addStateEvents(['lockcolumn','unlockcolumn']);l=a.processColumns(a.columns||[],b);b.columns=l.locked;if(!b.columns.items.length){b.hidden=!0}c.columns=l.normal;if(!c.columns.items.length){c.hidden=!0}c.flex=1;b.viewConfig=e=(e?q.chain(e):{});c.viewConfig=f=(f?q.chain(f):{});e.loadingUseMsg=!1;e.loadMask=!1;f.loadMask=!1;Ext.applyIf(e,j);Ext.applyIf(f,j);if(a.layout===Ext.panel.Table.prototype.layout){a.layout={type:'hbox',align:'stretch'}}a.getLayout();if(a.layout.type==='border'){if(a.split){b.split=a.split}if(!b.region){b.region='west'}if(!c.region){c.region='center'}a.addCls('x-grid-locked-split')}if(!(a.layout instanceof Ext.layout.container.Box)){a.split=!1}a.view=new Ext.grid.locking.View({loadMask:r,locked:b,normal:c,ownerGrid:a});b=a.lockedGrid;c=a.normalGrid;b.on({beginfloat:a.onBeginLockedFloat,endfloat:a.onEndLockedFloat,scope:a});p=b.setWidth;b.setWidth=function(){b.shrinkWrapColumns=!1;p.apply(b,arguments)};if(!b.getVisibleColumnManager().getColumns().length){b.hide()}if(!c.getVisibleColumnManager().getColumns().length){c.hide()}g=b.headerCt;h=c.headerCt;a.headerCt=a.view.headerCt=new Ext.grid.locking.HeaderContainer(a);g.lockedCt=!0;g.lockableInjected=!0;h.lockableInjected=!0;g.on({add:a.delaySyncLockedWidth,remove:a.delaySyncLockedWidth,columnshow:a.delaySyncLockedWidth,columnhide:a.delaySyncLockedWidth,sortchange:a.onLockedHeaderSortChange,columnresize:a.delaySyncLockedWidth,scope:a});h.on({add:a.delaySyncLockedWidth,remove:a.delaySyncLockedWidth,columnshow:a.delaySyncLockedWidth,columnhide:a.delaySyncLockedWidth,sortchange:a.onNormalHeaderSortChange,scope:a});a.modifyHeaderCt();a.items=[b];if(a.split){a.addCls('x-grid-locked-split');a.items[1]=Ext.apply({xtype:'splitter'},a.split)}a.items.push(c);a.relayHeaderCtEvents(g);a.relayHeaderCtEvents(h);a.storeRelayers=a.relayEvents(m,['filterchange','groupchange','beforeload','load']);a.gridRelayers=a.relayEvents(c,['viewready'])},afterInjectLockable:function(){var a=this;delete a.lockedGrid.$initParent;delete a.normalGrid.$initParent},syncLockableHeaderVisibility:function(){var d=this,a=d.hideHeaders,b=this.lockedGrid,c=this.normalGrid;if(a===null){a=b.shouldAutoHideHeaders()&&c.shouldAutoHideHeaders()}b.hideHeaders=c.hideHeaders=a;b.syncHeaderVisibility();c.syncHeaderVisibility()},getLockingViewConfig:function(){return {xclass:'Ext.grid.locking.View',locked:this.lockedGrid,normal:this.normalGrid,panel:this}},onBeginLockedFloat:function(a){var e=a.getContentTarget().dom,c=this.lockedGrid.headerCt,d=this.normalGrid.headerCt,b=Math.max(d.getHeight(),c.getHeight());c.minHeight=b;d.minHeight=b;a.el.addCls(Ext.panel.Panel.floatCls);if(e.firstChild!==a.view.el.dom){e.appendChild(a.view.el.dom)}a.body.dom.scrollTop=this.getScrollable().getPosition().y},onEndLockedFloat:function(){var a=this.lockedGrid;if(a.collapsed){a.el.removeCls(Ext.panel.Panel.floatCls)}else {this.lockedGrid.headerCt.minHeight=this.normalGrid.headerCt.minHeight=null}this.lockedScrollbarClipper.appendChild(a.view.el.dom);this.doSyncLockableLayout()},beforeLayout:function(){var b=this,a=b.lockedGrid,d=b.normalGrid,c;if(a&&d){if(a.getSizeModel().width.shrinkWrap){a.gridPanelBorderWidth=a.el.getBorderWidth('lr');a.shrinkWrapColumns=!0}if(a.shrinkWrapColumns){c=a.headerCt.getTableWidth();a.setWidth(c+a.gridPanelBorderWidth);a.shrinkWrapColumns=!0}if(!b.scrollContainer){b.initScrollContainer()}b.lastScrollPos=b.getScrollable().getPosition();a.view.el.setStyle('margin-bottom','');d.view.el.setStyle('margin-bottom','')}},syncLockableLayout:function(){var a=this;if(!a.afterLayoutListener){a.afterLayoutListener=Ext.on({afterlayout:a.doSyncLockableLayout,scope:a,single:!0})}},doSyncLockableLayout:function(){var a=this,z=a.isCollapsingOrExpanding,b=a.lockedGrid,c=a.normalGrid,v,m,e,f,u,s,j,i,A,n,g,y,p,q,r,o,w,d,h,t,k,l,x;a.afterLayoutListener=null;if(z){if(z===2){a.on('expand','doSyncLockableLayout',a,{single:!0})}return}if(b&&c){d=b.isVisible(!0)&&!b.collapsed;h=c.isVisible(!0);v=b.view.el;m=c.view.el;t=a.scrollBody.dom;e=d?b.body.getRegion(!0):new Ext.util.Region(0,0,0,0);f=h?c.body.getRegion(!0):new Ext.util.Region(0,0,0,0);u=Ext.getScrollbarSize();s=u.width;j=l=u.height;i=h?f.width:0;A=d?(h?f.x-e.x:e.width):0;g=(c.headerCt.tooNarrow||b.headerCt.tooNarrow)?j:0;y=f.height||e.height;p=y;q=a.lockedScrollbar;r=a.normalScrollbar;o=a.scrollbarVisibleCls;x=a.getScrollable();if(Ext.supports.CannotScrollExactHeight){l+=1}if(g){v.setStyle('margin-bottom',-j+'px');m.setStyle('margin-bottom',-j+'px');p-=j;if(d&&b.view.body.dom){a.lockedScrollbarScroller.setSize({x:b.headerCt.getTableWidth()})}if(c.view.body.dom){a.normalScrollbarScroller.setSize({x:c.headerCt.getTableWidth()})}}a.scrollBody.setHeight(p);v.dom.style.height=m.dom.style.height='';w=(a.scrollable.getSize().y+g);c.view.stretchHeight(w);b.view.stretchHeight(w);n=s&&t.scrollHeight>t.clientHeight;if(n&&i){i-=s;m.setStyle('width',i+'px')}q.toggleCls(o,d&&!!g);r.toggleCls(o,!!g);a.normalScrollbarClipper.toggleCls(a.scrollbarClipperCls+'-floated',!!a.normalGrid.floatedFromCollapse);a.normalScrollbar.toggleCls(a.scrollbarCls+'-floated',!!a.normalGrid.floatedFromCollapse);a.lockedScrollbarClipper.toggleCls(a.scrollbarClipperCls+'-floated',!!a.lockedGrid.floatedFromCollapse);a.lockedScrollbar.toggleCls(a.scrollbarCls+'-floated',!!a.lockedGrid.floatedFromCollapse);q.setSize(a.lockedScrollbarClipper.dom.offsetWidth,l);r.setSize(i,l);a.setNormalScrollerX(A);if(d&&h){k=e.union(f)}else if(d){k=e}else {k=f}a.scrollContainer.setBox(k);a.onSyncLockableLayout(n,k.width);if(!Ext.Object.equals(x.position,a.lastScrollPos)){x.scrollTo(a.lastScrollPos)}}},onSyncLockableLayout:Ext.emptyFn,setNormalScrollerX:function(a){this.normalScrollbar.setLocalX(a);this.normalScrollbarClipper.setLocalX(a)},getScrollExtraCls:function(){return ''},initScrollContainer:function(){var a=this,b=a.getScrollExtraCls(),h=a.scrollContainer=a.body.insertFirst({cls:[a.scrollContainerCls,b]}),g=a.scrollBody=h.appendChild({cls:a.scrollBodyCls}),n=a.lockedScrollbar=h.appendChild({cls:[a.scrollbarCls,a.scrollbarCls+'-locked',b]}),o=a.normalScrollbar=h.appendChild({cls:[a.scrollbarCls,b]}),e=a.lockedGrid.view,f=a.normalGrid.view,c=e.getScrollable(),d=f.getScrollable(),m=Ext.scroll.Scroller,i,j,k,l;e.stretchHeight(0);f.stretchHeight(0);a.scrollable.setConfig({element:g,lockedScroller:c,normalScroller:d});k=a.lockedScrollbarClipper=g.appendChild({cls:[a.scrollbarClipperCls,a.scrollbarClipperCls+'-locked',b]});l=a.normalScrollbarClipper=g.appendChild({cls:[a.scrollbarClipperCls,b]});k.appendChild(e.el);l.appendChild(f.el);e.ignoreDomPosition=!0;f.ignoreDomPosition=!0;i=a.lockedScrollbarScroller=new m({element:n,x:'scroll',y:!1,rtl:c.getRtl&&c.getRtl()});j=a.normalScrollbarScroller=new m({element:o,x:'scroll',y:!1,rtl:d.getRtl&&d.getRtl()});a.initScrollers();i.addPartner(c,'x');j.addPartner(d,'x');a.view.onPanelRender(g)},initScrollers:Ext.emptyFn,processColumns:function(b,m){var h=this,d,k,a,c=new Ext.grid.header.Container({"$initParent":h}),e=[],f=[],i={itemId:'lockedHeaderCt',stretchMaxPartner:'^^>>#normalHeaderCt',items:e},j={itemId:'normalHeaderCt',stretchMaxPartner:'^^>>#lockedHeaderCt',items:f},l={locked:i,normal:j},g;if(Ext.isObject(b)){Ext.applyIf(i,b);Ext.applyIf(j,b);g=Ext.apply({},b);delete g.items;Ext.apply(c,g);b=b.items}c.constructing=!0;for(d=0,k=b.length;d<k;++d){a=b[d];if(!a.isComponent){a=c.applyDefaults(a);a.$initParent=c;a=c.lookupComponent(a);delete a.$initParent}a.processed=!0;if(a.locked||a.autoLock){e.push(a)}else {f.push(a)}}h.fireEvent('processcolumns',h,e,f);c.destroy();return l},ensureLockedVisible:function(e,b){var c=b&&b.column,a=this.lockedGrid,d=c?c.getView().ownerCt:a.isVisible()?a:this.normalGrid;d.ensureVisible.apply(d,arguments)},syncRowHeights:function(){if(!this.destroyed){var e=this,b=e.normalGrid.getView(),a=e.lockedGrid.getView(),d=b.syncRowHeightBegin(),c=a.syncRowHeightBegin(),f;b.syncRowHeightMeasure(d);a.syncRowHeightMeasure(c);b.syncRowHeightFinish(d,c);a.syncRowHeightFinish(c,d);f=b.getScrollY();a.setScrollY(f);e.syncRowHeightOnNextLayout=!1}},modifyHeaderCt:function(){var a=this;a.lockedGrid.headerCt.getMenuItems=a.getMenuItems(a.lockedGrid.headerCt.getMenuItems,!0);a.normalGrid.headerCt.getMenuItems=a.getMenuItems(a.normalGrid.headerCt.getMenuItems,!1);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(f,g,c){var d=this.getMenu(),a=d.down('#unlockItem'),b=d.down('#lockItem'),e=a.prev();if(c.lockable===!1){e.hide();a.hide();b.hide()}else {e.show();a.show();b.show();if(!a.initialConfig.disabled){a.setDisabled(c.lockable===!1)}if(!b.initialConfig.disabled){b.setDisabled(!c.isLockable())}}},getMenuItems:function(d,b){var a=this,f=a.unlockText,h=a.lockText,g='x-hmenu-unlock',i='x-hmenu-lock',c=a.onUnlockMenuClick.bind(a),e=a.onLockMenuClick.bind(a);return function(){var a=d.call(this);a.push('-',{itemId:'unlockItem',iconCls:g,text:f,handler:c,disabled:!b});a.push({itemId:'lockItem',iconCls:i,text:h,handler:e,disabled:b});return a}},delaySyncLockedWidth:function(){var a=this,b=a.syncLockedWidthTask||(a.syncLockedWidthTask=new Ext.util.DelayedTask(a.syncLockedWidth,a));if(a.reconfiguring){return}if(!Ext.Component.layoutSuspendCount||a.syncTaskDelay===0){a.syncLockedWidth()}else {b.delay(1)}},syncLockedWidth:function(){var b=this,f=b.rendered,a=b.lockedGrid,c=b.normalGrid,d=a.getVisibleColumnManager().getColumns().length,e=c.getVisibleColumnManager().getColumns().length,g=b.syncLockedWidthTask;if(g){g.cancel()}if(b.reconfiguring){return}Ext.suspendLayouts();if(e){c.show();if(d){if(b.layout.type==='border'){a.region=a.initialConfig.region}if(f&&a.shrinkWrapColumns&&!a.headerCt.forceFit){delete a.flex;a.width=a.headerCt.getTableWidth()+a.gridPanelBorderWidth;a.updateLayout()}a.addCls(b.lockedGridCls);a.show();if(a.split){b.child('splitter').show();b.addCls('x-grid-locked-split')}}else {a.hide();if(f){a.getView().clearViewEl(!0)}if(a.split){b.child('splitter').hide();b.removeCls('x-grid-locked-split')}}}else {c.hide();delete a.width;if(b.layout.type==='border'){a.region='center';c.region='west'}else {a.flex=1}a.removeCls(b.lockedGridCls);a.show()}Ext.resumeLayouts(!0);return {locked:!!d,normal:!!e}},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(a,m,h){var f=this,c=f.normalGrid,b=f.lockedGrid,j=c.view,e=b.view,g=j.getScrollable(),k=e.getScrollable(),n=c.headerCt,d,l,i;a=a||n.getMenu().activeHeader;a.unlockedWidth=a.width;if(a.flex){if(a.lockedWidth){a.width=a.lockedWidth;a.lockedWidth=null}else {a.width=a.lastBox.width}a.flex=null}h=h||b.headerCt;l=a.ownerCt;if(l&&!a.isLockable()){return}Ext.suspendLayouts();if(g){g.suspendPartnerSync();k.suspendPartnerSync()}if(b.hidden){if(!b.componentLayoutCounter){b.height=c.lastBox.height;i=e.bufferedRenderer;if(i){i.rowHeight=j.bufferedRenderer.rowHeight;i.onViewResize(e,0,c.body.lastBox.height)}}b.show()}b.reconfiguring=c.reconfiguring=!0;a.ownerCmp=a.ownerCt;a.locked=!0;if(Ext.isDefined(m)){h.insert(m,a)}else {h.add(a)}b.reconfiguring=c.reconfiguring=!1;a.ownerCmp=null;a.rootHeaderCt=null;a.view=e;d=f.syncLockedWidth();if(d.locked){e.clearViewEl(!0)}if(d.normal){j.clearViewEl(!0)}c.getView().refreshNeeded=d.normal;b.getView().refreshNeeded=d.locked;a.onLock(a);f.fireEvent('lockcolumn',f,a);Ext.resumeLayouts(!0);if(g){g.resumePartnerSync(!0);k.resumePartnerSync()}},unlock:function(a,g,h){var e=this,d=e.normalGrid,c=e.lockedGrid,f=d.view,j=c.view,i=f.all.startIndex,k=c.headerCt,b;if(!Ext.isDefined(g)){g=0}a=a||k.getMenu().activeHeader;a.lockedWidth=a.width;if(a.flex){if(a.unlockedWidth){a.width=a.unlockedWidth;a.unlockedWidth=null}else {a.width=a.lastBox.width}a.flex=null}h=h||d.headerCt;Ext.suspendLayouts();c.reconfiguring=d.reconfiguring=!0;a.ownerCmp=a.ownerCt;if(a.ownerCt){a.ownerCt.remove(a,!1)}a.locked=!1;h.insert(g,a);c.reconfiguring=d.reconfiguring=!1;a.ownerCmp=null;a.rootHeaderCt=null;a.view=f;b=e.syncLockedWidth();if(b.locked){j.clearViewEl(!0)}if(b.normal){f.clearViewEl(!0)}if(b.normal){d.getView().refreshView(i)}if(b.locked){c.getView().refreshView(i)}a.onUnlock(a);e.fireEvent('unlockcolumn',e,a);Ext.resumeLayouts(!0)},reconfigureLockable:function(a,f,h){var d=this,i=d.store,e=d.lockedGrid,c=d.normalGrid,b,g;if(!a&&h){a=Ext.StoreManager.lookup('ext-empty-store')}if(a&&a!==i){a=Ext.data.StoreManager.lookup(a);d.store=a;e.view.blockRefresh=c.view.blockRefresh=!0;e.bindStore(a);b=e.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}c.bindStore(a);b=c.view;b.store=a;if(!b.dataSource.isFeatureStore){b.dataSource=a}if(b.bufferedRenderer){b.bufferedRenderer.bindStore(a)}d.view.store=a;g=d.view.loadMask;if(g&&g.isLoadMask){g.bindStore(a)}d.view.bindStore(c.view.dataSource,!1,'dataSource');e.view.blockRefresh=c.view.blockRefresh=!1}if(f){e.reconfiguring=c.reconfiguring=!0;e.headerCt.removeAll();c.headerCt.removeAll();f=d.processColumns(f,e);e.headerCt.add(f.locked.items);c.headerCt.add(f.normal.items);e.reconfiguring=c.reconfiguring=!1;d.syncLockedWidth()}d.refreshCounter=c.view.refreshCounter},afterReconfigureLockable:function(){this.syncLockedWidth();if(this.refreshCounter===this.normalGrid.getView().refreshCounter){this.view.refreshView()}},constructLockableFeatures:function(){var b=this.features,a,e,c,d,f=0,g;if(b){if(!Ext.isArray(b)){b=[b]}c=[];d=[];g=b.length;for(;f<g;f++){a=b[f];if(!a.isFeature){a=Ext.create('feature.'+a.ftype,a)}switch(a.lockableScope){case 'locked':c.push(a);break;case 'normal':d.push(a);break;default:a.lockableScope='both';c.push(a);d.push(e=a.clone());e.lockingPartner=a;a.lockingPartner=e;}}}return {normalFeatures:d,lockedFeatures:c}},constructLockablePlugins:function(){var b=this.plugins,a,g,f,h,c,d,i=0,k,e,j;if(b){if(!Ext.isArray(b)){b=[b]}h=[];c=[];d=[];k=b.length;for(;i<k;i++){a=b[i];if(a.init){e=a.lockableScope}else {j=a.ptype?Ext.ClassManager.getByAlias(('plugin.'+a.ptype)):Ext.ClassManager.get(a.xclass);e=j.prototype.lockableScope}switch(e){case 'both':c.push(f=a.clonePlugin());d.push(g=a.clonePlugin());f.lockingPartner=g;g.lockingPartner=f;Ext.destroy(a);break;case 'locked':c.push(a);break;case 'normal':d.push(a);break;default:h.push(a);}}}return {topPlugins:h,normalPlugins:d,lockedPlugins:c}},destroyLockable:function(){var a=this,b=a.syncLockedWidthTask;if(b){b.cancel();a.syncLockedWidthTask=null}if(a.lockedGrid&&a.lockedGrid.headerCt){a.lockedGrid.headerCt.showMenuBy=null}if(a.normalGrid&&a.normalGrid.headerCt){a.normalGrid.headerCt.showMenuBy=null}Ext.destroy(a.normalScrollbarClipper,a.lockedScrollbarClipper,a.normalScrollbar,a.lockedScrollbar,a.scrollBody,a.scrollContainer,a.normalScrollbarScroller,a.lockedScrollbarScroller,a.view,a.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.plugin.Abstract,{isBufferedRenderer:!0,lockableScope:'both',numFromEdge:2,trailingBufferZone:10,leadingBufferZone:20,synchronousRender:!0,scrollToLoadBuffer:200,viewSize:100,rowHeight:21,position:0,scrollTop:0,lastScrollDirection:1,bodyTop:0,scrollHeight:0,loadId:0,init:function(c){var a=this,b=c.view,e={refresh:a.onViewRefresh,columnschanged:a.checkVariableRowHeight,scope:a,destroyable:!0},f={scroll:a.onViewScroll,scope:a},d=b.initialConfig;a.scroller=b.lockingPartner?b.ownerGrid.scrollable:b.getScrollable();if(c.isTree||(c.ownerLockable&&c.ownerLockable.isTree)){b.blockRefresh=!1;if(d&&d.loadMask===undefined){b.loadMask=!0}}if(b.positionBody){e.refresh=a.onViewRefresh}a.grid=c;a.view=b;a.isRTL=b.getInherited().rtl;b.bufferedRenderer=a;b.preserveScrollOnRefresh=!0;b.animate=!1;a.bindStore(b.dataSource);if(b.hasOwnProperty('rowHeight')){a.rowHeight=b.rowHeight}a.position=0;a.viewListeners=b.on(e);if(a.scroller){a.scrollListeners=a.scroller.on(f)}},checkVariableRowHeight:function(){var a=this.variableRowHeight;this.variableRowHeight=this.view.hasVariableRowHeight();if(!!this.variableRowHeight!==!!a){delete this.rowHeight}},bindStore:function(b){var a=this,c=a.store;if(c&&c.isFeatureStore){return}if(c){a.unbindStore()}a.storeListeners=b.on({scope:a,groupchange:a.onStoreGroupChange,clear:a.onStoreClear,beforeload:a.onBeforeStoreLoad,load:a.onStoreLoad,destroyable:!0});a.store=b;a.setBodyTop(a.position=a.scrollTop=0);delete a.viewSize;delete a.rowHeight;if(b.isBufferedStore){b.setViewSize(a.viewSize)}},unbindStore:function(){this.storeListeners.destroy();this.storeListeners=this.store=null},onBeforeStoreLoad:function(c){var a=this,b=a.view;if(b&&b.refreshCounter){if(c.isTreeStore||b.preserveScrollOnReload){a.nextRefreshStartIndex=b.all.startIndex}else {if(a.scrollTop!==0){a.setBodyTop(a.bodyTop=a.scrollTop=a.position=a.scrollHeight=a.nextRefreshStartIndex=0);a.scroller.scrollTo(null,0)}}a.lastScrollDirection=a.scrollOffset=null}a.disable()},onStoreLoad:function(){this.isStoreLoading=!0;this.enable()},onStoreClear:function(){var a=this,b=a.view;if(b.rendered&&!a.store.destroyed){if(a.scrollTop!==0){a.bodyTop=a.scrollTop=a.position=a.scrollHeight=0;a.nextRefreshStartIndex=null;a.scroller.scrollTo(null,0)}b.refresh();a.lastScrollDirection=a.scrollOffset=null}},onStoreGroupChange:function(a){this.refreshSize()},onViewRefresh:function(b,c){var a=this,d=b.all,e;a.checkVariableRowHeight();if(!b.componentLayoutCounter&&(b.headerCt.down('{flex}')||a.variableRowHeight)){b.on({boxready:Ext.Function.pass(a.onViewRefresh,[b,c],a),single:!0});a.skipNextRefreshSize=!0;return}a.skipNextRefreshSize=!1;if(a.refreshing){return}a.refreshSize();if(a.scroller){if(a.scrollTop!==a.scroller.getPosition().y){a.onViewScroll()}else {if(!a.hasOwnProperty('bodyTop')){a.bodyTop=d.startIndex*a.rowHeight;a.scroller.scrollTo(null,a.bodyTop)}a.setBodyTop(a.bodyTop);e=b.lastBox&&b.lastBox.height;if(e&&d.getCount()){a.onViewResize(b,null,e);if(c&&(d.getCount()!==c.length)){c.length=0;c.push.apply(c,a.store.getRange(d.startIndex,d.endIndex))}}}}},beforeTableLayout:function(b){var c=this.view.body.dom,a;if(c){a=this.grid.getElementSize(c);b.bodyHeight=a.height;b.bodyWidth=a.width}},afterTableLayout:function(d){var a=this,b=a.view,c;if(d.bodyHeight&&b.body.dom){delete a.rowHeight;a.refreshSize();c=a.grid.getElementHeight(b.body.dom);if(c!==d.bodyHeight){a.onViewResize(b,null,b.el.lastBox.height);c=a.bodyHeight;if(c<d.bodyHeight){if(a.viewSize>=a.store.getCount()){a.setBodyTop(0)}else if(a.bodyTop>a.scrollTop||a.bodyTop+c<a.scrollTop+a.viewClientHeight){a.setBodyTop(a.scrollTop-a.trailingBufferZone*a.rowHeight)}}if(b.all.endIndex===(b.dataSource.getCount())-1){a.stretchView(b,a.scrollHeight=a.bodyTop+c-1)}}}},refreshSize:function(){var a=this,b=a.view,c=a.skipNextRefreshSize||(Ext.Component.pendingLayouts&&Ext.Component.layoutSuspendCount)||!b.body.dom;a.skipNextRefreshSize=!1;if(c){return}a.bodyHeight=a.grid.getElementHeight(b.body.dom);a.scrollHeight=a.getScrollHeight();a.stretchView(b,a.scrollHeight)},onViewResize:function(e,g,b,f,d){var a=this,c;a.refreshSize();if(!d||b!==d){Ext.suspendLayouts();a.viewClientHeight=e.lockingPartner?((a.scroller&&a.scroller.getClientSize().y)||b):e.el.dom.clientHeight;c=Math.ceil(b/Math.min(a.getThemeRowHeight(),a.rowHeight))+a.trailingBufferZone+a.leadingBufferZone;a.viewSize=a.setViewSize(c);Ext.resumeLayouts(!0)}},stretchView:function(c,b){var a=this,d;if(a.scrollTop>b){d=a.nextRefreshStartIndex==null?a.bodyHeight:b-a.bodyHeight;a.position=a.scrollTop=Math.max(d,0);a.scroller.scrollTo(null,a.scrollTop)}if(a.bodyTop>b){c.body.translate(null,a.bodyTop=a.position)}if(c.getScrollable()){a.refreshScroller(c,b)}},refreshScroller:function(b,c){var a=b.getScrollable();if(a){if(a.setElementSize){a.setElementSize()}a.setSize({x:b.headerCt.getTableWidth(),y:b.lockingPartner?null:c});if(b.lockingPartner){this.scroller.setSize({x:0,y:c})}}},setViewSize:function(c,n){var a=this,k=a.store,o=a.view,g,b=o.all,h=b.getCount(),f=k.getCount(),j,m,d=a.view.lockingPartner&&a.view.lockingPartner.bufferedRenderer,e=h-c,i=0,p=Math.max(0,f-1),l=Ext.Number.sign((a.getFirstVisibleRowIndex()-b.startIndex)-(b.endIndex-a.getLastVisibleRowIndex()));if(d&&!n){d.setViewSize(c,!0)}e=h-c;if(e){a.scrollTop=a.scroller?a.scroller.getPosition().y:0;a.viewSize=c;if(k.isBufferedStore){k.setViewSize(c)}if(h){j=Math.max(0,Math.min(b.startIndex,f-c));m=Math.min(j+c-1,p);if(j===b.startIndex&&m===b.endIndex){if(e<0){a.handleViewScroll(l)}}else {if(d){d.disable()}if(e<0){if(f>c&&f>h){k.getRange(j,m,{callback:function(e,f,h){g=o.ownerGrid;if(h>b.endIndex){b.scroll(Ext.Array.slice(e,b.endIndex+1,Infinity),1,0)}if(f<b.startIndex){i=b.first(!0);b.scroll(Ext.Array.slice(e,0,b.startIndex-f),-1,0);a.bodyTop-=i.offsetTop}a.setBodyTop(a.bodyTop);if(d&&!n&&(g.syncRowHeight||g.syncRowHeightOnNextLayout)){d.setViewSize(c,!0);g.syncRowHeights()}}})}else {a.refreshView(0)}}else {if(l===1){i=b.item(b.startIndex+e,!0).offsetTop}b.clip(l,e);a.setBodyTop(a.bodyTop+i)}if(d){d.enable()}}}a.refreshSize()}return c},getViewRange:function(){var b=this,g=b.view,f=g.all,h=f.getCount(),d=g.lockingPartner&&g.lockingPartner.all,a=b.store,c=0,e;if(!b.hasOwnProperty('viewSize')&&b.ownerCt&&b.ownerCt.height){b.viewSize=Math.ceil(b.ownerCt.height/b.rowHeight)}if(!a.data.getCount()){return []}if(!h&&d&&d.getCount()){c=d.startIndex;e=Math.min(d.endIndex,c+b.viewSize-1,a.getCount()-1)}else {if(h){c=f.startIndex}else if(a.isBufferedStore){if(!a.currentPage){a.currentPage=1}c=f.startIndex=(a.currentPage-1)*(a.pageSize||1);a.currentPage=1}e=c+(b.viewSize||a.defaultViewSize)-1}return a.getRange(c,e)},onReplace:function(n,e,j,l){var a=this,m=a.scroller,c=a.view,b=c.all,i,g=b.getCount(),h=e+j.length-1,f=l.length-j.length,d=f*a.rowHeight,k;if(e>=b.startIndex+a.viewSize){a.refreshSize();return}if(g&&h<b.startIndex&&b.getCount()>=a.viewSize){b.moveBlock(f);a.refreshSize();i=b.startIndex;if(f>0){a.doNotMirror=!0;a.handleViewScroll(-1);a.doNotMirror=!1}if(b.startIndex===i){if(b.startIndex){a.setBodyTop(a.bodyTop+=d);c.suspendEvent('scroll');c.scrollBy(0,d);c.resumeEvent('scroll');a.position=a.scrollTop=a.scroller.getPosition().y}}else {c.suspendEvent('scroll');c.scrollBy(0,(i-b.startIndex)*a.rowHeight);c.resumeEvent('scroll')}c.refreshSize(b.getCount()!==g);return}if(g&&e>b.endIndex){a.refreshSize();if(f>0){a.onRangeFetched(null,b.startIndex,Math.min(n.getCount(),b.startIndex+a.viewSize)-1)}c.refreshSize(b.getCount()!==g);return}if(e<b.startIndex&&h<=b.endIndex){k=c.preserveScrollOnRefresh;c.preserveScrollOnRefresh=!1;a.refreshView(b.startIndex-j.length+l.length);c.preserveScrollOnRefresh=k;return}if(e<b.startIndex&&h<=b.endIndex&&d){a.doVerticalScroll(m,a.scrollTop+=d,!0)}a.refreshView(b.startIndex,d)},doVerticalScroll:function(a,c,b){var d=this;if(!a){return}if(b){a.suspendEvent('scroll')}a.scrollTo(null,d.position=c);if(b){a.resumeEvent('scroll')}},scrollTo:function(b,j){var p=arguments,a=this,d=a.view,f=d.lockingPartner&&d.lockingPartner.grid.isVisible()&&d.lockingPartner.bufferedRenderer,g=a.store,k=g.getCount(),i,m,n,o,e,h,c,l;if(j!==undefined&&!(j instanceof Object)){j={select:p[1],callback:p[2],scope:p[3]}}if((e=d.dataSource.groupingFeature)&&(e.collapsible)){if(b.isEntity){c=b}else {c=d.store.getAt(Math.min(Math.max(b,0),d.store.getCount()-1))}h=e.getMetaGroup(c);if(h&&h.isCollapsed){if(!e.isExpandingOrCollapsing&&c!==h.placeholder){e.expand(e.getGroup(c).getGroupKey());k=g.getCount();b=e.indexOf(c)}else {c=h.placeholder;b=e.indexOfPlaceholder(c)}}else {b=e.indexOf(c)}}else {if(b.isEntity){c=b;b=g.indexOf(c);if(b===-1){return}}else {b=Math.min(Math.max(b,0),k-1);c=g.getAt(b)}}if(c&&(n=d.getNode(c))){d.grid.ensureVisible(c,j);a.onViewScroll();return}if(b<d.all.startIndex){l=-1;i=Math.max(Math.min(b-(Math.floor((a.leadingBufferZone+a.trailingBufferZone)/2)),k-a.viewSize+1),0);m=Math.min(i+a.viewSize-1,k-1)}else {l=1;m=Math.min(b+(Math.floor((a.leadingBufferZone+a.trailingBufferZone)/2)),k-1);i=Math.max(m-(a.viewSize-1),0)}o=Math.max(i*a.rowHeight,0);g.getRange(i,m,{callback:function(i,e,h){a.renderRange(e,h,!0);c=g.data.getRange(b,b+1)[0];n=d.getNode(c);d.body.translate(null,a.bodyTop=o);if(l===1&&d.hasVariableRowHeight()){a.refreshSize()}if(f){f.renderRange(e,h,!0);a.syncRowHeights();f.view.body.translate(null,f.bodyTop=o);if(l===1){f.refreshSize()}}if(!n){return}d.grid.ensureVisible(c,j);a.scrollTop=a.position=a.scroller.getPosition().y;if(f){f.position=f.scrollTop=a.scrollTop}}})},onViewScroll:function(h,i,c){var a=this,f=a.view.body.dom,g=a.store,e=(g.getCount()),b,d;a.scrollTop=c==null?(c=a.scroller.getPosition().y):c;if(f){if(!(a.disabled||e<a.viewSize)){b=c-a.position;d=b>0?1:-1;if(Math.abs(b)>=20||(d!==a.lastScrollDirection)){a.lastScrollDirection=d;a.handleViewScroll(a.lastScrollDirection,b)}}}},handleViewScroll:function(j,i){var a=this,c=a.view.all,k=a.store,g=k.getCount(),f=a.viewSize,e=g-1,h=Math.max(0,g-f),b,d;if(j===-1){if(c.startIndex){if(a.topOfViewCloseToEdge()){b=Math.max(0,a.getLastVisibleRowIndex()+a.trailingBufferZone-f);if(b>c.startIndex){b=Math.max(0,c.startIndex+Math.floor(i/a.rowHeight))}}}}else {if(c.endIndex<e){if(a.bottomOfViewCloseToEdge()){b=Math.max(0,Math.min(a.getFirstVisibleRowIndex()-a.trailingBufferZone,h))}}}if(b==null){a.position=a.scrollTop;a.loadId++}else {d=Math.min(b+f-1,e);if(a.variableRowHeight&&d===c.endIndex&&d<e){d++;b++}if(b!==c.startIndex||d!==c.endIndex){a.scroller.trackingScrollTop=a.scrollTop;a.renderRange(b,d);return !0}}},bottomOfViewCloseToEdge:function(){var a=this;if(a.variableRowHeight){return a.bodyTop+a.bodyHeight<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(a,l){var b=this,d=b.viewSize,g=b.view,k=g.all,j=b.store,h=j.getCount(),f=Math.max(0,h-1),e=g.lockingPartner&&g.lockingPartner.all,i=b.bodyTop&&g.preserveScrollOnRefresh||l,c;if(!h){return b.doRefreshView([],0,0)}else if(h<d){a=0;c=f;b.nextRefreshStartIndex=i?null:0}else if(a==null&&!k.getCount()&&e&&e.getCount()){a=e.startIndex;c=Math.min(e.endIndex,a+d-1,f)}else {if(a==null){if(b.nextRefreshStartIndex!=null&&!i){a=b.nextRefreshStartIndex}else {a=k.startIndex}b.nextRefreshStartIndex=null}a=Math.max(0,Math.min(a,f-d+1));c=Math.min(a+d-1,f);if(c-a+1>d){a=c-d+1}}if(a===0&&c===-1){b.doRefreshView([],0,0)}else {j.getRange(a,c,{callback:b.doRefreshView,scope:b})}},doRefreshView:function(j,i,p){var a=this,b=a.view,k=a.scroller,d=b.all,l=d.startIndex,m=d.endIndex,n=d.getCount(),o=i!==d.startIndex&&!a.isStoreLoading,c=-1,f,g,e,h;a.isStoreLoading=!1;b.refreshing=a.refreshing=!0;if(b.refreshCounter){if(b.hasListeners.beforerefresh&&b.fireEvent('beforerefresh',b)===!1){return b.refreshNeeded=b.refreshing=a.refreshing=!1}h=b.saveFocusState();b.clearViewEl(!0);b.refreshCounter++;if(j.length){b.doAdd(j,i);if(o){f=d.item(l,!0);g=d.item(m,!0);if(f){e=-f.offsetTop}else if(g){e=d.last(!0).offsetTop-g.offsetTop}if(e){c=Math.max(a.bodyTop+e,0);a.scrollTop=c?a.scrollTop+e:0}else {c=i*a.rowHeight;a.scrollTop=Math.max(c+a.rowHeight*(c<a.bodyTop?a.leadingBufferZone:a.trailingBufferZone),0)}}}else {a.scrollTop=c=a.position=0;b.addEmptyText()}if(c!==-1){a.setBodyTop(c);a.doVerticalScroll(k,a.scrollTop,!0)}a.refreshSize();b.refreshSize(d.getCount()!==n);b.fireItemMutationEvent('refresh',b,j);h();if(b.preserveScrollOnRefresh&&h!==Ext.emptyFn){a.doVerticalScroll(k,a.scrollTop,!0)}b.headerCt.setSortState()}else {b.refresh()}b.refreshNeeded=b.refreshing=a.refreshing=!1},renderRange:function(b,c,e){var a=this,d=a.view.all,f=a.store;if(d.startIndex===b&&d.endIndex===c){return}if(!(b===d.startIndex&&c===d.endIndex)){if(f.rangeCached(b,c)){a.cancelLoad();if(a.synchronousRender||e){a.onRangeFetched(null,b,c)}else {if(!a.renderTask){a.renderTask=new Ext.util.DelayedTask(a.onRangeFetched,a)}a.renderTask.delay(-1,null,null,[null,b,c])}}else {a.attemptLoad(b,c,a.scrollTop)}}},onRangeFetched:function(g,d,r){var a=this,f=a.view,x=a.scroller,B=f.el,b=f.all,m=0,s,e=!a.doNotMirror&&f.lockingPartner,j=e&&e.bufferedRenderer,z=e&&e.all,p=a.variableRowHeight,q=e&&e.ownerCt.isVisible()&&(f.ownerGrid.syncRowHeight||f.ownerGrid.syncRowHeightOnNextLayout||(j.variableRowHeight!==p)),n,h,u,i,c,w,A,k,t,l,y,v,o;if(f.destroyed){return}if(g){a.scrollTop=x.getPosition().y}else {g=a.store.getRange(d,r);if(!g){return}}n=Ext.fly(Ext.Element.getActiveElement());if(B.contains(n)){h=f}else if(e&&e.el.contains(n)){h=e}if(h){n.suspendFocusEvents()}s=d*a.rowHeight;if(d<b.startIndex&&r>b.endIndex){y=b.startIndex-d;f.clearViewEl(!0);i=f.doAdd(g,d);f.fireItemMutationEvent('itemadd',g,d,i,f);if(j){e.clearViewEl(!0);k=e.doAdd(g,d);e.fireItemMutationEvent('itemadd',g,d,k,e);if(q){a.syncRowHeights(i,k);q=!1}}for(u=0;u<y;u++){m-=a.grid.getElementHeight(i[u])}c=a.bodyTop+m}else {w=a.teleported||d>b.endIndex||r<b.startIndex;if(w){f.clearViewEl(!0);a.teleported=!1}if(!b.getCount()){i=f.doAdd(g,d);f.fireItemMutationEvent('itemadd',g,d,i,f);if(j){e.clearViewEl(!0);k=j.view.doAdd(g,d);e.fireItemMutationEvent('itemadd',g,d,k,e)}c=s;if(w&&p){v=a.scrollTop<a.position?a.leadingBufferZone:a.trailingBufferZone;if(d>v){c=Math.max(a.scrollTop-b.item(b.startIndex+v-1,!0).offsetTop,0)}}}else if(r>b.endIndex){l=Math.max(d-b.startIndex,0);if(p){m=b.item(b.startIndex+l,!0).offsetTop}o=Ext.Array.slice(g,b.endIndex+1-d);i=b.scroll(o,1,l);if(j){k=z.scroll(o,1,l)}if(p){c=a.bodyTop+m}else {c=s}}else {l=Math.max(b.endIndex-r,0);A=b.startIndex;o=Ext.Array.slice(g,0,b.startIndex-d);i=b.scroll(o,-1,l);if(j){k=z.scroll(o,-1,l)}if(q){a.syncRowHeights(i,k);q=!1;c=a.bodyTop-b.item(A,!0).offsetTop;if(!b.startIndex){if(c){a.doVerticalScroll(x,a.scrollTop-=c);c=0}}else if(c<0){m=b.startIndex*a.rowHeight;a.doVerticalScroll(x,a.scrollTop+=m);c=a.bodyTop+m}}else {c=s}}a.position=a.scrollTop}if(h){n.resumeFocusEvents();if(!h.el.contains(n)){t=h.actionableMode?h.actionPosition:h.lastFocused;if(t&&t.column){h.renderingRows=!0;h.onFocusLeave({});h.renderingRows=!1;a.getNewFocusTarget(t).focus()}}}c=Math.max(Math.floor(c),0);if(f.positionBody){a.setBodyTop(c,!0)}if(j){j.scrollTop=a.scrollTop;if(j.bodyTop!==c){j.setBodyTop(c,!0)}if(q){a.syncRowHeights(i,k)}}else if(p){delete a.rowHeight;a.refreshSize()}return i},getNewFocusTarget:function(e){var d=e.view,c=d.grid,b=e.column,f=b.isHidden()||c.hideHeaders,a;if(b.focusable&&!f){return b}a=b.el.findTabbableElements();if(a&&a.length){return a[0]}return c.findFocusTarget()||d.el},syncRowHeights:function(b,e){var d=this,c=0,f=1,i=[],h=[],j=Ext.grid.locking.RowSynchronizer,a,g;if(b&&e){c=b.length;f=e.length}if(c!==f){b=d.view.all.slice();e=d.view.lockingPartner.all.slice();c=f=b.length}for(a=0;a<c;a++){i[a]=g=new j(d.view,b[a]);g.measure()}for(a=0;a<f;a++){h[a]=g=new j(d.view.lockingPartner,e[a]);g.measure()}for(a=0;a<c;a++){i[a].finish(h[a]);h[a].finish(i[a])}d.syncRowHeightsFinish()},syncRowHeightsFinish:function(){var b=this,a=b.view,c=a.lockingPartner.bufferedRenderer,e=a.ownerGrid,d=a.getScrollable();e.syncRowHeightOnNextLayout=!1;if(a.componentLayoutCounter){delete b.rowHeight;b.refreshSize();delete c.rowHeight;c.refreshSize()}if(d){d.restoreState()}},setBodyTop:function(d,f){var a=this,c=a.view,e=c.all,g=a.store,b=c.body;if(!b.dom){return}a.translateBody(b,d);if(a.variableRowHeight){a.bodyHeight=a.grid.getElementHeight(b.dom);if(e.endIndex===g.getCount()-1){a.scrollHeight=d+a.bodyHeight-1}else {a.scrollHeight=a.getScrollHeight()}if(!f){a.stretchView(c,a.scrollHeight)}}else {a.bodyHeight=e.getCount()*a.rowHeight}},translateBody:function(b,a){b.translate(null,this.bodyTop=a)},getFirstVisibleRowIndex:function(b,e,d,f){var a=this,l=a.view,g=l.all,j=g.elements,k=a.viewClientHeight,c,h,i=a.bodyTop;if(g.getCount()&&a.variableRowHeight){if(!arguments.length){b=g.startIndex;e=g.endIndex;d=a.scrollTop;f=d+k;if(i>f||i+a.bodyHeight<d){a.teleported=!0;return Math.floor(a.scrollTop/a.rowHeight)}c=b+Math.min(a.numFromEdge+((a.lastScrollDirection===-1)?a.leadingBufferZone:a.trailingBufferZone),Math.floor((e-b)/2))}else {if(b===e){return e}c=b+Math.floor((e-b)/2)}h=i+j[c].offsetTop;if(h+a.grid.getElementHeight(j[c])<=d){return a.getFirstVisibleRowIndex(c+1,e,d,f)}if(h<=d){return c}else if(c!==b){return a.getFirstVisibleRowIndex(b,c-1,d,f)}}return Math.floor(a.scrollTop/a.rowHeight)},getLastVisibleRowIndex:function(e,b,f,d){var a=this,m=a.view,g=m.all,l=g.elements,h=a.viewClientHeight,c,i,k,j=a.bodyTop;if(g.getCount()&&a.variableRowHeight){if(!arguments.length){e=g.startIndex;b=g.endIndex;f=a.scrollTop;d=f+h;if(j>d||j+a.bodyHeight<f){a.teleported=!0;return Math.floor(a.scrollTop/a.rowHeight)+Math.ceil(h/a.rowHeight)}c=b-Math.min(a.numFromEdge+((a.lastScrollDirection===1)?a.leadingBufferZone:a.trailingBufferZone),Math.floor((b-e)/2))}else {if(e===b){return b}c=e+Math.floor((b-e)/2)}i=j+l[c].offsetTop;if(i>d){return a.getLastVisibleRowIndex(e,c-1,f,d)}k=i+a.grid.getElementHeight(l[c]);if(k>=d){return c}else if(c!==b){return a.getLastVisibleRowIndex(c+1,b,f,d)}}return Math.min(a.getFirstVisibleRowIndex()+Math.ceil(h/a.rowHeight),g.endIndex)},getScrollHeight:function(){var a=this,j=a.view,d=j.all,i=a.store,c=i.getCount(),g=d.getCount(),h,f,e,b;if(!c){return 0}if(!a.hasOwnProperty('rowHeight')){if(g){if(a.variableRowHeight){a.rowHeight=Math.floor(a.bodyHeight/g)}else {h=d.first();f=h.getHeight();if(Ext.isIE8){e=h.getBorderWidth('b');if(e>0){f-=e}}a.rowHeight=f}}else {delete a.rowHeight}}if(a.variableRowHeight){if(d.endIndex===c-1){b=a.bodyTop+a.bodyHeight-1}else {b=Math.floor((c-g)*a.rowHeight)+a.bodyHeight;b+=a.bodyTop-d.startIndex*a.rowHeight}}else {b=Math.floor(c*a.rowHeight)}return (a.scrollHeight=b)},getThemeRowHeight:function(){var b=this,a;if(!b.themeRowHeight){a=Ext.getBody().createChild({cls:'x-theme-row-height-el'});b.self.prototype.themeRowHeight=a.dom.offsetHeight;a.destroy()}return b.themeRowHeight},attemptLoad:function(c,d,b){var a=this;if(a.scrollToLoadBuffer){if(!a.loadTask){a.loadTask=new Ext.util.DelayedTask()}a.loadTask.delay(a.scrollToLoadBuffer,a.doAttemptLoad,a,[c,d,b])}else {a.doAttemptLoad(c,d,b)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(c,d,b){var a=this;if(!a.destroyed){a.store.getRange(c,d,{loadId:++a.loadId,callback:function(f,g,h,e){if(e.loadId===a.loadId&&a.scrollTop===b){a.onRangeFetched(f,g,h)}},fireEvent:!1})}},destroy:function(){var a=this;a.cancelLoad();if(a.store){a.unbindStore()}Ext.destroy(a.viewListeners,a.stretcher,a.gridListeners,a.scrollListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,["plugin.bufferedrenderer"],0,[Ext.grid.plugin,'BufferedRenderer'],0));(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(b){var a=this;Ext.plugin.Abstract.prototype.constructor.call(this,b);a.mixins.observable.constructor.call(a);a.on("edit",function(c,d){a.fireEvent("afteredit",c,d)})},init:function(b){var a=this,c=b.ownerLockable;a.grid=b;a.view=b.view;a.initEvents();if(b.rendered){a.setup()}else {a.mon(b,{beforereconfigure:a.onBeforeReconfigure,reconfigure:a.onReconfigure,scope:a,beforerender:{fn:a.onBeforeRender,single:!0,scope:a}})}b.editorEventRelayers=b.relayEvents(a,a.relayedEvents);if(c){c.editorEventRelayers=c.relayEvents(a,a.relayedEvents)}b.isEditable=!0;b.editingPlugin=b.view.editingPlugin=a},onBeforeReconfigure:function(){this.reconfiguring=!0},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){if(a.ownerLockable){Ext.destroy(a.ownerLockable.editorEventRelayers);a.ownerLockable.editorEventRelayers=null}Ext.destroy(a.editorEventRelayers);a.editorEventRelayers=null;a.editingPlugin=a.view.editingPlugin=null}Ext.plugin.Abstract.prototype.destroy.call(this)},getEditStyle:function(){return this.editStyle},initFieldAccessors:function(a){if(a.isGroupHeader){a=a.getGridColumns()}else if(!Ext.isArray(a)){a=[a]}var d=this,c,h=a.length,e=function(c,b){return d.getColumnField(this,b)},f=function(){return d.hasColumnField(this)},g=function(b){d.setColumnField(this,b)},b;for(c=0;c<h;c++){b=a[c];if(!b.getEditor){b.getEditor=e}if(!b.hasEditor){b.hasEditor=f}if(!b.setEditor){b.setEditor=g}}},removeFieldAccessors:function(a){if(a.isGroupHeader){a=a.getGridColumns()}else if(!Ext.isArray(a)){a=[a]}var c,d=a.length,b;for(c=0;c<d;c++){b=a[c];b.getEditor=b.hasEditor=b.setEditor=b.field=b.editor=null}},getColumnField:function(b,d){var c=this,a=b.field;if(!(a&&a.isFormField)){a=b.field=c.createColumnField(b,d)}if(a&&a.ui==='default'&&!a.hasOwnProperty('ui')){a.ui=c.defaultFieldUI}return a},hasColumnField:function(a){return !!(a.field&&a.field.isComponent)},setColumnField:function(a,b){a.field=b;a.field=this.createColumnField(a)},createColumnField:function(b,d){var a=b.field,c;if(!a&&b.editor){a=b.editor=Ext.clone(b.editor);if(a.field){a=a.field;a.editorCfg=b.editor;delete a.editorCfg.field}b.editor=null}if(!a&&d){a=d}if(a){c=b.dataIndex;if(a.isComponent){a.column=b}else {if(Ext.isString(a)){a={name:c,xtype:a,column:b}}else {a=Ext.apply({name:c,column:b},a)}a=Ext.ComponentManager.create(a,this.defaultFieldXType)}a.dataIndex=c;a.isEditorComponent=!0;b.field=a}return a},initEvents:function(){var a=this;a.initEditTriggers();a.initCancelTriggers()},initCancelTriggers:Ext.emptyFn,initEditTriggers:function(){var a=this,b=a.view;if(a.triggerEvent==='cellfocus'){a.mon(b,'cellfocus',a.onCellFocus,a)}else if(a.triggerEvent==='rowfocus'){a.mon(b,'rowfocus',a.onRowFocus,a)}else {if(b.getSelectionModel().isCellModel){b.onCellFocus=a.beforeViewCellFocus.bind(a)}a.mon(b,a.triggerEvent||('cell'+(a.clicksToEdit===1?'click':'dblclick')),a.onCellClick,a)}a.initAddRemoveHeaderEvents();a.view.getNavigationModel().addKeyBindings({esc:a.onEscKey,scope:a})},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(b,a,c){this.startEdit(a,0)},onCellFocus:function(b,c,a){this.startEdit(a.row,a.column)},onCellClick:function(b,j,g,i,l,k,c){var a=b.ownerGrid,d=b.expanderSelector,f=b.ownerCt.getColumnManager().getHeaderAtIndex(g),h=f.getEditor(i),e;if(this.shouldStartEdit(h)&&(!d||!c.getTarget(d))){a.setActionableMode(!0,c.position)}else if(a.actionableMode&&b.owns(c.target)&&(e=Ext.Component.from(c,j))&&e.focusable){return}else if(a.actionableMode){a.setActionableMode(!1)}},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(b,a){this.initFieldAccessors(a)},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},getEditingContext:function(b,a,l){var e=this,g=e.grid,k=g.visibleColumnManager,i=e.grid.lockable?e.grid:e.view,d,h,f,j,c;if(!i.componentLayoutCounter){i.on({boxready:Ext.Function.bind(e.startEdit,e,[b,a]),single:!0});return}if(e.disabled||e.grid.collapsed||!e.grid.view.isVisible(!0)){return}if(Ext.isNumber(a)){a=k.getHeaderAtIndex(Math.min(a,k.getColumns().length))}if(!a){return}if(a.hidden){a=a.next(':not([hidden])')||a.prev(':not([hidden])')}d=a.getView();g=d.ownerCt;if(Ext.isNumber(b)){f=Math.min(b,d.dataSource.getCount()-1);b=d.dataSource.getAt(f)}else {f=d.dataSource.indexOf(b)}g.ensureVisible(b,{column:l?a:null});h=d.getRow(b);if(!h){return}j=d.getVisibleColumnManager().indexOf(a);if(!b){return}c=new Ext.grid.CellContext(d).setAll(d,f,j,b,a);c.grid=g;c.store=d.dataSource;c.field=a.dataIndex;c.value=c.originalValue=b.get(a.dataIndex);c.row=h;c.node=d.getNode(b);c.cell=c.getCell(!0);return c},cancelEdit:function(){var a=this;a.editing=!1;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=!1},validateEdit:function(a){var b=this;return b.fireEvent('validateedit',b,a)!==!1&&!a.cancel}},1,0,0,0,["editing.editing"],[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.grid.plugin,'Editing'],0));(Ext.cmd.derive('Ext.grid.plugin.CellEditing',Ext.grid.plugin.Editing,{init:function(b){var a=this;b.registerActionable(a);Ext.grid.plugin.Editing.prototype.init.apply(this,arguments);a.editors=new Ext.util.MixedCollection(!1,function(a){return a.editorId})},beforeGridHeaderDestroy:function(g){var d=this,e=d.grid.getColumnManager().getColumns(),f=e.length,c,a,b;for(c=0;c<f;c++){a=e[c];b=d.editors.getByKey(a.getItemId());if(!b){b=a.editor||a.field}Ext.destroy(b);d.removeFieldAccessors(a)}},onReconfigure:function(c,b,a){if(a){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.call(this)},initCancelTriggers:function(){var a=this,b=a.grid;a.mon(b,{columnresize:a.cancelEdit,columnmove:a.cancelEdit,scope:a})},isCellEditable:function(c,a){var d=this,b=d.getEditingContext(c,a);if(b.view.isVisible(!0)&&b){a=b.column;c=b.record;if(a&&d.getEditor(c,a)){return !0}}},activateCell:function(f,n,o){var c=this,k=f.record,j=f.column,h=c.getActiveEditor(),g=c.view,a,e,d,b,l,i,m;a=c.getEditingContext(k,j);if(!a||!j.getEditor(k)){return}if(h&&h.editing){g.actionPosition=null;e=a.generation;if(h.completeEdit()===!1){return}if(a.generation===e){a.refresh()}}if(!n){e=a.generation;if(g.actionableMode){g.skipSaveFocusState=!0}m=c.beforeEdit(a)===!1||c.fireEvent('beforeedit',c,a)===!1||a.cancel;g.skipSaveFocusState=!1;if(m){return}if(a.generation===e){a.refresh()}}b=c.getEditor(k,j);if(a.cell!==a.getCell(!0)){a=c.getEditingContext(a.rowIdx,a.colIdx);f.setPosition(a)}if(b){d=Ext.get(a.cell);if(!b.rendered){b.hidden=!0;b.render(d)}else {l=b.el.dom.parentNode;if(l!==d.dom){try{l.removeChild(b.el.dom)}catch(p){}if(b.container&&b.container.dom!==d.dom){b.container.collect()}b.container=d;d.dom.appendChild(b.el.dom,d.dom.firstChild)}}i=a.record.get(a.column.dataIndex);if(i!==a.originalValue){a.value=a.originalValue=i}c.setEditingContext(a);b.startEdit(d,a.value,o||!1);if(b.editing){c.setActiveEditor(b);c.setActiveRecord(a.record);c.setActiveColumn(a.column);c.editing=!0;c.scroll=f.view.el.getScroll()}return b.editing}},activateRow:Ext.emptyFn,deactivate:function(){var c=this,e=c.context,d=c.editors.items,f=d.length,b,a;for(a=0;a<f;a++){b=d[a];if(e.view.renderingRows){if(b.editing){c.cancelEdit()}b.cacheElement()}}},suspend:function(){var b=this,a=b.activeEditor;if(a&&a.editing){b.suspendedEditor=a;b.suspendEvents();a.suspendEvents();a.cancelEdit(!0);a.resumeEvents();b.resumeEvents()}},resume:function(d){var a=this,b=a.activeEditor=a.suspendedEditor,c;if(b){a.suspendEvents();b.suspendEvents();c=a.activateCell(d,!0,!0);b.resumeEvents();a.resumeEvents()}return c},startEdit:function(b,a){this.startEditByPosition(new Ext.grid.CellContext(this.view).setPosition(b,a))},completeEdit:function(b){var a=this.getActiveEditor();if(a){a.completeEdit(b)}},setEditingContext:function(a){this.context=a},setActiveEditor:function(a){this.activeEditor=a},getActiveEditor:function(){return this.activeEditor},setActiveColumn:function(a){this.activeColumn=a},getActiveColumn:function(){return this.activeColumn},setActiveRecord:function(a){this.activeRecord=a},getActiveRecord:function(){return this.activeRecord},getEditor:function(b,a){return this.getCachedEditor(a.getItemId(),b,a)},getCachedEditor:function(d,f,b){var c=this,e=c.editors,a=e.getByKey(d);if(!a){a=b.getEditor(f);if(!a){return !1}if(!(a instanceof Ext.grid.CellEditor)){a=Ext.widget(Ext.apply({xtype:'celleditor',floating:!0,editorId:d,field:a},a.editorCfg))}a.field.excludeForm=!0;if(a.column!==b){a.column=b;b.on('removed',c.onColumnRemoved,c)}e.add(a)}a.ownerCmp=c.grid.ownerGrid;if(b.isTreeColumn){a.isForTree=b.isTreeColumn;a.addCls('x-tree-cell-editor')}a.setGrid(c.grid);a.editingPlugin=c;a.collectContainerElement=!0;return a},onColumnRemoved:function(c){var a=this,b=a.context;if(b&&b.column===c){a.cancelEdit()}c.un('removed',a.onColumnRemoved,a)},setColumnField:function(a,c){var b=this.editors.getByKey(a.getItemId());Ext.destroy(b,a.field);this.editors.removeAtKey(a.getItemId());Ext.grid.plugin.Editing.prototype.setColumnField.apply(this,arguments)},getCell:function(c,b,a){return this.grid.getView().getCell(c,b,a)},onEditComplete:function(g,d,f){var b=this,a=g.context,e,c;e=a.view;c=a.record;a.value=d;if(!c.isEqual(d,f)){c.set(a.column.dataIndex,d);a.rowIdx=e.indexOf(c)}if(b.context===a){b.setActiveEditor(null);b.setActiveColumn(null);b.setActiveRecord(null);b.editing=!1}b.fireEvent('edit',b,a)},cancelEdit:function(a){var b=this,c=b.context;if(a&&a.isCellEditor){b.context.value=('editedValue' in a)?a.editedValue:a.getValue();Ext.grid.plugin.Editing.prototype.cancelEdit.apply(this,arguments);if(a.context===c){b.setActiveEditor(null);b.setActiveColumn(null);b.setActiveRecord(null)}else {b.editing=!0}}else {a=b.getActiveEditor();if(a&&a.field){a.cancelEdit()}}},startEditByPosition:function(b){var a=this,e=a.grid.getColumnManager(),d,c=a.getActiveEditor();if(!b.isCellContext){b=new Ext.grid.CellContext(a.view).setPosition(b.row,a.grid.getColumnManager().getColumns()[b.column])}d=e.getHeaderIndex(b.column);b.column=e.getVisibleHeaderClosestToIndex(d);if(a.grid.actionableMode){if(a.editing&&b.isEqual(a.context)){return}if(c){c.completeEdit()}}if(a.grid.actionableMode){if(a.activateCell(b)){a.activateRow(a.view.all.item(b.rowIdx,!0));c=a.getEditor(b.record,b.column);if(c){c.field.focus()}}}else {return a.grid.setActionableMode(!0,b)}}},0,0,0,0,["plugin.cellediting"],0,[Ext.grid.plugin,'CellEditing'],0));(Ext.cmd.derive('Ext.grid.plugin.Clipboard',Ext.plugin.AbstractClipboard,{formats:{cell:{get:'getCells'},html:{get:'getCellData'},raw:{get:'getCellData',put:'putCellData'}},gridListeners:{render:'onCmpReady'},getCellData:function(i,n){var p=this.getCmp(),h=p.getSelectionModel().getSelected(),k=[],o=i==='raw',m=i==='text',d,j,b,c,g,e,a,l,f;if(h){h.eachCell(function(h){e=h.column,f=h.column.getView();a=h.record;if(e.ignoreExport){return}if(g!==a){g=a;k.push(l=[])}c=e.dataIndex;if(o){b=a.data[c]}else {d=f.all.item(h.rowIdx);if(!d){d=Ext.fly(f.createRowElement(a,h.rowIdx))}j=d.dom.querySelector(e.getCellInnerSelector());b=j.innerHTML;if(m){b=Ext.util.Format.stripTags(b)}}l.push(b);if(n&&c){a.set(c,null)}})}return Ext.util.TSV.encode(k,undefined,null)},getCells:function(i,g){var h=this.getCmp(),d=h.getSelectionModel().getSelected(),e=[],b,c,a,f;if(d){d.eachCell(function(d){a=d.record;if(c!==a){c=a;e.push(f={model:a.self,fields:[]})}b=d.column.dataIndex;f.fields.push({name:b,value:a.data[b]});if(g&&b){a.set(b,null)}})}return e},getTextData:function(a,b){return this.getCellData(a,b)},putCellData:function(r,q){var h=Ext.util.TSV.decode(r,undefined,null),i,k=h.length,n=k?h[0].length:0,d,c,b=this.getCmp().getView(),m=b.dataSource.getCount()-1,l=b.getVisibleColumnManager().getColumns().length-1,p=b.getSelectionModel(),g=p.getSelected(),o=b.getNavigationModel(),a=g.startCell||o.getPosition(),e,j,f={};if(!a&&g){g.eachCell(function(b){a=b;return !1})}if(a){a=new Ext.grid.CellContext(b).setPosition(a.record,a.column)}else {a=new Ext.grid.CellContext(b).setPosition(0,0)}j=a.colIdx;for(d=0;d<k;d++){i=h[d];for(c=0;c<n;c++){e=a.column.dataIndex;if(e){switch(q){case 'raw':f[e]=i[c];break;case 'text':f[e]=i[c];break;case 'html':break;}}if(a.colIdx===l){break}a.setColumn(a.colIdx+1)}a.record.set(f);if(a.rowIdx===m){break}a.setPosition(a.rowIdx+1,j)}},putTextData:function(b,a){this.putCellData(b,a)},getTarget:function(a){return a.body},privates:{validateAction:function(b){var a=this.getCmp().getView();if(a.actionableMode){return !1}}}},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:!0,enableDrag:!0,containerScroll:!1,init:function(a){Ext.applyIf(a,{copy:this.copy,allowCopy:this.allowCopy});a.on('render',this.onViewRender,this,{single:!0})},destroy:function(){var a=this;a.dragZone=a.dropZone=Ext.destroy(a.dragZone,a.dropZone);Ext.plugin.Abstract.prototype.destroy.call(this)},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(b){var a=this,d=b.ownerCt.ownerGrid||b.ownerCt,c=a.dragZone||{};d.relayEvents(b,['beforedrop','drop']);if(a.enableDrag){if(a.containerScroll){c.scrollEl=b.getEl();c.containerScroll=!0}a.dragZone=new Ext.view.DragZone(Ext.apply({view:b,ddGroup:a.dragGroup||a.ddGroup,dragText:a.dragText},c))}if(a.enableDrop){a.dropZone=new Ext.grid.ViewDropZone(Ext.apply({view:b,ddGroup:a.dropGroup||a.ddGroup},a.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:!0,autoUpdate:!1,errorSummary:!0,formAriaLabel:'Editing row {0}',formAriaLabelRowBase:2,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;a.autoUpdate=!!a.autoUpdate;if(a.autoUpdate){a.autoCancel=!1}},init:function(a){Ext.grid.plugin.Editing.prototype.init.call(this,a);if(a.lockedGrid){a.lockedGrid.registerActionable(this);a.normalGrid.registerActionable(this)}else {a.registerActionable(this)}},destroy:function(){Ext.destroy(this.editor);Ext.grid.plugin.Editing.prototype.destroy.call(this)},onBeforeReconfigure:function(){Ext.grid.plugin.Editing.prototype.onBeforeReconfigure.apply(this,arguments);this.cancelEdit()},onReconfigure:function(d,c,b){var a=this.editor;Ext.grid.plugin.Editing.prototype.onReconfigure.apply(this,arguments);if(b&&a&&a.rendered){a.needsSyncFieldWidths=!0}},shouldStartEdit:function(a){return !0},startEdit:function(e,c){var a=this,d=a.getEditor(),b;if(Ext.isEmpty(c)){c=a.grid.getTopLevelVisibleColumnManager().getHeaderAtIndex(0)}if(d.beforeEdit()!==!1){b=a.getEditingContext(e,c,!0);if(b&&a.beforeEdit(b)!==!1&&a.fireEvent('beforeedit',a,b)!==!1&&!b.cancel){a.context=b;if(a.lockingPartner){a.lockingPartner.cancelEdit()}d.startEdit(b.record,b.column,b);a.editing=!0;return !0}}return !1},activateCell:function(a){if(!a.getCell(!0).querySelector('[tabIndex="-1"]')){this.startEdit(a.record,a.column);return !0}},suspend:Ext.emptyFn,resume:Ext.emptyFn,onEnterKey:function(c){var b=this,a;if(!b.grid.ownerGrid.actionableMode&&b.editing){a=Ext.getCmp(c.getTarget().getAttribute('componentId'));if(!(a&&a.isPickerField&&a.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 !0},completeEdit:function(){var a=this,b=a.context;if(a.editing&&a.validateEdit(b)){a.editing=!1;a.fireEvent('edit',a,b)}},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 h=this.editor,f=this.context,i=f.record,e={},d={},g=h.query('>[isFormField]'),j=g.length,b,a,c;for(b=0;b<j;b++){c=g[b];a=c.dataIndex;e[a]=c.getValue();d[a]=i.get(a)}Ext.apply(f,{newValues:e,originalValues:d})},initEditor:function(){return new Ext.grid.RowEditor(this.initEditorConfig())},initEditorConfig:function(){var a=this,e=a.grid,i=a.view,g=e.headerCt,d=['saveBtnText','cancelBtnText','errorsText','dirtyText'],c,h=d.length,f={autoCancel:a.autoCancel,autoUpdate:a.autoUpdate,removeUnmodified:a.removeUnmodified,errorSummary:a.errorSummary,formAriaLabel:a.formAriaLabel,formAriaLabelRowBase:a.formAriaLabelRowBase+(e.hideHeaders?-1:0),fields:g.getGridColumns(),hidden:!0,view:i,editingPlugin:a},b;for(c=0;c<h;c++){b=d[c];if(Ext.isDefined(a[b])){f[b]=a[b]}}return f},initEditTriggers:function(){var a=this,b=a.view,c=a.clicksToMoveEditor===1?'click':'dblclick';Ext.grid.plugin.Editing.prototype.initEditTriggers.apply(this,arguments);if(a.clicksToMoveEditor!==a.clicksToEdit){a.mon(b,'cell'+c,a.moveEditorByClick,a)}b.on({render:function(){a.mon(a.grid.headerCt,{scope:a,columnresize:a.onColumnResize,columnhide:a.onColumnHide,columnshow:a.onColumnShow})},single:!0})},moveEditorByClick:function(){var a=this;if(a.editing){a.superclass.onCellClick.apply(a,arguments)}},onColumnAdd:function(e,a,d){if(a.isHeader){var c=this,b;c.initFieldAccessors(a);b=c.editor;if(b){b.onColumnAdd(a,d)}}},beforeGridHeaderDestroy:function(f){var c=this.grid.getColumnManager().getColumns(),e=c.length,b,a,d;for(b=0;b<e;b++){a=c[b];if(a.hasEditor){if(a.hasEditor()&&(d=a.getEditor())){d.destroy()}this.removeFieldAccessors(a)}}},onColumnResize:function(e,a,c){if(a.isHeader){var d=this,b=d.getEditor();if(b){b.onColumnResize(a,c)}}},onColumnHide:function(d,b){var c=this,a=c.getEditor();if(a){a.onColumnHide(b)}},onColumnShow:function(d,b){var c=this,a=c.getEditor();if(a){a.onColumnShow(b)}},onColumnMove:function(f,a,d,e){var c=this,b=c.getEditor();c.initFieldAccessors(a);if(b){b.onColumnMove(a,d,e)}},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(b,e){var c=this.editor,d,a;if(c){d=c.getDefaultFieldCfg()}a=Ext.grid.plugin.Editing.prototype.createColumnField.call(this,b,e||d);if(a){a.skipLabelForAttribute=!0;a.ariaAttributes=a.ariaAttributes||{};if(this.grid.hideHeaders){a.ariaAttributes['aria-label']=b.text}else {a.ariaAttributes['aria-labelledby']=b.id}}return a}},1,0,0,0,["plugin.rowediting"],0,[Ext.grid.plugin,'RowEditing'],0));(Ext.cmd.derive('Ext.grid.plugin.RowExpander',Ext.plugin.Abstract,{lockableScope:'top',columnWidth:24,rowBodyTpl:null,lockedTpl:null,expandOnDblClick:!0,selectRowOnExpand:!1,scrollIntoViewOnExpand:!0,headerWidth:24,bodyBefore:!1,rowBodyTrSelector:'.x-grid-rowbody-tr',rowBodyHiddenCls:'x-grid-row-body-hidden',rowCollapsedCls:'x-grid-row-collapsed',addCollapsedCls:{fn:function(d,a,c){var b=this.rowExpander;if(!b.recordsExpanded[a.record.internalId]){a.itemClasses.push(b.rowCollapsedCls)}this.nextTpl.applyOut(a,d,c)},syncRowHeights:function(a,b){this.rowExpander.syncRowHeights(a,b)},priority:20000},setCmp:function(a){var b=this,c;Ext.plugin.Abstract.prototype.setCmp.apply(this,arguments);b.recordsExpanded={};b.rowBodyTpl=Ext.XTemplate.getTpl(b,'rowBodyTpl');c=b.getFeatureConfig(a);if(a.features){a.features=Ext.Array.push(c,a.features)}else {a.features=c}},getFeatureConfig:function(d){var a=this,b=[],c={ftype:'rowbody',rowExpander:a,rowIdCls:a.rowIdCls,bodyBefore:a.bodyBefore,recordsExpanded:a.recordsExpanded,rowBodyHiddenCls:a.rowBodyHiddenCls,rowCollapsedCls:a.rowCollapsedCls,setupRowData:a.getRowBodyFeatureData,setup:a.setup};b.push(Ext.apply({lockableScope:'normal',getRowBodyContents:a.getRowBodyContentsFn(a.rowBodyTpl)},c));if(d.enableLocking){b.push(Ext.apply({lockableScope:'locked',getRowBodyContents:a.lockedTpl?a.getRowBodyContentsFn(a.lockedTpl):function(){return ''}},c))}return b},getRowBodyContentsFn:function(a){var b=this;return function(c){a.owner=b;return a.applyTemplate(c.record.getData())}},init:function(c){var a=this,b=c.lockable&&c,d,e,f;if(b){a.lockedGrid=b.lockedGrid;a.normalGrid=b.normalGrid;e=a.lockedView=a.lockedGrid.getView();f=a.normalView=a.normalGrid.getView()}Ext.plugin.Abstract.prototype.init.apply(this,arguments);a.grid=c;d=a.view=c.getView();a.bindView(d);if(b){a.addExpander(a.lockedGrid.headerCt.items.getCount()?a.lockedGrid:a.normalGrid);e.addRowTpl(a.addCollapsedCls).rowExpander=f.addRowTpl(a.addCollapsedCls).rowExpander=e.rowExpander=f.rowExpander=a;b.mon(b,{processcolumns:a.onLockableProcessColumns,lockcolumn:a.onColumnLock,unlockcolumn:a.onColumnUnlock,scope:a})}else {d.addRowTpl(a.addCollapsedCls).rowExpander=d.rowExpander=a;a.addExpander(c);c.on('beforereconfigure',a.beforeReconfigure,a)}},onItemAdd:function(e,h,f){var c=this,d=c.grid.lockable,g=f.length,b,a;for(a=0;a<g;a++){b=e[a];if(!b.isNonData&&c.recordsExpanded[b.internalId]){d&&(c.grid.syncRowHeightOnNextLayout=!0);return}}},beforeReconfigure:function(f,e,b,d,c){var a=this;if(b){a.expanderColumn=new Ext.grid.column.Column(a.getHeaderConfig());b.unshift(a.expanderColumn)}},onLockableProcessColumns:function(a,b,c){this.addExpander(b.length?a.lockedGrid:a.normalGrid)},addExpander:function(b){var d=this,c=b.getSelectionModel(),a=c.injectCheckbox;d.expanderColumn=b.headerCt.insert(0,d.getHeaderConfig());if(a===0||a==='first'){a=1}c.injectCheckbox=a},getRowBodyFeatureData:function(c,d,b){var a=this;a.self.prototype.setupRowData.apply(a,arguments);b.rowBody=a.getRowBodyContents(b);b.rowBodyCls=a.recordsExpanded[c.internalId]?'':a.rowBodyHiddenCls},bindView:function(c){var a=this,b={itemkeydown:a.onKeyDown,scope:a};if(a.expandOnDblClick){b.itemdblclick=a.onDblClick}if(a.grid.lockable){b.itemadd=a.onItemAdd}c.on(b)},onKeyDown:function(h,f,c,g,e){var d=this,a=e.getKey(),i=h.getNavigationModel().getPosition(),b;if(i){c=Ext.fly(c);b=c.hasCls(d.rowCollapsedCls);if(((a===107||(a===187&&e.shiftKey))&&b)||((a===109||a===189)&&!b)){d.toggleRow(g,f)}}},onDblClick:function(c,a,d,b,e){this.toggleRow(b,a)},toggleRow:function(i,l){var a=this,b=a.normalView||a.view,j=b,k=b.getNode(i),h=Ext.fly(k),e,f=h.down(a.rowBodyTrSelector,!0),d=h.hasCls(a.rowCollapsedCls),c=d?'removeCls':'addCls',g=a.grid.lockable&&a.grid;h[c](a.rowCollapsedCls);Ext.fly(f)[c](a.rowBodyHiddenCls);a.recordsExpanded[l.internalId]=d;Ext.suspendLayouts();if(g){j=g.getView();if(a.lockedGrid.isVisible()){b=a.lockedView;b.lockingPartner.updateLayout();e=Ext.fly(b.getNode(i));if(e){e[c](a.rowCollapsedCls);f=e.down(a.rowBodyTrSelector,!0);Ext.fly(f)[c](a.rowBodyHiddenCls)}}g.syncRowHeightOnNextLayout=!0}j.fireEvent(d?'expandbody':'collapsebody',k,l,f);b.refreshSize(!0);Ext.resumeLayouts(!0);if(a.scrollIntoViewOnExpand&&d){a.grid.ensureVisible(i)}},syncRowHeights:function(f,g){var e=this,d=Ext.fly(f).down(e.rowBodyTrSelector),a=Ext.fly(g).down(e.rowBodyTrSelector),b,c;if(a.isVisible()){if((b=d.getHeight())!==(c=a.getHeight())){if(b>c){a.setHeight(b)}else {d.setHeight(c)}}}else {d.dom.style.height=a.dom.style.height=''}},onColumnUnlock:function(a,d){var b=this,c;a=a||b.grid;c=a.lockedGrid.visibleColumnManager.getColumns();if(c.length===1){a.normalGrid.removeCls('x-grid-hide-row-expander-spacer');a.lockedGrid.addCls('x-grid-hide-row-expander-spacer');if(c[0]===b.expanderColumn){a.unlock(b.expanderColumn)}else {a.lock(b.expanderColumn,0)}}},onColumnLock:function(a,d){var b=this,c;a=a||b.grid;c=b.lockedGrid.visibleColumnManager.getColumns();if(c.length===1){b.lockedGrid.headerCt.insert(0,b.expanderColumn);a.normalGrid.addCls('x-grid-hide-row-expander-spacer');a.lockedGrid.removeCls('x-grid-hide-row-expander-spacer')}},getHeaderConfig:function(){var a=this,b=a.grid.lockable&&a.grid;return {width:a.headerWidth,ignoreExport:!0,lockable:!1,autoLock:!0,sortable:!1,resizable:!1,draggable:!1,hideable:!1,menuDisabled:!0,tdCls:'x-grid-cell-special',innerCls:'x-grid-cell-inner-row-expander',renderer:function(){return '<div class="x-grid-row-expander" role="presentation" tabIndex="0"></div>'},processEvent:function(e,j,h,f,i,b,g){var d=b.pointerType==='touch',c=!!b.getTarget('.x-grid-row-expander');if((e==="click"&&c)||(e==='keydown'&&b.getKey()===b.SPACE)){if(d){h.focus()}a.toggleRow(f,g,b);b.stopSelection=!a.selectRowOnExpand}else if(b.type==='mousedown'&&!d&&c){b.preventDefault()}},isLocked:function(){return b&&(b.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.plugin.RowWidget',Ext.grid.plugin.RowExpander,{lockableScope:'top',config:{defaultWidgetUI:{}},widget:null,lockedWidget:null,addCollapsedCls:{fn:function(d,a,c){var b=this.rowExpander;if(!b.recordsExpanded[a.record.internalId]){a.itemClasses.push(b.rowCollapsedCls)}this.nextTpl.applyOut(a,d,c)},priority:20000},setCmp:function(c){var a=this,d,b;a.rowIdCls=Ext.id(null,'x-rowwidget-');a.recordsExpanded={};Ext.plugin.Abstract.prototype.setCmp.apply(a,arguments);b=a.widget;a.widget=b=Ext.apply({},b);if(!b.ui){b.ui=a.getDefaultWidgetUI()[b.xtype]||'default'}if(c.enableLocking&&a.lockedWidget){a.lockedWidget=b=Ext.apply({},a.lockedWidget);if(!b.ui){b.ui=a.getDefaultWidgetUI()[b.xtype]||'default'}}d=a.getFeatureConfig(c);if(c.features){c.features=Ext.Array.push(d,c.features)}else {c.features=d}},getFeatureConfig:function(d){var a=this,b=[],c={ftype:'rowbody',rowExpander:a,doSync:!1,rowIdCls:a.rowIdCls,bodyBefore:a.bodyBefore,recordsExpanded:a.recordsExpanded,rowBodyHiddenCls:a.rowBodyHiddenCls,rowCollapsedCls:a.rowCollapsedCls,setupRowData:a.setupRowData,setup:a.setup,onClick:Ext.emptyFn};b.push(Ext.apply({lockableScope:'normal'},c));if(d.enableLocking){b.push(Ext.apply({lockableScope:'locked'},c))}return b},setupRowData:function(c,d,b){var a=this.rowExpander;a.rowBodyFeature=this;b.rowBodyCls=a.recordsExpanded[c.internalId]?'':a.rowBodyHiddenCls},bindView:function(b){var a=this;a.viewListeners=b.on({refresh:a.onViewRefresh,itemadd:a.onItemAdd,scope:a,destroyable:!0});Ext.override(b,a.viewOverrides)},destroy:function(){var a=this,b=a.getId();a.viewListeners.destroy();if(a.grid.lockable){a.grid.destroyManagedWidgets(b+'-'+a.lockedView.getId());a.grid.destroyManagedWidgets(b+'-'+a.normalView.getId())}else {a.grid.destroyManagedWidgets(b+'-'+a.view.getId())}Ext.grid.plugin.RowExpander.prototype.destroy.call(this)},privates:{viewOverrides:{handleEvent:function(a){if(a.getTarget('.'+this.rowExpander.rowIdCls,this.body)){return}this.callParent([a])},onFocusEnter:function(a){if(a.event.getTarget('.'+this.rowExpander.rowIdCls,this.body)){return}this.callParent([a])},toggleChildrenTabbability:function(e){var a=this.getTargetEl(),c=this.all,d={skipSelf:!0},f={skipSelf:!0,includeSaved:!1},b;for(b=c.startIndex;b<=c.endIndex;b++){a=Ext.fly(this.getRow(c.item(b)));if(!a){continue}if(e){a.restoreTabbableState(d)}else {a.saveTabbableState(f)}}}},destroyLiveWidget:function(b,a){a.destroy()},destroyFreeWidget:function(a){a.destroy()},onItemAdd:function(e,i,f,g){var b=this,h=f.length,c,a,d=b.grid.lockable;Ext.suspendLayouts();for(c=0;c<h;c++){a=e[c];if(!a.isNonData&&b.recordsExpanded[a.internalId]){if(d){b.grid.syncRowHeightOnNextLayout=!0}b.addWidget(g,a)}}Ext.resumeLayouts(!0)},onViewRefresh:function(e,c){var f=this,d=e.all,b,a;Ext.suspendLayouts();for(b=d.startIndex,a=0;b<=d.endIndex;b++,a++){if(f.recordsExpanded[c[a].internalId]){f.addWidget(e,c[a])}}Ext.resumeLayouts(!0)},returnFalse:function(){return !1},getWidget:function(c,e){var a=this,b,d;if(e){d=a.grid.lockable&&c===a.lockedView?a.lockedWidget:a.widget;if(d){b=a.grid.createManagedWidget(c,a.getId()+'-'+c.getId(),d,e);b.measurer=a;b.ownerLayout=c.componentLayout}}return b},addWidget:function(h,c){var b=this,d,e,a,i=!!b.onWidgetAttach,g=b.isFixedSize,f;if(c.isNonData||!b.recordsExpanded[c.internalId]){return}d=Ext.fly(h.getNode(c).querySelector(b.rowBodyFeature.innerSelector));e=d.getWidth(!0)-d.getPadding('lr');a=b.getWidget(h,c);if(a){if(i){Ext.callback(b.onWidgetAttach,b.scope,[b,a,c],0,b)}f=a.el||a.element;if(f){d.dom.appendChild(f.dom);if(!g&&a.width!==e){a.setWidth(e)}else {a.updateLayout()}a.reattachToBody()}else {if(!g){a.width=e}a.render(d)}a.updateLayout()}return a},toggleRow:function(k,d){var a=this,c=a.normalView||a.view,m=c.getNode(k),j=Ext.fly(m),g,h=j.down(a.rowBodyTrSelector,!0),e=j.hasCls(a.rowCollapsedCls),f=e?'removeCls':'addCls',i=a.grid.lockable&&a.grid,b,l;j[f](a.rowCollapsedCls);Ext.fly(h)[f](a.rowBodyHiddenCls);Ext.suspendLayouts();if(e){a.recordsExpanded[d.internalId]=!0;b=a.addWidget(c,d);l=b.lookupViewModel()}else {delete a.recordsExpanded[d.internalId];b=a.getWidget(c,d)}if(i){if(i.lockedGrid.isVisible()){c=a.lockedView;g=Ext.fly(c.getNode(k));if(g){g[f](a.rowCollapsedCls);h=g.down(a.rowBodyTrSelector,!0);Ext.fly(h)[f](a.rowBodyHiddenCls);if(e&&a.lockedWidget){b=[b,a.addWidget(c,d)]}else {b=[b,a.getWidget(c,d)]}}i.syncRowHeightOnNextLayout=!0}}a.view.fireEvent(e?'expandbody':'collapsebody',m,d,h,b);c.updateLayout();if(l){l.notify()}Ext.resumeLayouts(!0);if(a.scrollIntoViewOnExpand&&e){a.grid.ensureVisible(k)}}}},0,0,0,0,["plugin.rowwidget"],[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable],[Ext.mixin.StyleCacher.prototype.mixinId||Ext.mixin.StyleCacher.$className,Ext.mixin.StyleCacher]],[Ext.grid.plugin,'RowWidget'],0));(Ext.cmd.derive('Ext.grid.property.Grid',Ext.grid.Panel,{alternateClassName:'Ext.grid.PropertyGrid',valueField:'value',nameField:'name',inferTypes:!0,enableColumnMove:!1,columnLines:!0,stripeRows:!1,trackMouseOver:!1,clicksToEdit:1,enableHdMenu:!1,gridCls:'x-property-grid',initComponent:function(){var a=this,b=!Ext.isIE,c;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)},getEditor:function(b,c){return this.getCachedEditor(b.get(a.nameField),b,c)}}));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);var c=a.getView();c.walkCells=a.walkCells;c.getDefaultFocusPosition=a.getDefaultFocusPosition;a.editors={'date':new Ext.grid.CellEditor({field:new Ext.form.field.Date({selectOnFocus:b})}),'string':new Ext.grid.CellEditor({field:new Ext.form.field.Text({selectOnFocus:b})}),'number':new Ext.grid.CellEditor({field:new Ext.form.field.Number({selectOnFocus:b})}),'boolean':new Ext.grid.CellEditor({field:new Ext.form.field.ComboBox({editable:!1,store:[[!0,a.headerCt.trueText],[!1,a.headerCt.falseText]]})})};a.store.on('update',a.onUpdate,a)},configure:function(i){var a=this,j=a.store,f=0,k=a.store.getCount(),h=a.nameField,g=a.valueField,d,c,e,b;a.configureLegacy(i);if(a.inferTypes){for(;f<k;++f){e=j.getAt(f);d=e.get(h);if(!a.getConfigProp(d,'type')){c=e.get(g);if(Ext.isDate(c)){b='date'}else if(Ext.isNumber(c)){b='number'}else if(Ext.isBoolean(c)){b='boolean'}else {b='string'}a.setConfigProp(d,'type',b)}}}},getConfigProp:function(d,e,c){var a=this.sourceConfig[d],b;if(a){b=a[e]}return b||c},setConfigProp:function(b,e,d){var c=this.sourceConfig,a=c[b];if(!a){a=c[b]={__copied:!0}}else if(!a.__copied){a=Ext.apply({__copied:!0},a);c[b]=a}a[e]=d;return d},configureLegacy:function(b){var a=this;a.copyLegacyObject(b,a.customRenderers,'renderer');a.copyLegacyObject(b,a.customEditors,'editor');a.copyLegacyObject(b,a.propertyNames,'displayName')},copyLegacyObject:function(b,c,d){var a;for(a in c){if(c.hasOwnProperty(a)){if(!b[a]){b[a]={}}b[a][d]=c[a]}}},onUpdate:function(f,b,e){var a=this,c,d;if(a.rendered&&e===Ext.data.Model.EDIT){c=b.get(a.valueField);d=b.modified.value;if(a.fireEvent('beforepropertychange',a.source,b.getId(),c,d)!==!1){if(a.source){a.source[b.getId()]=c}b.commit();a.fireEvent('propertychange',a.source,b.getId(),c,d)}else {b.reject()}}},walkCells:function(b,a,h,e,f,g){var d=this,c=d.ownerCt.valueColumn;if(a==='left'){a='up'}else if(a==='right'){a='down'}b=Ext.view.Table.prototype.walkCells.call(d,b,a,h,e,f,g);b.column=c;b.colIdx=c.getVisibleIndex();return b},getDefaultFocusPosition:function(){var b=this,a;a=new Ext.grid.CellContext(b).setColumn(1);return a},getCellEditor:function(g,i){var c=this,b=g.get(c.nameField),f=g.get(c.valueField),a=c.getConfigProp(b,'editor'),h=c.getConfigProp(b,'type'),e=c.editors,d;if(a){if(!(a instanceof Ext.grid.CellEditor)){if(!(a instanceof Ext.form.field.Base)){a=Ext.ComponentManager.create(a,'textfield')}a=c.setConfigProp(b,'editor',new Ext.grid.CellEditor({field:a}))}}else if(h){switch(h){case 'date':a=e.date;break;case 'number':a=e.number;break;case 'boolean':a=c.editors['boolean'];break;default:a=e.string;}}else if(Ext.isDate(f)){a=e.date}else if(Ext.isNumber(f)){a=e.number}else if(Ext.isBoolean(f)){a=e['boolean']}else {a=e.string}d=a.field;if(d&&d.ui==='default'&&!d.hasOwnProperty('ui')){d.ui=c.editingPlugin.defaultFieldUI}a.editorId=b;a.field.column=c.valueColumn;if(b){b=Ext.String.htmlEncode(b);if(d.rendered){d.inputEl.dom.setAttribute('aria-label',b)}else {d.ariaLabel=b}}return a},doDestroy:function(){var a=this;a.destroyEditors(a.editors);a.destroyEditors(a.customEditors);Ext.grid.Panel.prototype.doDestroy.call(this)},destroyEditors:function(a){for(var b in a){if(a.hasOwnProperty(b)){Ext.destroy(a[b])}}},setSource:function(c,b){var a=this;a.source=c;if(b!==undefined){a.sourceConfig=Ext.apply({},b);a.configure(a.sourceConfig)}a.propStore.setSource(c)},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":!0,"box":!0,"container":!0,"panel":!0,"tablepanel":!0,"gridpanel":!0,"grid":!0,"propertygrid":!0},["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,c){var a=this;a.grid=b;a.store=c;Ext.grid.header.Container.prototype.constructor.call(this,{isRootHeader:!0,enableColumnResize:Ext.isDefined(b.enableColumnResize)?b.enableColumnResize:a.enableColumnResize,enableColumnMove:Ext.isDefined(b.enableColumnMove)?b.enableColumnMove:a.enableColumnMove,items:[{header:a.nameText,width:b.nameColumnWidth||a.nameWidth,sortable:b.sortableColumns,dataIndex:b.nameField,scope:a,renderer:a.renderProp,itemId:b.nameField,menuDisabled:!0,tdCls:a.nameColumnCls,innerCls:a.nameColumnInnerCls},{header:a.valueText,scope:a,renderer:a.renderCell,getEditor:a.getCellEditor.bind(a),sortable:b.sortableColumns,flex:1,fixed:!0,dataIndex:b.valueField,itemId:b.valueField,menuDisabled:!0}]});a.grid.valueColumn=a.items.getAt(1)},getCellEditor:function(a){return this.grid.getCellEditor(a,this)},renderProp:function(a){return this.getPropertyName(a)},renderCell:function(a,g,f){var b=this,e=b.grid,d=e.getConfigProp(f.get(e.nameField),'renderer'),c=a;if(d){return Ext.callback(d,null,arguments,0,b)}if(Ext.isDate(a)){c=b.renderDate(a)}else if(Ext.isBoolean(a)){c=b.renderBool(a)}return Ext.util.Format.htmlEncode(c)},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":!0,"box":!0,"container":!0,"headercontainer":!0},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(a,b){if(!Ext.isObject(a)){a={name:a,value:b}}Ext.data.Model.prototype.constructor.call(this,a)}},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(c){var e=this.getModel(),a={records:[],success:!0},d,b;for(b in c){if(c.hasOwnProperty(b)){d=c[b];if(this.isEditableValue(d)){a.records.push(new e({name:b,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:!0,constructor:function(c,b){var a=this;a.grid=c;a.source=b;Ext.data.Store.prototype.constructor.call(this,{data:b,model:Ext.grid.property.Property,proxy:a.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(b){var a=this;a.source=b;a.suspendEvents();a.removeAll();a.getProxy().setData(b);a.load();a.resumeEvents();a.fireEvent('datachanged',a);a.fireEvent('refresh',a)},getProperty:function(a){var b=Ext.isNumber(a)?this.getAt(a):this.getById(a),c=null;if(b){c=b.get('value')}return c},setValue:function(a,b,e){var d=this,c=d.getRec(a);if(c){c.set('value',b);d.source[a]=b}else if(e){d.source[a]=b;c=new Ext.grid.property.Property({name:a,value:b},a);d.add(c)}},remove:function(a){var b=this.getRec(a);if(b){Ext.data.Store.prototype.remove.call(this,b);delete this.source[a]}},getRec:function(a){return this.getById(a)},getSource:function(){return this.source},doDestroy:function(){Ext.destroy(this.reader,this.proxy);Ext.data.Store.prototype.doDestroy.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:!0,clone:function(){var a=this,b=new a.self(a.view);if(a.startCell){b.startCell=a.startCell.clone();b.endCell=a.endCell.clone()}return b},contains:function(a){var b;if(!a||!a.isCellContext){return !1}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 !1},eachRow:function(f,e){var b=this,c=b.getRowRange(),d=new Ext.grid.CellContext(b.view),a;for(a=c[0];a<=c[1];a++){d.setRow(a);if(f.call(e||b,d.record)===!1){return}}},eachColumn:function(f,e){var b=this,c=b.getColumnRange(),d=new Ext.grid.CellContext(b.view),a;for(a=c[0];a<=c[1];a++){d.setColumn(a);if(f.call(e||b,d.column,a)===!1){return}}},eachCell:function(h,g){var c=this,f=c.getRowRange(),e=c.getColumnRange(),d=new Ext.grid.CellContext(c.view),b,a;for(b=f[0];b<=f[1];b++){d.setRow(b);for(a=e[0];a<=e[1];a++){d.setColumn(a);if(h.call(g||c,d,a,b)===!1){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 a=this,b=a.view;if(b.getVisibleColumnManager().getColumns().length){a.eachCell(function(a){b.onCellDeselect(a)})}a.startCell=a.endCell=null},setRangeStart:function(a,b){this.startCell=(this.endCell=a.clone()).clone();this.view.onCellSelect(a)},setRangeEnd:function(n){var f=this,a,d,i,k,h,j,c,b,e=f.view,l=e.all,g=new Ext.grid.CellContext(e),m=e.getVisibleColumnManager().getColumns().length-1;f.endCell=n.clone();a=f.getRange();d=f.lastRange||a;i=Math.max(Math.min(a[0][1],d[0][1]),l.startIndex);k=Math.min(Math.max(a[1][1],d[1][1]),l.endIndex);h=Math.min(a[0][0],d[0][0]);j=Math.min(Math.max(a[1][0],d[1][0]),m);for(c=i;c<=k;c++){for(b=h;b<=j;b++){g.setPosition(c,b);if(c<a[0][1]||c>a[1][1]||b<a[0][0]||b>a[1][0]){e.onCellDeselect(g)}else {e.onCellSelect(g)}}}f.lastRange=a},extendRange:function(b){var a=this,c;if(b[b.type]<0){c=a.endCell.clone().setPosition(a.getLastRowIndex(),a.getLastColumnIndex());a.startCell=b.start.clone();a.setRangeEnd(c);a.view.getNavigationModel().setPosition(b.start)}else {a.startCell=a.startCell.setPosition(a.getFirstRowIndex(),a.getFirstColumnIndex());a.setRangeEnd(b.end);a.view.getNavigationModel().setPosition(b.end)}},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 !1},getColumnRange:function(){return [this.getFirstColumnIndex(),this.getLastColumnIndex()]},getLastSelected:function(){return this.view.dataSource.getAt(this.endCell.rowIdx)},getRowRange:function(){return [this.getFirstRowIndex(),this.getLastRowIndex()]},onSelectionFinish:function(){var a=this;if(a.getCount()){a.view.getSelectionModel().onSelectionFinish(a,new Ext.grid.CellContext(a.view).setPosition(a.getFirstRowIndex(),a.getFirstColumnIndex()),new Ext.grid.CellContext(a.view).setPosition(a.getLastRowIndex(),a.getLastColumnIndex()))}else {a.view.getSelectionModel().onSelectionFinish(a)}}}},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:!0,clone:function(){var a=this,c=new a.self(a.view),b=a.selectedColumns;if(b){c.selectedColumns=Ext.Array.slice(b)}return c},eachRow:function(c,b){var a=this.selectedColumns;if(a&&a.length){this.view.dataSource.each(c,b||this)}},eachColumn:function(h,f){var d=this,g=d.view,b=d.selectedColumns,e,a,c=new Ext.grid.CellContext(g);if(b){e=b.length;for(a=0;a<e;a++){c.setColumn(b[a]);if(h.call(f||d,c.column,c.colIdx)===!1){return !1}}}},eachCell:function(h,g){var d=this,e=d.view,c=d.selectedColumns,f,b,a=new Ext.grid.CellContext(e);if(c){f=c.length;e.dataSource.each(function(e){a.setRow(e);for(b=0;b<f;b++){a.setColumn(c[b]);if(h.call(g||d,a,a.colIdx,a.rowIdx)===!1){return !1}}})}},contains:function(b){var a=this.selectedColumns;if(b&&b.isColumn&&a&&a.length){return Ext.Array.contains(a,b)}return !1},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(b){var a=this,c=a.getColumns();a.startColumn=b;a.selectedColumns=[b];c.push(b);a.refreshColumns.apply(a,c)},setRangeEnd:function(h){var b=this,f=b.getColumns(),e=this.view.ownerGrid.getVisibleColumnManager(),g=e.getColumns(),c=e.indexOf(b.startColumn),d=e.indexOf(h),a;if(d<c){a=c;c=d;d=a}b.selectedColumns=[];for(a=c;a<=d;a++){b.selectedColumns.push(g[a]);f.push(g[a])}b.refreshColumns.apply(b,f)},isAllSelected:function(){var a=this.selectedColumns;return a&&a.length===this.view.ownerGrid.getVisibleColumnManager().getColumns().length},refreshColumns:function(j){var i=this,b=i.view,g=b.all,d,e=arguments,h=e.length,a,c=new Ext.grid.CellContext(b),f=[];if(b.rendered){for(a=0;a<h;a++){f[a]=i.contains(e[a])}for(d=g.startIndex;d<=g.endIndex;d++){c.setRow(d);for(a=0;a<h;a++){c.setColumn(e[a]);if(f[a]){b.onCellSelect(c)}else {b.onCellDeselect(c)}}}}},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.getSelectionModel().lastContiguousColumnRange=a.view.getVisibleColumnManager().getColumns();a.refreshColumns.apply(a,a.selectedColumns)},extendRange:function(b){var c=this,d=c.view.getVisibleColumnManager().getColumns(),a;for(a=b.start.colIdx;a<=b.end.colIdx;a++){c.add(d[a])}},onSelectionFinish:function(){var a=this,b=a.getContiguousSelection();if(b){a.view.getSelectionModel().onSelectionFinish(a,new Ext.grid.CellContext(a.view).setPosition(0,b[0]),new Ext.grid.CellContext(a.view).setPosition(a.view.dataSource.getCount()-1,b[1]))}else {a.view.getSelectionModel().onSelectionFinish(a)}},getContiguousSelection:function(){var a=Ext.Array.sort(this.getColumns(),function(a,b){return a.getView().ownerGrid.getVisibleColumnManager().indexOf(a)-b.getView().ownerGrid.getVisibleColumnManager().indexOf(b)}),c=a.length,b;if(c){for(b=1;b<c;b++){if(a[b].getVisibleIndex()!==a[b-1].getVisibleIndex()+1){return !1}}return [a[0],a[c-1]]}}}},0,0,0,0,0,0,[Ext.grid.selection,'Columns'],0));(Ext.cmd.derive('Ext.grid.selection.Replicator',Ext.plugin.Abstract,{init:function(a){this.gridListeners=a.on({beforeselectionextend:this.onBeforeSelectionExtend,scope:this,destroyable:!0})},onBeforeSelectionExtend:function(c,a,b){var d=this.columns=[];a.eachColumn(function(e){d.push(e)});return this.replicateSelection(c,a,b)},replicateSelection:function(w,q,e){if(e.columns||q.isColumns){return}var j=this,n=j.columns,h,a,f,i,m,o,b,g,d,p,v,l,k=q.getFirstRowIndex(),r=q.getLastRowIndex(),u=r-k+1,c=[],s,t;h=n.length,d=n[0].getView().dataSource;if(u===1){i=j.getColumnValues(q.view.dataSource.getAt(k))}else {i=new Array(h);if(e.rows<0){c=[d.getAt(k+1),d.getAt(k)]}else {c=[d.getAt(r-1),d.getAt(r)]}c[0]=j.getColumnValues(c[0]);c[1]=j.getColumnValues(c[1]);for(a=0;a<h;a++){s=c[1][a];t=c[0][a];if(!isNaN(s)&&!isNaN(t)){i[a]=Number(s)-Number(t)}}}if(e.rows<0){m=e.end.rowIdx;o=e.start.rowIdx-1;g=-1}else {m=e.start.rowIdx;o=e.end.rowIdx+1;g=1}if(u===1){for(b=m;b!==o;b+=g){p=d.getAt(b);for(a=0;a<h;a++){f=n[a];if(f.dataIndex){p.set(f.dataIndex,i[a])}}}}else {for(b=m;b!==o;b+=g){p=d.getAt(b);v=j.getColumnValues(d.getAt(b-g));for(a=0;a<h;a++){f=n[a];if(f.dataIndex){l=v[a];if(!isNaN(l)){p.set(f.dataIndex,Ext.coerce(Number(l)+i[a],l))}}}}}},getColumnValues:function(e){var b=this.columns,f=b.length,a,c,d=new Array(b.length);for(a=0;a<f;a++){c=b[a];if(c.dataIndex){d[a]=e.get(c.dataIndex)}}return d},destroy:function(){this.gridListeners=Ext.destroy(this.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,["plugin.selectionreplicator"],0,[Ext.grid.selection,'Replicator'],0));(Ext.cmd.derive('Ext.grid.selection.Rows',Ext.grid.selection.Selection,{type:'rows',isRows:!0,clone:function(){var a=this,b=new a.self(a.view);if(a.selectedRecords){b.selectedRecords=a.selectedRecords.clone()}if(a.rangeStart){b.setRangeStart(a.rangeStart);b.setRangeEnd(a.rangeEnd)}return b},addOne:function(b){var a=this;var c=a.selectedRecords||(a.selectedRecords=a.createRecordCollection());if(!c.byInternalId.get(b.internalId)){c.add(b);a.view.onRowSelect(b)}},add:function(a){var d=this,b,c;if(a.isModel){d.addOne(a)}else if(Ext.isArray(a)){for(b=0,c=a.length;b<c;b++){d.addOne(a[b])}}},removeOne:function(b){var a=this;if(a.selectedRecords&&a.selectedRecords.byInternalId.get(b.internalId)){a.selectedRecords.remove(b);a.view.onRowDeselect(b);a.allSelected=!1;return !0}return !1},remove:function(a){var e=this,b,c,d=!0;if(a.isModel){return e.removeOne(a)}else if(Ext.isArray(a)){for(b=0,c=a.length;b<c;b++){d&=e.removeOne(a[b])}}return d},contains:function(b){if(!b||!b.isModel){return !1}var a=this,c=!1,f=a.selectedRecords,e,d;if(a.allSelected){a.add(b);return !0}if(f){c=!!f.byInternalId.get(b.internalId)}if(!c&&a.rangeStart!=null){d=a.getRange();e=a.view.dataSource.indexOf(b);c=e>=d[0]&&e<=d[1]}return c},getCount:function(){var c=this,a=c.selectedRecords,d=a?a.getCount():0,e=c.getRange(),b,f=c.view.dataSource;for(b=e[0];b<=e[1];b++){if(!a||!a.byInternalId.get(f.getAt(b).internalId)){d++}}return d},getRecords:function(){var a=this.selectedRecords;return a?a.getRange():[]},selectAll:function(){var a=this,b=a.view.dataSource,c=b.isBufferedStore?b.getData().getCount():b.getCount();a.clear();a.setRangeStart(0);a.setRangeEnd(c-1);a.addRange();a.allSelected=!0},getFirstRowIndex:function(){return this.getCount()?this.view.dataSource.indexOf(this.selectedRecords.first()):0},getLastRowIndex:function(){return this.getCount()?this.view.dataSource.indexOf(this.selectedRecords.first()):-1},eachRow:function(c,b){var a=this.selectedRecords;if(a){a.each(c,b||this)}},eachColumn:function(e,c){var b=this.view.getVisibleColumnManager().getColumns(),d=b.length,a;if(this.selectedRecords){for(a=0;a<d;a++){if(e.call(this||c,b[a],a)===!1){return}}}},eachCell:function(m,k){var c=this,i=c.selectedRecords,l=c.view,f=l.ownerGrid.getVisibleColumnManager().getColumns(),d=!1,h,b,g,a,e,j;if(f){h=f.length;a=new Ext.grid.CellContext(l);if(i){i.each(function(e){a.setRow(e);for(b=0;b<h;b++){a.setColumn(f[b]);if(m.call(k||c,a,a.colIdx,a.rowIdx)===!1){d=!0;return !1}}})}if(!d){e=c.getRange();if(e[0]===e[1]){return}c.view.dataSource.getRange(e[0],e[1],{forRender:!1,callback:function(e){j=e.length;for(b=0;!d&&b<j;b++){a.setRow(e[b]);for(g=0;!d&&g<h;g++){a.setColumn(f[g]);if(m.call(k||c,a,a.colIdx,a.rowIdx)===!1){d=!0}}}}})}}},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);this.callParent()},privates:{clear:function(){var a=this,b=a.view;a.allSelected=!1;if(a.selectedRecords){a.eachRow(function(a){b.onRowDeselect(a)});a.selectedRecords.clear()}},isAllSelected:function(){return !!this.allSelected},setRangeStart:function(a){this.allSelected=!1;this.rangeStart=this.rangeEnd=a;this.view.onRowSelect(a)},setRangeEnd:function(h){var c=this,b,e,a,k,d=c.view,j=d.dataSource,g=d.all,f=c.selectedRecords,i;c.rangeEnd=h;b=c.getRange();e=c.lastRange||b;for(a=Math.max(Math.min(b[0],e[0]),g.startIndex),h=Math.min(Math.max(b[1],e[1]),g.endIndex);a<=h;a++){k=g.item(a);if(a<b[0]||a>b[1]){if(f&&(i=f.byInternalId.get(j.getAt(a).internalId))){f.remove(i)}d.onRowDeselect(a)}else {d.onRowSelect(a)}}c.lastRange=b},extendRange:function(b){var c=this,d=c.view.dataSource,a;for(a=b.start.rowIdx;a<=b.end.rowIdx;a++){c.add(d.getAt(a))}},getLastSelected:function(){return this.selectedRecords.last()},getRange:function(){var a=this.rangeStart,b=this.rangeEnd;if(a==null){return [0,-1]}else if(a<=b){return [a,b]}return [b,a]},getRangeSize:function(){var a=this.getRange();return a[1]-a[0]+1},createRecordCollection:function(){var a=this.view.dataSource,b=new Ext.util.Collection({rootProperty:'data',extraKeys:{byInternalId:{rootProperty:!1,property:'internalId'}},sorters:[function(b,c){return a.indexOf(b)-a.indexOf(c)}]});return b},addRange:function(){var a=this,c,b;if(a.rangeStart!=null){c=a.getRange();b=a.selectedRecords||(a.selectedRecords=a.createRecordCollection());a.view.dataSource.getRange(c[0],c[1],{forRender:!1,callback:function(a){b.add.apply(b,a)}});a.setRangeStart(a.lastRange=null)}},onSelectionFinish:function(){var a=this,b=a.getContiguousSelection();if(b){a.view.getSelectionModel().onSelectionFinish(a,new Ext.grid.CellContext(a.view).setPosition(b[0],0),new Ext.grid.CellContext(a.view).setPosition(b[1],a.view.getVisibleColumnManager().getColumns().length-1))}else {a.view.getSelectionModel().onSelectionFinish(a)}},getContiguousSelection:function(){var b=this.view.dataSource,a,d,c;if(this.selectedRecords){a=Ext.Array.sort(this.selectedRecords.getRange(),function(a,c){return b.indexOf(a)-b.indexOf(c)});d=a.length;if(d){for(c=1;c<d;c++){if(b.indexOf(a[c])!==b.indexOf(a[c-1])+1){return !1}}return [b.indexOf(a[0]),b.indexOf(a[d-1])]}}}}},0,0,0,0,0,0,[Ext.grid.selection,'Rows'],0));(Ext.cmd.derive('Ext.grid.selection.SelectionExtender',Ext.dd.DragTracker,{maskBox:{},constructor:function(a){var b=this;if(a.view.rendered){b.initSelectionExtender(a)}else {b.view=a.view;a.view.on({render:b.initSelectionExtender,args:[a],scope:b})}},initSelectionExtender:function(b){var a=this,c=Ext.dom.Element.DISPLAY;a.el=b.view.el;a.handle=b.view.ownerGrid.body.createChild({cls:'x-ssm-extender-drag-handle',style:'display:none'}).setVisibilityMode(c);a.handle.on({contextmenu:function(a){a.stopEvent()}});a.mask=a.el.createChild({cls:'x-ssm-extender-mask',style:'display:none'}).setVisibilityMode(c);a.superclass.constructor.call(a,b);a.mask.skipGarbageCollection=a.handle.skipGarbageCollection=!0;a.viewListeners=a.view.on({scroll:a.onViewScroll,scope:a,destroyable:!0});a.gridListeners=a.view.ownerGrid.on({columnResize:a.alignHandle,scope:a,destroyable:!0});a.extendX=!!(a.axes&1);a.extendY=!!(a.axes&2)},setHandle:function(c,b){var a=this;if(!a.view.rendered){a.view.on({render:a.initSelectionExtender,args:[c,b],scope:a});return}a.firstPos=c;a.lastPos=b;if(c&&b&&c.getCell(!0)&&b.getCell(!0)){if(a.curPos){a.curPos.setPosition(b)}else {a.curPos=b.clone()}a.alignHandle()}else {a.disable()}},alignHandle:function(){var a=this,c=a.firstPos&&a.firstPos.getCell(!0),b=a.lastPos&&a.lastPos.getCell(!0);if(c&&b){a.enable();a.handle.alignTo(b,'c-br')}else {a.disable()}},enable:function(){this.handle.show();Ext.dd.DragTracker.prototype.enable.call(this)},disable:function(){this.handle.hide();this.mask.hide();Ext.dd.DragTracker.prototype.disable.call(this)},onDrag:function(d){if(d.target===this.mask.dom){this.mask.hide();d.target=document.elementFromPoint.apply(document,d.getXY());this.mask.show()}var a=this,f=a.view,h=f.el.getY(),g=f.el.getX(),e=d.getTarget(a.view.getCellSelector()),c=a.scrollTask||(a.scrollTask=Ext.util.TaskManager.newTask({run:a.doAutoScroll,scope:a,interval:10})),b=a.scrollBy||(a.scrollBy=[]);if(!a.el.contains(d.target)){b[0]=b[1]=0;return c.stop()}if(a.lastXY[1]>h+f.el.getHeight(!0)-15){if(a.extendY){b[1]=3;c.start()}}else if(a.lastXY[1]<h+10){if(a.extendY){b[1]=-3;c.start()}}else if(a.lastXY[0]>g+f.el.getWidth(!0)-15){if(a.extendX){b[0]=3;c.start()}}else if(a.lastXY[0]<g+10){if(a.extendX){b[0]=-3;c.start()}}else {b[0]=b[1]=0;c.stop()}if(e&&e!==a.lastOverCell){a.lastOverCell=e;a.syncMaskOnCell(e)}},doAutoScroll:function(){var b=this,c=b.view,a;c.scrollBy.apply(c,b.scrollBy);a=document.elementFromPoint.apply(document,b.lastXY);if(a){a=Ext.fly(a).up(c.cellSelector);if(a&&a!==b.lastOverCell){b.lastOverCell=a;b.syncMaskOnCell(a)}}},onEnd:function(b){var a=this;if(a.scrollTask){a.scrollTask.stop()}if(a.extensionDescriptor){a.disable();a.view.getSelectionModel().extendSelection(a.extensionDescriptor)}},onViewScroll:function(){var a=this;if(a.active&&a.lastOverCell){a.syncMaskOnCell(a.lastOverCell)}if(a.firstPos){a.alignHandle()}},syncMaskOnCell:function(e){var a=this,f=a.view,i=f.all,d=a.curPos,c=a.maskBox,b,j=a.firstPos.clone(),k=a.lastPos.clone(),g=a.firstPos.clone(),h=a.lastPos.clone();j.setRow(Math.min(Math.max(j.rowIdx,i.startIndex),i.endIndex));k.setRow(Math.min(Math.max(k.rowIdx,i.startIndex),i.endIndex));a.selectionRegion=b=j.getCell().getRegion().union(k.getCell().getRegion());d.setPosition(f.getRecord(e),f.getHeaderByCell(e));e=Ext.fly(e);a.mask.dom.style.borderTopWidth=a.mask.dom.style.borderRightWidth=a.mask.dom.style.borderBottomWidth=a.mask.dom.style.borderLeftWidth='';if(d.rowIdx<a.firstPos.rowIdx&&a.extendY){a.extensionDescriptor={type:'rows',start:g.setRow(d.rowIdx),end:h.setRow(a.firstPos.rowIdx-1),rows:d.rowIdx-a.firstPos.rowIdx,mousePosition:a.lastXY};a.mask.dom.style.borderBottomWidth='0';c.x=b.x;c.y=e.getY();c.width=b.right-b.left;c.height=b.top-e.getY()}else if(d.rowIdx>a.lastPos.rowIdx&&a.extendY){a.extensionDescriptor={type:'rows',start:g.setRow(a.lastPos.rowIdx+1),end:h.setRow(d.rowIdx),rows:d.rowIdx-a.lastPos.rowIdx,mousePosition:a.lastXY};a.mask.dom.style.borderTopWidth='0';c.x=b.x;c.y=b.bottom;c.width=b.right-b.left;c.height=e.getRegion().bottom-b.bottom}else {if(d.colIdx<a.firstPos.colIdx&&a.extendX){a.extensionDescriptor={type:'columns',start:g.setColumn(d.colIdx),end:h.setColumn(a.firstPos.colIdx-1),columns:d.colIdx-a.firstPos.colIdx,mousePosition:a.lastXY};a.mask.dom.style.borderRightWidth='0';c.x=e.getX();c.y=b.top;c.width=b.left-e.getX();c.height=b.bottom-b.top}else if(d.colIdx>a.lastPos.colIdx&&a.extendX){a.extensionDescriptor={type:'columns',start:g.setColumn(a.lastPos.colIdx+1),end:h.setColumn(d.colIdx),columns:d.colIdx-a.lastPos.colIdx,mousePosition:a.lastXY};a.mask.dom.style.borderLeftWidth='0';c.x=b.right;c.y=b.top;c.width=e.getRegion().right-b.right;c.height=b.bottom-b.top}else {a.extensionDescriptor=null}}if(f.ownerGrid.hasListeners.selectionextenderdrag){f.ownerGrid.fireEvent('selectionextenderdrag',f.ownerGrid,f.getSelectionModel().getSelected(),a.extensionDescriptor)}if(a.extensionDescriptor){a.mask.show();a.mask.setBox(c)}else {a.mask.hide()}},destroy:function(){var a=this;Ext.destroy(a.gridListeners,a.viewListeners,a.mask,a.handle);Ext.dd.DragTracker.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.grid.selection,'SelectionExtender'],0));(Ext.cmd.derive('Ext.grid.selection.SpreadsheetModel',Ext.selection.Model,{isSpreadsheetModel:!0,config:{columnSelect:{$value:!1,lazy:!0},cellSelect:{$value:!0,lazy:!0},rowSelect:{$value:!0,lazy:!0},dragSelect:{$value:!0,lazy:!0},selected:null,extensible:{$value:!0,lazy:!0}},checkboxSelect:!1,checkboxColumnIndex:0,showHeaderCheckbox:!0,checkColumnHeaderText:null,checkboxHeaderWidth:24,rowNumbererHeaderWidth:46,columnSelectCls:'x-ssm-column-select',rowNumbererHeaderCls:'x-ssm-row-numberer-hd',tdCls:'x-grid-cell-special x-selmodel-column',bindComponent:function(b){var a=this,d,c,e;if(a.view!==b){if(a.view){a.navigationModel=null;Ext.destroy(a.viewListeners,a.navigationListeners)}a.view=b;if(b){a.getCellSelect();e=b.ownerGrid.lockedGrid;if(e){a.hasLockedHeader=!0;a.onViewCreated(e,e.getView())}else {b.grid.on({viewcreated:a.onViewCreated,scope:a,single:!0})}a.gridListeners=b.ownerGrid.on({columnschanged:a.onColumnsChanged,columnmove:a.onColumnMove,scope:a,destroyable:!0});c=a.getStoreListeners();c.scope=a;c.destroyable=!0;a.storeListeners=a.store.on(c);d=a.getViewListeners();d.scope=a;d.destroyable=!0;a.viewListeners=b.on(d);a.navigationModel=b.getNavigationModel();a.navigationListeners=a.navigationModel.on({navigate:a.onNavigate,scope:a,destroyable:!0});if(a.getColumnSelect()){b.ownerGrid.addCls(a.columnSelectCls)}a.updateHeaderState()}}},getCheckboxHeaderConfig:function(){var a=this,b=a.showHeaderCheckbox!==!1;return {xtype:'checkcolumn',isCheckerHd:b,headerCheckbox:b,ignoreExport:!0,text:a.checkColumnHeaderText,clickTargetName:'el',width:a.checkboxHeaderWidth,sortable:!1,draggable:!1,resizable:!1,hideable:!1,menuDisabled:!0,tdCls:a.tdCls,cls:'x-selmodel-column',stopSelection:!1,editRenderer:a.editRenderer||a.renderEmpty,locked:a.hasLockedHeader,updateHeaderState:a.updateHeaderState.bind(a),toggleAll:Ext.emptyFn,setRecordCheck:Ext.emptyFn,isRecordChecked:Ext.emptyFn}},renderEmpty:function(){return '\xa0'},getStoreListeners:function(){var b=this,a=Ext.selection.Model.prototype.getStoreListeners.call(this);a.priority=2000;a.refresh=b.onStoreChanged;a.clear=b.onStoreChanged;return a},onHeaderClick:function(h,b,g){var a=this,c=a.selected,d,f,e;if(b===a.numbererColumn||b===a.checkColumn){g.stopEvent();if(!c||!c.isAllSelected()){a.selectAll()}else {a.deselectAll()}a.updateHeaderState();a.lastColumnSelected=null}else if(a.columnSelect){if(g.shiftKey&&c&&c.lastColumnSelected){c.clear();d=a.view.ownerGrid.getVisibleColumnManager();f=Ext.Array.sort([d.indexOf(c.lastColumnSelected),d.indexOf(b)],Ext.Array.numericSortFn);for(e=f[0];e<=f[1];e++){a.selectColumn(d.getHeaderAtIndex(e),!0)}}else {if(a.isColumnSelected(b)){a.deselectColumn(b);a.selected.lastColumnSelected=null}else {a.selectColumn(b,g.ctrlKey);a.selected.lastColumnSelected=b}}}},selectByPosition:function(a){var b=this;a=new Ext.grid.CellContext(b.view).setPosition(a.row,a.column);if(b.getCellSelect()){b.selectCells(a,a)}else if(b.getRowSelect()){this.select(a.record)}else if(b.getColumnSelect()){b.selectColumn(a.column)}},updateHeaderState:function(){var b=this,e=b.view.dataSource,g=b.views,a=b.selected,d=!1,f=b.checkColumn,c;if(e&&a&&a.isRows){c=e.getCount();if(e.isBufferedStore){d=a.allSelected}else {d=c>0&&(c===a.getCount())}}if(g&&g.length){if(f){f.setHeaderStatus(d)}}},onBindStore:function(c,b,a){if(!a){this.onStoreRefresh()}},onBeforeReconfigure:function(g,f,c,e,d){var a=this,b=a.checkboxColumnIndex;if(c){Ext.suspendLayouts();if(a.numbererColumn){a.numbererColumn.ownerCt.remove(a.numbererColumn,!1);c.unshift(a.numbererColumn)}if(a.checkColumn){if(b==='first'){b=0}else if(b==='last'){b=c.length}a.checkColumn.ownerCt.remove(a.checkColumn,!1);Ext.Array.insert(c,b,[a.checkColumn])}Ext.resumeLayouts()}},getCellContext:function(b,a){return new Ext.grid.CellContext(this.view.ownerGrid.getView()).setPosition(b,a)},select:function(d,j,i){var c=this,a=c.selected,f=c.view,k=f.dataSource,h,e,b,g=!1;if(!a||!a.isRows||a.view!==f){c.resetSelection(!0);a=c.selected=new Ext.grid.selection.Rows(f)}else if(!j){a.clear()}if(!Ext.isArray(d)){d=[d]}h=d.length;for(e=0;e<h;e++){b=d[e];if(typeof b==='number'){b=k.getAt(b)}if(!a.contains(b)){a.add(b);g=!0}}if(g){c.updateHeaderState();if(!i){c.fireSelectionChange()}}},deselect:function(a,h){var c=this,f=c.selected,i=c.view.dataSource,g,d,b,e=!1;if(f&&f.isRows){if(!Ext.isArray(a)){a=[a]}g=a.length;for(d=0;d<g;d++){b=a[d];if(typeof b==='number'){b=i.getAt(b)}e=e||f.remove(b)}}if(e){c.updateHeaderState();if(!h){c.fireSelectionChange()}}},selectCells:function(a,b,f){var c=this,e=c.view.ownerGrid.view,d;a=a.isCellContext?a.clone():new Ext.grid.CellContext(e).setPosition(a);b=b.isCellContext?b.clone():new Ext.grid.CellContext(e).setPosition(b);c.resetSelection(!0);c.selected=d=new Ext.grid.selection.Cells(a.view);d.setRangeStart(a);d.setRangeEnd(b);if(!f){c.fireSelectionChange()}},selectAll:function(e){var a=this,b=a.selected,c,d=a.view;if(a.rowSelect){if(!b||!b.isRows){a.resetSelection(!0);a.selected=b=new Ext.grid.selection.Rows(d)}c=!0}else if(a.cellSelect){if(!b||!b.isCells){a.resetSelection(!0);a.selected=b=new Ext.grid.selection.Cells(d)}c=!0}else if(a.columnSelect){if(!b||!b.isColumns){a.resetSelection(!0);a.selected=b=new Ext.grid.selection.Columns(d)}c=!0}if(b){b.allSelected=!0}if(c){a.updateHeaderState();b.selectAll();if(!e){a.fireSelectionChange()}}},deselectAll:function(c){var b=this,a=b.selected;if(a&&a.getCount()){a.clear();a.allSelected=!1;b.updateHeaderState();if(!c){b.fireSelectionChange()}}},selectRows:function(c,f,g){var b=this,a=b.selected,e=a&&a.isRows,h=c.length,d;if(!f||!e){b.resetSelection(!0)}if(!e){b.selected=a=new Ext.grid.selection.Rows(b.view)}if(c.isEntity){a.add(c)}else {for(d=0;d<h;d++){a.add(c[d])}}if(!g){b.fireSelectionChange()}},isSelected:function(a){return this.isRowSelected(a)},selectColumn:function(c,e,f){var b=this,a=b.selected,d=c.getView();if(!a||!a.isColumns||a.view!==d.ownerGrid.view){b.resetSelection(!0);b.selected=a=new Ext.grid.selection.Columns(d)}if(!a.contains(c)){if(!e){a.clear()}a.add(c);b.updateHeaderState();if(!f){b.fireSelectionChange()}}},deselectColumn:function(c,d){var b=this,a=b.getSelected();if(a&&a.isColumns&&a.contains(c)){a.remove(c);b.updateHeaderState();if(!d){b.fireSelectionChange()}}},getSelection:function(){var a=this.selected;if(a&&a.isRows){return a.getRecords()}return []},destroy:function(){var a=this,b=a.scrollEls;Ext.destroy(a.gridListeners,a.viewListeners,a.selected,a.navigationListeners,a.extensible);if(b){Ext.dd.ScrollManager.unregister(b)}a.selected=a.gridListeners=a.viewListeners=a.selectionData=a.navigationListeners=a.scrollEls=null;Ext.selection.Model.prototype.destroy.call(this)},privates:{axesConfigs:{x:1,y:2,xy:3,both:3,"true":3},getNumbererColumnConfig:function(){var a=this;return {xtype:'rownumberer',width:a.rowNumbererHeaderWidth,editRenderer:a.renderEmpty,tdCls:a.rowNumbererTdCls,cls:a.rowNumbererHeaderCls,locked:a.hasLockedHeader}},getViewListeners:function(){return {refresh:this.onViewRefresh,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()}},onStoreChanged:function(){var a=this,c=a.view,b=a.selected;if(b){if(b.isCells){a.resetSelection()}else if(b.isRows){if(a.pruneRemoved===!1&&b.selectedRecords.length){a.refresh()}else {a.resetSelection()}}}},onColumnsChanged:function(){var a=this,b=a.onViewChanged(a.view,!0);Ext.on('idle',b?a.fireSelectionChange:a.updateSelectionExtender,a,{single:!0})},onColumnMove:function(){this.updateSelectionExtender()},onViewRefresh:function(c){var a=this,b=a.onViewChanged(c);a[b?'fireSelectionChange':'updateSelectionExtender']()},resetSelection:function(b){var a=this.selected;if(a){a.clear();if(!b){this.fireSelectionChange()}}},onViewChanged:function(b,k){var e=this,a=e.selected,j=b.store,c=!1,i,h,f,g,d;if(a){b=a.view;if(k){if(a.isCells){d=new Ext.grid.CellContext(b);i=a.getRowRange();h=b.ownerGrid.getColumnManager().getColumns().length;if(h){for(g=i[0];g<=i[1];g++){d.setRow(g);for(f=0;f<h;f++){d.setColumn(f);if(d.column){b.onCellDeselect(d)}if(e.maybeClearSelection(d)){c=!0}}}}else {e.clearSelections();c=!0}}else if(a.isColumns){c=!1;a.eachColumn(function(a,d){if(!a.isVisible()||!b.ownerGrid.isAncestor(a)){e.remove(a);if(e.maybeClearSelection({column:a})){c=!0}}})}}else if(a.isRows&&j.isFiltered()){a.eachRow(function(a){if(!j.contains(a)){this.remove(a);if(e.maybeClearSelection({rowIdx:b.indexOf(a)})){c=!0}}})}}return c},onViewCreated:function(e,b){var a=this,c=b.ownerGrid,d=b.headerCt;if(!c.lockable||b.isLockedView){if(a.getRowSelect()){a.getNumbererColumn()}if(a.checkboxSelect){a.addCheckbox(b,!0)}a.mon(b.ownerGrid,'beforereconfigure',a.onBeforeReconfigure,a)}d.sortOnClick=!a.getColumnSelect();if(a.getDragSelect()){b.on('render',a.onViewRender,a,{single:!0})}},onViewRender:function(b){var a=this,d=b.getEl(),e=a.views,f=e.length,c;for(c=0;c<f;c++){e[c].headerCt.sortOnClick=!a.columnSelect}d.ddScrollConfig={vthresh:50,hthresh:50,frequency:300,increment:100};Ext.dd.ScrollManager.register(d);(a.scrollEls||(a.scrollEls=[])).push(d);b.on('cellmousedown',a.handleMouseDown,a);if(b.lockingPartner){b.lockingPartner.on('cellmousedown',a.handleMouseDown,a)}},handleMouseDown:function(f,k,h,i,l,j,c){var b=this,a=b.selected,g=c.position.column,d,e;if(c.button||c.shiftKey||c.altKey||c.pointerType==='touch'||f.actionableMode){return}if(g){b.mousedownPosition=c.position.clone();d=g===b.checkColumn;if(d){b.checkCellClicked=c.position.getCell(!0)}if(g===b.numbererColumn||d||!b.cellSelect){if(b.rowSelect){if(a&&a.isRows){if(!c.ctrlKey&&!d){a.clear()}}else {if(a){a.clear()}a=b.selected=new Ext.grid.selection.Rows(f)}e=!0}else if(b.columnSelect){if(a&&a.isColumns){if(!c.ctrlKey&&!d){a.clear()}}else {if(a){a.clear()}a=b.selected=new Ext.grid.selection.Columns(f)}e=!0}else {return !1}}else {if(a){a.clear()}if(!a||!a.isCells){a=b.selected=new Ext.grid.selection.Cells(f)}e=!0}b.lastOverRecord=b.lastOverColumn=null;Ext.getBody().on('mouseup',b.onMouseUp,b,{single:!0,view:a.view});if(e){a.view.el.on('mousemove',b.onMouseMove,b,{view:a.view})}}},onMouseMove:function(l,m,k){var a=this,i=k.view,d,j,h=l.getTarget(i.cellSelector),c=k.view.getHeaderByCell(h),b=a.selected,g,f,e;if(a.checkCellClicked){if(h===a.checkCellClicked){if(!a.lastOverRecord){a.lastOverRecord=i.getRecord(h.parentNode)}return}else {a.checkCellClicked=null;if(a.lastOverRecord){a.select(a.lastOverRecord);b.setRangeStart(a.store.indexOf(a.lastOverRecord))}}}if(a.extensible){a.extensible.disable()}if(c){d=i.getRecord(h.parentNode);j=a.store.indexOf(d);f=d!==a.lastOverRecord;e=c!==a.lastOverColumn;if(f||e){g=a.getCellContext(d,c)}if(b.isRows){if(f){if(a.lastOverRecord){b.setRangeEnd(j)}else {b.setRangeStart(j)}}}else if(b.isCells){if(f||e){if(a.lastOverRecord){b.setRangeEnd(g)}else {b.setRangeStart(g)}}}else if(b.isColumns){if(e){if(a.lastOverColumn){b.setRangeEnd(g.column)}else {b.setRangeStart(g.column)}}}if(f||e){i.getNavigationModel().setPosition(new Ext.grid.CellContext(c.getView()).setPosition(d,c))}a.lastOverColumn=c;a.lastOverRecord=d}},onMouseUp:function(e,i,h){var a=this,b=h.view,g=a.lastOverRecord&&new Ext.grid.CellContext(b).setPosition(a.lastOverRecord,a.lastOverColumn),f=g&&!g.isEqual(a.mousedownPosition),c,d;a.checkCellClicked=null;if(b&&!b.destroyed){if(!e.position){c=e.getTarget(b.cellSelector);if(c){d=b.getRecord(c);if(d){e.position=new Ext.grid.CellContext(b).setPosition(d,b.getHeaderByCell(c))}}}if(a.extensible&&f){a.extensible.disable()}b.el.un('mousemove',a.onMouseMove,a);if(a.selected.isRows){a.selected.addRange()}if(f){a.fireSelectionChange()}}},addCheckbox:function(d,e){var b=this,a=b.checkboxColumnIndex,c=d.headerCt;if(a!==!1){if(a==='first'){a=0}else if(a==='last'){a=c.getColumnCount()}b.checkColumn=c.add(a,b.getCheckboxHeaderConfig())}if(e!==!0){d.refresh()}},onNavigate:function(f){var b=this,d=f.view&&f.view.ownerGrid.view,h=f.record,a=b.selected,c=d&&new Ext.grid.CellContext(d).setPosition(h,f.column),e=f.keyEvent,i=e.ctrlKey,m=e.shiftKey,k=e.getKey(),g,j,l;if(!c){return}if(e.stopSelection){return}if(i&&(k===e.UP||k===e.LEFT||k===e.RIGHT||k===e.DOWN)){return}if(a&&(a.isCells||(a.isColumns&&!b.getRowSelect()&&!(i||m)))&&a.getCount()>1&&!e.shiftKey&&e.type==='click'){return}if(!(b.cellSelect||b.columnSelect||b.rowSelect)||!f.record||e.type==='mousedown'){return}if(i&&e.keyCode===e.A){if(!a||a.getCount()<2){b.selectAll()}else {b.deselectAll()}b.updateHeaderState();return}if(m){if(c.column===b.numbererColumn||c.column===b.checkColumn||!(b.cellSelect||b.columnSelect)||(a&&a.isRows)){if(b.rowSelect){if(!a||!a.isRows||a.view!==d){b.resetSelection(!0);a=b.selected=new Ext.grid.selection.Rows(d)}if(!a.getRangeSize()){j=f.previousRecordIndex;if(j==null){l=b.getLastSelected();j=l?b.store.indexOf(l):0}a.setRangeStart(j)}a.setRangeEnd(f.recordIndex);a.addRange();g=!0}}else {if(b.cellSelect){if(!a||!a.isCells||a.view!==d){b.resetSelection(!0);a=b.selected=new Ext.grid.selection.Cells(d)}if(!a.getRangeSize()){a.setRangeStart(f.previousPosition||b.getCellContext(0,0))}a.setRangeEnd(c);g=!0}else if(b.columnSelect){if(!a||!a.isColumns||a.view!==d){b.resetSelection(!0);a=b.selected=new Ext.grid.selection.Columns(d)}if(!a.getCount()){a.setRangeStart(c.column)}a.setRangeEnd(f.position.column);g=!0}}}else {if(c.column===b.numbererColumn||c.column===b.checkColumn||(b.rowSelect&&!b.cellSelect)){if(!a||!a.isRows||a.view!==d){b.resetSelection(!0);a=b.selected=new Ext.grid.selection.Rows(d)}if(i||c.column===b.checkColumn){if(a.contains(h)){a.remove(h)}else {a.add(h)}}else {a.clear();a.add(h);a.setRangeStart(c.rowIdx,!0)}g=!0}else {if(b.cellSelect){if(!a||!a.isCells||a.view!==d){b.resetSelection(!0);b.selected=a=new Ext.grid.selection.Cells(d)}else {a.clear()}a.setRangeStart(c);g=!0}else if(b.columnSelect){if(!a||!a.isColumns||a.view!==d){b.resetSelection(!0);b.selected=a=new Ext.grid.selection.Columns(d)}if(i){if(a.contains(c.column)){a.remove(c.column)}else {a.add(c.column)}}else {a.setRangeStart(c.column)}g=!0}}}if(g){if(a.isRows){b.updateHeaderState()}b.lastOverRecord=h;b.lastOverColumn=c.column;b.fireSelectionChange()}},maybeClearSelection:function(d){var i=this,c=i.selected,a=c.startCell,b=c.endCell,g=d.column,f=d.colIdx,h=d.rowIdx,e;if(a&&(a.column===g||a.colIdx===f)&&a.rowIdx===h){c.startCell=e=null}if(b&&(b.column===g||b.colIdx===f)&&b.rowIdx===h){c.endCell=e=null}return e===null},isRowSelected:function(a){var c=this,b=c.selected;if(b&&b.isRows){a=Ext.isNumber(a)?c.store.getAt(a):a;return b.contains(a)}else {return !1}},isColumnSelected:function(b){var c=this,a=c.selected;if(a&&a.isColumns){return a.contains(b)}else {return !1}},isCellSelected:function(c,e,a){var f=this,d,b=f.selected;c=c.ownerGrid.view;if(b){if(b.isColumns){if(typeof a==='number'){a=c.getVisibleColumnManager().getColumns()[a]}return b.contains(a)}if(b.isCells){d=new Ext.grid.CellContext(c).setPosition({row:e,column:a});return b.contains(d)}}return !1},applySelected:function(a){return a},updateSelected:function(a,g){var b,e,f,d,c;if(g){g.clear()}if(a&&a.getCount()){b=a.view;if(a.isRows){a.eachRow(b.onRowSelect,b)}else if(a.isColumns){e=a.getColumns();f=e.length;if(f){c=new Ext.grid.CelContext(b);b.store.each(function(h){c.setRow(h);for(d=0;d<f;d++){c.setColumn(e[d]);b.onCellSelect(c)}})}}else if(a.isCells){a.eachCell(b.onCellSelect,b)}}},getNumbererColumn:function(d){var b=this,c=b.numbererColumn,a=b.view;if(!c){if(a.isNormalView){a=a.ownerGrid.lockedGrid}c=b.numbererColumn=a.headerCt.down('rownumberer')||a.headerCt.add(0,b.getNumbererColumnConfig())}return c},updateRowSelect:function(c){var a=this,b=a.selected,d=a.view;if(d&&d.rendered){if(c){if(a.checkColumn){a.checkColumn.show()}a.getNumbererColumn().show()}else {if(a.checkColumn){a.checkColumn.hide()}if(a.numbererColumn){a.numbererColumn.hide()}}if(!c&&b&&b.isRows){b.clear();a.fireSelectionChange()}}},updateColumnSelect:function(c){var a=this,e=a.selected,d=a.views,f=d?d.length:0,b;for(b=0;b<f;b++){d[b].headerCt.sortOnClick=!c}if(!c&&e&&e.isColumns){e.clear();a.fireSelectionChange()}if(c){a.view.ownerGrid.addCls(a.columnSelectCls)}else {a.view.ownerGrid.removeCls(a.columnSelectCls)}},updateCellSelect:function(c){var b=this,a=b.selected;if(!c&&a&&a.isCells){a.clear();b.fireSelectionChange()}},fireSelectionChange:function(){var a=this,b=a.selected,g=b.view,f=g.ownerGrid,e=g.dataSource,c,d;a.updateSelectionExtender();if(b.isRows){c=b.getRecords();d=e.getTotalCount()||e.getCount();a.selected.allSelected=!!(e.isBufferedStore?a.selected.allSelected:d&&c.length&&(d===c.length));a.fireEvent('selectionchange',a,c)}else if(b.isCells){a.selected.allSelected=!1;a.fireEvent('selectionchange',a,b.getCount()?a.store.getRange.apply(b.view.dataSource,b.getRowRange()):[])}f.fireEvent('selectionchange',f,b)},getLastSelected:function(){var a=this.selected;if(a.getLastSelected){return a.getLastSelected()}},updateSelectionExtender:function(){var a=this.selected;if(a){a.onSelectionFinish()}},onSelectionFinish:function(d,b,c){var a=this.getExtensible();if(a){a.setHandle(b,c)}},applyExtensible:function(a){var b=this;if(!a){return undefined}if(a===!0||typeof a==='string'){a={axes:b.axesConfigs[a]}}else {a=Ext.Object.chain(a)}a.view=b.selected.view;return new Ext.grid.selection.SelectionExtender(a)},extendSelection:function(b){var a=this,c=a.selected;if(a.view.ownerGrid.fireEvent('beforeselectionextend',a.view.ownerGrid,c,b)!==!1){c.extendRange(b);a.fireSelectionChange()}},onIdChanged:function(e,c,b,d){var a=this.selected;if(a&&a.isRows&&a.selectedRecords){a.selectedRecords.updateKey(c,b)}},onPageAdd:function(h,g,e){var c=this.selected,f=e.length,d,b,a=c&&c.selectedRecords;if(a&&c.isRows){for(d=0;d<f;d++){b=e[d];if(a.get(b.id)){a.replace(b)}else if(c.allSelected){a.add(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()}},onPageRemove:function(d,c,b){var a=this.selected;if(!(a&&a.allSelected)){this.onStoreRemove(this.store,b)}},onStoreRemove:function(){var a=this.getSelected();if(a&&a.isRows){Ext.selection.Model.prototype.onStoreRemove.apply(this,arguments)}}}},0,0,0,0,["selection.spreadsheet"],0,[Ext.grid.selection,'SpreadsheetModel'],function(a){var b=Ext.ClassManager.get('Ext.grid.column.RowNumberer');if(b){a.prototype.rowNumbererTdCls=Ext.grid.column.RowNumberer.prototype.tdCls+' x-ssm-row-numberer-cell'}}));(Ext.cmd.derive('Ext.util.Queue',Ext.Base,{constructor:function(){this.clear()},add:function(b,e){var a=this,c=a.getKey(b),d;if(!(d=a.map[c])){++a.length;a.items.push(b);a.map[c]=b}else if(e){a.map[c]=b;a.items[Ext.Array.indexOf(a.items,d)]=b}return b},clear:function(){var a=this,b=a.items;a.items=[];a.map={};a.length=0;return b},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(b){var a=this,e=a.getKey(b),d=a.items,c;if(a.map[e]){c=Ext.Array.indexOf(d,b);Ext.Array.erase(d,c,1);delete a.map[e];--a.length}return b}},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:!1,ownerSizePolicy:null,boxChildren:null,boxParent:null,children:[],dirty:null,dirtyCount:0,hasRawContent:!0,isContextItem:!0,isTopLevel:!1,consumersContentHeight:0,consumersContentWidth:0,consumersContainerHeight:0,consumersContainerWidth:0,consumersHeight:0,consumersWidth:0,ownerCtContext:null,remainingChildDimensions:0,props:null,state:null,wrapsComponent:!1,constructor:function(s){var a=this,o=Ext.layout.SizeModel.sizeModels,l=o.configured,g=o.shrinkWrap,r,c,f,d,k,i,b,p,m,q,n,h,e,j;Ext.apply(a,s);b=a.target;r=a.el;a.id=b.id;a.flushedProps={};a.props=k={};a.styles={};if(!b.isComponent){c=r.lastBox}else {a.wrapsComponent=!0;a.framing=b.frameSize||null;a.isComponentChild=b.ownerLayout&&b.ownerLayout.isComponentLayout;c=b.lastBox;f=b.ownerCt;if(f&&(d=f.el&&a.context.items[f.el.id])){a.ownerCtContext=d}a.sizeModel=i=b.getSizeModel(d&&d.widthModel.pairsByHeightOrdinal[d.heightModel.ordinal]);a.widthModel=h=i.width;a.heightModel=e=i.height;if(c&&c.invalid===!1){q=(b.width===(p=c.width));n=(b.height===(m=c.height));if(h===g&&e===g){j=!0}else if(h===l&&q){j=e===g||(e===l&&n)}if(j){a.optOut=!0;k.width=p;k.height=m}}}a.lastBox=c},init:function(r,i){var a=this,c=a.props,e=a.dirty,b=a.ownerCtContext,h=a.target.ownerLayout,j=!a.state,s=r||j,n,l,t,q,k,d,o=a.heightModel,p=a.widthModel,f,g,m=0;a.dirty=a.invalid=!1;a.props={};a.remainingChildDimensions=0;if(a.boxChildren){a.boxChildren.length=0}if(!j){a.clearAllBlocks('blocks');a.clearAllBlocks('domBlocks')}if(!a.wrapsComponent){return s}d=a.target;a.state={};if(j){if(d.beforeLayout&&d.beforeLayout!==Ext.emptyFn){d.beforeLayout()}if(!b&&(q=d.ownerCt)){b=a.context.items[q.el.id]}if(b){a.ownerCtContext=b;a.isBoxParent=h&&h.isItemBoxParent(a)}else {a.isTopLevel=!0}a.frameBodyContext=a.getEl('frameBody')}else {b=a.ownerCtContext;a.isTopLevel=!b;n=a.children;for(l=0,t=n.length;l<t;++l){n[l].init(!0)}}a.hasRawContent=!(d.isContainer&&d.items.items.length>0);if(r){a.widthModel=a.heightModel=null;k=d.getSizeModel(b&&b.widthModel.pairsByHeightOrdinal[b.heightModel.ordinal]);if(j){a.sizeModel=k}a.widthModel=k.width;a.heightModel=k.height;if(b&&!a.isComponentChild){if(h.needsItemSize||!d.liquidLayout){b.remainingChildDimensions+=2}else {if(a.widthModel.calculated){++b.remainingChildDimensions}if(a.heightModel.calculated){++b.remainingChildDimensions}}}}else if(c){a.recoverProp('x',c,e);a.recoverProp('y',c,e);if(a.widthModel.calculated){a.recoverProp('width',c,e)}else if('width' in c){++m}if(a.heightModel.calculated){a.recoverProp('height',c,e)}else if('height' in c){++m}if(b&&!a.isComponentChild){b.remainingChildDimensions+=m}}if(c&&h&&h.manageMargins){a.recoverProp('margin-top',c,e);a.recoverProp('margin-right',c,e);a.recoverProp('margin-bottom',c,e);a.recoverProp('margin-left',c,e)}if(i){f=i.heightModel;g=i.widthModel;if(g&&f&&p&&o){if(p.shrinkWrap&&o.shrinkWrap){if(g.constrainedMax&&f.constrainedMin){f=null}}}if(g){a.widthModel=g}if(f){a.heightModel=f}if(i.state){Ext.apply(a.state,i.state)}}return s},initContinue:function(f){var b=this,a=b.ownerCtContext,g=b.target,c=b.widthModel,e=g.getInherited(),d;if(c.fixed){e.inShrinkWrapTable=!1}else {delete e.inShrinkWrapTable}if(f){if(a&&c.shrinkWrap){d=a.isBoxParent?a:a.boxParent;if(d){d.addBoxChild(b)}}else if(c.natural){b.boxParent=a}}return f},initDone:function(d){var a=this,b=a.props,c=a.state;if(a.remainingChildDimensions===0){b.containerChildrenSizeDone=!0}if(d){b.containerLayoutDone=!0}if(a.boxChildren&&a.boxChildren.length&&a.widthModel.shrinkWrap){a.el.setWidth(10000);c.blocks=(c.blocks||0)+1}},initAnimation:function(){var a=this,b=a.target,c=a.ownerCtContext;if(c&&c.isTopLevel){a.animatePolicy=b.ownerLayout.getAnimatePolicy(a)}else if(!c&&b.isCollapsingOrExpanding&&b.animCollapse){a.animatePolicy=b.componentLayout.getAnimatePolicy(a)}if(a.animatePolicy){a.context.queueAnimation(a)}},addBlock:function(f,a,e){var b=this,d=b[f]||(b[f]={}),c=d[e]||(d[e]={});if(!c[a.id]){c[a.id]=a;++a.blockCount;++b.context.blockCount}},addBoxChild:function(a){var d=this,b,c=a.widthModel;a.boxParent=this;a.measuresBox=c.shrinkWrap?a.hasRawContent:c.natural;if(a.measuresBox){b=d.boxChildren;if(b){b.push(a)}else {d.boxChildren=[a]}}},addPositionStyles:function(b,c){var d=c.x,e=c.y,a=0;if(d!==undefined){b[this.translateProps.x]=d+'px';++a}if(e!==undefined){b.top=e+'px';++a}return a},addTrigger:function(c,e){var b=this,h=e?'domTriggers':'triggers',f=b[h]||(b[h]={}),g=b.context,a=g.currentLayout,d=f[c]||(f[c]={});if(!d[a.id]){d[a.id]=a;++a.triggerCount;d=g.triggers[e?'dom':'data'];(d[a.id]||(d[a.id]=[])).push({item:this,prop:c});if(b.props[c]!==undefined){if(!e||!(b.dirty&&(c in b.dirty))){++a.firedTriggers}}}},boxChildMeasured:function(){var a=this,b=a.state,c=(b.boxesMeasured=(b.boxesMeasured||0)+1);if(c===a.boxChildren.length){b.clearBoxWidth=1;++a.context.progressCount;a.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(b){var a=b.getStyles(b.borderNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},marginInfo:function(b){var a=b.getStyles(b.marginNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a},paddingInfo:function(b){var c=b.frameBodyContext||b,a=c.getStyles(b.paddingNames,b.trblNames);a.width=a.left+a.right;a.height=a.top+a.bottom;return a}},checkCache:function(a){return this.cacheMissHandlers[a](this)},clearAllBlocks:function(c){var a=this[c],b;if(a){for(b in a){this.clearBlocks(c,b)}}},clearBlocks:function(g,f){var c=this[g],b=c&&c[f],d,a,e;if(b){delete c[f];d=this.context;for(e in b){a=b[e];--d.blockCount;if(!--a.blockCount&&!a.pending&&!a.done){d.queueLayout(a)}}}},block:function(b,a){this.addBlock('blocks',b,a)},domBlock:function(b,a){this.addBlock('domBlocks',b,a)},fireTriggers:function(g,e){var c=this[g],b=c&&c[e],f=this.context,a,d;if(b){for(d in b){a=b[d];++a.firedTriggers;if(!a.done&&!a.blockCount&&!a.pending){f.queueLayout(a)}}}},flush:function(){var a=this,d=a.dirty,b=a.state,c=a.el;a.dirtyCount=0;if('attributes' in a){c.set(a.attributes);delete a.attributes}if('innerHTML' in a){c.innerHTML=a.innerHTML;delete a.innerHTML}if(b&&b.clearBoxWidth){b.clearBoxWidth=0;a.el.setStyle('width',null);if(!--b.blocks){a.context.queueItemLayouts(a)}}if(d){delete a.dirty;a.writeProps(d,!0)}},flushAnimations:function(){var b=this,m=b.previousSize,a,j,i,n,g,d,h,f,o,c,k,e,l;if(m){a=b.target;i=a.getAnimationProps();n=i.duration;g=Ext.Object.getKeys(b.animatePolicy);d=Ext.apply({},{from:{},to:{},duration:n||Ext.fx.Anim.prototype.duration},i);for(h=0,f=0,o=g.length;f<o;f++){c=g[f];k=m[c];e=b.peek(c);if(k!==e&&e!=null){c=b.translateProps[c]||c;d.from[c]=k;d.to[c]=e;++h}}if(h){if(b.isCollapsingOrExpanding===1){a.componentLayout.undoLayout(b)}else {b.writeProps(d.from)}b.el.animate(d);j=Ext.fx.Manager.getFxQueue(b.el.id);d=j[j.length-1];a.$layoutAnim=d;d.on({afteranimate:function(){delete a.$layoutAnim;if(a.destroying||a.destroyed){return}var c=b.isCollapsingOrExpanding;if(c===1){a.componentLayout.redoLayout(b);a.afterCollapse(!0)}else if(c===2){a.afterExpand(!0)}if(a.hasListeners.afterlayoutanimation){a.fireEvent('afterlayoutanimation',a)}}})}else {l=b.isCollapsingOrExpanding;if(l===1){a.afterCollapse(!0)}else if(l===2){a.afterExpand(!0)}}}},getBorderInfo:function(){var b=this,a=b.borderInfo;if(!a){b.borderInfo=a=b.checkCache('borderInfo')}return a},getEl:function(b,f){var d=this,c,a,e;if(b){if(b.dom){a=b}else {c=d.target;if(f){c=f}a=c[b];if(typeof a==='function'){a=a.call(c);if(a===d.el){return this}}}if(a){e=d.context.getEl(d,a)}}return e||null},getFrameInfo:function(){var c=this,d=c.frameInfo,a,b;if(!d){a=c.framing;b=c.getBorderInfo();c.frameInfo=d=a?{top:a.top+b.top,right:a.right+b.right,bottom:a.bottom+b.bottom,left:a.left+b.left,width:a.width+b.width,height:a.height+b.height}:b}return d},getMarginInfo:function(){var b=this,a=b.marginInfo,c,f,d,e;if(!a){if(!b.wrapsComponent){a=b.checkCache('marginInfo')}else {c=b.target;d=c.ownerLayout;e=d?d.id:null;f=d&&d.manageMargins;a=c.margin$;if(a&&a.ownerId!==e){a=null}if(!a){a=b.parseMargins(c,c.margin)||b.checkCache('marginInfo');if(f){b.setProp('margin-top',0);b.setProp('margin-right',0);b.setProp('margin-bottom',0);b.setProp('margin-left',0)}a.ownerId=e;c.margin$=a}a.width=a.left+a.right;a.height=a.top+a.bottom}b.marginInfo=a}return a},clearMarginCache:function(){delete this.marginInfo;delete this.target.margin$},getPaddingInfo:function(){var b=this,a=b.paddingInfo;if(!a){b.paddingInfo=a=b.checkCache('paddingInfo')}return a},getProp:function(a){var b=this,c=b.props[a];b.addTrigger(a);return c},getDomProp:function(b){var a=this,c=(a.dirty&&(b in a.dirty))?undefined:a.props[b];a.addTrigger(b,!0);return c},getStyle:function(b){var e=this,c=e.styles,d,a;if(b in c){a=c[b]}else {d=e.styleInfo[b];a=e.el.getStyle(b);if(d&&d.parseInt){a=parseInt(a,10)||0}c[b]=a}return a},getStyles:function(f,e){var l=this,i=l.styles,j={},h=0,o=f.length,a,b,d,c,k,m,n,g;e=e||f;for(a=0;a<o;++a){c=f[a];if(c in i){j[e[a]]=i[c];++h;if(a&&h===1){b=f.slice(0,a);d=e.slice(0,a)}}else if(h){(b||(b=[])).push(c);(d||(d=[])).push(e[a])}}if(h<o){b=b||f;d=d||e;m=l.styleInfo;n=l.el.getStyle(b);for(a=b.length;a--;){c=b[a];k=m[c];g=n[c];if(k&&k.parseInt){g=parseInt(g,10)||0}j[d[a]]=g;i[c]=g}}return j},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(c,a){if(a===!0){a=5}var d=typeof a,b;if(d==='string'||d==='number'){b=c.parseBox(a)}else if(a){b={top:0,right:0,bottom:0,left:0};if(a){a=Ext.apply(b,c.parseBox(a))}}return b},peek:function(a){return this.props[a]},recalculateSizeModel:function(){var a=this,e=a.target,b=e.componentLayout,c=a.ownerCtContext,f=b.ownerContext,d;b.ownerContext=null;a.sizeModel=d=e.getSizeModel(c&&c.widthModel.pairsByHeightOrdinal[c.heightModel.ordinal]);a.widthModel=d.width;a.heightModel=d.height;if(f){b.ownerContext=a}},recoverProp:function(a,d,b){var c=this,f=c.props,e;if(a in d){f[a]=d[a];if(b&&a in b){e=c.dirty||(c.dirty={});e[a]=b[a]}}},redo:function(e){var c=this,b,d,a;c.revertProps(c.props);if(e&&c.wrapsComponent){if(c.childItems){for(a=0,b=c.childItems,d=b.length;a<d;a++){b[a].redo(e)}}for(a=0,b=c.children,d=b.length;a<d;a++){b[a].redo()}}},removeEl:function(b,e){var d=this,c,a;if(b){if(b.dom){a=b}else {c=d.target;if(e){c=e}a=c[b];if(typeof a==='function'){a=a.call(c);if(a===d.el){return this}}}if(a){d.context.removeEl(a,d)}}},revertProps:function(c){var a,d=this.flushedProps,b={};for(a in c){if(d.hasOwnProperty(a)){b[a]=c[a]}}this.writeProps(b)},setAttribute:function(c,b){var a=this;if(!a.attributes){a.attributes={}}a.attributes[c]=b;a.markDirty()},setBox:function(a){var b=this;if('left' in a){b.setProp('x',a.left)}if('top' in a){b.setProp('y',a.top)}b.setSize(a.width,a.height)},setContentHeight:function(b,a){if(!a&&this.hasRawContent){return 1}return this.setProp('contentHeight',b)},setContentWidth:function(b,a){if(!a&&this.hasRawContent){return 1}return this.setProp('contentWidth',b)},setContentSize:function(c,b,a){return this.setContentWidth(c,a)+this.setContentHeight(b,a)===2},setProp:function(b,c,f){var a=this,d=typeof c,e;if(d==='undefined'||(d==='number'&&isNaN(c))){return 0}if(a.props[b]===c){return 1}a.props[b]=c;++a.context.progressCount;if(f===!1){a.fireTriggers('domTriggers',b);a.clearBlocks('domBlocks',b)}else {e=a.styleInfo[b];if(e){if(!a.dirty){a.dirty={}}a.dirty[b]=c;a.markDirty()}}a.fireTriggers('triggers',b);a.clearBlocks('blocks',b);return 1},setHeight:function(b,e){var a=this,h=a.target,c=a.ownerCtContext,d,f,i,g,j;if(b<0){b=0}if(!a.wrapsComponent){if(!a.setProp('height',b,e)){return NaN}}else {i=a.collapsedVert?0:(h.minHeight||0);b=Ext.Number.constrain(b,i,h.maxHeight);g=a.props.height;if(!a.setProp('height',b,e)){return NaN}if(c&&!a.isComponentChild&&isNaN(g)){j=--c.remainingChildDimensions;if(!j){c.setProp('containerChildrenSizeDone',!0)}}d=a.frameBodyContext;if(d){f=a.getFrameInfo();d[a.el.vertical?'setWidth':'setHeight'](b-f.height,e)}}return b},setWidth:function(b,e){var a=this,h=a.target,c=a.ownerCtContext,d,f,i,g,j;if(b<0){b=0}if(!a.wrapsComponent){if(!a.setProp('width',b,e)){return NaN}}else {i=a.collapsedHorz?0:(h.minWidth||0);b=Ext.Number.constrain(b,i,h.maxWidth);g=a.props.width;if(!a.setProp('width',b,e)){return NaN}if(c&&!a.isComponentChild&&isNaN(g)){j=--c.remainingChildDimensions;if(!j){c.setProp('containerChildrenSizeDone',!0)}}d=a.frameBodyContext;if(d){f=a.getFrameInfo();d.setWidth(b-f.width,e)}}return b},setSize:function(c,b,a){this.setWidth(c,a);this.setHeight(b,a)},translateProps:{x:'left',y:'top'},undo:function(e){var c=this,b,d,a;c.revertProps(c.lastBox);if(e&&c.wrapsComponent){if(c.childItems){for(a=0,b=c.childItems,d=b.length;a<d;a++){b[a].undo(e)}}for(a=0,b=c.children,d=b.length;a<d;a++){b[a].undo()}}},unsetProp:function(a){var b=this.dirty;delete this.props[a];if(b){delete b[a]}},writeProps:function(a,t){if(!(a&&typeof a==='object')){return}var b=this,r=b.el,e={},g=0,s=b.styleInfo,h,c,m,k=a.width,i=a.height,j=b.target,o,n,f,l,q,p,d;if('displayed' in a){r.setDisplayed(a.displayed)}for(c in a){if(t){b.fireTriggers('domTriggers',c);b.clearBlocks('domBlocks',c);b.flushedProps[c]=1}h=s[c];if(h&&h.dom){if(h.suffix&&(m=parseInt(a[c],10))){e[c]=m+h.suffix}else {e[c]=a[c]}++g}}if('x' in a||'y' in a){if(j.isComponent){j.setPosition(a.x,a.y)}else {g+=b.addPositionStyles(e,a)}}if('overflowX' in a){d=j.getScrollable();if(d){d.setX(a.overflowX)}}if('overflowY' in a){if(d||(d=j.getScrollable())){d.setY(a.overflowY)}}if(b.wrapsComponent&&Ext.isIE9){if((o=k!==undefined&&b.hasOverflowY)||(n=i!==undefined&&b.hasOverflowX)){f=b.isAbsolute;if(f===undefined){f=!1;p=b.target.getTargetEl();q=p.getStyle('position');b.isAbsolute=f=(q==='absolute')}if(f){l=Ext.getScrollbarSize();if(o){k=parseInt(k,10)+l.width;e.width=k+'px';++g}if(n){i=parseInt(i,10)+l.height;e.height=i+'px';++g}}}}if(g){r.setStyle(e)}}},1,0,0,0,0,0,[Ext.layout,'ContextItem'],function(){var a={dom:!0,parseInt:!0,suffix:'px'},c={dom:!0},b={dom:!1};this.prototype.styleInfo={containerChildrenSizeDone:b,containerLayoutDone:b,displayed:b,done:b,x:b,y:b,columnsChanged:b,rowHeights:b,viewOverflowY:b,overflowX:b,overflowY:b,left:a,top:a,right:a,bottom:a,width:a,height:a,'border-top-width':a,'border-right-width':a,'border-bottom-width':a,'border-left-width':a,'margin-top':a,'margin-right':a,'margin-bottom':a,'margin-left':a,'padding-top':a,'padding-right':a,'padding-bottom':a,'padding-left':a,'line-height':c,display:c,clear:c}}));(Ext.cmd.derive('Ext.layout.Context',Ext.Base,{remainingLayouts:0,state:0,cycleWatchDog:200,constructor:function(b){var a=this;Ext.apply(a,b);a.items={};a.layouts={};a.blockCount=0;a.cycleCount=0;a.flushCount=0;a.calcCount=0;a.animateQueue=a.newQueue();a.completionQueue=a.newQueue();a.finalizeQueue=a.newQueue();a.finishQueue=a.newQueue();a.flushQueue=a.newQueue();a.invalidateData={};a.layoutQueue=a.newQueue();a.invalidQueue=[];a.triggers={data:{},dom:{}}},callLayout:function(a,b){this.currentLayout=a;a[b](this.getCmp(a.owner))},cancelComponent:function(a,p,o){var b=this,l=a,n=!a.isComponent,q=n?l.length:1,e,f,j,d,c,m,h,i,k,g;for(e=0;e<q;++e){if(n){a=l[e]}if(o){if(a.ownerCt){g=this.items[a.ownerCt.el.id];if(g){Ext.Array.remove(g.childItems,b.getCmp(a))}}else if(a.rendered){b.removeEl(a.el)}}if(!p){h=b.invalidQueue;j=h.length;if(j){b.invalidQueue=m=[];for(f=0;f<j;++f){i=h[f];k=i.item.target;if(k!==a&&!k.up(a)){m.push(i)}}}}c=a.componentLayout;b.cancelLayout(c);if(!a.destroying){if(c.getLayoutItems){d=c.getLayoutItems();if(d.length){b.cancelComponent(d,!0)}}if(a.isContainer&&!a.collapsed){c=a.layout;b.cancelLayout(c);d=c.getVisibleItems();if(d.length){b.cancelComponent(d,!0)}}}}},cancelLayout:function(a){var b=this;b.completionQueue.remove(a);b.finalizeQueue.remove(a);b.finishQueue.remove(a);b.layoutQueue.remove(a);if(a.running){b.layoutDone(a)}a.ownerContext=null},clearTriggers:function(h,f){var g=h.id,a=this.triggers[f?'dom':'data'],c=a&&a[g],i=(c&&c.length)||0,b,e,d;for(b=0;b<i;++b){d=c[b];e=d.item;a=f?e.domTriggers:e.triggers;delete a[d.prop][g]}},flush:function(){var d=this,c=d.flushQueue.clear(),b=c.length,a;if(b){++d.flushCount;for(a=0;a<b;++a){c[a].flush()}}},flushAnimations:function(){var d=this,b=d.animateQueue.clear(),c=b.length,a;if(c){for(a=0;a<c;a++){if(b[a].target.animate!==!1){b[a].flushAnimations()}}Ext.fx.Manager.runner()}},flushInvalidates:function(){var b=this,f=b.invalidQueue,g=f&&f.length,a,d,e,c;b.invalidQueue=[];if(g){d=[];for(c=0;c<g;++c){a=(e=f[c]).item.target;if(!a.container.isDetachedBody){d.push(a);if(e.options){b.invalidateData[a.id]=e.options}}}b.invalidate(d,null)}},flushLayouts:function(d,g,h){var a=this,e=h?a[d].items:a[d].clear(),f=e.length,b,c;if(f){for(b=0;b<f;++b){c=e[b];if(!c.running){a.callLayout(c,g)}}a.currentLayout=null}},getCmp:function(a){return this.getItem(a,a.el)},getEl:function(a,c){var b=this.getItem(c,c,a);if(!b.parent){b.parent=a;if(a.children.length){a.children.push(b)}else {a.children=[b]}}return b},getItem:function(e,b,d){var c=b.id,a=this.items,f=a[c]||(a[c]=new Ext.layout.ContextItem({context:this,target:e,el:b,componentContext:d}));return f},handleFailure:function(){var a=this.layouts,b,c;Ext.failedLayouts=(Ext.failedLayouts||0)+1;for(c in a){b=a[c];if(a.hasOwnProperty(c)){b.running=!1;b.ownerContext=null}}},invalidate:function(i,q){var d=this,o=!i.isComponent,l,h,m,k,c,a,g,p,e,b,f,n,j;for(k=0,p=o?i.length:1;k<p;++k){c=o?i[k]:i;if(c.rendered&&!c.hidden){h=c.ownerLayout;e=c.componentLayout;j=!1;if((!h||!h.needsItemSize)&&c.liquidLayout){j=!0}if(!j||(h&&h.setsItemSize)){a=d.getCmp(c);m=!a.state;b=(c.isContainer&&!c.collapsed)?c.layout:null;f=d.invalidateData[a.id];delete d.invalidateData[a.id];n=a.init(q,f)}if(j){continue}if(f){d.processInvalidate(f,a,'before')}if(e.beforeLayoutCycle){e.beforeLayoutCycle(a)}if(b&&b.beforeLayoutCycle){b.beforeLayoutCycle(a)}n=a.initContinue(n);l=!0;if(e.getLayoutItems){e.renderChildren();g=e.getLayoutItems();if(g.length){d.invalidate(g,!0)}}if(b){l=!1;b.renderChildren();if(b.needsItemSize||b.activeItemCount){g=b.getVisibleItems();if(g.length){d.invalidate(g,!0)}}}a.initDone(l);d.resetLayout(e,a,m);if(b){d.resetLayout(b,a,m)}a.initAnimation();if(f){d.processInvalidate(f,a,'after')}}}d.currentLayout=null},isDescendant:function(b,c){if(b.isContainer){for(var a=c.ownerCt;a;a=a.ownerCt){if(a===b){return !0}}}return !1},layoutDone:function(b){var a=b.ownerContext;b.running=!1;if(b.isComponentLayout){if(a.measuresBox){a.onBoxMeasured()}a.setProp('done',!0)}else {a.setProp('containerLayoutDone',!0)}--this.remainingLayouts;++this.progressCount},newQueue:function(){return new Ext.util.Queue()},processInvalidate:function(a,e,c){if(a[c]){var b=this,d=b.currentLayout;b.currentLayout=a.layout||null;a[c](e,a);b.currentLayout=d}},queueAnimation:function(a){this.animateQueue.add(a)},queueCompletion:function(a){this.completionQueue.add(a)},queueFinalize:function(a){this.finalizeQueue.add(a)},queueFlush:function(b,a){this.flushQueue.add(b,a)},chainFns:function(b,a,d){var c=this,g=b.layout,f=a.layout,e=b[d],h=a[d];return function(i){var j=c.currentLayout;if(e){c.currentLayout=g;e.call(b.scope||b,i,b)}c.currentLayout=f;h.call(a.scope||a,i,a);c.currentLayout=j}},purgeInvalidates:function(){var j=this,a=[],i=j.invalidQueue,k=i.length,c,b,h,e,d,f,g;for(c=0;c<k;++c){d=i[c];f=d.item.target;g=!0;for(b=a.length;b--;){h=a[b];e=h.item.target;if(f.isLayoutChild(e)){g=!1;break}if(e.isLayoutChild(f)){Ext.Array.erase(a,b,1)}}if(g){a.push(d)}}j.invalidQueue=a},queueInvalidate:function(c,a){var e=this,h=[],i=e.invalidQueue,k=i.length,d,f,g,b,j;if(c.isComponent){d=c;c=e.items[d.el.id];if(c){c.recalculateSizeModel()}else {c=e.getCmp(d)}}else {d=c.target}c.invalid=!0;while(k--){f=i[k];g=f.item.target;if(!d.isFloating&&d.up(g)){return}if(g===d){if(!(b=f.options)){f.options=a}else if(a){if(a.widthModel){b.widthModel=a.widthModel}if(a.heightModel){b.heightModel=a.heightModel}if(!(j=b.state)){b.state=a.state}else if(a.state){Ext.apply(j,a.state)}if(a.before){b.before=e.chainFns(b,a,'before')}if(a.after){b.after=e.chainFns(b,a,'after')}}return}if(!g.isLayoutChild(d)){h.push(f)}}h.push({item:c,options:a});e.invalidQueue=h},queueItemLayouts:function(c){var b=c.isComponent?c:c.target,a=b.componentLayout;if(!a.pending&&!a.invalid&&!a.done){this.queueLayout(a)}a=b.layout;if(a&&!a.pending&&!a.invalid&&!a.done&&!b.collapsed){this.queueLayout(a)}},queueLayout:function(a){this.layoutQueue.add(a);a.pending=!0},removeEl:function(e,b){var d=e.id,a=b?b.children:null,c=this.items;if(a){Ext.Array.remove(a,c[d])}delete c[d]},resetLayout:function(a,c,d){var b=this;b.currentLayout=a;a.done=!1;a.pending=!0;a.firedTriggers=0;b.layoutQueue.add(a);if(d){b.layouts[a.id]=a;a.running=!0;if(a.finishedLayout){b.finishQueue.add(a)}++b.remainingLayouts;++a.layoutCount;a.ownerContext=c;a.beginCount=0;a.blockCount=0;a.calcCount=0;a.triggerCount=0;if(!a.initialized){a.initLayout()}a.beginLayout(c)}else {++a.beginCount;if(!a.running){++b.remainingLayouts;a.running=!0;a.ownerContext=c;if(a.isComponentLayout){c.unsetProp('done')}b.completionQueue.remove(a);b.finalizeQueue.remove(a)}}a.beginLayoutCycle(c,d)},run:function(){var a=this,b=!1,c=a.cycleWatchDog;a.purgeInvalidates();a.flushInvalidates();a.state=1;a.totalCount=a.layoutQueue.getCount();a.flush();while((a.remainingLayouts||a.invalidQueue.length)&&c--){if(a.invalidQueue.length){a.flushInvalidates()}if(a.runCycle()){b=!1}else if(!b){a.flush();b=!0;a.flushLayouts('completionQueue','completeLayout')}else if(!a.invalidQueue.length){a.state=2;break}if(!(a.remainingLayouts||a.invalidQueue.length)){a.flush();a.flushLayouts('completionQueue','completeLayout');a.flushLayouts('finalizeQueue','finalizeLayout')}}return a.runComplete()},runComplete:function(){var a=this;a.state=2;if(a.remainingLayouts){a.handleFailure();return !1}a.flush();a.flushLayouts('finishQueue','finishedLayout',!0);a.flushLayouts('finishQueue','notifyOwner');a.flush();a.flushAnimations();return !0},runCycle:function(){var a=this,c=a.layoutQueue.clear(),d=c.length,b;++a.cycleCount;a.progressCount=0;for(b=0;b<d;++b){a.runLayout(a.currentLayout=c[b])}a.currentLayout=null;return a.progressCount>0},runLayout:function(a){var b=this,c=b.getCmp(a.owner);a.pending=!1;if(c.state.blocks){return}a.done=!0;++a.calcCount;++b.calcCount;a.calculate(c);if(a.done){b.layoutDone(a);if(a.completeLayout){b.queueCompletion(a)}if(a.finalizeLayout){b.queueFinalize(a)}}else if(!a.pending&&!a.invalid&&!(a.blockCount+a.triggerCount-a.firedTriggers)){b.queueLayout(a)}},setItemSize:function(a,g,f){var b=a,c=1,e,d;if(a.isComposite){b=a.elements;c=b.length;a=b[0]}else if(!a.dom&&!a.el){c=b.length;a=b[0]}for(d=0;d<c;){e=this.get(a);e.setSize(g,f);a=b[++d]}}},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,f){var a=this,c=a.lastWidthModel,b=a.lastHeightModel,e=a.owner.body;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(c&&c.fixed&&d.widthModel.shrinkWrap){e.setWidth(null)}if(b&&b.fixed&&d.heightModel.shrinkWrap){e.setHeight(null)}},calculateOwnerHeightFromContentHeight:function(a,c){var b=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments);if(a.targetContext!==a){b+=a.getPaddingInfo().height}return b},calculateOwnerWidthFromContentWidth:function(a,c){var b=Ext.layout.component.Auto.prototype.calculateOwnerWidthFromContentWidth.apply(this,arguments);if(a.targetContext!==a){b+=a.getPaddingInfo().width}return b},measureContentWidth:function(a){return a.bodyContext.setWidth(a.bodyContext.el.dom.offsetWidth,!1)},measureContentHeight:function(a){return a.bodyContext.setHeight(a.bodyContext.el.dom.offsetHeight,!1)},publishInnerHeight:function(a,d){var b=d-a.getFrameInfo().height,c=a.targetContext;if(c!==a){b-=a.getPaddingInfo().height}return a.bodyContext.setHeight(b,!a.heightModel.natural)},publishInnerWidth:function(a,d){var b=d-a.getFrameInfo().width,c=a.targetContext;if(c!==a){b-=a.getPaddingInfo().width}a.bodyContext.setWidth(b,!a.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(a){var b=this.owner.legend;Ext.layout.component.Body.prototype.beginLayout.call(this,a);if(b){a.legendContext=a.context.getCmp(b)}},beginLayoutCycle:function(a){var c=a.target,b;Ext.layout.component.Body.prototype.beginLayoutCycle.apply(this,arguments);if(c.collapsed){a.setContentHeight(0);a.restoreMinHeight=c.minHeight;delete c.minHeight;if(a.widthModel.shrinkWrap){b=this.lastComponentSize;a.setContentWidth((b&&b.contentWidth)||this.defaultCollapsedWidth)}}},finishedLayout:function(b){var c=this.owner,a=b.restoreMinHeight;Ext.layout.component.Body.prototype.finishedLayout.apply(this,arguments);if(a){c.minHeight=a}},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(a,d){var c=a.getBorderInfo(),b=a.legendContext;return a.getProp('contentHeight')+a.getPaddingInfo().height+(Ext.isIE8?a.bodyContext.getPaddingInfo().top:0)+(b?b.getProp('height'):c.top)+c.bottom},publishInnerHeight:function(c,d){var b=c.legendContext,a=0;if(b){a=b.getProp('height')}if(a===undefined){this.done=!1}else {Ext.layout.component.Body.prototype.publishInnerHeight.call(this,c,d-a)}},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,a){var b=this.targetPadding,d=a.getStyle('left');return c-d+b.left},adjustHeightAnchor:function(c,a){var b=this.targetPadding,d=a.getStyle('top');return c-d+b.top},isItemShrinkWrap:function(a){return !0},onContentChange:function(b,a){var c=!1;if(b.anchor&&a&&a.show){c=Ext.layout.container.Anchor.prototype.onContentChange.call(this,b,a)}return c},beginLayout:function(a){var c=this,b=c.getTarget();Ext.layout.container.Anchor.prototype.beginLayout.call(this,a);if(b.dom!==document.body){b.position()}c.targetPadding=a.targetContext.getPaddingInfo()},isItemBoxParent:function(a){return !0},calculateContentSize:function(a,r){var n=this,o=(r||0)|((a.widthModel.shrinkWrap?1:0)|(a.heightModel.shrinkWrap?2:0)),d=(o&1)||undefined,c=(o&2)||undefined,p=a.childItems,s=p.length,e=0,f=0,k=0,q=a.props,h,l,b,j,g,i,m;if(d){if(isNaN(q.contentWidth)){++k}else {d=undefined}}if(c){if(isNaN(q.contentHeight)){++k}else {c=undefined}}if(k){for(g=0;g<s;++g){b=p[g];l=b.target;j=c&&b.getProp('height');m=d&&b.getProp('width');i=b.getMarginInfo();j+=i.bottom;m+=i.right;e=Math.max(e,(l.y||0)+j);f=Math.max(f,(l.x||0)+m);if(isNaN(e)&&isNaN(f)){n.done=!1;return}}if(d||c){h=a.targetContext.getPaddingInfo()}if(d&&!a.setContentWidth(f+h.width)){n.done=!1}if(c&&!a.setContentHeight(e+h.height)){n.done=!1}}}},0,0,0,0,["layout.absolute"],0,[Ext.layout.container,'Absolute',Ext.layout,'AbsoluteLayout'],0));(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:!1,fill:!0,titleCollapse:!0,hideCollapseTool:!1,collapseFirst:undefined,animate:!0,activeOnTop:!1,multi:!1,wrapOver:!0,panelCollapseMode:'header',defaultAnimatePolicy:{y:!0,height:!0},constructor:function(){var a=this;Ext.layout.container.VBox.prototype.constructor.apply(this,arguments);if(a.animate){a.animatePolicy={};a.animatePolicy[a.names.x]=!0;a.animatePolicy[a.names.width]=!0}else {a.animatePolicy=null}},beforeRenderItems:function(e){var b=this,i=e.length,g=b.owner,h=b.collapseFirst,j=Ext.isDefined(h),c=b.getExpanded(!0)[0],f=b.multi,a,d;for(d=0;d<i;d++){a=e[d];if(!a.rendered){a.isAccordionPanel=!0;a.bodyAriaRole='tabpanel';a.accordionWrapOver=b.wrapOver;if(!f||a.collapsible!==!1){a.collapsible=!0}if(a.collapsible){if(j){a.collapseFirst=h}if(b.hideCollapseTool){a.hideCollapseTool=b.hideCollapseTool;a.titleCollapse=!0}else if(b.titleCollapse&&a.titleCollapse===undefined){a.titleCollapse=b.titleCollapse}}a.hideHeader=a.width=null;a.title=a.title||'&#160;';a.addBodyCls('x-accordion-body');if(!f){if(c){a.collapsed=c!==a}else if(a.hasOwnProperty('collapsed')&&a.collapsed===!1){c=a}else {a.collapsed=!0}g.mon(a,'show',b.onComponentShow,b)}a.headerOverCls='x-accordion-hd-over'}}if(!b.processing&&!f){if(!c){if(i){e[0].collapsed=!1}}else if(b.activeOnTop){c.collapsed=!1;b.configureItem(c);if(g.items.indexOf(c)>0){g.insert(0,c)}}}},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=!0;a.animCollapse=!1;if(this.fill){a.flex=1}},beginLayout:function(a){Ext.layout.container.VBox.prototype.beginLayout.apply(this,arguments);this.innerCt.dom.setAttribute('role','tablist');this.innerCt.dom.setAttribute('aria-multiselectable',!0);this.updatePanelClasses(a)},updatePanelClasses:function(g){var e=g.visibleItems,f=e.length,d=!0,b,c,a;for(b=0;b<f;b++){c=e[b];a=c.header;a.addCls('x-accordion-hd');if(d){a.removeCls('x-accordion-hd-sibling-expanded')}else {a.addCls('x-accordion-hd-sibling-expanded')}if(b+1===f&&c.collapsed){a.addCls('x-accordion-hd-last-collapsed')}else {a.removeCls('x-accordion-hd-last-collapsed')}d=c.collapsed}},onBeforeComponentExpand:function(f){var a=this,c=a.owner,g=a.multi,h=!g&&!a.animate&&a.activeOnTop,b,e,d;if(!a.processing){a.processing=!0;e=c.deferLayouts;c.deferLayouts=!0;if(!g){b=a.getExpanded()[0];if(b&&b!==f){d=b.$layoutAnim;if(d){d.jumpToEnd()}b.collapse()}}if(h){Ext.suspendLayouts();c.insert(0,f);Ext.resumeLayouts()}c.deferLayouts=e;a.processing=!1}},onBeforeComponentCollapse:function(f){var a=this,c=a.owner,b,e,d;if(a.owner.items.getCount()===1){return !1}if(!a.processing){a.processing=!0;d=c.deferLayouts;c.deferLayouts=!0;b=f.next()||f.prev();if(a.multi){e=a.getExpanded();if(e.length===1){b.expand()}}else if(b){b.expand()}c.deferLayouts=d;a.processing=!1}},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=!0;b.collapse();a.processing=!1}},onRemove:function(c,d){var b=this,a;Ext.layout.container.VBox.prototype.onRemove.apply(this,arguments);if(!b.owner.destroying&&!b.multi&&!c.collapsed){a=b.owner.items.first();if(a){a.expand()}}},getExpanded:function(f){var d=this.owner.items.items,g=d.length,c=0,e=[],b,a;for(;c<g;++c){a=d[c];if(!a.hidden){if(f){b=a.hasOwnProperty('collapsed')&&a.collapsed===!1}else {b=!a.collapsed}if(b){e.push(a)}}}return e},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!==!1&&a.collapseMode=='mini'){a.addCls(a.baseCls+'-'+a.collapsedCls+'-mini')}},onTargetExpand:function(a){Ext.resizer.Splitter.prototype.onTargetExpand.call(this,a);if(this.performCollapse!==!1&&a.collapseMode=='mini'){a.removeCls(a.baseCls+'-'+a.collapsedCls+'-mini')}}},0,["bordersplitter"],["component","box","splitter","bordersplitter"],{"component":!0,"box":!0,"splitter":!0,"bordersplitter":!0},["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:!0,padding:undefined,percentageRe:/(\d+)%/,horzPositionProp:'left',padOnContainerProp:'left',padNotOnContainerProp:'right',axisProps:{horz:{borderBegin:'west',borderEnd:'east',horizontal:!0,posProp:'x',sizeProp:'width',sizePropCap:'Width'},vert:{borderBegin:'north',borderEnd:'south',horizontal:!1,posProp:'y',sizeProp:'height',sizePropCap:'Height'}},centerRegion:null,manageMargins:!0,panelCollapseAnimate:!0,panelCollapseMode:'placeholder',regionWeights:{north:20,south:10,center:0,west:-10,east:-20},beginAxis:function(n,t,k){var m=this,g=m.axisProps[k],e=!g.horizontal,s=g.sizeProp,i=0,p=n.childItems,u=p.length,d,h,a,c,b,j,q,l,r,f,o;for(h=0;h<u;++h){a=p[h];b=a.target;a.layoutPos={};if(b.region){a.region=j=b.region;a.isCenter=b.isCenter;a.isHorz=b.isHorz;a.isVert=b.isVert;a.weight=b.weight||m.regionWeights[j]||0;b.weight=a.weight;t[b.id]=a;if(b.isCenter){d=a;c=b.flex;n.centerRegion=d;continue}if(e!==a.isVert){continue}a.reverseWeighting=(j===g.borderEnd);l=b[s];r=typeof l;if(!b.collapsed){if(r==='string'&&(q=m.percentageRe.exec(l))){a.percentage=parseInt(q[1],10)}else if(b.flex){i+=a.flex=b.flex}}}}if(d){f=d.target;if((o=f.placeholderFor)){if(!c&&e===o.collapsedVertical()){c=0;d.collapseAxis=k}}else if(f.collapsed&&(e===f.collapsedVertical())){c=0;d.collapseAxis=k}}if(c==null){c=1}i+=c;return Ext.apply({before:e?'top':'left',totalFlex:i},g)},beginLayout:function(b){var c=this,f=c.getLayoutItems(),g=c.padding,o=typeof g,m=!1,d,j,l,e,k,a,h,n,i;if(g){if(o==='string'||o==='number'){g=Ext.util.Format.parseBox(g)}}else {g=b.getEl('getTargetEl').getPaddingInfo();m=!0}b.outerPad=g;b.padOnContainer=m;for(e=0,l=f.length;e<l;++e){j=f[e];a=c.getSplitterTarget(j);if(a){h=undefined;n=!!j.hidden;if(!a.split){if(a.isCollapsingOrExpanding){h=!!a.collapsed}}else if(n!==a.hidden){h=!a.hidden}if(h){j.show()}else if(h===!1){j.hide()}}}Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);f=b.childItems;l=f.length;k={};b.borderAxisHorz=c.beginAxis(b,k,'horz');b.borderAxisVert=c.beginAxis(b,k,'vert');for(e=0;e<l;++e){d=f[e];a=c.getSplitterTarget(d.target);if(a){i=k[a.id];if(!i){i=b.getEl(a.el,c);i.region=a.region}d.collapseTarget=a=i;d.weight=a.weight;d.reverseWeighting=a.reverseWeighting;a.splitter=d;d.isHorz=a.isHorz;d.isVert=a.isVert}}c.sortWeightedItems(f,'reverseWeighting');c.setupSplitterNeighbors(f)},calculate:function(e){var d=this,o=d.getContainerSize(e),j=e.childItems,m=j.length,f=e.borderAxisHorz,g=e.borderAxisVert,i=e.outerPad,n=e.padOnContainer,c,a,h,b,k,l;f.begin=i[d.padOnContainerProp];g.begin=i.top;k=f.end=f.flexSpace=o.width+(n?i[d.padOnContainerProp]:-i[d.padNotOnContainerProp]);l=g.end=g.flexSpace=o.height+(n?i.top:-i.bottom);for(c=0;c<m;++c){a=j[c];h=a.getMarginInfo();if(a.isHorz||a.isCenter){f.addUnflexed(h.width);k-=h.width}if(a.isVert||a.isCenter){g.addUnflexed(h.height);l-=h.height}if(!a.flex&&!a.percentage){if(a.isHorz||(a.isCenter&&a.collapseAxis==='horz')){b=a.getProp('width');f.addUnflexed(b);if(a.collapseTarget){k-=b}}else if(a.isVert||(a.isCenter&&a.collapseAxis==='vert')){b=a.getProp('height');g.addUnflexed(b);if(a.collapseTarget){l-=b}}}}for(c=0;c<m;++c){a=j[c];h=a.getMarginInfo();if(a.percentage){if(a.isHorz){b=Math.ceil(k*a.percentage/100);b=a.setWidth(b);f.addUnflexed(b)}else if(a.isVert){b=Math.ceil(l*a.percentage/100);b=a.setHeight(b);g.addUnflexed(b)}}}for(c=0;c<m;++c){a=j[c];if(!a.isCenter){d.calculateChildAxis(a,f);d.calculateChildAxis(a,g)}}if(d.finishAxis(e,g)+d.finishAxis(e,f)<2){d.done=!1}else {d.finishPositions(j)}},calculateChildAxis:function(b,a){var j=b.collapseTarget,k='set'+a.sizePropCap,f=a.sizeProp,i=b.getMarginInfo()[f],d,g,h,e,c;if(j){d=j.region}else {d=b.region;h=b.flex}g=d===a.borderBegin;if(!g&&d!==a.borderEnd){b[k](a.end-a.begin-i);e=a.begin}else {if(h){c=Math.ceil(a.flexSpace*(h/a.totalFlex));c=b[k](c)}else if(b.percentage){c=b.peek(f)}else {c=b.getProp(f)}c+=i;if(g){e=a.begin;a.begin+=c}else {a.end=e=a.end-c}}b.layoutPos[a.posProp]=e},eachItem:function(a,d,f){var g=this,e=g.getLayoutItems(),b=0,c;if(Ext.isFunction(a)){d=a;f=d}for(b;b<e.length;b++){c=e[b];if(!a||c.region===a){if(d.call(f,c)===!1){break}}}},finishAxis:function(d,a){var c=a.end-a.begin,b=d.centerRegion;if(b){b['set'+a.sizePropCap](c-b.getMarginInfo()[a.sizeProp]);b.layoutPos[a.posProp]=a.begin}return Ext.isNumber(c)?1:0},finishPositions:function(c){var e=c.length,b,a,d=this.horzPositionProp;for(b=0;b<e;++b){a=c[b];a.setProp('x',a.layoutPos.x+a.marginInfo[d]);a.setProp('y',a.layoutPos.y+a.marginInfo.top)}},getLayoutItems:function(){var c=this.owner,e=(c&&c.items&&c.items.items)||[],g=e.length,f=[],d=0,a,b;for(;d<g;d++){a=e[d];b=a.placeholderFor;if(a.hidden||((!a.floated||a.isCollapsingOrExpanding===2)&&!(b&&b.isCollapsingOrExpanding===2))){f.push(a)}}return f},getPlaceholder:function(a){return a.getPlaceholder&&a.getPlaceholder()},getMaxWeight:function(a){return this.getMinMaxWeight(a)},getMinWeight:function(a){return this.getMinMaxWeight(a,!0)},getMinMaxWeight:function(b,c){var d=this,a=null;d.eachItem(b,function(d){if(d.hasOwnProperty('weight')){if(a===null){a=d.weight;return}if((c&&d.weight<a)||d.weight>a){a=d.weight}}},this);return a},getSplitterTarget:function(b){var a=b.collapseTarget;if(a&&a.collapsed){return a.placeholder||a}return a},isItemBoxParent:function(a){return !0},isItemShrinkWrap:function(a){return !0},insertSplitter:function(a,f,e,d){var c=a.region,b=Ext.apply({xtype:'bordersplitter',collapseTarget:a,id:a.id+'-splitter',hidden:e,canResize:a.splitterResize!==!1,splitterFor:a,synthetic:!0},d),g=f+((c==='south'||c==='east')?0:1);if(a.collapseMode==='mini'){b.collapsedCls=a.collapsedCls}a.splitter=this.owner.add(g,b)},getMoveAfterIndex:function(b){var a=Ext.layout.container.Container.prototype.getMoveAfterIndex.apply(this,arguments);if(b.splitter){a++}return a},moveItemBefore:function(c,a){var b;if(a&&a.splitter){b=a.region;if(b==='south'||b==='east'){a=a.splitter}}return Ext.layout.container.Container.prototype.moveItemBefore.call(this,c,a)},onAdd:function(a,h){var b=this,e=a.placeholderFor,g=a.region,f,c,d,i;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(g){Ext.apply(a,b.regionFlags[g]);if(b.owner.isViewport){a.isViewportBorderChild=!0}if(a.initBorderRegion){a.initBorderRegion()}f=g==='center';if(f){b.centerRegion=a}else {c=a.split;d=!!a.hidden;if(typeof c==='object'){i=c;c=!0}if((a.isHorz||a.isVert)&&(c||a.collapseMode==='mini')){if(a.collapseMode==='mini'&&a.collapsed){d=!1}else if(!c){d=!0}b.insertSplitter(a,h,d,i)}}if(!f&&!a.hasOwnProperty('collapseMode')){a.collapseMode=b.panelCollapseMode}if(!a.hasOwnProperty('animCollapse')){if(a.collapseMode!=='placeholder'){a.animCollapse=!1}else {a.animCollapse=b.panelCollapseAnimate}}if(d&&a.placeholder&&a.placeholder.isVisible()){b.owner.insert(h,a.placeholder)}}else if(e){Ext.apply(a,b.regionFlags[e.region]);a.region=e.region;a.weight=e.weight}},onDestroy:function(){this.centerRegion=null;Ext.layout.container.Container.prototype.onDestroy.call(this)},onRemove:function(a,f){var d=this,h=a.region,e=a.splitter,c=d.owner,g=c.destroying,b;if(h){if(a.isCenter){d.centerRegion=null}delete a.isCenter;delete a.isHorz;delete a.isVert;if(e&&!c.destroying){c.doRemove(e,!0)}delete a.splitter}Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(!g&&!f&&a.rendered){b=a.getEl();if(b){b.setStyle('top','');b.setStyle(d.horzPositionProp,'')}}},regionMeta:{center:{splitterDelta:0},north:{splitterDelta:1},south:{splitterDelta:-1},west:{splitterDelta:1},east:{splitterDelta:-1}},regionFlags:{center:{isCenter:!0,isHorz:!1,isVert:!1},north:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'top'},south:{isCenter:!1,isHorz:!1,isVert:!0,collapseDirection:'bottom'},west:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'left'},east:{isCenter:!1,isHorz:!0,isVert:!1,collapseDirection:'right'}},setupSplitterNeighbors:function(l){var i={},m=l.length,k=this.touchedRegions,h,b,j,g,d,a,f,e,c;for(h=0;h<m;++h){a=l[h].target;f=a.region;if(a.isCenter){j=a}else if(f){c=k[f];for(b=0,g=c.length;b<g;++b){d=i[c[b]];if(d){d.neighbors.push(a)}}if(a.placeholderFor){e=a.placeholderFor.splitter}else {e=a.splitter}if(e){e.neighbors=[]}i[f]=e}}if(j){c=k.center;for(b=0,g=c.length;b<g;++b){d=i[c[b]];if(d){d.neighbors.push(j)}}}},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(b){var g=this,a=this.sizePolicies,d,c,f,e;if(b.isCenter){e=b.placeholderFor;if(e){if(e.collapsedVertical()){return a.vert}return a.horz}if(b.collapsed){if(b.collapsedVertical()){return a.vert}return a.horz}return a.flexAll}d=b.collapseTarget;if(d){return d.isVert?a.vert:a.horz}if(b.region){if(b.isVert){c=b.height;f=a.vert}else {c=b.width;f=a.horz}if(b.flex||(typeof c==='string'&&g.percentageRe.test(c))){return a.flexAll}return f}return g.autoSizePolicy}},0,0,0,0,["layout.border"],0,[Ext.layout.container,'Border',Ext.layout,'BorderLayout'],function(){var a={addUnflexed:function(a){this.flexSpace=Math.max(this.flexSpace-a,0)}},b=this.prototype.axisProps;Ext.apply(b.horz,a);Ext.apply(b.vert,a)}));(Ext.cmd.derive('Ext.layout.container.Card',Ext.layout.container.Fit,{alternateClassName:'Ext.layout.CardLayout',type:'card',hideInactive:!0,deferredRender:!1,getRenderTree:function(){var b=this,a=b.getActiveItem();if(a){if(a.hasListeners.beforeactivate&&a.fireEvent('beforeactivate',a)===!1){a=b.activeItem=b.owner.activeItem=null}else if(a.hasListeners.activate){a.on({boxready:function(){a.fireEvent('activate',a)},single:!0})}if(b.deferredRender){if(a){return b.getItemsRenderTree([a])}}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(a,c,d){var b=a.el?a.el.dom:Ext.getDom(a);return (b&&b.parentNode===(c.dom||c))||!1},getActiveItem:function(){var a=this,c=a.activeItem===undefined?(a.owner&&a.owner.activeItem):a.activeItem,b=a.parseActiveItem(c);if(b&&a.owner.items.indexOf(b)!==-1){a.activeItem=b}return b==null?null:(a.activeItem||a.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,c){var a=(b||{}).cardSwitchAnimation;if(a===!1){return !1}return a||c.cardSwitchAnimation},getNext:function(){var c=arguments[0],a=this.getLayoutItems(),b=Ext.Array.indexOf(a,this.activeItem);return a[b+1]||(c?a[0]:!1)},next:function(){var a=arguments[0],b=arguments[1];return this.setActiveItem(this.getNext(b),a)},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]:!1)},prev:function(){var a=arguments[0],b=arguments[1];return this.setActiveItem(this.getPrev(b),a)},setActiveItem:function(a){var c=this,d=c.owner,b=c.activeItem,g=d.rendered,e,f;a=c.parseActiveItem(a);e=d.items.indexOf(a);if(e===-1){e=d.items.items.length;Ext.suspendLayouts();a=d.add(a);Ext.resumeLayouts()}if(a&&b!==a){if(a.fireEvent('beforeactivate',a,b)===!1){return !1}if(b&&b.fireEvent('beforedeactivate',b,a)===!1){return !1}if(g){Ext.suspendLayouts();if(!a.rendered){c.renderItem(a,c.getRenderTarget(),d.items.length)}if(b){if(c.hideInactive){f=b.el.contains(Ext.Element.getActiveElement());b.hide();if(b.hidden){b.hiddenByLayout=!0;b.fireEvent('deactivate',b,a)}else {return !1}}}if(a.hidden){a.show()}if(a.hidden){c.activeItem=a=null}else {c.activeItem=a;if(f){if(!a.defaultFocus){a.defaultFocus=':focusable'}a.focus()}}Ext.resumeLayouts(!0)}else {c.activeItem=a}a.fireEvent('activate',a,b);return c.activeItem}return !1},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 h=this,f=h.percentRe,e,g,d,c,a,j,i;Ext.layout.container.Fit.prototype.beginLayout.call(this,b);e=b.childItems;for(d=0,g=e.length;d<g;++d){c=e[d];a=c.target;j=c.widthModel;i=c.heightModel;if(f.test(a.width)){a.getEl().setStyle('width','')}if(f.test(a.height)){a.getEl().setStyle('height','')}}b.targetElContext=b.getEl('targetEl',h)},beginLayoutCycle:function(b,c){var a=this.targetEl;Ext.layout.container.Fit.prototype.beginLayoutCycle.call(this,b,c);a.setStyle('width','');a.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(d,e){var a=this,c=e||a.owner.getSizeModel(),b=a.percentRe,f=((c.width.shrinkWrap||!b.test(d.width))?0:1)|((c.height.shrinkWrap||!b.test(d.height))?0:2);return a.sizePolicies[f]},isItemShrinkWrap:function(a){return !0},calculate:function(a){var c=a.targetElContext,b;Ext.layout.container.Fit.prototype.calculate.call(this,a);b=a.state.info;if(a.widthModel.shrinkWrap){c.setWidth(b.contentWidth)}if(a.heightModel.shrinkWrap){c.setHeight(b.contentHeight)}},getPos:function(d,b,a){var e=a+'Model',f=d.props[a],c=0;if(!d[e].calculated){f+=b.margins[a]}if(!b.ownerContext[e].shrinkWrap){c=Math.round((b.targetSize[a]-f)/2);if(isNaN(c)){this.done=!1}}return Math.max(c,0)},positionItemX:function(a,b){var c=this.getPos(a,b,'width');a.setProp('x',c)},positionItemY:function(a,b){var c=this.getPos(a,b,'height');a.setProp('y',c)},setItemHeight:function(a,b){var c=parseFloat(a.target.height)/100;a.setHeight(Math.round((b.targetSize.height-b.margins.height)*c))},setItemWidth:function(a,b){var c=parseFloat(a.target.width)/100;a.setWidth(Math.round((b.targetSize.width-b.margins.width)*c))}},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 a=this,c=a.labelWidth,d=a.formWrapCls,b=Ext.layout.container.Auto.prototype.getRenderData.call(this);if(c){if(typeof c==='number'){c+='px'}b.labelWidth=c;d+=' '+a.formWrapSizedLabelCls}else {d+=' '+a.formWrapAutoLabelCls}b.formWrapCls=d;b.formColGroupCls=a.formColGroupCls;b.formColumnCls=a.formColumnCls;b.formLabelColumnCls=a.formLabelColumnCls;return b},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.Bar',Ext.menu.Menu,{isMenuBar:!0,defaultMenuAlign:'tl-bl?',floating:!1,constrain:!1,showSeparator:!1,allowOtherMenus:!0,ariaRole:'menubar',ui:'default-menubar',layout:{type:'hbox',align:'stretchmax',pack:'start',overflowHandler:'menu'},lookupComponent:function(a){a=Ext.menu.Menu.prototype.lookupComponent.call(this,a);if(a.isMenuItem){a.menuAlign=this.defaultMenuAlign}return a},privates:{onFocusableContainerLeftKey:function(a){a.preventDefault();this.mixins.focusablecontainer.onFocusableContainerLeftKey.call(this,a)},onFocusableContainerRightKey:function(a){a.preventDefault();this.mixins.focusablecontainer.onFocusableContainerRightKey.call(this,a)},onFocusableContainerUpKey:function(b){var a=this.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}},onFocusableContainerDownKey:function(b){var a=this.lastFocusedChild;b.preventDefault();if(a&&a.expandMenu){a.expandMenu(b,0)}}}},0,["menubar"],["component","box","container","panel","menu","menubar"],{"component":!0,"box":!0,"container":!0,"panel":!0,"menu":!0,"menubar":!0},["widget.menubar"],0,[Ext.menu,'Bar'],0));(Ext.cmd.derive('Ext.menu.ColorPicker',Ext.menu.Menu,{hideOnClick:!0,pickerId:null,initComponent:function(){var a=this,b=Ext.apply({},a.initialConfig);delete b.listeners;Ext.apply(a,{plain:!0,showSeparator:!1,bodyPadding:0,items:Ext.applyIf({cls:'x-menu-color-item',margin:0,id:a.pickerId,xtype:'colorpicker'},b)});Ext.menu.Menu.prototype.initComponent.apply(this,arguments);a.picker=a.down('colorpicker');a.relayEvents(a.picker,['select']);if(a.hideOnClick){a.on('select',a.hidePickerOnSelect,a)}},hidePickerOnSelect:function(){Ext.menu.Manager.hideAll()}},0,["colormenu"],["component","box","container","panel","menu","colormenu"],{"component":!0,"box":!0,"container":!0,"panel":!0,"menu":!0,"colormenu":!0},["widget.colormenu"],0,[Ext.menu,'ColorPicker'],0));(Ext.cmd.derive('Ext.menu.DatePicker',Ext.menu.Menu,{ariaRole:'dialog',ariaLabel:'Date picker',hideOnClick:!0,pickerId:null,focusableContainer:!1,initComponent:function(){var a=this,c,b;if(a.pickerCfg){b=Ext.apply({cls:'x-menu-date-item',margin:0,border:!1,xtype:'datepicker'},a.pickerCfg)}else {c=Ext.apply({},a.initialConfig);delete c.listeners;b=Ext.applyIf({cls:'x-menu-date-item',margin:0,border:!1,xtype:'datepicker'},c)}if(a.pickerId!=null&&b.id==null){b.id=a.pickerId}delete b.ownerCmp;Ext.apply(a,{showSeparator:!1,plain:!0,bodyPadding:0,items:[b]});Ext.menu.Menu.prototype.initComponent.call(this);a.picker=a.down('datepicker');a.relayEvents(a.picker,['select']);if(a.hideOnClick){a.on('select',a.hidePickerOnSelect,a)}},onEscapeKey:function(b){var a=this;if(a.floating&&a.ownerCmp&&a.ownerCmp.focus){a.ownerCmp.focus();a.hide()}},hidePickerOnSelect:function(){Ext.menu.Manager.hideAll()}},0,["datemenu"],["component","box","container","panel","menu","datemenu"],{"component":!0,"box":!0,"container":!0,"panel":!0,"menu":!0,"datemenu":!0},["widget.datemenu"],0,[Ext.menu,'DatePicker'],0));(Ext.cmd.derive('Ext.panel.Pinnable',Ext.Mixin,{mixinId:'pinnable',pinnable:!0,pinnedTip:'Unpin this item',unpinnedTip:'Pin this item',initPinnable:function(){var a=this,b=a.isPinned();a.addTool(a.pinTool=Ext.widget({xtype:'tool',type:b?'unpin':'pin',callback:'togglePin',scope:a,tooltip:b?a.pinnedTip:a.unpinnedTip}))},isPinned:function(){return !this.floating},setPinned:function(b){var a=this,c;if(b!==a.isPinned()){c=[a,b];if(a.fireEventArgs('beforepinchange',c)!==!1){a.updatePinned(b);a.fireEventArgs('pinchange',c)}}},togglePin:function(){this.setPinned(!this.isPinned())},updatePinned:function(b){var a=this,c=a.pinTool;c.setTooltip(b?a.pinnedTip:a.unpinnedTip);c.setType(b?'unpin':'pin')}},0,0,0,0,0,0,[Ext.panel,'Pinnable'],0));(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);this.cmp.beforeComponentRender=null}},0,0,0,0,["plugin.lazyitems"],0,[Ext.plugin,'LazyItems'],0));(Ext.cmd.derive('Ext.resizer.BorderSplitterTracker',Ext.resizer.SplitterTracker,{getPrevCmp:null,getNextCmp:null,calculateConstrainRegion:function(){var i=this,e=i.splitter,k=e.collapseTarget,n=e.defaultSplitMin,l=e.vertical?'Width':'Height',p='min'+l,o='max'+l,w='get'+l,r=e.neighbors,x=r.length,c=k.el.getBox(),u=c.x,v=c.y,t=c.right,s=c.bottom,b=e.vertical?(t-u):(s-v),j,h,f,d,a,g,m,q;d=(k[p]||Math.min(b,n))-b;a=k[o];if(!a){a=1000000000}else {a-=b}q=b;for(j=0;j<x;++j){h=r[j];b=h[w]();f=h[o];if(f===null){f=undefined}g=b-f;m=b-(h[p]||Math.min(b,n));if(!isNaN(g)){if(d<g){d=g}}if(a>m){a=m}}if(a-d<2){return null}c=new Ext.util.Region(v,t,s,u);i.constraintAdjusters[i.getCollapseDirection()](c,d,a,e);i.dragInfo={minRange:d,maxRange:a,targetSize:q};return c},constraintAdjusters:{left:function(a,c,b,d){a[0]=a.x=a.left=a.right+c;a.right+=b+d.getWidth()},top:function(a,c,b,d){a[1]=a.y=a.top=a.bottom+c;a.bottom+=b+d.getHeight()},bottom:function(a,c,b,d){a.bottom=a.top-c;a.top-=b+d.getHeight()},right:function(a,c,b,d){a.right=a.left-c;a[0]=a.x=a.left=a.x-b+d.getWidth()}},onBeforeStart:function(h){var c=this,f=c.splitter,d=f.collapseTarget,e=f.neighbors,g=e.length,a,b;if(d.collapsed){return !1}for(a=0;a<g;++a){b=e[a];if(b.collapsed&&b.isHorz===d.isHorz){return !1}}if(!(c.constrainTo=c.calculateConstrainRegion())){return !1}return !0},performResize:function(j,i){var d=this,b=d.splitter,e=b.getCollapseDirection(),h=b.collapseTarget,f=d.splitAdjusters[b.vertical?'horz':'vert'],a=i[f.index],c=d.dragInfo,g;if(e==='right'||e==='bottom'){a=-a}a=Math.min(Math.max(c.minRange,a),c.maxRange);if(a){(g=b.ownerCt).suspendLayouts();f.adjustTarget(h,c.targetSize,a);g.resumeLayouts(!0)}},splitAdjusters:{horz:{index:0,adjustTarget:function(a,c,b){a.flex=null;a.setSize(c+b)}},vert:{index:1,adjustTarget:function(a,b,c){a.flex=null;a.setSize(undefined,b+c)}}},getCollapseDirection:function(){return this.splitter.getCollapseDirection()}},0,0,0,0,0,0,[Ext.resizer,'BorderSplitterTracker'],0));(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":!0,"box":!0},0,0,[Ext.resizer,'Handle'],0));(Ext.cmd.derive('Ext.resizer.ResizeTracker',Ext.dd.DragTracker,{dynamic:!0,preserveRatio:!1,preventDefault:!1,constrainTo:null,proxyCls:'x-resizable-proxy',constructor:function(b){var a=this,d,c,e;if(!b.el){if(b.target.isComponent){a.el=b.target.getEl()}else {a.el=b.target}}Ext.dd.DragTracker.prototype.constructor.apply(this,arguments);if(a.preserveRatio&&a.minWidth&&a.minHeight){d=a.minWidth/a.el.getWidth();c=a.minHeight/a.el.getHeight();if(c>d){a.minWidth=a.el.getWidth()*c}else {a.minHeight=a.el.getHeight()*d}}if(a.throttle){e=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(a,arguments)},a.throttle);a.resize=function(f,d,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(a,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=!0}if(a.proxy){a.proxy.show();return a.proxy}},createProxy:function(a){var b,c=this.proxyCls;if(a.isComponent){b=a.getProxy().addCls(c)}else {b=a.createProxy({tag:'div',role:'presentation',cls:c,id:a.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(s,r){var c=this,h=c.activeResizeHandle.region,d=c.getOffset(c.constrainTo?'dragTarget':null),b=c.startBox,n,f=0,e=0,k,j,l=0,m=0,q,i,g,a,o,p;h=c.convertRegionName(h);switch(h){case 'south':e=d[1];g=2;break;case 'north':e=-d[1];m=-e;g=2;break;case 'east':f=d[0];g=1;break;case 'west':f=-d[0];l=-f;g=1;break;case 'northeast':e=-d[1];m=-e;f=d[0];i=[b.x,b.y+b.height];g=3;break;case 'southeast':e=d[1];f=d[0];i=[b.x,b.y];g=3;break;case 'southwest':f=-d[0];l=-f;e=d[1];i=[b.x+b.width,b.y];g=3;break;case 'northwest':e=-d[1];m=-e;f=-d[0];l=-f;i=[b.x+b.width,b.y+b.height];g=3;break;}a={width:b.width+f,height:b.height+e,x:b.x+l,y:b.y+m};k=Ext.Number.snap(a.width,c.widthIncrement);j=Ext.Number.snap(a.height,c.heightIncrement);if(k!==a.width||j!==a.height){switch(h){case 'northeast':a.y-=j-a.height;break;case 'north':a.y-=j-a.height;break;case 'southwest':a.x-=k-a.width;break;case 'west':a.x-=k-a.width;break;case 'northwest':a.x-=k-a.width;a.y-=j-a.height;}a.width=k;a.height=j}if(a.width<c.minWidth||a.width>c.maxWidth){a.width=Ext.Number.constrain(a.width,c.minWidth,c.maxWidth);if(l){a.x=b.x+(b.width-a.width)}}else {c.lastX=a.x}if(a.height<c.minHeight||a.height>c.maxHeight){a.height=Ext.Number.constrain(a.height,c.minHeight,c.maxHeight);if(m){a.y=b.y+(b.height-a.height)}}else {c.lastY=a.y}if(c.preserveRatio||s.shiftKey){n=c.startBox.width/c.startBox.height;o=Math.min(Math.max(c.minHeight,a.width/n),c.maxHeight);p=Math.min(Math.max(c.minWidth,a.height*n),c.maxWidth);if(g===1){a.height=o}else if(g===2){a.width=p}else {q=Math.abs(i[0]-this.lastXY[0])/Math.abs(i[1]-this.lastXY[1]);if(q>n){a.height=o}else {a.width=p}if(h==='northeast'){a.y=b.y-(a.height-b.height)}else if(h==='northwest'){a.y=b.y-(a.height-b.height);a.x=b.x-(a.width-b.width)}else if(h==='southwest'){a.x=b.x-(a.width-b.width)}}}c.setPosition=a.x!==c.startBox.x||a.y!==c.startBox.y;c.resize(a,r)},resize:function(b,e){var a=this,c,d=a.setPosition;if(a.dynamic||(!a.dynamic&&e)){if(d){a.target.setBox(b)}else {a.target.setSize(b.width,b.height)}}if(!e){c=a.getProxy();if(c&&c!==a.target){if(d||a.hideProxy){c.setBox(b)}else {c.setSize(b.width,b.height)}}}},onEnd:function(a){this.updateDimensions(a,!0);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(a){return a}},1,0,0,0,0,0,[Ext.resizer,'ResizeTracker'],0));(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:!0,handles:'s e se',height:null,width:null,heightIncrement:0,widthIncrement:0,minHeight:20,minWidth:20,maxHeight:10000,maxWidth:10000,pinned:!1,preserveRatio:!1,transparent:!1,possiblePositions:{n:'north',s:'south',e:'east',w:'west',se:'southeast',sw:'southwest',nw:'northwest',ne:'northeast'},touchActionMap:{n:{panY:!1},s:{panY:!1},e:{panX:!1},w:{panX:!1},se:{panX:!1,panY:!1},sw:{panX:!1,panY:!1},nw:{panX:!1,panY:!1},ne:{panX:!1,panY:!1}},ariaRole:'presentation',constructor:function(c){var a=this,r=Ext.dom.Element.unselectableCls,p=[],b,i,n,k,q,l,g,j,f,o,e,d,m,h;if(Ext.isString(c)||Ext.isElement(c)||c.dom){b=c;c=arguments[1]||{};c.target=b}a.mixins.observable.constructor.call(a,c);b=a.target;if(b){if(b.isComponent){b.addClsWithUI('resizable');if(b.minWidth){a.minWidth=b.minWidth}if(b.minHeight){a.minHeight=b.minHeight}if(b.maxWidth){a.maxWidth=b.maxWidth}if(b.maxHeight){a.maxHeight=b.maxHeight}if(b.floating){if(!a.hasOwnProperty('handles')){a.handles='n ne e se s sw w nw'}}a.el=b.getEl()}else {b=a.el=a.target=Ext.get(b)}}else {b=a.target=a.el=Ext.get(a.el)}a.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(a.width)){a.width=Ext.Number.constrain(a.width,a.minWidth,a.maxWidth)}if(Ext.isNumber(a.height)){a.height=Ext.Number.constrain(a.height,a.minHeight,a.maxHeight)}if(a.width!==null||a.height!==null){a.target.setSize(a.width,a.height)}k=a.el.dom.tagName.toUpperCase();if(k==='TEXTAREA'||k==='IMG'||k==='TABLE'){a.originalTarget=a.target;d=b.isComponent?b.getEl():b;a.el.addCls(a.wrappedCls);a.target=a.el=a.el.wrap({role:'presentation',cls:a.wrapCls,id:a.el.id+'-rzwrap',style:d.getStyle(['margin-top','margin-bottom'])});m=d.getPositioning();a.el.setPositioning(m);d.clearPositioning();j=d.getBox();if(m.position!=='absolute'){j.x=0;j.y=0}a.el.setBox(j);d.setStyle('position','absolute');a.isTargetWrapped=!0}a.el.position();if(a.pinned){a.el.addCls(a.pinnedCls)}a.resizeTracker=new Ext.resizer.ResizeTracker({disabled:a.disabled,target:b,el:a.el,constrainTo:a.constrainTo,handleCls:a.handleCls,overCls:a.overCls,throttle:a.throttle,proxy:a.originalTarget?a.el:null,dynamic:a.originalTarget?!0:a.dynamic,originalTarget:a.originalTarget,delegate:'.'+a.handleCls,preserveRatio:a.preserveRatio,heightIncrement:a.heightIncrement,widthIncrement:a.widthIncrement,minHeight:a.minHeight,maxHeight:a.maxHeight,minWidth:a.minWidth,maxWidth:a.maxWidth});a.resizeTracker.on({mousedown:a.onBeforeResize,drag:a.onResize,dragend:a.onResizeEnd,scope:a});if(a.handles==='all'){a.handles='n s e w ne nw se sw'}o=a.handles=a.handles.split(a.delimiterRe);n=a.possiblePositions;q=o.length;i=a.handleCls+' '+a.handleCls+'-{0}';if(a.target.isComponent){h=a.target.baseCls;i+=' '+h+'-handle '+h+'-handle-{0}';if(Ext.supports.CSS3BorderRadius){i+=' '+h+'-handle-{0}-br'}}for(l=0;l<q;l++){f=o[l];if(f&&n[f]){g=n[f];e=a[g]=a.el.createChild({id:a.el.id+'-'+g+'-handle',cls:Ext.String.format(i,g)+' '+r,unselectable:'on',role:'presentation'});e.region=g;if(a.transparent){e.setOpacity(0)}e.setTouchAction(a.touchActionMap[f]);p.push(e)}}a.resizeTracker.handleEls=p},disable:function(){this.disabled=!0;this.resizeTracker.disable()},enable:function(){this.disabled=!1;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(c,e,d){var a=this,b;if(a.hasListeners[c]){b=a.el.getBox();return a.fireEvent(c,a,b.width,b.height,d)}},resizeTo:function(c,b){var a=this;a.target.setSize(c,b);a.fireEvent('resize',a,c,b,null)},getEl:function(){return this.el},getTarget:function(){return this.target},destroy:function(){var a=this,d=a.handles,g=d.length,f=a.possiblePositions,e,c,b;a.resizeTracker.destroy();if(a.isTargetWrapped){a.target.destroy()}for(b=0;b<g;b++){c=f[d[b]];if((e=a[c])){e.destroy();a[c]=null}}a.callParent()}},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:!0,deselectOnContainerClick:!1,enableKeyNav:!0,preventWrap:!1,bindComponent:function(b){var a=this,c;if(a.view&&a.gridListeners){a.gridListeners.destroy()}Ext.selection.DataViewModel.prototype.bindComponent.call(this,b);if(b){c=b.grid||b.ownerCt;if(c.optimizedColumnMove!==!1){a.gridListeners=c.on({columnmove:a.onColumnMove,scope:a,destroyable:!0})}}},getViewListeners:function(){var a=Ext.selection.DataViewModel.prototype.getViewListeners.call(this);a.refresh=this.onViewRefresh;return a},getHeaderCt:function(){var a=this.navigationModel.getPosition(),b=a?a.view:this.primaryView;return b.headerCt},onNavigate:function(a){if(!a.record||a.keyEvent.stopSelection){return}this.setPosition(a.position)},selectWithEvent:function(a,b){this.select(a)},select:function(a,g,e){var b=this,c,d=b.getPosition(),f=b.view.store;if(a||a===0){if(a.isModel){c=f.indexOf(a);if(c!==-1){a={row:c,column:d?d.column:0}}else {a=null}}else if(typeof a==='number'){a={row:a,column:0}}}if(a){b.selectByPosition(a,e)}else {b.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(a,b,c){if(a&&!a.isCellContext){a=new Ext.grid.CellContext(this.view).setPosition({row:a.row,column:typeof a.column==='number'?this.view.getColumnManager().getColumns()[a.column]:a.column})}return this.setPosition(a,b,c)},setPosition:function(a,d,e){var b=this,c=b.selection;if(a){a=a.isCellContext?a.clone():new Ext.grid.CellContext(b.view).setPosition(a)}if(!e&&c){if(a&&(a.record===c.record&&a.column===c.column&&a.view===c.view)){a=null}else {b.onCellDeselect(b.selection,d)}}if(a){b.nextSelection=a;b.selecting=!0;b.onCellSelect(b.nextSelection,d);b.selecting=!1;return (b.selection=a)}},isCellSelected:function(d,e,c){var f=this,b,a=f.getPosition();if(a&&a.view===d){b=new Ext.grid.CellContext(d).setPosition({row:e,column:typeof c==='number'?d.getColumnManager().getColumns()[c]:c});return (b.record===a.record)&&(b.column===a.column)}},onStoreRemove:function(b,e,d){var c=this,a=c.getPosition();Ext.selection.DataViewModel.prototype.onStoreRemove.apply(this,arguments);if(a&&b.isMoving(a.record)){return}if(a&&b.getCount()&&b.indexOf(a.record)!==-1){a.setRow(a.record)}else {c.selection=null}},onStoreClear:function(){Ext.selection.DataViewModel.prototype.onStoreClear.apply(this,arguments);this.selection=null},onStoreAdd:function(){var b=this,a=b.getPosition();Ext.selection.DataViewModel.prototype.onStoreAdd.apply(this,arguments);if(a){a.setRow(a.record)}else {b.selection=null}},updateSelectedInstances:function(b){var c=this.getPosition(),a=b.getAt(0);if(a&&c&&c.record.id===a.id){c.setRow(a)}Ext.selection.DataViewModel.prototype.updateSelectedInstances.call(this,b);if(b.length===0&&a){this.selection=null}},onCellClick:function(f,e,c,d,g,a,b){if(a!==-1){this.setPosition(b.position)}},onCellSelect:function(a,b){if(a&&a.rowIdx!==undefined&&a.rowIdx>-1){this.doSelect(a.record,!1,b)}},onCellDeselect:function(a,b){if(a&&a.rowIdx!==undefined){this.doDeselect(a.record,b)}},onSelectChange:function(g,f,e,h){var b=this,a,c,d;if(f){a=b.nextSelection;c='select'}else {a=b.selection;c='deselect'}d=a.view||b.primaryView;if((e||b.fireEvent('before'+c,b,g,a.rowIdx,a.colIdx))!==!1&&h()!==!1){if(f){d.onCellSelect(a)}else {d.onCellDeselect(a);delete b.selection}if(!e){b.fireEvent(c,b,g,a.rowIdx,a.colIdx)}}},refresh:function(){var b=this.getPosition(),a;if(b&&(a=this.store.indexOf(this.selected.last()))!==-1){b.rowIdx=a}},onColumnMove:function(b,d,c,e){var a=b.up('tablepanel');if(a){this.onViewRefresh(a.view)}},onUpdate:function(c){var a=this,b;if(a.isSelected(c)){b=a.selecting?a.nextSelection:a.selection;a.view.onCellSelect(b)}},onViewRefresh:function(b){var f=this,e=f.getPosition(),g,c=b.headerCt,d,a;if(e&&e.view===b){d=e.record;a=b.getColumnByPosition(e);if(a&&!a.isDescendantOf(c)){a=c.queryById(a.id)||c.down('[text="'+a.text+'"]')||c.down('[dataIndex="'+a.dataIndex+'"]')}if(a&&d){if(b.store.indexOfId(d.getId())!==-1){g=new Ext.grid.CellContext(b).setPosition({row:d,column:a});f.setPosition(g)}}else {f.selection=null}}},selectByPosition:function(b,a){this.setPosition(b,a)}},0,0,0,0,["selection.cellmodel"],0,[Ext.selection,'CellModel'],0));(Ext.cmd.derive('Ext.selection.RowModel',Ext.selection.DataViewModel,{enableKeyNav:!0,isRowModel:!0,deselectOnContainerClick:!1,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,!0)}}},onSelectChange:function(c,g,e,j){var a=this,i=a.views||[a.view],k=i.length,b=a.store.indexOf(c),h=g?'select':'deselect',f,d;if((e||a.fireEvent('before'+h,a,c,b))!==!1&&j()!==!1){for(f=0;f<k;f++){d=i[f];b=d.indexOf(c);if(d.indexOf(c)!==-1){if(g){d.onRowSelect(b,e)}else {d.onRowDeselect(b,e)}}}if(!e){a.fireEvent(h,a,c,b)}}},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(f,e){var a=this,h=a.store,d=a.getSelection(),g=d[d.length-1],c=a.view.indexOf(g)+1,b;if(c===h.getCount()||c===0){b=!1}else {a.doSelect(c,f,e);b=!0}return b},selectPrevious:function(e,d){var b=this,f=b.getSelection(),g=f[0],c=b.view.indexOf(g)-1,a;if(c<0){a=!1}else {b.doSelect(c,e,d);a=!0}return a},isRowSelected:function(a){return this.isSelected(a)},isCellSelected:function(c,a,b){return this.isSelected(a)},vetoSelection:function(a){var b=this.view.getNavigationModel(),c=a.getKey(),d=c===a.RIGHT||c===a.LEFT;return (d&&b.previousRecord===b.record)||Ext.selection.DataViewModel.prototype.vetoSelection.call(this,a)}},0,0,0,0,["selection.rowmodel"],0,[Ext.selection,'RowModel'],0));(Ext.cmd.derive('Ext.selection.CheckboxModel',Ext.selection.RowModel,{mode:'MULTI',injectCheckbox:0,checkOnly:!1,locked:!1,showHeaderCheckbox:undefined,headerText:undefined,headerAriaLabel:'Row selector',headerSelectText:'Press Space to select all rows',headerDeselectText:'Press Space to deselect all rows',rowSelectText:'Press Space to select this row',rowDeselectText:'Press Space to deselect this row',allowDeselect:!0,headerWidth:24,checkerOnCls:'x-grid-hd-checker-on',tdCls:'x-grid-cell-special x-selmodel-column',constructor:function(){var a=this;Ext.selection.RowModel.prototype.constructor.apply(this,arguments);if(a.mode==='SINGLE'){a.showHeaderCheckbox=!1}},beforeViewRender:function(b){var a=this,c=b.grid.ownerLockable,d=a.locked||a.config&&a.config.locked;Ext.selection.RowModel.prototype.beforeViewRender.apply(this,arguments);if(a.injectCheckbox!==!1){if(c&&!a.lockListeners){a.lockListeners=c.mon(c,{lockcolumn:a.onColumnLock,unlockcolumn:a.onColumnUnlock,scope:a,destroyable:!0})}if(!c||(b.isLockedView&&(a.hasLockedHeader()||d))||(b.isNormalView&&!a.column)){a.addCheckbox(b);a.mon(b.ownerGrid,{beforereconfigure:a.onBeforeReconfigure,reconfigure:a.onReconfigure,scope:a})}}},onColumnUnlock:function(b,e){var c=this,a=c.injectCheckbox,d=b.lockedGrid.visibleColumnManager.getColumns();if(d.length===1&&d[0]===c.column){if(a==='first'){a=0}else if(a==='last'){a=b.normalGrid.visibleColumnManager.getColumns().length}b.unlock(c.column,a)}},onColumnLock:function(b,e){var c=this,a=c.injectCheckbox,d=b.lockedGrid.visibleColumnManager.getColumns();if(d.length===1){if(a==='first'){a=0}else if(a==='last'){a=b.lockedGrid.visibleColumnManager.getColumns().length}b.lock(c.column,a)}},bindComponent:function(a){this.sortable=!1;Ext.selection.RowModel.prototype.bindComponent.apply(this,arguments)},hasLockedHeader:function(){var b=this.view.ownerGrid.getVisibleColumnManager().getColumns(),c=b.length,a;for(a=0;a<c;a++){if(b[a].locked){return !0}}return !1},addCheckbox:function(d){var b=this,a=b.injectCheckbox,c=d.headerCt;if(a!==!1){if(a==='first'){a=0}else if(a==='last'){a=c.getColumnCount()}Ext.suspendLayouts();if(d.getStore().isBufferedStore){b.showHeaderCheckbox=!1}b.column=c.add(a,b.column||b.getHeaderConfig());Ext.resumeLayouts()}},onBeforeReconfigure:function(g,f,c,e,d){var b=this.column,a=b.ownerCt;if(c&&a){a.remove(b,!1)}},onReconfigure:function(a,d,c){var b=this;if(c){if(a.lockable){if(a.lockedGrid.isVisible()){a.lock(b.column,0)}else {a.unlock(b.column,0)}}else {b.addCheckbox(b.view)}a.view.refreshView()}},onHeaderClick:function(k,g,j){var a=this,i=a.store,f,b,c,h,d,e;if(a.showHeaderCheckbox!==!1&&g===a.column&&a.mode!=='SINGLE'){j.stopEvent();f=g.el.hasCls('x-grid-hd-checker-on');if(f){b=[];d=this.getSelection();for(c=0,h=d.length;c<h;++c){e=d[c];if(i.indexOf(e)>-1){b.push(e)}}if(b.length>0){a.deselect(b)}}else {a.selectAll()}}},getHeaderConfig:function(){var a=this,d=a.showHeaderCheckbox!==!1,c=Ext.String.htmlEncode,b;b={xtype:'checkcolumn',headerCheckbox:d,isCheckerHd:d,ignoreExport:!0,text:a.headerText,width:a.headerWidth,sortable:!1,draggable:!1,resizable:!1,hideable:!1,menuDisabled:!0,checkOnly:a.checkOnly,checkboxAriaRole:'presentation',tdCls:'x-selmodel-checkbox '+a.tdCls,cls:'x-selmodel-column',editRenderer:a.editRenderer||a.renderEmpty,locked:a.hasLockedHeader(),processEvent:Ext.emptyFn,toggleAll:Ext.emptyFn,setRecordCheck:Ext.emptyFn,isRecordChecked:a.isRowSelected.bind(a)};if(!a.checkOnly){b.tabIndex=undefined;b.ariaRole='presentation';b.focusable=!1}else {b.useAriaElements=!0;b.ariaLabel=c(a.headerAriaLabel);b.headerSelectText=c(a.headerSelectText);b.headerDeselectText=c(a.headerDeselectText);b.rowSelectText=c(a.rowSelectText);b.rowDeselectText=c(a.rowDeselectText)}return b},toggleRecord:function(b,c,a,d){this[a?'select':'deselect']([b],this.mode!=='SINGLE')},renderEmpty:function(){return '&#160;'},refresh:function(){Ext.selection.RowModel.prototype.refresh.apply(this,arguments);this.updateHeaderState()},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(c,b){var a=this;Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(a.column){a.column.updateCellAriaDescription(c,b)}if(!a.suspendChange){a.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 a=this,e=a.store,g=e.getCount(),h=a.views,c=!1,f=0,d,i,b;if(!e.isBufferedStore&&g>0){d=a.selected;c=!0;for(b=0,i=d.getCount();b<i;++b){if(e.indexOfId(d.getAt(b).id)>-1){++f}}c=g===f}if(h&&h.length){a.column.setHeaderStatus(c)}},vetoSelection:function(a){var b=this,e=b.column,f,c,d;if(b.checkOnly){c=a.type===e.triggerEvent&&a.getTarget(b.column.getCellSelector());d=a.getKey()===a.SPACE&&a.position.column===e;f=!(c||d)}return f||Ext.selection.RowModel.prototype.vetoSelection.call(this,a)},privates:{onBeforeNavigate:function(b){var a=b.keyEvent;if(this.selectionMode!=='SINGLE'){b.ctrlKey=b.ctrlKey||a.ctrlKey||(a.type===this.column.triggerEvent&&!a.shiftKey)||a.getKey()===a.SPACE}},selectWithEventMulti:function(b,a,d){var c=this;if(!a.shiftKey&&!a.ctrlKey&&a.getTarget(c.column.getCellSelector())){if(d){c.doDeselect(b)}else {c.doSelect(b,!0)}}else {Ext.selection.RowModel.prototype.selectWithEventMulti.call(this,b,a,d)}}}},1,0,0,0,["selection.checkboxmodel"],0,[Ext.selection,'CheckboxModel'],function(a){a.prototype.checkSelector='.'+Ext.grid.column.Check.prototype.checkboxCls}));(Ext.cmd.derive('Ext.selection.TreeModel',Ext.selection.RowModel,{selectOnExpanderClick:!1,constructor:function(b){var a=this;Ext.selection.RowModel.prototype.constructor.call(this,b);if(a.pruneRemoved){a.pruneRemoved=!1;a.pruneRemovedNodes=!0}},getStoreListeners:function(){var b=this,a=Ext.selection.RowModel.prototype.getStoreListeners.call(this);a.noderemove=b.onNodeRemove;return a},onNodeRemove:function(d,c,b){if(!b){var a=[];this.gatherSelected(c,a);if(a.length){this.deselect(a)}}},pruneRemovedOnRefresh:function(){return this.pruneRemovedNodes},vetoSelection:function(b){var a=this.view,c=this.selectOnExpanderClick,d=!c&&b.type==='click'&&b.getTarget(a.expanderSelector||(a.lockingPartner&&a.lockingPartner.expanderSelector));return d||Ext.selection.RowModel.prototype.vetoSelection.call(this,b)},privates:{gatherSelected:function(c,d){var b=c.childNodes,a,f,e;if(this.selected.containsKey(c.id)){d.push(c)}if(b){for(a=0,f=b.length;a<f;++a){e=b[a];this.gatherSelected(e,d)}}}}},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:!1});b.callParent([a])},render:function(){var a=this;a.el=a.slider.innerEl.insertFirst(a.getElConfig());a.onRender()},onRender:function(){var a=this,c=a.slider.vertical?'panY':'panX',b={};b[c]=!1;a.el.setTouchAction(b);if(a.disabled){a.disable()}a.initEvents()},getElConfig:function(){var b=this,a=b.slider,c={};c[a.vertical?'bottom':a.horizontalProp]=a.calculateThumbPosition(a.normalizeValue(b.value))+'%';return {style:c,id:b.id,cls:b.cls,role:'presentation'}},move:function(h,d){var a=this,f=a.el,i=a.slider,b=i.vertical?'bottom':i.horizontalProp,g,e,c;h+='%';if(!d){f.dom.style[b]=h}else {g={};g[b]=h;if(!Ext.supports.GetPositionPercentage){e={};e[b]=f.dom.style[b]}c={target:f,duration:350,from:e,to:g,scope:a,callback:a.onAnimComplete};if(d!==!0){Ext.apply(c,d)}a.anim=new Ext.fx.Anim(c)}},onAnimComplete:function(){this.anim=null},enable:function(){var a=this.el;this.disabled=!1;if(a){a.removeCls(this.slider.disabledCls)}},disable:function(){var a=this.el;this.disabled=!0;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(e){var a=this,b=a.el,c=a.tracker.getXY(),d=a.pointerOffset=b.getXY();if(a.disabled){return !1}else {d[0]+=Math.floor(b.getWidth()/2)-c[0];d[1]+=Math.floor(b.getHeight()/2)-c[1];a.slider.promoteThumb(a);return !0}},onDragStart:function(c){var a=this,b=a.slider;b.onDragStart(a,c);a.el.addCls('x-slider-thumb-drag');a.dragging=a.slider.dragging=!0;a.dragStartValue=a.value;b.fireEvent('dragstart',b,c,a)},onDrag:function(g){var c=this,b=c.slider,f=c.index,a=c.getValueFromTracker(),d,e;if(a!==undefined){if(c.constrain){d=b.thumbs[f+1];e=b.thumbs[f-1];if(e!==undefined&&a<=e.value){a=e.value}if(d!==undefined&&a>=d.value){a=d.value}}b.setValue(f,a,!1);b.fireEvent('drag',b,g,c)}},getValueFromTracker:function(){var c=this.slider,b=this.tracker.getXY(),a;b[0]+=this.pointerOffset[0];b[1]+=this.pointerOffset[1];a=c.getTrackpoint(b);if(a!=null){return c.reversePixelValue(a)}},onDragEnd:function(d){var a=this,b=a.slider,c=a.value;b.onDragEnd(a,d);a.el.removeCls('x-slider-thumb-drag');a.dragging=b.dragging=!1;b.fireEvent('dragend',b,d);if(a.dragStartValue!==c){b.fireEvent('changecomplete',b,c,a)}},destroy:function(){var a=this,b=this.anim;if(b){b.end()}a.el=a.tracker=a.anim=Ext.destroy(a.el,a.tracker);a.callParent()}},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:!0,init:function(d){var a=this,c,b;if(!a.position){a.position=d.vertical?a.defaultVerticalPosition:a.defaultHorizontalPosition}switch(a.position){case 'top':b=[0,-10];c='b-t?';break;case 'bottom':b=[0,10];c='t-b?';break;case 'left':b=[-10,0];c='r-l?';break;case 'right':b=[10,0];c='l-r?';}if(!a.align){a.align=c}if(!a.offsets){a.offsets=b}d.on({scope:a,dragstart:a.onSlide,drag:a.onSlide,dragend:a.hide,destroy:a.destroy})},onSlide:function(c,d,b){var a=this;a.update(a.getText(b));a.show();a.el.alignTo(b.el,a.align,a.offsets)},getText:function(a){return String(a.value)}},0,["slidertip"],["component","box","container","panel","tip","slidertip"],{"component":!0,"box":!0,"container":!0,"panel":!0,"tip":!0,"slidertip":!0},["widget.slidertip"],0,[Ext.slider,'Tip'],0));(Ext.cmd.derive('Ext.slider.Multi',Ext.form.field.Base,{alternateClassName:'Ext.slider.MultiSlider',vertical:!1,minValue:0,maxValue:100,decimalPrecision:0,keyIncrement:1,pageSize:10,increment:0,clickRange:[5,15],clickToChange:!0,animate:!0,dragging:!1,constrainThumbs:!0,useTips:!0,tipText:null,defaultBindProperty:'value',publishes:['value'],thumbPerValue:!1,ariaRole:'slider',focusable:!0,needArrowKeys:!0,tabIndex:0,skipLabelForAttribute:!0,focusCls:'slider-focus',childEls:['endEl','innerEl'],fieldSubTpl:['<div id="{id}" data-ref="inputEl" {inputAttrTpl}',' class="','x-','slider {fieldCls} {vertical}','{childElCls}"','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>','<tpl foreach="ariaElAttributes"> {$}="{.}"</tpl>','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</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(h,f){var e=f.$comp,a=0,c=e.thumbs,g=c.length,d,b;for(;a<g;a++){d=c[a];b=d.getElConfig();b.id=e.id+'-thumb-'+a;Ext.DomHelper.generateMarkup(b,h)}},disableFormats:!0}],horizontalProp:'left',initValue:function(){var a=this,b=Ext.valueFrom,c=b(a.values,[b(a.value,b(a.minValue,0))]),d=a.thumbPerValue;a.originalValue=c;a.initializingValues=!0;a.updateValues(c);a.initializingValues=!1;a.thumbPerValue=d},initComponent:function(){var a=this,c=a.tipText,b,f,d,g,e;a.thumbs=[];a.keyIncrement=Math.max(a.increment,a.keyIncrement);a.extraFieldBodyCls='x-slider-ct-'+(a.vertical?'vert':'horz');Ext.form.field.Base.prototype.initComponent.call(this);if(a.useTips){b={};if(Ext.isObject(a.useTips)){Ext.apply(b,a.useTips)}else if(c){b.getText=c}if(typeof (c=b.getText)==='string'){b.getText=function(b){return Ext.callback(c,null,[b],0,a,a)}}e=a.plugins=a.plugins||[];g=e.length;for(d=0;d<g;d++){if(e[d].isSliderTip){f=!0;break}}if(!f){a.plugins.push(new Ext.slider.Tip(b))}}},addThumb:function(c){var a=this,b=new Ext.slider.Thumb({ownerCt:a,value:c,slider:a,index:a.thumbs.length,constrain:a.constrainThumbs,disabled:!!a.readOnly});a.thumbs.push(b);if(a.rendered){b.render()}return b},promoteThumb:function(c){var a=this.thumbStack||(this.thumbStack=Ext.Array.slice(this.thumbs)),e=a.length,d=10000,b;if(a[0]!==c){Ext.Array.remove(a,c);a.unshift(c)}for(b=0;b<e;b++){a[b].el.setStyle('zIndex',d);d-=1000}},getSubTplData:function(d){var a=this,c,b;c=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,d),{$comp:a,vertical:a.vertical?'x-slider-vert':'x-slider-horz',minValue:a.minValue,maxValue:a.maxValue,value:a.value,tabIdx:a.tabIndex,childElCls:''});b=c.inputElAriaAttributes;if(b){if(!b['aria-labelledby']){b['aria-labelledby']=a.id+'-labelEl'}b['aria-orientation']=a.vertical?'vertical':'horizontal';b['aria-valuemin']=a.minValue;b['aria-valuemax']=a.maxValue;b['aria-valuenow']=a.value}return c},onRender:function(){var c=this,d=c.thumbs,e=d.length,a=0,b;(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).apply(this,arguments);for(a=0;a<e;a++){b=d[a];b.el=c.el.getById(c.id+'-thumb-'+a);b.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(f){var b=this,g=b.vertical,d=b.innerEl,a,e,c;if(g){c='top';a=d.getHeight()}else {c=b.horizontalProp;a=d.getWidth()}f=b.transformTrackPoints(d.translatePoints(f));e=Ext.Number.constrain(f[c],0,a);return g?a-e:e},transformTrackPoints:Ext.identityFn,checkChange:Ext.emptyFn,onMouseDown:function(f){var a=this,b=!1,d=0,e=a.thumbs,g=e.length,c;if(a.disabled){return}for(;!b&&d<g;d++){b=b||f.target===e[d].el.dom}a.focus();if(a.clickToChange&&!b){c=a.getTrackpoint(f.getXY());if(c!==undefined){a.onClickChange(c)}}},onClickChange:function(c){var a=this,b,d;b=a.getNearest(c);if(!b.disabled){d=b.index;a.setValue(d,Ext.util.Format.round(a.reversePixelValue(c),a.decimalPrecision),undefined,!0)}},getNearest:function(i){var d=this,h=d.reversePixelValue(i),g=d.getRange()+5,a=null,j=d.thumbs,f=0,k=j.length,b,c,e;for(;f<k;f++){b=d.thumbs[f];c=b.value;e=Math.abs(c-h);if(Math.abs(e)<=g){if(a&&a.value==c&&c>h&&b.index>a.index){continue}a=b;g=e}}return a},onKeyDown:function(b){var a=this,e=a.ariaEl.dom,d,c;d=b.getKey();if(a.disabled||a.thumbs.length!==1){if(d!==b.TAB){b.preventDefault()}return}switch(d){case b.UP:case b.RIGHT:c=b.ctrlKey?a.maxValue:a.getValue(0)+a.keyIncrement;break;case b.DOWN:case b.LEFT:c=b.ctrlKey?a.minValue:a.getValue(0)-a.keyIncrement;break;case b.HOME:c=a.minValue;break;case b.END:c=a.maxValue;break;case b.PAGE_UP:c=a.getValue(0)+a.pageSize;break;case b.PAGE_DOWN:c=a.getValue(0)-a.pageSize;break;}if(c!==undefined){b.stopEvent();c=a.normalizeValue(c);a.setValue(0,c,undefined,!0);if(e){e.setAttribute('aria-valuenow',c)}}},normalizeValue:function(a){var b=this,c=b.zeroBasedSnapping?'snap':'snapInRange';a=Ext.Number[c](a,b.increment,b.minValue,b.maxValue);a=Ext.util.Format.round(a,b.decimalPrecision);a=Ext.Number.constrain(a,b.minValue,b.maxValue);return a},setMinValue:function(c){var a=this,e=a.thumbs,g=e.length,d=a.ariaEl.dom,f,b;a.minValue=c;for(b=0;b<g;++b){f=e[b];if(f.value<c){a.setValue(b,c,!1)}}if(d){d.setAttribute('aria-valuemin',c)}a.syncThumbs()},setMaxValue:function(c){var a=this,e=a.thumbs,g=e.length,d=a.ariaEl.dom,f,b;a.maxValue=c;for(b=0;b<g;++b){f=e[b];if(f.value>c){a.setValue(b,c,!1)}}if(d){d.setAttribute('aria-valuemax',c)}a.syncThumbs()},setValue:function(e,b,d,g){var a=this,f=a.ariaEl.dom,c;if(Ext.isArray(e)){a.updateValues(e,b);return a}c=a.thumbs[e];b=a.normalizeValue(b);if(b!==c.value&&a.fireEvent('beforechange',a,b,c.value,c,'update')!==!1){c.value=b;if(a.rendered){if(Ext.isDefined(d)){d=d===!1?!1:d}else {d=a.animate}c.move(a.calculateThumbPosition(b),d);if(e===0&&f){f.setAttribute('aria-valuenow',b)}a.fireEvent('change',a,b,c,'update');a.checkDirty();if(g){a.fireEvent('changecomplete',a,b,c)}}}return a},calculateThumbPosition:function(d){var b=this,c=b.minValue,a=(d-c)/b.getRange()*100;if(isNaN(a)){a=0}return a},getRatio:function(){var a=this,d=a.innerEl,b=a.vertical?d.getHeight():d.getWidth(),c=a.getRange();return c===0?b:(b/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 a=this,d=0,e=a.thumbs,g=e.length,b,c,f;Ext.form.field.Base.prototype.onDisable.call(this);for(;d<g;d++){b=e[d];c=b.el;b.disable();if(Ext.isIE){f=c.getXY();c.hide();a.innerEl.addCls(a.disabledCls).dom.disabled=!0;if(!a.thumbHolder){a.thumbHolder=a.endEl.createChild({role:'presentation',cls:'x-slider-thumb '+a.disabledCls})}a.thumbHolder.show().setXY(f)}}},onEnable:function(){var a=this,c=0,d=a.thumbs,f=d.length,b,e;Ext.form.field.Base.prototype.onEnable.call(this);for(;c<f;c++){b=d[c];e=b.el;b.enable();if(Ext.isIE){a.innerEl.removeCls(a.disabledCls).dom.disabled=!1;if(a.thumbHolder){a.thumbHolder.hide()}e.show();a.syncThumbs()}}},syncThumbs:function(){if(this.rendered){var b=this.thumbs,c=b.length,a=0;for(;a<c;a++){b[a].move(this.calculateThumbPosition(b[a].value))}}},getValue:function(a){return Ext.isNumber(a)?this.thumbs[a].value:this.getValues()},getValues:function(){var c=[],a=0,b=this.thumbs,d=b.length;for(;a<d;a++){c.push(b[a].value)}return c},getSubmitValue:function(){var a=this;return (a.disabled||!a.submitValue)?null:a.getValue()},reset:function(){var a=this,b=[].concat(a.originalValue);a.updateValues(b);a.clearInvalid();delete a.wasValid},updateValues:function(j,n,l){var a=this,k=j.length,f=a.thumbs,m=f.length,g=[],e=a.initializingValues||l,b,c,d,i,h;for(b=0;b<k;b++){c=f[b];d=j[b];if(c){a.setValue(b,d,n)}else {g.push(d)}}if(a.thumbPerValue||a.initializingValues){i=g.length;h=m-k;for(b=0;b<i;b++){d=g[b];if(e||a.fireEvent('beforechange',a,d,null,null,'add')!==!1){c=a.addThumb(a.normalizeValue(d));if(!e){a.fireEvent('change',a,d,c,'add')}a.checkDirty()}}for(b=0;b<h;b++){c=f[f.length-1];if(e||a.fireEvent('beforechange',a,null,c.value,c,'remove')!==!1){a.removeThumb(c);if(!e){a.fireEvent('change',a,null,null,'remove')}a.checkDirty()}}}return a},removeThumb:function(a){var c=this,d=c.thumbs,b;if(Ext.isNumber(a)){b=a;a=d[b]}else {b=c.findThumbIndex(a)}if(a&&Ext.isNumber(b)){d.splice(b,1);c.thumbStack=Ext.Array.slice(c.thumbs);Ext.destroy(a)}},findThumbIndex:function(d){var b=this.thumbs,e=b.length,c=null,a;for(a=0;a<e;a++){if(b[a]===d){c=a;break}}return c},setReadOnly:function(c){var d=this,b=d.thumbs,e=b.length,a=0;Ext.form.field.Base.prototype.setReadOnly.apply(this,arguments);c=d.readOnly;for(;a<e;++a){if(c){b[a].disable()}else {b[a].enable()}}},doDestroy:function(){var a=this;if(a.rendered){Ext.destroy(a.thumbs)}if(a.thumbHolder){a.thumbHolder.destroy();a.thumbHolder=null}Ext.form.field.Base.prototype.doDestroy.call(this)}},0,["multislider"],["component","box","field","multislider"],{"component":!0,"box":!0,"field":!0,"multislider":!0},["widget.multislider"],0,[Ext.slider,'Multi',Ext.slider,'MultiSlider'],0));(Ext.cmd.derive('Ext.slider.Single',Ext.slider.Multi,{alternateClassName:['Ext.Slider','Ext.form.SliderField','Ext.slider.SingleSlider','Ext.slider.Slider'],initComponent:function(){if(this.publishOnComplete){this.valuePublishEvent='changecomplete'}Ext.slider.Multi.prototype.initComponent.call(this)},publishOnComplete:!0,getValue:function(){return Ext.slider.Multi.prototype.getValue.call(this,0)},setValue:function(d,c){var a=arguments,b=a.length;if(b===1||(b<=3&&typeof a[1]!=='number')){a=Ext.toArray(a);a.unshift(0)}return Ext.slider.Multi.prototype.setValue.apply(this,a)},getNearest:function(){return this.thumbs[0]}},0,["slider","sliderfield"],["component","box","field","multislider","slider","sliderfield"],{"component":!0,"box":!0,"field":!0,"multislider":!0,"slider":!0,"sliderfield":!0},["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:!1},config:{clickToChange:!0,ui:'widget',value:0,minValue:0,maxValue:100,publishOnComplete:!0,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(a){var c=this,d=c.animateOnSetValue,b,e;if(Ext.isArray(a)){a=Ext.Array.from(a);for(b=0,e=a.length;b<e;++b){c.setThumbValue(b,a[b]=c.normalizeValue(a[b]),d,!0)}}else {a=c.normalizeValue(a);c.setThumbValue(0,a,d,!0)}return a},updateVertical:function(b,a){this.element.removeCls('x-slider-'+(a?'vert':'horz'));this.element.addCls('x-slider-'+(b?'vert':'horz'))},updateHeight:function(b,a){Ext.Widget.prototype.updateHeight.call(this,b,a);this.endEl.dom.style.height=this.innerEl.dom.style.height='100%'},cancelDrag:function(a){a.stopPropagation()},getThumb:function(d){var a=this,c,b=(a.thumbs||(a.thumbs=[]))[d],f=a.getVertical()?'panY':'panX',e={};if(!b){c={cls:a.thumbCls,style:{}};c['data-thumbIndex']=d;b=a.thumbs[d]=a.innerEl.createChild(c);e[f]=!1;b.setTouchAction(e)}return b},getThumbPositionStyle:function(){return this.getVertical()?'bottom':this.horizontalProp},update:function(){var b=this,c=b.getValues(),d=c.length,a;for(a=0;a<d;a++){this.thumbs[a].dom.style[b.getThumbPositionStyle()]=b.calculateThumbPosition(c[a])+'%'}},updateMaxValue:function(a){this.onRangeAdjustment(a,'min')},updateMinValue:function(a){this.onRangeAdjustment(a,'max')},onRangeAdjustment:function(d,c){var b=this._value,a;if(!isNaN(b)){a=Math[c](b,d)}if(a!==undefined){this.setValue(a)}this.update()},onMouseDown:function(e){var a=this,b,c=e.getXY(),d;if(!a.disabled&&e.button===0){Ext.getDoc().on({scope:a,capture:!0,selectstart:a.stopSelect});b=e.getTarget('.'+a.thumbCls,null,!0);if(b){a.animateOnSetValue=!1;a.promoteThumb(b);a.captureMouse(a.onMouseMove,a.onMouseUp,[b],1);d=a.pointerOffset=b.getXY();d[0]+=Math.floor(b.getWidth()/2)-c[0];d[1]+=Math.floor(b.getHeight()/2)-c[1]}else {if(a.getClickToChange()){c=a.getTrackpoint(c);if(c!=null){a.onClickChange(c)}}}}},onClickChange:function(d){var a=this,e,b,c;e=a.getNearest(d);b=parseInt(e.getAttribute('data-thumbIndex'),10);c=Ext.util.Format.round(a.reversePixelValue(d),a.decimalPrecision);if(b){a.setThumbValue(b,c,undefined,!0)}else {a.setValue(c)}},getNearest:function(j){var c=this,i=c.reversePixelValue(j),e=c.getRange()+5,f=null,g=c.thumbs,d=0,k=g.length,a,h,b;for(;d<k;d++){a=g[d];h=a.value;b=Math.abs(h-i);if(Math.abs(b)<=e){f=a;e=b}}return f},promoteThumb:function(c){var a=this.thumbStack||(this.thumbStack=Ext.Array.slice(this.thumbs)),e=a.length,d=10000,b;if(a[0]!==c){Ext.Array.remove(a,c);a.unshift(c)}for(b=0;b<e;b++){a[b].el.setStyle('zIndex',d);d-=1000}},doMouseMove:function(h,g,f){var a=this,d=h.getXY(),e,b,c;d[0]+=a.pointerOffset[0];d[1]+=a.pointerOffset[1];c=a.getTrackpoint(d);if(c!=null){e=Ext.util.Format.round(a.reversePixelValue(c),a.decimalPrecision);b=parseInt(g.getAttribute('data-thumbIndex'),10);if(b||(!f&&a.getPublishOnComplete())){a.setThumbValue(b,e,!1,f)}else {a.setValue(e)}}},onMouseMove:function(b,a){this.doMouseMove(b,a,!1)},onMouseUp:function(c,b){var a=this;a.doMouseMove(c,b,!0);Ext.getDoc().un({scope:a,capture:!0,selectstart:a.stopSelect});delete a.animateOnSetValue},stopSelect:function(a){a.stopEvent();return !1},setThumbValue:function(g,b,e,i){var a=this,c,h,d,f;if(Ext.isArray(g)){f=g;e=b;for(d=0,h=f.length;d<h;++d){a.setThumbValue(d,f[d],e,i)}return a}c=a.getThumb(g);b=a.normalizeValue(b);if(b!==c.value&&a.fireEvent('beforechange',a,b,c.value,c)!==!1){c.value=b;if(a.element.dom){a.element.set({'aria-valuenow':b,'aria-valuetext':b});a.moveThumb(c,a.calculateThumbPosition(b),Ext.isDefined(e)?e!==!1:a.animate);a.fireEvent('change',a,b,c)}}return a},getValue:function(b){var c=this,a;if(Ext.isNumber(b)){a=c.thumbs[b].value}else {a=c.getValues();if(a.length===1){a=a[0]}}return a},getValues:function(){var d=this,c=[],a=0,b=d.thumbs,e=b&&b.length;for(;a<e;a++){c.push(d.thumbs[a].value)}return c},moveThumb:function(b,e,f){var g=this,a=g.getThumbPositionStyle(),d,c;e+='%';if(!f){b.dom.style[a]=e}else {d={};d[a]=e;if(!Ext.supports.GetPositionPercentage){c={};c[a]=b.dom.style[a]}new Ext.fx.Anim({target:b,duration:350,from:c,to:d})}},normalizeValue:function(b){var a=this,c=a.zeroBasedSnapping?'snap':'snapInRange';b=Ext.Number[c](b,a.increment,a.minValue,a.maxValue);b=Ext.util.Format.round(b,a.decimalPrecision);b=Ext.Number.constrain(b,a.minValue,a.maxValue);return b},getTrackpoint:function(f){var b=this,g=b.getVertical(),d=b.innerEl,a,e,c;if(g){c='top';a=d.getHeight()}else {c=b.horizontalProp;a=d.getWidth()}f=b.transformTrackPoints(d.translatePoints(f));e=Ext.Number.constrain(f[c],0,a);return g?a-e:e},transformTrackPoints:Ext.identityFn,calculateThumbPosition:function(c){var b=this,a=(c-b.getMinValue())/b.getRange()*100;if(isNaN(a)){a=0}return a},getRatio:function(){var a=this,d=a.innerEl,b=a.getVertical()?d.getHeight():d.getWidth(),c=a.getRange();return c===0?b:(b/c)},getRange:function(){return this.getMaxValue()-this.getMinValue()},reversePixelValue:function(a){return this.getMinValue()+(a/this.getRatio())},captureMouse:function(b,a,g,f){var d=this,e,c;b=b&&Ext.Function.bind(b,d,g,f);a=a&&Ext.Function.bind(a,d,g,f);e=function(){Ext.getDoc().un(c);if(a){a.apply(d,arguments)}};c={mousemove:b,mouseup:e};Ext.getDoc().on(c)},doDestroy:function(){Ext.destroy(this.thumbs);Ext.Widget.prototype.doDestroy.call(this)}},0,["sliderwidget"],["widget","sliderwidget"],{"widget":!0,"sliderwidget":!0},["widget.sliderwidget"],0,[Ext.slider,'Widget'],0));(Ext.cmd.derive('Ext.state.CookieProvider',Ext.state.Provider,{constructor:function(b){var a=this;a.path="/";a.expires=new Date(Ext.Date.now()+(1000*60*60*24*7));a.domain=null;a.secure=!1;Ext.state.Provider.prototype.constructor.apply(this,arguments);a.state=a.readCookies()},set:function(b,a){var c=this;if(typeof a==="undefined"||a===null){c.clear(b);return}c.setCookie(b,a);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 c={},h=document.cookie+";",g=/\s?(.*?)=(.*?);/g,d=this.prefix,f=d.length,b,a,e;while((b=g.exec(h))!=null){a=b[1];e=b[2];if(a&&a.substring(0,f)===d){c[a.substr(f)]=this.decodeValue(e)}}return c},setCookie:function(c,b){var a=this;document.cookie=a.prefix+c+"="+a.encodeValue(b)+((a.expires==null)?"":("; expires="+a.expires.toUTCString()))+((a.path==null)?"":("; path="+a.path))+((a.domain==null)?"":("; domain="+a.domain))+(a.secure?"; secure":"")},clearCookie:function(b){var a=this;document.cookie=a.prefix+b+"=null; expires=Thu, 01-Jan-1970 00:00:01 GMT"+((a.path==null)?"":("; path="+a.path))+((a.domain==null)?"":("; domain="+a.domain))+(a.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 b=this.store,c={},d=b.getKeys(),e=d.length,a;while(e--){a=d[e];c[a]=this.decodeValue(b.getItem(a))}return c},set:function(c,b){var a=this;a.clear(c);if(b!=null){a.store.setItem(c,a.encodeValue(b));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 b=this.prefix,a=b,c=a.length-1;if(a.charAt(c)==='-'){a=a.substring(0,c)}return new Ext.util.LocalStorage({id:a,prefix:b})}},1,0,0,0,["state.localstorage"],0,[Ext.state,'LocalStorageProvider'],0));(Ext.cmd.derive('Ext.tab.Tab',Ext.button.Button,{isTab:!0,baseCls:'x-tab',closeElOverCls:'x-tab-close-btn-over',closeElPressedCls:'x-tab-close-btn-pressed',config:{rotation:'default',tabPosition:'top'},closable:!0,closeText:'removable',active:!1,childEls:['closeEl'],scale:!1,ariaRole:'tab',tabIndex:-1,keyMap:{scope:'this',DELETE:'onDeleteKey'},_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 a=this,g=a._rotateClasses,h=a.getTabPosition(),f=a.getActualRotation(),c=a._rotateCls,e=a._rotateCls=g[f],b=a._positionCls,d=a._positionCls=a._positions[h][f];if(c!==e){if(c){a.removeCls(c)}if(e){a.addCls(e)}}if(b!==d){if(b){a.removeClsWithUI(b)}if(d){a.addClsWithUI(d)}if(a.rendered){a.updateFrame()}}if(a.rendered){a.setElOrientation()}},onAdded:function(a,c,b){Ext.button.Button.prototype.onAdded.call(this,a,c,b);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 a=this,c=a.up('tabbar'),b=a.up('tabpanel');Ext.button.Button.prototype.beforeRender.call(this);a.ariaRenderAttributes=a.ariaRenderAttributes||{};if(a.active){a.ariaRenderAttributes['aria-selected']=!0;a.addCls(a._activeCls)}else {a.ariaRenderAttributes['aria-selected']=!1}a.syncClosableCls();if(!a.minWidth){a.minWidth=(c)?c.minTabWidth:a.minWidth;if(!a.minWidth&&b){a.minWidth=b.minTabWidth}if(a.minWidth&&a.iconCls){a.minWidth+=25}}if(!a.maxWidth){a.maxWidth=(c)?c.maxTabWidth:a.maxWidth;if(!a.maxWidth&&b){a.maxWidth=b.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)}},setElOrientation:function(){var c=this,a=c.getActualRotation(),b=c.el;if(a){b.setVertical(a===1?90:270)}else {b.setHorizontal()}},enable:function(b){var a=this;Ext.button.Button.prototype.enable.apply(this,arguments);a.removeCls(a._disabledCls);return a},disable:function(b){var a=this;Ext.button.Button.prototype.disable.apply(this,arguments);a.addCls(a._disabledCls);return a},setClosable:function(b){var a=this;b=(!arguments.length||!!b);if(a.closable!==b){a.closable=b;if(a.card){a.card.closable=b}a.syncClosableCls();if(a.rendered){a.syncClosableElements();a.updateLayout()}}},syncClosableElements:function(){var a=this,b=a.closeEl;if(a.closable){if(!b){b=a.closeEl=a.btnWrap.insertSibling({tag:'span',id:a.id+'-closeEl',cls:a.baseCls+'-close-btn',html:a.closeText},'after')}b.addClsOnOver(a.closeElOverCls);b.addClsOnClick(a.closeElPressedCls)}else if(b){b.destroy();delete a.closeEl}},syncClosableCls:function(){var a=this,b=a._closableCls;if(a.closable){a.addCls(b)}else {a.removeCls(b)}},setCard:function(b){var a=this;a.card=b;if(b.iconAlign){a.setIconAlign(b.iconAlign)}if(b.textAlign){a.setTextAlign(b.textAlign)}a.setText(a.title||b.title);a.setIconCls(a.iconCls||b.iconCls);a.setIcon(a.icon||b.icon);a.setGlyph(a.glyph||b.glyph)},onCloseClick:function(){var a=this;if(a.fireEvent('beforeclose',a)!==!1){if(a.tabBar){if(a.tabBar.closeTab(a)===!1){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);b.stopEvent();return !1}},onDeleteKey:function(a){if(this.closable){this.onCloseClick();a.stopEvent();return !1}},beforeClick:function(a){if(!a){this.focus()}},activate:function(d){var a=this,b=a.card,c=a.ariaEl.dom;a.active=!0;a.addCls(a._activeCls);if(c){c.setAttribute('aria-selected',!0)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-selected']=!0}if(b){if(b.ariaEl.dom){b.ariaEl.dom.setAttribute('aria-expanded',!0)}else {b.ariaRenderAttributes=b.ariaRenderAttributes||{};b.ariaRenderAttributes['aria-expanded']=!0}}if(d!==!0){a.fireEvent('activate',a)}},deactivate:function(d){var a=this,b=a.card,c=a.ariaEl.dom;a.active=!1;a.removeCls(a._activeCls);if(c){c.setAttribute('aria-selected',!1)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-selected']=!1}if(b){if(b.ariaEl.dom){b.ariaEl.dom.setAttribute('aria-expanded',!1)}else {b.ariaRenderAttributes=b.ariaRenderAttributes||{};b.ariaRenderAttributes['aria-expanded']=!1}}if(d!==!0){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":!0,"box":!0,"button":!0,"tab":!0},["widget.tab"],0,[Ext.tab,'Tab'],0));(Ext.cmd.derive('Ext.tab.Bar',Ext.panel.Bar,{baseCls:'x-tab-bar',componentLayout:'body',isTabBar:!0,config:{tabRotation:'default',tabStretchMax:!0,activateOnFocus:!0},defaultType:'tab',plain:!1,ensureActiveVisibleOnChange:!0,ariaRole:'tablist',focusableContainer:!0,childEls:['body','strip'],_stripCls:'x-tab-bar-strip',_baseBodyCls:'x-tab-bar-body',renderTpl:'<tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'before\'); %}</tpl><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><tpl if="hasTabGuard">{% this.renderTabGuard(out, values, \'after\'); %}</tpl><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 a=this,b=a.initialConfig.layout,d=b&&b.align,c=b&&b.overflowHandler;if(a.plain){a.addCls(a.baseCls+'-plain')}a.layout=Ext.apply({align:d||(a.getTabStretchMax()?'stretchmax':a._layoutAlign[a.dock]),overflowHandler:c||'scroller'},a.layout);Ext.panel.Bar.prototype.initComponent.call(this);a.on({click:a.onClick,element:'el',scope:a})},ensureTabVisible:function(a){var b=this,d=b.tabPanel,c=b.layout.overflowHandler;if(b.rendered&&c&&b.tooNarrow&&c.scrollToItem){if(a||a===0){if(!a.isTab){if(Ext.isNumber(a)){a=this.items.getAt(a)}else if(a.isComponent&&d&&d.items.contains(a)){a=a.tab}}}if(!a){a=b.activeTab}if(a){c.scrollToItem(a)}}},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(f){var b=this,a=b.items,d=b.ownerCt,e,c,g;a=a&&a.items;if(a){for(c=0,g=a.length;c<g;c++){e=a[c];if(e.isTab){e.setTabPosition(f)}}}if(b.rendered){b.resetItemMargins();if(d&&d.isHeader){d.resetItemMargins()}b.needsScroll=!0}Ext.panel.Bar.prototype.setDock.call(this,f)},updateTabRotation:function(f){var b=this,a=b.items,c,e,d;a=a&&a.items;if(a){for(c=0,e=a.length;c<e;c++){d=a[c];if(d.isTab){d.setRotation(f)}}}if(b.rendered){b.resetItemMargins();b.needsScroll=!0;b.updateLayout()}},onRender:function(){var a=this,b=this.layout.overflowHandler;Ext.panel.Bar.prototype.onRender.call(this);if(Ext.isIE8&&a.vertical){a.el.on({mousemove:a.onMouseMove,scope:a})}if(b&&b.type==='menu'){b.menu.on('click','onOverflowMenuItemClick',a)}},afterLayout:function(){this.adjustTabPositions();Ext.panel.Bar.prototype.afterLayout.apply(this,arguments)},onAdd:function(a,c){var b=this.onTabContentChange;if(this.ensureActiveVisibleOnChange){a.barListeners=a.on({scope:this,destroyable:!0,glyphchange:b,iconchange:b,textchange:b})}Ext.panel.Bar.prototype.onAdd.call(this,a,c)},onAdded:function(a,c,b){if(a.isHeader){this.addCls(a.baseCls+'-'+a.ui+'-tab-bar')}Ext.panel.Bar.prototype.onAdded.call(this,a,c,b)},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(d){var a=this,c=a.needsScroll,b=a.layout.overflowHandler;Ext.panel.Bar.prototype.afterComponentLayout.apply(this,arguments);if(b&&c&&a.tooNarrow&&b.scrollToItem){b.scrollToItem(a.activeTab)}delete a.needsScroll},onMouseMove:function(d){var b=this,c=b._overTab,e,a;if(d.getTarget('.x-box-scroller')){return}e=b.getTabInfoFromPoint(d.getXY());a=e.tab;if(a!==c){if(c&&c.rendered){c.onMouseLeave(d);b._overTab=null}if(a){a.onMouseEnter(d);b._overTab=a;if(!a.disabled){b.el.setStyle('cursor','pointer')}}else {b.el.setStyle('cursor','default')}}},onMouseLeave:function(b){var a=this._overTab;if(a&&a.rendered){a.onMouseLeave(b)}},getTabInfoFromPoint:function(x){var a=this,w=a.items.items,y=w.length,t=a.layout.innerCt,r=t.getXY(),v=new Ext.util.Point(x[0],x[1]),n=0,b,s,d,u,k,l,m,h,g,e,f,j,i,p,o,q,c;for(;n<y;n++){c=w[n];b=c.lastBox;if(!b||!c.isTab){continue}e=r[0]+b.x;f=r[1]-t.dom.scrollTop+b.y;j=b.width;i=b.height;s=new Ext.util.Region(f,e+j,f+i,e);if(s.contains(v)){d=c.closeEl;if(d){if(a._isTabReversed===undefined){a._isTabReversed=o=(c.btnWrap.dom.currentStyle.filter.indexOf('rotation=2')!==-1)}q=o?this._reverseDockNames[a.dock]:a.dock;h=d.getWidth();g=d.getHeight();k=a.getCloseXY(d,e,f,j,i,h,g,q);l=k[0];m=k[1];p=new Ext.util.Region(m,l+h,m+g,l);u=p.contains(v)}break}}return {tab:c,close:u}},getCloseXY:function(k,b,c,j,i,g,f,h){var a=k.getXY(),d,e;if(h==='right'){d=b+j-((a[1]-c)+f);e=c+(a[0]-b)}else {d=b+(a[1]-c);e=c+b+i-a[0]-g}return [d,e]},closeTab:function(b){var e=this,a=b.card,d=e.tabPanel,c;if(a&&a.fireEvent('beforeclose',a)===!1){return !1}c=e.findNextActivatable(b);Ext.suspendLayouts();if(c){if(d){d.setActiveTab(c.card)}else {e.setActiveTab(c)}c.focus()}if(d&&a){delete b.ownerCt;a.fireEvent('close',a);d.remove(a);if(a.ownerCt!==d){b.fireClose();e.remove(b)}else {b.ownerCt=e;Ext.resumeLayouts(!0);return !1}}Ext.resumeLayouts(!0)},findNextActivatable:function(b){var d=this,a=d.previousTab,c;if(b.active&&d.items.getCount()>1){if(a&&a!==b&&!a.disabled){c=a}else {c=b.next('tab[disabled=false]')||b.prev('tab[disabled=false]')}}return c||d.activeTab},setActiveTab:function(b,c){var a=this;if(!b.disabled&&b!==a.activeTab){if(a.activeTab){if(a.activeTab.destroyed){a.previousTab=null}else {a.previousTab=a.activeTab;a.activeTab.deactivate();a.deactivateFocusable(a.activeTab)}}b.activate();a.activateFocusable(b);a.activeTab=b;a.needsScroll=!0;if(!c){a.fireEvent('change',a,b,b.card);a.updateLayout()}}},privates:{adjustTabPositions:function(){var g=this,f=g.items.items,h=f.length,a,b,e,c,d;if(!Ext.isIE8){d=g._getTabAdjustProp();while(h--){a=f[h];e=a.el;b=a.lastBox;c=a.isTab?a.getActualRotation():0;if(c===1&&a.isVisible()){e.setStyle(d,(b.x+b.width)+'px')}else if(c===2&&a.isVisible()){e.setStyle(d,(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(c,g){var f=this,e,a,b,d;if(c.getTarget('.x-box-scroller')){return}if(Ext.isIE8&&f.vertical){d=f.getTabInfoFromPoint(c.getXY());a=d.tab;b=d.close}else {e=c.getTarget('.'+Ext.tab.Tab.prototype.baseCls);a=e&&Ext.getCmp(e.id);b=a&&a.closeEl&&(g===a.closeEl.dom)}if(b){c.preventDefault()}if(a&&a.isDisabled&&!a.isDisabled()){a.beforeClick(b);if(a.closable&&b){a.onCloseClick()}else {f.doActivateTab(a)}}},onOverflowMenuItemClick:function(e,c,f,d){var a=c&&c.masterComponent,b=this.layout.overflowHandler;if(a&&!a.isDisabled()){this.doActivateTab(a);if(b.menuTrigger){b.menuTrigger.focus()}}},doActivateTab:function(a){var b=this.tabPanel;if(b){if(!a.disabled){b.setActiveTab(a.card)}}else {this.setActiveTab(a)}},onFocusableContainerFocus:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocus.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},onFocusableContainerFocusEnter:function(d){var b=this,c=b.mixins.focusablecontainer,a;a=c.onFocusableContainerFocusEnter.call(b,d);if(a&&a.isTab){b.doActivateTab(a)}},focusChild:function(d,c){var b=this,e=b.mixins.focusablecontainer,a;a=e.focusChild.call(b,d,c);if(b.activateOnFocus&&a&&a.isTab){b.doActivateTab(a)}}}},0,["tabbar"],["component","box","container","tabbar"],{"component":!0,"box":!0,"container":!0,"tabbar":!0},["widget.tabbar"],0,[Ext.tab,'Bar'],0));(Ext.cmd.derive('Ext.tab.Panel',Ext.panel.Panel,{alternateClassName:['Ext.TabPanel'],config:{tabBar:undefined,tabPosition:'top',tabRotation:'default',tabStretchMax:!0},removePanelHeader:!0,plain:!1,itemCls:'x-tabpanel-child',minTabWidth:undefined,maxTabWidth:undefined,deferredRender:!0,_defaultTabRotation:{top:0,right:1,bottom:0,left:2},initComponent:function(){var a=this,c=a.activeTab!==null?(a.activeTab||0):null,d=a.dockedItems,b=a.header,f=a.tabBarHeaderPosition,e=a.getTabBar(),g;a.layout=Ext.apply({type:'card',deferredRender:a.deferredRender,itemCls:a.itemCls,activeItem:c},a.layout);if(f!=null){b=a.header=Ext.apply({},b);g=b.items=(b.items?b.items.slice():[]);b.itemPosition=f;g.push(e);b.hasTabBar=!0}else {d=[].concat(a.dockedItems||[]);d.push(e);a.dockedItems=d}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);c=a.activeTab=a.getComponent(c);if(c){e.setActiveTab(c.tab,!0)}},onRender:function(){var b=this.items.items,c=b.length,a;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(a=0;a<c;++a){b[a].getBind()}},setActiveTab:function(a){var b=this,c;if(!Ext.isObject(a)||a.isComponent){a=b.getComponent(a)}c=b.getActiveTab();if(a){Ext.suspendLayouts();if(!a.isComponent){a=b.add(a)}if(c===a||b.fireEvent('beforetabchange',b,a,c)===!1){Ext.resumeLayouts(!0);return c}b.activeTab=a;b.layout.setActiveItem(a);a=b.activeTab=b.layout.getActiveItem();if(a&&a!==c){b.tabBar.setActiveTab(a.tab);Ext.resumeLayouts(!0);if(c!==a){b.fireEvent('tabchange',b,a,c)}}else {Ext.resumeLayouts(!0)}return a}return c},setActiveItem:function(a){return this.setActiveTab(a)},getActiveTab:function(){var a=this,b=a.getComponent(a.activeTab);if(b&&a.items.indexOf(b)!==-1){a.activeTab=b}else {a.activeTab=undefined}return a.activeTab},applyTabBar:function(c){var a=this,b=(a.tabBarHeaderPosition!=null)?a.getHeaderPosition():a.getTabPosition();return new Ext.tab.Bar(Ext.apply({ui:a.ui,dock:b,tabRotation:a.getTabRotation(),vertical:(b==='left'||b==='right'),plain:a.plain,tabStretchMax:a.getTabStretchMax(),tabPanel:a},c))},updateHeaderPosition:function(a,c){var b=this.getTabBar();if(b&&(this.tabBarHeaderPosition!=null)){b.setDock(a)}Ext.panel.Panel.prototype.updateHeaderPosition.call(this,a,c)},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(a,g){var b=this,e=Ext.apply({},a.tabConfig),c=b.getTabBar(),d,f={xtype:'tab',title:a.title,icon:a.icon,iconCls:a.iconCls,glyph:a.glyph,ui:c.ui,card:a,disabled:a.disabled,closable:a.closable,hidden:a.hidden&&!a.hiddenByLayout,tooltip:a.tooltip,tabBar:c,tabPosition:c.dock,rotation:c.getTabRotation()};if(a.closeText!==undefined){f.closeText=a.closeText}e=Ext.applyIf(e,f);a.tab=b.tabBar.insert(g,e);a.ariaRole='tabpanel';d=a.ariaEl.dom;if(d){d.setAttribute('aria-labelledby',a.tab.id)}else {a.ariaRenderAttributes=a.ariaRenderAttributes||{};a.ariaRenderAttributes['aria-labelledby']=a.tab.id}a.on({scope:b,enable:b.onItemEnable,disable:b.onItemDisable,beforeshow:b.onItemBeforeShow,iconchange:b.onItemIconChange,iconclschange:b.onItemIconClsChange,glyphchange:b.onItemGlyphChange,titlechange:b.onItemTitleChange});if(a.isPanel){if(b.removePanelHeader){if(a.rendered){if(a.header){a.header.hide()}}else {a.header=!1}}if(a.isPanel&&b.border){a.setBorder(!1)}}if(b.rendered){a.getBind()}if(b.rendered&&b.loader&&b.activeTab===undefined&&b.layout.activeItem!==null){b.setActiveTab(0)}},onMove:function(b,d,a){var c=this.getTabBar();Ext.panel.Panel.prototype.onMove.call(this,b,d,a);if(c.items.indexOf(b.tab)!==a){c.move(b.tab,a)}},onItemEnable:function(a){a.tab.enable()},onItemDisable:function(a){a.tab.disable()},onItemBeforeShow:function(a){if(a!==this.activeTab){this.setActiveTab(a);return !1}},onItemGlyphChange:function(b,a){b.tab.setGlyph(a)},onItemIconChange:function(b,a){b.tab.setIcon(a)},onItemIconClsChange:function(b,a){b.tab.setIconCls(a)},onItemTitleChange:function(b,a){b.tab.setText(a)},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 b=this,a=b.activeTab!==null?(b.activeTab||0):null,c=b.disabled;Ext.panel.Panel.prototype.enable.apply(this,arguments);if(c){a=a.isComponent?a:b.getComponent(a);if(a){b.getTabBar().setActiveTab(a.tab)}}return b},privates:{doRemove:function(b,d){var a=this,c;Ext.suspendLayouts();if(a.removingAll||a.destroying||a.items.getCount()===1){a.activeTab=null}else if(b.tab&&(c=a.tabBar.items.indexOf(a.tabBar.findNextActivatable(b.tab)))!==-1){a.setActiveTab(c)}Ext.panel.Panel.prototype.doRemove.call(this,b,d);Ext.resumeLayouts();if(b.tab){delete b.tab.card;delete b.tab}}}},0,["tabpanel"],["component","box","container","panel","tabpanel"],{"component":!0,"box":!0,"container":!0,"panel":!0,"tabpanel":!0},["widget.tabpanel"],0,[Ext.tab,'Panel',Ext,'TabPanel'],0));(Ext.cmd.derive('Ext.toolbar.Breadcrumb',Ext.container.Container,{isBreadcrumb:!0,baseCls:'x-breadcrumb',layout:{type:'hbox',align:'middle'},config:{buttonUI:'plain-toolbar',displayField:'text',overflowHandler:null,showIcons:null,showMenuIcons:null,store:null,useSplitButtons:!0},renderConfig:{selection:'root'},publishes:['selection'],twoWayBindable:['selection'],_breadcrumbCls:'x-breadcrumb',_btnCls:'x-breadcrumb-btn',_folderIconCls:'x-breadcrumb-icon-folder',_leafIconCls:'x-breadcrumb-icon-leaf',focusableContainer:!0,initComponent:function(){var a=this,b=a.layout,c=a.getOverflowHandler();if(typeof b==='string'){b={type:b}}if(c){b.overflowHandler=c}a.layout=b;a.defaultButtonUI=a.getButtonUI();a._buttons=[];a.addCls([a._breadcrumbCls,a._breadcrumbCls+'-'+a.ui]);Ext.container.Container.prototype.initComponent.call(this)},doDestroy:function(){Ext.destroy(this._buttons);this.setStore(null);Ext.container.Container.prototype.doDestroy.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(a){var b=this.getStore();if(b){a=(a==='root')?this.getStore().getRoot():a}else {a=null}return a},updateSelection:function(f,o){var b=this,e=b._buttons,p=[],j=Ext.ComponentQuery.query('[isCrumb]',b.getRefItems()).length,s=b._needsSync,r=b.getDisplayField(),k,l,g,m,i,c,n,a,q,h,d;Ext.suspendLayouts();if(f){c=f;h=f.get('depth');i=h+1;d=h;while(c){q=c.getId();a=e[d];if(!s&&a&&a._breadcrumbNodeId===q){break}n=c.get(r);if(a){a.setText(n)}else {a=e[d]=Ext.create({isCrumb:!0,xtype:b.getUseSplitButtons()?'splitbutton':'button',ui:b.getButtonUI(),cls:b._btnCls+' '+b._btnCls+'-'+b.ui,text:n,showEmptyMenu:!0,menu:{listeners:{click:'_onMenuClick',beforeshow:'_onMenuBeforeShow',scope:this}},handler:'_onButtonClick',scope:b})}k=this.getShowIcons();if(k!==!1){l=c.get('glyph');m=c.get('icon');g=c.get('iconCls');if(l){a.setGlyph(l);a.setIcon(null);a.setIconCls(g)}else if(m){a.setGlyph(null);a.setIconCls(null);a.setIcon(m)}else if(g){a.setGlyph(null);a.setIcon(null);a.setIconCls(g)}else if(k){a.setGlyph(null);a.setIcon(null);a.setIconCls((c.isLeaf()?b._leafIconCls:b._folderIconCls)+'-'+b.ui)}else {a.setGlyph(null);a.setIcon(null);a.setIconCls(null)}}a.setArrowVisible(c.hasChildNodes());a._breadcrumbNodeId=c.getId();c=c.parentNode;d--}if(i>j){p=e.slice(j,h+1);b.add(p)}else {for(d=j-1;d>=i;d--){b.remove(e[d],!1)}}}else {for(d=0;d<e.length;d++){b.remove(e[d],!1)}}Ext.resumeLayouts(!0);b.fireEvent('selectionchange',b,f,o);if(b._shouldFireChangeEvent){b.fireEvent('change',b,f,o)}b._shouldFireChangeEvent=!0;b._needsSync=!1},applyUseSplitButtons:function(a,b){if(this.rendered&&a!==b){Ext.raise("Cannot reconfigure 'useSplitButtons' config of Ext.toolbar.Breadcrumb after initial render")}return a},applyStore:function(a){if(a){a=Ext.data.StoreManager.lookup(a)}return a},updateStore:function(a,b){this._needsSync=!0;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(b,a,c){if(a){a=this.getStore().getNodeById(a._breadcrumbNodeId);this.setSelection(a);a=this._buttons[a.getDepth()];if(a){a.focus()}}},_onMenuBeforeShow:function(j){var c=this,l=c.getStore().getNodeById(j.ownerCmp._breadcrumbNodeId),n=c.getDisplayField(),k=c.getShowMenuIcons(),f,a,g,h,e,i,d,m,b;if(l.hasChildNodes()){f=l.childNodes;h=[];for(e=0,m=f.length;e<m;e++){a=f[e];b={text:a.get(n),_breadcrumbNodeId:a.getId()};if(k!==!1){g=a.get('glyph');i=a.get('icon');d=a.get('iconCls');if(g){b.glyph=g;b.iconCls=d}else if(i){b.icon=i}else if(d){b.iconCls=d}else if(k){b.iconCls=(a.isLeaf()?c._leafIconCls:c._folderIconCls)+'-'+c.ui}}h.push(b)}j.removeAll();j.add(h)}else {return !1}}}},0,["breadcrumb"],["component","box","container","breadcrumb"],{"component":!0,"box":!0,"container":!0,"breadcrumb":!0},["widget.breadcrumb"],0,[Ext.toolbar,'Breadcrumb'],0));(Ext.cmd.derive('Ext.toolbar.Fill',Ext.Component,{alternateClassName:'Ext.Toolbar.Fill',ariaRole:'presentation',isFill:!0,flex:1},0,["tbfill"],["component","box","tbfill"],{"component":!0,"box":!0,"tbfill":!0},["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":!0,"box":!0,"tbspacer":!0},["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:!0,lockable:!1,draggable:!1,hideable:!1,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',customIconCls:'x-tree-icon-custom',isTreeColumn:!0,cellTpl:['<tpl for="lines">','<div class="{parent.childCls} {parent.elbowCls}-img ','{parent.elbowCls}-<tpl if=".">line<tpl else>empty</tpl>" role="presentation"></div>','</tpl>','<div class="{childCls} {elbowCls}-img {elbowCls}','<tpl if="isLast">-end</tpl><tpl if="expandable">-plus {expanderCls}</tpl>" role="presentation"></div>','<tpl if="checked !== null">','<div role="button" {ariaCellCheckboxAttr}',' class="{childCls} {checkboxCls}<tpl if="checked"> {checkboxCls}-checked</tpl>"></div>','</tpl>','<tpl if="glyph">','<span class="{baseIconCls}" ','<tpl if="glyphFontFamily">','style="font-family:{glyphFontFamily}"','</tpl>','>{glyph}</span>','<tpl else>','<tpl if="icon">','<img src="{blankUrl}"','<tpl else>','<div','</tpl>',' role="presentation" class="{childCls} {baseIconCls} {customIconCls} ','{baseIconCls}-<tpl if="leaf">leaf<tpl else><tpl if="expanded">parent-expanded<tpl else>parent</tpl></tpl> {iconCls}" ','<tpl if="icon">style="background-image:url({icon})"/><tpl else>></div></tpl>','</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,c,g,f,h,j){var e=this,d=c.get('cls'),b;if(a&&d){a.tdCls+=' '+d}b=e.initTemplateRendererData(i,a,c,g,f,h,j);return e.lookupTpl('cellTpl').apply(b)},initTemplateRendererData:function(h,c,f,p,o,m,n){var b=this,j=b.innerRenderer,a=f.data,e=f.parentNode,k=n.rootVisible,l=[],g,d,i;while(e&&(k||e.data.depth>0)){g=e.data;l[k?g.depth:g.depth-1]=e.isLastVisible()?0:1;e=e.parentNode}if(c){c.iconCls=c.icon=c.glyph=null}else {c={}}h=j?j.apply(b.rendererScope,arguments):h;d=c.glyph||a.glyph;if(d){d=Ext.Glyph.fly(d);i=d.fontFamily;d=d.character}return {record:f,baseIconCls:b.iconCls,customIconCls:(a.icon||a.iconCls)?b.customIconCls:'',glyph:d,glyphFontFamily:i,iconCls:c.iconCls||a.iconCls,icon:c.icon||a.icon,checkboxCls:b.checkboxCls,checked:a.checked,elbowCls:b.elbowCls,expanderCls:b.expanderCls,textCls:b.textCls,leaf:a.leaf,expandable:f.isExpandable(),expanded:a.expanded,isLast:f.isLastVisible(),blankUrl:Ext.BLANK_IMAGE_URL,href:a.href,hrefTarget:a.hrefTarget,lines:l,metaData:c,childCls:b.getChildCls?b.getChildCls()+' ':'',value:h||m.defaultRootText}},shouldUpdateCell:function(f,a){var c=this,d=0,e,b;if(c.hasCustomRenderer){return 1}if(a){e=a.length;for(;d<e;++d){b=a[d];if(c.rowFields[b]){return 1}if(c.uiFields[b]){return 2}}}return Ext.grid.column.Column.prototype.shouldUpdateCell.call(this,f,a)}},0,["treecolumn"],["component","box","container","headercontainer","gridcolumn","treecolumn"],{"component":!0,"box":!0,"container":!0,"headercontainer":!0,"gridcolumn":!0,"treecolumn":!0},["widget.treecolumn"],0,[Ext.tree,'Column'],0));(Ext.cmd.derive('Ext.tree.NavigationModel',Ext.grid.NavigationModel,{initKeyNav:function(c){var a=this,b=a.view.ownerGrid.columns;a.isTreeGrid=b&&b.length>1;Ext.grid.NavigationModel.prototype.initKeyNav.call(this,c);a.view.grid.on({columnschanged:a.onColumnsChanged,scope:a})},onKeyNavCreate:function(b){var a=this.onAsterisk;b.map.addBinding([{key:'8',shift:!0,handler:a,scope:this},{key:Ext.event.Event.NUM_MULTIPLY,handler:a,scope:this}])},onColumnsChanged:function(){this.isTreeGrid=this.view.ownerGrid.getVisibleColumnManager().getColumns().length>1},onCellClick:function(f,e,c,d,g,b,a){Ext.grid.NavigationModel.prototype.onCellClick.call(this,f,e,c,d,g,b,a);return !a.nodeToggled},onKeyLeft:function(b){var c=this,d=b.view,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyLeft.call(this,b)}if(b.position.column.isTreeColumn&&a.isExpanded()){d.collapse(a)}else {a=a.parentNode;if(a&&!(a.isRoot()&&!d.rootVisible)){c.setPosition(a,null,b)}}},onKeyRight:function(b){var c=this,a=c.record;if(c.isTreeGrid&&!b.ctrlKey){return Ext.grid.NavigationModel.prototype.onKeyRight.call(this,b)}if(!a.isLeaf()){if(b.position.column.isTreeColumn&&!a.isExpanded()){b.view.expand(a)}else if(a.isExpanded()){a=a.childNodes[0];if(a){c.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(a)},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:!0,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:'treegrid',loadMask:!1,rootVisible:!0,expandDuration:250,collapseDuration:250,toggleOnDblClick:!0,stripeRows:!1,treeRowTpl:['{%','this.processRowValues(values);','this.nextTpl.applyOut(values, out, parent);','%}',{priority:10,processRowValues:function(a){var b=a.record,c=a.view;a.rowAttr['data-qtip']=b.get('qtip')||'';a.rowAttr['data-qtitle']=b.get('qtitle')||'';a.rowAttr['aria-level']=b.getDepth()+1;if(b.isLeaf()){a.rowClasses.push(c.leafCls)}else {if(b.isExpanded()){a.rowClasses.push(c.expandedCls);a.rowAttr['aria-expanded']=!0}else {a.rowAttr['aria-expanded']=!1}}if(b.isLoading()){a.rowClasses.push(c.loadingCls)}}}],initComponent:function(){var a=this;if(a.bufferedRenderer){a.animate=!1}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(a.lookupTpl('treeRowTpl'))},onFillComplete:function(f,d,b){var a=this,e=a.store,c=e.indexOf(b[0]);d.triggerUIUpdate();if(!b.length||c===-1){return}a.onAdd(a.store,b,c);a.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})},processUIEvent:function(a){if(a.getTarget('.'+this.nodeAnimWrapCls,this.el)){return !1}return Ext.view.Table.prototype.processUIEvent.call(this,a)},setRootNode:function(a){this.node=a},getChecked:function(){var a=[];this.node.cascade(function(b){if(b.get('checked')){a.push(b)}});return a},isItemChecked:function(a){return a.get('checked')},createAnimWrap:function(b,e){var d=this,c=d.getNode(b),a;a=Ext.fly(c).insertSibling({role:'presentation',tag:'div',cls:d.nodeAnimWrapCls},'after');return {record:b,node:c,el:a,expanding:!1,collapsing:!1,animateEl:a,targetEl:a}},getAnimWrap:function(a,d){if(!this.animate){return null}var c=this.animWraps,b=c[a.internalId];if(d!==!1){while(!b&&a){a=a.parentNode;if(a){b=c[a.internalId]}}}return b},doAdd:function(h,c){var d=this,l=h[0],i=l.parentNode,m=d.all,e,a=d.getAnimWrap(i),g,f,k,j,b;if(!a||!a.expanding){return Ext.view.Table.prototype.doAdd.call(this,h,c)}j=d.bufferRender(h,c,!0);b=j.children;i=a.record;g=a.targetEl;f=g.dom.childNodes;k=f.length;e=c-d.indexInStore(i)-1;if(!k||e>=k){g.appendChild(j.fragment,!0)}else {Ext.fly(f[e]).insertSibling(b,'before',!0)}m.insert(c,b);return b},onRemove:function(g,c,b){var a=this,f,d,e;if(a.viewReady){f=a.store.getCount()===0;if(a.bufferedRenderer){return Ext.view.Table.prototype.onRemove.call(this,g,c,b)}e=this.all.slice(b,b+c.length);if(f){a.refresh()}else {for(d=c.length-1,b+=d;d>=0;--d,--b){a.doRemove(c[d],b)}a.refreshSizePending=!0}a.fireItemMutationEvent('itemremove',c,b,e,a)}},doRemove:function(c,b){var g=this,f=g.all,a=g.getAnimWrap(c),d=f.item(b),e=d?d.dom:null;if(!e||!a||!a.collapsing){return Ext.view.Table.prototype.doRemove.call(this,c,b)}a.targetEl.dom.insertBefore(e,a.targetEl.dom.firstChild);f.removeElement(b)},onBeforeExpand:function(c,d,e){var b=this,a;if(b.rendered&&b.all.getCount()&&b.animate){if(b.getNode(c)){a=b.getAnimWrap(c,!1);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c);a.animateEl.setHeight(0)}else if(a.collapsing){a.targetEl.select(b.itemSelector).destroy()}a.expanding=!0;a.collapsing=!1}}},onExpand:function(b){var a=this,h=a.animQueue,i=b.getId(),f=a.getNode(b),g=f?a.indexOf(f):-1,c,d,e;if(a.singleExpand){a.ensureSingleExpand(b)}if(g===-1){return}c=a.getAnimWrap(b,!1);if(!c){b.isExpandingOrCollapsing=!1;a.fireEvent('afteritemexpand',b,g,f);return}d=c.animateEl;e=c.targetEl;d.stopAnimation();h[i]=!0;Ext.on('idle',function(){d.dom.style.height='0px'},null,{single:!0});d.animate({from:{height:0},to:{height:e.dom.scrollHeight},duration:a.expandDuration,listeners:{afteranimate:function(){var f=e.dom.childNodes,d=Ext.Element.getActiveElement();if(f.length){if(!e.contains(d)){d=null}c.el.insertSibling(f,'before',!0);if(d){Ext.fly(d).focus()}}c.el.destroy();h[i]=null;if(!a.destroyed){a.animWraps[c.record.internalId]=null}}},callback:function(){b.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemexpand',b,g,f)}})},onBeforeCollapse:function(c,g,f,d,e){var b=this,a;if(b.rendered&&b.all.getCount()){if(b.animate){if(c.getTreeStore().isVisible(c)){a=b.getAnimWrap(c);if(!a){a=b.animWraps[c.internalId]=b.createAnimWrap(c,f)}else if(a.expanding){a.targetEl.select(this.itemSelector).destroy()}a.expanding=!1;a.collapsing=!0;a.callback=d;a.scope=e}}else {b.onCollapseCallback=d;b.onCollapseScope=e}}},onCollapse:function(c){var a=this,g=a.animQueue,h=c.getId(),d=a.getNode(c),f=d?a.indexOf(d):-1,b=a.getAnimWrap(c),e;if(!a.all.getCount()||!c.isVisible()){return}if(!b){c.isExpandingOrCollapsing=!1;a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(a.onCollapseCallback,a.onCollapseScope);a.onCollapseCallback=a.onCollapseScope=null;return}e=b.animateEl;g[h]=!0;e.stopAnimation();e.animate({to:{height:0},duration:a.collapseDuration,listeners:{afteranimate:function(){b.el.destroy();g[h]=null;if(!a.destroyed){a.animWraps[b.record.internalId]=null}}},callback:function(){c.isExpandingOrCollapsing=!1;if(!a.destroyed){a.refreshSize(!0)}a.fireEvent('afteritemcollapse',c,f,d);Ext.callback(b.callback,b.scope);b.callback=b.scope=null}})},isAnimating:function(a){return !!this.animQueue[a.getId()]},expand:function(a,f,d,e){var g=this,b=!!g.animate,c;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}Ext.suspendLayouts();c=a.expand(f,d,e);Ext.resumeLayouts(!0);return c}},collapse:function(a,e,c,d){var f=this,b=!!f.animate;if(!b||!a.isExpandingOrCollapsing){if(!a.isLeaf()){a.isExpandingOrCollapsing=b}return a.collapse(e,c,d)}},toggle:function(a,d,b,c){if(a.isExpanded()){this.collapse(a,d,b,c)}else {this.expand(a,d,b,c)}},onItemDblClick:function(a,e,d,f){var b=this,c=b.editingPlugin;Ext.view.Table.prototype.onItemDblClick.call(this,a,e,d,f);if(b.toggleOnDblClick&&a.isExpandable()&&!(c&&c.clicksToEdit===2)){b.toggle(a)}},onCellClick:function(d,f,c,h,g,a){var b=this,e=a.position.column;if(e.isTreeColumn){if(a.getTarget(b.checkboxSelector,d)&&c.get('checked')!=null){b.onCheckChange(a);if(e.stopSelection){a.stopSelection=!0}}else if(a.getTarget(b.expanderSelector,d)&&c.isExpandable()){b.getNavigationModel().setPosition(a.position);b.toggle(c,a.ctrlKey);a.nodeToggled=!0}return Ext.view.Table.prototype.onCellClick.call(this,d,f,c,h,g,a)}},onCheckChange:function(d){var e=this,c=d.record,b=c.get('checked'),a;if(b===1){a=!0}else {a=!b}e.setChecked(c,a,d)},setChecked:function(d,b,m,k){var e=this,o=e.checkPropagationFlags[e.ownerGrid.checkPropagation.toLowerCase()],r=d.data.checked,l=e.ownerGrid.triStateCheckbox?1:!1,p=(!k||k.propagateCheck!==!1)&&(o&1),q=(!k||k.checkParent!==!1)&&(o&2),j,f,g,i,c,n=0,h,a;if(e.fireEvent('beforecheckchange',d,r,m)===!1){return}if(b!==1&&p){c=d.childNodes;h=c.length;for(a=0;a<h;a++){e.setChecked(c[a],b,m,{checkParent:!1});if(c[a].get('checked')===b){n++}}if(n!==h){b=n?l:!1}}if(d.get('checked')!==b){d.set('checked',b,k);e.fireEvent('checkchange',d,b,m);if(q&&(j=d.parentNode)&&(f=j.data.checked)!=null){c=j.childNodes;h=c.length;if(b===l){f=l}else if(h===1){f=b}else {g=i=!1;for(a=0;!(g&&i)&a<h;a++){if(c[a].data.checked===1){g=i=!0}else if(!c[a].data.checked){i=!0}else {g=!0}}f=g&&i?l:(g?!0:!1)}if(j.get('checked')!==f){e.setChecked(j,f,m,{propagateCheck:!1})}}}},onExpanderMouseOver:function(a){Ext.fly(a.getTarget(this.cellSelector,10)).addCls(this.expanderIconOverCls)},onExpanderMouseOut:function(a){Ext.fly(a.getTarget(this.cellSelector,10)).removeCls(this.expanderIconOverCls)},getStoreListeners:function(){return Ext.apply(Ext.view.Table.prototype.getStoreListeners.call(this),{rootchange:this.onRootChange,fillcomplete:this.onFillComplete})},onBindStore:function(b,f,e,a){var d=a&&a.getRootNode(),c=b&&b.getRootNode();Ext.view.Table.prototype.onBindStore.call(this,b,f,e,a);if(c!==d){this.onRootChange(c,d)}},onRootChange:function(b,c){var a=this,d=a.grid;if(c){a.rootListeners.destroy();a.rootListeners=null}if(b){a.rootListeners=b.on({beforeexpand:a.onBeforeExpand,expand:a.onExpand,beforecollapse:a.onBeforeCollapse,collapse:a.onCollapse,destroyable:!0,scope:a});d.addRelayers(b)}},ensureSingleExpand:function(b){var a=b.parentNode;if(a){a.eachChild(function(a){if(a!==b&&a.isExpanded()){a.collapse()}})}},privates:{checkPropagationFlags:{none:0,down:1,up:2,both:3},deferRefreshForLoad:function(b){var d=Ext.view.Table.prototype.deferRefreshForLoad.call(this,b),a,c;if(d){a=b.lastOptions;c=a&&a.node;if(c&&c!==b.getRoot()){d=!1}}return d}}},0,["treeview"],["component","box","dataview","tableview","gridview","treeview"],{"component":!0,"box":!0,"dataview":!0,"tableview":!0,"gridview":!0,"treeview":!0},["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:!1,lines:!0,useArrows:!1,singleExpand:!1,ddConfig:{enableDrag:!0,enableDrop:!0},rootVisible:!0,displayField:'text',root:null,checkPropagation:'none',normalCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible','scroll'],lockedCfgCopy:['displayField','root','singleExpand','useArrows','lines','rootVisible'],isTree:!0,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 a=this,c=[a.treeCls],b,d,e;if(a.useArrows){c.push(a.arrowCls);a.lines=!1}if(a.lines){c.push(a.linesCls)}else if(!a.useArrows){c.push(a.noLinesCls)}b=a.applyStore(a.store);if(!b.getRoot()){b.setRoot({})}b.setRootVisible(a.rootVisible);if(!a.columns){a.isAutoTree=d=!0}a.viewConfig=Ext.apply({rootVisible:a.rootVisible,animate:a.enableAnimations,singleExpand:a.singleExpand,node:b.getRoot(),navigationModel:'tree',isAutoTree:d},a.viewConfig);if(d){a.addCls(a.autoWidthCls);a.columns=[{xtype:'treecolumn',text:a.hideHeaders===!0?'Name':null,flex:1,dataIndex:a.displayField}]}if(a.cls){c.push(a.cls)}a.cls=c.join(' ');Ext.panel.Table.prototype.initComponent.call(this);e=a.getView();a.relayEvents(e,['beforecheckchange','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},setRoot:function(a){this.store.setRoot(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,d){var a=this,c=b.getRoot();Ext.panel.Table.prototype.bindStore.apply(this,arguments);b.singleExpand=a.singleExpand;a.storeListeners=a.mon(b,{destroyable:!0,rootchange:a.onRootChange,scope:a});a.storeRelayers=a.relayEvents(b,['beforeload','load']);if(!a.rootVisible&&!b.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;b.onNodeExpand(c,c.childNodes)}else if(b.autoLoad!==!1&&!b.hasPendingLoad()){c.data.expanded=!1;c.expand()}}b.ownerTree=a;if(!d){a.view.setRootNode(c)}},addRelayers:function(b){var a=this;if(a.rootRelayers){a.rootRelayers.destroy();a.rootRelayers=null}a.rootRelayers=a.mon(b,{destroyable:!0,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 a=this,b=a.store;if(b){Ext.panel.Table.prototype.unbindStore.call(this);Ext.destroy(a.storeListeners,a.storeRelayers,a.rootRelayers);delete b.ownerTree;b.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,d,a,c){return this.getView().expand(b,d,a,c||this)},collapseNode:function(b,d,a,c){return this.getView().collapse(b,d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode(),e=c.getView();if(b){Ext.suspendLayouts();a=a||c;if(e.rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},expandPath:function(p,a){var i=arguments,b=this,j=b.view,g=(a&&a.field)||b.store.model.idProperty,o,n,k=(a&&a.separator)||'/',c,e,d,h,f,m,l;if(a&&typeof a==='object'){g=a.field||b.store.model.idProperty;k=a.separator||'/';c=a.callback;e=a.scope;o=a.select;n=a.focus}else {g=i[1]||b.store.model.idProperty;k=i[2]||'/';c=i[3];e=i[4]}if(Ext.isEmpty(p)){return Ext.callback(c,e||b,[!1,null])}f=p.split(k);m=!f[0];if(m){d=b.getRootNode();h=1}else {d=b.store.findNode(g,f[0]);h=0}if(!d||(m&&(d.get(g)+'')!==f[1])){return Ext.callback(c,e||b,[!1,d])}l=function(m){var d=this,q,k,i;if(++h===f.length){if(o){j.getSelectionModel().select(d)}if(n){j.getNavigationModel().setPosition(d,0)}return Ext.callback(c,e||b,[!0,d,j.getNode(d)])}for(k=0,q=m?m.length:0;k<q;k++){d=m[k];i=d.get(g);if(i||i===0){i=i.toString()}if(i===f[h]){return d.expand(!1,l)}}d=this;Ext.callback(c,e||b,[!1,d,j.getNode(d)])};d.expand(!1,l)},ensureVisible:function(f,a){if(f.isEntity||typeof f==='number'){return Ext.panel.Table.prototype.ensureVisible.call(this,f,a)}var c=this,i=(a&&a.field)||c.store.model.idProperty,g=(a&&a.separator)||'/',h,j,b,m,k,e,d,l=function(e,d,g,b){if(!b&&e&&d){b=d.findChild(i,k)}if(b){c.doEnsureVisible(b,a)}else {Ext.callback(h,j||c,[!1,d])}};if(a){h=a.callback;j=a.scope}b=f.split(g);m=!b[0];k=b.pop();if(b.length&&!(m&&b.length===1)){c.expandPath(b.join(g),i,g,l)}else {e=c.store.findNode(i,k);if(e){d=e.parentNode;if(d&&!d.isExpanded()){d.expand()}l(!0,null,null,e)}else {Ext.callback(h,j||c,[!1,null])}}},selectPath:function(e,c,a,b,d){this.ensureVisible(e,{field:c,separator:a,select:!0,callback:b,scope:d})}},1,["treepanel"],["component","box","container","panel","tablepanel","treepanel"],{"component":!0,"box":!0,"container":!0,"panel":!0,"tablepanel":!0,"treepanel":!0},["widget.treepanel"],0,[Ext.tree,'Panel',Ext.tree,'TreePanel',Ext,'TreePanel'],0));(Ext.cmd.derive('Ext.view.DragZone',Ext.dd.DragZone,{containerScroll:!1,constructor:function(e){var a=this,b,c,d;Ext.apply(a,e);if(!a.ddGroup){a.ddGroup='view-dd-zone-'+a.view.id}b=a.view;b.setItemsDraggable(!0);c=b.ownerCt;if(c){d=c.getTargetEl().dom}else {d=b.el.dom.parentNode}Ext.dd.DragZone.prototype.constructor.call(this,d);a.ddel=document.createElement('div');a.ddel.className='x-grid-dd-wrap'},init:function(e,d,c){var a=this,b={itemmousedown:a.onItemMouseDown,scope:a};if(Ext.supports.Touch){b.itemlongpress=a.onItemLongPress;b.contextmenu={element:'el',fn:a.onViewContextMenu}}a.initTarget(e,d,c);a.view.mon(a.view,b)},onValidDrop:function(a,c,b){Ext.dd.DragZone.prototype.onValidDrop.call(this,a,c,b);if(!a.el.contains(Ext.Element.getActiveElement())){a.el.focus()}},onViewContextMenu:function(a){if(a.pointerType!=='mouse'){a.preventDefault()}},onItemMouseDown:function(e,b,d,c,a){if(a.pointerType==='mouse'){this.onTriggerGesture(e,b,d,c,a)}},onItemLongPress:function(e,b,d,c,a){if(a.pointerType!=='mouse'){this.onTriggerGesture(e,b,d,c,a)}},onTriggerGesture:function(f,d,e,c,a){var b;if((a.pointerType==='touch'&&a.type!=='longpress')||(a.position&&a.position.isEqual(a.view.actionPosition))){return}if(!this.isPreventDrag(a,d,e,c)){b=f.getNavigationModel();if(a.position){b.setPosition(a.position)}else {b.setPosition(c)}this.handleMouseDown(a)}},isPreventDrag:function(a,b,d,c){return !!a.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(f,g){var a=this,c=a.dragData,e=c.view,b=e.getSelectionModel(),d=e.getRecord(c.item);if(!b.isSelected(d)){b.selectWithEvent(d,a.DDMInstance.mousedownEvent)}c.records=b.getSelection();Ext.fly(a.ddel).setHtml(a.getDragText());a.proxy.update(a.ddel);a.onStartDrag(f,g);return !0},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:!1}},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')===!1)||!!b.getTarget(this.view.expanderSelector)},getDragText:function(){var c=this.dragData.records,e=c.length,a=c[0].get(this.displayField),d='s',f=/\{\d+\}/,b=this.dragText;if(f.test(b)&&e===1&&a){return a}else if(!a){d=''}return Ext.String.format(b,e,d)},afterRepair:function(){var b=this,c=b.view,f=c.selectedItemCls,g=b.dragData.records,d,h=g.length,e=Ext.fly,a;if(Ext.enableFx&&b.repairHighlight){for(d=0;d<h;d++){a=c.getNode(g[d]);e(a.firstChild).highlight(b.repairHighlightColor,{listeners:{beforeanimate:function(){if(c.isSelected(a)){e(a).removeCls(f)}},afteranimate:function(){if(c.isSelected(a)){e(a).addCls(f)}}}})}}b.dragging=!1}},0,0,0,0,0,0,[Ext.tree,'ViewDragZone'],0));(Ext.cmd.derive('Ext.tree.ViewDropZone',Ext.view.DropZone,{allowParentInserts:!1,allowContainerDrops:!1,appendOnly:!1,expandDelay:500,indicatorCls:'x-tree-ddindicator',expandNode:function(a){var b=this.view;this.expandProcId=!1;if(!a.isLeaf()&&!a.isExpanded()){b.expand(a);this.expandProcId=!1}},queueExpand:function(a){this.expandProcId=Ext.defer(this.expandNode,this.expandDelay,this,[a])},cancelExpand:function(){this.expandProcId=Ext.undefer(this.expandProcId)},getPosition:function(i,g){var h=this.view,b=h.getRecord(g),c=i.getY(),e=b.isLeaf(),f=!1,a=Ext.fly(g).getRegion(),d;if(b.isRoot()){return 'append'}if(this.appendOnly){return e?!1:'append'}if(!this.allowParentInserts){f=b.hasChildNodes()&&b.isExpanded()}d=(a.bottom-a.top)/(e?2:3);if(c>=a.top&&c<(a.top+d)){return 'before'}else if(!f&&(e||(c>=(a.bottom-d)&&c<=a.bottom))){return 'after'}else {return 'append'}},isValidDropPoint:function(g,c,l,k,f){if(!g||!f.item){return !1}var h=this.view,a=h.getRecord(g),b=f.records,i=b.length,j=b.length,d,e;if(!(a&&c&&i)){return !1}for(d=0;d<j;d++){e=b[d];if(e.isNode&&e.contains(a)){return !1}}if(c==='append'&&a.get('allowDrop')===!1){return !1}else if(c!=='append'&&a.parentNode.get('allowDrop')===!1){return !1}if(Ext.Array.contains(b,a)){return !1}return h.fireEvent('nodedragover',a,c,f,k)!==!1},onNodeOver:function(b,g,j,h){var d=this.getPosition(j,b),c=this.dropNotAllowed,i=this.view,a=i.getRecord(b),f=this.getIndicator(),e=0;this.cancelExpand();if(d==='append'&&!this.expandProcId&&!Ext.Array.contains(h.records,a)&&!a.isLeaf()&&!a.isExpanded()){this.queueExpand(a)}if(this.isValidDropPoint(b,d,g,j,h)){this.valid=!0;this.currentPosition=d;this.overRecord=a;f.setWidth(Ext.fly(b).getWidth());e=Ext.fly(b).getY()-Ext.fly(i.el).getY()-1;if(d==='before'){c=a.isFirst()?'x-tree-drop-ok-above':'x-tree-drop-ok-between';f.showAt(0,e);g.proxy.show()}else if(d==='after'){c=a.isLast()?'x-tree-drop-ok-below':'x-tree-drop-ok-between';e+=Ext.fly(b).getHeight();f.showAt(0,e);g.proxy.show()}else {c='x-tree-drop-ok-append';f.hide()}}else {this.valid=!1}this.currentCls=c;return c},onNodeOut:function(d,b,c,a){this.valid=!1;this.getIndicator().hide()},onContainerOver:function(c,a,b){return this.allowContainerDrops?this.dropAllowed:a.getTarget('.'+this.indicatorCls)?this.currentCls:this.dropNotAllowed},onContainerDrop:function(a,c,b){if(this.allowContainerDrops){this.valid=!0;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(d,b,o){var j=this,h=j.view,g=b?b.parentNode:h.panel.getRootNode(),m=h.store.getModel(),l,c,i,a,f,e,n,k;if(d.copy){l=d.records;d.records=[];for(c=0,i=l.length;c<i;c++){a=l[c];if(a.isNode){d.records.push(a.copy(undefined,!0))}else {d.records.push(new m(Ext.apply({},a.data)))}}}j.cancelExpand();if(o==='before'){f=g.insertBefore;e=[null,b];b=g}else if(o==='after'){if(b.nextSibling){f=g.insertBefore;e=[null,b.nextSibling]}else {f=g.appendChild;e=[null]}b=g}else {if(!(b.isExpanded()||b.isLoading())){n=!0}f=b.appendChild;e=[null]}k=function(){var k,g;Ext.suspendLayouts();for(c=0,i=d.records.length;c<i;c++){a=d.records[c];if(!a.isNode){if(a.isModel){a=new m(a.data,a.getId())}else {a=new m(a)}d.records[c]=a}e[0]=a;f.apply(b,e)}if(j.sortOnDrop){b.sort(b.getTreeStore().getSorters().sortFn)}Ext.resumeLayouts(!0);a=d.records[0];h.ownerGrid.ensureVisible(a);h.getNavigationModel().setPosition(a);if(Ext.enableFx&&j.dropHighlight){k=j.dropHighlightColor;for(c=0;c<i;c++){g=h.getNode(d.records[c]);if(g){Ext.fly(g).highlight(k)}}}};if(n){b.expand(!1,k)}else if(b.isLoading()){b.on({expand:k,delay:1,single:!0})}else {k()}}},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:!1,allowContainerDrops:!1,appendOnly:!1,ddGroup:"TreeDD",containerScroll:!1,expandDelay:1000,enableDrop:!0,enableDrag:!0,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:!0})},destroy:function(){var a=this;a.dragZone=a.dropZone=Ext.destroy(a.dragZone,a.dropZone);Ext.plugin.Abstract.prototype.destroy.call(this)},onViewRender:function(b){var a=this,d=b.ownerCt.ownerGrid||b.ownerCt,c;d.relayEvents(b,['beforedrop','drop']);if(a.enableDrag){if(a.containerScroll){c=b.getEl()}a.dragZone=new Ext.tree.ViewDragZone(Ext.apply({view:b,ddGroup:a.dragGroup||a.ddGroup,dragText:a.dragText,displayField:a.displayField,repairHighlightColor:a.nodeHighlightColor,repairHighlight:a.nodeHighlightOnRepair,scrollEl:c},a.dragZone))}if(a.enableDrop){a.dropZone=new Ext.tree.ViewDropZone(Ext.apply({view:b,ddGroup:a.dropGroup||a.ddGroup,allowContainerDrops:a.allowContainerDrops,appendOnly:a.appendOnly,allowParentInserts:a.allowParentInserts,expandDelay:a.expandDelay,dropHighlightColor:a.nodeHighlightColor,dropHighlight:a.nodeHighlightOnDrop,sortOnDrop:a.sortOnDrop,containerScroll:a.containerScroll},a.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.view.MultiSelectorSearch',Ext.panel.Panel,{layout:'fit',floating:!0,alignOnScroll:!1,minWidth:200,minHeight:200,border:!0,keyMap:{scope:'this',ESC:'hide'},platformConfig:{desktop:{resizable:!0},'tablet && rtl':{resizable:{handles:'sw'}},'tablet && !rtl':{resizable:{handles:'se'}}},defaultListenerScope:!0,referenceHolder:!0,searchText:'Search...',initComponent:function(){var a=this,g=a.owner,f=a.makeItems(),c,b,d,e;a.dockedItems=a.makeDockedItems();a.items=f;e=Ext.data.StoreManager.lookup(a.store);for(c=f.length;c--;){if((b=f[c]).xtype==='grid'){b.store=e;b.isSearchGrid=!0;b.selModel=b.selModel||{type:'checkboxmodel',pruneRemoved:!1,listeners:{selectionchange:'onSelectionChange'}};Ext.merge(b,a.grid);if(!b.columns){b.hideHeaders=!0;b.columns=[{flex:1,dataIndex:a.field}]}break}}Ext.panel.Panel.prototype.initComponent.call(this);d=a.getOwnerStore().getRange();if(!g.convertSelectionRecord.$nullFn){for(c=d.length;c--;){d[c]=g.convertSelectionRecord(d[c])}}if(e.isLoading()||(e.loadCount===0&&!e.getCount())){e.on('load',function(){if(!a.destroyed){a.selectRecords(d)}},null,{single:!0})}else {a.selectRecords(d)}},getOwnerStore:function(){return this.owner.getStore()},afterShow:function(){Ext.panel.Panel.prototype.afterShow.apply(this,arguments);if(!this.invocationEvent||this.invocationEvent.pointerType!=='touch'){var a=this.lookupReference('searchField');if(a){a.focus()}}this.invocationEvent=null},getSearchStore:function(){var a=this.lookupReference('searchGrid');return a.getStore()},makeDockedItems:function(){return [{xtype:'textfield',reference:'searchField',dock:'top',hideFieldLabel:!0,emptyText:this.searchText,cls:'x-multiselector-search-input',triggers:{clear:{cls:'x-form-clear-trigger',handler:'onClearSearch',hidden:!0}},listeners:{specialKey:'onSpecialKey',change:{fn:'onSearchChange',buffer:300}}}]},onSpecialKey:function(b,a){if(a.getKey()===a.TAB&&a.shiftKey){a.preventDefault();this.owner.searchTool.focus()}},makeItems:function(){return [{xtype:'grid',reference:'searchGrid',trailingBufferZone:2,leadingBufferZone:2,viewConfig:{deferEmptyText:!1,emptyText:'No results.'}}]},getMatchingRecords:function(a){var f=this.lookupReference('searchGrid'),g=f.getStore(),d=[],b,c,e;a=Ext.isArray(a)?a:[a];for(b=0,e=a.length;b<e;b++){c=g.getById(a[b].getId());if(c){d.push(c)}}return d},selectRecords:function(a){var b=this.lookupReference('searchGrid');a=this.getMatchingRecords(a);return b.getSelectionModel().select(a)},deselectRecords:function(a){var b=this.lookupReference('searchGrid');a=this.getMatchingRecords(a);return b.getSelectionModel().deselect(a)},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(a){var b=a.getValue(),c=a.getTrigger('clear');c.setHidden(!b);this.search(b)},onSelectionChange:function(k,g){var h=this.owner,j=h.getStore(),c=j.data,d=0,i={},e,b,f,a;for(b=g.length;b--;){a=g[b];f=a.id;i[f]=a;if(!c.containsKey(f)){(e||(e=[])).push(h.convertSearchRecord(a))}}for(b=c.length;b--;){a=c.getAt(b);if(!i[a.id]){(d||(d=[])).push(a)}}if(e||d){c.splice(c.length,d,e)}}}},0,["multiselector-search"],["component","box","container","panel","multiselector-search"],{"component":!0,"box":!0,"container":!0,"panel":!0,"multiselector-search":!0},["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:!0}}},fieldName:'name',fieldTitle:null,removeRowText:'✖',removeRowTip:'Remove this item',emptyText:'Nothing selected',addToolText:'Search for items to add',initComponent:function(){var a=this,e=a.emptyText,g=a.getStore(),f=a.getSearch(),d=a.fieldTitle,b,c;b=f.store;if(b.isStore){c=b.getModel()}else {c=b.model}if(!g){a.store={model:c}}if(e&&!a.viewConfig){a.viewConfig={deferEmptyText:!1,emptyText:e}}if(!a.columns){a.hideHeaders=!d;a.columns=[{text:d,dataIndex:a.fieldName,flex:1},a.makeRemoveRowColumn()]}Ext.grid.Panel.prototype.initComponent.call(this)},addTools:function(){var a=this;a.addTool({type:'plus',tooltip:a.addToolText,callback:'onShowSearch',scope:a});a.searchTool=a.tools[a.tools.length-1]},convertSearchRecord:Ext.identityFn,convertSelectionRecord:Ext.identityFn,makeRemoveRowColumn:function(){var a=this;return {width:32,align:'center',menuDisabled:!0,tdCls:'x-multiselector-remove',processEvent:a.processRowEvent.bind(a),renderer:a.renderRemoveRow,updater:Ext.emptyFn,scope:a}},processRowEvent:function(g,h,f,d,e,a,b,i){var c=Ext.getBody();if(a.type==='click'||(a.type==='keydown'&&(a.keyCode===a.SPACE||a.keyCode===a.ENTER))){c.suspendFocusEvents();this.store.remove(b);c.resumeFocusEvents();if(this.searchPopup){this.searchPopup.deselectRecords(b)}}},renderRemoveRow:function(){return '<span data-qtip="'+this.removeRowTip+'" role="button" tabIndex="0">'+this.removeRowText+'</span>'},onFocusLeave:function(a){this.onDismissSearch();Ext.grid.Panel.prototype.onFocusLeave.call(this,a)},afterComponentLayout:function(f,e,d,c){var b=this,a=b.searchPopup;Ext.grid.Panel.prototype.afterComponentLayout.call(this,f,e,d,c);if(a&&a.isVisible()){a.showBy(b,b.popupAlign)}},privates:{popupAlign:'tl-tr?',onGlobalScroll:function(a){if(!this.owns(a.getElement())){this.onDismissSearch()}},onDismissSearch:function(b){var a=this.searchPopup;if(a&&(!b||!(a.owns(b.getTarget())||this.owns(b.getTarget())))){this.scrollListeners.destroy();this.touchListeners.destroy();a.hide()}},onShowSearch:function(e,f,c){var a=this,b=a.searchPopup,d=a.getStore();if(!b){b=Ext.merge({owner:a,field:a.fieldName,floating:!0,alignOnScroll:!1},a.getSearch());a.searchPopup=b=a.add(b);if(d.getCount()){b.selectRecords(d.getRange())}}b.invocationEvent=c;b.showBy(a,a.popupAlign);if(!c||c.pointerType!=='touch'){b.lookupReference('searchField').focus()}a.scrollListeners=Ext.on({scroll:'onGlobalScroll',scope:a,destroyable:!0});a.touchListeners=Ext.getDoc().on({translate:!1,touchstart:a.onDismissSearch,scope:a,delegated:!1,destroyable:!0})}}},0,["multiselector"],["component","box","container","panel","tablepanel","gridpanel","grid","multiselector"],{"component":!0,"box":!0,"container":!0,"panel":!0,"tablepanel":!0,"gridpanel":!0,"grid":!0,"multiselector":!0},["widget.multiselector"],0,[Ext.view,'MultiSelector'],0));(Ext.cmd.derive('Ext.window.Toast',Ext.window.Window,{isToast:!0,cls:'x-toast',bodyPadding:10,autoClose:!0,plain:!1,draggable:!1,resizable:!1,shadow:!1,focus:Ext.emptyFn,anchor:null,useXAxis:!1,align:'t',alwaysOnTop:!0,spacing:6,paddingX:30,paddingY:10,slideInAnimation:'easeIn',slideBackAnimation:'bounceOut',slideInDuration:500,slideBackDuration:500,hideDuration:500,autoCloseDelay:3000,stickOnClick:!1,stickWhileHover:!0,closeOnMouseDown:!1,closable:!1,minHeight:1,focusable:!1,isHiding:!1,isFading:!1,destroyAfterHide:!1,closeOnMouseOut:!1,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=!1}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(d){var a=this,b=a.alignmentProps,e=b[d],c=b.x[d];if(c&&a.useXAxis){Ext.applyIf(a,c)}Ext.applyIf(a,e)},getXposAlignedToAnchor:function(){var b=this,d=b.align,e=b.anchor,c=e&&e.el,f=b.el,a=0;if(c&&c.dom){if(!b.useXAxis){a=f.getLeft()}else if(d==='br'||d==='tr'||d==='r'){a+=c.getAnchorXY('r')[0];a-=(f.getWidth()+b.paddingX)}else {a+=c.getAnchorXY('l')[0];a+=b.paddingX}}return a},getYposAlignedToAnchor:function(){var b=this,d=b.align,e=b.anchor,c=e&&e.el,f=b.el,a=0;if(c&&c.dom){if(b.useXAxis){a=f.getTop()}else if(d==='br'||d==='bl'||d==='b'){a+=c.getAnchorXY('b')[1];a-=(f.getHeight()+b.paddingY)}else {a+=c.getAnchorXY('t')[1];a+=b.paddingY}}return a},getXposAlignedToSibling:function(a){var c=this,d=c.align,e=c.el,b;if(!c.useXAxis){b=e.getLeft()}else if(d==='tl'||d==='bl'||d==='l'){b=(a.xPos+a.el.getWidth()+a.spacing)}else {b=(a.xPos-e.getWidth()-c.spacing)}return b},getYposAlignedToSibling:function(a){var d=this,c=d.align,e=d.el,b;if(d.useXAxis){b=e.getTop()}else if(c==='tr'||c==='tl'||c==='t'){b=(a.yPos+a.el.getHeight()+a.spacing)}else {b=(a.yPos-e.getHeight()-a.spacing)}return b},getToasts:function(){var c=this.anchor,b=this.anchorAlign,a=c.activeToasts||(c.activeToasts={});return a[b]||(a[b]=[])},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 a=this,d=a.el,c,b,e,f;Ext.window.Window.prototype.afterShow.apply(this,arguments);c=a.getToasts();e=c.length;b=e&&c[e-1];if(b){d.alignTo(b.el,a.siblingAlignment,[0,0]);a.xPos=a.getXposAlignedToSibling(b);a.yPos=a.getYposAlignedToSibling(b)}else {d.alignTo(a.anchor.el,a.anchorAlign,[(a.paddingX*a.paddingFactorX),(a.paddingY*a.paddingFactorY)],!1);a.xPos=a.getXposAlignedToAnchor();a.yPos=a.getYposAlignedToAnchor()}Ext.Array.include(c,a);if(a.enableAnimations){f=d.getXY();d.animate({from:{x:f[0],y:f[1]},to:{x:a.xPos,y:a.yPos,opacity:1},easing:a.slideInAnimation,duration:a.slideInDuration,dynamic:!0,callback:a.afterPositioned,scope:a})}else {a.setLocalXY(a.xPos,a.yPos);a.afterPositioned()}},afterPositioned:function(){var a=this;if(!a.destroying&&!a.destroyed&&a.autoClose){a.closeTask.delay(a.autoCloseDelay)}},onDocumentMousedown:function(a){if(this.isVisible()&&!this.owns(a.getTarget())){this.hide()}},slideBack:function(){var a=this,f=a.anchor,e=f&&f.el,d=a.el,b=a.getToasts(),c=Ext.Array.indexOf(b,a);if(!a.isHiding&&d&&d.dom&&e&&e.isVisible()){if(c){a.xPos=a.getXposAlignedToSibling(b[c-1]);a.yPos=a.getYposAlignedToSibling(b[c-1])}else {a.xPos=a.getXposAlignedToAnchor();a.yPos=a.getYposAlignedToAnchor()}a.stopAnimation();if(a.enableAnimations){d.animate({to:{x:a.xPos,y:a.yPos},easing:a.slideBackAnimation,duration:a.slideBackDuration,dynamic:!0})}}},update:function(){var a=this;if(a.isVisible()){a.isHiding=!0;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=!0}},doDestroy:function(){this.removeFromAnchor();this.cancelAutoClose();Ext.window.Window.prototype.doDestroy.call(this)},onMouseEnter:function(){this.mouseIsOver=!0},onMouseLeave:function(){var a=this;a.mouseIsOver=!1;if(a.closeOnMouseOut){a.closeOnMouseOut=!1;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 a=this,b=a.el;a.cancelAutoClose();if(a.isHiding){if(!a.isFading){Ext.window.Window.prototype.hide.apply(this,arguments);a.isHiding=!1}}else {a.isHiding=!0;a.isFading=!0;a.cancelAutoClose();if(b){if(a.enableAnimations&&!a.destroying&&!a.destroyed){b.fadeOut({opacity:0,easing:'easeIn',duration:a.hideDuration,listeners:{scope:a,afteranimate:function(){var a=this;a.isFading=!1;if(!a.destroying&&!a.destroyed){a.hide(a.animateTarget,a.doClose,a)}}}})}else {a.isFading=!1;a.hide(a.animateTarget,a.doClose,a)}}}return a}},1,["toast"],["component","box","container","panel","window","toast"],{"component":!0,"box":!0,"container":!0,"panel":!0,"window":!0,"toast":!0},["widget.toast"],0,[Ext.window,'Toast'],function(a){Ext.toast=function(b,g,e,f){var c=b,d;if(Ext.isString(b)){c={title:g,html:b,iconCls:f};if(e){c.align=e}}d=new a(c);d.show();return d}}));