summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-01-23 03:08:16 +0200
committerArtur Signell <artur@vaadin.com>2015-01-23 03:08:16 +0200
commit1756fe6badb72851ac81ed333d8100ee6d54a2b0 (patch)
tree93e54b706f7954c9f53fa55ff91f146ef2261d65
parent6156a310b0c1809cb718620be4042cdb20ee3f9f (diff)
downloadvaadin-core-1756fe6badb72851ac81ed333d8100ee6d54a2b0.tar.gz
vaadin-core-1756fe6badb72851ac81ed333d8100ee6d54a2b0.zip
Upgrading version 0.1.0
-rw-r--r--vaadin-components.html22611
1 files changed, 524 insertions, 22087 deletions
diff --git a/vaadin-components.html b/vaadin-components.html
index b2edf86..e1ac4be 100644
--- a/vaadin-components.html
+++ b/vaadin-components.html
@@ -2,22093 +2,530 @@
<html>
<head>
<script>
-$wnd = window; $doc = document;function VaadinComponents(){
- var $wnd_0 = window;
- var $doc_0 = document;
- sendStats('bootstrap', 'begin');
- function isHostedMode(){
- var query = $wnd_0.location.search;
- return query.indexOf('gwt.codesvr.VaadinComponents=') != -1 || query.indexOf('gwt.codesvr=') != -1;
- }
-
- function sendStats(evtGroupString, typeString){
- if ($wnd_0.__gwtStatsEvent) {
- $wnd_0.__gwtStatsEvent({moduleName:'VaadinComponents', sessionId:$wnd_0.__gwtStatsSessionId, subSystem:'startup', evtGroup:evtGroupString, millis:(new Date).getTime(), type:typeString});
- }
- }
-
- VaadinComponents.__sendStats = sendStats;
- VaadinComponents.__moduleName = 'VaadinComponents';
- VaadinComponents.__errFn = null;
- VaadinComponents.__moduleBase = 'DUMMY';
- VaadinComponents.__softPermutationId = 0;
- VaadinComponents.__computePropValue = null;
- VaadinComponents.__getPropMap = null;
- VaadinComponents.__installRunAsyncCode = function(){
- }
- ;
- VaadinComponents.__gwtStartLoadingFragment = function(){
- return null;
- }
- ;
- VaadinComponents.__gwt_isKnownPropertyValue = function(){
- return false;
- }
- ;
- VaadinComponents.__gwt_getMetaProperty = function(){
- return null;
- }
- ;
- var __propertyErrorFunction = null;
- var activeModules = $wnd_0.__gwt_activeModules = $wnd_0.__gwt_activeModules || {};
- activeModules['VaadinComponents'] = {moduleName:'VaadinComponents'};
- VaadinComponents.__moduleStartupDone = function(permProps){
- var oldBindings = activeModules['VaadinComponents'].bindings;
- activeModules['VaadinComponents'].bindings = function(){
- var props = oldBindings?oldBindings():{};
- var embeddedProps = permProps[VaadinComponents.__softPermutationId];
- for (var i = 0; i < embeddedProps.length; i++) {
- var pair = embeddedProps[i];
- props[pair[0]] = pair[1];
- }
- return props;
- }
- ;
- }
- ;
- var frameDoc;
- function getInstallLocationDoc(){
- setupInstallLocation();
- return frameDoc;
- }
-
- function setupInstallLocation(){
- if (frameDoc) {
- return;
- }
- var scriptFrame = $doc_0.createElement('iframe');
- scriptFrame.src = 'javascript:""';
- scriptFrame.id = 'VaadinComponents';
- scriptFrame.style.cssText = 'position:absolute; width:0; height:0; border:none; left: -1000px;' + ' top: -1000px;';
- scriptFrame.tabIndex = -1;
- $doc_0.body.appendChild(scriptFrame);
- frameDoc = scriptFrame.contentDocument;
- if (!frameDoc) {
- frameDoc = scriptFrame.contentWindow.document;
- }
- frameDoc.open();
- var doctype = document.compatMode == 'CSS1Compat'?'<!doctype html>':'';
- frameDoc.write(doctype + '<html><head><\/head><body><\/body><\/html>');
- frameDoc.close();
- }
-
- function installScript(filename){
- this['_' + filename.replace(/.*([\dA-F]{32}).cache.js/, '$1')]();
- }
-
- VaadinComponents.__startLoadingFragment = function(fragmentFile){
- return computeUrlForResource(fragmentFile);
- }
- ;
- VaadinComponents.__installRunAsyncCode = function(code_0){
- var doc = getInstallLocationDoc();
- var docbody = doc.body;
- var script = doc.createElement('script');
- script.language = 'javascript';
- script.text = code_0;
- docbody.appendChild(script);
- }
- ;
- function processMetas(){
- var metaProps = {};
- var propertyErrorFunc;
- var onLoadErrorFunc;
- var metas = $doc_0.getElementsByTagName('meta');
- for (var i = 0, n = metas.length; i < n; ++i) {
- var meta = metas[i], name_1 = meta.getAttribute('name'), content_0;
- if (name_1) {
- name_1 = name_1.replace('VaadinComponents::', '');
- if (name_1.indexOf('::') >= 0) {
- continue;
- }
- if (name_1 == 'gwt:property') {
- content_0 = meta.getAttribute('content');
- if (content_0) {
- var value_1, eq = content_0.indexOf('=');
- if (eq >= 0) {
- name_1 = content_0.substring(0, eq);
- value_1 = content_0.substring(eq + 1);
- }
- else {
- name_1 = content_0;
- value_1 = '';
- }
- metaProps[name_1] = value_1;
- }
- }
- else if (name_1 == 'gwt:onPropertyErrorFn') {
- content_0 = meta.getAttribute('content');
- if (content_0) {
- try {
- propertyErrorFunc = eval(content_0);
- }
- catch (e) {
- alert('Bad handler "' + content_0 + '" for "gwt:onPropertyErrorFn"');
- }
- }
- }
- else if (name_1 == 'gwt:onLoadErrorFn') {
- content_0 = meta.getAttribute('content');
- if (content_0) {
- try {
- onLoadErrorFunc = eval(content_0);
- }
- catch (e) {
- alert('Bad handler "' + content_0 + '" for "gwt:onLoadErrorFn"');
- }
- }
- }
- }
- }
- __gwt_getMetaProperty = function(name_0){
- var value_0 = metaProps[name_0];
- return value_0 == null?null:value_0;
- }
- ;
- __propertyErrorFunction = propertyErrorFunc;
- VaadinComponents.__errFn = onLoadErrorFunc;
- }
-
- function computeScriptBase(){
- function getDirectoryOfFile(path){
- var hashIndex = path.lastIndexOf('#');
- if (hashIndex == -1) {
- hashIndex = path.length;
- }
- var queryIndex = path.indexOf('?');
- if (queryIndex == -1) {
- queryIndex = path.length;
- }
- var slashIndex = path.lastIndexOf('/', Math.min(queryIndex, hashIndex));
- return slashIndex >= 0?path.substring(0, slashIndex + 1):'';
- }
-
- function ensureAbsoluteUrl(url_0){
- if (url_0.match(/^\w+:\/\//)) {
- }
- else {
- var img = $doc_0.createElement('img');
- img.src = url_0 + 'clear.cache.gif';
- url_0 = getDirectoryOfFile(img.src);
- }
- return url_0;
- }
-
- function tryMetaTag(){
- var metaVal = __gwt_getMetaProperty('baseUrl');
- if (metaVal != null) {
- return metaVal;
- }
- return '';
- }
-
- function tryNocacheJsTag(){
- var scriptTags = $doc_0.getElementsByTagName('script');
- for (var i = 0; i < scriptTags.length; ++i) {
- if (scriptTags[i].src.indexOf('VaadinComponents.nocache.js') != -1) {
- return getDirectoryOfFile(scriptTags[i].src);
- }
- }
- return '';
- }
-
- function tryBaseTag(){
- var baseElements = $doc_0.getElementsByTagName('base');
- if (baseElements.length > 0) {
- return baseElements[baseElements.length - 1].href;
- }
- return '';
- }
-
- function isLocationOk(){
- var loc = $doc_0.location;
- return loc.href == loc.protocol + '//' + loc.host + loc.pathname + loc.search + loc.hash;
- }
-
- var tempBase = tryMetaTag();
- if (tempBase == '') {
- tempBase = tryNocacheJsTag();
- }
- if (tempBase == '') {
- tempBase = tryBaseTag();
- }
- if (tempBase == '' && isLocationOk()) {
- tempBase = getDirectoryOfFile($doc_0.location.href);
- }
- tempBase = ensureAbsoluteUrl(tempBase);
- return tempBase;
- }
-
- function computeUrlForResource(resource){
- if (resource.match(/^\//)) {
- return resource;
- }
- if (resource.match(/^[a-zA-Z]+:\/\//)) {
- return resource;
- }
- return VaadinComponents.__moduleBase + resource;
- }
-
- function getCompiledCodeFilename(){
- var answers = [];
- var softPermutationId = 0;
- function unflattenKeylistIntoAnswers(propValArray, value_0){
- var answer = answers;
- for (var i = 0, n = propValArray.length - 1; i < n; ++i) {
- answer = answer[propValArray[i]] || (answer[propValArray[i]] = []);
- }
- answer[propValArray[n]] = value_0;
- }
-
- var values = [];
- var providers = [];
- function computePropValue(propName){
- var value_0 = providers[propName](), allowedValuesMap = values[propName];
- if (value_0 in allowedValuesMap) {
- return value_0;
- }
- var allowedValuesList = [];
- for (var k in allowedValuesMap) {
- allowedValuesList[allowedValuesMap[k]] = k;
- }
- if (__propertyErrorFunction) {
- __propertyErrorFunction(propName, allowedValuesList, value_0);
- }
- throw null;
- }
-
- providers['modernie'] = function(){
- {
- var ua = $wnd_0.navigator.userAgent;
- if (ua.indexOf('MSIE') == -1 && ua.indexOf('Trident') != -1) {
- return 'yes';
- }
- return 'none';
- }
- }
- ;
- values['modernie'] = {none:0, yes:1};
- providers['selectorCapability'] = function(){
- return !/_force_no_native/.test(document.location.search) && typeof document.querySelectorAll == 'function'?'native':'js';
- }
- ;
- values['selectorCapability'] = {js:0, 'native':1};
- providers['user.agent'] = function(){
- var ua = navigator.userAgent.toLowerCase();
- var docMode = $doc_0.documentMode;
- if (function(){
- return ua.indexOf('webkit') != -1;
- }
- ())
- return 'safari';
- if (function(){
- return ua.indexOf('msie') != -1 && (docMode >= 10 && docMode < 11);
- }
- ())
- return 'ie10';
- if (function(){
- return ua.indexOf('msie') != -1 && (docMode >= 9 && docMode < 11);
- }
- ())
- return 'ie9';
- if (function(){
- return ua.indexOf('msie') != -1 && (docMode >= 8 && docMode < 11);
- }
- ())
- return 'ie8';
- if (function(){
- return ua.indexOf('gecko') != -1 || docMode >= 11;
- }
- ())
- return 'gecko1_8';
- return '';
- }
- ;
- values['user.agent'] = {gecko1_8:0, ie10:1, ie8:2, ie9:3, safari:4};
- __gwt_isKnownPropertyValue = function(propName, propValue){
- return propValue in values[propName];
- }
- ;
- VaadinComponents.__getPropMap = function(){
- var result = {};
- for (var key in values) {
- if (values.hasOwnProperty(key)) {
- result[key] = computePropValue(key);
- }
- }
- return result;
- }
- ;
- VaadinComponents.__computePropValue = computePropValue;
- $wnd_0.__gwt_activeModules['VaadinComponents'].bindings = VaadinComponents.__getPropMap;
- sendStats('bootstrap', 'selectingPermutation');
- if (isHostedMode()) {
- return computeUrlForResource('VaadinComponents.devmode.js');
- }
- var strongName;
- try {
- unflattenKeylistIntoAnswers(['none', 'js', 'gecko1_8'], '50D0D94AC65B65BC456B32876A73E2AC');
- unflattenKeylistIntoAnswers(['none', 'native', 'gecko1_8'], '50D0D94AC65B65BC456B32876A73E2AC' + ':1');
- unflattenKeylistIntoAnswers(['yes', 'js', 'gecko1_8'], '50D0D94AC65B65BC456B32876A73E2AC' + ':2');
- unflattenKeylistIntoAnswers(['yes', 'native', 'gecko1_8'], '50D0D94AC65B65BC456B32876A73E2AC' + ':3');
- unflattenKeylistIntoAnswers(['none', 'native', 'safari'], '50D0D94AC65B65BC456B32876A73E2AC' + ':4');
- strongName = answers[computePropValue('modernie')][computePropValue('selectorCapability')][computePropValue('user.agent')];
- var idx = strongName.indexOf(':');
- if (idx != -1) {
- softPermutationId = parseInt(strongName.substring(idx + 1), 10);
- strongName = strongName.substring(0, idx);
- }
- }
- catch (e) {
- }
- VaadinComponents.__softPermutationId = softPermutationId;
- return computeUrlForResource(strongName + '.cache.js');
- }
-
- function loadExternalStylesheets(){
- if (!$wnd_0.__gwt_stylesLoaded) {
- $wnd_0.__gwt_stylesLoaded = {};
- }
- sendStats('loadExternalRefs', 'begin');
- sendStats('loadExternalRefs', 'end');
- }
-
- processMetas();
- VaadinComponents.__moduleBase = computeScriptBase();
- activeModules['VaadinComponents'].moduleBase = VaadinComponents.__moduleBase;
- var filename_0 = getCompiledCodeFilename();
- if ($wnd_0) {
- var devModePermitted = !!($wnd_0.location.protocol == 'http:' || $wnd_0.location.protocol == 'file:');
- $wnd_0.__gwt_activeModules['VaadinComponents'].canRedirect = devModePermitted;
- function supportsSessionStorage(){
- var key = '_gwt_dummy_';
- try {
- $wnd_0.sessionStorage.setItem(key, key);
- $wnd_0.sessionStorage.removeItem(key);
- return true;
- }
- catch (e) {
- return false;
- }
- }
-
- if (devModePermitted && supportsSessionStorage()) {
- var devModeKey = '__gwtDevModeHook:VaadinComponents';
- var devModeUrl = $wnd_0.sessionStorage[devModeKey];
- if (!/^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?\/.*$/.test(devModeUrl)) {
- if (devModeUrl && (window.console && console.log)) {
- console.log('Ignoring non-whitelisted Dev Mode URL: ' + devModeUrl);
- }
- devModeUrl = '';
- }
- if (devModeUrl && !$wnd_0[devModeKey]) {
- $wnd_0[devModeKey] = true;
- $wnd_0[devModeKey + ':moduleBase'] = computeScriptBase();
- var devModeScript = $doc_0.createElement('script');
- devModeScript.src = devModeUrl;
- var head = $doc_0.getElementsByTagName('head')[0];
- head.insertBefore(devModeScript, head.firstElementChild || head.children[0]);
- return false;
- }
- }
- }
- loadExternalStylesheets();
- sendStats('bootstrap', 'end');
- installScript(filename_0);
- return true;
-}
-
-VaadinComponents.succeeded = VaadinComponents();
-
-function _50D0D94AC65B65BC456B32876A73E2AC(){
-var $wnd = $wnd || window.parent;
-var __gwtModuleFunction = $wnd.VaadinComponents;
-var $sendStats = __gwtModuleFunction.__sendStats;
-$sendStats('moduleStartup', 'moduleEvalStart');
-var $gwt_version = "2.8.0-SNAPSHOT";
-var $strongName = '50D0D94AC65B65BC456B32876A73E2AC';
-var $gwt = {};
-var $doc = $wnd.document;
-var $moduleName, $moduleBase;
-function __gwtStartLoadingFragment(frag) {
-var fragFile = 'deferredjs/' + $strongName + '/' + frag + '.cache.js';
-return __gwtModuleFunction.__startLoadingFragment(fragFile);
-}
-function __gwtInstallCode(code) {return __gwtModuleFunction.__installRunAsyncCode(code);}
-function __gwt_isKnownPropertyValue(propName, propValue) {
-return __gwtModuleFunction.__gwt_isKnownPropertyValue(propName, propValue);
-}
-function __gwt_getMetaProperty(name) {
-return __gwtModuleFunction.__gwt_getMetaProperty(name);
-}
-var $stats = $wnd.__gwtStatsEvent ? function(a) {
-return $wnd.__gwtStatsEvent && $wnd.__gwtStatsEvent(a);
-} : null;
-var $sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;
-var $intern_0 = 3.141592653589793, $intern_1 = {3:1, 14:1}, $intern_2 = {3:1, 12:1, 14:1}, $intern_3 = {3:1, 12:1, 11:1, 14:1}, $intern_4 = {3:1, 4:1}, $intern_5 = {49:1, 10:1, 3:1, 6:1, 5:1}, $intern_6 = {16:1, 10:1, 3:1, 6:1, 5:1}, $intern_7 = {10:1, 61:1, 3:1, 6:1, 5:1}, $intern_8 = {10:1, 62:1, 3:1, 6:1, 5:1}, $intern_9 = {10:1, 63:1, 3:1, 6:1, 5:1}, $intern_10 = {32:1, 3:1, 6:1, 5:1}, $intern_11 = {10:1, 92:1, 3:1, 6:1, 5:1}, $intern_12 = {10:1, 50:1, 3:1, 6:1, 5:1}, $intern_13 = {93:1, 3:1, 12:1, 11:1, 14:1}, $intern_14 = 4194303, $intern_15 = 1048575, $intern_16 = 524288, $intern_17 = 4194304, $intern_18 = 17592186044416, $intern_19 = -9223372036854775808, $intern_20 = {7:1}, $intern_21 = {48:1}, $intern_22 = {52:1, 53:1}, $intern_23 = {109:1}, $intern_24 = {97:1}, $intern_25 = {31:1, 24:1, 20:1, 27:1, 23:1, 21:1, 17:1}, $intern_26 = {31:1, 24:1, 20:1, 27:1, 40:1, 23:1, 36:1, 21:1, 17:1}, $intern_27 = {31:1, 24:1, 20:1, 76:1, 27:1, 40:1, 23:1, 36:1, 21:1, 17:1}, $intern_28 = 65536, $intern_29 = 131072, $intern_30 = 1048576, $intern_31 = 2097152, $intern_32 = 8388608, $intern_33 = 16777216, $intern_34 = 33554432, $intern_35 = 67108864, $intern_36 = {31:1, 24:1, 20:1, 98:1, 27:1, 40:1, 23:1, 36:1, 21:1, 17:1}, $intern_37 = {22:1, 200:1}, $intern_38 = {145:1, 22:1}, $intern_39 = {31:1, 24:1, 20:1, 27:1, 40:1, 23:1, 36:1, 115:1, 21:1, 17:1}, $intern_40 = {201:1, 31:1, 22:1, 24:1, 20:1, 98:1, 27:1, 40:1, 23:1, 36:1, 21:1, 17:1}, $intern_41 = {22:1, 146:1}, $intern_42 = {28:1, 30:1}, $intern_43 = {22:1, 198:1}, $intern_44 = {71:1, 3:1, 6:1, 5:1}, $intern_45 = {66:1}, $intern_46 = {539:1, 3:1, 4:1}, $intern_47 = {538:1, 3:1, 4:1}, $intern_48 = {28:1, 64:1}, $intern_49 = {25:1}, $intern_50 = {3:1, 28:1, 30:1, 111:1}, $intern_51 = {3:1, 28:1, 64:1};
-var _, initFnList_0, prototypesByTypeId_0 = {}, permutationId = -1;
-function com_google_gwt_useragent_client_UserAgent(){
- if (permutationId == 4) {
- return new UserAgentImplSafari;
- }
- return new UserAgentImplGecko1_8;
-}
-
-function com_google_gwt_user_client_ui_impl_PopupImpl(){
- if (permutationId == 4) {
- return new PopupImpl;
- }
- return new PopupImplMozilla;
-}
-
-function com_google_gwt_user_client_ui_impl_FocusImpl(){
- if (permutationId == 4) {
- return new FocusImplSafari;
- }
- return new FocusImplStandard;
-}
-
-function com_google_gwt_user_client_impl_WindowImpl(){
- if (permutationId == 4) {
- return new WindowImpl;
- }
- return new WindowImplMozilla;
-}
-
-function com_google_gwt_user_client_impl_DOMImpl(){
- if (permutationId == 4) {
- return new DOMImplWebkit_0;
- }
- return new DOMImplMozilla_0;
-}
-
-function com_google_gwt_query_client_Browser(){
- if (permutationId == 4) {
- return new Browser_safari;
- }
- return new Browser_gecko1_8;
-}
-
-function com_google_gwt_dom_client_DOMImpl(){
- if (permutationId == 4) {
- return new DOMImplWebkit;
- }
- return new DOMImplMozilla;
-}
-
-function typeMarkerFn(){
-}
-
-function trampolineBridgeMethod(o, bridgeRef, nonbridgeRef){
- return !isJavaString(o) && !hasTypeMarker(o)?bridgeRef:nonbridgeRef;
-}
-
-function provide(namespace){
- var cur = this;
- if (namespace == '$wnd') {
- return $wnd;
- }
- else if (namespace === '') {
- return cur;
- }
- if (namespace.substring(0, 5) == '$wnd.') {
- cur = $wnd;
- namespace = namespace.substring(5);
- }
- var parts = namespace.split('.');
- !(parts[0] in cur) && cur.execScript && cur.execScript('var ' + parts[0]);
- for (var part; parts.length && (part = parts.shift());) {
- cur[part]?(cur = cur[part]):(cur = cur[part] = {});
- }
- return cur;
-}
-
-function portableObjCreate(obj){
- function F(){
- }
-
- ;
- F.prototype = obj || {};
- return new F;
-}
-
-function modernizeBrowser(){
- !Array.isArray && (Array.isArray = function(vArg){
- return Object.prototype.toString.call(vArg) === '[object Array]';
- }
- );
-}
-
-function maybeGetClassLiteralFromPlaceHolder_0(entry){
- return entry instanceof Array?entry[0]:null;
-}
-
-function maybeCoerceToLong(o, isLong){
- if (!isLong) {
- return o;
- }
- if (typeof o == 'number') {
- return fromDouble(o);
- }
- return o;
-}
-
-function maybeCoerceFromLong(o, isLong){
- if (!isLong) {
- return o;
- }
- return toDouble(o);
-}
-
-function makeBridgeMethod(methodRef, returnsLong, longParams){
- return function(){
- var args = [];
- for (var i_0 = 0; i_0 < arguments.length; i_0++) {
- var maybeCoerced = maybeCoerceToLong(arguments[i_0], longParams[i_0]);
- args.push(maybeCoerced);
- }
- var result = methodRef.apply(this, args);
- return returnsLong?maybeCoerceFromLong(result, returnsLong):result;
- }
- ;
-}
-
-function emptyMethod(){
-}
-
-function defineClass(typeId, superTypeId, castableTypeMap){
- var prototypesByTypeId = prototypesByTypeId_0;
- var createSubclassPrototype = createSubclassPrototype_0;
- var maybeGetClassLiteralFromPlaceHolder = maybeGetClassLiteralFromPlaceHolder_0;
- var prototype_0 = prototypesByTypeId[typeId];
- var clazz = maybeGetClassLiteralFromPlaceHolder(prototype_0);
- if (prototype_0 && !clazz) {
- _ = prototype_0;
- }
- else {
- _ = prototypesByTypeId[typeId] = !superTypeId?{}:createSubclassPrototype(superTypeId);
- _.castableTypeMap$ = castableTypeMap;
- _.constructor = _;
- !superTypeId && (_.typeMarker$ = typeMarkerFn);
- }
- for (var i_0 = 3; i_0 < arguments.length; ++i_0) {
- arguments[i_0].prototype = _;
- }
- clazz && (_.___clazz$ = clazz);
-}
-
-function createSubclassPrototype_0(superTypeId){
- var prototypesByTypeId = prototypesByTypeId_0;
- return portableObjCreate(prototypesByTypeId[superTypeId]);
-}
-
-function setGwtProperty(propertyName, propertyValue){
- typeof window === 'object' && typeof window['$gwt'] === 'object' && (window['$gwt'][propertyName] = propertyValue);
-}
-
-function gwtOnLoad_0(errFn, modName, modBase, softPermutationId){
- ensureModuleInit();
- var initFnList = initFnList_0;
- $moduleName = modName;
- $moduleBase = modBase;
- permutationId = softPermutationId;
- function initializeModules(){
- for (var i_0 = 0; i_0 < initFnList.length; i_0++) {
- initFnList[i_0]();
- }
- }
-
- if (errFn) {
- try {
- $entry(initializeModules)();
- }
- catch (e) {
- errFn(modName, e);
- }
- }
- else {
- $entry(initializeModules)();
- }
-}
-
-function ensureModuleInit(){
- initFnList_0 == null && (initFnList_0 = []);
-}
-
-function addInitFunctions(){
- ensureModuleInit();
- var initFnList = initFnList_0;
- for (var i_0 = 0; i_0 < arguments.length; i_0++) {
- initFnList.push(arguments[i_0]);
- }
-}
-
-function $toString(this$static){
- return $getName(getClass__Ljava_lang_Class___devirtual$(this$static)) + '@' + (hashCode__I__devirtual$(this$static) >>> 0).toString(16);
-}
-
-function Object_0(){
-}
-
-function equals_Ljava_lang_Object__Z__devirtual$(this$static, other){
- return isJavaString(this$static)?$equals_2(this$static, other):hasJavaObjectVirtualDispatch(this$static)?this$static.equals$(other):isJavaArray(this$static)?this$static === other:this$static === other;
-}
-
-function getClass__Ljava_lang_Class___devirtual$(this$static){
- return isJavaString(this$static)?Ljava_lang_String_2_classLit:hasJavaObjectVirtualDispatch(this$static)?this$static.___clazz$:isJavaArray(this$static)?this$static.___clazz$:Lcom_google_gwt_core_client_JavaScriptObject_2_classLit;
-}
-
-function hashCode__I__devirtual$(this$static){
- return isJavaString(this$static)?getHashCode_0(this$static):hasJavaObjectVirtualDispatch(this$static)?this$static.hashCode$():isJavaArray(this$static)?getHashCode(this$static):getHashCode(this$static);
-}
-
-defineClass(1, null, {}, Object_0);
-_.equals$ = function(other){
- return this === other;
-}
-;
-_.getClass$ = function(){
- return this.___clazz$;
-}
-;
-_.hashCode$ = function(){
- return getHashCode(this);
-}
-;
-_.toString$ = function(){
- return $toString(this);
-}
-;
-_.toString = function(){
- return this.toString$();
-}
-;
-stringCastMap = {3:1, 580:1, 6:1, 2:1};
-modernizeBrowser();
-function createFunction(){
- return function(){
- }
- ;
-}
-
-function canCast(src_0, dstId){
- return isJavaString(src_0) && !!stringCastMap[dstId] || src_0.castableTypeMap$ && !!src_0.castableTypeMap$[dstId];
-}
-
-function charToString(x_0){
- return String.fromCharCode(x_0);
-}
-
-function dynamicCast(src_0, dstId){
- checkType(src_0 == null || canCast(src_0, dstId));
- return src_0;
-}
-
-function dynamicCastJso(src_0){
- checkType(src_0 == null || !isJavaString(src_0) && !hasTypeMarker(src_0));
- return src_0;
-}
-
-function dynamicCastToString(src_0){
- checkType(src_0 == null || isJavaString(src_0));
- return src_0;
-}
-
-function hasJavaObjectVirtualDispatch(src_0){
- return !instanceofArray(src_0) && hasTypeMarker(src_0);
-}
-
-function instanceOf(src_0, dstId){
- return src_0 != null && canCast(src_0, dstId);
-}
-
-function instanceOfJso(src_0){
- return src_0 != null && !isJavaString(src_0) && !hasTypeMarker(src_0);
-}
-
-function instanceofArray(src_0){
- return Array.isArray(src_0);
-}
-
-function isJavaArray(src_0){
- return instanceofArray(src_0) && hasTypeMarker(src_0);
-}
-
-function isJavaString(src_0){
- return typeof src_0 === 'string';
-}
-
-function maskUndefined(src_0){
- return src_0 == null?null:src_0;
-}
-
-function round_byte(x_0){
- return round_int(x_0) << 24 >> 24;
-}
-
-function round_int(x_0){
- return Math.max(Math.min(x_0, 2147483647), -2147483648) | 0;
-}
-
-function round_short(x_0){
- return round_int(x_0) << 16 >> 16;
-}
-
-function throwClassCastExceptionUnlessNull(o){
- checkType(o == null);
- return o;
-}
-
-var stringCastMap;
-function $ensureNamesAreInitialized(this$static){
- if (this$static.typeName != null) {
- return;
- }
- initializeNames(this$static);
-}
-
-function $getName(this$static){
- $ensureNamesAreInitialized(this$static);
- return this$static.typeName;
-}
-
-function $getSimpleName(this$static){
- $ensureNamesAreInitialized(this$static);
- return this$static.simpleName;
-}
-
-function Class(){
- ++nextSequentialId;
- this.typeName = null;
- this.simpleName = null;
- this.packageName = null;
- this.compoundName = null;
- this.canonicalName = null;
- this.typeId = null;
- this.arrayLiterals = null;
-}
-
-function createClassObject(packageName, compoundClassName){
- var clazz;
- clazz = new Class;
- clazz.packageName = packageName;
- clazz.compoundName = compoundClassName;
- return clazz;
-}
-
-function createForClass(packageName, compoundClassName, typeId, superclass){
- var clazz;
- clazz = createClassObject(packageName, compoundClassName);
- maybeSetClassLiteral(typeId, clazz);
- clazz.superclass = superclass;
- return clazz;
-}
-
-function createForEnum(packageName, compoundClassName, typeId, superclass, enumConstantsFunc){
- var clazz;
- clazz = createClassObject(packageName, compoundClassName);
- maybeSetClassLiteral(typeId, clazz);
- clazz.modifiers = enumConstantsFunc?8:0;
- clazz.superclass = superclass;
- return clazz;
-}
-
-function createForInterface(packageName, compoundClassName){
- var clazz;
- clazz = createClassObject(packageName, compoundClassName);
- clazz.modifiers = 2;
- return clazz;
-}
-
-function createForPrimitive(className, primitiveTypeId){
- var clazz;
- clazz = createClassObject('', className);
- clazz.typeId = primitiveTypeId;
- clazz.modifiers = 1;
- return clazz;
-}
-
-function getClassLiteralForArray_0(leafClass, dimensions){
- var arrayLiterals = leafClass.arrayLiterals = leafClass.arrayLiterals || [];
- return arrayLiterals[dimensions] || (arrayLiterals[dimensions] = leafClass.createClassLiteralForArray(dimensions));
-}
-
-function getPrototypeForClass(clazz){
- if (clazz.isPrimitive()) {
- return null;
- }
- var typeId = clazz.typeId;
- var prototype_0 = prototypesByTypeId_0[typeId];
- return prototype_0;
-}
-
-function initializeNames(clazz){
- if (clazz.isArray_0()) {
- var componentType = clazz.componentType;
- componentType.isPrimitive()?(clazz.typeName = '[' + componentType.typeId):!componentType.isArray_0()?(clazz.typeName = '[L' + componentType.getName_0() + ';'):(clazz.typeName = '[' + componentType.getName_0());
- clazz.canonicalName = componentType.getCanonicalName() + '[]';
- clazz.simpleName = componentType.getSimpleName() + '[]';
- return;
- }
- var packageName = clazz.packageName;
- var compoundName = clazz.compoundName;
- compoundName = compoundName.split('/');
- clazz.typeName = join_0('.', [packageName, join_0('$', compoundName)]);
- clazz.canonicalName = join_0('.', [packageName, join_0('.', compoundName)]);
- clazz.simpleName = compoundName[compoundName.length - 1];
-}
-
-function join_0(separator, strings){
- var i_0 = 0;
- while (!strings[i_0] || strings[i_0] == '') {
- i_0++;
- }
- var result = strings[i_0++];
- for (; i_0 < strings.length; i_0++) {
- if (!strings[i_0] || strings[i_0] == '') {
- continue;
- }
- result += separator + strings[i_0];
- }
- return result;
-}
-
-function maybeSetClassLiteral(typeId, clazz){
- var proto;
- if (!typeId) {
- return;
- }
- clazz.typeId = typeId;
- var prototype_0 = getPrototypeForClass(clazz);
- if (!prototype_0) {
- prototypesByTypeId_0[typeId] = [clazz];
- return;
- }
- prototype_0.___clazz$ = clazz;
-}
-
-defineClass(148, 1, {}, Class);
-_.createClassLiteralForArray = function(dimensions){
- var clazz;
- clazz = new Class;
- clazz.modifiers = 4;
- clazz.superclass = Ljava_lang_Object_2_classLit;
- dimensions > 1?(clazz.componentType = getClassLiteralForArray_0(this, dimensions - 1)):(clazz.componentType = this);
- return clazz;
-}
-;
-_.getCanonicalName = function(){
- $ensureNamesAreInitialized(this);
- return this.canonicalName;
-}
-;
-_.getName_0 = function(){
- return $getName(this);
-}
-;
-_.getSimpleName = function(){
- return $getSimpleName(this);
-}
-;
-_.isArray_0 = function(){
- return (this.modifiers & 4) != 0;
-}
-;
-_.isPrimitive = function(){
- return (this.modifiers & 1) != 0;
-}
-;
-_.toString$ = function(){
- return ((this.modifiers & 2) != 0?'interface ':(this.modifiers & 1) != 0?'':'class ') + ($ensureNamesAreInitialized(this) , this.typeName);
-}
-;
-_.modifiers = 0;
-var nextSequentialId = 1;
-var Ljava_lang_Object_2_classLit = createForClass('java.lang', 'Object', 1, null), Lcom_google_gwt_core_client_JavaScriptObject_2_classLit = createForClass('com.google.gwt.core.client', 'JavaScriptObject$', 0, Ljava_lang_Object_2_classLit), Ljava_lang_Class_2_classLit = createForClass('java.lang', 'Class', 148, Ljava_lang_Object_2_classLit);
-function $cancel(this$static){
- if (!this$static.isRunning) {
- return;
- }
- this$static.wasStarted = this$static.isStarted;
- this$static.element = null;
- this$static.isRunning = false;
- this$static.isStarted = false;
- if (this$static.requestHandle) {
- this$static.requestHandle.cancel();
- this$static.requestHandle = null;
- }
- this$static.wasStarted && this$static.onComplete();
-}
-
-function $run(this$static, startTime){
- $cancel(this$static);
- this$static.isRunning = true;
- this$static.isStarted = false;
- this$static.duration = 200;
- this$static.startTime = startTime;
- this$static.element = null;
- ++this$static.runId;
- $execute(this$static.callback, now_1());
-}
-
-function $update(this$static, curTime){
- var curRunId, finished, progress;
- curRunId = this$static.runId;
- finished = curTime >= this$static.startTime + this$static.duration;
- if (this$static.isStarted && !finished) {
- progress = (curTime - this$static.startTime) / this$static.duration;
- this$static.onUpdate((1 + Math.cos($intern_0 + progress * $intern_0)) / 2);
- return this$static.isRunning && this$static.runId == curRunId;
- }
- if (!this$static.isStarted && curTime >= this$static.startTime) {
- this$static.isStarted = true;
- this$static.onStart();
- if (!(this$static.isRunning && this$static.runId == curRunId)) {
- return false;
- }
- }
- if (finished) {
- this$static.isRunning = false;
- this$static.isStarted = false;
- this$static.onComplete();
- return false;
- }
- return true;
-}
-
-function Animation(){
- Animation_0.call(this, (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0));
-}
-
-function Animation_0(scheduler){
- this.callback = new Animation$1(this);
- this.scheduler = scheduler;
-}
-
-defineClass(125, 1, {});
-_.onComplete = function(){
- this.onUpdate((1 + cos_0(6.283185307179586)) / 2);
-}
-;
-_.onStart = function(){
- this.onUpdate((1 + cos_0($intern_0)) / 2);
-}
-;
-_.duration = -1;
-_.isRunning = false;
-_.isStarted = false;
-_.runId = -1;
-_.startTime = -1;
-_.wasStarted = false;
-var Lcom_google_gwt_animation_client_Animation_2_classLit = createForClass('com.google.gwt.animation.client', 'Animation', 125, Ljava_lang_Object_2_classLit);
-function $execute(this$static, timestamp){
- $update(this$static.this$01, timestamp)?(this$static.this$01.requestHandle = this$static.this$01.scheduler.requestAnimationFrame_0(this$static.this$01.callback, this$static.this$01.element)):(this$static.this$01.requestHandle = null);
-}
-
-function Animation$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(299, 1, {}, Animation$1);
-_.execute = function(timestamp){
- $execute(this, timestamp);
-}
-;
-var Lcom_google_gwt_animation_client_Animation$1_2_classLit = createForClass('com.google.gwt.animation.client', 'Animation/1', 299, Ljava_lang_Object_2_classLit);
-defineClass(563, 1, {});
-var instance_0;
-var Lcom_google_gwt_animation_client_AnimationScheduler_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationScheduler', 563, Ljava_lang_Object_2_classLit);
-defineClass(122, 1, {122:1});
-var Lcom_google_gwt_animation_client_AnimationScheduler$AnimationHandle_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationScheduler/AnimationHandle', 122, Ljava_lang_Object_2_classLit);
-function $isNativelySupported(){
- return !!$wnd.requestAnimationFrame && !!$wnd.cancelAnimationFrame;
-}
-
-function AnimationSchedulerImplStandard(){
-}
-
-function cancelImpl(holder){
- $wnd.cancelAnimationFrame(holder.id);
-}
-
-function requestImpl(cb, element){
- var callback = $entry(function(){
- var time = now_1();
- cb.execute(time);
- }
- );
- var handle = $wnd.requestAnimationFrame(callback, element);
- return {id:handle};
-}
-
-defineClass(69, 563, {}, AnimationSchedulerImplStandard);
-_.requestAnimationFrame_0 = function(callback, element){
- var handle;
- handle = requestImpl(callback, element);
- return new AnimationSchedulerImplStandard$1(handle);
-}
-;
-var Lcom_google_gwt_animation_client_AnimationSchedulerImplStandard_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationSchedulerImplStandard', 69, Lcom_google_gwt_animation_client_AnimationScheduler_2_classLit);
-function AnimationSchedulerImplStandard$1(val$handle){
- this.val$handle2 = val$handle;
-}
-
-defineClass(507, 122, {122:1}, AnimationSchedulerImplStandard$1);
-_.cancel = function(){
- cancelImpl(this.val$handle2);
-}
-;
-var Lcom_google_gwt_animation_client_AnimationSchedulerImplStandard$1_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationSchedulerImplStandard/1', 507, Lcom_google_gwt_animation_client_AnimationScheduler$AnimationHandle_2_classLit);
-function $cancelAnimationFrame(this$static, requestId){
- $remove_7(this$static.animationRequests, requestId);
- this$static.animationRequests.array.length == 0 && $cancel_0(this$static.timer);
-}
-
-function $updateAnimations(this$static){
- var curAnimations, duration, requestId, requestId$index, requestId$max;
- curAnimations = initDim(Lcom_google_gwt_animation_client_AnimationSchedulerImplTimer$AnimationHandleImpl_2_classLit, {594:1, 3:1, 4:1}, 143, this$static.animationRequests.array.length, 0, 1);
- curAnimations = dynamicCast($toArray_2(this$static.animationRequests, curAnimations), 594);
- duration = new Duration;
- for (requestId$index = 0 , requestId$max = curAnimations.length; requestId$index < requestId$max; ++requestId$index) {
- requestId = curAnimations[requestId$index];
- $remove_7(this$static.animationRequests, requestId);
- requestId.callback.execute(duration.start_0);
- }
- this$static.animationRequests.array.length > 0 && $schedule(this$static.timer, max_1(5, 16 - (now_1() - duration.start_0)));
-}
-
-function AnimationSchedulerImplTimer(){
- this.animationRequests = new ArrayList;
- this.timer = new AnimationSchedulerImplTimer$1(this);
-}
-
-defineClass(70, 563, {}, AnimationSchedulerImplTimer);
-_.requestAnimationFrame_0 = function(callback, element){
- var requestId;
- requestId = new AnimationSchedulerImplTimer$AnimationHandleImpl(this, callback);
- $add_6(this.animationRequests, requestId);
- this.animationRequests.array.length == 1 && $schedule(this.timer, 16);
- return requestId;
-}
-;
-var Lcom_google_gwt_animation_client_AnimationSchedulerImplTimer_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationSchedulerImplTimer', 70, Lcom_google_gwt_animation_client_AnimationScheduler_2_classLit);
-function $cancel_0(this$static){
- if (!this$static.timerId) {
- return;
- }
- ++this$static.cancelCounter;
- this$static.isRepeating?clearInterval_0(this$static.timerId.value_0):clearTimeout_0(this$static.timerId.value_0);
- this$static.timerId = null;
-}
-
-function $schedule(this$static, delayMillis){
- if (delayMillis < 0) {
- throw new IllegalArgumentException_0('must be non-negative');
- }
- !!this$static.timerId && $cancel_0(this$static);
- this$static.isRepeating = false;
- this$static.timerId = valueOf_2(setTimeout_0(createCallback(this$static, this$static.cancelCounter), delayMillis));
-}
-
-function $scheduleRepeating(this$static){
- !!this$static.timerId && $cancel_0(this$static);
- this$static.isRepeating = true;
- this$static.timerId = valueOf_2(setInterval_0(createCallback(this$static, this$static.cancelCounter), 100));
-}
-
-function Timer(){
-}
-
-function clearInterval_0(timerId){
- $wnd.clearInterval(timerId);
-}
-
-function clearTimeout_0(timerId){
- $wnd.clearTimeout(timerId);
-}
-
-function createCallback(timer, cancelCounter){
- return $entry(function(){
- timer.fire(cancelCounter);
- }
- );
-}
-
-function setInterval_0(func, time){
- return $wnd.setInterval(func, time);
-}
-
-function setTimeout_0(func, time){
- return $wnd.setTimeout(func, time);
-}
-
-defineClass(45, 1, {});
-_.fire = function(scheduleCancelCounter){
- if (scheduleCancelCounter != this.cancelCounter) {
- return;
- }
- this.isRepeating || (this.timerId = null);
- this.run();
-}
-;
-_.cancelCounter = 0;
-_.isRepeating = false;
-_.timerId = null;
-var Lcom_google_gwt_user_client_Timer_2_classLit = createForClass('com.google.gwt.user.client', 'Timer', 45, Ljava_lang_Object_2_classLit);
-function AnimationSchedulerImplTimer$1(this$0){
- this.this$01 = this$0;
- Timer.call(this);
-}
-
-defineClass(508, 45, {}, AnimationSchedulerImplTimer$1);
-_.run = function(){
- $updateAnimations(this.this$01);
-}
-;
-var Lcom_google_gwt_animation_client_AnimationSchedulerImplTimer$1_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationSchedulerImplTimer/1', 508, Lcom_google_gwt_user_client_Timer_2_classLit);
-function AnimationSchedulerImplTimer$AnimationHandleImpl(this$0, callback){
- this.this$01 = this$0;
- this.callback = callback;
-}
-
-defineClass(143, 122, {122:1, 143:1}, AnimationSchedulerImplTimer$AnimationHandleImpl);
-_.cancel = function(){
- $cancelAnimationFrame(this.this$01, this);
-}
-;
-var Lcom_google_gwt_animation_client_AnimationSchedulerImplTimer$AnimationHandleImpl_2_classLit = createForClass('com.google.gwt.animation.client', 'AnimationSchedulerImplTimer/AnimationHandleImpl', 143, Lcom_google_gwt_animation_client_AnimationScheduler$AnimationHandle_2_classLit);
-function $fillInStackTrace(this$static){
- this$static.stackTrace = null;
- captureStackTrace();
- return this$static;
-}
-
-function $initCause(this$static, cause){
- checkState_0(!this$static.cause);
- checkCriticalArgument(cause != this$static, 'Self-causation not permitted');
- this$static.cause = cause;
- return this$static;
-}
-
-function $printStackTrace(this$static){
- var element$array, element$index, element$max, t, stackTrace;
- for (t = this$static; t; t = t.cause) {
- for (element$array = (t.stackTrace == null && (t.stackTrace = ($clinit_StackTraceCreator() , stackTrace = initDim(Ljava_lang_StackTraceElement_2_classLit, {3:1, 4:1, 591:1}, 675, 0, 0, 1) , dropInternalFrames(stackTrace))) , t.stackTrace) , element$index = 0 , element$max = element$array.length; element$index < element$max; ++element$index)
- ;
- }
-}
-
-function Throwable(message, cause){
- this.cause = cause;
- this.detailMessage = message;
- $fillInStackTrace(this);
-}
-
-defineClass(14, 1, $intern_1);
-_.getMessage = function(){
- return this.detailMessage;
-}
-;
-_.toString$ = function(){
- var className, msg;
- return className = $getName(this.___clazz$) , msg = this.getMessage() , msg != null?className + ': ' + msg:className;
-}
-;
-var Ljava_lang_Throwable_2_classLit = createForClass('java.lang', 'Throwable', 14, Ljava_lang_Object_2_classLit);
-function Exception(message){
- this.detailMessage = message;
- $fillInStackTrace(this);
-}
-
-defineClass(12, 14, $intern_2, Exception);
-var Ljava_lang_Exception_2_classLit = createForClass('java.lang', 'Exception', 12, Ljava_lang_Throwable_2_classLit);
-function RuntimeException(){
- $fillInStackTrace(this);
-}
-
-function RuntimeException_0(message){
- Exception.call(this, message);
-}
-
-function RuntimeException_1(message, cause){
- Throwable.call(this, message, cause);
-}
-
-defineClass(11, 12, $intern_3, RuntimeException_0);
-var Ljava_lang_RuntimeException_2_classLit = createForClass('java.lang', 'RuntimeException', 11, Ljava_lang_Exception_2_classLit);
-function CodeDownloadException(message){
- RuntimeException_0.call(this, message);
-}
-
-defineClass(579, 11, $intern_3, CodeDownloadException);
-var Lcom_google_gwt_core_client_CodeDownloadException_2_classLit = createForClass('com.google.gwt.core.client', 'CodeDownloadException', 579, Ljava_lang_RuntimeException_2_classLit);
-function Duration(){
- this.start_0 = now_1();
-}
-
-defineClass(184, 1, {}, Duration);
-_.start_0 = 0;
-var Lcom_google_gwt_core_client_Duration_2_classLit = createForClass('com.google.gwt.core.client', 'Duration', 184, Ljava_lang_Object_2_classLit);
-function isScript(){
- return true;
-}
-
-function $clinit_JavaScriptException(){
- $clinit_JavaScriptException = emptyMethod;
- NOT_SET = new Object_0;
-}
-
-function $ensureInit(this$static){
- var exception;
- if (this$static.message_0 == null) {
- exception = maskUndefined(this$static.e) === maskUndefined(NOT_SET)?null:this$static.e;
- this$static.name_0 = exception == null?'null':instanceOfJso(exception)?getExceptionName0(dynamicCastJso(exception)):isJavaString(exception)?'String':$getName(getClass__Ljava_lang_Class___devirtual$(exception));
- this$static.description = this$static.description + ': ' + (instanceOfJso(exception)?getExceptionDescription0(dynamicCastJso(exception)):exception + '');
- this$static.message_0 = '(' + this$static.name_0 + ') ' + this$static.description;
- }
-}
-
-function JavaScriptException(e){
- $clinit_JavaScriptException();
- this.cause = null;
- this.detailMessage = null;
- this.description = '';
- this.e = e;
- this.description = '';
-}
-
-function getExceptionDescription0(e){
- return e == null?null:e.message;
-}
-
-function getExceptionName0(e){
- return e == null?null:e.name;
-}
-
-defineClass(58, 11, {58:1, 3:1, 12:1, 11:1, 14:1}, JavaScriptException);
-_.getMessage = function(){
- return $ensureInit(this) , this.message_0;
-}
-;
-_.getThrown = function(){
- return maskUndefined(this.e) === maskUndefined(NOT_SET)?null:this.e;
-}
-;
-var NOT_SET;
-var Lcom_google_gwt_core_client_JavaScriptException_2_classLit = createForClass('com.google.gwt.core.client', 'JavaScriptException', 58, Ljava_lang_RuntimeException_2_classLit);
-function $push(this$static, value_0){
- this$static[this$static.length] = value_0;
-}
-
-function $push_0(this$static, value_0){
- this$static[this$static.length] = value_0;
-}
-
-function $getObject(this$static, index_0){
- return this$static[index_0] != null?Object(this$static[index_0]):null;
-}
-
-function $push_1(this$static, value_0){
- this$static[this$static.length] = value_0;
-}
-
-function now_1(){
- if (Date.now) {
- return Date.now();
- }
- return (new Date).getTime();
-}
-
-function safeEval(json){
- try {
- return JSON.parse(json);
- }
- catch (e) {
- return throwIllegalArgumentException('Error parsing JSON: ' + e, json);
- }
-}
-
-function throwIllegalArgumentException(message, data_0){
- throw new IllegalArgumentException_0(message + '\n' + data_0);
-}
-
-defineClass(541, 1, {});
-var Lcom_google_gwt_core_client_Scheduler_2_classLit = createForClass('com.google.gwt.core.client', 'Scheduler', 541, Ljava_lang_Object_2_classLit);
-function $clinit_ScriptInjector(){
- $clinit_ScriptInjector = emptyMethod;
- TOP_WINDOW = $wnd;
-}
-
-function attachListeners(scriptElement, callback, removeTag){
- $clinit_ScriptInjector();
- function clearCallbacks(){
- scriptElement.onerror = scriptElement.onreadystatechange = scriptElement.onload = null;
- removeTag && nativeRemove(scriptElement);
- }
-
- scriptElement.onload = $entry(function(){
- clearCallbacks();
- callback && callback.onSuccess_0(null);
- }
- );
- scriptElement.onerror = $entry(function(){
- clearCallbacks();
- if (callback) {
- var ex = new CodeDownloadException('onerror() called.');
- callback.onFailure_0(ex);
- }
- }
- );
- scriptElement.onreadystatechange = $entry(function(){
- /loaded|complete/.test(scriptElement.readyState) && scriptElement.onload();
- }
- );
-}
-
-function nativeAttachToHead(doc, scriptElement){
- $clinit_ScriptInjector();
- (doc.head || doc.getElementsByTagName('head')[0]).appendChild(scriptElement);
-}
-
-function nativeDefaultWindow(){
- $clinit_ScriptInjector();
- return window;
-}
-
-function nativeGetDocument(wnd){
- $clinit_ScriptInjector();
- return wnd.document;
-}
-
-function nativeMakeScriptElement(doc){
- $clinit_ScriptInjector();
- return doc.createElement('script');
-}
-
-function nativeRemove(scriptElement){
- $clinit_ScriptInjector();
- scriptElement.parentNode.removeChild(scriptElement);
-}
-
-function nativeSetSrc(element, url_0){
- $clinit_ScriptInjector();
- element.src = url_0;
-}
-
-function nativeSetText(element, scriptBody){
- $clinit_ScriptInjector();
- element.text = scriptBody;
-}
-
-var TOP_WINDOW;
-function $inject(this$static){
- var doc, scriptElement, wnd;
- wnd = !this$static.window_0?nativeDefaultWindow():this$static.window_0;
- doc = nativeGetDocument(wnd);
- scriptElement = nativeMakeScriptElement(doc);
- nativeSetText(scriptElement, this$static.scriptBody);
- nativeAttachToHead(doc, scriptElement);
- this$static.removeTag && nativeRemove(scriptElement);
- return scriptElement;
-}
-
-function $setWindow(this$static, window_0){
- this$static.window_0 = window_0;
- return this$static;
-}
-
-function ScriptInjector$FromString(scriptBody){
- this.scriptBody = scriptBody;
-}
-
-defineClass(346, 1, {}, ScriptInjector$FromString);
-_.removeTag = true;
-var Lcom_google_gwt_core_client_ScriptInjector$FromString_2_classLit = createForClass('com.google.gwt.core.client', 'ScriptInjector/FromString', 346, Ljava_lang_Object_2_classLit);
-function $inject_0(this$static){
- var doc, scriptElement, wnd;
- wnd = !this$static.window_0?nativeDefaultWindow():this$static.window_0;
- doc = nativeGetDocument(wnd);
- scriptElement = nativeMakeScriptElement(doc);
- !!this$static.callback && attachListeners(scriptElement, this$static.callback, false);
- nativeSetSrc(scriptElement, this$static.scriptUrl);
- nativeAttachToHead(doc, scriptElement);
- return scriptElement;
-}
-
-function $setCallback(this$static, callback){
- this$static.callback = callback;
- return this$static;
-}
-
-function $setWindow_0(this$static, window_0){
- this$static.window_0 = window_0;
- return this$static;
-}
-
-function ScriptInjector$FromUrl(scriptUrl){
- this.scriptUrl = scriptUrl;
-}
-
-defineClass(347, 1, {}, ScriptInjector$FromUrl);
-var Lcom_google_gwt_core_client_ScriptInjector$FromUrl_2_classLit = createForClass('com.google.gwt.core.client', 'ScriptInjector/FromUrl', 347, Ljava_lang_Object_2_classLit);
-function apply_0(jsFunction, thisObj, args){
- return jsFunction.apply(thisObj, args);
- var __0;
-}
-
-function enter(){
- var now_0;
- if (entryDepth != 0) {
- now_0 = now_1();
- if (now_0 - watchdogEntryDepthLastScheduled > 2000) {
- watchdogEntryDepthLastScheduled = now_0;
- watchdogEntryDepthTimerId = $wnd.setTimeout(watchdogEntryDepthRun, 10);
- }
- }
- if (entryDepth++ == 0) {
- $flushEntryCommands(($clinit_SchedulerImpl() , INSTANCE));
- return true;
- }
- return false;
-}
-
-function entry_0(jsFunction){
- return function(){
- if (isScript()) {
- return entry0(jsFunction, this, arguments);
- }
- else {
- var __0 = entry0(jsFunction, this, arguments);
- __0 != null && (__0 = __0.val);
- return __0;
- }
- }
- ;
-}
-
-function entry0(jsFunction, thisObj, args){
- var initialEntry;
- initialEntry = enter();
- try {
- return apply_0(jsFunction, thisObj, args);
- }
- finally {
- exit(initialEntry);
- }
-}
-
-function exit(initialEntry){
- initialEntry && $flushFinallyCommands(($clinit_SchedulerImpl() , INSTANCE));
- --entryDepth;
- if (initialEntry) {
- if (watchdogEntryDepthTimerId != -1) {
- watchdogEntryDepthCancel(watchdogEntryDepthTimerId);
- watchdogEntryDepthTimerId = -1;
- }
- }
-}
-
-function getHashCode(o){
- return o.$H || (o.$H = ++sNextHashId);
-}
-
-function reportToBrowser(e){
- $wnd.setTimeout(function(){
- throw e;
- }
- , 0);
-}
-
-function watchdogEntryDepthCancel(timerId){
- $wnd.clearTimeout(timerId);
-}
-
-function watchdogEntryDepthRun(){
- entryDepth != 0 && (entryDepth = 0);
- watchdogEntryDepthTimerId = -1;
-}
-
-var entryDepth = 0, sNextHashId = 0, watchdogEntryDepthLastScheduled = 0, watchdogEntryDepthTimerId = -1;
-function $clinit_SchedulerImpl(){
- $clinit_SchedulerImpl = emptyMethod;
- INSTANCE = new VSchedulerImpl;
-}
-
-function $flushEntryCommands(this$static){
- var oldQueue, rescheduled;
- if (this$static.entryCommands) {
- rescheduled = null;
- do {
- oldQueue = this$static.entryCommands;
- this$static.entryCommands = null;
- rescheduled = runScheduledTasks(oldQueue, rescheduled);
- }
- while (this$static.entryCommands);
- this$static.entryCommands = rescheduled;
- }
-}
-
-function $flushFinallyCommands(this$static){
- var oldQueue, rescheduled;
- if (this$static.finallyCommands) {
- rescheduled = null;
- do {
- oldQueue = this$static.finallyCommands;
- this$static.finallyCommands = null;
- rescheduled = runScheduledTasks(oldQueue, rescheduled);
- }
- while (this$static.finallyCommands);
- this$static.finallyCommands = rescheduled;
- }
-}
-
-function $flushPostEventPumpCommands(this$static){
- var oldDeferred;
- if (this$static.deferredCommands) {
- oldDeferred = this$static.deferredCommands;
- this$static.deferredCommands = null;
- !this$static.incrementalCommands && (this$static.incrementalCommands = []);
- runScheduledTasks(oldDeferred, this$static.incrementalCommands);
- }
- !!this$static.incrementalCommands && (this$static.incrementalCommands = $runRepeatingTasks(this$static.incrementalCommands));
-}
-
-function $isWorkQueued(this$static){
- return !!this$static.deferredCommands || !!this$static.incrementalCommands;
-}
-
-function $maybeSchedulePostEventPumpCommands(this$static){
- if (!this$static.shouldBeRunning) {
- this$static.shouldBeRunning = true;
- !this$static.flusher && (this$static.flusher = new SchedulerImpl$Flusher(this$static));
- scheduleFixedDelayImpl(this$static.flusher, 1);
- !this$static.rescue && (this$static.rescue = new SchedulerImpl$Rescuer(this$static));
- scheduleFixedDelayImpl(this$static.rescue, 50);
- }
-}
-
-function $runRepeatingTasks(tasks){
- var canceledSomeTasks, duration, executedSomeTask, i_0, length_0, newTasks, t;
- length_0 = tasks.length;
- if (length_0 == 0) {
- return null;
- }
- canceledSomeTasks = false;
- duration = new Duration;
- while (now_1() - duration.start_0 < 16) {
- executedSomeTask = false;
- for (i_0 = 0; i_0 < length_0; i_0++) {
- t = tasks[i_0];
- if (!t) {
- continue;
- }
- executedSomeTask = true;
- if (!t[0].execute_0()) {
- tasks[i_0] = null;
- canceledSomeTasks = true;
- }
- }
- if (!executedSomeTask) {
- break;
- }
- }
- if (canceledSomeTasks) {
- newTasks = [];
- for (i_0 = 0; i_0 < length_0; i_0++) {
- !!tasks[i_0] && $push(newTasks, tasks[i_0]);
- }
- return newTasks.length == 0?null:newTasks;
- }
- else {
- return tasks;
- }
-}
-
-function $scheduleDeferred(this$static, cmd){
- this$static.deferredCommands = push_0(this$static.deferredCommands, [cmd, false]);
- $maybeSchedulePostEventPumpCommands(this$static);
-}
-
-function $scheduleFinally(this$static, cmd){
- this$static.finallyCommands = push_0(this$static.finallyCommands, [cmd, false]);
-}
-
-function execute(cmd){
- return cmd.execute_0();
-}
-
-function push_0(queue, task){
- !queue && (queue = []);
- $push(queue, task);
- return queue;
-}
-
-function runScheduledTasks(tasks, rescheduled){
- var e, i_0, j, t;
- for (i_0 = 0 , j = tasks.length; i_0 < j; i_0++) {
- t = tasks[i_0];
- try {
- t[1]?t[0].execute_0() && (rescheduled = push_0(rescheduled, t)):t[0].execute_1();
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 14)) {
- e = $e0;
- reportToBrowser(instanceOf(e, 58)?dynamicCast(e, 58).getThrown():e);
- }
- else
- throw unwrap($e0);
- }
- }
- return rescheduled;
-}
-
-function scheduleFixedDelayImpl(cmd, delayMs){
- $clinit_SchedulerImpl();
- function callback(){
- var ret = $entry(execute)(cmd);
- !isScript() && (ret = ret == true);
- ret && $wnd.setTimeout(callback, delayMs);
- }
-
- $wnd.setTimeout(callback, delayMs);
-}
-
-defineClass(433, 541, {});
-_.flushRunning = false;
-_.shouldBeRunning = false;
-var INSTANCE;
-var Lcom_google_gwt_core_client_impl_SchedulerImpl_2_classLit = createForClass('com.google.gwt.core.client.impl', 'SchedulerImpl', 433, Lcom_google_gwt_core_client_Scheduler_2_classLit);
-function SchedulerImpl$Flusher(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(434, 1, {}, SchedulerImpl$Flusher);
-_.execute_0 = function(){
- this.this$01.flushRunning = true;
- $flushPostEventPumpCommands(this.this$01);
- this.this$01.flushRunning = false;
- return this.this$01.shouldBeRunning = $isWorkQueued(this.this$01);
-}
-;
-var Lcom_google_gwt_core_client_impl_SchedulerImpl$Flusher_2_classLit = createForClass('com.google.gwt.core.client.impl', 'SchedulerImpl/Flusher', 434, Ljava_lang_Object_2_classLit);
-function SchedulerImpl$Rescuer(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(435, 1, {}, SchedulerImpl$Rescuer);
-_.execute_0 = function(){
- this.this$01.flushRunning && scheduleFixedDelayImpl(this.this$01.flusher, 1);
- return this.this$01.shouldBeRunning;
-}
-;
-var Lcom_google_gwt_core_client_impl_SchedulerImpl$Rescuer_2_classLit = createForClass('com.google.gwt.core.client.impl', 'SchedulerImpl/Rescuer', 435, Ljava_lang_Object_2_classLit);
-function $clinit_StackTraceCreator(){
- $clinit_StackTraceCreator = emptyMethod;
- !(!!Error.stackTraceLimit || 'stack' in new Error);
-}
-
-function captureStackTrace(){
- $clinit_StackTraceCreator();
-}
-
-function dropInternalFrames(stackTrace){
- var i_0, numberOfFrameToSearch;
- numberOfFrameToSearch = min_1(stackTrace.length, 5);
- for (i_0 = 0; i_0 < numberOfFrameToSearch; i_0++) {
- if (null.nullMethod()) {
- return dynamicCast((stackTrace.length >= i_0 + 1 && stackTrace.splice(0, i_0 + 1) , stackTrace), 591);
- }
- }
- return stackTrace;
-}
-
-function checkArrayType(expression){
- if (!expression) {
- throw new ArrayStoreException;
- }
-}
-
-function checkCriticalArgument(expression, errorMessage){
- if (!expression) {
- throw new IllegalArgumentException_0('' + errorMessage);
- }
-}
-
-function checkCriticalArgument_0(expression, errorMessageArgs){
- if (!expression) {
- throw new IllegalArgumentException_0(format('Enum constant undefined: %s', errorMessageArgs));
- }
-}
-
-function checkCriticalElement(expression){
- if (!expression) {
- throw new NoSuchElementException;
- }
-}
-
-function checkCriticalPositionIndexes(start_0, end, size_0){
- if (start_0 < 0) {
- throw new IndexOutOfBoundsException_0('fromIndex: ' + start_0 + ' < 0');
- }
- if (end > size_0) {
- throw new IndexOutOfBoundsException_0('toIndex: ' + end + ' > size ' + size_0);
- }
- if (start_0 > end) {
- throw new IllegalArgumentException_0('fromIndex: ' + start_0 + ' > toIndex: ' + end);
- }
-}
-
-function checkElementIndex(index_0, size_0){
- if (index_0 < 0 || index_0 >= size_0) {
- throw new IndexOutOfBoundsException_0('Index: ' + index_0 + ', Size: ' + size_0);
- }
-}
-
-function checkNotNull(reference){
- if (reference == null) {
- throw new NullPointerException;
- }
- return reference;
-}
-
-function checkPositionIndex(index_0, size_0){
- if (index_0 < 0 || index_0 > size_0) {
- throw new IndexOutOfBoundsException_0('Index: ' + index_0 + ', Size: ' + size_0);
- }
-}
-
-function checkState(expression){
- if (!expression) {
- throw new IllegalStateException;
- }
-}
-
-function checkState_0(expression){
- if (!expression) {
- throw new IllegalStateException_0("Can't overwrite cause");
- }
-}
-
-function checkType(expression){
- if (!expression) {
- throw new ClassCastException;
- }
-}
-
-function format(template, args){
- var builder, i_0, placeholderStart, templateStart;
- template = '' + template;
- builder = (template.length + 16 * args.length , new StringBuilder_0);
- templateStart = 0;
- i_0 = 0;
- while (i_0 < args.length) {
- placeholderStart = template.indexOf('%s', templateStart);
- if (placeholderStart == -1) {
- break;
- }
- $append_0(builder, template.substr(templateStart, placeholderStart - templateStart));
- $append(builder, args[i_0++]);
- templateStart = placeholderStart + 2;
- }
- $append_0(builder, __substr(template, templateStart, template.length - templateStart));
- if (i_0 < args.length) {
- builder.string += ' [';
- $append(builder, args[i_0++]);
- while (i_0 < args.length) {
- builder.string += ', ';
- $append(builder, args[i_0++]);
- }
- builder.string += ']';
- }
- return builder.string;
-}
-
-function $appendChild(this$static, newChild){
- return this$static.appendChild(newChild);
-}
-
-function $getChild(this$static, index_0){
- return this$static.childNodes[index_0];
-}
-
-function $getParentElement(this$static){
- return $getParentElement_0(($clinit_DOMImpl() , this$static));
-}
-
-function $hasParentElement(this$static){
- return !!$getParentElement_0(($clinit_DOMImpl() , this$static));
-}
-
-function $insertAfter(this$static, newChild, refChild){
- var next;
- next = !refChild?null:refChild.nextSibling;
- return !next?this$static.appendChild(newChild):this$static.insertBefore(newChild, next);
-}
-
-function $insertBefore(this$static, newChild, refChild){
- return this$static.insertBefore(newChild, refChild);
-}
-
-function $insertFirst(this$static, child){
- return $insertBefore(this$static, child, this$static.firstChild);
-}
-
-function $isOrHasChild(this$static, child){
- return ($clinit_DOMImpl() , impl_0).isOrHasChild(this$static, child);
-}
-
-function $removeAllChildren(this$static){
- while (this$static.lastChild) {
- this$static.removeChild(this$static.lastChild);
- }
-}
-
-function $removeChild(this$static, oldChild){
- return this$static.removeChild(oldChild);
-}
-
-function $removeFromParent(this$static){
- var parent_0;
- parent_0 = $getParentElement_0(($clinit_DOMImpl() , this$static));
- !!parent_0 && parent_0.removeChild(this$static);
-}
-
-function is(o){
- try {
- return !!o && !!o.nodeType;
- }
- catch (e) {
- return false;
- }
-}
-
-function $addClassName(this$static, className){
- var idx, oldClassName;
- className = trimClassName(className);
- oldClassName = $getClassName(this$static);
- idx = indexOfName(oldClassName, className);
- if (idx == -1) {
- oldClassName.length > 0?$setClassName(this$static, oldClassName + ' ' + className):$setClassName(this$static, className);
- return true;
- }
- return false;
-}
-
-function $focus(this$static){
- this$static.focus();
-}
-
-function $getAbsoluteBottom(this$static){
- return ($clinit_DOMImpl() , impl_0).getAbsoluteTop(this$static) + ($getSubPixelOffsetHeight(this$static) | 0);
-}
-
-function $getAbsoluteLeft(this$static){
- return ($clinit_DOMImpl() , impl_0).getAbsoluteLeft(this$static);
-}
-
-function $getAbsoluteTop(this$static){
- return ($clinit_DOMImpl() , impl_0).getAbsoluteTop(this$static);
-}
-
-function $getAttribute(this$static, name_0){
- return $getAttribute_0(($clinit_DOMImpl() , this$static), name_0);
-}
-
-function $getClassName(this$static){
- return this$static.className || '';
-}
-
-function $getFirstChildElement(this$static){
- return $getFirstChildElement_0(($clinit_DOMImpl() , this$static));
-}
-
-function $getInnerHTML(this$static){
- return ($clinit_DOMImpl() , this$static).innerHTML;
-}
-
-function $getPropertyInt(this$static, name_0){
- return parseInt(this$static[name_0]) | 0;
-}
-
-function $getPropertyString(this$static, name_0){
- return this$static[name_0] == null?null:String(this$static[name_0]);
-}
-
-function $getScrollLeft(this$static){
- return ($clinit_DOMImpl() , impl_0).getScrollLeft_0(this$static);
-}
-
-function $getString(this$static){
- return ($clinit_DOMImpl() , impl_0).toString_0(this$static);
-}
-
-function $getSubPixelOffsetHeight(this$static){
- return this$static.offsetHeight || 0;
-}
-
-function $getSubPixelOffsetWidth(this$static){
- return this$static.offsetWidth || 0;
-}
-
-function $getSubPixelScrollTop(this$static){
- return this$static.scrollTop || 0;
-}
-
-function $getSubPixelScrollWidth(this$static){
- return this$static.scrollWidth || 0;
-}
-
-function $getTabIndex(this$static){
- return ($clinit_DOMImpl() , impl_0).getTabIndex(this$static);
-}
-
-function $hasClassName(this$static, className){
- var idx;
- className = trimClassName(className);
- idx = indexOfName($getClassName(this$static), className);
- return idx != -1;
-}
-
-function $removeAttribute(this$static, name_0){
- this$static.removeAttribute(name_0);
-}
-
-function $removeClassName(this$static, className){
- var begin, end, idx, newClassName, oldStyle;
- className = trimClassName(className);
- oldStyle = $getClassName(this$static);
- idx = indexOfName(oldStyle, className);
- if (idx != -1) {
- begin = $trim(oldStyle.substr(0, idx));
- end = $trim($substring(oldStyle, idx + className.length));
- begin.length == 0?(newClassName = end):end.length == 0?(newClassName = begin):(newClassName = begin + ' ' + end);
- $setClassName(this$static, newClassName);
- return true;
- }
- return false;
-}
-
-function $setAttribute(this$static, name_0, value_0){
- this$static.setAttribute(name_0, value_0);
-}
-
-function $setClassName(this$static, className){
- this$static.className = className || '';
-}
-
-function $setId(this$static, id_0){
- this$static.id = id_0;
-}
-
-function $setInnerHTML(this$static, html){
- this$static.innerHTML = html || '';
-}
-
-function $setInnerText(this$static, text_0){
- $setInnerText_0(($clinit_DOMImpl() , this$static), text_0);
-}
-
-function $setPropertyBoolean(this$static, name_0, value_0){
- this$static[name_0] = value_0;
-}
-
-function $setPropertyInt(this$static, name_0, value_0){
- this$static[name_0] = value_0;
-}
-
-function $setPropertyObject(this$static, name_0, value_0){
- this$static[name_0] = value_0;
-}
-
-function $setPropertyString(this$static, name_0, value_0){
- this$static[name_0] = value_0;
-}
-
-function $setScrollLeft(this$static, scrollLeft){
- ($clinit_DOMImpl() , impl_0).setScrollLeft(this$static, scrollLeft);
-}
-
-function $setScrollTop(this$static, scrollTop){
- this$static.scrollTop = scrollTop;
-}
-
-function $setTabIndex(this$static, tabIndex){
- this$static.tabIndex = tabIndex;
-}
-
-function indexOfName(nameList, name_0){
- var idx, last, lastPos;
- idx = nameList.indexOf(name_0);
- while (idx != -1) {
- if (idx == 0 || nameList.charCodeAt(idx - 1) == 32) {
- last = idx + name_0.length;
- lastPos = nameList.length;
- if (last == lastPos || last < lastPos && nameList.charCodeAt(last) == 32) {
- break;
- }
- }
- idx = nameList.indexOf(name_0, idx + 1);
- }
- return idx;
-}
-
-function is_0(o){
- if (is(o)) {
- return !!o && o.nodeType == 1;
- }
- return false;
-}
-
-function trimClassName(className){
- className = $trim(className);
- return className;
-}
-
-function $clinit_DOMImpl(){
- $clinit_DOMImpl = emptyMethod;
- impl_0 = com_google_gwt_dom_client_DOMImpl();
-}
-
-function $createElement(doc, tag){
- return doc.createElement(tag);
-}
-
-function $eventStopPropagation(evt){
- evt.stopPropagation();
-}
-
-function $getAttribute_0(elem, name_0){
- return elem.getAttribute(name_0) || '';
-}
-
-function $getFirstChildElement_0(elem){
- var child = elem.firstChild;
- while (child && child.nodeType != 1)
- child = child.nextSibling;
- return child;
-}
-
-function $getNextSiblingElement(elem){
- var sib = elem.nextSibling;
- while (sib && sib.nodeType != 1)
- sib = sib.nextSibling;
- return sib;
-}
-
-function $getParentElement_0(node){
- var parent_0 = node.parentNode;
- (!parent_0 || parent_0.nodeType != 1) && (parent_0 = null);
- return parent_0;
-}
-
-function $getPreviousSiblingElement(elem){
- var sib = elem.previousSibling;
- while (sib && sib.nodeType != 1)
- sib = sib.previousSibling;
- return sib;
-}
-
-function $getSubPixelAbsoluteLeft(elem){
- var left = 0;
- var curr = elem;
- while (curr.offsetParent) {
- left -= curr.scrollLeft;
- curr = curr.parentNode;
- }
- while (elem) {
- left += elem.offsetLeft;
- elem = elem.offsetParent;
- }
- return left;
-}
-
-function $getSubPixelAbsoluteTop(elem){
- var top_0 = 0;
- var curr = elem;
- while (curr.offsetParent) {
- top_0 -= curr.scrollTop;
- curr = curr.parentNode;
- }
- while (elem) {
- top_0 += elem.offsetTop;
- elem = elem.offsetParent;
- }
- return top_0;
-}
-
-function $getSubPixelScrollLeft(elem){
- return elem.scrollLeft || 0;
-}
-
-function $setScrollLeft_0(elem, left){
- elem.scrollLeft = left;
-}
-
-function toInt32(val){
- $clinit_DOMImpl();
- return val | 0;
-}
-
-defineClass(570, 1, {});
-_.eventGetCurrentTarget = function eventGetCurrentTarget(event_0){
- return event_0.currentTarget;
-}
-;
-_.getAbsoluteLeft = function(elem){
- return toInt32($getSubPixelAbsoluteLeft(elem));
-}
-;
-_.getAbsoluteTop = function(elem){
- return toInt32($getSubPixelAbsoluteTop(elem));
-}
-;
-_.getBodyOffsetLeft = function getBodyOffsetLeft(doc){
- return 0;
-}
-;
-_.getBodyOffsetTop = function getBodyOffsetTop(doc){
- return 0;
-}
-;
-_.getScrollLeft = function(doc){
- return $getScrollLeft($equals_2(doc.compatMode, 'CSS1Compat')?doc.documentElement:doc.body);
-}
-;
-_.getScrollLeft_0 = function(elem){
- return toInt32($getSubPixelScrollLeft(elem));
-}
-;
-_.getTabIndex = function getTabIndex(elem){
- return elem.tabIndex;
-}
-;
-_.setScrollLeft = function(elem, left){
- $setScrollLeft_0(elem, left);
-}
-;
-_.toString_0 = function toString_0(elem){
- return elem.outerHTML;
-}
-;
-var impl_0;
-var Lcom_google_gwt_dom_client_DOMImpl_2_classLit = createForClass('com.google.gwt.dom.client', 'DOMImpl', 570, Ljava_lang_Object_2_classLit);
-function $eventGetButton(evt){
- var button = evt.button;
- if (button == 1) {
- return 4;
- }
- else if (button == 2) {
- return 2;
- }
- return 1;
-}
-
-function $eventPreventDefault(evt){
- evt.preventDefault();
-}
-
-function $setInnerText_0(elem, text_0){
- elem.textContent = text_0 || '';
-}
-
-defineClass(571, 570, {});
-_.eventGetRelatedTarget = function eventGetRelatedTarget(evt){
- return evt.relatedTarget;
-}
-;
-_.eventGetTarget = function eventGetTarget(evt){
- return evt.target;
-}
-;
-_.isOrHasChild = function isOrHasChild(parent_0, child){
- return parent_0.contains(child);
-}
-;
-var Lcom_google_gwt_dom_client_DOMImplStandard_2_classLit = createForClass('com.google.gwt.dom.client', 'DOMImplStandard', 571, Lcom_google_gwt_dom_client_DOMImpl_2_classLit);
-function $getAbsoluteLeftImpl(viewport, elem){
- if (Element.prototype.getBoundingClientRect) {
- return elem.getBoundingClientRect().left + viewport.scrollLeft | 0;
- }
- else {
- var doc = elem.ownerDocument;
- return doc.getBoxObjectFor(elem).screenX - doc.getBoxObjectFor(doc.documentElement).screenX;
- }
-}
-
-function $getAbsoluteTopImpl(viewport, elem){
- if (Element.prototype.getBoundingClientRect) {
- return elem.getBoundingClientRect().top + viewport.scrollTop | 0;
- }
- else {
- var doc = elem.ownerDocument;
- return doc.getBoxObjectFor(elem).screenY - doc.getBoxObjectFor(doc.documentElement).screenY;
- }
-}
-
-function $isRTL(elem){
- var style = elem.ownerDocument.defaultView.getComputedStyle(elem, null);
- return style.direction == 'rtl';
-}
-
-function DOMImplMozilla(){
- $clinit_DOMImpl();
-}
-
-function getGeckoVersion(){
- var result = /rv:([0-9]+)\.([0-9]+)(\.([0-9]+))?.*?/.exec(navigator.userAgent.toLowerCase());
- if (result && result.length >= 3) {
- var version = parseInt(result[1]) * 1000000 + parseInt(result[2]) * 1000 + parseInt(result.length >= 5 && !isNaN(result[4])?result[4]:0);
- return version;
- }
- return -1;
-}
-
-function isGecko19(){
- var geckoVersion;
- geckoVersion = getGeckoVersion();
- return geckoVersion != -1 && geckoVersion >= 1009000;
-}
-
-defineClass(416, 571, {}, DOMImplMozilla);
-_.eventGetMouseWheelVelocityY = function eventGetMouseWheelVelocityY(evt){
- return evt.detail || 0;
-}
-;
-_.eventGetRelatedTarget = function eventGetRelatedTarget_0(evt){
- var relatedTarget = evt.relatedTarget;
- if (!relatedTarget) {
- return null;
- }
- try {
- var nodeName = relatedTarget.nodeName;
- return relatedTarget;
- }
- catch (e) {
- return null;
- }
-}
-;
-_.getAbsoluteLeft = function(elem){
- return $getAbsoluteLeftImpl($getViewportElement(elem.ownerDocument), elem);
-}
-;
-_.getAbsoluteTop = function(elem){
- return $getAbsoluteTopImpl($getViewportElement(elem.ownerDocument), elem);
-}
-;
-_.getBodyOffsetLeft = function getBodyOffsetLeft_0(doc){
- var style = $wnd.getComputedStyle(doc.documentElement, null);
- if (style == null) {
- return 0;
- }
- return parseInt(style.marginLeft, 10) + parseInt(style.borderLeftWidth, 10);
-}
-;
-_.getBodyOffsetTop = function getBodyOffsetTop_0(doc){
- var style = $wnd.getComputedStyle(doc.documentElement, null);
- if (style == null) {
- return 0;
- }
- return parseInt(style.marginTop, 10) + parseInt(style.borderTopWidth, 10);
-}
-;
-_.getScrollLeft_0 = function(elem){
- if (!isGecko19() && $isRTL(elem)) {
- return toInt32($getSubPixelScrollLeft(elem)) - (($getSubPixelScrollWidth(elem) | 0) - (elem.clientWidth | 0));
- }
- return toInt32($getSubPixelScrollLeft(elem));
-}
-;
-_.isOrHasChild = function isOrHasChild_0(parent_0, child){
- return parent_0 === child || !!(parent_0.compareDocumentPosition(child) & 16);
-}
-;
-_.setScrollLeft = function(elem, left){
- !isGecko19() && $isRTL(elem) && (left += ($getSubPixelScrollWidth(elem) | 0) - (elem.clientWidth | 0));
- $setScrollLeft_0(elem, left);
-}
-;
-_.toString_0 = function toString_1(elem){
- var doc = elem.ownerDocument;
- var temp = elem.cloneNode(true);
- var tempDiv = doc.createElement('DIV');
- tempDiv.appendChild(temp);
- outer = tempDiv.innerHTML;
- temp.innerHTML = '';
- return outer;
-}
-;
-var Lcom_google_gwt_dom_client_DOMImplMozilla_2_classLit = createForClass('com.google.gwt.dom.client', 'DOMImplMozilla', 416, Lcom_google_gwt_dom_client_DOMImplStandard_2_classLit);
-function $isRTL_0(elem){
- return elem.ownerDocument.defaultView.getComputedStyle(elem, '').direction == 'rtl';
-}
-
-function getAbsoluteLeftUsingOffsets(elem){
- if (elem.offsetLeft == null) {
- return 0;
- }
- var left = 0;
- var doc = elem.ownerDocument;
- var curr = elem.parentNode;
- if (curr) {
- while (curr.offsetParent) {
- left -= curr.scrollLeft;
- doc.defaultView.getComputedStyle(curr, '').getPropertyValue('direction') == 'rtl' && (left += curr.scrollWidth - curr.clientWidth);
- curr = curr.parentNode;
- }
- }
- while (elem) {
- left += elem.offsetLeft;
- if (doc.defaultView.getComputedStyle(elem, '')['position'] == 'fixed') {
- left += doc.body.scrollLeft;
- return left;
- }
- var parent_0 = elem.offsetParent;
- parent_0 && $wnd.devicePixelRatio && (left += parseInt(doc.defaultView.getComputedStyle(parent_0, '').getPropertyValue('border-left-width')));
- if (parent_0 && parent_0.tagName == 'BODY' && elem.style.position == 'absolute') {
- break;
- }
- elem = parent_0;
- }
- return left;
-}
-
-function getAbsoluteTopUsingOffsets(elem){
- if (elem.offsetTop == null) {
- return 0;
- }
- var top_0 = 0;
- var doc = elem.ownerDocument;
- var curr = elem.parentNode;
- if (curr) {
- while (curr.offsetParent) {
- top_0 -= curr.scrollTop;
- curr = curr.parentNode;
- }
- }
- while (elem) {
- top_0 += elem.offsetTop;
- if (doc.defaultView.getComputedStyle(elem, '')['position'] == 'fixed') {
- top_0 += doc.body.scrollTop;
- return top_0;
- }
- var parent_0 = elem.offsetParent;
- parent_0 && $wnd.devicePixelRatio && (top_0 += parseInt(doc.defaultView.getComputedStyle(parent_0, '').getPropertyValue('border-top-width')));
- if (parent_0 && parent_0.tagName == 'BODY' && elem.style.position == 'absolute') {
- break;
- }
- elem = parent_0;
- }
- return top_0;
-}
-
-function getBoundingClientRect(element){
- return element.getBoundingClientRect && element.getBoundingClientRect();
-}
-
-defineClass(572, 571, {});
-_.eventGetCurrentTarget = function eventGetCurrentTarget_0(event_0){
- return event_0.currentTarget || $wnd;
-}
-;
-_.eventGetMouseWheelVelocityY = function eventGetMouseWheelVelocityY_0(evt){
- return Math.round(-evt.wheelDelta / 40) || 0;
-}
-;
-_.getAbsoluteLeft = function(elem){
- var left, rect;
- rect = getBoundingClientRect(elem);
- left = rect?rect.left + $getScrollLeft(elem.ownerDocument.body):getAbsoluteLeftUsingOffsets(elem);
- return toInt32(left);
-}
-;
-_.getAbsoluteTop = function(elem){
- var rect, top_0, top_1;
- rect = getBoundingClientRect(elem);
- top_0 = rect?rect.top + ((elem.ownerDocument.body.scrollTop || 0) | 0):getAbsoluteTopUsingOffsets(elem);
- return toInt32(top_0);
-}
-;
-_.getScrollLeft = function getScrollLeft(doc){
- return doc.documentElement.scrollLeft || doc.body.scrollLeft;
-}
-;
-_.getScrollLeft_0 = function(elem){
- if (!$equalsIgnoreCase('body', ($clinit_DOMImpl() , elem).tagName) && $isRTL_0(elem)) {
- return toInt32($getSubPixelScrollLeft(elem)) - (($getSubPixelScrollWidth(elem) | 0) - (elem.clientWidth | 0));
- }
- return toInt32($getSubPixelScrollLeft(elem));
-}
-;
-_.getTabIndex = function getTabIndex_0(elem){
- return typeof elem.tabIndex != 'undefined'?elem.tabIndex:-1;
-}
-;
-_.setScrollLeft = function(elem, left){
- !$equalsIgnoreCase('body', ($clinit_DOMImpl() , elem).tagName) && $isRTL_0(elem) && (left += ($getSubPixelScrollWidth(elem) | 0) - (elem.clientWidth | 0));
- $setScrollLeft_0(elem, left);
-}
-;
-var Lcom_google_gwt_dom_client_DOMImplStandardBase_2_classLit = createForClass('com.google.gwt.dom.client', 'DOMImplStandardBase', 572, Lcom_google_gwt_dom_client_DOMImplStandard_2_classLit);
-function DOMImplWebkit(){
- $clinit_DOMImpl();
-}
-
-defineClass(417, 572, {}, DOMImplWebkit);
-_.eventGetTarget = function eventGetTarget_0(evt){
- var target = evt.target;
- target && target.nodeType == 3 && (target = target.parentNode);
- return target;
-}
-;
-var Lcom_google_gwt_dom_client_DOMImplWebkit_2_classLit = createForClass('com.google.gwt.dom.client', 'DOMImplWebkit', 417, Lcom_google_gwt_dom_client_DOMImplStandardBase_2_classLit);
-function $createCheckInputElement(this$static){
- var e;
- return e = ($clinit_DOMImpl() , this$static).createElement('INPUT') , e.type = 'checkbox' , e.value = 'on' , e;
-}
-
-function $createDivElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('div');
-}
-
-function $createElement_0(this$static, tagName){
- return $createElement(($clinit_DOMImpl() , this$static), tagName);
-}
-
-function $createIFrameElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('iframe');
-}
-
-function $createLabelElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('label');
-}
-
-function $createScriptElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('script');
-}
-
-function $createSpanElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('span');
-}
-
-function $createTBodyElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('tbody');
-}
-
-function $createTFootElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('tfoot');
-}
-
-function $createTHeadElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('thead');
-}
-
-function $createTRElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('tr');
-}
-
-function $createTableElement(this$static){
- return ($clinit_DOMImpl() , this$static).createElement('table');
-}
-
-function $createUniqueId(this$static){
- !this$static.gwt_uid && (this$static.gwt_uid = 1);
- return 'gwt-uid-' + this$static.gwt_uid++;
-}
-
-function $getBodyOffsetLeft(this$static){
- return ($clinit_DOMImpl() , impl_0).getBodyOffsetLeft(this$static);
-}
-
-function $getBodyOffsetTop(this$static){
- return ($clinit_DOMImpl() , impl_0).getBodyOffsetTop(this$static);
-}
-
-function $getClientHeight(this$static){
- return ($equals_2(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body).clientHeight | 0;
-}
-
-function $getClientWidth(this$static){
- return ($equals_2(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body).clientWidth | 0;
-}
-
-function $getElementById(this$static, elementId){
- return this$static.getElementById(elementId);
-}
-
-function $getScrollHeight(this$static){
- return (($equals_2(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body).scrollHeight || 0) | 0;
-}
-
-function $getScrollLeft_0(this$static){
- return ($clinit_DOMImpl() , impl_0).getScrollLeft(this$static);
-}
-
-function $getScrollWidth(this$static){
- return (($equals_2(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body).scrollWidth || 0) | 0;
-}
-
-function $getViewportElement(this$static){
- return $equals_2(this$static.compatMode, 'CSS1Compat')?this$static.documentElement:this$static.body;
-}
-
-function $isChecked(this$static){
- return !!this$static.checked;
-}
-
-function $isDefaultChecked(this$static){
- return !!this$static.defaultChecked;
-}
-
-function $setChecked(this$static, checked){
- this$static.checked = checked;
-}
-
-function $setDefaultChecked(this$static, defaultChecked){
- this$static.defaultChecked = defaultChecked;
-}
-
-function $setHtmlFor(this$static, htmlFor){
- this$static.htmlFor = htmlFor;
-}
-
-function $getEventTarget(this$static){
- return ($clinit_DOMImpl() , impl_0).eventGetTarget(this$static);
-}
-
-function $getKeyCode(this$static){
- return ($clinit_DOMImpl() , this$static).keyCode | 0;
-}
-
-function $getShiftKey(this$static){
- return !!($clinit_DOMImpl() , this$static).shiftKey;
-}
-
-function $getTouches(this$static){
- return ($clinit_DOMImpl() , this$static).touches;
-}
-
-function $preventDefault(this$static){
- $eventPreventDefault(($clinit_DOMImpl() , this$static));
-}
-
-function $setSrc(this$static, src_0){
- this$static.src = src_0;
-}
-
-function $getDisplay(this$static){
- return ($clinit_DOMImpl() , this$static)['display'];
-}
-
-function $getOpacity(this$static){
- return ($clinit_DOMImpl() , this$static)['opacity'];
-}
-
-function $getPosition(this$static){
- return ($clinit_DOMImpl() , this$static)['position'];
-}
-
-function $getProperty(this$static, name_0){
- return ($clinit_DOMImpl() , this$static)[name_0];
-}
-
-function $getZIndex(this$static){
- return ($clinit_DOMImpl() , this$static)['zIndex'];
-}
-
-function $setPropertyImpl(this$static, name_0, value_0){
- this$static[name_0] = value_0;
-}
-
-function $toString_0(this$static){
- return this$static.name_0 != null?this$static.name_0:'' + this$static.ordinal;
-}
-
-function Enum(name_0, ordinal){
- this.name_0 = name_0;
- this.ordinal = ordinal;
-}
-
-function createValueOfMap(enumConstants){
- var result, value_0, value$index, value$max;
- result = {};
- for (value$index = 0 , value$max = enumConstants.length; value$index < value$max; ++value$index) {
- value_0 = enumConstants[value$index];
- result[':' + (value_0.name_0 != null?value_0.name_0:'' + value_0.ordinal)] = value_0;
- }
- return result;
-}
-
-function valueOf(map_0, name_0){
- var result;
- checkNotNull(name_0);
- result = map_0[':' + name_0];
- checkCriticalArgument_0(!!result, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [name_0]));
- return result;
-}
-
-defineClass(5, 1, {3:1, 6:1, 5:1});
-_.equals$ = function(other){
- return this === other;
-}
-;
-_.hashCode$ = function(){
- return getHashCode(this);
-}
-;
-_.toString$ = function(){
- return $toString_0(this);
-}
-;
-_.ordinal = 0;
-var Ljava_lang_Enum_2_classLit = createForClass('java.lang', 'Enum', 5, Ljava_lang_Object_2_classLit);
-function $clinit_Style$BorderStyle(){
- $clinit_Style$BorderStyle = emptyMethod;
- NONE = new Style$BorderStyle$1;
- DOTTED = new Style$BorderStyle$2;
- DASHED = new Style$BorderStyle$3;
- HIDDEN = new Style$BorderStyle$4;
- SOLID = new Style$BorderStyle$5;
-}
-
-function Style$BorderStyle(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_0(){
- $clinit_Style$BorderStyle();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit, 1), $intern_4, 49, 0, [NONE, DOTTED, DASHED, HIDDEN, SOLID]);
-}
-
-defineClass(49, 5, $intern_5);
-var DASHED, DOTTED, HIDDEN, NONE, SOLID;
-var Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle', 49, Ljava_lang_Enum_2_classLit, values_0);
-function Style$BorderStyle$1(){
- Style$BorderStyle.call(this, 'NONE', 0);
-}
-
-defineClass(357, 49, $intern_5, Style$BorderStyle$1);
-var Lcom_google_gwt_dom_client_Style$BorderStyle$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/1', 357, Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit, null);
-function Style$BorderStyle$2(){
- Style$BorderStyle.call(this, 'DOTTED', 1);
-}
-
-defineClass(358, 49, $intern_5, Style$BorderStyle$2);
-var Lcom_google_gwt_dom_client_Style$BorderStyle$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/2', 358, Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit, null);
-function Style$BorderStyle$3(){
- Style$BorderStyle.call(this, 'DASHED', 2);
-}
-
-defineClass(359, 49, $intern_5, Style$BorderStyle$3);
-var Lcom_google_gwt_dom_client_Style$BorderStyle$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/3', 359, Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit, null);
-function Style$BorderStyle$4(){
- Style$BorderStyle.call(this, 'HIDDEN', 3);
-}
-
-defineClass(360, 49, $intern_5, Style$BorderStyle$4);
-var Lcom_google_gwt_dom_client_Style$BorderStyle$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/4', 360, Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit, null);
-function Style$BorderStyle$5(){
- Style$BorderStyle.call(this, 'SOLID', 4);
-}
-
-defineClass(361, 49, $intern_5, Style$BorderStyle$5);
-var Lcom_google_gwt_dom_client_Style$BorderStyle$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/BorderStyle/5', 361, Lcom_google_gwt_dom_client_Style$BorderStyle_2_classLit, null);
-function $clinit_Style$Display(){
- $clinit_Style$Display = emptyMethod;
- NONE_0 = new Style$Display$1;
- BLOCK = new Style$Display$2;
- INLINE = new Style$Display$3;
- INLINE_BLOCK = new Style$Display$4;
- INLINE_TABLE = new Style$Display$5;
- LIST_ITEM = new Style$Display$6;
- RUN_IN = new Style$Display$7;
- TABLE = new Style$Display$8;
- TABLE_CAPTION = new Style$Display$9;
- TABLE_COLUMN_GROUP = new Style$Display$10;
- TABLE_HEADER_GROUP = new Style$Display$11;
- TABLE_FOOTER_GROUP = new Style$Display$12;
- TABLE_ROW_GROUP = new Style$Display$13;
- TABLE_CELL = new Style$Display$14;
- TABLE_COLUMN = new Style$Display$15;
- TABLE_ROW = new Style$Display$16;
- INITIAL = new Style$Display$17;
-}
-
-function Style$Display(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_1(){
- $clinit_Style$Display();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Display_2_classLit, 1), $intern_4, 16, 0, [NONE_0, BLOCK, INLINE, INLINE_BLOCK, INLINE_TABLE, LIST_ITEM, RUN_IN, TABLE, TABLE_CAPTION, TABLE_COLUMN_GROUP, TABLE_HEADER_GROUP, TABLE_FOOTER_GROUP, TABLE_ROW_GROUP, TABLE_CELL, TABLE_COLUMN, TABLE_ROW, INITIAL]);
-}
-
-defineClass(16, 5, $intern_6);
-var BLOCK, INITIAL, INLINE, INLINE_BLOCK, INLINE_TABLE, LIST_ITEM, NONE_0, RUN_IN, TABLE, TABLE_CAPTION, TABLE_CELL, TABLE_COLUMN, TABLE_COLUMN_GROUP, TABLE_FOOTER_GROUP, TABLE_HEADER_GROUP, TABLE_ROW, TABLE_ROW_GROUP;
-var Lcom_google_gwt_dom_client_Style$Display_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display', 16, Ljava_lang_Enum_2_classLit, values_1);
-function Style$Display$1(){
- Style$Display.call(this, 'NONE', 0);
-}
-
-defineClass(362, 16, $intern_6, Style$Display$1);
-var Lcom_google_gwt_dom_client_Style$Display$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/1', 362, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$10(){
- Style$Display.call(this, 'TABLE_COLUMN_GROUP', 9);
-}
-
-defineClass(371, 16, $intern_6, Style$Display$10);
-var Lcom_google_gwt_dom_client_Style$Display$10_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/10', 371, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$11(){
- Style$Display.call(this, 'TABLE_HEADER_GROUP', 10);
-}
-
-defineClass(372, 16, $intern_6, Style$Display$11);
-var Lcom_google_gwt_dom_client_Style$Display$11_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/11', 372, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$12(){
- Style$Display.call(this, 'TABLE_FOOTER_GROUP', 11);
-}
-
-defineClass(373, 16, $intern_6, Style$Display$12);
-var Lcom_google_gwt_dom_client_Style$Display$12_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/12', 373, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$13(){
- Style$Display.call(this, 'TABLE_ROW_GROUP', 12);
-}
-
-defineClass(374, 16, $intern_6, Style$Display$13);
-var Lcom_google_gwt_dom_client_Style$Display$13_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/13', 374, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$14(){
- Style$Display.call(this, 'TABLE_CELL', 13);
-}
-
-defineClass(375, 16, $intern_6, Style$Display$14);
-var Lcom_google_gwt_dom_client_Style$Display$14_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/14', 375, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$15(){
- Style$Display.call(this, 'TABLE_COLUMN', 14);
-}
-
-defineClass(376, 16, $intern_6, Style$Display$15);
-var Lcom_google_gwt_dom_client_Style$Display$15_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/15', 376, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$16(){
- Style$Display.call(this, 'TABLE_ROW', 15);
-}
-
-defineClass(377, 16, $intern_6, Style$Display$16);
-var Lcom_google_gwt_dom_client_Style$Display$16_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/16', 377, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$17(){
- Style$Display.call(this, 'INITIAL', 16);
-}
-
-defineClass(378, 16, $intern_6, Style$Display$17);
-var Lcom_google_gwt_dom_client_Style$Display$17_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/17', 378, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$2(){
- Style$Display.call(this, 'BLOCK', 1);
-}
-
-defineClass(363, 16, $intern_6, Style$Display$2);
-var Lcom_google_gwt_dom_client_Style$Display$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/2', 363, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$3(){
- Style$Display.call(this, 'INLINE', 2);
-}
-
-defineClass(364, 16, $intern_6, Style$Display$3);
-var Lcom_google_gwt_dom_client_Style$Display$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/3', 364, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$4(){
- Style$Display.call(this, 'INLINE_BLOCK', 3);
-}
-
-defineClass(365, 16, $intern_6, Style$Display$4);
-var Lcom_google_gwt_dom_client_Style$Display$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/4', 365, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$5(){
- Style$Display.call(this, 'INLINE_TABLE', 4);
-}
-
-defineClass(366, 16, $intern_6, Style$Display$5);
-var Lcom_google_gwt_dom_client_Style$Display$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/5', 366, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$6(){
- Style$Display.call(this, 'LIST_ITEM', 5);
-}
-
-defineClass(367, 16, $intern_6, Style$Display$6);
-var Lcom_google_gwt_dom_client_Style$Display$6_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/6', 367, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$7(){
- Style$Display.call(this, 'RUN_IN', 6);
-}
-
-defineClass(368, 16, $intern_6, Style$Display$7);
-var Lcom_google_gwt_dom_client_Style$Display$7_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/7', 368, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$8(){
- Style$Display.call(this, 'TABLE', 7);
-}
-
-defineClass(369, 16, $intern_6, Style$Display$8);
-var Lcom_google_gwt_dom_client_Style$Display$8_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/8', 369, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function Style$Display$9(){
- Style$Display.call(this, 'TABLE_CAPTION', 8);
-}
-
-defineClass(370, 16, $intern_6, Style$Display$9);
-var Lcom_google_gwt_dom_client_Style$Display$9_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Display/9', 370, Lcom_google_gwt_dom_client_Style$Display_2_classLit, null);
-function $clinit_Style$Overflow(){
- $clinit_Style$Overflow = emptyMethod;
- VISIBLE = new Style$Overflow$1;
- HIDDEN_0 = new Style$Overflow$2;
- SCROLL = new Style$Overflow$3;
- AUTO = new Style$Overflow$4;
-}
-
-function Style$Overflow(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_2(){
- $clinit_Style$Overflow();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Overflow_2_classLit, 1), $intern_4, 61, 0, [VISIBLE, HIDDEN_0, SCROLL, AUTO]);
-}
-
-defineClass(61, 5, $intern_7);
-var AUTO, HIDDEN_0, SCROLL, VISIBLE;
-var Lcom_google_gwt_dom_client_Style$Overflow_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow', 61, Ljava_lang_Enum_2_classLit, values_2);
-function Style$Overflow$1(){
- Style$Overflow.call(this, 'VISIBLE', 0);
-}
-
-defineClass(379, 61, $intern_7, Style$Overflow$1);
-var Lcom_google_gwt_dom_client_Style$Overflow$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow/1', 379, Lcom_google_gwt_dom_client_Style$Overflow_2_classLit, null);
-function Style$Overflow$2(){
- Style$Overflow.call(this, 'HIDDEN', 1);
-}
-
-defineClass(380, 61, $intern_7, Style$Overflow$2);
-var Lcom_google_gwt_dom_client_Style$Overflow$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow/2', 380, Lcom_google_gwt_dom_client_Style$Overflow_2_classLit, null);
-function Style$Overflow$3(){
- Style$Overflow.call(this, 'SCROLL', 2);
-}
-
-defineClass(381, 61, $intern_7, Style$Overflow$3);
-var Lcom_google_gwt_dom_client_Style$Overflow$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow/3', 381, Lcom_google_gwt_dom_client_Style$Overflow_2_classLit, null);
-function Style$Overflow$4(){
- Style$Overflow.call(this, 'AUTO', 3);
-}
-
-defineClass(382, 61, $intern_7, Style$Overflow$4);
-var Lcom_google_gwt_dom_client_Style$Overflow$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Overflow/4', 382, Lcom_google_gwt_dom_client_Style$Overflow_2_classLit, null);
-function $clinit_Style$Position(){
- $clinit_Style$Position = emptyMethod;
- STATIC = new Style$Position$1;
- RELATIVE = new Style$Position$2;
- ABSOLUTE = new Style$Position$3;
- FIXED = new Style$Position$4;
-}
-
-function Style$Position(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_3(){
- $clinit_Style$Position();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Position_2_classLit, 1), $intern_4, 62, 0, [STATIC, RELATIVE, ABSOLUTE, FIXED]);
-}
-
-defineClass(62, 5, $intern_8);
-var ABSOLUTE, FIXED, RELATIVE, STATIC;
-var Lcom_google_gwt_dom_client_Style$Position_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position', 62, Ljava_lang_Enum_2_classLit, values_3);
-function Style$Position$1(){
- Style$Position.call(this, 'STATIC', 0);
-}
-
-defineClass(383, 62, $intern_8, Style$Position$1);
-var Lcom_google_gwt_dom_client_Style$Position$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position/1', 383, Lcom_google_gwt_dom_client_Style$Position_2_classLit, null);
-function Style$Position$2(){
- Style$Position.call(this, 'RELATIVE', 1);
-}
-
-defineClass(384, 62, $intern_8, Style$Position$2);
-var Lcom_google_gwt_dom_client_Style$Position$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position/2', 384, Lcom_google_gwt_dom_client_Style$Position_2_classLit, null);
-function Style$Position$3(){
- Style$Position.call(this, 'ABSOLUTE', 2);
-}
-
-defineClass(385, 62, $intern_8, Style$Position$3);
-var Lcom_google_gwt_dom_client_Style$Position$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position/3', 385, Lcom_google_gwt_dom_client_Style$Position_2_classLit, null);
-function Style$Position$4(){
- Style$Position.call(this, 'FIXED', 3);
-}
-
-defineClass(386, 62, $intern_8, Style$Position$4);
-var Lcom_google_gwt_dom_client_Style$Position$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Position/4', 386, Lcom_google_gwt_dom_client_Style$Position_2_classLit, null);
-function $clinit_Style$TextAlign(){
- $clinit_Style$TextAlign = emptyMethod;
- CENTER = new Style$TextAlign$1;
- JUSTIFY = new Style$TextAlign$2;
- LEFT = new Style$TextAlign$3;
- RIGHT = new Style$TextAlign$4;
-}
-
-function Style$TextAlign(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_4(){
- $clinit_Style$TextAlign();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$TextAlign_2_classLit, 1), $intern_4, 63, 0, [CENTER, JUSTIFY, LEFT, RIGHT]);
-}
-
-defineClass(63, 5, $intern_9);
-var CENTER, JUSTIFY, LEFT, RIGHT;
-var Lcom_google_gwt_dom_client_Style$TextAlign_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign', 63, Ljava_lang_Enum_2_classLit, values_4);
-function Style$TextAlign$1(){
- Style$TextAlign.call(this, 'CENTER', 0);
-}
-
-defineClass(387, 63, $intern_9, Style$TextAlign$1);
-var Lcom_google_gwt_dom_client_Style$TextAlign$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign/1', 387, Lcom_google_gwt_dom_client_Style$TextAlign_2_classLit, null);
-function Style$TextAlign$2(){
- Style$TextAlign.call(this, 'JUSTIFY', 1);
-}
-
-defineClass(388, 63, $intern_9, Style$TextAlign$2);
-var Lcom_google_gwt_dom_client_Style$TextAlign$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign/2', 388, Lcom_google_gwt_dom_client_Style$TextAlign_2_classLit, null);
-function Style$TextAlign$3(){
- Style$TextAlign.call(this, 'LEFT', 2);
-}
-
-defineClass(389, 63, $intern_9, Style$TextAlign$3);
-var Lcom_google_gwt_dom_client_Style$TextAlign$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign/3', 389, Lcom_google_gwt_dom_client_Style$TextAlign_2_classLit, null);
-function Style$TextAlign$4(){
- Style$TextAlign.call(this, 'RIGHT', 3);
-}
-
-defineClass(390, 63, $intern_9, Style$TextAlign$4);
-var Lcom_google_gwt_dom_client_Style$TextAlign$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/TextAlign/4', 390, Lcom_google_gwt_dom_client_Style$TextAlign_2_classLit, null);
-function $clinit_Style$Unit(){
- $clinit_Style$Unit = emptyMethod;
- PX = new Style$Unit$1;
- PCT = new Style$Unit$2;
- EM = new Style$Unit$3;
- EX = new Style$Unit$4;
- PT = new Style$Unit$5;
- PC = new Style$Unit$6;
- IN = new Style$Unit$7;
- CM = new Style$Unit$8;
- MM = new Style$Unit$9;
-}
-
-function Style$Unit(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_5(){
- $clinit_Style$Unit();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Unit_2_classLit, 1), $intern_4, 32, 0, [PX, PCT, EM, EX, PT, PC, IN, CM, MM]);
-}
-
-defineClass(32, 5, $intern_10);
-var CM, EM, EX, IN, MM, PC, PCT, PT, PX;
-var Lcom_google_gwt_dom_client_Style$Unit_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit', 32, Ljava_lang_Enum_2_classLit, values_5);
-function Style$Unit$1(){
- Style$Unit.call(this, 'PX', 0);
-}
-
-defineClass(348, 32, $intern_10, Style$Unit$1);
-var Lcom_google_gwt_dom_client_Style$Unit$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/1', 348, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function Style$Unit$2(){
- Style$Unit.call(this, 'PCT', 1);
-}
-
-defineClass(349, 32, $intern_10, Style$Unit$2);
-var Lcom_google_gwt_dom_client_Style$Unit$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/2', 349, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function Style$Unit$3(){
- Style$Unit.call(this, 'EM', 2);
-}
-
-defineClass(350, 32, $intern_10, Style$Unit$3);
-var Lcom_google_gwt_dom_client_Style$Unit$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/3', 350, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function Style$Unit$4(){
- Style$Unit.call(this, 'EX', 3);
-}
-
-defineClass(351, 32, $intern_10, Style$Unit$4);
-var Lcom_google_gwt_dom_client_Style$Unit$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/4', 351, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function Style$Unit$5(){
- Style$Unit.call(this, 'PT', 4);
-}
-
-defineClass(352, 32, $intern_10, Style$Unit$5);
-var Lcom_google_gwt_dom_client_Style$Unit$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/5', 352, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function Style$Unit$6(){
- Style$Unit.call(this, 'PC', 5);
-}
-
-defineClass(353, 32, $intern_10, Style$Unit$6);
-var Lcom_google_gwt_dom_client_Style$Unit$6_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/6', 353, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function Style$Unit$7(){
- Style$Unit.call(this, 'IN', 6);
-}
-
-defineClass(354, 32, $intern_10, Style$Unit$7);
-var Lcom_google_gwt_dom_client_Style$Unit$7_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/7', 354, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function Style$Unit$8(){
- Style$Unit.call(this, 'CM', 7);
-}
-
-defineClass(355, 32, $intern_10, Style$Unit$8);
-var Lcom_google_gwt_dom_client_Style$Unit$8_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/8', 355, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function Style$Unit$9(){
- Style$Unit.call(this, 'MM', 8);
-}
-
-defineClass(356, 32, $intern_10, Style$Unit$9);
-var Lcom_google_gwt_dom_client_Style$Unit$9_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Unit/9', 356, Lcom_google_gwt_dom_client_Style$Unit_2_classLit, null);
-function $clinit_Style$Visibility(){
- $clinit_Style$Visibility = emptyMethod;
- VISIBLE_0 = new Style$Visibility$1;
- HIDDEN_1 = new Style$Visibility$2;
-}
-
-function Style$Visibility(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_6(){
- $clinit_Style$Visibility();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$Visibility_2_classLit, 1), $intern_4, 92, 0, [VISIBLE_0, HIDDEN_1]);
-}
-
-defineClass(92, 5, $intern_11);
-var HIDDEN_1, VISIBLE_0;
-var Lcom_google_gwt_dom_client_Style$Visibility_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Visibility', 92, Ljava_lang_Enum_2_classLit, values_6);
-function Style$Visibility$1(){
- Style$Visibility.call(this, 'VISIBLE', 0);
-}
-
-defineClass(391, 92, $intern_11, Style$Visibility$1);
-var Lcom_google_gwt_dom_client_Style$Visibility$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Visibility/1', 391, Lcom_google_gwt_dom_client_Style$Visibility_2_classLit, null);
-function Style$Visibility$2(){
- Style$Visibility.call(this, 'HIDDEN', 1);
-}
-
-defineClass(392, 92, $intern_11, Style$Visibility$2);
-var Lcom_google_gwt_dom_client_Style$Visibility$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/Visibility/2', 392, Lcom_google_gwt_dom_client_Style$Visibility_2_classLit, null);
-function $clinit_Style$WhiteSpace(){
- $clinit_Style$WhiteSpace = emptyMethod;
- NORMAL = new Style$WhiteSpace$1;
- NOWRAP = new Style$WhiteSpace$2;
- PRE = new Style$WhiteSpace$3;
- PRE_LINE = new Style$WhiteSpace$4;
- PRE_WRAP = new Style$WhiteSpace$5;
-}
-
-function Style$WhiteSpace(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_7(){
- $clinit_Style$WhiteSpace();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit, 1), $intern_4, 50, 0, [NORMAL, NOWRAP, PRE, PRE_LINE, PRE_WRAP]);
-}
-
-defineClass(50, 5, $intern_12);
-var NORMAL, NOWRAP, PRE, PRE_LINE, PRE_WRAP;
-var Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace', 50, Ljava_lang_Enum_2_classLit, values_7);
-function Style$WhiteSpace$1(){
- Style$WhiteSpace.call(this, 'NORMAL', 0);
-}
-
-defineClass(393, 50, $intern_12, Style$WhiteSpace$1);
-var Lcom_google_gwt_dom_client_Style$WhiteSpace$1_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/1', 393, Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit, null);
-function Style$WhiteSpace$2(){
- Style$WhiteSpace.call(this, 'NOWRAP', 1);
-}
-
-defineClass(394, 50, $intern_12, Style$WhiteSpace$2);
-var Lcom_google_gwt_dom_client_Style$WhiteSpace$2_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/2', 394, Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit, null);
-function Style$WhiteSpace$3(){
- Style$WhiteSpace.call(this, 'PRE', 2);
-}
-
-defineClass(395, 50, $intern_12, Style$WhiteSpace$3);
-var Lcom_google_gwt_dom_client_Style$WhiteSpace$3_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/3', 395, Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit, null);
-function Style$WhiteSpace$4(){
- Style$WhiteSpace.call(this, 'PRE_LINE', 3);
-}
-
-defineClass(396, 50, $intern_12, Style$WhiteSpace$4);
-var Lcom_google_gwt_dom_client_Style$WhiteSpace$4_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/4', 396, Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit, null);
-function Style$WhiteSpace$5(){
- Style$WhiteSpace.call(this, 'PRE_WRAP', 4);
-}
-
-defineClass(397, 50, $intern_12, Style$WhiteSpace$5);
-var Lcom_google_gwt_dom_client_Style$WhiteSpace$5_2_classLit = createForEnum('com.google.gwt.dom.client', 'Style/WhiteSpace/5', 397, Lcom_google_gwt_dom_client_Style$WhiteSpace_2_classLit, null);
-function $getClientX(this$static){
- return toInt32(($clinit_DOMImpl() , this$static).clientX || 0);
-}
-
-function $getClientY(this$static){
- return toInt32(($clinit_DOMImpl() , this$static).clientY || 0);
-}
-
-defineClass(555, 1, {});
-_.toString$ = function(){
- return 'An event type';
-}
-;
-var Lcom_google_web_bindery_event_shared_Event_2_classLit = createForClass('com.google.web.bindery.event.shared', 'Event', 555, Ljava_lang_Object_2_classLit);
-function $overrideSource(this$static, source){
- this$static.source = source;
-}
-
-defineClass(556, 555, {});
-_.getSource = function(){
- return this.source;
-}
-;
-_.revive = function(){
- this.dead = false;
- this.source = null;
-}
-;
-_.dead = false;
-var Lcom_google_gwt_event_shared_GwtEvent_2_classLit = createForClass('com.google.gwt.event.shared', 'GwtEvent', 556, Lcom_google_web_bindery_event_shared_Event_2_classLit);
-function $setNativeEvent(this$static, nativeEvent){
- this$static.nativeEvent = nativeEvent;
-}
-
-function $setRelativeElement(this$static, relativeElem){
- this$static.relativeElem = relativeElem;
-}
-
-function fireNativeEvent(nativeEvent, handlerSource, relativeElem){
- var currentNative, currentRelativeElem, type_0, type$iterator, types;
- if (registered) {
- types = dynamicCast($unsafeGet(registered, ($clinit_DOMImpl() , nativeEvent).type), 30);
- if (types) {
- for (type$iterator = types.iterator_0(); type$iterator.hasNext();) {
- type_0 = dynamicCast(type$iterator.next_0(), 102);
- currentNative = type_0.flyweight.nativeEvent;
- currentRelativeElem = type_0.flyweight.relativeElem;
- $setNativeEvent(type_0.flyweight, nativeEvent);
- $setRelativeElement(type_0.flyweight, relativeElem);
- $fireEvent_0(handlerSource, type_0.flyweight);
- $setNativeEvent(type_0.flyweight, currentNative);
- $setRelativeElement(type_0.flyweight, currentRelativeElem);
- }
- }
- }
-}
-
-defineClass(559, 556, {});
-_.getAssociatedType = function(){
- return this.getAssociatedType_0();
-}
-;
-var registered;
-var Lcom_google_gwt_event_dom_client_DomEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'DomEvent', 559, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-defineClass(561, 559, {});
-var Lcom_google_gwt_event_dom_client_HumanInputEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'HumanInputEvent', 561, Lcom_google_gwt_event_dom_client_DomEvent_2_classLit);
-defineClass(562, 561, {});
-var Lcom_google_gwt_event_dom_client_MouseEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'MouseEvent', 562, Lcom_google_gwt_event_dom_client_HumanInputEvent_2_classLit);
-function $clinit_ClickEvent(){
- $clinit_ClickEvent = emptyMethod;
- TYPE = new DomEvent$Type('click', new ClickEvent);
-}
-
-function $dispatch(handler){
- fire_2(handler.this$01, $getValue(handler.this$01));
-}
-
-function ClickEvent(){
-}
-
-defineClass(509, 562, {}, ClickEvent);
-_.dispatch = function(handler){
- $dispatch(dynamicCast(handler, 585));
-}
-;
-_.getAssociatedType_0 = function(){
- return TYPE;
-}
-;
-var TYPE;
-var Lcom_google_gwt_event_dom_client_ClickEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'ClickEvent', 509, Lcom_google_gwt_event_dom_client_MouseEvent_2_classLit);
-defineClass(216, 1, {});
-_.hashCode$ = function(){
- return this.index_0;
-}
-;
-_.toString$ = function(){
- return 'Event type';
-}
-;
-_.index_0 = 0;
-var nextHashCode = 0;
-var Lcom_google_web_bindery_event_shared_Event$Type_2_classLit = createForClass('com.google.web.bindery.event.shared', 'Event/Type', 216, Ljava_lang_Object_2_classLit);
-function GwtEvent$Type(){
- this.index_0 = ++nextHashCode;
-}
-
-defineClass(35, 216, {}, GwtEvent$Type);
-var Lcom_google_gwt_event_shared_GwtEvent$Type_2_classLit = createForClass('com.google.gwt.event.shared', 'GwtEvent/Type', 35, Lcom_google_web_bindery_event_shared_Event$Type_2_classLit);
-function DomEvent$Type(eventName, flyweight){
- var types;
- GwtEvent$Type.call(this);
- this.flyweight = flyweight;
- !registered && (registered = new PrivateMap);
- types = dynamicCast($unsafeGet(registered, eventName), 30);
- if (!types) {
- types = new ArrayList;
- $unsafePut(registered, eventName, types);
- }
- types.add_1(this);
- this.name_0 = eventName;
-}
-
-defineClass(102, 35, {102:1}, DomEvent$Type);
-var Lcom_google_gwt_event_dom_client_DomEvent$Type_2_classLit = createForClass('com.google.gwt.event.dom.client', 'DomEvent/Type', 102, Lcom_google_gwt_event_shared_GwtEvent$Type_2_classLit);
-defineClass(560, 559, {});
-var Lcom_google_gwt_event_dom_client_KeyEvent_2_classLit = createForClass('com.google.gwt.event.dom.client', 'KeyEvent', 560, Lcom_google_gwt_event_dom_client_DomEvent_2_classLit);
-function $unsafeGet(this$static, key){
- return this$static.map_0[key];
-}
-
-function $unsafePut(this$static, key, value_0){
- this$static.map_0[key] = value_0;
-}
-
-function PrivateMap(){
- this.map_0 = {};
-}
-
-defineClass(451, 1, {}, PrivateMap);
-var Lcom_google_gwt_event_dom_client_PrivateMap_2_classLit = createForClass('com.google.gwt.event.dom.client', 'PrivateMap', 451, Ljava_lang_Object_2_classLit);
-function AttachEvent(){
-}
-
-function fire(source){
- var event_0;
- if (TYPE_0) {
- event_0 = new AttachEvent;
- !!source.handlerManager && $fireEvent(source.handlerManager, event_0);
- }
-}
-
-defineClass(215, 556, {}, AttachEvent);
-_.dispatch = function(handler){
- dynamicCast(handler, 196).onAttachOrDetach_0(this);
-}
-;
-_.getAssociatedType = function(){
- return TYPE_0;
-}
-;
-var TYPE_0;
-var Lcom_google_gwt_event_logical_shared_AttachEvent_2_classLit = createForClass('com.google.gwt.event.logical.shared', 'AttachEvent', 215, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function CloseEvent_0(){
-}
-
-function fire_0(source){
- var event_0;
- if (TYPE_1) {
- event_0 = new CloseEvent_0;
- source.fireEvent(event_0);
- }
-}
-
-defineClass(483, 556, {}, CloseEvent_0);
-_.dispatch = function(handler){
- dynamicCast(handler, 201).onClose(this);
-}
-;
-_.getAssociatedType = function(){
- return TYPE_1;
-}
-;
-var TYPE_1;
-var Lcom_google_gwt_event_logical_shared_CloseEvent_2_classLit = createForClass('com.google.gwt.event.logical.shared', 'CloseEvent', 483, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function ResizeEvent(){
-}
-
-function fire_1(source){
- var event_0;
- if (TYPE_2) {
- event_0 = new ResizeEvent;
- $fireEvent(source, event_0);
- }
-}
-
-defineClass(504, 556, {}, ResizeEvent);
-_.dispatch = function(handler){
- dynamicCast(handler, 590);
- $onResize();
-}
-;
-_.getAssociatedType = function(){
- return TYPE_2;
-}
-;
-var TYPE_2;
-var Lcom_google_gwt_event_logical_shared_ResizeEvent_2_classLit = createForClass('com.google.gwt.event.logical.shared', 'ResizeEvent', 504, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function ValueChangeEvent(value_0){
- this.value_0 = value_0;
-}
-
-function fire_2(source, value_0){
- var event_0;
- if (TYPE_3) {
- event_0 = new ValueChangeEvent(value_0);
- source.fireEvent(event_0);
- }
-}
-
-defineClass(250, 556, {}, ValueChangeEvent);
-_.dispatch = function(handler){
- dynamicCast(handler, 145).onValueChange_0(this);
-}
-;
-_.getAssociatedType = function(){
- return TYPE_3;
-}
-;
-var TYPE_3;
-var Lcom_google_gwt_event_logical_shared_ValueChangeEvent_2_classLit = createForClass('com.google.gwt.event.logical.shared', 'ValueChangeEvent', 250, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function $addHandler(this$static, type_0, handler){
- return new LegacyHandlerWrapper($doAdd(this$static.eventBus, type_0, handler));
-}
-
-function $fireEvent(this$static, event_0){
- var e, oldSource;
- !event_0.dead || event_0.revive();
- oldSource = event_0.getSource();
- $overrideSource(event_0, this$static.source);
- try {
- $doFire(this$static.eventBus, event_0);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 93)) {
- e = $e0;
- throw new UmbrellaException_0(e.causes);
- }
- else
- throw unwrap($e0);
- }
- finally {
- oldSource == null?(event_0.dead = true , event_0.source = null):(event_0.source = oldSource);
- }
-}
-
-function $isEventHandled(this$static, e){
- return $isEventHandled_0(this$static.eventBus, e);
-}
-
-function HandlerManager(source){
- HandlerManager_0.call(this, source, false);
-}
-
-function HandlerManager_0(source, fireInReverseOrder){
- this.eventBus = new HandlerManager$Bus(fireInReverseOrder);
- this.source = source;
-}
-
-defineClass(60, 1, {24:1}, HandlerManager, HandlerManager_0);
-_.fireEvent = function(event_0){
- $fireEvent(this, event_0);
-}
-;
-var Lcom_google_gwt_event_shared_HandlerManager_2_classLit = createForClass('com.google.gwt.event.shared', 'HandlerManager', 60, Ljava_lang_Object_2_classLit);
-defineClass(569, 1, {});
-var Lcom_google_web_bindery_event_shared_EventBus_2_classLit = createForClass('com.google.web.bindery.event.shared', 'EventBus', 569, Ljava_lang_Object_2_classLit);
-function $defer(this$static, command){
- !this$static.deferredDeltas && (this$static.deferredDeltas = new ArrayList);
- $add_6(this$static.deferredDeltas, command);
-}
-
-function $doAdd(this$static, type_0, handler){
- if (!type_0) {
- throw new NullPointerException_0('Cannot add a handler with a null type');
- }
- if (!handler) {
- throw new NullPointerException_0('Cannot add a null handler');
- }
- this$static.firingDepth > 0?$defer(this$static, new SimpleEventBus$2(this$static, type_0, handler)):$doAddNow(this$static, type_0, null, handler);
- return new SimpleEventBus$1(this$static, type_0, handler);
-}
-
-function $doAddNow(this$static, type_0, source, handler){
- var l;
- l = $ensureHandlerList(this$static, type_0, source);
- l.add_1(handler);
-}
-
-function $doFire(this$static, event_0){
- var causes, e, handler, handlers, it;
- if (!event_0) {
- throw new NullPointerException_0('Cannot fire null event');
- }
- try {
- ++this$static.firingDepth;
- handlers = $getDispatchList(this$static, event_0.getAssociatedType());
- causes = null;
- it = this$static.isReverseOrder?handlers.listIterator_0(handlers.size_2()):handlers.listIterator();
- while (this$static.isReverseOrder?it.hasPrevious():it.hasNext()) {
- handler = this$static.isReverseOrder?it.previous():it.next_0();
- try {
- event_0.dispatch(dynamicCast(handler, 22));
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 14)) {
- e = $e0;
- !causes && (causes = new HashSet);
- $add_7(causes, e);
- }
- else
- throw unwrap($e0);
- }
- }
- if (causes) {
- throw new UmbrellaException(causes);
- }
- }
- finally {
- --this$static.firingDepth;
- this$static.firingDepth == 0 && $handleQueuedAddsAndRemoves(this$static);
- }
-}
-
-function $doRemoveNow(this$static, type_0, source, handler){
- var l, removed, sourceMap;
- l = $getHandlerList(this$static, type_0, source);
- removed = l.remove_1(handler);
- removed && l.isEmpty() && (sourceMap = dynamicCast(this$static.map_0.get_1(type_0), 78) , dynamicCast(sourceMap.remove_2(source), 30) , sourceMap.isEmpty() && this$static.map_0.remove_2(type_0) , undefined);
-}
-
-function $ensureHandlerList(this$static, type_0, source){
- var handlers, sourceMap;
- sourceMap = dynamicCast(this$static.map_0.get_1(type_0), 78);
- if (!sourceMap) {
- sourceMap = new HashMap;
- this$static.map_0.put(type_0, sourceMap);
- }
- handlers = dynamicCast(sourceMap.get_1(source), 30);
- if (!handlers) {
- handlers = new ArrayList;
- sourceMap.put(source, handlers);
- }
- return handlers;
-}
-
-function $getDispatchList(this$static, type_0){
- var directHandlers;
- directHandlers = $getHandlerList(this$static, type_0, null);
- return directHandlers;
-}
-
-function $getHandlerList(this$static, type_0, source){
- var handlers, sourceMap;
- sourceMap = dynamicCast(this$static.map_0.get_1(type_0), 78);
- if (!sourceMap) {
- return $clinit_Collections() , $clinit_Collections() , EMPTY_LIST;
- }
- handlers = dynamicCast(sourceMap.get_1(source), 30);
- if (!handlers) {
- return $clinit_Collections() , $clinit_Collections() , EMPTY_LIST;
- }
- return handlers;
-}
-
-function $handleQueuedAddsAndRemoves(this$static){
- var c, c$iterator;
- if (this$static.deferredDeltas) {
- try {
- for (c$iterator = new AbstractList$IteratorImpl(this$static.deferredDeltas); c$iterator.i < c$iterator.this$01_0.size_2();) {
- c = (checkCriticalElement(c$iterator.i < c$iterator.this$01_0.size_2()) , dynamicCast(c$iterator.this$01_0.get_0(c$iterator.last = c$iterator.i++), 537));
- c.execute_1();
- }
- }
- finally {
- this$static.deferredDeltas = null;
- }
- }
-}
-
-function $isEventHandled_0(this$static, eventKey){
- return this$static.map_0.containsKey(eventKey);
-}
-
-defineClass(333, 569, {});
-_.firingDepth = 0;
-_.isReverseOrder = false;
-var Lcom_google_web_bindery_event_shared_SimpleEventBus_2_classLit = createForClass('com.google.web.bindery.event.shared', 'SimpleEventBus', 333, Lcom_google_web_bindery_event_shared_EventBus_2_classLit);
-function $doRemove(this$static, type_0, source, handler){
- this$static.firingDepth > 0?$defer(this$static, new SimpleEventBus$3(this$static, type_0, source, handler)):$doRemoveNow(this$static, type_0, source, handler);
-}
-
-function HandlerManager$Bus(fireInReverseOrder){
- this.map_0 = new HashMap;
- this.isReverseOrder = fireInReverseOrder;
-}
-
-defineClass(334, 333, {}, HandlerManager$Bus);
-var Lcom_google_gwt_event_shared_HandlerManager$Bus_2_classLit = createForClass('com.google.gwt.event.shared', 'HandlerManager/Bus', 334, Lcom_google_web_bindery_event_shared_SimpleEventBus_2_classLit);
-function LegacyHandlerWrapper(real){
- this.real = real;
-}
-
-defineClass(448, 1, {}, LegacyHandlerWrapper);
-var Lcom_google_gwt_event_shared_LegacyHandlerWrapper_2_classLit = createForClass('com.google.gwt.event.shared', 'LegacyHandlerWrapper', 448, Ljava_lang_Object_2_classLit);
-function UmbrellaException(causes){
- RuntimeException_1.call(this, makeMessage(causes), makeCause(causes));
- this.causes = causes;
-}
-
-function makeCause(causes){
- var iterator;
- iterator = causes.iterator_0();
- if (!iterator.hasNext()) {
- return null;
- }
- return dynamicCast(iterator.next_0(), 14);
-}
-
-function makeMessage(causes){
- var b, count, first, t, t$iterator;
- count = causes.size_2();
- if (count == 0) {
- return null;
- }
- b = new StringBuilder_1(count == 1?'Exception caught: ':count + ' exceptions caught: ');
- first = true;
- for (t$iterator = causes.iterator_0(); t$iterator.hasNext();) {
- t = dynamicCast(t$iterator.next_0(), 14);
- first?(first = false):(b.string += '; ' , b);
- $append_0(b, t.getMessage());
- }
- return b.string;
-}
-
-defineClass(93, 11, $intern_13, UmbrellaException);
-var Lcom_google_web_bindery_event_shared_UmbrellaException_2_classLit = createForClass('com.google.web.bindery.event.shared', 'UmbrellaException', 93, Ljava_lang_RuntimeException_2_classLit);
-function UmbrellaException_0(causes){
- UmbrellaException.call(this, causes);
-}
-
-defineClass(177, 93, $intern_13, UmbrellaException_0);
-var Lcom_google_gwt_event_shared_UmbrellaException_2_classLit = createForClass('com.google.gwt.event.shared', 'UmbrellaException', 177, Lcom_google_web_bindery_event_shared_UmbrellaException_2_classLit);
-function $cancel_1(this$static){
- var xhr;
- if (!this$static.xmlHttpRequest) {
- return;
- }
- $cancel_0(this$static.timer);
- xhr = this$static.xmlHttpRequest;
- this$static.xmlHttpRequest = null;
- $clearOnReadyStateChange(xhr);
- xhr.abort();
-}
-
-function $fireOnTimeout(this$static){
- if (!this$static.xmlHttpRequest) {
- return;
- }
- $cancel_1(this$static);
- $onError(this$static.callback, this$static, new RequestTimeoutException(this$static.timeoutMillis));
-}
-
-function Request(xmlHttpRequest, timeoutMillis, callback){
- this.timer = new Request$1(this);
- if (!xmlHttpRequest) {
- throw new NullPointerException;
- }
- if (!callback) {
- throw new NullPointerException;
- }
- if (timeoutMillis < 0) {
- throw new IllegalArgumentException;
- }
- this.callback = callback;
- this.timeoutMillis = timeoutMillis;
- this.xmlHttpRequest = xmlHttpRequest;
- timeoutMillis > 0 && $schedule(this.timer, timeoutMillis);
-}
-
-defineClass(136, 1, {136:1}, Request);
-_.fireOnResponseReceived = function(callback){
- var response, xhr;
- if (!this.xmlHttpRequest) {
- return;
- }
- $cancel_0(this.timer);
- xhr = this.xmlHttpRequest;
- this.xmlHttpRequest = null;
- response = new ResponseImpl(xhr);
- $onResponseReceived(callback, this, response);
-}
-;
-_.timeoutMillis = 0;
-var Lcom_google_gwt_http_client_Request_2_classLit = createForClass('com.google.gwt.http.client', 'Request', 136, Ljava_lang_Object_2_classLit);
-function Request$1(this$0){
- this.this$01 = this$0;
- Timer.call(this);
-}
-
-defineClass(510, 45, {}, Request$1);
-_.run = function(){
- $fireOnTimeout(this.this$01);
-}
-;
-var Lcom_google_gwt_http_client_Request$1_2_classLit = createForClass('com.google.gwt.http.client', 'Request/1', 510, Lcom_google_gwt_user_client_Timer_2_classLit);
-function RequestException(message){
- Exception.call(this, message);
-}
-
-defineClass(116, 12, $intern_2, RequestException);
-var Lcom_google_gwt_http_client_RequestException_2_classLit = createForClass('com.google.gwt.http.client', 'RequestException', 116, Ljava_lang_Exception_2_classLit);
-function RequestPermissionException(url_0){
- RequestException.call(this, 'The URL ' + url_0 + ' is invalid or violates the same-origin security restriction');
-}
-
-defineClass(524, 116, $intern_2, RequestPermissionException);
-var Lcom_google_gwt_http_client_RequestPermissionException_2_classLit = createForClass('com.google.gwt.http.client', 'RequestPermissionException', 524, Lcom_google_gwt_http_client_RequestException_2_classLit);
-function RequestTimeoutException(timeoutMillis){
- RequestException.call(this, 'A request timeout has expired after ' + timeoutMillis + ' ms');
-}
-
-defineClass(529, 116, $intern_2, RequestTimeoutException);
-var Lcom_google_gwt_http_client_RequestTimeoutException_2_classLit = createForClass('com.google.gwt.http.client', 'RequestTimeoutException', 529, Lcom_google_gwt_http_client_RequestException_2_classLit);
-defineClass(144, 1, {144:1});
-var Lcom_google_gwt_http_client_Response_2_classLit = createForClass('com.google.gwt.http.client', 'Response', 144, Ljava_lang_Object_2_classLit);
-function ResponseImpl(xmlHttpRequest){
- this.xmlHttpRequest = xmlHttpRequest;
-}
-
-defineClass(511, 144, {144:1}, ResponseImpl);
-var Lcom_google_gwt_http_client_ResponseImpl_2_classLit = createForClass('com.google.gwt.http.client', 'ResponseImpl', 511, Lcom_google_gwt_http_client_Response_2_classLit);
-function throwIfNull(value_0){
- if (null == value_0) {
- throw new NullPointerException_0('encodedURLComponent cannot be null');
- }
-}
-
-function getDirectionOnElement(elem){
- var dirPropertyValue;
- dirPropertyValue = $getPropertyString(elem, 'dir');
- if ($equalsIgnoreCase('rtl', dirPropertyValue)) {
- return $clinit_HasDirection$Direction() , RTL;
- }
- else if ($equalsIgnoreCase('ltr', dirPropertyValue)) {
- return $clinit_HasDirection$Direction() , LTR;
- }
- return $clinit_HasDirection$Direction() , DEFAULT;
-}
-
-function setDirectionOnElement(elem, direction){
- switch (direction.ordinal) {
- case 0:
- {
- $setPropertyString(elem, 'dir', 'rtl');
- break;
- }
-
- case 1:
- {
- $setPropertyString(elem, 'dir', 'ltr');
- break;
- }
-
- case 2:
- {
- getDirectionOnElement(elem) != ($clinit_HasDirection$Direction() , DEFAULT) && $setPropertyString(elem, 'dir', '');
- break;
- }
-
- }
-}
-
-function $clinit_HasDirection$Direction(){
- $clinit_HasDirection$Direction = emptyMethod;
- RTL = new HasDirection$Direction('RTL', 0);
- LTR = new HasDirection$Direction('LTR', 1);
- DEFAULT = new HasDirection$Direction('DEFAULT', 2);
-}
-
-function HasDirection$Direction(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_8(){
- $clinit_HasDirection$Direction();
- return initValues(getClassLiteralForArray(Lcom_google_gwt_i18n_client_HasDirection$Direction_2_classLit, 1), $intern_4, 107, 0, [RTL, LTR, DEFAULT]);
-}
-
-defineClass(107, 5, {107:1, 3:1, 6:1, 5:1}, HasDirection$Direction);
-var DEFAULT, LTR, RTL;
-var Lcom_google_gwt_i18n_client_HasDirection$Direction_2_classLit = createForEnum('com.google.gwt.i18n.client', 'HasDirection/Direction', 107, Ljava_lang_Enum_2_classLit, values_8);
-function $clinit_LocaleInfo(){
- $clinit_LocaleInfo = emptyMethod;
- instance_1 = new LocaleInfo;
-}
-
-function $getNumberConstants(this$static){
- !this$static.numberConstants && (this$static.numberConstants = new NumberConstantsImpl_);
- return this$static.numberConstants;
-}
-
-function LocaleInfo(){
-}
-
-defineClass(338, 1, {}, LocaleInfo);
-var instance_1;
-var Lcom_google_gwt_i18n_client_LocaleInfo_2_classLit = createForClass('com.google.gwt.i18n.client', 'LocaleInfo', 338, Ljava_lang_Object_2_classLit);
-function $clinit_NumberFormat(){
- $clinit_NumberFormat = emptyMethod;
- $getNumberConstants(($clinit_LocaleInfo() , $clinit_LocaleInfo() , instance_1));
-}
-
-function $addExponent(this$static, digits){
- var exponentDigits, i_0;
- digits.string += 'E';
- if (this$static.exponent < 0) {
- this$static.exponent = -this$static.exponent;
- digits.string += '-';
- }
- exponentDigits = '' + this$static.exponent;
- for (i_0 = exponentDigits.length; i_0 < this$static.minExponentDigits; ++i_0) {
- digits.string += '0';
- }
- digits.string += exponentDigits;
-}
-
-function $addZeroAndDecimal(this$static, digits){
- if (this$static.digitsLength == 0) {
- digits.string = digits.string.substr(0, 0) + '0' + $substring(digits.string, 0);
- ++this$static.decimalPosition;
- ++this$static.digitsLength;
- }
- if (this$static.decimalPosition < this$static.digitsLength || this$static.decimalSeparatorAlwaysShown) {
- $insert_0(digits, this$static.decimalPosition, '.');
- ++this$static.digitsLength;
- }
-}
-
-function $adjustFractionDigits(this$static, digits){
- var requiredDigits, toRemove;
- requiredDigits = this$static.decimalPosition + this$static.minimumFractionDigits;
- if (this$static.digitsLength < requiredDigits) {
- while (this$static.digitsLength < requiredDigits) {
- digits.string += '0';
- ++this$static.digitsLength;
- }
- }
- else {
- toRemove = this$static.decimalPosition + this$static.maximumFractionDigits;
- toRemove > this$static.digitsLength && (toRemove = this$static.digitsLength);
- while (toRemove > requiredDigits && $charAt_0(digits.string, toRemove - 1) == 48) {
- --toRemove;
- }
- if (toRemove < this$static.digitsLength) {
- $delete_0(digits, toRemove, this$static.digitsLength);
- this$static.digitsLength = toRemove;
- }
- }
-}
-
-function $computeExponent(this$static, digits){
- var remainder, strip;
- strip = 0;
- while (strip < this$static.digitsLength - 1 && $charAt_0(digits.string, strip) == 48) {
- ++strip;
- }
- if (strip > 0) {
- digits.string = digits.string.substr(0, 0) + '' + $substring(digits.string, strip);
- this$static.digitsLength -= strip;
- this$static.exponent -= strip;
- }
- if (this$static.maximumIntegerDigits > this$static.minimumIntegerDigits && this$static.maximumIntegerDigits > 0) {
- this$static.exponent += this$static.decimalPosition - 1;
- remainder = this$static.exponent % this$static.maximumIntegerDigits;
- remainder < 0 && (remainder += this$static.maximumIntegerDigits);
- this$static.decimalPosition = remainder + 1;
- this$static.exponent -= remainder;
- }
- else {
- this$static.exponent += this$static.decimalPosition - this$static.minimumIntegerDigits;
- this$static.decimalPosition = this$static.minimumIntegerDigits;
- }
- if (this$static.digitsLength == 1 && digits.string.charCodeAt(0) == 48) {
- this$static.exponent = 0;
- this$static.decimalPosition = this$static.minimumIntegerDigits;
- }
-}
-
-function $format(this$static, number){
- var buf, isNegative, preRound, scale, useExponent, currentGroupingSize;
- if (isNaN(number)) {
- return 'NaN';
- }
- isNegative = number < 0 || number == 0 && 1 / number < 0;
- isNegative && (number = -number);
- buf = new StringBuilder;
- if (isInfinite(number)) {
- $append_0(buf, isNegative?this$static.negativePrefix:this$static.positivePrefix);
- buf.string += '\u221E';
- $append_0(buf, isNegative?this$static.negativeSuffix:this$static.positiveSuffix);
- return buf.string;
- }
- number *= this$static.multiplier;
- scale = toScaledString(buf, number);
- preRound = buf.string.length + scale + this$static.maximumFractionDigits + 3;
- if (preRound > 0 && preRound < buf.string.length && $charAt_0(buf.string, preRound) == 57) {
- $propagateCarry(this$static, buf, preRound - 1);
- scale += buf.string.length - preRound;
- $delete_0(buf, preRound, buf.string.length);
- }
- this$static.exponent = 0;
- this$static.digitsLength = buf.string.length;
- this$static.decimalPosition = this$static.digitsLength + scale;
- useExponent = this$static.useExponentialNotation;
- currentGroupingSize = this$static.groupingSize;
- this$static.decimalPosition > 1024 && (useExponent = true);
- useExponent && $computeExponent(this$static, buf);
- $processLeadingZeros(this$static, buf);
- $roundValue(this$static, buf);
- $insertGroupingSeparators(this$static, buf, currentGroupingSize);
- $adjustFractionDigits(this$static, buf);
- $addZeroAndDecimal(this$static, buf);
- useExponent && $addExponent(this$static, buf);
- $insert_0(buf, 0, isNegative?this$static.negativePrefix:this$static.positivePrefix);
- $append_0(buf, isNegative?this$static.negativeSuffix:this$static.positiveSuffix);
- return buf.string;
-}
-
-function $insertGroupingSeparators(this$static, digits, g){
- var i_0;
- if (g > 0) {
- for (i_0 = g; i_0 < this$static.decimalPosition; i_0 += g + 1) {
- $insert_0(digits, this$static.decimalPosition - i_0, ',');
- ++this$static.decimalPosition;
- ++this$static.digitsLength;
- }
- }
-}
-
-function $parseAffix(this$static, pattern, start_0, affix, inNegativePattern){
- var ch_0, inQuote, len, pos;
- $delete_0(affix, 0, affix.string.length);
- inQuote = false;
- len = pattern.length;
- for (pos = start_0; pos < len; ++pos) {
- ch_0 = pattern.charCodeAt(pos);
- if (ch_0 == 39) {
- if (pos + 1 < len && pattern.charCodeAt(pos + 1) == 39) {
- ++pos;
- affix.string += "'";
- }
- else {
- inQuote = !inQuote;
- }
- continue;
- }
- if (inQuote) {
- affix.string += charToString(ch_0);
- }
- else {
- switch (ch_0) {
- case 35:
- case 48:
- case 44:
- case 46:
- case 59:
- return pos - start_0;
- case 164:
- this$static.isCurrencyFormat = true;
- if (pos + 1 < len && pattern.charCodeAt(pos + 1) == 164) {
- ++pos;
- if (pos < len - 2 && pattern.charCodeAt(pos + 1) == 164 && pattern.charCodeAt(pos + 2) == 164) {
- pos += 2;
- $append_0(affix, $getSimpleCurrencySymbol(this$static.currencyData));
- }
- else {
- $append_0(affix, this$static.currencyData[0]);
- }
- }
- else {
- $append_0(affix, this$static.currencyData[1]);
- }
-
- break;
- case 37:
- if (!inNegativePattern) {
- if (this$static.multiplier != 1) {
- throw new IllegalArgumentException_0('Too many percent/per mille characters in pattern "' + pattern + '"');
- }
- this$static.multiplier = 100;
- }
-
- affix.string += '%';
- break;
- case 8240:
- if (!inNegativePattern) {
- if (this$static.multiplier != 1) {
- throw new IllegalArgumentException_0('Too many percent/per mille characters in pattern "' + pattern + '"');
- }
- this$static.multiplier = 1000;
- }
-
- affix.string += '\u2030';
- break;
- case 45:
- affix.string += '-';
- break;
- default:affix.string += charToString(ch_0);
- }
- }
- }
- return len - start_0;
-}
-
-function $parsePattern(this$static, pattern){
- var affix, pos;
- pos = 0;
- affix = new StringBuilder;
- pos += $parseAffix(this$static, pattern, 0, affix, false);
- this$static.positivePrefix = affix.string;
- pos += $parseTrunk(this$static, pattern, pos, false);
- pos += $parseAffix(this$static, pattern, pos, affix, false);
- this$static.positiveSuffix = affix.string;
- if (pos < pattern.length && pattern.charCodeAt(pos) == 59) {
- ++pos;
- pos += $parseAffix(this$static, pattern, pos, affix, true);
- this$static.negativePrefix = affix.string;
- pos += $parseTrunk(this$static, pattern, pos, true);
- pos += $parseAffix(this$static, pattern, pos, affix, true);
- this$static.negativeSuffix = affix.string;
- }
- else {
- this$static.negativePrefix = '-' + this$static.positivePrefix;
- this$static.negativeSuffix = this$static.positiveSuffix;
- }
-}
-
-function $parseTrunk(this$static, pattern, start_0, ignorePattern){
- var ch_0, decimalPos, digitLeftCount, digitRightCount, effectiveDecimalPos, groupingCount, len, loop, n, pos, totalDigits, zeroDigitCount;
- decimalPos = -1;
- digitLeftCount = 0;
- zeroDigitCount = 0;
- digitRightCount = 0;
- groupingCount = -1;
- len = pattern.length;
- pos = start_0;
- loop = true;
- for (; pos < len && loop; ++pos) {
- ch_0 = pattern.charCodeAt(pos);
- switch (ch_0) {
- case 35:
- zeroDigitCount > 0?++digitRightCount:++digitLeftCount;
- groupingCount >= 0 && decimalPos < 0 && ++groupingCount;
- break;
- case 48:
- if (digitRightCount > 0) {
- throw new IllegalArgumentException_0("Unexpected '0' in pattern \"" + pattern + '"');
- }
-
- ++zeroDigitCount;
- groupingCount >= 0 && decimalPos < 0 && ++groupingCount;
- break;
- case 44:
- groupingCount = 0;
- break;
- case 46:
- if (decimalPos >= 0) {
- throw new IllegalArgumentException_0('Multiple decimal separators in pattern "' + pattern + '"');
- }
-
- decimalPos = digitLeftCount + zeroDigitCount + digitRightCount;
- break;
- case 69:
- if (!ignorePattern) {
- if (this$static.useExponentialNotation) {
- throw new IllegalArgumentException_0('Multiple exponential symbols in pattern "' + pattern + '"');
- }
- this$static.useExponentialNotation = true;
- this$static.minExponentDigits = 0;
- }
-
- while (pos + 1 < len && pattern.charCodeAt(pos + 1) == 48) {
- ++pos;
- ignorePattern || ++this$static.minExponentDigits;
- }
-
- if (!ignorePattern && digitLeftCount + zeroDigitCount < 1 || this$static.minExponentDigits < 1) {
- throw new IllegalArgumentException_0('Malformed exponential pattern "' + pattern + '"');
- }
-
- loop = false;
- break;
- default:--pos;
- loop = false;
- }
- }
- if (zeroDigitCount == 0 && digitLeftCount > 0 && decimalPos >= 0) {
- n = decimalPos;
- decimalPos == 0 && ++n;
- digitRightCount = digitLeftCount - n;
- digitLeftCount = n - 1;
- zeroDigitCount = 1;
- }
- if (decimalPos < 0 && digitRightCount > 0 || decimalPos >= 0 && (decimalPos < digitLeftCount || decimalPos > digitLeftCount + zeroDigitCount) || groupingCount == 0) {
- throw new IllegalArgumentException_0('Malformed pattern "' + pattern + '"');
- }
- if (ignorePattern) {
- return pos - start_0;
- }
- totalDigits = digitLeftCount + zeroDigitCount + digitRightCount;
- this$static.maximumFractionDigits = decimalPos >= 0?totalDigits - decimalPos:0;
- if (decimalPos >= 0) {
- this$static.minimumFractionDigits = digitLeftCount + zeroDigitCount - decimalPos;
- this$static.minimumFractionDigits < 0 && (this$static.minimumFractionDigits = 0);
- }
- effectiveDecimalPos = decimalPos >= 0?decimalPos:totalDigits;
- this$static.minimumIntegerDigits = effectiveDecimalPos - digitLeftCount;
- if (this$static.useExponentialNotation) {
- this$static.maximumIntegerDigits = digitLeftCount + this$static.minimumIntegerDigits;
- this$static.maximumFractionDigits == 0 && this$static.minimumIntegerDigits == 0 && (this$static.minimumIntegerDigits = 1);
- }
- this$static.groupingSize = groupingCount > 0?groupingCount:0;
- this$static.decimalSeparatorAlwaysShown = decimalPos == 0 || decimalPos == totalDigits;
- return pos - start_0;
-}
-
-function $processLeadingZeros(this$static, digits){
- var i_0, prefix, strip;
- if (this$static.decimalPosition > this$static.digitsLength) {
- while (this$static.digitsLength < this$static.decimalPosition) {
- digits.string += '0';
- ++this$static.digitsLength;
- }
- }
- if (!this$static.useExponentialNotation) {
- if (this$static.decimalPosition < this$static.minimumIntegerDigits) {
- prefix = new StringBuilder;
- while (this$static.decimalPosition < this$static.minimumIntegerDigits) {
- prefix.string += '0';
- ++this$static.decimalPosition;
- ++this$static.digitsLength;
- }
- $insert_0(digits, 0, prefix.toString$());
- }
- else if (this$static.decimalPosition > this$static.minimumIntegerDigits) {
- strip = this$static.decimalPosition - this$static.minimumIntegerDigits;
- for (i_0 = 0; i_0 < strip; ++i_0) {
- if ($charAt_0(digits.string, i_0) != 48) {
- strip = i_0;
- break;
- }
- }
- if (strip > 0) {
- digits.string = digits.string.substr(0, 0) + '' + $substring(digits.string, strip);
- this$static.digitsLength -= strip;
- this$static.decimalPosition -= strip;
- }
- }
- }
-}
-
-function $propagateCarry(this$static, digits, i_0){
- var carry, digit;
- carry = true;
- while (carry && i_0 >= 0) {
- digit = $charAt_0(digits.string, i_0);
- if (digit == 57) {
- $setCharAt(digits, i_0--, 48);
- }
- else {
- $setCharAt(digits, i_0, digit + 1 & 65535);
- carry = false;
- }
- }
- if (carry) {
- digits.string = digits.string.substr(0, 0) + '1' + $substring(digits.string, 0);
- ++this$static.decimalPosition;
- ++this$static.digitsLength;
- }
-}
-
-function $roundValue(this$static, digits){
- var i_0;
- if (this$static.digitsLength > this$static.decimalPosition + this$static.maximumFractionDigits && $charAt(digits, this$static.decimalPosition + this$static.maximumFractionDigits) >= 53) {
- i_0 = this$static.decimalPosition + this$static.maximumFractionDigits - 1;
- $propagateCarry(this$static, digits, i_0);
- }
-}
-
-function NumberFormat(cdata, userSuppliedPattern){
- if (!cdata) {
- throw new IllegalArgumentException_0('Unknown currency code');
- }
- this.pattern = '\xA4#,##0.00';
- this.currencyData = cdata;
- $parsePattern(this, this.pattern);
- if (!userSuppliedPattern && this.isCurrencyFormat) {
- this.minimumFractionDigits = this.currencyData[2] & 7;
- this.maximumFractionDigits = this.minimumFractionDigits;
- }
-}
-
-function NumberFormat_0(cdata){
- $clinit_NumberFormat();
- NumberFormat.call(this, cdata, false);
-}
-
-function toScaledString(buf, val){
- var dot, expDigits, expIdx, scale, startLen;
- startLen = buf.string.length;
- $append_0(buf, val.toPrecision(20));
- scale = 0;
- expIdx = $indexOf_1(buf.string, 'e', startLen);
- expIdx < 0 && (expIdx = $indexOf_1(buf.string, 'E', startLen));
- if (expIdx >= 0) {
- expDigits = expIdx + 1;
- expDigits < buf.string.length && $charAt_0(buf.string, expDigits) == 43 && ++expDigits;
- expDigits < buf.string.length && (scale = __parseAndValidateInt($substring(buf.string, expDigits)));
- $delete_0(buf, expIdx, buf.string.length);
- }
- dot = $indexOf_1(buf.string, '.', startLen);
- if (dot >= 0) {
- buf.string = __substr(buf.string, 0, dot) + '' + $substring(buf.string, dot + 1);
- scale -= buf.string.length - dot;
- }
- return scale;
-}
-
-defineClass(160, 1, {}, NumberFormat_0);
-_.decimalPosition = 0;
-_.decimalSeparatorAlwaysShown = false;
-_.digitsLength = 0;
-_.exponent = 0;
-_.groupingSize = 3;
-_.isCurrencyFormat = false;
-_.maximumFractionDigits = 3;
-_.maximumIntegerDigits = 40;
-_.minExponentDigits = 0;
-_.minimumFractionDigits = 0;
-_.minimumIntegerDigits = 1;
-_.multiplier = 1;
-_.negativePrefix = '-';
-_.negativeSuffix = '';
-_.positivePrefix = '';
-_.positiveSuffix = '';
-_.useExponentialNotation = false;
-var cachedCurrencyFormat;
-var Lcom_google_gwt_i18n_client_NumberFormat_2_classLit = createForClass('com.google.gwt.i18n.client', 'NumberFormat', 160, Ljava_lang_Object_2_classLit);
-function NumberConstantsImpl_(){
-}
-
-defineClass(467, 1, {}, NumberConstantsImpl_);
-var Lcom_google_gwt_i18n_client_constants_NumberConstantsImpl_1_2_classLit = createForClass('com.google.gwt.i18n.client.constants', 'NumberConstantsImpl_', 467, Ljava_lang_Object_2_classLit);
-function $getSimpleCurrencySymbol(this$static){
- return this$static[4] || this$static[1];
-}
-
-function $clinit_JsonpRequest(){
- $clinit_JsonpRequest = emptyMethod;
- CALLBACKS = getOrCreateCallbacksObject();
-}
-
-function $onFailure(this$static, ex){
- $cancel_0(this$static.timer);
- try {
- !!this$static.callback && this$static.callback.onFailure_2(ex);
- }
- finally {
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), new JsonpRequest$2(this$static));
- }
-}
-
-function $registerCallbacks(this$static, callbacks, canHaveMultipleRequestsForId){
- var self_0 = this$static;
- var callback = new Object;
- callback.onSuccess = $entry(function(data_0){
- typeof data_0 == 'boolean'?(data_0 = new Boolean_0(data_0)):typeof data_0 == 'number' && (self_0.expectInteger?(data_0 = new Integer(data_0)):(data_0 = new Double(data_0)));
- self_0.onSuccess_1(data_0);
- }
- );
- this$static.failureCallbackParam && (callback.onFailure = $entry(function(message){
- self_0.onFailure_1(message);
- }
- ));
- if (canHaveMultipleRequestsForId) {
- var callbackWrapper = callbacks[this$static.callbackId];
- if (!callbackWrapper) {
- callbackWrapper = new Object;
- callbackWrapper.callbackList = new Array;
- callbackWrapper.onSuccess = function(data_0){
- while (callbackWrapper.callbackList.length > 0) {
- callbackWrapper.callbackList.shift().onSuccess(data_0);
- }
- }
- ;
- callbackWrapper.onFailure = function(data_0){
- while (callbackWrapper.callbackList.length > 0) {
- callbackWrapper.callbackList.shift().onFailure(data_0);
- }
- }
- ;
- callbacks[this$static.callbackId] = callbackWrapper;
- }
- callbackWrapper.callbackList.push(callback);
- }
- else {
- callbacks[this$static.callbackId] = callback;
- }
-}
-
-function $unregisterCallbacks(this$static, callbacks){
- delete callbacks[this$static.callbackId];
-}
-
-function JsonpRequest(callback, timeout, expectInteger, callbackParam){
- var name_0, ctr;
- $clinit_JsonpRequest();
- this.callbackId = 'P' + (name_0 = '__gwt_jsonp__' , ctr = '__gwt_jsonp_counter__' , $wnd[name_0][ctr]++);
- this.callback = callback;
- this.timeout = timeout;
- this.expectInteger = expectInteger;
- this.callbackParam = callbackParam;
- this.failureCallbackParam = null;
- this.canHaveMultipleRequestsForSameId = false;
-}
-
-function getOrCreateCallbacksObject(){
- var name_0 = '__gwt_jsonp__';
- if (!$wnd[name_0]) {
- $wnd[name_0] = new Object;
- $wnd[name_0]['__gwt_jsonp_counter__'] = 0;
- }
- return $wnd[name_0];
-}
-
-defineClass(526, 1, {}, JsonpRequest);
-_.onFailure_1 = function(message){
- $onFailure(this, new Exception(message));
-}
-;
-_.onSuccess_1 = function(data_0){
- $cancel_0(this.timer);
- try {
- !!this.callback && this.callback.onSuccess_0(data_0);
- }
- finally {
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), new JsonpRequest$2(this));
- }
-}
-;
-_.toString$ = function(){
- return 'JsonpRequest(id=' + this.callbackId + ')';
-}
-;
-_.canHaveMultipleRequestsForSameId = false;
-_.expectInteger = false;
-_.timeout = 0;
-var CALLBACKS;
-var Lcom_google_gwt_jsonp_client_JsonpRequest_2_classLit = createForClass('com.google.gwt.jsonp.client', 'JsonpRequest', 526, Ljava_lang_Object_2_classLit);
-function JsonpRequest$1(this$0, val$baseUri){
- this.this$01 = this$0;
- this.val$baseUri2 = val$baseUri;
- Timer.call(this);
-}
-
-defineClass(527, 45, {}, JsonpRequest$1);
-_.run = function(){
- $onFailure(this.this$01, new TimeoutException('Timeout while calling ' + this.val$baseUri2));
-}
-;
-var Lcom_google_gwt_jsonp_client_JsonpRequest$1_2_classLit = createForClass('com.google.gwt.jsonp.client', 'JsonpRequest/1', 527, Lcom_google_gwt_user_client_Timer_2_classLit);
-function JsonpRequest$2(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(195, 1, {}, JsonpRequest$2);
-_.execute_1 = function(){
- var script;
- this.this$01.canHaveMultipleRequestsForSameId || $unregisterCallbacks(this.this$01, ($clinit_JsonpRequest() , CALLBACKS));
- script = $getElementById($doc, this.this$01.callbackId);
- !!script && $removeChild(($clinit_JsonpRequest() , $doc.getElementsByTagName('head')[0]), script);
-}
-;
-var Lcom_google_gwt_jsonp_client_JsonpRequest$2_2_classLit = createForClass('com.google.gwt.jsonp.client', 'JsonpRequest/2', 195, Ljava_lang_Object_2_classLit);
-function JsonpRequestBuilder(){
-}
-
-defineClass(525, 1, {}, JsonpRequestBuilder);
-_.send = function(url_0, callback, expectInteger){
- var request, uri_0, prefix, script;
- request = new JsonpRequest(callback, this.timeout, expectInteger, this.callbackParam);
- $registerCallbacks(request, CALLBACKS, request.canHaveMultipleRequestsForSameId);
- uri_0 = new StringBuilder_1(url_0);
- $append_0(uri_0, url_0.indexOf('?') != -1?'&':'?');
- prefix = '__gwt_jsonp__.' + request.callbackId;
- $append_0($append_0($append_0($append_0(uri_0, request.callbackParam), '='), prefix), '.onSuccess');
- script = $createScriptElement($doc);
- script.type = 'text/javascript';
- $setId(script, request.callbackId);
- $setSrc(script, uri_0.string);
- request.timer = new JsonpRequest$1(request, url_0);
- $schedule(request.timer, request.timeout);
- $appendChild($doc.getElementsByTagName('head')[0], script);
- return request;
-}
-;
-_.callbackParam = 'callback';
-_.timeout = 10000;
-var Lcom_google_gwt_jsonp_client_JsonpRequestBuilder_2_classLit = createForClass('com.google.gwt.jsonp.client', 'JsonpRequestBuilder', 525, Ljava_lang_Object_2_classLit);
-function TimeoutException(s){
- Exception.call(this, s);
-}
-
-defineClass(528, 12, $intern_2, TimeoutException);
-var Lcom_google_gwt_jsonp_client_TimeoutException_2_classLit = createForClass('com.google.gwt.jsonp.client', 'TimeoutException', 528, Ljava_lang_Exception_2_classLit);
-function canSet(array, value_0){
- switch (array.__elementTypeCategory$) {
- case 4:
- return isJavaString(value_0);
- case 0:
- return canCast(value_0, array.__elementTypeId$);
- case 2:
- return !isJavaString(value_0) && !hasTypeMarker(value_0);
- case 1:
- return !isJavaString(value_0) && !hasTypeMarker(value_0) || canCast(value_0, array.__elementTypeId$);
- default:return true;
- }
-}
-
-function clone(array){
- return cloneSubrange(array, array.length);
-}
-
-function cloneSubrange(array, toIndex){
- var result;
- result = array.slice(0, toIndex);
- initValues(getClass__Ljava_lang_Class___devirtual$(array), array.castableTypeMap$, array.__elementTypeId$, array.__elementTypeCategory$, result);
- return result;
-}
-
-function createFrom(array, length_0){
- var result;
- result = initializeArrayElementsWithDefaults(0, length_0);
- initValues(getClass__Ljava_lang_Class___devirtual$(array), array.castableTypeMap$, array.__elementTypeId$, array.__elementTypeCategory$, result);
- return result;
-}
-
-function getClassLiteralForArray(clazz, dimensions){
- return getClassLiteralForArray_0(clazz, dimensions);
-}
-
-function initDim(leafClassLiteral, castableTypeMap, elementTypeId, length_0, elementTypeCategory, dimensions){
- var result;
- result = initializeArrayElementsWithDefaults(elementTypeCategory, length_0);
- initValues(getClassLiteralForArray(leafClassLiteral, dimensions), castableTypeMap, elementTypeId, elementTypeCategory, result);
- return result;
-}
-
-function initValues(arrayClass, castableTypeMap, elementTypeId, elementTypeCategory, array){
- array.___clazz$ = arrayClass;
- array.castableTypeMap$ = castableTypeMap;
- array.typeMarker$ = typeMarkerFn;
- array.__elementTypeId$ = elementTypeId;
- array.__elementTypeCategory$ = elementTypeCategory;
- return array;
-}
-
-function initializeArrayElementsWithDefaults(elementTypeCategory, length_0){
- var array = new Array(length_0);
- var initValue;
- switch (elementTypeCategory) {
- case 6:
- initValue = {l:0, m:0, h:0};
- break;
- case 7:
- initValue = 0;
- break;
- case 8:
- initValue = false;
- break;
- default:return array;
- }
- for (var i_0 = 0; i_0 < length_0; ++i_0) {
- array[i_0] = initValue;
- }
- return array;
-}
-
-function nativeArraySplice(src_0, srcOfs, dest, destOfs, len, overwrite){
- if (src_0 === dest) {
- src_0 = src_0.slice(srcOfs, srcOfs + len);
- srcOfs = 0;
- }
- for (var batchStart = srcOfs, end = srcOfs + len; batchStart < end;) {
- var batchEnd = Math.min(batchStart + 10000, end);
- len = batchEnd - batchStart;
- Array.prototype.splice.apply(dest, [destOfs, overwrite?len:0].concat(src_0.slice(batchStart, batchEnd)));
- batchStart = batchEnd;
- destOfs += len;
- }
-}
-
-function setCheck(array, index_0, value_0){
- checkArrayType(value_0 == null || canSet(array, value_0));
- return array[index_0] = value_0;
-}
-
-function cacheJavaScriptException(e, jse){
- if (e && typeof e == 'object') {
- try {
- e.__gwt$exception = jse;
- }
- catch (ignored) {
- }
- }
-}
-
-function unwrap(e){
- var jse;
- if (instanceOf(e, 58)) {
- jse = dynamicCast(e, 58);
- if (maskUndefined(jse.e) !== maskUndefined(($clinit_JavaScriptException() , NOT_SET))) {
- return maskUndefined(jse.e) === maskUndefined(NOT_SET)?null:jse.e;
- }
- }
- return e;
-}
-
-function wrap(e){
- var jse;
- if (instanceOf(e, 14)) {
- return e;
- }
- jse = e && e.__gwt$exception;
- if (!jse) {
- jse = new JavaScriptException(e);
- captureStackTrace();
- cacheJavaScriptException(e, jse);
- }
- return jse;
-}
-
-function create_0(value_0){
- var a0, a1, a2;
- a0 = value_0 & $intern_14;
- a1 = value_0 >> 22 & $intern_14;
- a2 = value_0 < 0?$intern_15:0;
- return create0(a0, a1, a2);
-}
-
-function create_1(a){
- return create0(a.l, a.m, a.h);
-}
-
-function create0(l, m, h){
- return {l:l, m:m, h:h};
-}
-
-function divMod(a, b, computeRemainder){
- var aIsCopy, aIsMinValue, aIsNegative, bpower, c, negative;
- if (b.l == 0 && b.m == 0 && b.h == 0) {
- throw new ArithmeticException;
- }
- if (a.l == 0 && a.m == 0 && a.h == 0) {
- computeRemainder && (remainder_0 = create0(0, 0, 0));
- return create0(0, 0, 0);
- }
- if (b.h == $intern_16 && b.m == 0 && b.l == 0) {
- return divModByMinValue(a, computeRemainder);
- }
- negative = false;
- if (b.h >> 19 != 0) {
- b = neg(b);
- negative = true;
- }
- bpower = powerOfTwo(b);
- aIsNegative = false;
- aIsMinValue = false;
- aIsCopy = false;
- if (a.h == $intern_16 && a.m == 0 && a.l == 0) {
- aIsMinValue = true;
- aIsNegative = true;
- if (bpower == -1) {
- a = create_1(($clinit_LongLib$Const() , MAX_VALUE));
- aIsCopy = true;
- negative = !negative;
- }
- else {
- c = shr(a, bpower);
- negative && negate(c);
- computeRemainder && (remainder_0 = create0(0, 0, 0));
- return c;
- }
- }
- else if (a.h >> 19 != 0) {
- aIsNegative = true;
- a = neg(a);
- aIsCopy = true;
- negative = !negative;
- }
- if (bpower != -1) {
- return divModByShift(a, bpower, negative, aIsNegative, computeRemainder);
- }
- if (!gte_0(a, b)) {
- computeRemainder && (aIsNegative?(remainder_0 = neg(a)):(remainder_0 = create0(a.l, a.m, a.h)));
- return create0(0, 0, 0);
- }
- return divModHelper(aIsCopy?a:create0(a.l, a.m, a.h), b, negative, aIsNegative, aIsMinValue, computeRemainder);
-}
-
-function divModByMinValue(a, computeRemainder){
- if (a.h == $intern_16 && a.m == 0 && a.l == 0) {
- computeRemainder && (remainder_0 = create0(0, 0, 0));
- return create_1(($clinit_LongLib$Const() , ONE));
- }
- computeRemainder && (remainder_0 = create0(a.l, a.m, a.h));
- return create0(0, 0, 0);
-}
-
-function divModByShift(a, bpower, negative, aIsNegative, computeRemainder){
- var c;
- c = shr(a, bpower);
- negative && negate(c);
- if (computeRemainder) {
- a = maskRight(a, bpower);
- aIsNegative?(remainder_0 = neg(a)):(remainder_0 = create0(a.l, a.m, a.h));
- }
- return c;
-}
-
-function divModHelper(a, b, negative, aIsNegative, aIsMinValue, computeRemainder){
- var bshift, gte, quotient, shift_0, a1, a2, a0;
- shift_0 = numberOfLeadingZeros(b) - numberOfLeadingZeros(a);
- bshift = shl(b, shift_0);
- quotient = create0(0, 0, 0);
- while (shift_0 >= 0) {
- gte = trialSubtract(a, bshift);
- if (gte) {
- shift_0 < 22?(quotient.l |= 1 << shift_0 , undefined):shift_0 < 44?(quotient.m |= 1 << shift_0 - 22 , undefined):(quotient.h |= 1 << shift_0 - 44 , undefined);
- if (a.l == 0 && a.m == 0 && a.h == 0) {
- break;
- }
- }
- a1 = bshift.m;
- a2 = bshift.h;
- a0 = bshift.l;
- setH(bshift, a2 >>> 1);
- bshift.m = a1 >>> 1 | (a2 & 1) << 21;
- bshift.l = a0 >>> 1 | (a1 & 1) << 21;
- --shift_0;
- }
- negative && negate(quotient);
- if (computeRemainder) {
- if (aIsNegative) {
- remainder_0 = neg(a);
- aIsMinValue && (remainder_0 = sub_0(remainder_0, ($clinit_LongLib$Const() , ONE)));
- }
- else {
- remainder_0 = create0(a.l, a.m, a.h);
- }
- }
- return quotient;
-}
-
-function maskRight(a, bits){
- var b0, b1, b2;
- if (bits <= 22) {
- b0 = a.l & (1 << bits) - 1;
- b1 = b2 = 0;
- }
- else if (bits <= 44) {
- b0 = a.l;
- b1 = a.m & (1 << bits - 22) - 1;
- b2 = 0;
- }
- else {
- b0 = a.l;
- b1 = a.m;
- b2 = a.h & (1 << bits - 44) - 1;
- }
- return create0(b0, b1, b2);
-}
-
-function negate(a){
- var neg0, neg1, neg2;
- neg0 = ~a.l + 1 & $intern_14;
- neg1 = ~a.m + (neg0 == 0?1:0) & $intern_14;
- neg2 = ~a.h + (neg0 == 0 && neg1 == 0?1:0) & $intern_15;
- setL(a, neg0);
- setM(a, neg1);
- setH(a, neg2);
-}
-
-function numberOfLeadingZeros(a){
- var b1, b2;
- b2 = numberOfLeadingZeros_0(a.h);
- if (b2 == 32) {
- b1 = numberOfLeadingZeros_0(a.m);
- return b1 == 32?numberOfLeadingZeros_0(a.l) + 32:b1 + 20 - 10;
- }
- else {
- return b2 - 12;
- }
-}
-
-function powerOfTwo(a){
- var h, l, m;
- l = a.l;
- if ((l & l - 1) != 0) {
- return -1;
- }
- m = a.m;
- if ((m & m - 1) != 0) {
- return -1;
- }
- h = a.h;
- if ((h & h - 1) != 0) {
- return -1;
- }
- if (h == 0 && m == 0 && l == 0) {
- return -1;
- }
- if (h == 0 && m == 0 && l != 0) {
- return numberOfTrailingZeros(l);
- }
- if (h == 0 && m != 0 && l == 0) {
- return numberOfTrailingZeros(m) + 22;
- }
- if (h != 0 && m == 0 && l == 0) {
- return numberOfTrailingZeros(h) + 44;
- }
- return -1;
-}
-
-function setH(a, x_0){
- a.h = x_0;
-}
-
-function setL(a, x_0){
- a.l = x_0;
-}
-
-function setM(a, x_0){
- a.m = x_0;
-}
-
-function toDoubleHelper(a){
- return a.l + a.m * $intern_17 + a.h * $intern_18;
-}
-
-function trialSubtract(a, b){
- var sum0, sum1, sum2;
- sum2 = a.h - b.h;
- if (sum2 < 0) {
- return false;
- }
- sum0 = a.l - b.l;
- sum1 = a.m - b.m + (sum0 >> 22);
- sum2 += sum1 >> 22;
- if (sum2 < 0) {
- return false;
- }
- setL(a, sum0 & $intern_14);
- setM(a, sum1 & $intern_14);
- setH(a, sum2 & $intern_15);
- return true;
-}
-
-var remainder_0;
-function eq(a, b){
- return a.l == b.l && a.m == b.m && a.h == b.h;
-}
-
-function fromDouble(value_0){
- var a0, a1, a2, negative, result;
- if (isNaN(value_0)) {
- return $clinit_LongLib$Const() , ZERO;
- }
- if (value_0 < $intern_19) {
- return $clinit_LongLib$Const() , MIN_VALUE;
- }
- if (value_0 >= 9223372036854775807) {
- return $clinit_LongLib$Const() , MAX_VALUE;
- }
- negative = false;
- if (value_0 < 0) {
- negative = true;
- value_0 = -value_0;
- }
- a2 = 0;
- if (value_0 >= $intern_18) {
- a2 = round_int(value_0 / $intern_18);
- value_0 -= a2 * $intern_18;
- }
- a1 = 0;
- if (value_0 >= $intern_17) {
- a1 = round_int(value_0 / $intern_17);
- value_0 -= a1 * $intern_17;
- }
- a0 = round_int(value_0);
- result = create0(a0, a1, a2);
- negative && negate(result);
- return result;
-}
-
-function fromInt(value_0){
- var rebase, result;
- if (value_0 > -129 && value_0 < 128) {
- rebase = value_0 + 128;
- boxedValues == null && (boxedValues = initDim(Lcom_google_gwt_lang_LongLibBase$LongEmul_2_classLit, $intern_4, 601, 256, 0, 1));
- result = boxedValues[rebase] = create_0(value_0);
- return result;
- }
- return create_0(value_0);
-}
-
-function gt(a, b){
- var signa, signb;
- signa = a.h >> 19;
- signb = b.h >> 19;
- return signa == 0?signb != 0 || a.h > b.h || a.h == b.h && a.m > b.m || a.h == b.h && a.m == b.m && a.l > b.l:!(signb == 0 || a.h < b.h || a.h == b.h && a.m < b.m || a.h == b.h && a.m == b.m && a.l <= b.l);
-}
-
-function gte_0(a, b){
- var signa, signb;
- signa = a.h >> 19;
- signb = b.h >> 19;
- return signa == 0?signb != 0 || a.h > b.h || a.h == b.h && a.m > b.m || a.h == b.h && a.m == b.m && a.l >= b.l:!(signb == 0 || a.h < b.h || a.h == b.h && a.m < b.m || a.h == b.h && a.m == b.m && a.l < b.l);
-}
-
-function lt(a, b){
- return !gte_0(a, b);
-}
-
-function neg(a){
- var neg0, neg1, neg2;
- neg0 = ~a.l + 1 & $intern_14;
- neg1 = ~a.m + (neg0 == 0?1:0) & $intern_14;
- neg2 = ~a.h + (neg0 == 0 && neg1 == 0?1:0) & $intern_15;
- return create0(neg0, neg1, neg2);
-}
-
-function shl(a, n){
- var res0, res1, res2;
- n &= 63;
- if (n < 22) {
- res0 = a.l << n;
- res1 = a.m << n | a.l >> 22 - n;
- res2 = a.h << n | a.m >> 22 - n;
- }
- else if (n < 44) {
- res0 = 0;
- res1 = a.l << n - 22;
- res2 = a.m << n - 22 | a.l >> 44 - n;
- }
- else {
- res0 = 0;
- res1 = 0;
- res2 = a.l << n - 44;
- }
- return {l:res0 & $intern_14, m:res1 & $intern_14, h:res2 & $intern_15};
-}
-
-function shr(a, n){
- var a2, negative, res0, res1, res2;
- n &= 63;
- a2 = a.h;
- negative = (a2 & $intern_16) != 0;
- negative && (a2 |= -1048576);
- if (n < 22) {
- res2 = a2 >> n;
- res1 = a.m >> n | a2 << 22 - n;
- res0 = a.l >> n | a.m << 22 - n;
- }
- else if (n < 44) {
- res2 = negative?$intern_15:0;
- res1 = a2 >> n - 22;
- res0 = a.m >> n - 22 | a2 << 44 - n;
- }
- else {
- res2 = negative?$intern_15:0;
- res1 = negative?$intern_14:0;
- res0 = a2 >> n - 44;
- }
- return {l:res0 & $intern_14, m:res1 & $intern_14, h:res2 & $intern_15};
-}
-
-function sub_0(a, b){
- var sum0, sum1, sum2;
- sum0 = a.l - b.l;
- sum1 = a.m - b.m + (sum0 >> 22);
- sum2 = a.h - b.h + (sum1 >> 22);
- return {l:sum0 & $intern_14, m:sum1 & $intern_14, h:sum2 & $intern_15};
-}
-
-function toDouble(a){
- if (eq(a, ($clinit_LongLib$Const() , MIN_VALUE))) {
- return $intern_19;
- }
- if (!gte_0(a, ZERO)) {
- return -toDoubleHelper(neg(a));
- }
- return a.l + a.m * $intern_17 + a.h * $intern_18;
-}
-
-function toInt(a){
- return a.l | a.m << 22;
-}
-
-function toString_2(a){
- var digits, rem, res, tenPowerLong, zeroesNeeded;
- if (a.l == 0 && a.m == 0 && a.h == 0) {
- return '0';
- }
- if (a.h == $intern_16 && a.m == 0 && a.l == 0) {
- return '-9223372036854775808';
- }
- if (a.h >> 19 != 0) {
- return '-' + toString_2(neg(a));
- }
- rem = a;
- res = '';
- while (!(rem.l == 0 && rem.m == 0 && rem.h == 0)) {
- tenPowerLong = fromInt(1000000000);
- rem = divMod(rem, tenPowerLong, true);
- digits = '' + toInt(remainder_0);
- if (!(rem.l == 0 && rem.m == 0 && rem.h == 0)) {
- zeroesNeeded = 9 - digits.length;
- for (; zeroesNeeded > 0; zeroesNeeded--) {
- digits = '0' + digits;
- }
- }
- res = digits + res;
- }
- return res;
-}
-
-var boxedValues;
-function $clinit_LongLib$Const(){
- $clinit_LongLib$Const = emptyMethod;
- MAX_VALUE = create0($intern_14, $intern_14, 524287);
- MIN_VALUE = create0(0, 0, $intern_16);
- ONE = fromInt(1);
- fromInt(2);
- ZERO = fromInt(0);
-}
-
-var MAX_VALUE, MIN_VALUE, ONE, ZERO;
-function hasTypeMarker(o){
- return o.typeMarker$ === typeMarkerFn;
-}
-
-function init_0(){
- var progress;
- $wnd.setTimeout($entry(assertCompileTimeUserAgent));
- $onModuleLoad();
- $clinit_LogConfiguration();
- $clinit_WCUtils();
- $done(ready(initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [])), initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new WCUtils$3]));
- progress = new WCVProgress;
- registerElement('v-progress', progress);
- registerElement('v-progress-bar', progress);
- registerElement('v-slider', new WCVSlider);
- registerElement('v-grid', new WCVGrid);
- runJavascriptFunction(null, 'onVaadinX', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, []));
-}
-
-function $clinit_LogConfiguration(){
- $clinit_LogConfiguration = emptyMethod;
- impl_1 = new LogConfiguration$LogConfigurationImplNull;
-}
-
-function loggingIsEnabled(){
- $clinit_LogConfiguration();
- if (!impl_1) {
- return true;
- }
- return false;
-}
-
-var impl_1;
-function LogConfiguration$LogConfigurationImplNull(){
-}
-
-defineClass(204, 1, {}, LogConfiguration$LogConfigurationImplNull);
-var Lcom_google_gwt_logging_client_LogConfiguration$LogConfigurationImplNull_2_classLit = createForClass('com.google.gwt.logging.client', 'LogConfiguration/LogConfigurationImplNull', 204, Ljava_lang_Object_2_classLit);
-function Browser(){
- this.ie6 = this.isIe6();
- this.ie8 = this.isIe8();
- this.ie9 = this.isIe9();
- this.mozilla = this.isMozilla();
- this.msie = this.isMsie();
- this.opera = this.isOpera_0();
- this.isWebkit();
- this.webkit = this.isWebkit();
-}
-
-defineClass(164, 1, {});
-_.ie6 = false;
-_.ie8 = false;
-_.ie9 = false;
-_.mozilla = false;
-_.msie = false;
-_.opera = false;
-_.webkit = false;
-var Lcom_google_gwt_query_client_Browser_2_classLit = createForClass('com.google.gwt.query.client', 'Browser', 164, Ljava_lang_Object_2_classLit);
-function Browser_gecko1_8(){
- Browser.call(this);
-}
-
-defineClass(340, 164, {}, Browser_gecko1_8);
-_.isIe6 = function(){
- return false;
-}
-;
-_.isIe8 = function(){
- return false;
-}
-;
-_.isIe9 = function(){
- return false;
-}
-;
-_.isMozilla = function(){
- return true;
-}
-;
-_.isMsie = function(){
- return false;
-}
-;
-_.isOpera_0 = function(){
- return false;
-}
-;
-_.isWebkit = function(){
- return false;
-}
-;
-_.toString$ = function(){
- return 'Browser: webkit=' + this.webkit + ' mozilla=' + this.mozilla + ' opera=' + this.opera + ' msie=' + this.msie + ' ie6=' + this.ie6 + ' ie8=' + this.ie8 + ' ie9=' + this.ie9;
-}
-;
-var Lcom_google_gwt_query_client_Browser_1gecko1_18_2_classLit = createForClass('com.google.gwt.query.client', 'Browser_gecko1_8', 340, Lcom_google_gwt_query_client_Browser_2_classLit);
-function Browser_safari(){
- Browser.call(this);
-}
-
-defineClass(339, 164, {}, Browser_safari);
-_.isIe6 = function(){
- return false;
-}
-;
-_.isIe8 = function(){
- return false;
-}
-;
-_.isIe9 = function(){
- return false;
-}
-;
-_.isMozilla = function(){
- return false;
-}
-;
-_.isMsie = function(){
- return false;
-}
-;
-_.isOpera_0 = function(){
- return false;
-}
-;
-_.isWebkit = function(){
- return true;
-}
-;
-_.toString$ = function(){
- return 'Browser: webkit=' + this.webkit + ' mozilla=' + this.mozilla + ' opera=' + this.opera + ' msie=' + this.msie + ' ie6=' + this.ie6 + ' ie8=' + this.ie8 + ' ie9=' + this.ie9;
-}
-;
-var Lcom_google_gwt_query_client_Browser_1safari_2_classLit = createForClass('com.google.gwt.query.client', 'Browser_safari', 339, Lcom_google_gwt_query_client_Browser_2_classLit);
-function $f(this$static, e){
- this$static.element = e;
- $f_1(this$static, e);
-}
-
-function $f_0(this$static, e){
- var w;
- this$static.element = e;
- return this$static.element = e , w = getAssociatedWidget(e) , w?($setElement(this$static, ($clinit_DOM() , w.element)) , $f_2(this$static, w) , null):(this$static.element = e , $f_1(this$static, e)) , null;
-}
-
-function $f_1(this$static, e){
- var w;
- this$static.element = e;
- w = e?getAssociatedWidget(e):null;
- if (w) {
- this$static.loop = true;
- $f_2(this$static, w);
- }
- else {
- this$static.f_0();
- }
-}
-
-function $f_2(this$static, w){
- $setElement(this$static, ($clinit_DOM() , w.element));
- if (this$static.loop) {
- this$static.loop = false;
- this$static.f_0();
- }
- else {
- $f(this$static, w.element);
- }
-}
-
-function $f_3(this$static, args){
- this$static.arguments_0 = args;
- this$static.f_0();
- return $clinit_Boolean() , $clinit_Boolean() , TRUE;
-}
-
-function $fe(this$static){
- $f_3(this$static, this$static.arguments_0);
-}
-
-function $fe_0(this$static, elem){
- this$static.element = elem;
- $f_1(this$static, elem);
-}
-
-function $getArgument(this$static, pos, type_0){
- var o, objs;
- objs = $getArgumentArray(this$static);
- o = objs.length > pos?objs[pos]:null;
- if (o != null && (!type_0 || getClass__Ljava_lang_Class___devirtual$(o) == type_0 || type_0 == Lcom_google_gwt_core_client_JavaScriptObject_2_classLit && instanceOfJso(o))) {
- return o;
- }
- return null;
-}
-
-function $getArgumentArray(this$static){
- var o;
- o = this$static.arguments_0;
- if (o != null) {
- return (getClass__Ljava_lang_Class___devirtual$(o).modifiers & 4) != 0?o:initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [o]);
- }
- return initDim(Ljava_lang_Object_2_classLit, $intern_4, 1, 0, 3, 1);
-}
-
-function $setArguments(this$static, arguments_0){
- this$static.arguments_0 = arguments_0;
- return this$static;
-}
-
-function $setElement(this$static, e){
- this$static.element = e;
- return this$static;
-}
-
-function Function_0(){
- this.arguments_0 = initDim(Ljava_lang_Object_2_classLit, $intern_4, 1, 0, 3, 1);
-}
-
-defineClass(7, 1, $intern_20);
-_.f_0 = function(){
- throw new RuntimeException_0("You have to override the adequate method to handle this action, or you have to override 'public void f()' to avoid this error");
-}
-;
-_.f_1 = function(args){
- return $f_3(this, args);
-}
-;
-_.fe = function(arg){
- this.f_1(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [arg]));
-}
-;
-_.fe_0 = function(args){
- return this.f_1(args);
-}
-;
-_.setArguments = function(arguments_0){
- return $setArguments(this, arguments_0);
-}
-;
-_.element = null;
-_.loop = false;
-var Lcom_google_gwt_query_client_Function_2_classLit = createForClass('com.google.gwt.query.client', 'Function', 7, Ljava_lang_Object_2_classLit);
-function create_2(clz, obj){
- var ret;
- ret = (!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , $create(clz));
- $load(ret, obj);
- return ret;
-}
-
-function create_3(s){
- return !jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , parseJSON(s);
-}
-
-var ajaxTransport, jsonFactory;
-function $clinit_GQuery(){
- $clinit_GQuery = emptyMethod;
- $doc.body;
- browser = com_google_gwt_query_client_Browser();
- console_0 = new ConsoleBrowser;
- document_0 = $doc;
- $clinit_Effects();
- $clinit_Events();
- new RegExp('^:(nth|eq|gt|lt|first|last|even|odd)(?:\\((\\d*)\\))?(?=[^\\-]|$)$');
- tagNameRegex = new RegExp('<([\\w:-]+)');
- Widgets = ($clinit_Widgets() , Lcom_google_gwt_query_client_plugins_Widgets_2_classLit);
- window_1 = ($clinit_ScriptInjector() , TOP_WINDOW);
-}
-
-function $$init(this$static){
- this$static.elements = initDim(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, $intern_4, 0, 0, 2, 1);
- this$static.nodeList = [];
-}
-
-function $(jso){
- var c, elms, i_0, obj, r;
- if (!jso) {
- return new GQuery_3(create_4(null));
- }
- if (isFunction(jso)) {
- $fe(new JsUtils$JsFunction(jso));
- return new GQuery_3(create_4(null));
- }
- if (!hasProperty(jso, 'alert') && !isElement(jso) && isArray(jso)) {
- c = jso;
- elms = create_4(null);
- for (i_0 = 0; i_0 < c.length; i_0++) {
- obj = $getObject(c, i_0);
- !!obj && $addNode(elms, obj);
- }
- return new GQuery_1(elms);
- }
- return hasProperty(jso, 'alert')?new GQuery_0(jso):isElement(jso)?new GQuery_0(jso):hasProperty(jso, 'currentTarget')?!jso?new GQuery_3(create_4(null)):new GQuery_0(($clinit_DOMImpl() , impl_0).eventGetCurrentTarget(jso)):(r = Object.prototype.toString.call(jso) , r == '[object HTMLCollection]' || r == '[object NodeList]' || typeof jso == 'object' && jso.length && jso[0].tagName?true:false)?new GQuery_1(jso):new GQuery_0(jso);
-}
-
-function $_0(o){
- $clinit_GQuery();
- if (o) {
- if (isElement(o)) {
- return new GQuery_0(dynamicCastJso(o));
- }
- if (instanceOf(o, 23)) {
- return $_2(new Arrays$ArrayList(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [o])));
- }
- $log($toJs(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, ['Error: GQuery.$(Object o) could not wrap the type : ', $getName(o.___clazz$), o])));
- }
- return new GQuery_3(create_4(null));
-}
-
-function $_1(selectorOrHtml, ctx){
- $clinit_GQuery();
- var selector;
- selector = null;
- if (selectorOrHtml == null || (selector = $trim(selectorOrHtml)).length == 0) {
- return new GQuery_3(create_4(null));
- }
- if ($equals_2(selector.substr(0, 1), '<')) {
- return cleanHtmlString(selectorOrHtml, !ctx || !isElement(ctx)?null:ctx.nodeType == 9?ctx:ctx.ownerDocument);
- }
- return $select(new GQuery, selectorOrHtml, ctx);
-}
-
-function $_2(nodesOrWidgets){
- $clinit_GQuery();
- var elms, o, o$iterator;
- elms = create_4(null);
- for (o$iterator = nodesOrWidgets.iterator_0(); o$iterator.hasNext();) {
- o = o$iterator.next_0();
- instanceOfJso(o)?$addNode(elms, dynamicCastJso(o)):instanceOf(o, 23) && $addNode(elms, $getElement(dynamicCast(o, 23).asWidget()));
- }
- return new GQuery_3(elms);
-}
-
-function $add(this$static, elementsToAdd){
- return $pushStack(this$static, copyNodeList(this$static.nodeList, elementsToAdd.nodeList, true), $join(',', initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, [this$static.currentSelector, elementsToAdd.currentSelector])));
-}
-
-function $addClass(this$static, classes){
- var clz, clz$index, clz$max, e, e$array, e$index, e$max;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- if (!!e && e.nodeType == 1) {
- for (clz$index = 0 , clz$max = classes.length; clz$index < clz$max; ++clz$index) {
- clz = classes[clz$index];
- $addClassName(e, clz);
- }
- }
- }
- return this$static;
-}
-
-function $allNextSiblingElements(firstChildElement, result){
- while (firstChildElement) {
- !!firstChildElement && $add_0(result, initValues(getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1), $intern_4, 0, 2, [firstChildElement]));
- firstChildElement = $getNextSiblingElement(($clinit_DOMImpl() , firstChildElement));
- }
-}
-
-function $appendTo(this$static, other){
- $domManip(other, this$static, initValues(getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1), $intern_4, 0, 2, []));
- return this$static;
-}
-
-function $as(this$static, plugin){
- var p;
- if (plugin == Lcom_google_gwt_query_client_GQuery_2_classLit) {
- return this$static;
- }
- else if (plugins) {
- p = dynamicCast($get_3(plugins, getHashCode(plugin)), 109);
- if (p) {
- return p.init_0(this$static);
- }
- }
- throw new RuntimeException_0(($ensureNamesAreInitialized(plugin) , 'No plugin registered for class ' + plugin.typeName));
-}
-
-function $attr(this$static, name_0){
- return this$static.elements.length == 0?'':$getAttribute($get(this$static, 0), name_0);
-}
-
-function $attr_0(this$static, key, value_0){
- $setAttribute_0((!attributeImpl && (attributeImpl = new AttributeImpl) , this$static), key, value_0);
- return this$static;
-}
-
-function $children(this$static){
- var e, e$array, e$index, e$max, result;
- result = create_4(null);
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- $allNextSiblingElements($getFirstChildElement_0(($clinit_DOMImpl() , e)), result);
- }
- return new GQuery_3($unique(result));
-}
-
-function $children_0(this$static, filters){
- return $filter_0($children(this$static), filters);
-}
-
-function $cleanGQData(this$static, elements){
- var e, el, el$index, el$max, lastArg;
- for (el$index = 0 , el$max = elements.length; el$index < el$max; ++el$index) {
- el = elements[el$index];
- try {
- $clinit_EventsListener();
- getGQueryEventListener(el);
- $removeData(this$static, el, null);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- e = $e0;
- $printStackTrace((lastArg = e , lastArg));
- }
- else
- throw unwrap($e0);
- }
- }
-}
-
-function $data(this$static){
- return this$static.elements.length == 0?null:data_1($get(this$static, 0), 'init', null);
-}
-
-function $data_0(this$static, value_0){
- var e, e$array, e$index, e$max;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- data_1(e, 'init', value_0);
- }
- return this$static;
-}
-
-function $domManip(this$static, g, elms){
- var e, i_0, j, l, n, newNodes, size_0;
- newNodes = create_4(null);
- elms.length == 0 && (elms = this$static.elements);
- for (i_0 = 0 , l = elms.length; i_0 < l; i_0++) {
- e = elms[i_0];
- e.nodeType == 9 && (e = e.body);
- for (j = 0 , size_0 = g.elements.length; j < size_0; j++) {
- n = $get(g, j);
- i_0 > 0 && (n = n.cloneNode(true));
- $addNode(newNodes, e.appendChild(n));
- $clinit_EventsListener();
- getGQueryEventListener(n);
- }
- }
- $length(newNodes) >= g.elements.length && $setArray(g, newNodes);
- return this$static;
-}
-
-function $each(this$static, f){
- var e, e$array, e$index, e$max, f1, f1$index, f1$max, i_0;
- for (f1$index = 0 , f1$max = f.length; f1$index < f1$max; ++f1$index) {
- f1 = f[f1$index];
- if (f1) {
- i_0 = 0;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- $f_0(f1, (++i_0 , e));
- }
- }
- }
- return this$static;
-}
-
-function $filter(this$static, filterFn){
- var result;
- result = $filter_1((!engine && (engine = new SelectorEngine) , this$static.nodeList), filterFn);
- return $pushStack(this$static, result, this$static.currentSelector);
-}
-
-function $filter_0(this$static, filters){
- var result, selector;
- selector = $join(', ', filters);
- result = $filter_2((!engine && (engine = new SelectorEngine) , engine), this$static.nodeList, selector);
- return $pushStack(this$static, result, selector);
-}
-
-function $find(this$static, filters){
- var array, c, c$array, c$index, c$max, e, e$array, e$index, e$max, selector, selector$index, selector$max;
- array = create_4(null);
- for (selector$index = 0 , selector$max = filters.length; selector$index < selector$max; ++selector$index) {
- selector = filters[selector$index];
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- for (c$array = $_1(selector, e).elements , c$index = 0 , c$max = c$array.length; c$index < c$max; ++c$index) {
- c = c$array[c$index];
- $add_0(array, initValues(getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1), $intern_4, 0, 2, [c]));
- }
- }
- }
- return $pushStack(this$static, $unique(array), filters[0]);
-}
-
-function $get(this$static, i_0){
- var l;
- l = this$static.elements.length;
- if (i_0 >= 0 && i_0 < l) {
- return this$static.elements[i_0];
- }
- if (i_0 < 0 && l + i_0 >= 0) {
- return this$static.elements[l + i_0];
- }
- return null;
-}
-
-function $hide(this$static){
- var currentDisplay, e, e$array, e$array0, e$index, e$index0, e$max, e$max0, old;
- for (e$array0 = this$static.elements , e$index0 = 0 , e$max0 = e$array0.length; e$index0 < e$max0; ++e$index0) {
- e = e$array0[e$index0];
- currentDisplay = $curCSS((!styleImpl && (styleImpl = (!engine && (engine = new SelectorEngine) , $clinit_SelectorEngine() , styleImpl_0)) , styleImpl), e, 'display', false);
- old = data_1(e, 'old-display', null);
- old == null && currentDisplay.length != 0 && !$equals_2('none', currentDisplay) && data_1(e, 'old-display', currentDisplay);
- }
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- $setPropertyImpl(e.style, 'display', ($clinit_Style$Display() , 'none'));
- }
- return this$static;
-}
-
-function $html(this$static){
- return this$static.elements.length == 0?'':$getInnerHTML($get(this$static, 0));
-}
-
-function $index(this$static, element){
- var e, e$array, e$index, e$max, i_0;
- i_0 = 0;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- if (e == element) {
- return i_0;
- }
- ++i_0;
- }
- return -1;
-}
-
-function $join(chr, values){
- var i_0, value_0;
- value_0 = '';
- for (i_0 = 0; i_0 < values.length; i_0++) {
- value_0 += i_0 > 0?chr + values[i_0]:values[i_0];
- }
- return value_0;
-}
-
-function $last(this$static){
- return new GQuery_0($get(this$static, this$static.elements.length - 1));
-}
-
-function $parents(this$static, filters){
- return $filter_0($parentsUntil(this$static), filters);
-}
-
-function $parentsUntil(this$static){
- var e, e$array, e$index, e$max, i_0, par, result;
- result = create_4(null);
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- i_0 = 0;
- par = e.parentNode;
- while (!!par && par != document_0) {
- $add_0(result, initValues(getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1), $intern_4, 0, 2, [par]));
- par = par.parentNode;
- ++i_0;
- }
- }
- return new GQuery_3($unique(result));
-}
-
-function $prop(this$static, key){
- return this$static.elements.length == 0?null:prop_0($get(this$static, 0), key);
-}
-
-function $prop_0(this$static, value_0){
- var e, e$array, e$index, e$max;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- !!e && $put(e, 'href', value_0);
- }
- return this$static;
-}
-
-function $pushStack(this$static, elts, selector){
- var g;
- g = new GQuery_3(elts);
- g.currentSelector = selector;
- g.currentContext = this$static.currentContext;
- return g;
-}
-
-function $remove(this$static, clean){
- var e, e$array, e$index, e$max, w;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- if (clean) {
- $cleanGQData(this$static, $_1('*', e).elements);
- $cleanGQData(this$static, initValues(getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1), $intern_4, 0, 2, [e]));
- }
- w = getAssociatedWidget(e);
- w?$removeFromParent_0(w):$removeFromParent(e);
- }
- return this$static;
-}
-
-function $removeData(this$static, item_0, name_0){
- var id_0;
- if (!dataCache) {
- windowData = {};
- dataCache = {};
- }
- item_0 = item_0 == window_1 || item_0.nodeName == null?windowData:item_0;
- id_0 = getHashCode(item_0);
- if (name_0 != null) {
- if (dataCache[valueOf_2(id_0)]) {
- delete dynamicCastJso($get_1(dataCache, valueOf_2(id_0)))[name_0];
- $isEmpty(dynamicCastJso($get_1(dataCache, valueOf_2(id_0)))) && $removeData(this$static, item_0, null);
- }
- }
- else {
- $delete(dataCache, valueOf_2(id_0));
- }
-}
-
-function $select(this$static, selector, context){
- var n;
- n = $select_0((!engine && (engine = new SelectorEngine) , engine), selector, !context?document_0:context);
- this$static.currentSelector = selector;
- this$static.currentContext = context?context:document_0;
- return $setArray(this$static, n);
-}
-
-function $setArray(this$static, list){
- var i_0, l;
- if (list) {
- $clear(this$static.nodeList);
- l = list.length;
- this$static.elements = initDim(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, $intern_4, 0, l, 2, 1);
- for (i_0 = 0; i_0 < l; i_0++) {
- setCheck(this$static.elements, i_0, list[i_0]);
- $add_0(this$static.nodeList, initValues(getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1), $intern_4, 0, 2, [list[i_0]]));
- }
- }
- return this$static;
-}
-
-function $text(this$static){
- var e, e$array, e$index, e$max, result;
- result = '';
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- result += ($clinit_DOMImpl() , e).textContent;
- }
- return result;
-}
-
-function $text_0(this$static, txt){
- var e, e$array, e$index, e$max;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- $setInnerText_0(($clinit_DOMImpl() , e), txt);
- }
- return this$static;
-}
-
-function $toString_1(this$static){
- var e, e$array, e$index, e$max, e2, elStr, r;
- r = '';
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- if (window_1 == e) {
- continue;
- }
- try {
- elStr = !!e && !$equals_2('HTML', (!e || !isElement(e)?null:e.nodeType == 9?e:e.ownerDocument).documentElement.nodeName)?(new XMLSerializer).serializeToString(e):($clinit_DOMImpl() , impl_0).toString_0(e);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- e2 = $e0;
- elStr = '< ' + (!e?'null':e.nodeName) + '(gquery, error getting the element string representation: ' + e2.getMessage() + ')/>';
- }
- else
- throw unwrap($e0);
- }
- r += '' + elStr;
- }
- return r;
-}
-
-function $widget(this$static, n){
- var e, e$array, e$index, e$max, w;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- w = getAssociatedWidget(e);
- if (w) {
- if (n == 0) {
- return w;
- }
- --n;
- }
- }
- return null;
-}
-
-function GQuery(){
- $$init(this);
-}
-
-function GQuery_0(element){
- $clinit_GQuery();
- GQuery_3.call(this, create_4(element));
-}
-
-function GQuery_1(list){
- $$init(this);
- $setArray(this, list);
-}
-
-function GQuery_2(gq){
- $clinit_GQuery();
- $$init(this);
- this.elements = gq.elements;
- this.nodeList = gq.nodeList;
- this.currentSelector = gq.currentSelector;
- this.currentContext = gq.currentContext;
-}
-
-function GQuery_3(nodes){
- $clinit_GQuery();
- GQuery_1.call(this, nodes);
-}
-
-function cleanHtmlString(elem, doc){
- var depth, div, mResult, n, tag, wrapper, tableWrapper, selectWrapper, trWrapper;
- mResult = $exec_0(tagNameRegex, elem);
- if (!mResult) {
- return new GQuery_0(doc.createTextNode(elem));
- }
- tag = mResult[1];
- !wrapperMap && (tableWrapper = new GQuery$TagWrapper(1, '<table>', '<\/table>') , selectWrapper = new GQuery$TagWrapper(1, '<select multiple="multiple">', '<\/select>') , trWrapper = new GQuery$TagWrapper(3, '<table><tbody><tr>', '<\/tr><\/tbody><\/table>') , wrapperMap = {} , $put_1(wrapperMap, 'option', selectWrapper) , $put_1(wrapperMap, 'optgroup', selectWrapper) , $put_1(wrapperMap, 'legend', new GQuery$TagWrapper(1, '<fieldset>', '<\/fieldset>')) , $put_1(wrapperMap, 'thead', tableWrapper) , $put_1(wrapperMap, 'tbody', tableWrapper) , $put_1(wrapperMap, 'tfoot', tableWrapper) , $put_1(wrapperMap, 'colgroup', tableWrapper) , $put_1(wrapperMap, 'caption', tableWrapper) , $put_1(wrapperMap, 'tr', new GQuery$TagWrapper(2, '<table><tbody>', '<\/tbody><\/table>')) , $put_1(wrapperMap, 'td', trWrapper) , $put_1(wrapperMap, 'th', trWrapper) , $put_1(wrapperMap, 'col', new GQuery$TagWrapper(2, '<table><tbody><\/tbody><colgroup>', '<\/colgroup><\/table>')) , $put_1(wrapperMap, 'area', new GQuery$TagWrapper(1, '<map>', '<\/map>')) , undefined);
- wrapper = dynamicCast($get_4(wrapperMap, tag.toLowerCase()), 57);
- !wrapper && (wrapper = ($clinit_GQuery$TagWrapper() , DEFAULT_0));
- div = ($clinit_DOMImpl() , doc).createElement('div');
- $setInnerHTML(div, wrapper.preWrap + $trim(elem) + wrapper.postWrap);
- n = div;
- depth = wrapper.wrapDepth;
- while (depth-- != 0) {
- n = n.lastChild;
- }
- return $remove($(n.childNodes), false);
-}
-
-function data_1(element, key, value_0){
- $clinit_GQuery();
- var id_0;
- if (!dataCache) {
- windowData = {};
- dataCache = {};
- }
- element = element == window_1 || element.nodeName == null?windowData:element;
- if (!!element && key != null) {
- id_0 = getHashCode(element);
- if (value_0 == null) {
- return dataCache[valueOf_2(id_0)]?$get_2(dynamicCastJso($get_1(dataCache, valueOf_2(id_0))), key, null):null;
- }
- !!dataCache[valueOf_2(id_0)] || $put(dataCache, valueOf_2(id_0), {});
- $put(dynamicCastJso($get_1(dataCache, valueOf_2(id_0))), key, value_0);
- }
- return value_0;
-}
-
-function getAssociatedWidget(e){
- $clinit_GQuery();
- var e2, lastArg, listener;
- try {
- listener = ($clinit_DOM() , getEventListener(e));
- if (!listener) {
- return null;
- }
- if (instanceOf(listener, 17)) {
- return dynamicCast(listener, 17);
- }
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- e2 = $e0;
- $printStackTrace((lastArg = e2 , lastArg));
- }
- else
- throw unwrap($e0);
- }
- return null;
-}
-
-function registerPlugin(plugin, pluginFactory){
- $clinit_GQuery();
- !plugins && (plugins = {});
- $put_0(plugins, plugin, pluginFactory);
- return plugin;
-}
-
-defineClass(8, 1, {}, GQuery, GQuery_0, GQuery_1, GQuery_3);
-_.delay_0 = function(milliseconds, f){
- return $delay_0(dynamicCast($as(this, ($clinit_QueuePlugin() , Queue)), 80), milliseconds, f);
-}
-;
-_.toString$ = function(){
- return $toString_1(this);
-}
-;
-var Widgets, attributeImpl, browser, console_0, dataCache = null, document_0, engine, plugins, styleImpl, tagNameRegex, window_1, windowData = null, wrapperMap;
-var Lcom_google_gwt_query_client_GQuery_2_classLit = createForClass('com.google.gwt.query.client', 'GQuery', 8, Ljava_lang_Object_2_classLit);
-function $clinit_GQuery$TagWrapper(){
- $clinit_GQuery$TagWrapper = emptyMethod;
- DEFAULT_0 = new GQuery$TagWrapper(0, '', '');
-}
-
-function GQuery$TagWrapper(wrapDepth, preWrap, postWrap){
- $clinit_GQuery$TagWrapper();
- this.wrapDepth = wrapDepth;
- this.postWrap = postWrap;
- this.preWrap = preWrap;
-}
-
-defineClass(57, 1, {57:1}, GQuery$TagWrapper);
-_.wrapDepth = 0;
-var DEFAULT_0;
-var Lcom_google_gwt_query_client_GQuery$TagWrapper_2_classLit = createForClass('com.google.gwt.query.client', 'GQuery/TagWrapper', 57, Ljava_lang_Object_2_classLit);
-defineClass(48, 1, $intern_21);
-_.f_2 = function(e, index_0){
- return false;
-}
-;
-var Lcom_google_gwt_query_client_Predicate_2_classLit = createForClass('com.google.gwt.query.client', 'Predicate', 48, Ljava_lang_Object_2_classLit);
-function $get_0(this$static, name_0){
- return $get_1(this$static, '' + name_0);
-}
-
-function $getArray(this$static, name_0){
- return $getArray_0(this$static, '' + name_0);
-}
-
-function $getFloat(this$static, name_0){
- var r;
- return r = dynamicCast($get_2(this$static, '' + name_0, Ljava_lang_Float_2_classLit), 88) , !r?0:r.value_0;
-}
-
-function $getFunction(this$static, name_0){
- var f, o;
- o = $get_1(this$static, '' + name_0);
- if (o != null) {
- if (instanceOf(o, 7)) {
- return dynamicCast(o, 7);
- }
- else if (instanceOfJso(o)) {
- f = $getObject_0(dynamicCastJso(o), '__f');
- if (f != null && instanceOf(f, 7)) {
- return dynamicCast(f, 7);
- }
- return new JsUtils$JsFunction(dynamicCastJso(o));
- }
- }
- return null;
-}
-
-function $getJavaScriptObject(this$static, name_0){
- return $getJavaScriptObject_0(this$static, '' + name_0);
-}
-
-function $getObject_0(this$static, name_0){
- return $get_1(this$static, '' + name_0);
-}
-
-function $getStr(this$static, name_0){
- return $getString_0(this$static, '' + name_0);
-}
-
-function $set(this$static, name_0, val){
- $put(this$static, '' + name_0, val);
- return this$static;
-}
-
-function $setBoolean(this$static, name_0){
- $putBoolean(this$static, name_0, true);
-}
-
-function $setFunction(this$static, name_0, f){
- if (!f)
- return;
- this$static[name_0] = function(){
- f.fe(arguments);
- }
- ;
- this$static[name_0].__f = f;
-}
-
-function $setNumber(this$static, val){
- $putNumber(this$static, 'colSpan', val);
-}
-
-function getDataImpl__Ljava_lang_Object___devirtual$(this$static){
- return hasJavaObjectVirtualDispatch(this$static)?this$static.getDataImpl():this$static;
-}
-
-var Lcom_google_gwt_query_client_builders_JsonBuilder_2_classLit = createForInterface('com.google.gwt.query.client.builders', 'JsonBuilder');
-function $getArrayBase(this$static, r, clazz){
- var a, c, i_0, l, w;
- a = $getArray(this$static.p, 'values');
- l = r.length;
- for (i_0 = 0; i_0 < l; i_0++) {
- w = $get_1(a, valueOf_2(i_0));
- c = getClass__Ljava_lang_Class___devirtual$(w);
- do {
- if (c == clazz) {
- setCheck(r, i_0, w);
- break;
- }
- c = c.superclass;
- }
- while (c);
- }
- return r;
-}
-
-function $load(this$static, prp){
- if (prp != null && isJavaString(prp)) {
- return $load(this$static, parseJSON(dynamicCastToString(prp)));
- }
- prp != null && (this$static.p = dynamicCastJso(prp));
- return this$static;
-}
-
-function $setArrayBase(this$static, n, r){
- var a, o, o$index, o$max;
- if (r.length > 0 && instanceOf(r[0], 53)) {
- a = [];
- for (o$index = 0 , o$max = r.length; o$index < o$max; ++o$index) {
- o = r[o$index];
- $push(a, dynamicCast(o, 53).getDataImpl());
- }
- $set(this$static.p, n, a);
- }
- else {
- a = [];
- $add_0(a, r);
- $set(this$static.p, n, a);
- }
-}
-
-function JsonBuilderBase(){
- this.p = {};
-}
-
-defineClass(56, 1, $intern_22);
-_.getDataImpl = function(){
- return this.p;
-}
-;
-_.load = function(prp){
- return $load(this, prp);
-}
-;
-_.parse_0 = function(json, fix){
- return fix?$load(this, parseJSON((ret = $replaceAll($replaceAll($replaceAll($replaceAll($replaceAll($replaceAll($replaceAll($replaceAll($replaceAll($replaceAll($replaceAll($replaceAll($replaceFirst($replaceAll($replaceAll($replaceAll(json, '\\s*/\\*[\\s\\S]*?\\*/\\s*', ''), '([:\\)\\(,;}{\'"])\\s+', '$1'), '\\s+([:\\)\\(,;}{\'"])', '$1'), '^[\\(]+(.*)[\\)]+$', '$1'), '\\(["\']([^\\)]+)["\']\\)', '($1)'), '[;,]+([\\w-\\$]+:|$)', ';$1'), '([^,;])([\\]}])', '$1;$2'), ':\\s*["\']?([^;\\{\\}\\[\\]"\']*)["\']?\\s*([;,]+|$)', ':"$1";'), '[;,]+([\\w-]+):', ';$1:'), "(^|[^\\w-\\$'])([\\w-\\$]+):(['\"\\[{])", '$1"$2":$3'), "(^|[^\\w-\\$'])([\\w-\\$]+):(['\"\\[{])", '$1"$2":$3'), "(|[\\[\\]\\{\\},\\(])'([^']*)'", '$1"$2"'), ';([^:]+):', ',$1:'), ';([^:]+):', ',$1:'), ':"(-?\\d[\\d\\.]*|null|false|true)"[;,]', ':$1,'), '[;,]+([\\]\\}]|$)', '$1') , $matches(ret, '(^[\\[\\{].*[\\]\\}]$)')?ret:'{' + ret + '}'))):$load(this, parseJSON(json));
-}
-;
-_.set_0 = function(key, val){
- return val != null && (!isJavaString(val) && !hasTypeMarker(val) || canCast(val, 52))?$set(this.p, key, getDataImpl__Ljava_lang_Object___devirtual$((checkType(val == null || !isJavaString(val) && !hasTypeMarker(val) || canCast(val, 52)) , val))):$set(this.p, key, val) , this;
-}
-;
-_.toString$ = function(){
- return $JSON2String(this.p);
-}
-;
-var Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit = createForClass('com.google.gwt.query.client.builders', 'JsonBuilderBase', 56, Ljava_lang_Object_2_classLit);
-function JsonBuilder_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(472, 56, $intern_22, JsonBuilder_JsonBuilder);
-var Lcom_google_gwt_query_client_builders_JsonBuilder_1JsonBuilder_2_classLit = createForClass('com.google.gwt.query.client.builders', 'JsonBuilder_JsonBuilder', 472, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $create(clz){
- if (clz == Lcom_google_gwt_query_client_builders_JsonBuilder_2_classLit)
- return new JsonBuilder_JsonBuilder;
- if (clz == Lcom_google_gwt_query_client_plugin_Observe$MutationObserverInit_2_classLit)
- return new Observe_MutationObserverInit_JsonBuilder;
- if (clz == Lcom_google_gwt_query_client_plugin_Observe$MutationRecords_2_classLit)
- return new Observe_MutationRecords_JsonBuilder;
- if (clz == Lcom_google_gwt_query_client_plugin_Observe$MutationRecords$MutationRecord_2_classLit)
- return new Observe_MutationRecords_MutationRecord_JsonBuilder;
- if (clz == Lcom_google_gwt_query_client_plugins_ajax_Ajax$Settings_2_classLit)
- return new Ajax_Settings_JsonBuilder;
- if (clz == Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_2_classLit)
- return new GData_JsonBuilder;
- if (clz == Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf_2_classLit)
- return new GData_GAjaxConf_JsonBuilder;
- if (clz == Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf$GAjaxResponse_2_classLit)
- return new GData_GAjaxConf_GAjaxResponse_JsonBuilder;
- if (clz == Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf$GAjaxResponse$GAjaxColumn_2_classLit)
- return new GData_GAjaxConf_GAjaxResponse_GAjaxColumn_JsonBuilder;
- if (clz == Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn_2_classLit)
- return new GData_GColumn_JsonBuilder;
- if (clz == Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader_2_classLit)
- return new GData_GColumn_GHeader_JsonBuilder;
- return null;
-}
-
-function JsonFactory_JsonBuilder(){
-}
-
-defineClass(38, 1, {}, JsonFactory_JsonBuilder);
-var Lcom_google_gwt_query_client_builders_JsonFactory_1JsonBuilder_2_classLit = createForClass('com.google.gwt.query.client.builders', 'JsonFactory_JsonBuilder', 38, Ljava_lang_Object_2_classLit);
-function $clinit_AttributeImpl(){
- $clinit_AttributeImpl = emptyMethod;
- BOOLEAN_ATTR_REGEX = new RegExp('^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$', 'i');
-}
-
-function $getAttributeSetter(key){
- if ($equalsIgnoreCase('type', key)) {
- return $clinit_AttributeImpl$TypeAttrSetter() , !INSTANCE_3 && (INSTANCE_3 = new AttributeImpl$TypeAttrSetter) , $clinit_AttributeImpl$TypeAttrSetter() , INSTANCE_3;
- }
- else if ($equals_2('id', key)) {
- return !INSTANCE_2 && (INSTANCE_2 = new AttributeImpl$IdAttrSetter) , INSTANCE_2;
- }
- else if ($equals_2('value', key)) {
- return !INSTANCE_4 && (INSTANCE_4 = new AttributeImpl$ValueAttrSetter) , INSTANCE_4;
- }
- else if ($test(BOOLEAN_ATTR_REGEX, key)) {
- return !INSTANCE_1 && (INSTANCE_1 = new AttributeImpl$BooleanAttrSetter) , INSTANCE_1;
- }
- return !INSTANCE_0 && (INSTANCE_0 = new AttributeImpl$DefaultSetter) , INSTANCE_0;
-}
-
-function $removeAttribute_0(gQuery, key){
- var e, e$array, e$index, e$max;
- for (e$array = gQuery.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- if (e.nodeType != 1) {
- continue;
- }
- hasProperty(e, key) && ($test(BOOLEAN_ATTR_REGEX, key)?$setPropertyBoolean(e, key, false):$setPropertyObject(e, key, null));
- $removeAttribute(e, key);
- }
-}
-
-function $setAttribute_0(gQuery, key, value_0){
- var e, e$array, e$index, e$max, nodeType, setter;
- setter = $getAttributeSetter(key);
- if (setter.isRemoval(value_0)) {
- $removeAttribute_0((!($clinit_GQuery() , attributeImpl) && (attributeImpl = new AttributeImpl) , gQuery), key);
- return;
- }
- value_0 = value_0;
- for (e$array = gQuery.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- nodeType = e.nodeType;
- if (nodeType == 3 || nodeType == 8 || nodeType == 2) {
- continue;
- }
- setter.setAttribute_0(e, key, value_0);
- }
-}
-
-function AttributeImpl(){
- $clinit_AttributeImpl();
-}
-
-defineClass(193, 1, {}, AttributeImpl);
-var BOOLEAN_ATTR_REGEX;
-var Lcom_google_gwt_query_client_impl_AttributeImpl_2_classLit = createForClass('com.google.gwt.query.client.impl', 'AttributeImpl', 193, Ljava_lang_Object_2_classLit);
-function $setAttribute_1(e, key, value_0){
- $setAttribute(e, key, '' + value_0);
-}
-
-function AttributeImpl$DefaultSetter(){
-}
-
-defineClass(513, 1, {}, AttributeImpl$DefaultSetter);
-_.isRemoval = function(value_0){
- return value_0 == null;
-}
-;
-_.setAttribute_0 = function(e, key, value_0){
- $setAttribute_1(e, key, value_0);
-}
-;
-var INSTANCE_0;
-var Lcom_google_gwt_query_client_impl_AttributeImpl$DefaultSetter_2_classLit = createForClass('com.google.gwt.query.client.impl', 'AttributeImpl/DefaultSetter', 513, Ljava_lang_Object_2_classLit);
-function AttributeImpl$BooleanAttrSetter(){
-}
-
-defineClass(515, 513, {}, AttributeImpl$BooleanAttrSetter);
-_.isRemoval = function(value_0){
- return value_0 == null || $equals_0(($clinit_Boolean() , FALSE), value_0);
-}
-;
-_.setAttribute_0 = function(e, key, value_0){
- hasProperty(e, key) && $setPropertyBoolean(e, key, true);
- $setAttribute_1(e, key, key.toLowerCase());
-}
-;
-var INSTANCE_1;
-var Lcom_google_gwt_query_client_impl_AttributeImpl$BooleanAttrSetter_2_classLit = createForClass('com.google.gwt.query.client.impl', 'AttributeImpl/BooleanAttrSetter', 515, Lcom_google_gwt_query_client_impl_AttributeImpl$DefaultSetter_2_classLit);
-function AttributeImpl$IdAttrSetter(){
-}
-
-defineClass(516, 513, {}, AttributeImpl$IdAttrSetter);
-_.setAttribute_0 = function(e, key, value_0){
- $setId(e, value_0 == null?null:isJavaString(value_0)?value_0:hasJavaObjectVirtualDispatch(value_0)?value_0.toString$():isJavaArray(value_0)?$toString(value_0):value_0.toString?value_0.toString():'[JavaScriptObject]');
- $setAttribute(e, key, '' + value_0);
-}
-;
-var INSTANCE_2;
-var Lcom_google_gwt_query_client_impl_AttributeImpl$IdAttrSetter_2_classLit = createForClass('com.google.gwt.query.client.impl', 'AttributeImpl/IdAttrSetter', 516, Lcom_google_gwt_query_client_impl_AttributeImpl$DefaultSetter_2_classLit);
-function $clinit_AttributeImpl$TypeAttrSetter(){
- $clinit_AttributeImpl$TypeAttrSetter = emptyMethod;
- NOT_AUTHORIZED_NODE = new RegExp('^(?:button|input)$', 'i');
-}
-
-function AttributeImpl$TypeAttrSetter(){
- $clinit_AttributeImpl$TypeAttrSetter();
-}
-
-defineClass(517, 513, {}, AttributeImpl$TypeAttrSetter);
-_.setAttribute_0 = function(e, name_0, value_0){
- var ie, keepValue, tag;
- tag = e.nodeName;
- if ($test(NOT_AUTHORIZED_NODE, tag) && $parents(($clinit_GQuery() , new GQuery_0(e)), initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['body'])).elements.length > 0) {
- throw new RuntimeException_0('You cannot change type of button or input element if the element is already attached to the dom');
- }
- if ($equals_2('input', tag.toLowerCase()) && $equals_2('radio', value_0)) {
- ie = e;
- keepValue = ie.value;
- $setAttribute(ie, 'type', '' + value_0);
- ie.value = keepValue;
- }
- else {
- $setAttribute(e, name_0, '' + value_0);
- }
-}
-;
-var INSTANCE_3, NOT_AUTHORIZED_NODE;
-var Lcom_google_gwt_query_client_impl_AttributeImpl$TypeAttrSetter_2_classLit = createForClass('com.google.gwt.query.client.impl', 'AttributeImpl/TypeAttrSetter', 517, Lcom_google_gwt_query_client_impl_AttributeImpl$DefaultSetter_2_classLit);
-function AttributeImpl$ValueAttrSetter(){
-}
-
-defineClass(514, 513, {}, AttributeImpl$ValueAttrSetter);
-_.setAttribute_0 = function(e, key, value_0){
- $setPropertyObject(e, 'value', '' + value_0);
- $setAttribute(e, key, '' + value_0);
-}
-;
-var INSTANCE_4;
-var Lcom_google_gwt_query_client_impl_AttributeImpl$ValueAttrSetter_2_classLit = createForClass('com.google.gwt.query.client.impl', 'AttributeImpl/ValueAttrSetter', 514, Lcom_google_gwt_query_client_impl_AttributeImpl$DefaultSetter_2_classLit);
-function $error(this$static, arg){
- this$static.impl.error_0($toJs(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [arg])));
-}
-
-function $toJs(arg){
- var o, o$index, o$max, ret;
- ret = [];
- for (o$index = 0 , o$max = arg.length; o$index < o$max; ++o$index) {
- o = arg[o$index];
- $add_0(ret, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [o]));
- }
- return ret;
-}
-
-function ConsoleBrowser(){
- this.impl = ($clinit_GQuery() , browser).ie8?new ConsoleBrowser$ConsoleIe8:browser.ie9?new ConsoleBrowser$ConsoleIe9:new ConsoleBrowser$ConsoleImpl;
-}
-
-defineClass(341, 1, {}, ConsoleBrowser);
-var Lcom_google_gwt_query_client_impl_ConsoleBrowser_2_classLit = createForClass('com.google.gwt.query.client.impl', 'ConsoleBrowser', 341, Ljava_lang_Object_2_classLit);
-function $error_0(arg){
- $wnd.console.error.apply($wnd.console, arg);
-}
-
-function $log(arg){
- $wnd.console.log.apply($wnd.console, arg);
-}
-
-function ConsoleBrowser$ConsoleImpl(){
-}
-
-defineClass(342, 1, {}, ConsoleBrowser$ConsoleImpl);
-_.error_0 = function(arg){
- $error_0(arg);
-}
-;
-var Lcom_google_gwt_query_client_impl_ConsoleBrowser$ConsoleImpl_2_classLit = createForClass('com.google.gwt.query.client.impl', 'ConsoleBrowser/ConsoleImpl', 342, Ljava_lang_Object_2_classLit);
-function ConsoleBrowser$ConsoleIe9(){
- this.init();
-}
-
-defineClass(165, 342, {}, ConsoleBrowser$ConsoleIe9);
-_.error_0 = function(arg){
- this.initialized && $error_0(arg);
-}
-;
-_.init = function init_1(){
- try {
- ['log', 'info', 'warn', 'error', 'dir', 'clear', 'profile', 'profileEnd'].forEach(function(method){
- $wnd.console[method] = this.call($wnd.console[method], $wnd.console);
- }
- , Function.prototype.bind);
- this.initialized = true;
- }
- catch (e) {
- }
-}
-;
-_.initialized = false;
-var Lcom_google_gwt_query_client_impl_ConsoleBrowser$ConsoleIe9_2_classLit = createForClass('com.google.gwt.query.client.impl', 'ConsoleBrowser/ConsoleIe9', 165, Lcom_google_gwt_query_client_impl_ConsoleBrowser$ConsoleImpl_2_classLit);
-function ConsoleBrowser$ConsoleIe8(){
- ConsoleBrowser$ConsoleIe9.call(this);
-}
-
-defineClass(343, 165, {}, ConsoleBrowser$ConsoleIe8);
-_.init = function init_2(){
- try {
- Function.prototype.call.call($wnd.console.log, $wnd.console, Array.prototype.slice.call(arguments));
- this.initialized = true;
- }
- catch (e) {
- }
-}
-;
-var Lcom_google_gwt_query_client_impl_ConsoleBrowser$ConsoleIe8_2_classLit = createForClass('com.google.gwt.query.client.impl', 'ConsoleBrowser/ConsoleIe8', 343, Lcom_google_gwt_query_client_impl_ConsoleBrowser$ConsoleIe9_2_classLit);
-function $clinit_DocumentStyleImpl(){
- $clinit_DocumentStyleImpl = emptyMethod;
- cssNumberRegex = new RegExp('^(fillOpacity|fontWeight|lineHeight|opacity|orphans|widows|zIndex|zoom)$', 'i');
- sizeRegex = new RegExp('^(client|offset|)(width|height)$', 'i');
-}
-
-function $curCSS(this$static, elem, name_0, force){
- var ret, toDetach, lastParent, o;
- if (!elem) {
- return '';
- }
- name_0 = $fixPropertyName(name_0);
- ret = $getProperty(elem.style, name_0);
- if (force) {
- toDetach = null;
- isDetached(elem) && (toDetach = (lastParent = $get($last($parentsUntil(($clinit_GQuery() , new GQuery_0(elem)))), 0) , !lastParent && (lastParent = elem) , $appendChild($doc.body, lastParent) , lastParent));
- $test(sizeRegex, name_0)?(ret = $getVisibleSize(this$static, elem, name_0) + 'px'):$equalsIgnoreCase('opacity', name_0)?(ret = '' + (o = $getOpacity(elem.style) , truth(o)?$num(o):1)):(ret = $getComputedStyle(elem, name_0.replace(/([A-Z])/g, '-$1').toLowerCase(), null));
- !!toDetach && $removeFromParent(toDetach);
- }
- return ret == null?'':ret;
-}
-
-function $fixInlineElement(this$static, e){
- if ((e.clientHeight | 0) == 0 && (e.clientWidth | 0) == 0 && $equals_2('inline', $curCSS(this$static, e, 'display', true))) {
- $setStyleProperty(e, 'display', 'inline-block');
- $setStyleProperty(e, 'width', 'auto');
- $setStyleProperty(e, 'height', 'auto');
- }
-}
-
-function $fixPropertyName(name_0){
- if ($equalsIgnoreCase('float', name_0)) {
- return 'cssFloat';
- }
- else if ($equalsIgnoreCase('for', name_0)) {
- return 'htmlFor';
- }
- return camelize(name_0);
-}
-
-function $getComputedStyle(elem, hyphenName, pseudo){
- try {
- var cStyle = $doc.defaultView.getComputedStyle(elem, pseudo);
- return cStyle && cStyle.getPropertyValue?cStyle.getPropertyValue(hyphenName):null;
- }
- catch (e) {
- return null;
- }
-}
-
-function $getSize(this$static, e, name_0){
- var ret;
- ret = 0;
- $equals_2('width', name_0)?(ret = ($fixInlineElement(this$static, e) , round_int((e.clientWidth | 0) - $num($curCSS(this$static, e, 'paddingLeft', true)) - $num($curCSS(this$static, e, 'paddingRight', true))))):$equals_2('height', name_0)?(ret = ($fixInlineElement(this$static, e) , round_int((e.clientHeight | 0) - $num($curCSS(this$static, e, 'paddingTop', true)) - $num($curCSS(this$static, e, 'paddingBottom', true))))):$equals_2('clientWidth', name_0)?(ret = e.clientWidth | 0):$equals_2('clientHeight', name_0)?(ret = e.clientHeight | 0):$equals_2('offsetWidth', name_0)?(ret = $getSubPixelOffsetWidth(e) | 0):$equals_2('offsetHeight', name_0) && (ret = $getSubPixelOffsetHeight(e) | 0);
- return ret;
-}
-
-function $getVisibleSize(this$static, e, name_0){
- var display, position, ret, visibility;
- if (dynamicCast($get_3(($clinit_SelectorEngine() , filters_0), getHashCode_0('visible')), 48).f_2(e, 0)) {
- ret = $getSize(this$static, e, name_0);
- }
- else {
- display = $curCSS(this$static, e, 'display', false);
- position = $curCSS(this$static, e, 'position', false);
- visibility = $curCSS(this$static, e, 'visibility', false);
- $setStyleProperty(e, 'display', 'block');
- $setStyleProperty(e, 'position', 'absolute');
- $setStyleProperty(e, 'visibility', 'hidden');
- ret = $getSize(this$static, e, name_0);
- $setStyleProperty(e, 'display', display);
- $setStyleProperty(e, 'position', position);
- $setStyleProperty(e, 'visibility', visibility);
- }
- return ret;
-}
-
-function $num(val){
- val = $replaceAll($trim(val), '[^\\d\\.\\-]+.*$', '');
- return truth(val)?__parseAndValidateDouble(val):0;
-}
-
-function $setStyleProperty(e, prop, val){
- if (!e || prop == null) {
- return;
- }
- prop = $fixPropertyName(prop);
- $matches(prop, '^[A-Z]+$') && (prop = prop.toLowerCase());
- prop = camelize(prop);
- if (val == null || $trim(val).length == 0) {
- $setPropertyImpl(e.style, prop, '');
- }
- else {
- $matches(val, '-?[\\d\\.]+') && !$test(cssNumberRegex, prop) && (val += 'px');
- $setPropertyImpl(e.style, prop, val);
- }
-}
-
-function DocumentStyleImpl(){
- $clinit_DocumentStyleImpl();
-}
-
-defineClass(398, 1, {}, DocumentStyleImpl);
-var cssNumberRegex, sizeRegex;
-var Lcom_google_gwt_query_client_impl_DocumentStyleImpl_2_classLit = createForClass('com.google.gwt.query.client.impl', 'DocumentStyleImpl', 398, Ljava_lang_Object_2_classLit);
-function $clinit_SelectorEngine(){
- $clinit_SelectorEngine = emptyMethod;
- $doc.location.href.indexOf('_force_no_native') < 0 && typeof $doc.querySelectorAll == 'function';
- filters_0 = {};
- $put_0(filters_0, 'visible', new SelectorEngine$1);
- $put_0(filters_0, 'hidden', new SelectorEngine$2);
- $put_0(filters_0, 'selected', new SelectorEngine$3);
- $put_0(filters_0, 'input', new SelectorEngine$4);
- $put_0(filters_0, 'header', new SelectorEngine$5);
-}
-
-function $filter_1(nodes, p){
- var e, i_0, j, l, res;
- res = create_4(null);
- for (i_0 = 0 , l = nodes.length , j = 0; i_0 < l; i_0++) {
- e = nodes[i_0];
- p.f_2(e, i_0) && $addNode_0(res, e, j++);
- }
- return res;
-}
-
-function $filter_2(this$static, nodes, selector){
- return $filter_3(this$static, nodes, selector, this$static.filterDetached);
-}
-
-function $filter_3(this$static, nodes, selector, filterDetached){
- var e, e$iterator, el, elmList, ghostParent, i_0, i0, l, l0, n, p, parents, res;
- res = create_4(null);
- if (!selector.length) {
- return res;
- }
- ghostParent = null;
- parents = new HashSet;
- elmList = new HashSet;
- for (i0 = 0 , l0 = nodes.length; i0 < l0; i0++) {
- e = nodes[i0];
- if (e == ($clinit_GQuery() , window_1) || e == document_0 || e.nodeName == null || $equalsIgnoreCase('html', e.nodeName)) {
- continue;
- }
- $add_7(elmList, e);
- if (filterDetached) {
- p = $getParentElement_0(($clinit_DOMImpl() , e));
- if (!p) {
- if (!ghostParent) {
- ghostParent = $createDivElement($doc);
- $add_7(parents, ghostParent);
- }
- p = ghostParent;
- p.appendChild(e);
- }
- else
- parents.map_0.containsKey(p) || $add_7(parents, p);
- }
- else
- parents.map_0.size_2() == 0 && $add_7(parents, document_0);
- }
- for (e$iterator = $iterator(new AbstractMap$1(parents.map_0)); e$iterator.val$outerIter2.hasNext();) {
- e = dynamicCastJso($next_3(e$iterator));
- n = $select_0(this$static, selector, e);
- for (i_0 = 0 , l = n.length; i_0 < l; i_0++) {
- el = n[i_0];
- elmList.map_0.remove_2(el) != null && $add_0(res, initValues(getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1), $intern_4, 0, 2, [el]));
- }
- }
- !!ghostParent && $setInnerHTML(ghostParent, null);
- return res;
-}
-
-function $select_0(this$static, selector, ctx){
- var a, nodes, pred, pseudo, r, res, s, s$array, s$index, s$max, select;
- if ($test(this$static.nativePseudo, selector)) {
- while (r = $exec_0(this$static.nativePseudo, selector)) {
- selector = r[1] + ':' + r[3];
- $equals_2(r[3], r[2]) || (selector += ':' + r[2]);
- selector += r[4];
- }
- }
- if ($test(this$static.gQueryPseudo, selector)) {
- res = create_4(null);
- for (s$array = $split($trim(selector), '\\s*,\\s*', 0) , s$index = 0 , s$max = s$array.length; s$index < s$max; ++s$index) {
- s = s$array[s$index];
- a = $exec_0(this$static.gQueryPseudo, s);
- if (a) {
- select = !a[1].length?'*':a[1];
- pseudo = a[2];
- pred = dynamicCast($get_3(filters_0, getHashCode_0(pseudo.toLowerCase())), 48);
- pred?(nodes = $filter_1($select_0(this$static, select, ctx), pred)):$test(this$static.nativePseudo, pseudo)?(nodes = $select_0(this$static, select, ctx)):(nodes = $select_0(this$static, select + '[type=' + pseudo + ']', ctx));
- }
- else {
- nodes = $select_0(this$static, s, ctx);
- }
- copyNodeList(res, nodes, false);
- }
- return res;
- }
- else {
- return $select_1(selector, ctx);
- }
-}
-
-function SelectorEngine(){
- $clinit_SelectorEngine();
- this.gQueryPseudo = new RegExp('(.*):((visible|hidden|selected|input|header)|((button|checkbox|file|hidden|image|password|radio|reset|submit|text)\\s*(,|$)))(.*)', 'i');
- this.nativePseudo = new RegExp('(.*):([\\w]+):(disabled|checked|enabled|empty|focus)\\s*([:,].*|$)', 'i');
- $ensureNamesAreInitialized(Lcom_google_gwt_query_client_impl_SelectorEngineNativeMin_2_classLit);
- styleImpl_0 = new DocumentStyleImpl;
- $ensureNamesAreInitialized(Lcom_google_gwt_query_client_impl_DocumentStyleImpl_2_classLit);
-}
-
-defineClass(113, 1, {}, SelectorEngine);
-_.filterDetached = true;
-var filters_0, styleImpl_0;
-var Lcom_google_gwt_query_client_impl_SelectorEngine_2_classLit = createForClass('com.google.gwt.query.client.impl', 'SelectorEngine', 113, Ljava_lang_Object_2_classLit);
-function SelectorEngine$1(){
-}
-
-defineClass(424, 48, $intern_21, SelectorEngine$1);
-_.f_2 = function(e, index_0){
- return ($getSubPixelOffsetWidth(e) | 0) + ($getSubPixelOffsetHeight(e) | 0) > 0 && !$equalsIgnoreCase('none', $curCSS(($clinit_SelectorEngine() , styleImpl_0), e, 'display', true));
-}
-;
-var Lcom_google_gwt_query_client_impl_SelectorEngine$1_2_classLit = createForClass('com.google.gwt.query.client.impl', 'SelectorEngine/1', 424, Lcom_google_gwt_query_client_Predicate_2_classLit);
-function SelectorEngine$2(){
-}
-
-defineClass(425, 48, $intern_21, SelectorEngine$2);
-_.f_2 = function(e, index_0){
- return !dynamicCast($get_3(($clinit_SelectorEngine() , filters_0), getHashCode_0('visible')), 48).f_2(e, index_0);
-}
-;
-var Lcom_google_gwt_query_client_impl_SelectorEngine$2_2_classLit = createForClass('com.google.gwt.query.client.impl', 'SelectorEngine/2', 425, Lcom_google_gwt_query_client_Predicate_2_classLit);
-function SelectorEngine$3(){
-}
-
-defineClass(426, 48, $intern_21, SelectorEngine$3);
-_.f_2 = function(e, index_0){
- return !!e['selected'];
-}
-;
-var Lcom_google_gwt_query_client_impl_SelectorEngine$3_2_classLit = createForClass('com.google.gwt.query.client.impl', 'SelectorEngine/3', 426, Lcom_google_gwt_query_client_Predicate_2_classLit);
-function SelectorEngine$4(){
-}
-
-defineClass(427, 48, $intern_21, SelectorEngine$4);
-_.f_2 = function(e, index_0){
- return $matches(e.nodeName.toLowerCase(), 'input|select|textarea|button');
-}
-;
-var Lcom_google_gwt_query_client_impl_SelectorEngine$4_2_classLit = createForClass('com.google.gwt.query.client.impl', 'SelectorEngine/4', 427, Lcom_google_gwt_query_client_Predicate_2_classLit);
-function SelectorEngine$5(){
-}
-
-defineClass(428, 48, $intern_21, SelectorEngine$5);
-_.f_2 = function(e, index_0){
- return $matches(e.nodeName.toLowerCase(), 'h\\d');
-}
-;
-var Lcom_google_gwt_query_client_impl_SelectorEngine$5_2_classLit = createForClass('com.google.gwt.query.client.impl', 'SelectorEngine/5', 428, Lcom_google_gwt_query_client_Predicate_2_classLit);
-var Lcom_google_gwt_query_client_impl_SelectorEngineImpl_2_classLit = createForClass('com.google.gwt.query.client.impl', 'SelectorEngineImpl', null, Ljava_lang_Object_2_classLit);
-function $select_1(selector, ctx){
- var e;
- try {
- return $clinit_SelectorEngine() , ctx.querySelectorAll(selector);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- e = $e0;
- $error(($clinit_GQuery() , console_0), "GwtQuery: Selector '" + selector + "' is unsupported in this SelectorEngineNativeMin engine." + ' Do not use this syntax or configure your module to use a JS fallback. ' + e.getMessage());
- return null;
- }
- else
- throw unwrap($e0);
- }
-}
-
-var Lcom_google_gwt_query_client_impl_SelectorEngineNativeMin_2_classLit = createForClass('com.google.gwt.query.client.impl', 'SelectorEngineNativeMin', null, Lcom_google_gwt_query_client_impl_SelectorEngineImpl_2_classLit);
-function $clear(this$static){
- var k_0, k$array, k$index, k$max;
- for (k$array = $keys(this$static) , k$index = 0 , k$max = k$array.length; k$index < k$max; ++k$index) {
- k_0 = k$array[k$index];
- $delete(this$static, k_0);
- }
-}
-
-function $delete(this$static, name_0){
- delete this$static[name_0];
-}
-
-function $get_1(this$static, id_0){
- return gwtBox([this$static && this$static[id_0]]);
-}
-
-function $get_2(this$static, id_0, clz){
- var d, o;
- o = $get_1(this$static, id_0);
- if (o != null && !!clz) {
- if (instanceOf(o, 15)) {
- d = dynamicCast(o, 15);
- clz == Ljava_lang_Float_2_classLit?(o = new Float(d.value_0)):clz == Ljava_lang_Integer_2_classLit?(o = valueOf_2(round_int(d.value_0))):clz == Ljava_lang_Long_2_classLit?(o = valueOf_3(fromDouble(d.value_0))):clz == Ljava_lang_Short_2_classLit?(o = valueOf_4(round_short(d.value_0))):clz == Ljava_lang_Byte_2_classLit && (o = valueOf_1(round_byte(d.value_0)));
- }
- else
- clz == Ljava_lang_Boolean_2_classLit && !instanceOf(o, 42)?(o = ($clinit_Boolean() , $equalsIgnoreCase('true', '' + o)?TRUE:FALSE)):clz == Ljava_lang_String_2_classLit && !isJavaString(o) && (o = '' + o);
- }
- return o;
-}
-
-function $getArray_0(this$static, id_0){
- var r = this$static[id_0];
- if (Object.prototype.toString.call(r) == '[object Array]') {
- return r;
- }
- return null;
-}
-
-function $getBoolean(this$static){
- var r;
- r = dynamicCast($get_2(this$static, 'withCredentials', Ljava_lang_Boolean_2_classLit), 42);
- return !!r && r.value_0;
-}
-
-function $getDouble(this$static, id_0){
- var r;
- r = dynamicCast($get_2(this$static, id_0, Ljava_lang_Double_2_classLit), 15);
- return !r?0:r.value_0;
-}
-
-function $getJavaScriptObject_0(this$static, name_0){
- var o;
- o = $get_1(this$static, name_0);
- return o != null && instanceOfJso(o)?dynamicCastJso(o):null;
-}
-
-function $getString_0(this$static, id_0){
- return this$static[id_0] == null?null:String(this$static[id_0]);
-}
-
-function $isEmpty(this$static){
- for (k in this$static) {
- if (this$static.hasOwnProperty(k))
- return false;
- }
- return true;
-}
-
-function $keys(this$static){
- var a, i_0, ret;
- a = $keysImpl(this$static);
- ret = initDim(Ljava_lang_String_2_classLit, $intern_4, 2, a.length, 4, 1);
- for (i_0 = 0; i_0 < a.length; i_0++) {
- ret[i_0] = a[i_0];
- }
- return ret;
-}
-
-function $keysImpl(this$static){
- var key, keys_0 = [];
- for (key in this$static) {
- this$static.hasOwnProperty(key) && key != '__gwt_ObjectId' && key != '$H' && keys_0.push(String(key));
- }
- return keys_0;
-}
-
-function $length(this$static){
- if (typeof this$static.length == 'number')
- return this$static.length;
- var key, ret = 0;
- for (key in this$static) {
- key != '__gwt_ObjectId' && ret++;
- }
- return ret;
-}
-
-function $put(this$static, id_0, obj){
- instanceOf(obj, 42)?$putBoolean(this$static, id_0, dynamicCast(obj, 42).value_0):instanceOf(obj, 55)?$putNumber(this$static, id_0, dynamicCast(obj, 55).doubleValue()):(this$static[id_0] = obj , this$static);
- return this$static;
-}
-
-function $putBoolean(this$static, id_0, b){
- this$static[id_0] = b;
- return this$static;
-}
-
-function $putNumber(this$static, id_0, n){
- this$static[id_0] = n;
- return this$static;
-}
-
-function gwtBox(oneElementArray){
- var r = oneElementArray;
- if (typeof r == 'object' && r.length == 1) {
- var r = r[0], t = typeof r;
- if (t == 'boolean')
- return $clinit_Boolean() , r?TRUE:FALSE;
- if (t == 'number')
- return new Double(r);
- }
- return r || null;
-}
-
-function $get_3(this$static, hashCode){
- return $get_1(this$static, valueOf_2(hashCode));
-}
-
-function $put_0(this$static, key, val){
- $put(this$static, valueOf_2(hashCode__I__devirtual$(key)), val);
-}
-
-function $get_4(this$static, key){
- return $get_1(this$static, key);
-}
-
-function $put_1(this$static, key, val){
- $put(this$static, key, val);
-}
-
-function $addNode(this$static, n){
- $add_0(this$static, initValues(getClassLiteralForArray(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, 1), $intern_4, 0, 2, [n]));
-}
-
-function $addNode_0(this$static, n, i_0){
- $put(this$static, valueOf_2(i_0), n);
-}
-
-function create_4(node){
- return node?[node]:[];
-}
-
-function $add_0(this$static, vals){
- var t, t$index, t$max;
- for (t$index = 0 , t$max = vals.length; t$index < t$max; ++t$index) {
- t = vals[t$index];
- instanceOf(t, 55)?$putNumber(this$static, valueOf_2($length(this$static)), dynamicCast(t, 55).doubleValue()):instanceOf(t, 42)?$putBoolean(this$static, valueOf_2($length(this$static)), dynamicCast(t, 42).value_0):$put(this$static, valueOf_2($length(this$static)), t);
- }
- return this$static;
-}
-
-function camelize(s){
- return s.replace(/\-(\w)/g, function(all, letter){
- return letter.toUpperCase();
- }
- );
-}
-
-function copyNodeList(oldNodes, newNodes, create){
- var e, i_0, i0, idlist, j, l, ret;
- ret = !oldNodes || create?create_4(null):oldNodes;
- idlist = {};
- for (i0 = 0; !!oldNodes && i0 < oldNodes.length; i0++) {
- e = oldNodes[i0];
- $put(idlist, valueOf_2(getHashCode(e)), valueOf_2(1));
- create && $addNode_0(ret, e, i0);
- }
- for (i_0 = 0 , l = newNodes.length , j = ret.length; i_0 < l; i_0++) {
- e = newNodes[i_0];
- !!idlist[valueOf_2(getHashCode(e))] || $addNode_0(ret, newNodes[i_0], j++);
- }
- return ret;
-}
-
-function hasProperty(o, name_0){
- var p = name_0.split('.');
- for (var i_0 in p) {
- if (!(o && p[i_0] in o))
- return false;
- o = o[p[i_0]];
- }
- return true;
-}
-
-function isArray(o){
- return Object.prototype.toString.call(o) == '[object Array]' || typeof o.length == 'number';
-}
-
-function isDetached(n){
- if ($equalsIgnoreCase('html', n.nodeName)) {
- return false;
- }
- return !$isOrHasChild((!n || !isElement(n)?null:n.nodeType == 9?n:n.ownerDocument).body, n);
-}
-
-function isElement(o){
- return !!o && 'nodeType' in o && 'nodeName' in o;
-}
-
-function isFormData_0(o){
- return Object.prototype.toString.call(o) == '[object FormData]';
-}
-
-function isFunction(o){
- return Object.prototype.toString.call(o) == '[object Function]';
-}
-
-function param(js){
- var i_0, k_0, k$array, k$index, k$max, l, o, p, ret, v;
- ret = '';
- for (k$array = $keys(js) , k$index = 0 , k$max = k$array.length; k$index < k$max; ++k$index) {
- k_0 = k$array[k$index];
- ret += !ret.length?'':'&';
- o = $getArray_0(js, '' + k_0);
- if (o) {
- for (i_0 = 0 , l = $length(o); i_0 < l; i_0++) {
- ret += i_0 > 0?'&':'';
- p = $getJavaScriptObject_0(o, valueOf_2(i_0));
- p?(ret += k_0 + '[]=' + $JSON2String(p)):(ret += k_0 + '[]=' + $getString_0(o, valueOf_2(i_0)));
- }
- }
- else {
- p = $getJavaScriptObject_0(js, '' + k_0);
- if (p) {
- ret += k_0 + '=' + $JSON2String(p);
- }
- else {
- v = $getString_0(js, '' + k_0);
- v != null && !!v.length && !$equalsIgnoreCase('null', v) && (ret += k_0 + '=' + v);
- }
- }
- }
- return ret;
-}
-
-function parseJSON(json){
- try {
- return safeEval(json);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- return {};
- }
- else
- throw unwrap($e0);
- }
-}
-
-function prop_0(o, id_0){
- return !o?null:$get_1(o, id_0);
-}
-
-function prop_1(o, id_0, val){
- !!o && $put(o, id_0, val);
-}
-
-function runJavascriptFunction(o, meth, args){
- return runJavascriptFunctionImpl(o, meth, $add_0([], args));
-}
-
-function runJavascriptFunctionImpl(o, meth, args){
- var f = o || $wnd, p = meth.split('.');
- for (var i_0 in p) {
- o = f;
- f = f[p[i_0]];
- if (!f)
- return null;
- }
- return isFunction(f) && gwtBox([f.apply(o, args)]);
-}
-
-function truth(a){
- return a?true:false;
-}
-
-function wrapFunction(f){
- return function(r){
- var o = new ArrayList;
- for (i in arguments) {
- r = gwtBox([arguments[i]]);
- o.add_1(r);
- }
- o = o.toArray();
- f.setArguments(o);
- return f.fe_0(o);
- }
- ;
-}
-
-function $exec(f, data_0){
- return gwtBox([f(data_0)]);
-}
-
-function JsUtils$JsFunction(f){
- Function_0.call(this);
- this.jso = null;
- isFunction(f) && (this.jso = f);
-}
-
-defineClass(163, 7, $intern_20, JsUtils$JsFunction);
-_.equals$ = function(obj){
- return maskUndefined(this.jso) === maskUndefined(obj);
-}
-;
-_.execute_1 = function(){
- !!this.jso && $setArguments(this, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [$exec(this.jso, $getArgument(this, 0, null))]));
-}
-;
-_.f_0 = function(){
- !!this.jso && $setArguments(this, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [$exec(this.jso, $getArgument(this, 0, null))]));
-}
-;
-_.hashCode$ = function(){
- return getHashCode(this.jso);
-}
-;
-var Lcom_google_gwt_query_client_js_JsUtils$JsFunction_2_classLit = createForClass('com.google.gwt.query.client.js', 'JsUtils/JsFunction', 163, Lcom_google_gwt_query_client_Function_2_classLit);
-function $JSON2String(o){
- return $wnd.JSON.stringify(o);
-}
-
-function $parseXML(xml){
- return (new DOMParser).parseFromString(xml, 'text/xml').documentElement;
-}
-
-function $unique(a){
- var cache, e, i_0, id_0, ret;
- ret = [];
- cache = {};
- for (i_0 = 0; i_0 < a.length; i_0++) {
- e = a[i_0];
- id_0 = getHashCode(e);
- if (!cache[valueOf_2(id_0)]) {
- $putNumber(cache, valueOf_2(id_0), 1);
- $push(ret, e);
- }
- }
- return ret;
-}
-
-function $clinit_Events(){
- $clinit_Events = emptyMethod;
- $clinit_GQuery();
- registerPlugin(Lcom_google_gwt_query_client_plugins_Events_2_classLit, new Events$1);
-}
-
-function Events(gq){
- $clinit_Events();
- GQuery_2.call(this, gq);
-}
-
-defineClass(149, 8, {}, Events);
-var Lcom_google_gwt_query_client_plugins_Events_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'Events', 149, Lcom_google_gwt_query_client_GQuery_2_classLit);
-function $clinit_Observe(){
- $clinit_Observe = emptyMethod;
- $clinit_Events();
- Observe = registerPlugin(Lcom_google_gwt_query_client_plugin_Observe_2_classLit, new Observe$1);
-}
-
-function $observe(this$static, p, handler){
- var e, e$array, e$index, e$max;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- observeImpl(e, p, handler);
- }
- return this$static;
-}
-
-function $observe_0(this$static, init, f){
- return $observe(this$static, init.p, f);
-}
-
-function Observe_0(gq){
- $clinit_Observe();
- Events.call(this, gq);
-}
-
-function observeImpl(e, cfg, handler){
- if ($wnd.MutationObserver) {
- var observer = new $wnd.MutationObserver(function(mutations){
- onMutation(handler, mutations);
- }
- );
- (e.__gq_obs || (e.__gq_obs = [])).push(observer);
- observer.observe(e, cfg);
- }
- else {
- $wnd.console.log('ERROR: this browser does not support MutationObserver: ' + $wnd.navigator.userAgent);
- }
-}
-
-function onMutation(handler, mutations){
- var p;
- p = $set({}, 'mutations', mutations);
- instanceOf(handler, 7)?dynamicCast(handler, 7).f_1(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [p])):instanceOf(handler, 531) && dynamicCast(handler, 531).onMutation($mutations(dynamicCast(create_2(Lcom_google_gwt_query_client_plugin_Observe$MutationRecords_2_classLit, p), 582)));
-}
-
-defineClass(118, 149, {118:1}, Observe_0);
-var Observe;
-var Lcom_google_gwt_query_client_plugin_Observe_2_classLit = createForClass('com.google.gwt.query.client.plugin', 'Observe', 118, Lcom_google_gwt_query_client_plugins_Events_2_classLit);
-function Observe$1(){
-}
-
-defineClass(217, 1, $intern_23, Observe$1);
-_.init_0 = function(gq){
- return new Observe_0(gq);
-}
-;
-var Lcom_google_gwt_query_client_plugin_Observe$1_2_classLit = createForClass('com.google.gwt.query.client.plugin', 'Observe/1', 217, Ljava_lang_Object_2_classLit);
-var Lcom_google_gwt_query_client_plugin_Observe$MutationObserverInit_2_classLit = createForInterface('com.google.gwt.query.client.plugin', 'Observe/MutationObserverInit');
-var Lcom_google_gwt_query_client_plugin_Observe$MutationRecords_2_classLit = createForInterface('com.google.gwt.query.client.plugin', 'Observe/MutationRecords');
-var Lcom_google_gwt_query_client_plugin_Observe$MutationRecords$MutationRecord_2_classLit = createForInterface('com.google.gwt.query.client.plugin', 'Observe/MutationRecords/MutationRecord');
-function $attributes(this$static){
- $setBoolean(this$static.p, 'attributes');
- return this$static;
-}
-
-function $characterData(this$static){
- $setBoolean(this$static.p, 'characterData');
- return this$static;
-}
-
-function $childList(this$static){
- $setBoolean(this$static.p, 'childList');
- return this$static;
-}
-
-function $subtree(this$static){
- $setBoolean(this$static.p, 'subtree');
- return this$static;
-}
-
-function Observe_MutationObserverInit_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(473, 56, {52:1, 53:1, 581:1}, Observe_MutationObserverInit_JsonBuilder);
-var Lcom_google_gwt_query_client_plugin_Observe_1MutationObserverInit_1JsonBuilder_2_classLit = createForClass('com.google.gwt.query.client.plugin', 'Observe_MutationObserverInit_JsonBuilder', 473, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $mutations(this$static){
- var a, a1, i_0, instance, l, l1, r, w;
- a = $getArray(this$static.p, 'mutations');
- l = !a?0:a.length;
- r = initDim(Lcom_google_gwt_query_client_plugin_Observe$MutationRecords$MutationRecord_2_classLit, $intern_4, 532, l, 0, 1);
- a1 = $getArray(this$static.p, 'mutations');
- l1 = r.length;
- for (i_0 = 0; i_0 < l1; i_0++) {
- w = $get_1(a1, valueOf_2(i_0));
- instance = new Observe_MutationRecords_MutationRecord_JsonBuilder;
- setCheck(r, i_0, dynamicCast($load(instance, w), 532));
- }
- return new Arrays$ArrayList(r);
-}
-
-function Observe_MutationRecords_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(474, 56, {52:1, 53:1, 582:1}, Observe_MutationRecords_JsonBuilder);
-var Lcom_google_gwt_query_client_plugin_Observe_1MutationRecords_1JsonBuilder_2_classLit = createForClass('com.google.gwt.query.client.plugin', 'Observe_MutationRecords_JsonBuilder', 474, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function Observe_MutationRecords_MutationRecord_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(185, 56, {52:1, 53:1, 532:1}, Observe_MutationRecords_MutationRecord_JsonBuilder);
-var Lcom_google_gwt_query_client_plugin_Observe_1MutationRecords_1MutationRecord_1JsonBuilder_2_classLit = createForClass('com.google.gwt.query.client.plugin', 'Observe_MutationRecords_MutationRecord_JsonBuilder', 185, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $clinit_QueuePlugin(){
- $clinit_QueuePlugin = emptyMethod;
- $clinit_GQuery();
- Queue = registerPlugin(Lcom_google_gwt_query_client_plugins_QueuePlugin_2_classLit, new QueuePlugin$1);
- $ensureNamesAreInitialized(Lcom_google_gwt_query_client_plugins_QueuePlugin_2_classLit);
- QUEUE_DATA_PREFIX = ($ensureNamesAreInitialized(Lcom_google_gwt_query_client_plugins_QueuePlugin_2_classLit) , Lcom_google_gwt_query_client_plugins_QueuePlugin_2_classLit.typeName + '.Queue-');
- DEFAULT_NAME = QUEUE_DATA_PREFIX + 'fx';
-}
-
-function $delay(this$static, milliseconds, name_0, funcs){
- var e, e$array, e$index, e$max;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- $queue(this$static, e, name_0, new QueuePlugin$DelayFunction(this$static, e, name_0, milliseconds, funcs));
- }
- return this$static;
-}
-
-function $delay_0(this$static, milliseconds, f){
- return $delay(this$static, milliseconds, DEFAULT_NAME, f);
-}
-
-function $dequeueCurrentAndRunNext(this$static, elem, name_0){
- var q;
- q = $queue(this$static, elem, name_0, null);
- if (q) {
- q.size_0 == 0?null:(checkCriticalElement(q.size_0 != 0) , $removeNode(q, q.header.next));
- $runNext(this$static, elem, name_0, q);
- }
-}
-
-function $dequeueIfNotDoneYet(this$static, elem, name_0, object){
- var queue;
- queue = $queue(this$static, elem, name_0, null);
- !!queue && maskUndefined(object) === maskUndefined(queue.size_0 == 0?null:(checkCriticalElement(queue.size_0 != 0) , queue.header.next.value_0)) && $dequeueCurrentAndRunNext(this$static, elem, name_0);
-}
-
-function $queue(this$static, elem, name_0, func){
- var q;
- if (elem) {
- q = ($clinit_GQuery() , dynamicCast(data_1(elem, name_0, null), 536));
- if (func) {
- !q && (q = dynamicCast(data_1(elem, name_0, new LinkedList), 536));
- $addNode_1(q, func, q.tail.prev, q.tail);
- q.size_0 == 1 && $runNext(this$static, elem, name_0, q);
- }
- return q;
- }
- return null;
-}
-
-function $runNext(this$static, elem, name_0, q){
- var f, key, c;
- f = dynamicCast(q.size_0 == 0?null:(checkCriticalElement(q.size_0 != 0) , q.header.next.value_0), 7);
- if (f) {
- f.element = elem;
- $f_1(f, elem);
- }
- else {
- $fire((key = name_0 + '.Empty' , c = ($clinit_GQuery() , dynamicCast(data_1(elem, key, null), 82)) , !c && (c = dynamicCast(data_1(elem, key, new Callbacks('once memory')), 82)) , c), initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, []));
- $removeData(this$static, elem, name_0);
- $removeData(this$static, elem, name_0 + '.Empty');
- }
-}
-
-function QueuePlugin(gq){
- $clinit_QueuePlugin();
- GQuery_2.call(this, gq);
-}
-
-defineClass(80, 8, {80:1}, QueuePlugin);
-_.delay_0 = function(milliseconds, f){
- return $delay(this, milliseconds, DEFAULT_NAME, f);
-}
-;
-var DEFAULT_NAME, QUEUE_DATA_PREFIX, Queue;
-var Lcom_google_gwt_query_client_plugins_QueuePlugin_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'QueuePlugin', 80, Lcom_google_gwt_query_client_GQuery_2_classLit);
-function $clinit_Effects(){
- $clinit_Effects = emptyMethod;
- $clinit_QueuePlugin();
- registerPlugin(Lcom_google_gwt_query_client_plugins_Effects_2_classLit, new Effects$1);
- browser.msie?'ms':browser.opera?'o':browser.mozilla?'moz':browser.webkit?'webkit':'';
-}
-
-function Effects(gq){
- $clinit_Effects();
- QueuePlugin.call(this, gq);
-}
-
-defineClass(344, 80, {80:1}, Effects);
-var Lcom_google_gwt_query_client_plugins_Effects_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'Effects', 344, Lcom_google_gwt_query_client_plugins_QueuePlugin_2_classLit);
-function Effects$1(){
-}
-
-defineClass(345, 1, $intern_23, Effects$1);
-_.init_0 = function(gq){
- return new Effects(gq);
-}
-;
-var Lcom_google_gwt_query_client_plugins_Effects$1_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'Effects/1', 345, Ljava_lang_Object_2_classLit);
-function Events$1(){
-}
-
-defineClass(218, 1, $intern_23, Events$1);
-_.init_0 = function(gq){
- return new Events(gq);
-}
-;
-var Lcom_google_gwt_query_client_plugins_Events$1_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'Events/1', 218, Ljava_lang_Object_2_classLit);
-function QueuePlugin$1(){
-}
-
-defineClass(327, 1, $intern_23, QueuePlugin$1);
-_.init_0 = function(gq){
- return new QueuePlugin(gq);
-}
-;
-var Lcom_google_gwt_query_client_plugins_QueuePlugin$1_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'QueuePlugin/1', 327, Ljava_lang_Object_2_classLit);
-function QueuePlugin$DelayFunction(this$0, elem, name_0, delay, f){
- this.this$01 = this$0;
- Function_0.call(this);
- this.elem = elem;
- this.delay = delay;
- this.funcs = f;
- this.name_0 = name_0;
-}
-
-defineClass(325, 7, $intern_20, QueuePlugin$DelayFunction);
-_.f_0 = function(){
- $schedule(new QueuePlugin$DelayFunction$SimpleTimer(this), this.delay);
-}
-;
-_.delay = 0;
-var Lcom_google_gwt_query_client_plugins_QueuePlugin$DelayFunction_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'QueuePlugin/DelayFunction', 325, Lcom_google_gwt_query_client_Function_2_classLit);
-function QueuePlugin$DelayFunction$SimpleTimer(this$1){
- this.this$11 = this$1;
- Timer.call(this);
-}
-
-defineClass(326, 45, {}, QueuePlugin$DelayFunction$SimpleTimer);
-_.run = function(){
- var f, f$array, f$index, f$max;
- for (f$array = this.this$11.funcs , f$index = 0 , f$max = f$array.length; f$index < f$max; ++f$index) {
- f = f$array[f$index];
- $fe_0(f, this.this$11.elem);
- }
- $dequeueIfNotDoneYet(this.this$11.this$01, this.this$11.elem, this.this$11.name_0, this.this$11);
-}
-;
-var Lcom_google_gwt_query_client_plugins_QueuePlugin$DelayFunction$SimpleTimer_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'QueuePlugin/DelayFunction/SimpleTimer', 326, Lcom_google_gwt_user_client_Timer_2_classLit);
-function $clinit_Widgets(){
- $clinit_Widgets = emptyMethod;
- $clinit_QueuePlugin();
- excludedTags = initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['html', 'body', 'head', 'tr', 'thead', 'tfoot', 'options', 'script', 'noscript', 'style', 'title']);
- registerPlugin(Lcom_google_gwt_query_client_plugins_Widgets_2_classLit, new Widgets$1);
-}
-
-function $widget_0(e){
- var widget;
- if (matchesTags(e, excludedTags)) {
- return null;
- }
- widget = new WidgetsHtmlPanel(e);
- return widget;
-}
-
-function $widgets(this$static){
- var e, e$array, e$index, e$max, result, w;
- result = new ArrayList;
- for (e$array = this$static.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- w = $widget_0(e);
- !!w && $add_6(result, ($clinit_DOM() , w.element));
- }
- return dynamicCast($as($_2(result), Lcom_google_gwt_query_client_plugins_Widgets_2_classLit), 67);
-}
-
-function Widgets_0(gq){
- $clinit_Widgets();
- QueuePlugin.call(this, gq);
-}
-
-defineClass(67, 80, {80:1, 67:1}, Widgets_0);
-var excludedTags;
-var Lcom_google_gwt_query_client_plugins_Widgets_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'Widgets', 67, Lcom_google_gwt_query_client_plugins_QueuePlugin_2_classLit);
-function Widgets$1(){
-}
-
-defineClass(324, 1, $intern_23, Widgets$1);
-_.init_0 = function(gq){
- return new Widgets_0(gq);
-}
-;
-var Lcom_google_gwt_query_client_plugins_Widgets$1_2_classLit = createForClass('com.google.gwt.query.client.plugins', 'Widgets/1', 324, Ljava_lang_Object_2_classLit);
-function $clinit_Ajax(){
- $clinit_Ajax = emptyMethod;
- $clinit_GQuery();
- registerPlugin(Lcom_google_gwt_query_client_plugins_ajax_Ajax_2_classLit, new Ajax$1);
-}
-
-function Ajax(gq){
- $clinit_Ajax();
- GQuery_2.call(this, gq);
-}
-
-function resolveSettings(settings){
- var contentType, data_0, dataString, type_0, url_0;
- url_0 = $getStr(settings.p, 'url');
- type_0 = 'POST';
- $getStr(settings.p, 'type') != null && (type_0 = $getStr(settings.p, 'type').toUpperCase());
- $equalsIgnoreCase('jsonp', $getStr(settings.p, 'dataType')) && (type_0 = 'GET');
- $set(settings.p, 'type', type_0);
- data_0 = (!$getJavaScriptObject(settings.p, 'data') && $set(settings.p, 'data', {}) , $getJavaScriptObject(settings.p, 'data'));
- if (data_0) {
- if (isFormData_0(data_0)) {
- dataString = null;
- contentType = 'application/x-www-form-urlencoded';
- }
- else if ($matches($getStr(settings.p, 'type'), '(POST|PUT)') && $equalsIgnoreCase('json', $getStr(settings.p, 'dataType'))) {
- dataString = $JSON2String(data_0);
- contentType = 'application/json; charset=utf-8';
- }
- else {
- dataString = param(data_0);
- contentType = 'application/x-www-form-urlencoded';
- }
- $set(settings.p, 'dataString', dataString);
- $set(settings.p, 'contentType', contentType);
- }
- if ($equals_2('GET', $getStr(settings.p, 'type')) && $getStr(settings.p, 'dataString') != null) {
- url_0 += (url_0.indexOf('?') != -1?'&':'?') + $getStr(settings.p, 'dataString');
- $set(settings.p, 'url', url_0);
- }
-}
-
-defineClass(420, 8, {}, Ajax);
-var Lcom_google_gwt_query_client_plugins_ajax_Ajax_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'Ajax', 420, Lcom_google_gwt_query_client_GQuery_2_classLit);
-function Ajax$1(){
-}
-
-defineClass(421, 1, $intern_23, Ajax$1);
-_.init_0 = function(gq){
- return new Ajax(gq);
-}
-;
-var Lcom_google_gwt_query_client_plugins_ajax_Ajax$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'Ajax/1', 421, Ljava_lang_Object_2_classLit);
-function Ajax$2(val$dataType){
- this.val$dataType1 = val$dataType;
- Function_0.call(this);
-}
-
-defineClass(422, 7, $intern_20, Ajax$2);
-_.f_1 = function(args){
- var e, lastArg, request, response, retData;
- response = dynamicCast($getArgument(this, 0, null), 144);
- request = dynamicCast($getArgument(this, 1, null), 136);
- retData = response.xmlHttpRequest.responseText;
- if (retData != null && !$equals_2('', retData)) {
- try {
- if ($equalsIgnoreCase('xml', this.val$dataType1)) {
- retData = $parseXML(response.xmlHttpRequest.responseText);
- }
- else if ($equalsIgnoreCase('json', this.val$dataType1)) {
- retData = create_3(response.xmlHttpRequest.responseText);
- }
- else {
- retData = response.xmlHttpRequest.responseText;
- $equalsIgnoreCase('script', this.val$dataType1) && $inject($setWindow(($clinit_ScriptInjector() , new ScriptInjector$FromString(dynamicCastToString(retData))), ($clinit_GQuery() , window_1)));
- }
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- e = $e0;
- $printStackTrace((lastArg = e , lastArg));
- }
- else
- throw unwrap($e0);
- }
- }
- return initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [retData, 'success', request, response]);
-}
-;
-var Lcom_google_gwt_query_client_plugins_ajax_Ajax$2_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'Ajax/2', 422, Lcom_google_gwt_query_client_Function_2_classLit);
-function Ajax$3(){
- Function_0.call(this);
-}
-
-defineClass(423, 7, $intern_20, Ajax$3);
-_.f_1 = function(args){
- var exception, msg, request;
- exception = dynamicCast($getArgument(this, 0, null), 14);
- request = dynamicCast($getArgument(this, 1, Lcom_google_gwt_http_client_Request_2_classLit), 136);
- msg = '' + exception;
- return initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [null, msg, request, null, exception]);
-}
-;
-var Lcom_google_gwt_query_client_plugins_ajax_Ajax$3_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'Ajax/3', 423, Lcom_google_gwt_query_client_Function_2_classLit);
-var Lcom_google_gwt_query_client_plugins_ajax_Ajax$Settings_2_classLit = createForInterface('com.google.gwt.query.client.plugins.ajax', 'Ajax/Settings');
-function AjaxTransportJs(){
-}
-
-defineClass(142, 1, {}, AjaxTransportJs);
-var Lcom_google_gwt_query_client_plugins_ajax_AjaxTransportJs_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'AjaxTransportJs', 142, Ljava_lang_Object_2_classLit);
-function $done(this$static, f){
- $add_1(this$static.dfd.resolve, f);
- return this$static;
-}
-
-function $fail(this$static, f){
- $add_1(this$static.dfd.reject, f);
- return this$static;
-}
-
-function $progress(this$static, f){
- $add_1(this$static.dfd.notify, f);
- return this$static;
-}
-
-function $then(this$static, f){
- var newDfd;
- newDfd = new Deferred;
- $done(this$static, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new Deferred$DeferredPromiseImpl$ThenFunction(newDfd, f, 0)]));
- $fail(this$static, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new Deferred$DeferredPromiseImpl$ThenFunction(newDfd, f, 1)]));
- $progress(this$static, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new Deferred$DeferredPromiseImpl$ThenFunction(newDfd, f, 2)]));
- return !newDfd.promise && (newDfd.promise = new Deferred$DeferredPromiseImpl_0(newDfd)) , newDfd.promise;
-}
-
-function Deferred$DeferredPromiseImpl(){
- new Deferred$DeferredPromiseImpl$1(this);
- new Deferred$DeferredPromiseImpl$2(this);
- this.dfd = new Deferred;
-}
-
-function Deferred$DeferredPromiseImpl_0(o){
- new Deferred$DeferredPromiseImpl$1(this);
- new Deferred$DeferredPromiseImpl$2(this);
- this.dfd = o;
-}
-
-defineClass(99, 1, $intern_24, Deferred$DeferredPromiseImpl_0);
-_.always = function(f){
- return $add_1(this.dfd.resolve, f) , $add_1(this.dfd.reject, f) , this;
-}
-;
-_.isResolved = function(){
- return $equals_2('resolved', this.dfd.state);
-}
-;
-_.progress_0 = function(f){
- return $progress(this, f);
-}
-;
-_.toString$ = function(){
- return 'Promise this=' + getHashCode(this) + ' ' + this.dfd;
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred/DeferredPromiseImpl', 99, Ljava_lang_Object_2_classLit);
-function PromiseFunction(){
- Deferred$DeferredPromiseImpl.call(this);
- this.f_3(this.dfd);
-}
-
-defineClass(150, 99, $intern_24);
-var Lcom_google_gwt_query_client_plugins_deferred_PromiseFunction_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'PromiseFunction', 150, Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl_2_classLit);
-function AjaxTransportJs$1(val$settings){
- this.val$settings2 = val$settings;
- PromiseFunction.call(this);
-}
-
-defineClass(499, 150, $intern_24, AjaxTransportJs$1);
-_.f_3 = function(dfd){
- this.scriptElement = $inject_0($setCallback($setWindow_0(($clinit_ScriptInjector() , new ScriptInjector$FromUrl($getStr(this.val$settings2.p, 'url'))), ($clinit_GQuery() , window_1)), new AjaxTransportJs$1$1(this, dfd)));
-}
-;
-var Lcom_google_gwt_query_client_plugins_ajax_AjaxTransportJs$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'AjaxTransportJs/1', 499, Lcom_google_gwt_query_client_plugins_deferred_PromiseFunction_2_classLit);
-function $onFailure_0(this$static, reason){
- $reject(this$static.val$dfd2, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [reason]));
-}
-
-function $onSuccess(this$static, result){
- $onSuccess_0((throwClassCastExceptionUnlessNull(result) , this$static));
-}
-
-function $onSuccess_0(this$static){
- ($clinit_GQuery() , new GQuery_0(window_1)).delay_0(0, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new AjaxTransportJs$1$1$1(this$static, this$static.val$dfd2)]));
-}
-
-function AjaxTransportJs$1$1(this$1, val$dfd){
- this.this$11 = this$1;
- this.val$dfd2 = val$dfd;
-}
-
-defineClass(500, 1, {540:1}, AjaxTransportJs$1$1);
-_.onFailure_0 = function(reason){
- $onFailure_0(this, dynamicCast(reason, 12));
-}
-;
-_.onSuccess_0 = function(result){
- $onSuccess(this, result);
-}
-;
-var Lcom_google_gwt_query_client_plugins_ajax_AjaxTransportJs$1$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'AjaxTransportJs/1/1', 500, Ljava_lang_Object_2_classLit);
-function AjaxTransportJs$1$1$1(this$2, val$dfd){
- this.this$21 = this$2;
- this.val$dfd2 = val$dfd;
- Function_0.call(this);
-}
-
-defineClass(501, 7, $intern_20, AjaxTransportJs$1$1$1);
-_.f_0 = function(){
- $resolve(this.val$dfd2, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [this.this$21.this$11.scriptElement]));
-}
-;
-var Lcom_google_gwt_query_client_plugins_ajax_AjaxTransportJs$1$1$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'AjaxTransportJs/1/1/1', 501, Lcom_google_gwt_query_client_Function_2_classLit);
-function Ajax_Settings_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(475, 56, {52:1, 53:1, 593:1}, Ajax_Settings_JsonBuilder);
-var Lcom_google_gwt_query_client_plugins_ajax_Ajax_1Settings_1JsonBuilder_2_classLit = createForClass('com.google.gwt.query.client.plugins.ajax', 'Ajax_Settings_JsonBuilder', 475, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $add_1(this$static, f){
- $addAll(this$static, f);
- return this$static;
-}
-
-function $addAll(this$static, o){
- var c, c$index, c$max;
- for (c$index = 0 , c$max = o.length; c$index < c$max; ++c$index) {
- c = o[c$index];
- !this$static.done && !!this$static.stack_0 && !!c && (!this$static.isUnique || $indexOf_3(this$static.stack_0, c, 0) == -1) && $add_6(this$static.stack_0, c);
- this$static.isMemory && !!this$static.memory && $run_0(c, $toArray_1(this$static.memory));
- }
-}
-
-function $disable(this$static){
- this$static.stack_0 = null;
- this$static.done = true;
- return this$static;
-}
-
-function $fire(this$static, o){
- var c, c$iterator;
- if (!this$static.done) {
- this$static.done = this$static.isOnce;
- this$static.isMemory && (this$static.memory = new ArrayList_1(new Arrays$ArrayList(o)));
- if (this$static.stack_0)
- for (c$iterator = new AbstractList$IteratorImpl(this$static.stack_0); c$iterator.i < c$iterator.this$01_0.size_2();) {
- c = (checkCriticalElement(c$iterator.i < c$iterator.this$01_0.size_2()) , c$iterator.this$01_0.get_0(c$iterator.last = c$iterator.i++));
- if (!$run_0(c, o) && this$static.stopOnFalse) {
- break;
- }
- }
- }
- return this$static;
-}
-
-function $lock(this$static){
- this$static.isMemory || $disable(this$static);
- this$static.stack_0 = null;
- return this$static;
-}
-
-function $run_0(c, o){
- var r;
- o != null && o.length == 1 && o[0] != null && (getClass__Ljava_lang_Class___devirtual$(o[0]).modifiers & 4) != 0 && (o = dynamicCast(o[0], 4));
- if (instanceOf(c, 7)) {
- r = dynamicCast(c, 7).f_1(o);
- return !instanceOf(r, 42) || dynamicCast(r, 42).value_0;
- }
- else
- instanceOf(c, 540) && $onSuccess(dynamicCast(c, 540), o);
- return true;
-}
-
-function $status(this$static){
- return 'stack=' + (!this$static.stack_0?'null':valueOf_2(this$static.stack_0.array.length)) + ' ' + this$static.done;
-}
-
-function Callbacks(options){
- this.stack_0 = new ArrayList;
- this.isOnce = options.indexOf('once') != -1;
- this.isMemory = options.indexOf('memory') != -1;
- this.isUnique = options.indexOf('unique') != -1;
- this.stopOnFalse = options.indexOf('stopOnFalse') != -1;
-}
-
-defineClass(82, 1, {82:1}, Callbacks);
-_.done = false;
-_.isMemory = false;
-_.isOnce = false;
-_.isUnique = false;
-_.memory = null;
-_.stopOnFalse = false;
-var Lcom_google_gwt_query_client_plugins_deferred_Callbacks_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Callbacks', 82, Ljava_lang_Object_2_classLit);
-function $notify(this$static, o){
- return this$static.state == 'pending' && $fire(this$static.notify, o) , this$static;
-}
-
-function $notify_0(this$static, o){
- this$static.state == 'pending' && $fire(this$static.notify, o);
- return this$static;
-}
-
-function $reject(this$static, o){
- return this$static.state == 'pending' && $fire(this$static.reject, o) , this$static;
-}
-
-function $reject_0(this$static, o){
- this$static.state == 'pending' && $fire(this$static.reject, o);
- return this$static;
-}
-
-function $resolve(this$static, o){
- return this$static.state == 'pending' && $fire(this$static.resolve, o) , this$static;
-}
-
-function $resolve_0(this$static, o){
- this$static.state == 'pending' && $fire(this$static.resolve, o);
- return this$static;
-}
-
-function Deferred(){
- this.notify = new Callbacks('memory');
- this.reject = new Callbacks('once memory');
- this.resolve = new Callbacks('once memory');
- $add_1(this.resolve, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new Deferred$2(this)]));
- $add_1(this.reject, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new Deferred$3(this)]));
-}
-
-defineClass(151, 1, {}, Deferred);
-_.toString$ = function(){
- return 'Deferred this=' + getHashCode(this) + ' promise=' + (!this.promise && (this.promise = new Deferred$DeferredPromiseImpl_0(this)) , getHashCode(this.promise)) + ' state=' + this.promise.dfd.state + ' restatus=' + $status(this.resolve);
-}
-;
-_.promise = null;
-_.state = 'pending';
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred', 151, Ljava_lang_Object_2_classLit);
-function Deferred$2(this$0){
- this.this$01 = this$0;
- Function_0.call(this);
-}
-
-defineClass(221, 7, $intern_20, Deferred$2);
-_.f_0 = function(){
- this.this$01.state = 'resolved';
- $disable(this.this$01.resolve);
- $lock(this.this$01.notify);
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred$2_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred/2', 221, Lcom_google_gwt_query_client_Function_2_classLit);
-function Deferred$3(this$0){
- this.this$01 = this$0;
- Function_0.call(this);
-}
-
-defineClass(222, 7, $intern_20, Deferred$3);
-_.f_0 = function(){
- this.this$01.state = 'rejected';
- $disable(this.this$01.reject);
- $lock(this.this$01.notify);
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred$3_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred/3', 222, Lcom_google_gwt_query_client_Function_2_classLit);
-function Deferred$DeferredPromiseImpl$1(this$1){
- this.this$11 = this$1;
- Function_0.call(this);
-}
-
-defineClass(152, 7, $intern_20, Deferred$DeferredPromiseImpl$1);
-_.f_0 = function(){
- $resolve_0(this.this$11.dfd, this.arguments_0);
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred/DeferredPromiseImpl/1', 152, Lcom_google_gwt_query_client_Function_2_classLit);
-function Deferred$DeferredPromiseImpl$2(this$1){
- this.this$11 = this$1;
- Function_0.call(this);
-}
-
-defineClass(153, 7, $intern_20, Deferred$DeferredPromiseImpl$2);
-_.f_0 = function(){
- $reject_0(this.this$11.dfd, this.arguments_0);
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl$2_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred/DeferredPromiseImpl/2', 153, Lcom_google_gwt_query_client_Function_2_classLit);
-function $settle(this$static, action, args){
- action == 0 && $resolve(this$static.dfd, args);
- action == 1 && $reject(this$static.dfd, args);
- action == 2 && $notify(this$static.dfd, args);
-}
-
-function Deferred$DeferredPromiseImpl$ThenFunction(newDfd, subordinates, funcType){
- Function_0.call(this);
- this.cont = false;
- this.type_0 = funcType;
- this.filter_0 = subordinates.length > this.type_0?subordinates[this.type_0]:null;
- this.dfd = newDfd;
- this.cont = false;
-}
-
-defineClass(119, 7, $intern_20, Deferred$DeferredPromiseImpl$ThenFunction);
-_.f_0 = function(){
- var newArgs, oldArgs, p;
- oldArgs = this.arguments_0;
- if (this.filter_0) {
- newArgs = $setArguments(this.filter_0, oldArgs).f_1(oldArgs);
- if (instanceOf(newArgs, 97)) {
- p = dynamicCast(newArgs, 97);
- this.type_0 == 2?p.progress_0(initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new Deferred$DeferredPromiseImpl$ThenFunction$1(this)])):p.always(initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new Deferred$DeferredPromiseImpl$ThenFunction$2(this, p)]));
- }
- else {
- newArgs = $equals_0(($clinit_Boolean() , TRUE), newArgs)?oldArgs:newArgs != null && (getClass__Ljava_lang_Class___devirtual$(newArgs).modifiers & 4) != 0?dynamicCast(newArgs, 4):newArgs;
- $settle(this, this.type_0, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [newArgs]));
- }
- }
- else {
- $settle(this, this.type_0, oldArgs);
- }
-}
-;
-_.cont = false;
-_.type_0 = 0;
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl$ThenFunction_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred/DeferredPromiseImpl/ThenFunction', 119, Lcom_google_gwt_query_client_Function_2_classLit);
-function Deferred$DeferredPromiseImpl$ThenFunction$1(this$2){
- this.this$21 = this$2;
- Function_0.call(this);
-}
-
-defineClass(219, 7, $intern_20, Deferred$DeferredPromiseImpl$ThenFunction$1);
-_.f_0 = function(){
- $settle(this.this$21, 2, this.arguments_0);
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl$ThenFunction$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred/DeferredPromiseImpl/ThenFunction/1', 219, Lcom_google_gwt_query_client_Function_2_classLit);
-function Deferred$DeferredPromiseImpl$ThenFunction$2(this$2, val$p){
- this.this$21 = this$2;
- this.val$p2 = val$p;
- Function_0.call(this);
-}
-
-defineClass(220, 7, $intern_20, Deferred$DeferredPromiseImpl$ThenFunction$2);
-_.f_0 = function(){
- $settle(this.this$21, (this.this$21.type_0 == 0 || this.this$21.type_0 == 1 && this.this$21.cont) && this.val$p2.isResolved()?0:1, this.arguments_0);
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl$ThenFunction$2_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'Deferred/DeferredPromiseImpl/ThenFunction/2', 220, Lcom_google_gwt_query_client_Function_2_classLit);
-function $createRequestVltr(rq, ms, cb){
- return new Request(rq, ms, cb);
-}
-
-function $fireOnResponseReceivedVltr(rq, cb){
- rq.fireOnResponseReceived(cb);
-}
-
-function $onError(this$static, request, exception){
- $reject_0(this$static.dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [exception, request]));
-}
-
-function $onResponseReceived(this$static, request, response){
- var status_0, statusText, status_1;
- status_0 = response.xmlHttpRequest.status;
- if (status_0 <= 0 || status_0 >= 400) {
- statusText = status_0 <= 0?'Bad CORS':response.xmlHttpRequest.statusText;
- $onError(this$static, request, new RequestException('HTTP ERROR: ' + status_0 + ' ' + statusText + '\n' + response.xmlHttpRequest.responseText));
- }
- else {
- $resolve_0(this$static.dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [response, request]));
- }
-}
-
-function PromiseReqBuilder(settings){
- var ctype, data_0, e, headerKey, headerKey$array, headerKey$index, headerKey$max, headers, httpMethod, isFormData, request, requestPermissionException, upload, url_0, xmlHttpRequest;
- Deferred$DeferredPromiseImpl.call(this);
- httpMethod = $getStr(settings.p, 'type');
- url_0 = $getStr(settings.p, 'url');
- data_0 = (!$getJavaScriptObject(settings.p, 'data') && $set(settings.p, 'data', {}) , $getJavaScriptObject(settings.p, 'data'));
- ctype = $getStr(settings.p, 'contentType');
- isFormData = ($clinit_Boolean() , !!data_0 && isFormData_0(data_0)?TRUE:FALSE);
- xmlHttpRequest = new $wnd.XMLHttpRequest;
- try {
- $getStr(settings.p, 'username') != null && $getStr(settings.p, 'password') != null?$open_0(xmlHttpRequest, httpMethod, url_0, $getStr(settings.p, 'username'), $getStr(settings.p, 'password')):$getStr(settings.p, 'username') != null?$open(xmlHttpRequest, httpMethod, url_0, $getStr(settings.p, 'username')):(xmlHttpRequest.open(httpMethod, url_0, true) , undefined);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 58)) {
- e = $e0;
- requestPermissionException = new RequestPermissionException(url_0);
- $initCause(requestPermissionException, new RequestException(e.getMessage()));
- $reject_0(this.dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [e, null]));
- return;
- }
- else
- throw unwrap($e0);
- }
- prop_1(xmlHttpRequest, 'onprogress', wrapFunction(new PromiseReqBuilder$1(this)));
- upload = dynamicCastJso(!xmlHttpRequest?null:$get_1(xmlHttpRequest, 'upload'));
- prop_1(upload, 'onprogress', wrapFunction(new PromiseReqBuilder$2(this)));
- headers = (!$getJavaScriptObject(settings.p, 'headers') && $set(settings.p, 'headers', {}) , $getJavaScriptObject(settings.p, 'headers'));
- if (headers) {
- for (headerKey$array = $keys(headers) , headerKey$index = 0 , headerKey$max = headerKey$array.length; headerKey$index < headerKey$max; ++headerKey$index) {
- headerKey = headerKey$array[headerKey$index];
- $setRequestHeader(xmlHttpRequest, headerKey, '' + $get_1(headers, '' + headerKey));
- }
- }
- !!data_0 && !isFormData.value_0 && !$equalsIgnoreCase('GET', httpMethod) && $setRequestHeader(xmlHttpRequest, 'Content-Type', ctype);
- prop_1(xmlHttpRequest, 'withCredentials', $getBoolean(settings.p)?TRUE:FALSE);
- request = $createRequestVltr(xmlHttpRequest, round_int($getFloat(settings.p, 'timeout')), this);
- $setOnReadyStateChange(xmlHttpRequest, new PromiseReqBuilder$3(this, request));
- try {
- runJavascriptFunction(xmlHttpRequest, 'send', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [isFormData.value_0?data_0:$getStr(settings.p, 'dataString')]));
- }
- catch ($e1) {
- $e1 = wrap($e1);
- if (instanceOf($e1, 58)) {
- e = $e1;
- $reject_0(this.dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [e, null]));
- }
- else
- throw unwrap($e1);
- }
-}
-
-defineClass(519, 99, $intern_24, PromiseReqBuilder);
-var Lcom_google_gwt_query_client_plugins_deferred_PromiseReqBuilder_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'PromiseReqBuilder', 519, Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl_2_classLit);
-function PromiseReqBuilder$1(this$0){
- this.this$01 = this$0;
- Function_0.call(this);
-}
-
-defineClass(520, 7, $intern_20, PromiseReqBuilder$1);
-_.f_0 = function(){
- var loaded, p, percent, total;
- p = dynamicCastJso($getArgument(this, 0, null));
- total = $getDouble(p, 'total');
- loaded = $getDouble(p, 'loaded');
- percent = loaded == 0?0:total == 0?100:100 * loaded / total;
- $notify_0(this.this$01.dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [new Double(total), new Double(loaded), new Double(percent), 'download']));
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_PromiseReqBuilder$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'PromiseReqBuilder/1', 520, Lcom_google_gwt_query_client_Function_2_classLit);
-function PromiseReqBuilder$2(this$0){
- this.this$01 = this$0;
- Function_0.call(this);
-}
-
-defineClass(521, 7, $intern_20, PromiseReqBuilder$2);
-_.f_0 = function(){
- var loaded, p, percent, total;
- p = dynamicCastJso($getArgument(this, 0, null));
- total = $getDouble(p, 'total');
- loaded = $getDouble(p, 'loaded');
- percent = 100 * loaded / total;
- $notify_0(this.this$01.dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [new Double(total), new Double(loaded), new Double(percent), 'upload']));
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_PromiseReqBuilder$2_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'PromiseReqBuilder/2', 521, Lcom_google_gwt_query_client_Function_2_classLit);
-function PromiseReqBuilder$3(this$0, val$request){
- this.this$01 = this$0;
- this.val$request2 = val$request;
-}
-
-defineClass(522, 1, {}, PromiseReqBuilder$3);
-_.onReadyStateChange = function(xhr){
- if (xhr.readyState == 4) {
- $clearOnReadyStateChange(xhr);
- $fireOnResponseReceivedVltr(this.val$request2, this.this$01);
- }
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_PromiseReqBuilder$3_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'PromiseReqBuilder/3', 522, Ljava_lang_Object_2_classLit);
-function $clinit_PromiseReqBuilderJSONP(){
- $clinit_PromiseReqBuilderJSONP = emptyMethod;
- callbackRegex = new RegExp('^(.+[\\?&])([^=]+)=\\?(.*)$');
-}
-
-function $send(bld, url_0, cb){
- bld.send(url_0, cb, false);
-}
-
-function PromiseReqBuilderJSONP(url_0, timeout){
- $clinit_PromiseReqBuilderJSONP();
- PromiseReqBuilderJSONP_0.call(this, url_0, null, timeout);
-}
-
-function PromiseReqBuilderJSONP_0(url_0, callbackParam, timeout){
- var builder, tmp;
- Deferred$DeferredPromiseImpl.call(this);
- builder = new JsonpRequestBuilder;
- timeout > 0 && (builder.timeout = timeout);
- if (callbackParam == null) {
- tmp = $exec_0(callbackRegex, url_0);
- if (!!tmp && tmp.length == 4) {
- callbackParam = tmp[2];
- url_0 = tmp[1] + tmp[3];
- }
- }
- callbackParam != null && (builder.callbackParam = callbackParam);
- $send(builder, url_0, new PromiseReqBuilderJSONP$1(this));
-}
-
-defineClass(194, 99, $intern_24, PromiseReqBuilderJSONP);
-var callbackRegex;
-var Lcom_google_gwt_query_client_plugins_deferred_PromiseReqBuilderJSONP_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'PromiseReqBuilderJSONP', 194, Lcom_google_gwt_query_client_plugins_deferred_Deferred$DeferredPromiseImpl_2_classLit);
-function PromiseReqBuilderJSONP$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(518, 1, {}, PromiseReqBuilderJSONP$1);
-_.onFailure_2 = function(caught){
- $reject_0(this.this$01.dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [caught]));
-}
-;
-_.onSuccess_0 = function(result){
- $resolve_0(this.this$01.dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [result]));
-}
-;
-var Lcom_google_gwt_query_client_plugins_deferred_PromiseReqBuilderJSONP$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.deferred', 'PromiseReqBuilderJSONP/1', 518, Ljava_lang_Object_2_classLit);
-function $clinit_EventsListener(){
- $clinit_EventsListener = emptyMethod;
- special = new HashMap;
- special.put(MOUSEENTER, new EventsListener$MouseSpecialEvent);
- special.put(MOUSELEAVE, new EventsListener$MouseSpecialEvent);
-}
-
-function getGQueryEventListener(elem){
- $clinit_EventsListener();
- return elem.__gqueryevent;
-}
-
-var MOUSEENTER = 'mouseenter', MOUSELEAVE = 'mouseleave', special;
-defineClass(452, 1, {});
-var Lcom_google_gwt_query_client_plugins_events_SpecialEvent$DefaultSpecialEvent_2_classLit = createForClass('com.google.gwt.query.client.plugins.events', 'SpecialEvent/DefaultSpecialEvent', 452, Ljava_lang_Object_2_classLit);
-function EventsListener$MouseSpecialEvent(){
- new SpecialEvent$DefaultSpecialEvent$1;
- new EventsListener$MouseSpecialEvent$1;
-}
-
-defineClass(178, 452, {}, EventsListener$MouseSpecialEvent);
-var Lcom_google_gwt_query_client_plugins_events_EventsListener$MouseSpecialEvent_2_classLit = createForClass('com.google.gwt.query.client.plugins.events', 'EventsListener/MouseSpecialEvent', 178, Lcom_google_gwt_query_client_plugins_events_SpecialEvent$DefaultSpecialEvent_2_classLit);
-function EventsListener$MouseSpecialEvent$1(){
- Function_0.call(this);
-}
-
-defineClass(453, 7, $intern_20, EventsListener$MouseSpecialEvent$1);
-var Lcom_google_gwt_query_client_plugins_events_EventsListener$MouseSpecialEvent$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.events', 'EventsListener/MouseSpecialEvent/1', 453, Lcom_google_gwt_query_client_Function_2_classLit);
-function SpecialEvent$DefaultSpecialEvent$1(){
- Function_0.call(this);
-}
-
-defineClass(454, 7, $intern_20, SpecialEvent$DefaultSpecialEvent$1);
-var Lcom_google_gwt_query_client_plugins_events_SpecialEvent$DefaultSpecialEvent$1_2_classLit = createForClass('com.google.gwt.query.client.plugins.events', 'SpecialEvent/DefaultSpecialEvent/1', 454, Lcom_google_gwt_query_client_Function_2_classLit);
-function $addStyleName(this$static, style){
- setStyleName(this$static.getStyleElement(), style, true);
-}
-
-function $getElement(this$static){
- return $clinit_DOM() , this$static.element;
-}
-
-function $removeStyleDependentName(this$static, styleSuffix){
- $setStyleName(this$static, getStylePrimaryName(($clinit_PopupPanel() , impl_4).getStyleElement_0(getFirstChild(($clinit_DOM() , this$static.element)))) + '-' + styleSuffix, false);
-}
-
-function $removeStyleName(this$static, style){
- setStyleName(this$static.getStyleElement(), style, false);
-}
-
-function $resolvePotentialElement(){
- throw new UnsupportedOperationException;
-}
-
-function $setElement_0(this$static, elem){
- this$static.element = elem;
-}
-
-function $setStyleName(this$static, style, add_0){
- setStyleName(($clinit_PopupPanel() , impl_4).getStyleElement_0(getFirstChild(($clinit_DOM() , this$static.element))), style, add_0);
-}
-
-function $sinkBitlessEvent(this$static, eventTypeName){
- sinkBitlessEvent(($clinit_DOM() , this$static.element), eventTypeName);
-}
-
-function getStylePrimaryName(elem){
- var fullClassName, spaceIdx;
- fullClassName = $getClassName(elem);
- spaceIdx = $indexOf_0(fullClassName, fromCodePoint(32));
- if (spaceIdx >= 0) {
- return fullClassName.substr(0, spaceIdx);
- }
- return fullClassName;
-}
-
-function setStyleName(elem, style, add_0){
- if (!elem) {
- throw new RuntimeException_0('Null widget handle. If you are creating a composite, ensure that initWidget() has been called.');
- }
- style = $trim(style);
- if (style.length == 0) {
- throw new IllegalArgumentException_0('Style names cannot be empty');
- }
- add_0?$addClassName(elem, style):$removeClassName(elem, style);
-}
-
-function setStylePrimaryName(elem, style){
- if (!elem) {
- throw new RuntimeException_0('Null widget handle. If you are creating a composite, ensure that initWidget() has been called.');
- }
- style = $trim(style);
- if (style.length == 0) {
- throw new IllegalArgumentException_0('Style names cannot be empty');
- }
- updatePrimaryAndDependentStyleNames(elem, style);
-}
-
-function updatePrimaryAndDependentStyleNames(elem, newPrimaryStyle){
- var classes = (elem.className || '').split(/\s+/);
- if (!classes) {
- return;
- }
- var oldPrimaryStyle = classes[0];
- var oldPrimaryStyleLen = oldPrimaryStyle.length;
- classes[0] = newPrimaryStyle;
- for (var i_0 = 1, n = classes.length; i_0 < n; i_0++) {
- var name_0 = classes[i_0];
- name_0.length > oldPrimaryStyleLen && name_0.charAt(oldPrimaryStyleLen) == '-' && name_0.indexOf(oldPrimaryStyle) == 0 && (classes[i_0] = newPrimaryStyle + name_0.substring(oldPrimaryStyleLen));
- }
- elem.className = classes.join(' ');
-}
-
-defineClass(21, 1, {27:1, 21:1});
-_.getStyleElement = function(){
- return $clinit_DOM() , this.element;
-}
-;
-_.resolvePotentialElement = function(){
- return $resolvePotentialElement();
-}
-;
-_.setHeight_0 = function(height){
- ($clinit_DOM() , this.element).style['height'] = height;
-}
-;
-_.setWidth = function(width_0){
- ($clinit_DOM() , this.element).style['width'] = width_0;
-}
-;
-_.toString$ = function(){
- if (!this.element) {
- return '(null handle)';
- }
- return $getString(($clinit_DOM() , this.element));
-}
-;
-var Lcom_google_gwt_user_client_ui_UIObject_2_classLit = createForClass('com.google.gwt.user.client.ui', 'UIObject', 21, Ljava_lang_Object_2_classLit);
-function $addDomHandler(this$static, handler, type_0){
- var typeInt;
- typeInt = getTypeInt(type_0.name_0);
- typeInt == -1?$sinkBitlessEvent(this$static, type_0.name_0):this$static.eventsToSink == -1?sinkEvents_0(this$static.inputElem, typeInt | ($clinit_DOM() , $getEventsSunk(this$static.inputElem))):this$static.eventsToSink == -1?sinkEvents(($clinit_DOM() , this$static.element), typeInt | (this$static.element.__eventBits || 0)):(this$static.eventsToSink |= typeInt);
- return $addHandler(!this$static.handlerManager?(this$static.handlerManager = new HandlerManager(this$static)):this$static.handlerManager, type_0, handler);
-}
-
-function $addHandler_0(this$static, handler, type_0){
- return $addHandler(!this$static.handlerManager?(this$static.handlerManager = new HandlerManager(this$static)):this$static.handlerManager, type_0, handler);
-}
-
-function $fireEvent_0(this$static, event_0){
- !!this$static.handlerManager && $fireEvent(this$static.handlerManager, event_0);
-}
-
-function $onAttach(this$static){
- var bitsToAdd;
- if (this$static.isAttached()) {
- throw new IllegalStateException_0("Should only call onAttach when the widget is detached from the browser's document");
- }
- this$static.attached = true;
- $clinit_DOM();
- setEventListener(this$static.element, this$static);
- bitsToAdd = this$static.eventsToSink;
- this$static.eventsToSink = -1;
- bitsToAdd > 0 && this$static.sinkEvents(bitsToAdd);
- this$static.doAttachChildren();
- this$static.onLoad();
- fire(this$static);
-}
-
-function $onBrowserEvent(this$static, event_0){
- var related;
- switch ($clinit_DOM() , $eventGetTypeInt(($clinit_DOMImpl() , event_0).type)) {
- case 16:
- case 32:
- related = impl_0.eventGetRelatedTarget(event_0);
- if (!!related && $isOrHasChild(this$static.element, related)) {
- return;
- }
-
- }
- fireNativeEvent(event_0, this$static, this$static.element);
-}
-
-function $onDetach(this$static){
- if (!this$static.isAttached()) {
- throw new IllegalStateException_0("Should only call onDetach when the widget is attached to the browser's document");
- }
- try {
- this$static.onUnload();
- fire(this$static);
- }
- finally {
- try {
- this$static.doDetachChildren();
- }
- finally {
- $clinit_DOM();
- setEventListener(this$static.element, null);
- this$static.attached = false;
- }
- }
-}
-
-function $removeFromParent_0(this$static){
- if (!this$static.parent_0) {
- $clinit_RootPanel();
- $contains_2(widgetsToDetach, this$static) && detachNow(this$static);
- }
- else if (instanceOf(this$static.parent_0, 40)) {
- dynamicCast(this$static.parent_0, 40).remove(this$static);
- }
- else if (this$static.parent_0) {
- throw new IllegalStateException_0("This widget's parent does not implement HasWidgets");
- }
-}
-
-function $setParent(this$static, parent_0){
- var oldParent;
- oldParent = this$static.parent_0;
- if (!parent_0) {
- try {
- !!oldParent && oldParent.isAttached() && this$static.onDetach();
- }
- finally {
- this$static.parent_0 = null;
- }
- }
- else {
- if (oldParent) {
- throw new IllegalStateException_0('Cannot set a new parent without first clearing the old parent');
- }
- this$static.parent_0 = parent_0;
- parent_0.isAttached() && this$static.onAttach();
- }
-}
-
-function $sinkEvents(this$static, eventBitsToAdd){
- this$static.eventsToSink == -1?sinkEvents(($clinit_DOM() , this$static.element), eventBitsToAdd | (this$static.element.__eventBits || 0)):(this$static.eventsToSink |= eventBitsToAdd);
-}
-
-defineClass(17, 21, $intern_25);
-_.asWidget = function(){
- return this;
-}
-;
-_.doAttachChildren = function(){
-}
-;
-_.doDetachChildren = function(){
-}
-;
-_.fireEvent = function(event_0){
- $fireEvent_0(this, event_0);
-}
-;
-_.isAttached = function(){
- return this.attached;
-}
-;
-_.onAttach = function(){
- $onAttach(this);
-}
-;
-_.onBrowserEvent = function(event_0){
- $onBrowserEvent(this, event_0);
-}
-;
-_.onDetach = function(){
- $onDetach(this);
-}
-;
-_.onLoad = function(){
-}
-;
-_.onUnload = function(){
-}
-;
-_.setParent = function(parent_0){
- $setParent(this, parent_0);
-}
-;
-_.sinkEvents = function(eventBitsToAdd){
- $sinkEvents(this, eventBitsToAdd);
-}
-;
-_.attached = false;
-_.eventsToSink = 0;
-var Lcom_google_gwt_user_client_ui_Widget_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Widget', 17, Lcom_google_gwt_user_client_ui_UIObject_2_classLit);
-defineClass(36, 17, $intern_26);
-_.add_0 = function(child){
- throw new UnsupportedOperationException_0('This panel does not support no-arg add()');
-}
-;
-_.doAttachChildren = function(){
- tryCommand(this, ($clinit_AttachDetachException() , attachCommand));
-}
-;
-_.doDetachChildren = function(){
- tryCommand(this, ($clinit_AttachDetachException() , detachCommand));
-}
-;
-var Lcom_google_gwt_user_client_ui_Panel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Panel', 36, Lcom_google_gwt_user_client_ui_Widget_2_classLit);
-function $add_2(this$static, child, container){
- $removeFromParent_0(child);
- $add_4(this$static.children_0, child);
- $clinit_DOM();
- $appendChild(container, resolve(child.element));
- $setParent(child, this$static);
-}
-
-function $remove_0(this$static, w){
- var elem;
- if (w.parent_0 != this$static) {
- return false;
- }
- try {
- $setParent(w, null);
- }
- finally {
- elem = ($clinit_DOM() , w.element);
- $removeChild((null , $getParentElement_0(($clinit_DOMImpl() , elem))), elem);
- $remove_4(this$static.children_0, w);
- }
- return true;
-}
-
-function ComplexPanel(){
- this.children_0 = new WidgetCollection(this);
-}
-
-defineClass(176, 36, $intern_26);
-_.getChildren = function(){
- return this.children_0;
-}
-;
-_.iterator_0 = function(){
- return new WidgetCollection$WidgetIterator(this.children_0);
-}
-;
-_.remove = function(w){
- return $remove_0(this, w);
-}
-;
-var Lcom_google_gwt_user_client_ui_ComplexPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ComplexPanel', 176, Lcom_google_gwt_user_client_ui_Panel_2_classLit);
-defineClass(76, 176, $intern_27);
-_.add_0 = function(widget){
- $add_2(this, widget, ($clinit_DOM() , this.element));
-}
-;
-var Lcom_google_gwt_user_client_ui_HTMLPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HTMLPanel', 76, Lcom_google_gwt_user_client_ui_ComplexPanel_2_classLit);
-function $adoptSubWidgets(this$static, root){
- var child, child$array, child$index, child$max, children, w;
- children = $children(($clinit_GQuery() , new GQuery_0(root)));
- for (child$array = children.elements , child$index = 0 , child$max = child$array.length; child$index < child$max; ++child$index) {
- child = child$array[child$index];
- w = $widget(new GQuery_0(child), 0);
- w?$doAdopt(this$static, w):$adoptSubWidgets(this$static, child);
- }
-}
-
-function $doAdopt(this$static, w){
- var mustBePhysicallyReattach, parent_0;
- parent_0 = w.parent_0;
- mustBePhysicallyReattach = false;
- if (!parent_0) {
- $clinit_RootPanel();
- $contains_2(widgetsToDetach, w) && detachNow(w);
- }
- else if (instanceOf(parent_0, 76)) {
- doLogicalDetachFromHtmlPanel(w);
- }
- else {
- $removeFromParent_0(w);
- mustBePhysicallyReattach = true;
- }
- $add_4(this$static.children_0, w);
- mustBePhysicallyReattach && ($clinit_DOM() , $appendChild(this$static.element, resolve(w.element)));
- $setParent(w, this$static);
-}
-
-function WidgetsHtmlPanel(e){
- var n, p, w;
- ComplexPanel.call(this);
- $setElement_0(this, ($clinit_DOM() , $createDivElement($doc)));
- $setInnerHTML(this.element, '');
- if (e) {
- w = $widget(($clinit_GQuery() , new GQuery_0(e)), 0);
- if (!w) {
- this.element = e;
- attachWidget(this, null);
- }
- else {
- p = w.parent_0;
- if (instanceOf(p, 36)) {
- $add_2(this, w, this.element);
- dynamicCast(p, 36).add_0(this);
- }
- else {
- n = $getParentElement_0(($clinit_DOMImpl() , e));
- $appendChild(n, this.element);
- $appendChild(this.element, e);
- attachWidget(this, null);
- }
- }
- }
- $adoptSubWidgets(this, this.element);
-}
-
-defineClass(496, 76, $intern_27, WidgetsHtmlPanel);
-var Lcom_google_gwt_query_client_plugins_widgets_WidgetsHtmlPanel_2_classLit = createForClass('com.google.gwt.query.client.plugins.widgets', 'WidgetsHtmlPanel', 496, Lcom_google_gwt_user_client_ui_HTMLPanel_2_classLit);
-function attachWidget(widget, firstParentWidget){
- var h, p;
- if (!!widget && !widget.parent_0) {
- if (!firstParentWidget) {
- firstParentWidget = getFirstParentWidget(widget);
- if (!firstParentWidget) {
- $clinit_RootPanel();
- $add_7(widgetsToDetach, widget);
- widget.onAttach();
- }
- else {
- attachWidget(widget, firstParentWidget);
- }
- }
- else if (instanceOf(firstParentWidget, 76)) {
- h = dynamicCast(firstParentWidget, 76);
- p = $getParentElement(($clinit_DOM() , widget.element));
- p?$add_2(h, widget, p):$add_2(h, widget, h.element);
- }
- else if (instanceOf(firstParentWidget, 98)) {
- dynamicCast(firstParentWidget, 98).setWidget(widget);
- }
- else if (instanceOf(firstParentWidget, 40)) {
- try {
- dynamicCast(firstParentWidget, 40).add_0(widget);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 29)) {
- widgetSetParent(widget, firstParentWidget);
- }
- else
- throw unwrap($e0);
- }
- }
- else {
- widgetSetParent(widget, firstParentWidget);
- }
- }
-}
-
-function doLogicalDetachFromHtmlPanel(w){
- var parent_0;
- parent_0 = w.parent_0;
- if (instanceOf(parent_0, 76)) {
- $remove_4(dynamicCast(parent_0, 76).getChildren(), w);
- widgetSetParent(w, null);
- }
- else {
- throw new IllegalStateException_0('You can only use this method to detach a child from an HTMLPanel');
- }
-}
-
-function getFirstParentWidget(w){
- var body_0, e, p;
- e = $getParentElement(($clinit_DOM() , w.element));
- body_0 = $doc.body;
- while (!!e && body_0 != e) {
- if (getEventListener(e)) {
- p = $widget(($clinit_GQuery() , new GQuery_0(e)), 0);
- if (p) {
- return p;
- }
- }
- e = $getParentElement_0(($clinit_DOMImpl() , e));
- }
- return null;
-}
-
-function matchesTags(e, tagNames){
- var i_0, regExp, tagNameLenght;
- regExp = new StringBuilder_1('^(');
- tagNameLenght = tagNames != null?tagNames.length:0;
- for (i_0 = 0; i_0 < tagNameLenght; i_0++) {
- $append_0(regExp, tagNames[i_0].toUpperCase());
- i_0 < tagNameLenght - 1 && (regExp.string += '|' , regExp);
- }
- regExp.string += ')$';
- return $matches(($clinit_DOMImpl() , e).tagName.toUpperCase(), regExp.string);
-}
-
-function widgetSetParent(w, p){
- w.setParent(p);
-}
-
-function $exec_0(this$static, input_0){
- return this$static.exec(input_0);
-}
-
-function $replace(this$static, input_0, replacement){
- return input_0.replace(this$static, replacement);
-}
-
-function $test(this$static, input_0){
- return this$static.test(input_0);
-}
-
-function $clinit_DOM(){
- $clinit_DOM = emptyMethod;
- impl_2 = com_google_gwt_user_client_impl_DOMImpl();
-}
-
-function createElement(tagName){
- $clinit_DOM();
- return $createElement_0($doc, tagName);
-}
-
-function dispatchEvent_0(evt, elem){
- $clinit_DOM();
- var eventListener;
- eventListener = getEventListener(elem);
- if (!eventListener) {
- return false;
- }
- dispatchEvent_1(evt, elem, eventListener);
- return true;
-}
-
-function dispatchEvent_1(evt, elem, listener){
- $clinit_DOM();
- var prevCurrentEvent;
- prevCurrentEvent = currentEvent;
- currentEvent = evt;
- elem == sCaptureElem && $eventGetTypeInt(($clinit_DOMImpl() , evt).type) == 8192 && (sCaptureElem = null);
- listener.onBrowserEvent(evt);
- currentEvent = prevCurrentEvent;
-}
-
-function getFirstChild(elem){
- $clinit_DOM();
- return $getFirstChildElement_0(($clinit_DOMImpl() , elem));
-}
-
-function isPotential(o){
- $clinit_DOM();
- try {
- return !!o && !!o.__gwt_resolve;
- }
- catch (e) {
- return false;
- }
-}
-
-function previewEvent(evt){
- $clinit_DOM();
- var ret;
- ret = fire_3(handlers_0, evt);
- if (!ret && !!evt) {
- $eventStopPropagation(($clinit_DOMImpl() , evt));
- $eventPreventDefault(evt);
- }
- return ret;
-}
-
-function releaseCapture(elem){
- $clinit_DOM();
- !!sCaptureElem && elem == sCaptureElem && (sCaptureElem = null);
- $releaseCapture(impl_2, elem);
-}
-
-function resolve(maybePotential){
- $clinit_DOM();
- return maybePotential.__gwt_resolve?maybePotential.__gwt_resolve():maybePotential;
-}
-
-function setCapture(elem){
- $clinit_DOM();
- sCaptureElem = elem;
- $setCapture(impl_2, elem);
-}
-
-function sinkBitlessEvent(elem, eventTypeName){
- $clinit_DOM();
- $sinkBitlessEvent_0(impl_2, elem, eventTypeName);
-}
-
-function sinkEvents(elem, eventBits){
- $clinit_DOM();
- impl_2.sinkEvents_0(elem, eventBits);
-}
-
-var currentEvent = null, impl_2, sCaptureElem;
-function $onModuleLoad(){
- var allowedModes, currentMode, i_0;
- currentMode = $doc.compatMode;
- allowedModes = initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['CSS1Compat']);
- for (i_0 = 0; i_0 < allowedModes.length; i_0++) {
- if ($equals_2(allowedModes[i_0], currentMode)) {
- return;
- }
- }
- allowedModes.length == 1 && $equals_2('CSS1Compat', allowedModes[0]) && $equals_2('BackCompat', currentMode)?"GWT no longer supports Quirks Mode (document.compatMode=' BackCompat').<br>Make sure your application's host HTML page has a Standards Mode (document.compatMode=' CSS1Compat') doctype,<br>e.g. by using &lt;!doctype html&gt; at the start of your application's HTML page.<br><br>To continue using this unsupported rendering mode and risk layout problems, suppress this message by adding<br>the following line to your*.gwt.xml module file:<br>&nbsp;&nbsp;&lt;extend-configuration-property name=\"document.compatMode\" value=\"" + currentMode + '"/&gt;':"Your *.gwt.xml module configuration prohibits the use of the current document rendering mode (document.compatMode=' " + currentMode + "').<br>Modify your application's host HTML page doctype, or update your custom " + "'document.compatMode' configuration property settings.";
-}
-
-function $getTypeInt(this$static){
- return $clinit_DOM() , $eventGetTypeInt(($clinit_DOMImpl() , this$static).type);
-}
-
-function addNativePreviewHandler(handler){
- $clinit_DOM();
- $maybeInitializeEventSystem(impl_2);
- !TYPE_4 && (TYPE_4 = new GwtEvent$Type);
- if (!handlers_0) {
- handlers_0 = new HandlerManager_0(null, true);
- singleton = new Event$NativePreviewEvent;
- }
- return $addHandler(handlers_0, TYPE_4, handler);
-}
-
-function getTypeInt(typeName){
- return $eventGetTypeInt(($clinit_DOM() , typeName));
-}
-
-function sinkEvents_0(elem, eventBits){
- $clinit_DOM();
- impl_2.sinkEvents_0(elem, eventBits);
-}
-
-var handlers_0;
-function $revive(this$static){
- this$static.dead = false;
- this$static.source = null;
- this$static.isCanceled = false;
- this$static.isConsumed = false;
- this$static.isFirstHandler = true;
- this$static.nativeEvent = null;
-}
-
-function $setNativeEvent_0(this$static, nativeEvent){
- this$static.nativeEvent = nativeEvent;
-}
-
-function Event$NativePreviewEvent(){
-}
-
-function fire_3(handlers, nativeEvent){
- var lastIsCanceled, lastIsConsumed, lastIsFirstHandler, lastNativeEvent, ret;
- if (!!TYPE_4 && !!handlers && $isEventHandled(handlers, TYPE_4)) {
- lastIsCanceled = singleton.isCanceled;
- lastIsConsumed = singleton.isConsumed;
- lastIsFirstHandler = singleton.isFirstHandler;
- lastNativeEvent = singleton.nativeEvent;
- $revive(singleton);
- $setNativeEvent_0(singleton, nativeEvent);
- $fireEvent(handlers, singleton);
- ret = !(singleton.isCanceled && !singleton.isConsumed);
- singleton.isCanceled = lastIsCanceled;
- singleton.isConsumed = lastIsConsumed;
- singleton.isFirstHandler = lastIsFirstHandler;
- singleton.nativeEvent = lastNativeEvent;
- return ret;
- }
- return true;
-}
-
-defineClass(300, 556, {}, Event$NativePreviewEvent);
-_.dispatch = function(handler){
- dynamicCast(handler, 200).onPreviewNativeEvent(this);
- singleton.isFirstHandler = false;
-}
-;
-_.getAssociatedType = function(){
- return TYPE_4;
-}
-;
-_.revive = function(){
- $revive(this);
-}
-;
-_.isCanceled = false;
-_.isConsumed = false;
-_.isFirstHandler = false;
-var TYPE_4, singleton;
-var Lcom_google_gwt_user_client_Event$NativePreviewEvent_2_classLit = createForClass('com.google.gwt.user.client', 'Event/NativePreviewEvent', 300, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function $clinit_History(){
- $clinit_History = emptyMethod;
- new History$HistoryImpl;
- historyEventSource = new History$HistoryEventSource;
- token = getDecodedHash();
-}
-
-function addValueChangeHandler(handler){
- $clinit_History();
- return $addValueChangeHandler(historyEventSource, handler);
-}
-
-function getDecodedHash(){
- var hashToken;
- hashToken = ($clinit_Window() , impl_3).getHash();
- if (hashToken == null || !hashToken.length) {
- return '';
- }
- return $decode(__substr(hashToken, 1, hashToken.length - 1));
-}
-
-function onHashChanged(){
- $clinit_History();
- var hashToken;
- hashToken = getDecodedHash();
- if (!$equals_2(hashToken, token)) {
- token = hashToken;
- fire_2(historyEventSource, hashToken);
- }
-}
-
-var historyEventSource, token;
-function $addValueChangeHandler(this$static, handler){
- return $addHandler(this$static.handlers, (!TYPE_3 && (TYPE_3 = new GwtEvent$Type) , TYPE_3), handler);
-}
-
-function History$HistoryEventSource(){
- this.handlers = new HandlerManager(null);
-}
-
-defineClass(502, 1, {24:1}, History$HistoryEventSource);
-_.fireEvent = function(event_0){
- $fireEvent(this.handlers, event_0);
-}
-;
-var Lcom_google_gwt_user_client_History$HistoryEventSource_2_classLit = createForClass('com.google.gwt.user.client', 'History/HistoryEventSource', 502, Ljava_lang_Object_2_classLit);
-function History$HistoryImpl(){
- var handler;
- handler = $entry(onHashChanged);
- $wnd.addEventListener('hashchange', handler, false);
-}
-
-defineClass(503, 1, {}, History$HistoryImpl);
-var Lcom_google_gwt_user_client_History$HistoryImpl_2_classLit = createForClass('com.google.gwt.user.client', 'History/HistoryImpl', 503, Ljava_lang_Object_2_classLit);
-function $decode(toDecode){
- return $wnd.decodeURI(toDecode.replace('%23', '#'));
-}
-
-function $clinit_Window(){
- $clinit_Window = emptyMethod;
- impl_3 = com_google_gwt_user_client_impl_WindowImpl();
-}
-
-function addCloseHandler(handler){
- $clinit_Window();
- maybeInitializeCloseHandlers();
- return addHandler(TYPE_1?TYPE_1:(TYPE_1 = new GwtEvent$Type), handler);
-}
-
-function addHandler(type_0, handler){
- return $addHandler((!handlers_1 && (handlers_1 = new Window$WindowHandlers) , handlers_1), type_0, handler);
-}
-
-function addResizeHandler(handler){
- $clinit_Window();
- maybeInitializeCloseHandlers();
- maybeInitializeResizeHandlers();
- return addHandler((!TYPE_2 && (TYPE_2 = new GwtEvent$Type) , TYPE_2), handler);
-}
-
-function alert_0(msg){
- $clinit_Window();
- $wnd.alert(msg);
-}
-
-function maybeInitializeCloseHandlers(){
- if (!closeHandlersInitialized) {
- $initWindowCloseHandler();
- closeHandlersInitialized = true;
- }
-}
-
-function maybeInitializeResizeHandlers(){
- if (!resizeHandlersInitialized) {
- $initWindowResizeHandler();
- resizeHandlersInitialized = true;
- }
-}
-
-function onClosing(){
- $clinit_Window();
- var event_0;
- if (closeHandlersInitialized) {
- event_0 = new Window$ClosingEvent;
- !!handlers_1 && $fireEvent(handlers_1, event_0);
- return null;
- }
- return null;
-}
-
-function onResize(){
- $clinit_Window();
- var height, width_0;
- if (resizeHandlersInitialized) {
- width_0 = $getClientWidth($doc);
- height = $getClientHeight($doc);
- if (lastResizeWidth != width_0 || lastResizeHeight != height) {
- lastResizeWidth = width_0;
- lastResizeHeight = height;
- fire_1((!handlers_1 && (handlers_1 = new Window$WindowHandlers) , handlers_1));
- }
- }
-}
-
-var closeHandlersInitialized = false, handlers_1, impl_3, lastResizeHeight = 0, lastResizeWidth = 0, resizeHandlersInitialized = false;
-function $clinit_Window$ClosingEvent(){
- $clinit_Window$ClosingEvent = emptyMethod;
- TYPE_5 = new GwtEvent$Type;
-}
-
-function Window$ClosingEvent(){
- $clinit_Window$ClosingEvent();
-}
-
-defineClass(332, 556, {}, Window$ClosingEvent);
-_.dispatch = function(handler){
- throwClassCastExceptionUnlessNull(handler);
- null.nullMethod();
-}
-;
-_.getAssociatedType = function(){
- return TYPE_5;
-}
-;
-var TYPE_5;
-var Lcom_google_gwt_user_client_Window$ClosingEvent_2_classLit = createForClass('com.google.gwt.user.client', 'Window/ClosingEvent', 332, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function buildListParamMap(queryString){
- var entry, entry$iterator, key, kv, kvPair, kvPair$array, kvPair$index, kvPair$max, out, qs, val, values, regexp;
- out = new HashMap;
- if (queryString != null && queryString.length > 1) {
- qs = __substr(queryString, 1, queryString.length - 1);
- for (kvPair$array = $split(qs, '&', 0) , kvPair$index = 0 , kvPair$max = kvPair$array.length; kvPair$index < kvPair$max; ++kvPair$index) {
- kvPair = kvPair$array[kvPair$index];
- kv = $split(kvPair, '=', 2);
- key = kv[0];
- if (!key.length) {
- continue;
- }
- val = kv.length > 1?kv[1]:'';
- try {
- val = (throwIfNull(val) , regexp = /\+/g , decodeURIComponent(val.replace(regexp, '%20')));
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (!instanceOf($e0, 58))
- throw unwrap($e0);
- }
- values = dynamicCast(out.get_1(key), 30);
- if (!values) {
- values = new ArrayList;
- out.put(key, values);
- }
- values.add_1(val);
- }
- }
- for (entry$iterator = out.entrySet_0().iterator_0(); entry$iterator.hasNext();) {
- entry = dynamicCast(entry$iterator.next_0(), 25);
- entry.setValue_0(unmodifiableList(dynamicCast(entry.getValue_1(), 30)));
- }
- out = ($clinit_Collections() , new Collections$UnmodifiableMap(out));
- return out;
-}
-
-function ensureListParameterMap(){
- var currentQueryString;
- currentQueryString = ($clinit_Window() , $wnd.location.search);
- if (!listParamMap || !$equals_2(cachedQueryString, currentQueryString)) {
- listParamMap = buildListParamMap(currentQueryString);
- cachedQueryString = currentQueryString;
- }
-}
-
-var cachedQueryString = '', listParamMap;
-function Window$WindowHandlers(){
- HandlerManager.call(this, null);
-}
-
-defineClass(131, 60, {24:1}, Window$WindowHandlers);
-var Lcom_google_gwt_user_client_Window$WindowHandlers_2_classLit = createForClass('com.google.gwt.user.client', 'Window/WindowHandlers', 131, Lcom_google_gwt_event_shared_HandlerManager_2_classLit);
-function $eventCancelBubble(evt, cancel){
- evt.cancelBubble = cancel;
-}
-
-function $eventGetTypeInt(eventType){
- switch (eventType) {
- case 'blur':
- return 4096;
- case 'change':
- return 1024;
- case 'click':
- return 1;
- case 'dblclick':
- return 2;
- case 'focus':
- return 2048;
- case 'keydown':
- return 128;
- case 'keypress':
- return 256;
- case 'keyup':
- return 512;
- case 'load':
- return 32768;
- case 'losecapture':
- return 8192;
- case 'mousedown':
- return 4;
- case 'mousemove':
- return 64;
- case 'mouseout':
- return 32;
- case 'mouseover':
- return 16;
- case 'mouseup':
- return 8;
- case 'scroll':
- return 16384;
- case 'error':
- return $intern_28;
- case 'DOMMouseScroll':
- case 'mousewheel':
- return $intern_29;
- case 'contextmenu':
- return 262144;
- case 'paste':
- return $intern_16;
- case 'touchstart':
- return $intern_30;
- case 'touchmove':
- return $intern_31;
- case 'touchend':
- return $intern_17;
- case 'touchcancel':
- return $intern_32;
- case 'gesturestart':
- return $intern_33;
- case 'gesturechange':
- return $intern_34;
- case 'gestureend':
- return $intern_35;
- default:return -1;
- }
-}
-
-function $getEventsSunk(elem){
- return elem.__eventBits || 0;
-}
-
-function $maybeInitializeEventSystem(this$static){
- if (!eventSystemIsInitialized) {
- this$static.initEventSystem();
- eventSystemIsInitialized = true;
- }
-}
-
-function getEventListener(elem){
- var maybeListener = elem.__listener;
- return !instanceOfJso(maybeListener) && instanceOf(maybeListener, 20)?maybeListener:null;
-}
-
-function setEventListener(elem, listener){
- elem.__listener = listener;
-}
-
-defineClass(573, 1, {});
-var eventSystemIsInitialized = false;
-var Lcom_google_gwt_user_client_impl_DOMImpl_2_classLit = createForClass('com.google.gwt.user.client.impl', 'DOMImpl', 573, Ljava_lang_Object_2_classLit);
-function $clinit_DOMImplStandard(){
- $clinit_DOMImplStandard = emptyMethod;
- bitlessEventDispatchers = {_default_:dispatchEvent_3, dragenter:dispatchDragEvent, dragover:dispatchDragEvent};
- captureEventDispatchers = {click:dispatchCapturedMouseEvent, dblclick:dispatchCapturedMouseEvent, mousedown:dispatchCapturedMouseEvent, mouseup:dispatchCapturedMouseEvent, mousemove:dispatchCapturedMouseEvent, mouseover:dispatchCapturedMouseEvent, mouseout:dispatchCapturedMouseEvent, mousewheel:dispatchCapturedMouseEvent, keydown:dispatchCapturedEvent, keyup:dispatchCapturedEvent, keypress:dispatchCapturedEvent, touchstart:dispatchCapturedMouseEvent, touchend:dispatchCapturedMouseEvent, touchmove:dispatchCapturedMouseEvent, touchcancel:dispatchCapturedMouseEvent, gesturestart:dispatchCapturedMouseEvent, gestureend:dispatchCapturedMouseEvent, gesturechange:dispatchCapturedMouseEvent};
-}
-
-function $getChild_0(elem, index_0){
- var count = 0, child = elem.firstChild;
- while (child) {
- if (child.nodeType == 1) {
- if (index_0 == count)
- return child;
- ++count;
- }
- child = child.nextSibling;
- }
- return null;
-}
-
-function $initEventSystem(){
- dispatchEvent_2 = $entry(dispatchEvent_3);
- dispatchUnhandledEvent = $entry(dispatchUnhandledEvent_0);
- var foreach = foreach_0;
- var bitlessEvents = bitlessEventDispatchers;
- foreach(bitlessEvents, function(e, fn){
- bitlessEvents[e] = $entry(fn);
- }
- );
- var captureEvents_0 = captureEventDispatchers;
- foreach(captureEvents_0, function(e, fn){
- captureEvents_0[e] = $entry(fn);
- }
- );
- foreach(captureEvents_0, function(e, fn){
- $wnd.addEventListener(e, fn, true);
- }
- );
-}
-
-function $releaseCapture(this$static, elem){
- $maybeInitializeEventSystem(this$static);
- captureElem == elem && (captureElem = null);
-}
-
-function $setCapture(this$static, elem){
- $maybeInitializeEventSystem(this$static);
- captureElem = elem;
-}
-
-function $sinkBitlessEvent_0(this$static, elem, eventTypeName){
- var dispatchMap, dispatcher;
- $maybeInitializeEventSystem(this$static);
- dispatchMap = bitlessEventDispatchers;
- dispatcher = dispatchMap[eventTypeName] || dispatchMap['_default_'];
- elem.addEventListener(eventTypeName, dispatcher, false);
-}
-
-function $sinkEventsImpl(elem, bits){
- var chMask = (elem.__eventBits || 0) ^ bits;
- elem.__eventBits = bits;
- if (!chMask)
- return;
- chMask & 1 && (elem.onclick = bits & 1?dispatchEvent_2:null);
- chMask & 2 && (elem.ondblclick = bits & 2?dispatchEvent_2:null);
- chMask & 4 && (elem.onmousedown = bits & 4?dispatchEvent_2:null);
- chMask & 8 && (elem.onmouseup = bits & 8?dispatchEvent_2:null);
- chMask & 16 && (elem.onmouseover = bits & 16?dispatchEvent_2:null);
- chMask & 32 && (elem.onmouseout = bits & 32?dispatchEvent_2:null);
- chMask & 64 && (elem.onmousemove = bits & 64?dispatchEvent_2:null);
- chMask & 128 && (elem.onkeydown = bits & 128?dispatchEvent_2:null);
- chMask & 256 && (elem.onkeypress = bits & 256?dispatchEvent_2:null);
- chMask & 512 && (elem.onkeyup = bits & 512?dispatchEvent_2:null);
- chMask & 1024 && (elem.onchange = bits & 1024?dispatchEvent_2:null);
- chMask & 2048 && (elem.onfocus = bits & 2048?dispatchEvent_2:null);
- chMask & 4096 && (elem.onblur = bits & 4096?dispatchEvent_2:null);
- chMask & 8192 && (elem.onlosecapture = bits & 8192?dispatchEvent_2:null);
- chMask & 16384 && (elem.onscroll = bits & 16384?dispatchEvent_2:null);
- chMask & 32768 && (elem.onload = bits & 32768?dispatchUnhandledEvent:null);
- chMask & $intern_28 && (elem.onerror = bits & $intern_28?dispatchEvent_2:null);
- chMask & $intern_29 && (elem.onmousewheel = bits & $intern_29?dispatchEvent_2:null);
- chMask & 262144 && (elem.oncontextmenu = bits & 262144?dispatchEvent_2:null);
- chMask & $intern_16 && (elem.onpaste = bits & $intern_16?dispatchEvent_2:null);
- chMask & $intern_30 && (elem.ontouchstart = bits & $intern_30?dispatchEvent_2:null);
- chMask & $intern_31 && (elem.ontouchmove = bits & $intern_31?dispatchEvent_2:null);
- chMask & $intern_17 && (elem.ontouchend = bits & $intern_17?dispatchEvent_2:null);
- chMask & $intern_32 && (elem.ontouchcancel = bits & $intern_32?dispatchEvent_2:null);
- chMask & $intern_33 && (elem.ongesturestart = bits & $intern_33?dispatchEvent_2:null);
- chMask & $intern_34 && (elem.ongesturechange = bits & $intern_34?dispatchEvent_2:null);
- chMask & $intern_35 && (elem.ongestureend = bits & $intern_35?dispatchEvent_2:null);
-}
-
-function dispatchCapturedEvent(evt){
- previewEvent(evt);
-}
-
-function dispatchCapturedMouseEvent(evt){
- $clinit_DOMImplStandard();
- var cancelled;
- cancelled = !previewEvent(evt);
- if (cancelled || !captureElem) {
- return;
- }
- dispatchEvent_0(evt, captureElem) && $eventStopPropagation(($clinit_DOMImpl() , evt));
-}
-
-function dispatchDragEvent(evt){
- $eventPreventDefault(($clinit_DOMImpl() , evt));
- dispatchEvent_3(evt);
-}
-
-function dispatchEvent_3(evt){
- var element;
- element = getFirstAncestorWithListener(evt);
- if (!element) {
- return;
- }
- dispatchEvent_1(evt, element.nodeType != 1?null:element, getEventListener(element));
-}
-
-function dispatchUnhandledEvent_0(evt){
- var element;
- element = ($clinit_DOMImpl() , impl_0).eventGetCurrentTarget(evt);
- $setPropertyString(element, '__gwtLastUnhandledEvent', evt.type);
- dispatchEvent_3(evt);
-}
-
-function getFirstAncestorWithListener(evt){
- var curElem;
- curElem = ($clinit_DOMImpl() , impl_0).eventGetCurrentTarget(evt);
- while (!!curElem && !getEventListener(curElem)) {
- curElem = curElem.parentNode;
- }
- return curElem;
-}
-
-defineClass(574, 573, {});
-_.initEventSystem = function(){
- $initEventSystem();
-}
-;
-_.sinkEvents_0 = function(elem, bits){
- $maybeInitializeEventSystem(this);
- $sinkEventsImpl(elem, bits);
-}
-;
-var bitlessEventDispatchers, captureElem, captureEventDispatchers, dispatchEvent_2, dispatchUnhandledEvent;
-var Lcom_google_gwt_user_client_impl_DOMImplStandard_2_classLit = createForClass('com.google.gwt.user.client.impl', 'DOMImplStandard', 574, Lcom_google_gwt_user_client_impl_DOMImpl_2_classLit);
-function $clinit_DOMImplMozilla(){
- $clinit_DOMImplMozilla = emptyMethod;
- $clinit_DOMImplStandard();
- captureEventDispatchers['DOMMouseScroll'] = dispatchCapturedMouseEvent;
-}
-
-function $initSyntheticMouseUpEvents(){
- $wnd.addEventListener('mouseout', $entry(function(evt){
- var cap = ($clinit_DOMImplStandard() , captureElem);
- if (cap && !evt.relatedTarget) {
- if ('html' == evt.target.tagName.toLowerCase()) {
- var muEvent = $doc.createEvent('MouseEvents');
- muEvent.initMouseEvent('mouseup', true, true, $wnd, 0, evt.screenX, evt.screenY, evt.clientX, evt.clientY, evt.ctrlKey, evt.altKey, evt.shiftKey, evt.metaKey, evt.button, null);
- cap.dispatchEvent(muEvent);
- }
- }
- }
- ), true);
-}
-
-function DOMImplMozilla_0(){
- $clinit_DOMImplMozilla();
-}
-
-defineClass(419, 574, {}, DOMImplMozilla_0);
-_.initEventSystem = function(){
- $initEventSystem();
- $initSyntheticMouseUpEvents();
-}
-;
-_.sinkEvents_0 = function(elem, bits){
- $maybeInitializeEventSystem(this);
- $sinkEventsImpl(elem, bits);
- bits & $intern_29 && elem.addEventListener('DOMMouseScroll', ($clinit_DOMImplStandard() , dispatchEvent_2), false);
-}
-;
-var Lcom_google_gwt_user_client_impl_DOMImplMozilla_2_classLit = createForClass('com.google.gwt.user.client.impl', 'DOMImplMozilla', 419, Lcom_google_gwt_user_client_impl_DOMImplStandard_2_classLit);
-defineClass(575, 574, {});
-var Lcom_google_gwt_user_client_impl_DOMImplStandardBase_2_classLit = createForClass('com.google.gwt.user.client.impl', 'DOMImplStandardBase', 575, Lcom_google_gwt_user_client_impl_DOMImplStandard_2_classLit);
-function DOMImplWebkit_0(){
- $clinit_DOMImplStandard();
-}
-
-defineClass(418, 575, {}, DOMImplWebkit_0);
-var Lcom_google_gwt_user_client_impl_DOMImplWebkit_2_classLit = createForClass('com.google.gwt.user.client.impl', 'DOMImplWebkit', 418, Lcom_google_gwt_user_client_impl_DOMImplStandardBase_2_classLit);
-function foreach_0(map_0, fn){
- for (var e in map_0) {
- map_0.hasOwnProperty(e) && fn(e, map_0[e]);
- }
-}
-
-function $initWindowCloseHandler(){
- var oldOnBeforeUnload = $wnd.onbeforeunload;
- var oldOnUnload = $wnd.onunload;
- $wnd.onbeforeunload = function(evt){
- var ret, oldRet;
- try {
- ret = $entry(onClosing)();
- }
- finally {
- oldRet = oldOnBeforeUnload && oldOnBeforeUnload(evt);
- }
- if (ret != null) {
- return ret;
- }
- if (oldRet != null) {
- return oldRet;
- }
- }
- ;
- $wnd.onunload = $entry(function(evt){
- try {
- $clinit_Window();
- closeHandlersInitialized && fire_0((!handlers_1 && (handlers_1 = new Window$WindowHandlers) , handlers_1));
- }
- finally {
- oldOnUnload && oldOnUnload(evt);
- $wnd.onresize = null;
- $wnd.onscroll = null;
- $wnd.onbeforeunload = null;
- $wnd.onunload = null;
- }
- }
- );
-}
-
-function $initWindowResizeHandler(){
- var oldOnResize = $wnd.onresize;
- $wnd.onresize = $entry(function(evt){
- try {
- onResize();
- }
- finally {
- oldOnResize && oldOnResize(evt);
- }
- }
- );
-}
-
-function WindowImpl(){
-}
-
-defineClass(461, 1, {}, WindowImpl);
-_.getHash = function getHash(){
- return $wnd.location.hash;
-}
-;
-var Lcom_google_gwt_user_client_impl_WindowImpl_2_classLit = createForClass('com.google.gwt.user.client.impl', 'WindowImpl', 461, Ljava_lang_Object_2_classLit);
-function WindowImplMozilla(){
-}
-
-defineClass(479, 461, {}, WindowImplMozilla);
-_.getHash = function getHash_0(){
- var href_0 = $wnd.location.href;
- var hashLoc = href_0.indexOf('#');
- return hashLoc > 0?href_0.substring(hashLoc):'';
-}
-;
-var Lcom_google_gwt_user_client_impl_WindowImplMozilla_2_classLit = createForClass('com.google.gwt.user.client.impl', 'WindowImplMozilla', 479, Lcom_google_gwt_user_client_impl_WindowImpl_2_classLit);
-function $add_3(this$static, w){
- $add_2(this$static, w, ($clinit_DOM() , this$static.element));
-}
-
-function $remove_1(this$static, w){
- var removed;
- removed = $remove_0(this$static, w);
- removed && changeToStaticPositioning(($clinit_DOM() , w.element));
- return removed;
-}
-
-function changeToStaticPositioning(elem){
- $setPropertyImpl(elem.style, 'left', '');
- $setPropertyImpl(elem.style, 'top', '');
- $setPropertyImpl(elem.style, 'position', '');
-}
-
-defineClass(441, 176, $intern_26);
-_.add_0 = function(w){
- $add_3(this, w);
-}
-;
-_.remove = function(w){
- return $remove_1(this, w);
-}
-;
-var Lcom_google_gwt_user_client_ui_AbsolutePanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AbsolutePanel', 441, Lcom_google_gwt_user_client_ui_ComplexPanel_2_classLit);
-function $clinit_AttachDetachException(){
- $clinit_AttachDetachException = emptyMethod;
- attachCommand = new AttachDetachException$1;
- detachCommand = new AttachDetachException$2;
-}
-
-function AttachDetachException(causes){
- UmbrellaException_0.call(this, causes);
-}
-
-function tryCommand(hasWidgets, c){
- $clinit_AttachDetachException();
- var caught, e, w, w$iterator;
- caught = null;
- for (w$iterator = hasWidgets.iterator_0(); w$iterator.hasNext();) {
- w = dynamicCast(w$iterator.next_0(), 17);
- try {
- c.execute_2(w);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 14)) {
- e = $e0;
- !caught && (caught = new HashSet);
- $add_7(caught, e);
- }
- else
- throw unwrap($e0);
- }
- }
- if (caught) {
- throw new AttachDetachException(caught);
- }
-}
-
-defineClass(445, 177, $intern_13, AttachDetachException);
-var attachCommand, detachCommand;
-var Lcom_google_gwt_user_client_ui_AttachDetachException_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AttachDetachException', 445, Lcom_google_gwt_event_shared_UmbrellaException_2_classLit);
-function AttachDetachException$1(){
-}
-
-defineClass(446, 1, {}, AttachDetachException$1);
-_.execute_2 = function(w){
- w.onAttach();
-}
-;
-var Lcom_google_gwt_user_client_ui_AttachDetachException$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AttachDetachException/1', 446, Ljava_lang_Object_2_classLit);
-function AttachDetachException$2(){
-}
-
-defineClass(447, 1, {}, AttachDetachException$2);
-_.execute_2 = function(w){
- w.onDetach();
-}
-;
-var Lcom_google_gwt_user_client_ui_AttachDetachException$2_2_classLit = createForClass('com.google.gwt.user.client.ui', 'AttachDetachException/2', 447, Ljava_lang_Object_2_classLit);
-function $clinit_FocusWidget(){
- $clinit_FocusWidget = emptyMethod;
- $clinit_FocusImpl();
-}
-
-defineClass(469, 17, $intern_25);
-_.onAttach = function(){
- var tabIndex;
- $onAttach(this);
- tabIndex = $getTabIndex(this.inputElem);
- -1 == tabIndex && !!this.inputElem && $setTabIndex(this.inputElem, 0);
-}
-;
-var Lcom_google_gwt_user_client_ui_FocusWidget_2_classLit = createForClass('com.google.gwt.user.client.ui', 'FocusWidget', 469, Lcom_google_gwt_user_client_ui_Widget_2_classLit);
-function ButtonBase(elem){
- $setElement_0(this, ($clinit_DOM() , elem));
-}
-
-defineClass(470, 469, $intern_25);
-var Lcom_google_gwt_user_client_ui_ButtonBase_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ButtonBase', 470, Lcom_google_gwt_user_client_ui_FocusWidget_2_classLit);
-function $addValueChangeHandler_0(this$static, handler){
- if (!this$static.valueChangeHandlerInitialized) {
- $addDomHandler(this$static, new CheckBox$1(this$static), ($clinit_ClickEvent() , $clinit_ClickEvent() , TYPE));
- this$static.valueChangeHandlerInitialized = true;
- }
- return $addHandler_0(this$static, handler, (!TYPE_3 && (TYPE_3 = new GwtEvent$Type) , TYPE_3));
-}
-
-function $getValue(this$static){
- return this$static.attached?($clinit_Boolean() , $isChecked(this$static.inputElem)?TRUE:FALSE):($clinit_Boolean() , $isDefaultChecked(this$static.inputElem)?TRUE:FALSE);
-}
-
-function $setValue(this$static, value_0){
- var oldValue;
- !value_0 && (value_0 = ($clinit_Boolean() , FALSE));
- oldValue = this$static.attached?($clinit_Boolean() , $isChecked(this$static.inputElem)?TRUE:FALSE):($clinit_Boolean() , $isDefaultChecked(this$static.inputElem)?TRUE:FALSE);
- $setChecked(this$static.inputElem, value_0.value_0);
- $setDefaultChecked(this$static.inputElem, value_0.value_0);
- if (!!oldValue && oldValue.value_0 == value_0.value_0) {
- return;
- }
-}
-
-function CheckBox(){
- $clinit_FocusWidget();
- CheckBox_0.call(this, ($clinit_DOM() , $createCheckInputElement($doc)));
- $setClassName(this.element, 'gwt-CheckBox');
-}
-
-function CheckBox_0(elem){
- var uid;
- ButtonBase.call(this, ($clinit_DOM() , $createSpanElement($doc)));
- this.inputElem = elem;
- this.labelElem = $createLabelElement($doc);
- $appendChild(this.element, this.inputElem);
- $appendChild(this.element, this.labelElem);
- uid = $createUniqueId($doc);
- $setPropertyString(this.inputElem, 'id', uid);
- $setHtmlFor(this.labelElem, uid);
- new DirectionalTextHelper(this.labelElem);
- !!this.inputElem && $setTabIndex(this.inputElem, 0);
-}
-
-defineClass(182, 470, $intern_25, CheckBox);
-_.onLoad = function(){
- $clinit_DOM();
- setEventListener(this.inputElem, this);
-}
-;
-_.onUnload = function(){
- $clinit_DOM();
- setEventListener(this.inputElem, null);
- $setValue(this, this.attached?($clinit_Boolean() , $isChecked(this.inputElem)?TRUE:FALSE):($clinit_Boolean() , $isDefaultChecked(this.inputElem)?TRUE:FALSE));
-}
-;
-_.sinkEvents = function(eventBitsToAdd){
- this.eventsToSink == -1?sinkEvents_0(this.inputElem, eventBitsToAdd | ($clinit_DOM() , $getEventsSunk(this.inputElem))):this.eventsToSink == -1?sinkEvents(($clinit_DOM() , this.element), eventBitsToAdd | (this.element.__eventBits || 0)):(this.eventsToSink |= eventBitsToAdd);
-}
-;
-_.valueChangeHandlerInitialized = false;
-var Lcom_google_gwt_user_client_ui_CheckBox_2_classLit = createForClass('com.google.gwt.user.client.ui', 'CheckBox', 182, Lcom_google_gwt_user_client_ui_ButtonBase_2_classLit);
-function CheckBox$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(471, 1, {585:1, 22:1}, CheckBox$1);
-var Lcom_google_gwt_user_client_ui_CheckBox$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'CheckBox/1', 471, Ljava_lang_Object_2_classLit);
-function $checkInit(this$static){
- if (!this$static.widget) {
- throw new IllegalStateException_0('initWidget() is not called yet');
- }
-}
-
-function $initWidget(this$static, widget){
- var elem;
- if (this$static.widget) {
- throw new IllegalStateException_0('Composite.initWidget() may only be called once.');
- }
- $removeFromParent_0(widget);
- elem = ($clinit_DOM() , widget.element);
- $setElement_0(this$static, elem);
- ($clinit_PotentialElement() , isPotential(elem)) && $setResolver(elem, this$static);
- this$static.widget = widget;
- $setParent(widget, this$static);
-}
-
-function $isAttached(this$static){
- if (this$static.widget) {
- return this$static.widget.attached;
- }
- return false;
-}
-
-function $onAttach_0(this$static){
- $checkInit(this$static);
- if (this$static.eventsToSink != -1) {
- $sinkEvents(this$static.widget, this$static.eventsToSink);
- this$static.eventsToSink = -1;
- }
- $onAttach(this$static.widget);
- $clinit_DOM();
- setEventListener(this$static.element, this$static);
- fire(this$static);
-}
-
-defineClass(557, 17, $intern_25);
-_.isAttached = function(){
- return $isAttached(this);
-}
-;
-_.onAttach = function(){
- $onAttach_0(this);
-}
-;
-_.onBrowserEvent = function(event_0){
- $onBrowserEvent(this, event_0);
- $onBrowserEvent(this.widget, event_0);
-}
-;
-_.onDetach = function(){
- try {
- fire(this);
- }
- finally {
- $onDetach(this.widget);
- }
-}
-;
-_.resolvePotentialElement = function(){
- $setElement_0(this, ($clinit_DOM() , $resolvePotentialElement()));
- return this.element;
-}
-;
-var Lcom_google_gwt_user_client_ui_Composite_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Composite', 557, Lcom_google_gwt_user_client_ui_Widget_2_classLit);
-function $setTextOrHtml(this$static, content_0, isHtml){
- isHtml?$setInnerHTML(this$static.element, content_0):$setInnerText(this$static.element, content_0);
- if (this$static.textDir != this$static.initialElementDir) {
- this$static.textDir = this$static.initialElementDir;
- setDirectionOnElement(this$static.element, this$static.initialElementDir);
- }
-}
-
-function DirectionalTextHelper(element){
- this.element = element;
- this.initialElementDir = getDirectionOnElement(element);
- this.textDir = this.initialElementDir;
-}
-
-defineClass(180, 1, {}, DirectionalTextHelper);
-var Lcom_google_gwt_user_client_ui_DirectionalTextHelper_2_classLit = createForClass('com.google.gwt.user.client.ui', 'DirectionalTextHelper', 180, Ljava_lang_Object_2_classLit);
-function LabelBase(element){
- $setElement_0(this, ($clinit_DOM() , element));
- this.directionalTextHelper = new DirectionalTextHelper(this.element);
-}
-
-defineClass(166, 17, $intern_25);
-var Lcom_google_gwt_user_client_ui_LabelBase_2_classLit = createForClass('com.google.gwt.user.client.ui', 'LabelBase', 166, Lcom_google_gwt_user_client_ui_Widget_2_classLit);
-function $setText(this$static, text_0){
- $setTextOrHtml(this$static.directionalTextHelper, text_0, false);
-}
-
-function Label(element){
- LabelBase.call(this, ($equalsIgnoreCase('span', ($clinit_DOMImpl() , element).tagName) , element));
-}
-
-defineClass(399, 166, $intern_25);
-var Lcom_google_gwt_user_client_ui_Label_2_classLit = createForClass('com.google.gwt.user.client.ui', 'Label', 399, Lcom_google_gwt_user_client_ui_LabelBase_2_classLit);
-function HTML(){
- Label.call(this, $createDivElement($doc));
- $setClassName(($clinit_DOM() , this.element), 'gwt-HTML');
- $setTextOrHtml(this.directionalTextHelper, '', true);
- this.element.style['whiteSpace'] = ($clinit_Style$WhiteSpace() , 'nowrap');
-}
-
-defineClass(132, 399, $intern_25, HTML);
-var Lcom_google_gwt_user_client_ui_HTML_2_classLit = createForClass('com.google.gwt.user.client.ui', 'HTML', 132, Lcom_google_gwt_user_client_ui_Label_2_classLit);
-function $clinit_HasHorizontalAlignment(){
- $clinit_HasHorizontalAlignment = emptyMethod;
- $clinit_Style$TextAlign();
- $clinit_LocaleInfo();
-}
-
-function $remove_2(this$static, w){
- if (this$static.widget != w) {
- return false;
- }
- try {
- $setParent(w, null);
- }
- finally {
- $removeChild(this$static.getContainerElement(), ($clinit_DOM() , w.element));
- this$static.widget = null;
- }
- return true;
-}
-
-function $setWidget(this$static, w){
- if (w == this$static.widget) {
- return;
- }
- !!w && $removeFromParent_0(w);
- !!this$static.widget && $remove_2(this$static, this$static.widget);
- this$static.widget = w;
- if (w) {
- $clinit_DOM();
- $appendChild(this$static.getContainerElement(), resolve($getElement(this$static.widget)));
- $setParent(w, this$static);
- }
-}
-
-function SimplePanel(){
- SimplePanel_0.call(this, ($clinit_DOM() , $createDivElement($doc)));
-}
-
-function SimplePanel_0(elem){
- $setElement_0(this, ($clinit_DOM() , elem));
-}
-
-defineClass(123, 36, $intern_36);
-_.add_0 = function(w){
- if (this.widget) {
- throw new IllegalStateException_0('SimplePanel can only contain one child widget');
- }
- this.setWidget(w);
-}
-;
-_.getContainerElement = function(){
- return $clinit_DOM() , this.element;
-}
-;
-_.iterator_0 = function(){
- return new SimplePanel$1(this);
-}
-;
-_.remove = function(w){
- return $remove_2(this, w);
-}
-;
-_.setWidget = function(w){
- $setWidget(this, w);
-}
-;
-var Lcom_google_gwt_user_client_ui_SimplePanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'SimplePanel', 123, Lcom_google_gwt_user_client_ui_Panel_2_classLit);
-function $clinit_PopupPanel(){
- $clinit_PopupPanel = emptyMethod;
- impl_4 = com_google_gwt_user_client_ui_impl_PopupImpl();
-}
-
-function $eventTargetsPopup(this$static, event_0){
- var target;
- target = ($clinit_DOMImpl() , impl_0).eventGetTarget(event_0);
- if (is_0(target)) {
- return $isOrHasChild(($clinit_DOM() , this$static.element), target) || $isInShadowRoot(target, this$static.element);
- }
- return false;
-}
-
-function $hide_0(this$static){
- if (!this$static.showing) {
- return;
- }
- $setState(this$static.resizeAnimation, false, false);
- fire_0(this$static);
-}
-
-function $isInShadowRoot(wc, popup){
- return !!wc.shadowRoot && wc.shadowRoot.contains(popup);
-}
-
-function $maybeUpdateSize(this$static){
- var w;
- w = this$static.widget;
- if (w) {
- this$static.desiredHeight != null && w.setHeight_0(this$static.desiredHeight);
- this$static.desiredWidth != null && w.setWidth(this$static.desiredWidth);
- }
-}
-
-function $previewNativeEvent(this$static, event_0){
- var eventTargetsPopupOrPartner, nativeEvent, target, type_0;
- if (event_0.isCanceled || !this$static.previewAllNativeEvents && event_0.isConsumed) {
- this$static.modal && (event_0.isCanceled = true);
- return;
- }
- event_0.isFirstHandler && (event_0.nativeEvent , false) && (event_0.isCanceled = true);
- if (event_0.isCanceled) {
- return;
- }
- nativeEvent = event_0.nativeEvent;
- eventTargetsPopupOrPartner = $eventTargetsPopup(this$static, nativeEvent);
- eventTargetsPopupOrPartner && (event_0.isConsumed = true);
- this$static.modal && (event_0.isCanceled = true);
- type_0 = ($clinit_DOM() , $eventGetTypeInt(($clinit_DOMImpl() , nativeEvent).type));
- switch (type_0) {
- case 512:
- case 256:
- case 128:
- {
- (nativeEvent.keyCode | 0) & 65535;
- (nativeEvent.shiftKey?1:0) | (nativeEvent.metaKey?8:0) | (nativeEvent.ctrlKey?2:0) | (nativeEvent.altKey?4:0);
- return;
- }
-
- case 4:
- case $intern_30:
- {
- if (sCaptureElem) {
- event_0.isConsumed = true;
- return;
- }
- }
-
- if (!eventTargetsPopupOrPartner && this$static.autoHide) {
- this$static.hide_0(true);
- return;
- }
-
- break;
- case 8:
- case 64:
- case 1:
- case 2:
- case $intern_17:
- {
- if (sCaptureElem) {
- event_0.isConsumed = true;
- return;
- }
- break;
- }
-
- case 2048:
- {
- target = impl_0.eventGetTarget(nativeEvent);
- if (this$static.modal && !eventTargetsPopupOrPartner && !!target) {
- target.blur && target != $doc.body && target.blur();
- event_0.isCanceled = true;
- return;
- }
- break;
- }
-
- }
-}
-
-function $setHeight(this$static, height){
- this$static.desiredHeight = height;
- $maybeUpdateSize(this$static);
- height.length == 0 && (this$static.desiredHeight = null);
-}
-
-function $setPopupPosition(this$static, left, top_0){
- var elem;
- this$static.leftPosition = left;
- this$static.topPosition = top_0;
- left -= $getBodyOffsetLeft($doc);
- top_0 -= $getBodyOffsetTop($doc);
- elem = ($clinit_DOM() , this$static.element);
- elem.style['left'] = left + ($clinit_Style$Unit() , 'px');
- elem.style['top'] = top_0 + 'px';
-}
-
-function $setWidget_0(this$static, w){
- $setWidget(this$static, w);
- $maybeUpdateSize(this$static);
-}
-
-function $setWidth(this$static, width_0){
- this$static.desiredWidth = width_0;
- $maybeUpdateSize(this$static);
- width_0.length == 0 && (this$static.desiredWidth = null);
-}
-
-function $show(this$static){
- if (this$static.showing) {
- return;
- }
- else
- this$static.attached && $removeFromParent_0(this$static);
- $setState(this$static.resizeAnimation, true, false);
-}
-
-function $updateHandlers(this$static){
- if (this$static.nativePreviewHandlerRegistration) {
- $removeHandler(this$static.nativePreviewHandlerRegistration.real);
- this$static.nativePreviewHandlerRegistration = null;
- }
- if (this$static.historyHandlerRegistration) {
- $removeHandler(this$static.historyHandlerRegistration.real);
- this$static.historyHandlerRegistration = null;
- }
- if (this$static.showing) {
- this$static.nativePreviewHandlerRegistration = addNativePreviewHandler(new PopupPanel$3(this$static));
- this$static.historyHandlerRegistration = addValueChangeHandler(new PopupPanel$4(this$static));
- }
-}
-
-defineClass(124, 123, $intern_36);
-_.getContainerElement = function(){
- return impl_4.getContainerElement_0(getFirstChild(($clinit_DOM() , this.element)));
-}
-;
-_.getStyleElement = function(){
- return impl_4.getStyleElement_0(getFirstChild(($clinit_DOM() , this.element)));
-}
-;
-_.hide = function(){
- this.hide_0(false);
-}
-;
-_.hide_0 = function(autoClosed){
- $hide_0(this);
-}
-;
-_.onUnload = function(){
- this.showing && $setState(this.resizeAnimation, false, true);
-}
-;
-_.setHeight_0 = function(height){
- $setHeight(this, height);
-}
-;
-_.setPopupPosition = function(left, top_0){
- $setPopupPosition(this, left, top_0);
-}
-;
-_.setWidget = function(w){
- $setWidget_0(this, w);
-}
-;
-_.setWidth = function(width_0){
- $setWidth(this, width_0);
-}
-;
-_.autoHide = false;
-_.autoHideOnHistoryEvents = false;
-_.isAnimationEnabled = false;
-_.isGlassEnabled = false;
-_.leftPosition = 0;
-_.modal = false;
-_.previewAllNativeEvents = false;
-_.showing = false;
-_.topPosition = 0;
-var impl_4;
-var Lcom_google_gwt_user_client_ui_PopupPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel', 124, Lcom_google_gwt_user_client_ui_SimplePanel_2_classLit);
-function $onResize(){
- var height, width_0, winHeight, winWidth;
- null.nullMethod();
- winWidth = ($clinit_Window() , $getClientWidth($doc));
- winHeight = $getClientHeight($doc);
- null.nullMethod(($clinit_Style$Display() , 'none'));
- null.nullMethod(($clinit_Style$Unit() , '0.0px'));
- null.nullMethod('0.0px');
- width_0 = $getScrollWidth($doc);
- height = $getScrollHeight($doc);
- null.nullMethod((width_0 > winWidth?width_0:winWidth) + 'px');
- null.nullMethod((height > winHeight?height:winHeight) + 'px');
- null.nullMethod('block');
-}
-
-function PopupPanel$1(){
-}
-
-defineClass(296, 1, {590:1, 22:1}, PopupPanel$1);
-var Lcom_google_gwt_user_client_ui_PopupPanel$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/1', 296, Ljava_lang_Object_2_classLit);
-function PopupPanel$3(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(297, 1, $intern_37, PopupPanel$3);
-_.onPreviewNativeEvent = function(event_0){
- $previewNativeEvent(this.this$01, event_0);
-}
-;
-var Lcom_google_gwt_user_client_ui_PopupPanel$3_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/3', 297, Ljava_lang_Object_2_classLit);
-function PopupPanel$4(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(298, 1, $intern_38, PopupPanel$4);
-_.onValueChange_0 = function(event_0){
- this.this$01.autoHideOnHistoryEvents && this.this$01.hide();
-}
-;
-var Lcom_google_gwt_user_client_ui_PopupPanel$4_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/4', 298, Ljava_lang_Object_2_classLit);
-function $maybeShowGlass(this$static){
- if (this$static.showing) {
- if (this$static.curPanel.isGlassEnabled) {
- $appendChild($doc.body, this$static.curPanel.glass);
- this$static.resizeRegistration = addResizeHandler(this$static.curPanel.glassResizer);
- $onResize();
- this$static.glassShowing = true;
- }
- }
- else if (this$static.glassShowing) {
- $removeChild($doc.body, this$static.curPanel.glass);
- $removeHandler(this$static.resizeRegistration.real);
- this$static.resizeRegistration = null;
- this$static.glassShowing = false;
- }
-}
-
-function $onComplete(this$static){
- if (!this$static.showing) {
- $maybeShowGlass(this$static);
- this$static.isUnloading || $remove_1(this$static.this$01.parentPanel, this$static.curPanel);
- }
- ($clinit_PopupPanel() , impl_4).setClip($getElement(this$static.curPanel), 'rect(auto, auto, auto, auto)');
- $setPropertyImpl($getElement(this$static.curPanel).style, 'overflow', 'visible');
-}
-
-function $onInstantaneousRun(this$static){
- $maybeShowGlass(this$static);
- if (this$static.showing) {
- $setPropertyImpl($getElement(this$static.curPanel).style, 'position', 'absolute');
- this$static.curPanel.topPosition != -1 && this$static.curPanel.setPopupPosition(this$static.curPanel.leftPosition, this$static.curPanel.topPosition);
- $add_3(this$static.this$01.parentPanel, this$static.curPanel);
- }
- else {
- this$static.isUnloading || $remove_1(this$static.this$01.parentPanel, this$static.curPanel);
- }
- $setPropertyImpl($getElement(this$static.curPanel).style, 'overflow', 'visible');
-}
-
-function $onUpdate(this$static, progress){
- var bottom, height, left, right, top_0, width_0;
- this$static.showing || (progress = 1 - progress);
- top_0 = 0;
- left = 0;
- right = 0;
- bottom = 0;
- height = round_int(progress * this$static.offsetHeight_0);
- width_0 = round_int(progress * this$static.offsetWidth_0);
- switch (0) {
- case 0:
- top_0 = this$static.offsetHeight_0 - height >> 1;
- left = this$static.offsetWidth_0 - width_0 >> 1;
- right = left + width_0;
- bottom = top_0 + height;
- }
- ($clinit_PopupPanel() , impl_4).setClip($getElement(this$static.curPanel), 'rect(' + top_0 + 'px, ' + right + 'px, ' + bottom + 'px, ' + left + 'px)');
-}
-
-function $setState(this$static, showing, isUnloading){
- var animate;
- this$static.isUnloading = isUnloading;
- $cancel(this$static);
- if (this$static.showTimer) {
- $cancel_0(this$static.showTimer);
- this$static.showTimer = null;
- $onComplete(this$static);
- }
- this$static.curPanel.showing = showing;
- $updateHandlers(this$static.curPanel);
- animate = !isUnloading && this$static.curPanel.isAnimationEnabled;
- this$static.showing = showing;
- if (animate) {
- if (showing) {
- $maybeShowGlass(this$static);
- $setPropertyImpl($getElement(this$static.curPanel).style, 'position', 'fixed');
- this$static.curPanel.topPosition != -1 && this$static.curPanel.setPopupPosition(this$static.curPanel.leftPosition, this$static.curPanel.topPosition);
- ($clinit_PopupPanel() , impl_4).setClip($getElement(this$static.curPanel), 'rect(0px, 0px, 0px, 0px)');
- $add_3(this$static.this$01.parentPanel, this$static.curPanel);
- this$static.showTimer = new PopupPanel$ResizeAnimation$1(this$static);
- $schedule(this$static.showTimer, 1);
- }
- else {
- $run(this$static, now_1());
- }
- }
- else {
- $onInstantaneousRun(this$static);
- }
-}
-
-function PopupPanel$ResizeAnimation(this$0, panel){
- this.this$01 = this$0;
- Animation.call(this);
- this.curPanel = null;
- this.offsetWidth_0 = -1;
- this.curPanel = panel;
-}
-
-defineClass(294, 125, {}, PopupPanel$ResizeAnimation);
-_.onComplete = function(){
- $onComplete(this);
-}
-;
-_.onStart = function(){
- this.offsetHeight_0 = $getPropertyInt(($clinit_DOM() , this.curPanel.element), 'offsetHeight');
- this.offsetWidth_0 = $getPropertyInt(this.curPanel.element, 'offsetWidth');
- this.curPanel.element.style['overflow'] = 'hidden';
- $onUpdate(this, (1 + cos_0($intern_0)) / 2);
-}
-;
-_.onUpdate = function(progress){
- $onUpdate(this, progress);
-}
-;
-_.glassShowing = false;
-_.isUnloading = false;
-_.offsetHeight_0 = 0;
-_.offsetWidth_0 = 0;
-_.showing = false;
-var Lcom_google_gwt_user_client_ui_PopupPanel$ResizeAnimation_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/ResizeAnimation', 294, Lcom_google_gwt_animation_client_Animation_2_classLit);
-function PopupPanel$ResizeAnimation$1(this$1){
- this.this$11 = this$1;
- Timer.call(this);
-}
-
-defineClass(295, 45, {}, PopupPanel$ResizeAnimation$1);
-_.run = function(){
- this.this$11.showTimer = null;
- $run(this.this$11, now_1());
-}
-;
-var Lcom_google_gwt_user_client_ui_PopupPanel$ResizeAnimation$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'PopupPanel/ResizeAnimation/1', 295, Lcom_google_gwt_user_client_Timer_2_classLit);
-function $clinit_PotentialElement(){
- $clinit_PotentialElement = emptyMethod;
- declareShim();
-}
-
-function $setResolver(this$static, resolver){
- $clinit_PotentialElement();
- this$static.__gwt_resolve = buildResolveCallback(resolver);
-}
-
-function buildResolveCallback(resolver){
- return function(){
- this.__gwt_resolve = cannotResolveTwice;
- return resolver.resolvePotentialElement();
- }
- ;
-}
-
-function cannotResolveTwice(){
- throw 'A PotentialElement cannot be resolved twice.';
-}
-
-function declareShim(){
- var shim = function(){
- }
- ;
- shim.prototype = {className:'', clientHeight:0, clientWidth:0, dir:'', getAttribute:function(name_0, value_0){
- return this[name_0];
- }
- , href:'', id:'', lang:'', nodeType:1, removeAttribute:function(name_0, value_0){
- this[name_0] = undefined;
- }
- , setAttribute:function(name_0, value_0){
- this[name_0] = value_0;
- }
- , src:'', style:{}, title:''};
- $wnd.GwtPotentialElementShim = shim;
-}
-
-defineClass(558, 557, $intern_25);
-var Lcom_google_gwt_user_client_ui_ResizeComposite_2_classLit = createForClass('com.google.gwt.user.client.ui', 'ResizeComposite', 558, Lcom_google_gwt_user_client_ui_Composite_2_classLit);
-function $clinit_RootPanel(){
- $clinit_RootPanel = emptyMethod;
- maybeDetachCommand = new RootPanel$1;
- rootPanels = new HashMap;
- widgetsToDetach = new HashSet;
-}
-
-function RootPanel(elem){
- ComplexPanel.call(this);
- $setElement_0(this, ($clinit_DOM() , elem));
- $onAttach(this);
-}
-
-function detachNow(widget){
- $clinit_RootPanel();
- try {
- widget.onDetach();
- }
- finally {
- $remove_8(widgetsToDetach, widget);
- }
-}
-
-function detachWidgets(){
- $clinit_RootPanel();
- try {
- tryCommand(widgetsToDetach, maybeDetachCommand);
- }
- finally {
- widgetsToDetach.map_0.clear_0();
- rootPanels.clear_0();
- }
-}
-
-function get_0(){
- $clinit_RootPanel();
- var rp;
- rp = dynamicCast(rootPanels.get_1(null), 115);
- if (rp) {
- return rp;
- }
- if (rootPanels.size_2() == 0) {
- addCloseHandler(new RootPanel$2);
- $clinit_LocaleInfo();
- }
- rp = new RootPanel$DefaultRootPanel;
- rootPanels.put(null, rp);
- $add_7(widgetsToDetach, rp);
- return rp;
-}
-
-function getBodyElement(){
- $clinit_RootPanel();
- return $doc.body;
-}
-
-defineClass(115, 441, $intern_39);
-var maybeDetachCommand, rootPanels, widgetsToDetach;
-var Lcom_google_gwt_user_client_ui_RootPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootPanel', 115, Lcom_google_gwt_user_client_ui_AbsolutePanel_2_classLit);
-function RootPanel$1(){
-}
-
-defineClass(443, 1, {}, RootPanel$1);
-_.execute_2 = function(w){
- w.isAttached() && w.onDetach();
-}
-;
-var Lcom_google_gwt_user_client_ui_RootPanel$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootPanel/1', 443, Ljava_lang_Object_2_classLit);
-function RootPanel$2(){
-}
-
-defineClass(444, 1, {201:1, 22:1}, RootPanel$2);
-_.onClose = function(closeEvent){
- detachWidgets();
-}
-;
-var Lcom_google_gwt_user_client_ui_RootPanel$2_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootPanel/2', 444, Ljava_lang_Object_2_classLit);
-function RootPanel$DefaultRootPanel(){
- RootPanel.call(this, getBodyElement());
-}
-
-defineClass(442, 115, $intern_39, RootPanel$DefaultRootPanel);
-var Lcom_google_gwt_user_client_ui_RootPanel$DefaultRootPanel_2_classLit = createForClass('com.google.gwt.user.client.ui', 'RootPanel/DefaultRootPanel', 442, Lcom_google_gwt_user_client_ui_RootPanel_2_classLit);
-function $next(this$static){
- if (!this$static.hasElement || !this$static.this$01.widget) {
- throw new NoSuchElementException;
- }
- this$static.hasElement = false;
- return this$static.returned = this$static.this$01.widget;
-}
-
-function SimplePanel$1(this$0){
- this.this$01 = this$0;
- this.hasElement = !!this.this$01.widget;
-}
-
-defineClass(288, 1, {}, SimplePanel$1);
-_.hasNext = function(){
- return this.hasElement;
-}
-;
-_.next_0 = function(){
- return $next(this);
-}
-;
-_.remove_0 = function(){
- !!this.returned && $remove_2(this.this$01, this.returned);
-}
-;
-_.hasElement = false;
-_.returned = null;
-var Lcom_google_gwt_user_client_ui_SimplePanel$1_2_classLit = createForClass('com.google.gwt.user.client.ui', 'SimplePanel/1', 288, Ljava_lang_Object_2_classLit);
-function $add_4(this$static, w){
- $insert(this$static, w, this$static.size_0);
-}
-
-function $indexOf(this$static, w){
- var i_0;
- for (i_0 = 0; i_0 < this$static.size_0; ++i_0) {
- if (this$static.array[i_0] == w) {
- return i_0;
- }
- }
- return -1;
-}
-
-function $insert(this$static, w, beforeIndex){
- var i_0, i0, newArray;
- if (beforeIndex < 0 || beforeIndex > this$static.size_0) {
- throw new IndexOutOfBoundsException;
- }
- if (this$static.size_0 == this$static.array.length) {
- newArray = initDim(Lcom_google_gwt_user_client_ui_Widget_2_classLit, $intern_4, 17, this$static.array.length * 2, 0, 1);
- for (i0 = 0; i0 < this$static.array.length; ++i0) {
- setCheck(newArray, i0, this$static.array[i0]);
- }
- this$static.array = newArray;
- }
- ++this$static.size_0;
- for (i_0 = this$static.size_0 - 1; i_0 > beforeIndex; --i_0) {
- setCheck(this$static.array, i_0, this$static.array[i_0 - 1]);
- }
- setCheck(this$static.array, beforeIndex, w);
-}
-
-function $remove_3(this$static, index_0){
- var i_0;
- if (index_0 < 0 || index_0 >= this$static.size_0) {
- throw new IndexOutOfBoundsException;
- }
- --this$static.size_0;
- for (i_0 = index_0; i_0 < this$static.size_0; ++i_0) {
- setCheck(this$static.array, i_0, this$static.array[i_0 + 1]);
- }
- setCheck(this$static.array, this$static.size_0, null);
-}
-
-function $remove_4(this$static, w){
- var index_0;
- index_0 = $indexOf(this$static, w);
- if (index_0 == -1) {
- throw new NoSuchElementException;
- }
- $remove_3(this$static, index_0);
-}
-
-function WidgetCollection(parent_0){
- this.parent_0 = parent_0;
- this.array = initDim(Lcom_google_gwt_user_client_ui_Widget_2_classLit, $intern_4, 17, 4, 0, 1);
-}
-
-defineClass(512, 1, {}, WidgetCollection);
-_.iterator_0 = function(){
- return new WidgetCollection$WidgetIterator(this);
-}
-;
-_.size_0 = 0;
-var Lcom_google_gwt_user_client_ui_WidgetCollection_2_classLit = createForClass('com.google.gwt.user.client.ui', 'WidgetCollection', 512, Ljava_lang_Object_2_classLit);
-function $next_0(this$static){
- if (this$static.index_0 >= this$static.this$01.size_0) {
- throw new NoSuchElementException;
- }
- this$static.currentWidget = this$static.this$01.array[this$static.index_0];
- ++this$static.index_0;
- return this$static.currentWidget;
-}
-
-function WidgetCollection$WidgetIterator(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(192, 1, {}, WidgetCollection$WidgetIterator);
-_.hasNext = function(){
- return this.index_0 < this.this$01.size_0;
-}
-;
-_.next_0 = function(){
- return $next_0(this);
-}
-;
-_.remove_0 = function(){
- if (!this.currentWidget) {
- throw new IllegalStateException;
- }
- this.this$01.parent_0.remove(this.currentWidget);
- --this.index_0;
- this.currentWidget = null;
-}
-;
-_.index_0 = 0;
-var Lcom_google_gwt_user_client_ui_WidgetCollection$WidgetIterator_2_classLit = createForClass('com.google.gwt.user.client.ui', 'WidgetCollection/WidgetIterator', 192, Ljava_lang_Object_2_classLit);
-function $clinit_FocusImpl(){
- $clinit_FocusImpl = emptyMethod;
- implPanel = com_google_gwt_user_client_ui_impl_FocusImpl();
- implPanel?new FocusImpl:implPanel;
-}
-
-function FocusImpl(){
-}
-
-defineClass(497, 1, {}, FocusImpl);
-_.focus_0 = function(elem){
- $focus(elem);
-}
-;
-var implPanel;
-var Lcom_google_gwt_user_client_ui_impl_FocusImpl_2_classLit = createForClass('com.google.gwt.user.client.ui.impl', 'FocusImpl', 497, Ljava_lang_Object_2_classLit);
-function FocusImplStandard(){
- $clinit_FocusImpl();
-}
-
-defineClass(505, 497, {}, FocusImplStandard);
-var Lcom_google_gwt_user_client_ui_impl_FocusImplStandard_2_classLit = createForClass('com.google.gwt.user.client.ui.impl', 'FocusImplStandard', 505, Lcom_google_gwt_user_client_ui_impl_FocusImpl_2_classLit);
-function FocusImplSafari(){
- $clinit_FocusImpl();
-}
-
-defineClass(506, 505, {}, FocusImplSafari);
-_.focus_0 = function focus_0(elem){
- $wnd.setTimeout(function(){
- elem.focus();
- }
- , 0);
-}
-;
-var Lcom_google_gwt_user_client_ui_impl_FocusImplSafari_2_classLit = createForClass('com.google.gwt.user.client.ui.impl', 'FocusImplSafari', 506, Lcom_google_gwt_user_client_ui_impl_FocusImplStandard_2_classLit);
-function PopupImpl(){
-}
-
-defineClass(480, 1, {}, PopupImpl);
-_.createElement_0 = function(){
- return $createDivElement($doc);
-}
-;
-_.getContainerElement_0 = function(popup){
- return popup;
-}
-;
-_.getStyleElement_0 = function(popup){
- return $getParentElement_0(($clinit_DOMImpl() , popup));
-}
-;
-_.setClip = function(popup, rect){
- $setPropertyImpl(popup.style, 'clip', rect);
-}
-;
-var Lcom_google_gwt_user_client_ui_impl_PopupImpl_2_classLit = createForClass('com.google.gwt.user.client.ui.impl', 'PopupImpl', 480, Ljava_lang_Object_2_classLit);
-function $clinit_PopupImplMozilla(){
- $clinit_PopupImplMozilla = emptyMethod;
- isFF2Mac = isFF2Mac_0();
-}
-
-function PopupImplMozilla(){
- $clinit_PopupImplMozilla();
-}
-
-function isFF2Mac_0(){
- function makeVersion(result){
- return parseInt(result[1]) * 1000 + parseInt(result[2]);
- }
-
- var ua = navigator.userAgent;
- if (ua.indexOf('Macintosh') != -1) {
- var result_0 = /rv:([0-9]+)\.([0-9]+)/.exec(ua);
- if (result_0 && result_0.length == 3) {
- if (makeVersion(result_0) <= 1008) {
- return true;
- }
- }
- }
- return false;
-}
-
-defineClass(481, 480, {}, PopupImplMozilla);
-_.createElement_0 = function(){
- var outerElem;
- outerElem = ($clinit_DOM() , $createDivElement($doc));
- if (isFF2Mac) {
- $setInnerHTML(outerElem, '<div><\/div>');
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), new PopupImplMozilla$1(outerElem));
- }
- return outerElem;
-}
-;
-_.getContainerElement_0 = function(outerElem){
- return isFF2Mac?$getFirstChildElement_0(($clinit_DOMImpl() , outerElem)):outerElem;
-}
-;
-_.getStyleElement_0 = function(outerElem){
- return isFF2Mac?outerElem:$getParentElement_0(($clinit_DOMImpl() , outerElem));
-}
-;
-_.setClip = function(popup, rect){
- $setPropertyImpl(popup.style, 'clip', rect);
- $setPropertyImpl(popup.style, 'display', ($clinit_Style$Display() , 'none'));
- $setPropertyImpl(popup.style, 'display', '');
-}
-;
-var isFF2Mac = false;
-var Lcom_google_gwt_user_client_ui_impl_PopupImplMozilla_2_classLit = createForClass('com.google.gwt.user.client.ui.impl', 'PopupImplMozilla', 481, Lcom_google_gwt_user_client_ui_impl_PopupImpl_2_classLit);
-function PopupImplMozilla$1(val$outerElem){
- this.val$outerElem2 = val$outerElem;
-}
-
-defineClass(482, 1, {}, PopupImplMozilla$1);
-_.execute_1 = function(){
- this.val$outerElem2.style['overflow'] = ($clinit_Style$Overflow() , 'auto');
-}
-;
-var Lcom_google_gwt_user_client_ui_impl_PopupImplMozilla$1_2_classLit = createForClass('com.google.gwt.user.client.ui.impl', 'PopupImplMozilla/1', 482, Ljava_lang_Object_2_classLit);
-function assertCompileTimeUserAgent(){
- var compileTimeValue, impl, runtimeValue;
- impl = dynamicCast(com_google_gwt_useragent_client_UserAgent(), 202);
- compileTimeValue = impl.getCompileTimeValue();
- runtimeValue = impl.getRuntimeValue();
- if (!$equals_2(compileTimeValue, runtimeValue)) {
- throw new UserAgentAsserter$UserAgentAssertionError(compileTimeValue, runtimeValue);
- }
-}
-
-function Error_0(message, cause){
- Throwable.call(this, message, cause);
-}
-
-defineClass(117, 14, $intern_1);
-var Ljava_lang_Error_2_classLit = createForClass('java.lang', 'Error', 117, Ljava_lang_Throwable_2_classLit);
-defineClass(41, 117, $intern_1);
-var Ljava_lang_AssertionError_2_classLit = createForClass('java.lang', 'AssertionError', 41, Ljava_lang_Error_2_classLit);
-function UserAgentAsserter$UserAgentAssertionError(compileTimeValue, runtimeValue){
- Error_0.call(this, '' + ('Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (' + compileTimeValue + ') ' + 'does not match the runtime user.agent value (' + runtimeValue + ').\n' + 'Expect more errors.'), instanceOf('Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (' + compileTimeValue + ') ' + 'does not match the runtime user.agent value (' + runtimeValue + ').\n' + 'Expect more errors.', 14)?dynamicCast('Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (' + compileTimeValue + ') ' + 'does not match the runtime user.agent value (' + runtimeValue + ').\n' + 'Expect more errors.', 14):null);
-}
-
-defineClass(203, 41, $intern_1, UserAgentAsserter$UserAgentAssertionError);
-var Lcom_google_gwt_useragent_client_UserAgentAsserter$UserAgentAssertionError_2_classLit = createForClass('com.google.gwt.useragent.client', 'UserAgentAsserter/UserAgentAssertionError', 203, Ljava_lang_AssertionError_2_classLit);
-function UserAgentImplGecko1_8(){
-}
-
-defineClass(465, 1, {202:1}, UserAgentImplGecko1_8);
-_.getCompileTimeValue = function(){
- return 'gecko1_8';
-}
-;
-_.getRuntimeValue = function getRuntimeValue(){
- var ua = navigator.userAgent.toLowerCase();
- var docMode = $doc.documentMode;
- if (function(){
- return ua.indexOf('webkit') != -1;
- }
- ())
- return 'safari';
- if (function(){
- return ua.indexOf('msie') != -1 && docMode >= 10 && docMode < 11;
- }
- ())
- return 'ie10';
- if (function(){
- return ua.indexOf('msie') != -1 && docMode >= 9 && docMode < 11;
- }
- ())
- return 'ie9';
- if (function(){
- return ua.indexOf('msie') != -1 && docMode >= 8 && docMode < 11;
- }
- ())
- return 'ie8';
- if (function(){
- return ua.indexOf('gecko') != -1 || docMode >= 11;
- }
- ())
- return 'gecko1_8';
- return 'unknown';
-}
-;
-var Lcom_google_gwt_useragent_client_UserAgentImplGecko1_18_2_classLit = createForClass('com.google.gwt.useragent.client', 'UserAgentImplGecko1_8', 465, Ljava_lang_Object_2_classLit);
-function UserAgentImplSafari(){
-}
-
-defineClass(466, 1, {202:1}, UserAgentImplSafari);
-_.getCompileTimeValue = function(){
- return 'safari';
-}
-;
-_.getRuntimeValue = function getRuntimeValue_0(){
- var ua = navigator.userAgent.toLowerCase();
- var docMode = $doc.documentMode;
- if (function(){
- return ua.indexOf('webkit') != -1;
- }
- ())
- return 'safari';
- if (function(){
- return ua.indexOf('msie') != -1 && docMode >= 10 && docMode < 11;
- }
- ())
- return 'ie10';
- if (function(){
- return ua.indexOf('msie') != -1 && docMode >= 9 && docMode < 11;
- }
- ())
- return 'ie9';
- if (function(){
- return ua.indexOf('msie') != -1 && docMode >= 8 && docMode < 11;
- }
- ())
- return 'ie8';
- if (function(){
- return ua.indexOf('gecko') != -1 || docMode >= 11;
- }
- ())
- return 'gecko1_8';
- return 'unknown';
-}
-;
-var Lcom_google_gwt_useragent_client_UserAgentImplSafari_2_classLit = createForClass('com.google.gwt.useragent.client', 'UserAgentImplSafari', 466, Ljava_lang_Object_2_classLit);
-function $clearOnReadyStateChange(this$static){
- this$static.onreadystatechange = function(){
- }
- ;
-}
-
-function $open(this$static, httpMethod, url_0, user){
- this$static.open(httpMethod, url_0, true, user);
-}
-
-function $open_0(this$static, httpMethod, url_0, user, password){
- this$static.open(httpMethod, url_0, true, user, password);
-}
-
-function $setOnReadyStateChange(this$static, handler){
- var _this = this$static;
- this$static.onreadystatechange = $entry(function(){
- handler.onReadyStateChange(_this);
- }
- );
-}
-
-function $setRequestHeader(this$static, header, value_0){
- this$static.setRequestHeader(header, value_0);
-}
-
-function $removeHandler(this$static){
- $doRemove(this$static.this$01, this$static.val$type2, this$static.val$source3, this$static.val$handler4);
-}
-
-function SimpleEventBus$1(this$0, val$type, val$handler){
- this.this$01 = this$0;
- this.val$type2 = val$type;
- this.val$source3 = null;
- this.val$handler4 = val$handler;
-}
-
-defineClass(335, 1, {}, SimpleEventBus$1);
-var Lcom_google_web_bindery_event_shared_SimpleEventBus$1_2_classLit = createForClass('com.google.web.bindery.event.shared', 'SimpleEventBus/1', 335, Ljava_lang_Object_2_classLit);
-function SimpleEventBus$2(this$0, val$type, val$handler){
- this.this$01 = this$0;
- this.val$type2 = val$type;
- this.val$source3 = null;
- this.val$handler4 = val$handler;
-}
-
-defineClass(336, 1, {537:1}, SimpleEventBus$2);
-_.execute_1 = function(){
- $doAddNow(this.this$01, this.val$type2, this.val$source3, this.val$handler4);
-}
-;
-var Lcom_google_web_bindery_event_shared_SimpleEventBus$2_2_classLit = createForClass('com.google.web.bindery.event.shared', 'SimpleEventBus/2', 336, Ljava_lang_Object_2_classLit);
-function SimpleEventBus$3(this$0, val$type, val$source, val$handler){
- this.this$01 = this$0;
- this.val$type2 = val$type;
- this.val$source3 = val$source;
- this.val$handler4 = val$handler;
-}
-
-defineClass(337, 1, {537:1}, SimpleEventBus$3);
-_.execute_1 = function(){
- $doRemoveNow(this.this$01, this.val$type2, this.val$source3, this.val$handler4);
-}
-;
-var Lcom_google_web_bindery_event_shared_SimpleEventBus$3_2_classLit = createForClass('com.google.web.bindery.event.shared', 'SimpleEventBus/3', 337, Ljava_lang_Object_2_classLit);
-function $clinit_AnimationUtil(){
- $clinit_AnimationUtil = emptyMethod;
- ANIMATION_END_EVENT_NAME = whichAnimationEndEvent();
- whichAnimationProperty();
-}
-
-function addAnimationEndListener(elem, listener){
- $clinit_AnimationUtil();
- var callbackFunc = $entry(function(e){
- listener.onAnimationEnd(e);
- }
- );
- elem.addEventListener(ANIMATION_END_EVENT_NAME, callbackFunc, false);
- !elem._vaadin_animationend_callbacks && (elem._vaadin_animationend_callbacks = []);
- elem._vaadin_animationend_callbacks.push(callbackFunc);
- return callbackFunc;
-}
-
-function getAnimationName(event_0){
- $clinit_AnimationUtil();
- if (event_0.webkitAnimationName)
- return event_0.webkitAnimationName;
- else if (event_0.animationName)
- return event_0.animationName;
- else if (event_0.mozAnimationName)
- return event_0.mozAnimationName;
- else if (event_0.oAnimationName)
- return event_0.oAnimationName;
- return '';
-}
-
-function getAnimationName_0(cstyle){
- $clinit_AnimationUtil();
- var cs = cstyle.computedStyle;
- if (!cs.getPropertyValue)
- return '';
- if (cs.getPropertyValue('-webkit-animation-name'))
- return cs.getPropertyValue('-webkit-animation-name');
- else if (cs.getPropertyValue('animation-name'))
- return cs.getPropertyValue('animation-name');
- else if (cs.getPropertyValue('-moz-animation-name'))
- return cs.getPropertyValue('-moz-animation-name');
- else if (cs.getPropertyValue('-o-animation-name'))
- return cs.getPropertyValue('-o-animation-name');
- return '';
-}
-
-function removeAllAnimationEndListeners(elem){
- $clinit_AnimationUtil();
- if (elem._vaadin_animationend_callbacks) {
- var callbacks = elem._vaadin_animationend_callbacks;
- for (var i_0 = 0; i_0 < callbacks.length; i_0++) {
- elem.removeEventListener(ANIMATION_END_EVENT_NAME, callbacks[i_0], false);
- }
- }
-}
-
-function removeAnimationEndListener(elem, listener){
- $clinit_AnimationUtil();
- elem.removeEventListener(ANIMATION_END_EVENT_NAME, listener, false);
-}
-
-function whichAnimationEndEvent(){
- var el = document.createElement('fakeelement');
- var anims = {animationName:'animationend', OAnimationName:'oAnimationEnd', MozAnimation:'animationend', WebkitAnimation:'webkitAnimationEnd'};
- for (var a in anims) {
- if (el.style[a] !== undefined) {
- return anims[a];
- }
- }
-}
-
-function whichAnimationProperty(){
- var el = document.createElement('fakeelement');
- var anims = ['animation', 'oAnimation', 'mozAnimation', 'webkitAnimation'];
- for (var i_0 = 0; i_0 < anims.length; i_0++) {
- if (el.style[anims[i_0]] !== undefined) {
- return anims[i_0];
- }
- }
-}
-
-var ANIMATION_END_EVENT_NAME;
-function $clinit_ApplicationConfiguration(){
- $clinit_ApplicationConfiguration = emptyMethod;
- new LinkedList;
- runningApplications_0 = new ArrayList;
-}
-
-var runningApplications_0;
-function $clinit_BrowserInfo(){
- $clinit_BrowserInfo = emptyMethod;
- var browserClassnames;
- browserClassnames = $getCSSClass((!instance_2 && (instance_2 = new BrowserInfo) , instance_2));
- $addStyleName(($clinit_RootPanel() , get_0()), browserClassnames);
-}
-
-function $detectTouchDevice(){
- try {
- document.createEvent('TouchEvent');
- return true;
- }
- catch (e) {
- return false;
- }
-}
-
-function $getCSSClass(this$static){
- var browserEngineClass, browserIdentifier, majorVersionClass, minorVersionClass, osClass;
- if (cssClass == null) {
- browserIdentifier = '';
- majorVersionClass = '';
- minorVersionClass = '';
- browserEngineClass = '';
- if (this$static.browserDetails.isFirefox) {
- browserIdentifier = 'ff';
- majorVersionClass = 'ff' + this$static.browserDetails.browserMajorVersion;
- minorVersionClass = majorVersionClass + this$static.browserDetails.browserMinorVersion;
- browserEngineClass = 'gecko';
- }
- else if (this$static.browserDetails.isChrome) {
- browserIdentifier = 'sa';
- majorVersionClass = 'ch';
- browserEngineClass = 'webkit';
- }
- else if (this$static.browserDetails.isSafari) {
- browserIdentifier = 'sa';
- majorVersionClass = 'sa' + this$static.browserDetails.browserMajorVersion;
- minorVersionClass = majorVersionClass + this$static.browserDetails.browserMinorVersion;
- browserEngineClass = 'webkit';
- }
- else if (this$static.browserDetails.isIE) {
- browserIdentifier = 'ie';
- majorVersionClass = 'ie' + this$static.browserDetails.browserMajorVersion;
- minorVersionClass = majorVersionClass + this$static.browserDetails.browserMinorVersion;
- browserEngineClass = 'trident';
- }
- else if (this$static.browserDetails.isOpera) {
- browserIdentifier = 'op';
- majorVersionClass = 'op' + this$static.browserDetails.browserMajorVersion;
- minorVersionClass = majorVersionClass + this$static.browserDetails.browserMinorVersion;
- browserEngineClass = 'presto';
- }
- cssClass = 'v-' + browserIdentifier;
- $equals_2('', majorVersionClass) || (cssClass = cssClass + ' ' + 'v-' + majorVersionClass);
- $equals_2('', minorVersionClass) || (cssClass = cssClass + ' ' + 'v-' + minorVersionClass);
- $equals_2('', browserEngineClass) || (cssClass = cssClass + ' ' + 'v-' + browserEngineClass);
- osClass = $getOperatingSystemClass(this$static);
- osClass != null && (cssClass = cssClass + ' ' + osClass);
- this$static.touchDevice && (cssClass = cssClass + ' ' + 'v-' + 'touch');
- }
- return cssClass;
-}
-
-function $getIEDocumentMode(){
- var mode = $wnd.document.documentMode;
- if (!mode)
- return -1;
- return mode;
-}
-
-function $getOperatingSystemClass(this$static){
- if (this$static.browserDetails.os == 5) {
- return 'v-android';
- }
- else if (this$static.browserDetails.os == 4) {
- return 'v-ios v-ios' + this$static.browserDetails.osMajorVersion;
- }
- else if (this$static.browserDetails.os == 1) {
- return 'v-win';
- }
- else if (this$static.browserDetails.os == 3) {
- return 'v-lin';
- }
- else if (this$static.browserDetails.os == 2) {
- return 'v-mac';
- }
- return null;
-}
-
-function $isBrowserVersionNewerOrEqual(this$static){
- if (this$static.browserDetails.browserMajorVersion == 8) {
- return this$static.browserDetails.browserMinorVersion >= 0;
- }
- return this$static.browserDetails.browserMajorVersion > 8;
-}
-
-function $isIE10(this$static){
- return this$static.browserDetails.isIE && this$static.browserDetails.browserMajorVersion == 10;
-}
-
-function $isIE8(this$static){
- return this$static.browserDetails.isIE && this$static.browserDetails.browserMajorVersion == 8;
-}
-
-function $isIE9(this$static){
- return this$static.browserDetails.isIE && this$static.browserDetails.browserMajorVersion == 9;
-}
-
-function BrowserInfo(){
- $clinit_BrowserInfo();
- var documentMode;
- this.browserDetails = new VBrowserDetails($wnd.navigator.userAgent);
- if (this.browserDetails.isIE) {
- documentMode = $getIEDocumentMode();
- documentMode != -1 && $setIEMode(this.browserDetails, documentMode);
- }
- this.browserDetails.isChrome?(this.touchDevice = 'ontouchstart' in window):this.browserDetails.isIE?(this.touchDevice = !!navigator.msMaxTouchPoints):(this.touchDevice = $detectTouchDevice());
-}
-
-defineClass(39, 1, {}, BrowserInfo);
-_.touchDevice = false;
-var cssClass = null, instance_2;
-var Lcom_vaadin_client_BrowserInfo_2_classLit = createForClass('com.vaadin.client', 'BrowserInfo', 39, Ljava_lang_Object_2_classLit);
-function ComputedStyle(elem){
- this.computedStyle = getComputedStyle_0(elem);
-}
-
-function getComputedStyle_0(elem){
- if (elem.nodeType != 1) {
- return {};
- }
- if ($wnd.document.defaultView && $wnd.document.defaultView.getComputedStyle) {
- return $wnd.document.defaultView.getComputedStyle(elem, null);
- }
- if (elem.currentStyle) {
- return elem.currentStyle;
- }
-}
-
-defineClass(189, 1, {}, ComputedStyle);
-var Lcom_vaadin_client_ComputedStyle_2_classLit = createForClass('com.vaadin.client', 'ComputedStyle', 189, Ljava_lang_Object_2_classLit);
-function findConnectorFor(){
- var applicationConnection$iterator, runningApplications;
- runningApplications = ($clinit_ApplicationConfiguration() , $clinit_ApplicationConfiguration() , runningApplications_0);
- for (applicationConnection$iterator = new AbstractList$IteratorImpl(runningApplications); applicationConnection$iterator.i < applicationConnection$iterator.this$01_0.size_2();) {
- checkCriticalElement(applicationConnection$iterator.i < applicationConnection$iterator.this$01_0.size_2());
- throwClassCastExceptionUnlessNull(applicationConnection$iterator.this$01_0.get_0(applicationConnection$iterator.last = applicationConnection$iterator.i++));
- null.nullMethod();
- null.nullMethod();
- continue;
- }
- return null;
-}
-
-function $scheduleDeferred_0(this$static, cmd){
- ++this$static.deferredCommandTrackers;
- this$static.deferredCommands = push_0(this$static.deferredCommands, [cmd, false]);
- $maybeSchedulePostEventPumpCommands(this$static);
- $scheduleDeferred(this$static, new VSchedulerImpl$1(this$static));
-}
-
-function VSchedulerImpl(){
- this.deferredCommandTrackers = 0;
-}
-
-defineClass(462, 433, {}, VSchedulerImpl);
-_.deferredCommandTrackers = 0;
-var Lcom_vaadin_client_VSchedulerImpl_2_classLit = createForClass('com.vaadin.client', 'VSchedulerImpl', 462, Lcom_google_gwt_core_client_impl_SchedulerImpl_2_classLit);
-function VSchedulerImpl$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(463, 1, {}, VSchedulerImpl$1);
-_.execute_1 = function(){
- --this.this$01.deferredCommandTrackers;
-}
-;
-var Lcom_vaadin_client_VSchedulerImpl$1_2_classLit = createForClass('com.vaadin.client', 'VSchedulerImpl/1', 463, Ljava_lang_Object_2_classLit);
-function $clinit_WidgetUtil(){
- $clinit_WidgetUtil = emptyMethod;
- $clinit_DOM();
- $createDivElement($doc);
-}
-
-function findWidget(element){
- $clinit_WidgetUtil();
- var eventListener, w;
- if (element) {
- eventListener = null;
- while (!eventListener && !!element) {
- eventListener = ($clinit_DOM() , getEventListener(element));
- !eventListener && (element = $getParentElement_0(($clinit_DOMImpl() , element)));
- }
- if (instanceOf(eventListener, 17)) {
- w = dynamicCast(eventListener, 17);
- while (w) {
- return w;
- }
- }
- }
- return null;
-}
-
-function forceIERedraw(e){
- var style, currentValue;
- $clinit_WidgetUtil();
- ($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2).browserDetails.isIE && (style = e.style , currentValue = ($clinit_DOMImpl() , style)['zoom'] , $setPropertyImpl(style, 'zoom', '1') , $getSubPixelOffsetWidth(e) | 0 , $setPropertyImpl(style, 'zoom', currentValue) , undefined);
-}
-
-function getElementFromPoint(clientX, clientY){
- $clinit_WidgetUtil();
- var el = $wnd.document.elementFromPoint(clientX, clientY);
- el = $wnd.document.elementFromPoint(clientX, clientY);
- el != null && el.nodeType == 3 && (el = el.parentNode);
- return el;
-}
-
-function getFocusedElement(){
- $clinit_WidgetUtil();
- if ($wnd.document.activeElement) {
- return $wnd.document.activeElement;
- }
- return null;
-}
-
-function getNativeScrollbarSize(){
- $clinit_WidgetUtil();
- var scroller;
- if (detectedScrollbarSize < 0) {
- scroller = ($clinit_DOM() , $createDivElement($doc));
- $setPropertyImpl(scroller.style, 'width', '50px');
- $setPropertyImpl(scroller.style, 'height', '50px');
- $setPropertyImpl(scroller.style, 'overflow', 'scroll');
- $setPropertyImpl(scroller.style, 'position', 'absolute');
- $setPropertyImpl(scroller.style, 'marginLeft', '-5000px');
- $appendChild(getBodyElement(), scroller);
- detectedScrollbarSize = ($getSubPixelOffsetWidth(scroller) | 0) - $getPropertyInt(scroller, 'clientWidth');
- $removeChild(getBodyElement(), scroller);
- }
- return detectedScrollbarSize;
-}
-
-function getRequiredHeightBoundingClientRectDouble(element){
- $clinit_WidgetUtil();
- var height;
- if (element.getBoundingClientRect != null) {
- var rect = element.getBoundingClientRect();
- height = Math.ceil(rect.bottom - rect.top);
- }
- else {
- height = element.offsetHeight;
- }
- return height;
-}
-
-function getRequiredWidthBoundingClientRectDouble(element){
- $clinit_WidgetUtil();
- if (element.getBoundingClientRect) {
- var rect = element.getBoundingClientRect();
- return Math.ceil(rect.right - rect.left);
- }
- else {
- return element.offsetWidth;
- }
-}
-
-function pixelValuesEqual(num1, num2){
- $clinit_WidgetUtil();
- return (num1 - num2 <= 0?0 - (num1 - num2):num1 - num2) <= 0.49;
-}
-
-var detectedScrollbarSize = -1;
-function $checkCacheCoverage(this$static){
- var minCacheRange, missingCachePartition, availableDataRange;
- if (this$static.currentRequestCallback) {
- return;
- }
- minCacheRange = (availableDataRange = $getAvailableRangeForCache(this$static) , $getMinCacheRange(this$static.cacheStrategy, this$static.requestedAvailability, availableDataRange));
- if (!$intersects(minCacheRange, this$static.cached) || $isEmpty_0(this$static.cached)) {
- this$static.indexToRowMap.clear_0();
- this$static.keyToIndexMap.clear_0();
- this$static.cached = new Range_0(0, 0);
- $handleMissingRows(this$static, $getMaxCacheRange(this$static));
- }
- else {
- $discardStaleCacheEntries(this$static);
- if ($isSubsetOf(minCacheRange, this$static.cached)) {
- $dataAvailable(this$static.dataChangeHandler, this$static.cached.start_0, $length_0(this$static.cached));
- }
- else {
- missingCachePartition = $partitionWith($getMaxCacheRange(this$static), this$static.cached);
- $handleMissingRows(this$static, missingCachePartition[0]);
- $handleMissingRows(this$static, missingCachePartition[2]);
- }
- }
-}
-
-function $discardStaleCacheEntries(this$static){
- var cacheParition;
- cacheParition = $partitionWith(this$static.cached, $getMaxCacheRange(this$static));
- $dropFromCache(this$static, cacheParition[0]);
- this$static.cached = cacheParition[1];
- $dropFromCache(this$static, cacheParition[2]);
-}
-
-function $dropFromCache(this$static, range){
- var i_0, removed;
- for (i_0 = range.start_0; i_0 < range.end; i_0++) {
- removed = this$static.indexToRowMap.remove_2(valueOf_2(i_0));
- this$static.keyToIndexMap.remove_2(this$static.getRowKey(removed));
- }
-}
-
-function $ensureCoverageCheck(this$static){
- if (!this$static.coverageCheckPending) {
- this$static.coverageCheckPending = true;
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), this$static.coverageChecker);
- }
-}
-
-function $getAvailableRangeForCache(this$static){
- var upperBound;
- upperBound = this$static.size_2();
- upperBound == -1 && (upperBound = $length_0(this$static.requestedAvailability));
- return withLength(0, upperBound);
-}
-
-function $getMaxCacheRange(this$static){
- var availableDataRange, maxCacheRange;
- availableDataRange = $getAvailableRangeForCache(this$static);
- maxCacheRange = $getMaxCacheRange_0(this$static.cacheStrategy, this$static.requestedAvailability, availableDataRange);
- return maxCacheRange;
-}
-
-function $handleMissingRows(this$static, range){
- if (range.start_0 >= range.end) {
- return;
- }
- this$static.currentRequestCallback = new AbstractRemoteDataSource$RequestRowsCallback;
- this$static.requestRows(range.start_0, range.end - range.start_0, this$static.currentRequestCallback);
-}
-
-function $pinHandle(this$static, handle){
- var count, key;
- key = handle.key;
- count = dynamicCast(this$static.pinnedCounts.get_1(key), 65);
- if (!count) {
- count = valueOf_2(0);
- this$static.pinnedRows.put(key, handle);
- }
- this$static.pinnedCounts.put(key, valueOf_2(count.value_0 + 1));
-}
-
-function $resetDataAndSize(this$static, newSize){
- this$static.size_1 = newSize;
- $dropFromCache(this$static, this$static.cached);
- this$static.cached = withLength(0, 0);
- $resetDataAndSize_0(this$static.dataChangeHandler, newSize);
-}
-
-function $setRowData(this$static, firstRowIndex, rowData){
- var i_0, maxCacheRange, newUsefulData, partition, received, row;
- received = withLength(firstRowIndex, rowData.array.length);
- if (this$static.currentRequestCallback) {
- now_1() - this$static.currentRequestCallback.requestStart;
- this$static.currentRequestCallback = null;
- }
- maxCacheRange = $getMaxCacheRange(this$static);
- partition = $partitionWith(received, maxCacheRange);
- newUsefulData = partition[1];
- if (newUsefulData.start_0 < newUsefulData.end) {
- for (i_0 = newUsefulData.start_0; i_0 < newUsefulData.end; i_0++) {
- row = (checkElementIndex(i_0 - firstRowIndex, rowData.array.length) , rowData.array[i_0 - firstRowIndex]);
- this$static.indexToRowMap.put(valueOf_2(i_0), row);
- this$static.keyToIndexMap.put(this$static.getRowKey_0(dynamicCastJso(row)), valueOf_2(i_0));
- }
- !!this$static.dataChangeHandler && $dataUpdated(this$static.dataChangeHandler, newUsefulData.start_0, newUsefulData.end - newUsefulData.start_0);
- if ($isEmpty_0(this$static.cached)) {
- this$static.cached = newUsefulData;
- }
- else {
- $discardStaleCacheEntries(this$static);
- $isEmpty_0(this$static.cached)?(this$static.cached = newUsefulData):(this$static.cached = $combineWith(this$static.cached, newUsefulData));
- }
- $dataAvailable(this$static.dataChangeHandler, this$static.cached.start_0, $length_0(this$static.cached));
- $updatePinnedRows(this$static, rowData);
- }
- !$isEmpty_0(partition[0]) || !$isEmpty_0(partition[2]);
- $ensureCoverageCheck(this$static);
-}
-
-function $unpinHandle(this$static, handle){
- var count, key;
- key = handle.key;
- count = dynamicCast(this$static.pinnedCounts.get_1(key), 65);
- if (!count) {
- throw new IllegalStateException_0('Row ' + $getRow(handle) + ' with key ' + key + ' was not pinned to begin with');
- }
- else if ($equals_1(count, valueOf_2(1))) {
- this$static.pinnedRows.remove_2(key);
- this$static.pinnedCounts.remove_2(key);
- }
- else {
- this$static.pinnedCounts.put(key, valueOf_2(count.value_0 - 1));
- }
-}
-
-function $updatePinnedRows(this$static, rowData){
- var handle, key, row, row$iterator;
- for (row$iterator = new AbstractList$IteratorImpl(rowData); row$iterator.i < row$iterator.this$01_0.size_2();) {
- row = (checkCriticalElement(row$iterator.i < row$iterator.this$01_0.size_2()) , row$iterator.this$01_0.get_0(row$iterator.last = row$iterator.i++));
- key = this$static.getRowKey_0(dynamicCastJso(row));
- handle = dynamicCast(this$static.pinnedRows.get_1(key), 105);
- !!handle && (handle.row = row);
- }
-}
-
-defineClass(305, 1, {});
-_.ensureAvailability = function(firstRowIndex, numberOfRows){
- this.requestedAvailability = withLength(firstRowIndex, numberOfRows);
- $ensureCoverageCheck(this);
-}
-;
-_.getHandle = function(row){
- var key;
- key = this.getRowKey(row);
- if (key == null) {
- throw new NullPointerException_0('key may not be null (row: ' + row + ')');
- }
- if (this.pinnedRows.containsKey(key)) {
- return dynamicCast(this.pinnedRows.get_1(key), 79);
- }
- else if (this.keyToIndexMap.containsKey(key)) {
- return new AbstractRemoteDataSource$RowHandleImpl(this, row, key);
- }
- else {
- throw new IllegalStateException_0('The cache of this DataSource does not currently contain the row ' + row);
- }
-}
-;
-_.getRow = function(rowIndex){
- return this.indexToRowMap.get_1(valueOf_2(rowIndex));
-}
-;
-_.indexOf_0 = function(row){
- var key;
- key = this.getRowKey(row);
- if (this.keyToIndexMap.containsKey(key)) {
- return dynamicCast(this.keyToIndexMap.get_1(key), 65).value_0;
- }
- return -1;
-}
-;
-_.setDataChangeHandler = function(dataChangeHandler){
- this.dataChangeHandler = dataChangeHandler;
- if (!!dataChangeHandler && !$isEmpty_0(this.cached)) {
- $dataUpdated(dataChangeHandler, this.cached.start_0, $length_0(this.cached));
- $dataAvailable(dataChangeHandler, this.cached.start_0, $length_0(this.cached));
- }
-}
-;
-_.size_2 = function(){
- return this.size_1;
-}
-;
-_.coverageCheckPending = false;
-_.size_1 = -1;
-var Lcom_vaadin_client_data_AbstractRemoteDataSource_2_classLit = createForClass('com.vaadin.client.data', 'AbstractRemoteDataSource', 305, Ljava_lang_Object_2_classLit);
-function AbstractRemoteDataSource$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(310, 1, {}, AbstractRemoteDataSource$1);
-_.execute_1 = function(){
- this.this$01.coverageCheckPending = false;
- $checkCacheCoverage(this.this$01);
-}
-;
-var Lcom_vaadin_client_data_AbstractRemoteDataSource$1_2_classLit = createForClass('com.vaadin.client.data', 'AbstractRemoteDataSource/1', 310, Ljava_lang_Object_2_classLit);
-function AbstractRemoteDataSource$RequestRowsCallback(){
- this.requestStart = now_1();
-}
-
-defineClass(309, 1, {}, AbstractRemoteDataSource$RequestRowsCallback);
-_.requestStart = 0;
-var Lcom_vaadin_client_data_AbstractRemoteDataSource$RequestRowsCallback_2_classLit = createForClass('com.vaadin.client.data', 'AbstractRemoteDataSource/RequestRowsCallback', 309, Ljava_lang_Object_2_classLit);
-defineClass(79, 1, {79:1});
-_.equals$ = function(obj){
- return this.equalsExplicit(obj);
-}
-;
-_.hashCode$ = function(){
- return this.hashCodeExplicit();
-}
-;
-var Lcom_vaadin_client_data_DataSource$RowHandle_2_classLit = createForClass('com.vaadin.client.data', 'DataSource/RowHandle', 79, Ljava_lang_Object_2_classLit);
-function $getRow(this$static){
- if (this$static.this$01.pinnedRows.containsKey(this$static.key)) {
- return this$static.row;
- }
- else {
- throw new IllegalStateException_0('The row handle for key ' + this$static.key + ' was not pinned');
- }
-}
-
-function AbstractRemoteDataSource$RowHandleImpl(this$0, row, key){
- this.this$01 = this$0;
- this.row = row;
- this.key = key;
-}
-
-defineClass(105, 79, {105:1, 79:1}, AbstractRemoteDataSource$RowHandleImpl);
-_.equalsExplicit = function(obj){
- var rhi;
- if (instanceOf(obj, 105)) {
- rhi = dynamicCast(obj, 105);
- return equals_Ljava_lang_Object__Z__devirtual$(this.key, rhi.key);
- }
- else {
- return false;
- }
-}
-;
-_.getRow_0 = function(){
- return $getRow(this);
-}
-;
-_.hashCodeExplicit = function(){
- return hashCode__I__devirtual$(this.key);
-}
-;
-_.pin = function(){
- $pinHandle(this.this$01, this);
-}
-;
-_.unpin = function(){
- $unpinHandle(this.this$01, this);
-}
-;
-var Lcom_vaadin_client_data_AbstractRemoteDataSource$RowHandleImpl_2_classLit = createForClass('com.vaadin.client.data', 'AbstractRemoteDataSource/RowHandleImpl', 105, Lcom_vaadin_client_data_DataSource$RowHandle_2_classLit);
-function $getMaxCacheRange_0(this$static, displayedRange, estimatedAvailableRange){
- var cacheSize;
- cacheSize = $getMaximumCacheSize(this$static, displayedRange.end - displayedRange.start_0);
- return $restrictTo(new Range_0(displayedRange.start_0 - cacheSize, displayedRange.end + cacheSize), estimatedAvailableRange);
-}
-
-function $getMinCacheRange(this$static, displayedRange, estimatedAvailableRange){
- var cacheSize;
- cacheSize = $getMinimumCacheSize(this$static, displayedRange.end - displayedRange.start_0);
- return $restrictTo(new Range_0(displayedRange.start_0 - cacheSize, displayedRange.end + cacheSize), estimatedAvailableRange);
-}
-
-defineClass(578, 1, {});
-var Lcom_vaadin_client_data_CacheStrategy$AbstractBasicSymmetricalCacheStrategy_2_classLit = createForClass('com.vaadin.client.data', 'CacheStrategy/AbstractBasicSymmetricalCacheStrategy', 578, Ljava_lang_Object_2_classLit);
-function $getMaximumCacheSize(this$static, pageSize){
- return pageSize * this$static.maximumRatio;
-}
-
-function $getMinimumCacheSize(this$static, pageSize){
- return pageSize * this$static.minimumRatio;
-}
-
-function CacheStrategy$DefaultCacheStrategy(){
- this.minimumRatio = 3;
- this.maximumRatio = 4;
-}
-
-defineClass(183, 578, {}, CacheStrategy$DefaultCacheStrategy);
-_.maximumRatio = 0;
-_.minimumRatio = 0;
-var Lcom_vaadin_client_data_CacheStrategy$DefaultCacheStrategy_2_classLit = createForClass('com.vaadin.client.data', 'CacheStrategy/DefaultCacheStrategy', 183, Lcom_vaadin_client_data_CacheStrategy$AbstractBasicSymmetricalCacheStrategy_2_classLit);
-function $setContentVisible(cell, hasData){
- var cellElement, e, n, node;
- cellElement = cell.cell.element;
- for (n = 0; n < cellElement.childNodes.length; n++) {
- node = cellElement.childNodes[n];
- if (!!node && node.nodeType == 1) {
- e = node;
- hasData?$setPropertyImpl(e.style, 'visibility', ''):$setPropertyImpl(e.style, 'visibility', ($clinit_Style$Visibility() , 'hidden'));
- }
- }
-}
-
-defineClass(51, 1, {51:1});
-var Lcom_vaadin_client_renderers_ComplexRenderer_2_classLit = createForClass('com.vaadin.client.renderers', 'ComplexRenderer', 51, Ljava_lang_Object_2_classLit);
-defineClass(281, 123, $intern_36);
-var Lcom_vaadin_client_ui_SimpleFocusablePanel_2_classLit = createForClass('com.vaadin.client.ui', 'SimpleFocusablePanel', 281, Lcom_google_gwt_user_client_ui_SimplePanel_2_classLit);
-function $trigger(this$static){
- !this$static.timer && (this$static.timer = new VLazyExecutor$1(this$static));
- $schedule(this$static.timer, this$static.delayMs);
-}
-
-function VLazyExecutor(cmd){
- this.delayMs = 100;
- this.cmd = cmd;
-}
-
-defineClass(436, 1, {}, VLazyExecutor);
-_.delayMs = 0;
-var Lcom_vaadin_client_ui_VLazyExecutor_2_classLit = createForClass('com.vaadin.client.ui', 'VLazyExecutor', 436, Ljava_lang_Object_2_classLit);
-function VLazyExecutor$1(this$0){
- this.this$01 = this$0;
- Timer.call(this);
-}
-
-defineClass(437, 45, {}, VLazyExecutor$1);
-_.run = function(){
- this.this$01.timer = null;
- $execute_0(this.this$01.cmd);
-}
-;
-var Lcom_vaadin_client_ui_VLazyExecutor$1_2_classLit = createForClass('com.vaadin.client.ui', 'VLazyExecutor/1', 437, Lcom_google_gwt_user_client_Timer_2_classLit);
-function $getApplicationConnection(this$static){
- if (this$static.owner) {
- findConnectorFor();
- return this$static.ac;
- }
- else {
- return null;
- }
-}
-
-function $getShimElement(this$static){
- if (!this$static.shimElement && $needsShimElement()) {
- this$static.shimElement = $createIFrameElement($doc);
- this$static.shimElement.style['position'] = ($clinit_Style$Position() , 'absolute');
- this$static.shimElement.style['borderStyle'] = ($clinit_Style$BorderStyle() , 'none');
- $setTabIndex(this$static.shimElement, -1);
- this$static.shimElement.frameBorder = 0;
- this$static.shimElement.marginHeight = 0;
- }
- return this$static.shimElement;
-}
-
-function $hide_1(this$static, autoClosed){
- var animationName, cs;
- if ($isIE8(($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2)) || $isIE9((!instance_2 && (instance_2 = new BrowserInfo) , instance_2))) {
- $hide_0(this$static);
- }
- else {
- if ((impl_4.getStyleElement_0(getFirstChild(($clinit_DOM() , this$static.element))).className || '').indexOf('animate-in') != -1) {
- addAnimationEndListener(this$static.element, new VOverlay$2(this$static, autoClosed));
- }
- else {
- $setStyleName(this$static, getStylePrimaryName(impl_4.getStyleElement_0(getFirstChild(this$static.element))) + '-' + 'animate-out', true);
- !!this$static.shadow && $addClassName(this$static.shadow, 'v-shadow-animate-out');
- cs = new ComputedStyle(this$static.element);
- animationName = getAnimationName_0(cs);
- animationName == null && (animationName = '');
- if (animationName.indexOf('animate-out') != -1) {
- this$static.isAnimationEnabled = false;
- addAnimationEndListener(this$static.element, new VOverlay$3(this$static, autoClosed));
- this$static.previewAllNativeEvents = false;
- }
- else {
- $setStyleName(this$static, getStylePrimaryName(impl_4.getStyleElement_0(getFirstChild(this$static.element))) + '-' + 'animate-out', false);
- !!this$static.shadow && $removeClassName(this$static.shadow, 'v-shadow-animate-out');
- $hide_0(this$static);
- }
- }
- }
-}
-
-function $maybeShowWithAnimation(this$static){
- var animationName, cs, isAttached;
- isAttached = this$static.attached && this$static.showing;
- $show(this$static);
- if (isAttached || $isIE8(($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2)) || $isIE9(($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2))) {
- return false;
- }
- else {
- $setVisible(this$static, false);
- $setStyleName(this$static, getStylePrimaryName(impl_4.getStyleElement_0(getFirstChild(($clinit_DOM() , this$static.element)))) + '-' + 'animate-in', true);
- !!this$static.shadow && $addClassName(this$static.shadow, 'v-shadow-animate-in');
- cs = new ComputedStyle(this$static.element);
- animationName = getAnimationName_0(cs);
- animationName == null && (animationName = '');
- $setVisible(this$static, true);
- if (animationName.indexOf('animate-in') != -1) {
- this$static.isAnimationEnabled = false;
- this$static.animateInListener = addAnimationEndListener(this$static.element, new VOverlay$1(this$static));
- return true;
- }
- else {
- $setStyleName(this$static, getStylePrimaryName(impl_4.getStyleElement_0(getFirstChild(this$static.element))) + '-' + 'animate-in', false);
- !!this$static.shadow && $removeClassName(this$static.shadow, 'v-shadow-animate-in');
- return false;
- }
- }
-}
-
-function $needsShimElement(){
- var info;
- info = ($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2);
- return info.browserDetails.isIE && $isBrowserVersionNewerOrEqual(info);
-}
-
-function $positionOrSizeUpdated(this$static, progress){
- var container, positionAndSize, zIndex, x_0, y_0;
- if (!this$static.attached) {
- return;
- }
- try {
- zIndex = __parseAndValidateInt($getZIndex(($clinit_DOM() , this$static.element).style));
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- zIndex = 1000;
- }
- else
- throw unwrap($e0);
- }
- zIndex == -1 && (zIndex = Z_INDEX);
- if (($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2).browserDetails.isIE) {
- $getPropertyInt(($clinit_DOM() , this$static.element), 'offsetHeight');
- $getPropertyInt(this$static.element, 'offsetWidth');
- }
- if (!!this$static.shadow || $needsShimElement()) {
- positionAndSize = new VOverlay$PositionAndSize((x_0 = $getAbsoluteLeft(($clinit_DOM() , this$static.element)) , x_0 -= $getBodyOffsetLeft($doc) , x_0 -= (leftFix == -1 && (leftFix = detectRelativeBodyFixes('left')) , leftFix) , x_0), (y_0 = $getAbsoluteTop(this$static.element) , y_0 -= $getBodyOffsetTop($doc) , y_0 -= (topFix == -1 && (topFix = detectRelativeBodyFixes('top')) , topFix) , y_0), $getPropertyInt(this$static.element, 'offsetWidth'), $getPropertyInt(this$static.element, 'offsetHeight'));
- positionAndSize.left_0 += round_int(positionAndSize.width_0 * (1 - progress) / 2);
- positionAndSize.top_0 += round_int(positionAndSize.height_0 * (1 - progress) / 2);
- positionAndSize.width_0 = round_int(positionAndSize.width_0 * progress);
- positionAndSize.height_0 = round_int(positionAndSize.height_0 * progress);
- container = $getParentElement(this$static.element);
- if (this$static.shadow) {
- $updateShadowPosition(this$static, progress, zIndex, positionAndSize);
- !$getParentElement(this$static.shadow) && $insertBefore(container, this$static.shadow, this$static.element);
- }
- if ($needsShimElement()) {
- $updatePositionAndSize($getShimElement(this$static), positionAndSize);
- !$getParentElement(this$static.shimElement) && $insertBefore(container, this$static.shimElement, this$static.element);
- }
- }
- ($isIE9((!instance_2 && (instance_2 = new BrowserInfo) , instance_2)) || $isIE10((!instance_2 && (instance_2 = new BrowserInfo) , instance_2))) && forceIERedraw(($clinit_DOM() , this$static.element));
-}
-
-function $removeShadowIfPresent(this$static){
- if (!!this$static.shadow && !!$getParentElement(this$static.shadow)) {
- $unsinkShadowEvents(this$static);
- $removeFromParent(this$static.shadow);
- }
-}
-
-function $setOwner(this$static, owner){
- this$static.owner = owner;
-}
-
-function $setPopupPosition_0(this$static, left, top_0){
- var style;
- style = ($clinit_DOM() , this$static.element).style;
- style['marginLeft'] = (leftFix == -1 && (leftFix = detectRelativeBodyFixes('left')) , -leftFix + ($clinit_Style$Unit() , 'px'));
- style['marginTop'] = (topFix == -1 && (topFix = detectRelativeBodyFixes('top')) , -topFix + 'px');
- $setPopupPosition(this$static, left, top_0);
- $positionOrSizeUpdated(this$static, this$static.isAnimationEnabled?0:1);
-}
-
-function $setShadowEnabled(this$static, enabled){
- if (enabled != !!this$static.shadow) {
- if (enabled) {
- this$static.shadow = ($clinit_DOM() , $createDivElement($doc));
- $setClassName(this$static.shadow, 'v-shadow');
- $setInnerHTML(this$static.shadow, '<div aria-hidden="true" class="top-left"><\/div><div class="top"><\/div><div class="top-right"><\/div><div class="left"><\/div><div class="center"><\/div><div class="right"><\/div><div class="bottom-left"><\/div><div class="bottom"><\/div><div class="bottom-right"><\/div>');
- this$static.shadow.style['position'] = ($clinit_Style$Position() , 'absolute');
- $addHandler_0(this$static, this$static, TYPE_1?TYPE_1:(TYPE_1 = new GwtEvent$Type));
- }
- else {
- $removeShadowIfPresent(this$static);
- this$static.shadow = null;
- }
- }
-}
-
-function $setVisible(this$static, visible){
- ($clinit_DOM() , this$static.element).style['visibility'] = visible?'visible':'hidden';
- !!this$static.shadow && (this$static.shadow.style['visibility'] = visible?'visible':'hidden' , undefined);
- !!this$static.shimElement && (this$static.shimElement.style['visibility'] = visible?'visible':'hidden' , undefined);
-}
-
-function $setZIndex(this$static, zIndex){
- ($clinit_DOM() , this$static.element).style['zIndex'] = zIndex + '';
- !!this$static.shadow && $setPropertyImpl(this$static.shadow.style, 'zIndex', zIndex + '');
-}
-
-function $unsinkShadowEvents(this$static){
- if (!!this$static.shadow && !!$getParentElement(this$static.shadow)) {
- $clinit_DOM();
- setEventListener(this$static.shadow, null);
- sinkEvents(this$static.shadow, 0);
- }
-}
-
-function $updatePositionAndSize(e, positionAndSize){
- e.style['left'] = positionAndSize.left_0 + ($clinit_Style$Unit() , 'px');
- e.style['top'] = positionAndSize.top_0 + 'px';
- e.style['width'] = positionAndSize.width_0 + 'px';
- e.style['height'] = positionAndSize.height_0 + 'px';
-}
-
-function $updateShadowPosition(this$static, progress, zIndex, positionAndSize){
- if (($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2).browserDetails.isOpera) {
- ($clinit_DOM() , $getChild_0(this$static.shadow, 3)).style['height'] = 'auto';
- $getChild_0(this$static.shadow, 4).style['height'] = 'auto';
- $getChild_0(this$static.shadow, 5).style['height'] = 'auto';
- }
- $updatePositionAndSize(this$static.shadow, positionAndSize);
- $setPropertyImpl(this$static.shadow.style, 'zIndex', zIndex + '');
- this$static.shadow.style['display'] = progress < 0.9?'none':'';
- if ((!instance_2 && (instance_2 = new BrowserInfo) , instance_2).browserDetails.isOpera) {
- ($clinit_DOM() , $getChild_0(this$static.shadow, 3)).style['height'] = (($getChild_0(this$static.shadow, 3).offsetHeight || 0) | 0) + ($clinit_Style$Unit() , 'px');
- $getChild_0(this$static.shadow, 4).style['height'] = (($getChild_0(this$static.shadow, 4).offsetHeight || 0) | 0) + 'px';
- $getChild_0(this$static.shadow, 5).style['height'] = (($getChild_0(this$static.shadow, 5).offsetHeight || 0) | 0) + 'px';
- }
-}
-
-function detectRelativeBodyFixes(axis_0){
- try {
- var b = $wnd.document.body;
- var cstyle = b.currentStyle?b.currentStyle:getComputedStyle(b);
- if (cstyle && cstyle.position == 'relative') {
- return b.getBoundingClientRect()[axis_0];
- }
- }
- catch (e) {
- }
- return 0;
-}
-
-defineClass(283, 124, $intern_40);
-_.hide = function(){
- $hide_1(this, false);
-}
-;
-_.hide_0 = function(autoClosed){
- $hide_1(this, autoClosed);
-}
-;
-_.onAttach = function(){
- var e, overlay;
- overlay = current_0;
- if (overlay) {
- e = ($getApplicationConnection(overlay) , $ensureNamesAreInitialized(Lcom_vaadin_client_ui_VSlider$1_2_classLit) , $getElement(($clinit_RootPanel() , get_0())));
- $appendChild(e, ($clinit_DOM() , this.element));
- }
- $onAttach(this);
-}
-;
-_.onClose = function(event_0){
- $removeShadowIfPresent(this);
-}
-;
-_.onDetach = function(){
- $onDetach(this);
- $removeShadowIfPresent(this);
- !!this.shimElement && $removeFromParent(this.shimElement);
-}
-;
-_.setHeight_0 = function(height){
- $setHeight(this, height);
- $positionOrSizeUpdated(this, 1);
-}
-;
-_.setPopupPosition = function(left, top_0){
- $setPopupPosition_0(this, left, top_0);
-}
-;
-_.setWidth = function(width_0){
- $setWidth(this, width_0);
- $positionOrSizeUpdated(this, 1);
-}
-;
-_.sinkEvents = function(eventBitsToAdd){
- this.eventsToSink == -1?sinkEvents(($clinit_DOM() , this.element), eventBitsToAdd | (this.element.__eventBits || 0)):(this.eventsToSink |= eventBitsToAdd);
-}
-;
-var Z_INDEX = 20000, current_0, leftFix = -1, topFix = -1;
-var Lcom_vaadin_client_ui_VOverlay_2_classLit = createForClass('com.vaadin.client.ui', 'VOverlay', 283, Lcom_google_gwt_user_client_ui_PopupPanel_2_classLit);
-function VOverlay$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(291, 1, {}, VOverlay$1);
-_.onAnimationEnd = function(event_0){
- var animationName;
- animationName = getAnimationName(event_0);
- if (animationName.indexOf('animate-in') != -1) {
- removeAnimationEndListener($getElement(this.this$01), this.this$01.animateInListener);
- $removeStyleDependentName(this.this$01, 'animate-in');
- !!this.this$01.shadow && $removeClassName(this.this$01.shadow, 'v-shadow-animate-in');
- }
-}
-;
-var Lcom_vaadin_client_ui_VOverlay$1_2_classLit = createForClass('com.vaadin.client.ui', 'VOverlay/1', 291, Ljava_lang_Object_2_classLit);
-function VOverlay$2(this$0, val$autoClosed){
- this.this$01 = this$0;
- this.val$autoClosed2 = val$autoClosed;
-}
-
-defineClass(292, 1, {}, VOverlay$2);
-_.onAnimationEnd = function(event_0){
- getAnimationName(event_0).indexOf('animate-in') != -1 && $hide_1(this.this$01, this.val$autoClosed2);
-}
-;
-_.val$autoClosed2 = false;
-var Lcom_vaadin_client_ui_VOverlay$2_2_classLit = createForClass('com.vaadin.client.ui', 'VOverlay/2', 292, Ljava_lang_Object_2_classLit);
-function VOverlay$3(this$0, val$autoClosed){
- this.this$01 = this$0;
- this.val$autoClosed2 = val$autoClosed;
-}
-
-defineClass(293, 1, {}, VOverlay$3);
-_.onAnimationEnd = function(event_0){
- var animationName;
- animationName = getAnimationName(event_0);
- if (animationName.indexOf('animate-out') != -1) {
- removeAllAnimationEndListeners($getElement(this.this$01));
- $removeStyleDependentName(this.this$01, 'animate-in');
- $removeStyleDependentName(this.this$01, 'animate-out');
- if (this.this$01.shadow) {
- $removeClassName(this.this$01.shadow, 'v-shadow-animate-in');
- $removeClassName(this.this$01.shadow, 'v-shadow-animate-out');
- }
- $hide_0(this.this$01);
- }
-}
-;
-_.val$autoClosed2 = false;
-var Lcom_vaadin_client_ui_VOverlay$3_2_classLit = createForClass('com.vaadin.client.ui', 'VOverlay/3', 293, Ljava_lang_Object_2_classLit);
-function $setHeight_0(this$static, height){
- height < 0 && (height = 0);
- this$static.height_0 = height;
-}
-
-function $setWidth_0(this$static, width_0){
- width_0 < 0 && (width_0 = 0);
- this$static.width_0 = width_0;
-}
-
-function VOverlay$PositionAndSize(left, top_0, width_0, height){
- this.left_0 = left;
- this.top_0 = top_0;
- $setWidth_0(this, width_0);
- $setHeight_0(this, height);
-}
-
-defineClass(289, 1, {}, VOverlay$PositionAndSize);
-_.height_0 = 0;
-_.left_0 = 0;
-_.top_0 = 0;
-_.width_0 = 0;
-var Lcom_vaadin_client_ui_VOverlay$PositionAndSize_2_classLit = createForClass('com.vaadin.client.ui', 'VOverlay/PositionAndSize', 289, Ljava_lang_Object_2_classLit);
-function VOverlay$ResizeAnimation(this$0){
- this.this$01 = this$0;
- Animation.call(this);
-}
-
-defineClass(290, 125, {}, VOverlay$ResizeAnimation);
-_.onUpdate = function(progress){
- $positionOrSizeUpdated(this.this$01, progress);
-}
-;
-var Lcom_vaadin_client_ui_VOverlay$ResizeAnimation_2_classLit = createForClass('com.vaadin.client.ui', 'VOverlay/ResizeAnimation', 290, Lcom_google_gwt_animation_client_Animation_2_classLit);
-function $setState_0(this$static, state){
- var size_0;
- size_0 = Math.round(100 * state);
- this$static.indicator.style['width'] = size_0 + ($clinit_Style$Unit() , '%');
-}
-
-function VProgressBar(){
- this.wrapper = ($clinit_DOM() , $createDivElement($doc));
- this.indicator = $createDivElement($doc);
- $setElement_0(this, $createDivElement($doc));
- $appendChild(this.element, this.wrapper);
- $appendChild(this.wrapper, this.indicator);
- setStylePrimaryName(this.element, 'v-progressbar');
- $setClassName(this.indicator, getStylePrimaryName(this.element) + '-indicator');
- $setClassName(this.wrapper, getStylePrimaryName(this.element) + '-wrapper');
-}
-
-defineClass(280, 17, $intern_25, VProgressBar);
-var Lcom_vaadin_client_ui_VProgressBar_2_classLit = createForClass('com.vaadin.client.ui', 'VProgressBar', 280, Lcom_google_gwt_user_client_ui_Widget_2_classLit);
-function $buildBase(this$static){
- var p;
- $setPropertyImpl(this$static.base.style, 'height', '');
- if ($hasParentElement(($clinit_DOM() , this$static.element))) {
- p = $getParentElement(this$static.element);
- if ($getPropertyInt(p, 'offsetWidth') > 50) {
- $setPropertyImpl(this$static.base.style, 'width', '');
- }
- else {
- this$static.base.style['width'] = ($clinit_Style$Unit() , '50.0px');
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), new VSlider$3(this$static));
- }
- }
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), new VSlider$4(this$static));
-}
-
-function $buildHandle(this$static){
- $setPropertyImpl(this$static.handle.style, 'marginLeft', '0');
- $setPropertyImpl(this$static.handle.style, 'marginTop', '');
-}
-
-function $fireValueChanged(this$static){
- fire_2(this$static, this$static.value_0);
-}
-
-function $handleNavigation(this$static, keycode, ctrl, shift_0){
- var a;
- if (ctrl) {
- return false;
- }
- if (keycode == 39) {
- if (shift_0) {
- for (a = 0; a < this$static.acceleration; a++) {
- $setValue_1(this$static, new Double(this$static.value_0.value_0 + pow_0(10, -this$static.resolution)), false);
- }
- ++this$static.acceleration;
- }
- else {
- $setValue_1(this$static, new Double(this$static.value_0.value_0 + pow_0(10, -this$static.resolution)), false);
- }
- return true;
- }
- else if (keycode == 37) {
- if (shift_0) {
- for (a = 0; a < this$static.acceleration; a++) {
- $setValue_1(this$static, new Double(this$static.value_0.value_0 - pow_0(10, -this$static.resolution)), false);
- }
- ++this$static.acceleration;
- }
- else {
- $setValue_1(this$static, new Double(this$static.value_0.value_0 - pow_0(10, -this$static.resolution)), false);
- }
- return true;
- }
- return false;
-}
-
-function $processBaseEvent(this$static, event_0){
- $clinit_DOM();
- if ($eventGetTypeInt(($clinit_DOMImpl() , event_0).type) == 4) {
- if (!this$static.disabled && !this$static.readonly && !this$static.dragging) {
- $setValueByEvent(this$static, event_0, true);
- $eventCancelBubble(event_0, true);
- }
- }
-}
-
-function $processHandleEvent(this$static, event_0){
- switch ($clinit_DOM() , $eventGetTypeInt(($clinit_DOMImpl() , event_0).type)) {
- case 4:
- case $intern_30:
- if (!this$static.disabled && !this$static.readonly) {
- ($clinit_FocusImpl() , $clinit_FocusImpl() , implPanel).focus_0(this$static.element);
- $show_0(this$static.feedbackPopup);
- this$static.dragging = true;
- $setClassName(this$static.handle, getStylePrimaryName(this$static.element) + '-handle');
- $addClassName(this$static.handle, getStylePrimaryName(this$static.element) + '-handle-active');
- setCapture(this$static.element);
- $eventPreventDefault(event_0);
- $eventCancelBubble(event_0, true);
- $eventStopPropagation(event_0);
- }
-
- break;
- case 64:
- case $intern_31:
- if (this$static.dragging) {
- $setValueByEvent(this$static, event_0, false);
- $setPopupPosition_0(this$static.feedbackPopup, $getAbsoluteLeft(this$static.handle) + (($getSubPixelOffsetWidth(this$static.handle) | 0) / 2 | 0) - ($getPropertyInt(this$static.feedbackPopup.element, 'offsetWidth') / 2 | 0), $getAbsoluteTop(this$static.handle) - $getPropertyInt(this$static.feedbackPopup.element, 'offsetHeight'));
- $eventStopPropagation(event_0);
- }
-
- break;
- case $intern_17:
- $hide_1(this$static.feedbackPopup, false);
- case 8:
- this$static.dragging = false;
- $setClassName(this$static.handle, getStylePrimaryName(this$static.element) + '-handle');
- releaseCapture(this$static.element);
- $setValueByEvent(this$static, event_0, true);
- $eventStopPropagation(event_0);
- }
-}
-
-function $setMaxValue(this$static, value_0){
- this$static.max_0 = value_0;
-}
-
-function $setMinValue(this$static, value_0){
- this$static.min_0 = value_0;
-}
-
-function $setValue_0(this$static, value_0){
- var baseSize, handleSize, p, range, v, valueRange, currentValue;
- value_0.value_0 < this$static.min_0?(value_0 = new Double(this$static.min_0)):value_0.value_0 > this$static.max_0 && (value_0 = new Double(this$static.max_0));
- handleSize = $getPropertyInt(this$static.handle, 'offsetWidth');
- baseSize = $getPropertyInt(this$static.base, 'offsetWidth') - 2;
- range = baseSize - handleSize;
- v = value_0.value_0;
- if (this$static.resolution > 0) {
- v = toDouble(fromDouble(round0(v * pow_0(10, this$static.resolution))));
- v = v / pow_0(10, this$static.resolution);
- }
- else {
- v = toDouble(fromDouble(round0(v)));
- }
- valueRange = this$static.max_0 - this$static.min_0;
- p = 0;
- valueRange > 0 && (p = range * ((v - this$static.min_0) / valueRange));
- p < 0 && (p = 0);
- this$static.handle.style['marginLeft'] = toInt(fromDouble(round0(p))) + ($clinit_Style$Unit() , 'px');
- this$static.value_0 = new Double(v);
- currentValue = '' + v;
- this$static.resolution == 0 && (currentValue = '' + round_int((new Double(v)).value_0));
- $setText(this$static.feedback, currentValue);
-}
-
-function $setValue_1(this$static, value_0, fireEvents){
- if (!value_0) {
- return;
- }
- $setValue_0(this$static, value_0);
- fireEvents && fire_2(this$static, this$static.value_0);
-}
-
-function $setValueByEvent(this$static, event_0, updateToServer){
- var baseOffset, baseSize, coord, handleSize, v;
- coord = ($clinit_WidgetUtil() , ($clinit_DOMImpl() , event_0).type.indexOf('touch') != -1?$getClientX(event_0.changedTouches[0]):toInt32(event_0.clientX || 0));
- handleSize = $getSubPixelOffsetWidth(this$static.handle) | 0;
- baseSize = $getSubPixelOffsetWidth(this$static.base) | 0;
- baseOffset = $getAbsoluteLeft(this$static.base) - ($clinit_Window() , $getScrollLeft_0($doc)) + (handleSize / 2 | 0);
- v = (coord - baseOffset) / (baseSize - handleSize) * (this$static.max_0 - this$static.min_0) + this$static.min_0;
- v < this$static.min_0?(v = this$static.min_0):v > this$static.max_0 && (v = this$static.max_0);
- $setValue_1(this$static, new Double(v), updateToServer);
-}
-
-function $updateFeedbackPosition(this$static){
- $setPopupPosition_0(this$static.feedbackPopup, $getAbsoluteLeft(this$static.handle) + (($getSubPixelOffsetWidth(this$static.handle) | 0) / 2 | 0) - ($getPropertyInt(($clinit_DOM() , this$static.feedbackPopup.element), 'offsetWidth') / 2 | 0), $getAbsoluteTop(this$static.handle) - $getPropertyInt(this$static.feedbackPopup.element, 'offsetHeight'));
-}
-
-function VSlider(){
- SimplePanel.call(this);
- $setTabIndex(($clinit_DOM() , this.element), 0);
- this.acceleration = 1;
- this.feedback = new HTML;
- this.feedbackPopup = new VSlider$1(this);
- this.dragging = false;
- this.delayedValueUpdater = new VLazyExecutor(new VSlider$2(this));
- this.base = $createDivElement($doc);
- this.handle = $createDivElement($doc);
- this.smaller = $createDivElement($doc);
- this.bigger = $createDivElement($doc);
- $removeStyleName(this.feedbackPopup, getStylePrimaryName(this.element) + '-feedback');
- $removeStyleName(this, getStylePrimaryName(this.element) + '-vertical');
- $setClassName(this.element, 'v-slider');
- $addStyleName(this.feedbackPopup, getStylePrimaryName(this.element) + '-feedback');
- $setClassName(this.base, getStylePrimaryName(this.element) + '-base');
- $setClassName(this.handle, getStylePrimaryName(this.element) + '-handle');
- $setClassName(this.smaller, getStylePrimaryName(this.element) + '-smaller');
- $setClassName(this.bigger, getStylePrimaryName(this.element) + '-bigger');
- $appendChild(this.element, this.bigger);
- $appendChild(this.element, this.smaller);
- $appendChild(this.element, this.base);
- $appendChild(this.base, this.handle);
- this.smaller.style['display'] = ($clinit_Style$Display() , 'none');
- this.bigger.style['display'] = 'none';
- this.eventsToSink == -1?sinkEvents(this.element, 15866876 | (this.element.__eventBits || 0)):(this.eventsToSink |= 15866876);
- $setWidget_0(this.feedbackPopup, this.feedback);
-}
-
-defineClass(282, 281, $intern_36, VSlider);
-_.onBrowserEvent = function(event_0){
- var targ, dir_0;
- if (this.disabled || this.readonly) {
- return;
- }
- targ = ($clinit_DOM() , ($clinit_DOMImpl() , impl_0).eventGetTarget(event_0));
- if ($eventGetTypeInt(event_0.type) == $intern_29) {
- dir_0 = impl_0.eventGetMouseWheelVelocityY(event_0);
- dir_0 < 0?$setValue_1(this, new Double(this.value_0.value_0 + pow_0(10, -this.resolution)), false):$setValue_1(this, new Double(this.value_0.value_0 - pow_0(10, -this.resolution)), false);
- $trigger(this.delayedValueUpdater);
- $eventPreventDefault(event_0);
- $eventCancelBubble(event_0, true);
- }
- else if (this.dragging || targ == this.handle) {
- $processHandleEvent(this, event_0);
- }
- else if (targ == this.smaller) {
- $setValue_1(this, new Double(this.value_0.value_0 - pow_0(10, -this.resolution)), true);
- }
- else if (targ == this.bigger) {
- $setValue_1(this, new Double(this.value_0.value_0 + pow_0(10, -this.resolution)), true);
- }
- else {
- if ($eventGetTypeInt(event_0.type) == 124) {
- $processBaseEvent(this, event_0);
- }
- else if (($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2).browserDetails.isGecko && $eventGetTypeInt(event_0.type) == 256 || !(!instance_2 && (instance_2 = new BrowserInfo) , instance_2).browserDetails.isGecko && $eventGetTypeInt(event_0.type) == 128) {
- if ($handleNavigation(this, event_0.keyCode | 0, !!event_0.ctrlKey, !!event_0.shiftKey)) {
- $show_0(this.feedbackPopup);
- $trigger(this.delayedValueUpdater);
- $eventPreventDefault(event_0);
- $eventCancelBubble(event_0, true);
- }
- }
- else
- targ == this.element && $eventGetTypeInt(event_0.type) == 2048?$show_0(this.feedbackPopup):targ == this.element && $eventGetTypeInt(event_0.type) == 4096?$hide_1(this.feedbackPopup, false):$eventGetTypeInt(event_0.type) == 4 && $show_0(this.feedbackPopup);
- }
- $clinit_WidgetUtil();
- if (event_0.type.indexOf('touch') != -1) {
- $eventPreventDefault(event_0);
- $eventStopPropagation(event_0);
- }
-}
-;
-_.acceleration = 0;
-_.disabled = false;
-_.dragging = false;
-_.max_0 = 0;
-_.min_0 = 0;
-_.readonly = false;
-_.resolution = 0;
-var Lcom_vaadin_client_ui_VSlider_2_classLit = createForClass('com.vaadin.client.ui', 'VSlider', 282, Lcom_vaadin_client_ui_SimpleFocusablePanel_2_classLit);
-function $show_0(this$static){
- current_0 = this$static;
- $maybeShowWithAnimation(this$static);
- this$static.isAnimationEnabled?$run(new VOverlay$ResizeAnimation(this$static), now_1()):$positionOrSizeUpdated(this$static, 1);
- current_0 = null;
- $updateFeedbackPosition(this$static.this$01);
-}
-
-function VSlider$1(this$0){
- $clinit_PopupPanel();
- this.this$01 = this$0;
- SimplePanel.call(this);
- this.glassResizer = new PopupPanel$1;
- this.isAnimationEnabled = false;
- this.leftPosition = -1;
- this.resizeAnimation = new PopupPanel$ResizeAnimation(this, this);
- this.topPosition = -1;
- this.parentPanel = ($clinit_RootPanel() , get_0());
- $appendChild(($clinit_DOM() , this.element), impl_4.createElement_0());
- this.setPopupPosition(0, 0);
- $setClassName(impl_4.getStyleElement_0(getFirstChild(this.element)), 'gwt-PopupPanel');
- $setClassName(impl_4.getContainerElement_0(getFirstChild(this.element)), 'popupContent');
- this.autoHide = true;
- this.autoHideOnHistoryEvents = true;
- this.modal = false;
- $setShadowEnabled(this, $isIE8(($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2)));
- $setZIndex(this, Z_INDEX);
- $setOwner(this, this.this$01);
-}
-
-defineClass(284, 283, $intern_40, VSlider$1);
-var Lcom_vaadin_client_ui_VSlider$1_2_classLit = createForClass('com.vaadin.client.ui', 'VSlider/1', 284, Lcom_vaadin_client_ui_VOverlay_2_classLit);
-function $execute_0(this$static){
- $fireValueChanged(this$static.this$01);
- this$static.this$01.acceleration = 1;
-}
-
-function VSlider$2(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(285, 1, {}, VSlider$2);
-_.execute_1 = function(){
- $execute_0(this);
-}
-;
-var Lcom_vaadin_client_ui_VSlider$2_2_classLit = createForClass('com.vaadin.client.ui', 'VSlider/2', 285, Ljava_lang_Object_2_classLit);
-function VSlider$3(this$0){
- this.this$01 = this$0;
- this.val$domProperty2 = 'offsetWidth';
- this.val$styleAttribute3 = 'width';
-}
-
-defineClass(286, 1, {}, VSlider$3);
-_.execute_1 = function(){
- var p;
- p = $getParentElement($getElement(this.this$01));
- if ($getPropertyInt(p, this.val$domProperty2) > 55) {
- $setPropertyImpl(this.this$01.base.style, this.val$styleAttribute3, '');
- $setValue_1(this.this$01, this.this$01.value_0, false);
- }
-}
-;
-var Lcom_vaadin_client_ui_VSlider$3_2_classLit = createForClass('com.vaadin.client.ui', 'VSlider/3', 286, Ljava_lang_Object_2_classLit);
-function VSlider$4(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(287, 1, {}, VSlider$4);
-_.execute_1 = function(){
- $buildHandle(this.this$01);
- $setValue_1(this.this$01, this.this$01.value_0, false);
-}
-;
-var Lcom_vaadin_client_ui_VSlider$4_2_classLit = createForClass('com.vaadin.client.ui', 'VSlider/4', 287, Ljava_lang_Object_2_classLit);
-function Cell(row, column, element){
- this.row = row;
- this.column = column;
- this.element = element;
-}
-
-defineClass(137, 1, {}, Cell);
-_.column = 0;
-_.row = 0;
-var Lcom_vaadin_client_widget_escalator_Cell_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'Cell', 137, Ljava_lang_Object_2_classLit);
-function $clinit_EscalatorUpdater(){
- $clinit_EscalatorUpdater = emptyMethod;
- NULL = new EscalatorUpdater$1;
-}
-
-var NULL;
-function EscalatorUpdater$1(){
-}
-
-defineClass(249, 1, {}, EscalatorUpdater$1);
-_.postAttach = function(row, attachedCells){
-}
-;
-_.postDetach = function(row, detachedCells){
-}
-;
-_.preAttach = function(row, cellsToAttach){
-}
-;
-_.preDetach = function(row, cellsToDetach){
-}
-;
-_.update = function(row, cellsToUpdate){
-}
-;
-var Lcom_vaadin_client_widget_escalator_EscalatorUpdater$1_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'EscalatorUpdater/1', 249, Ljava_lang_Object_2_classLit);
-function $adjustCellWidthForSpan(this$static, numberOfCells){
- var cellsToTheRight, i_0, selfWidth, widthsOfColumnsToTheRight;
- cellsToTheRight = $rawPeekNext(this$static.currentIterator, numberOfCells - 1).size_0;
- selfWidth = $getColumnWidth(this$static.row, this$static.column);
- widthsOfColumnsToTheRight = 0;
- for (i_0 = 0; i_0 < cellsToTheRight; i_0++) {
- widthsOfColumnsToTheRight += $getColumnWidth(this$static.row, this$static.column + i_0 + 1);
- }
- this$static.element.style['width'] = selfWidth + widthsOfColumnsToTheRight + ($clinit_Style$Unit() , 'px');
-}
-
-function $hideOrRevealAdjacentCellElements(this$static, numberOfCells, prevColSpan){
- var affectedCells, affectedCellsNumber, i_0;
- affectedCellsNumber = prevColSpan > numberOfCells?prevColSpan:numberOfCells;
- affectedCells = $rawPeekNext(this$static.currentIterator, affectedCellsNumber - 1);
- if (prevColSpan < numberOfCells) {
- for (i_0 = 0; i_0 < affectedCells.size_0; i_0++) {
- (checkElementIndex(prevColSpan + i_0 - 1, affectedCells.size_0) , dynamicCast($get_6(affectedCells.wrapped, affectedCells.fromIndex + (prevColSpan + i_0 - 1)), 37)).element.style['display'] = ($clinit_Style$Display() , 'none');
- }
- }
- else if (prevColSpan > numberOfCells) {
- for (i_0 = 0; i_0 < affectedCells.size_0; i_0++) {
- (checkElementIndex(numberOfCells + i_0 - 1, affectedCells.size_0) , dynamicCast($get_6(affectedCells.wrapped, affectedCells.fromIndex + (numberOfCells + i_0 - 1)), 37)).element.style['display'] = '';
- }
- }
-}
-
-function $setColSpan(this$static, numberOfCells){
- var prevColSpan;
- if (numberOfCells < 1) {
- throw new IllegalArgumentException_0('Number of cells should be more than 0');
- }
- prevColSpan = $getPropertyInt(this$static.element, 'colSpan');
- if (numberOfCells == 1 && prevColSpan == 1) {
- return;
- }
- $setPropertyInt(this$static.element, 'colSpan', numberOfCells);
- $adjustCellWidthForSpan(this$static, numberOfCells);
- $hideOrRevealAdjacentCellElements(this$static, numberOfCells, prevColSpan);
- $setSkipNext(this$static.currentIterator, numberOfCells - 1);
-}
-
-function $setup(this$static, iterator){
- var e;
- this$static.currentIterator = iterator;
- if (iterator.cellsAttached) {
- e = this$static.row.element.cells[this$static.column];
- $setPropertyInt(e, 'colSpan', 1);
- $getColumnWidth(this$static.row, this$static.column) >= 0 && (e.style['width'] = $getColumnWidth(this$static.row, this$static.column) + ($clinit_Style$Unit() , 'px') , undefined);
- $setPropertyImpl(e.style, 'display', '');
- this$static.element = e;
- }
-}
-
-function FlyweightCell(row, column){
- this.row = row;
- this.column = column;
-}
-
-defineClass(37, 1, {37:1}, FlyweightCell);
-_.column = 0;
-_.currentIterator = null;
-_.element = null;
-var Lcom_vaadin_client_widget_escalator_FlyweightCell_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'FlyweightCell', 37, Ljava_lang_Object_2_classLit);
-function $addCells(this$static, index_0){
- var col, i_0;
- for (i_0 = 0; i_0 < 1; i_0++) {
- col = index_0 + i_0;
- $add_5(this$static.cells_0, col, new FlyweightCell(this$static, col));
- }
- $updateRestOfCells(this$static, index_0 + 1);
-}
-
-function $getCells(this$static){
- return new FlyweightRow$1(this$static, 0, this$static.cells_0.array.length);
-}
-
-function $getColumnWidth(this$static, column){
- return this$static.columnWidths[column];
-}
-
-function $removeCells(this$static, index_0){
- $clear_0(new AbstractList$SubList(this$static.cells_0, index_0, index_0 + 1));
- $updateRestOfCells(this$static, index_0);
-}
-
-function $setup_0(this$static, e, row, columnWidths){
- this$static.element = e;
- this$static.row = row;
- this$static.columnWidths = columnWidths;
-}
-
-function $updateRestOfCells(this$static, startPos){
- var col;
- for (col = startPos; col < this$static.cells_0.array.length; col++) {
- $set_4(this$static.cells_0, col, new FlyweightCell(this$static, col));
- }
-}
-
-function FlyweightRow(){
- this.cells_0 = new ArrayList;
-}
-
-defineClass(468, 1, {}, FlyweightRow);
-_.columnWidths = null;
-_.row = 0;
-var Lcom_vaadin_client_widget_escalator_FlyweightRow_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'FlyweightRow', 468, Ljava_lang_Object_2_classLit);
-function FlyweightRow$1(this$0, val$offset, val$numberOfCells){
- this.this$01 = this$0;
- this.val$offset2 = val$offset;
- this.val$numberOfCells3 = val$numberOfCells;
-}
-
-defineClass(141, 1, {}, FlyweightRow$1);
-_.iterator_0 = function(){
- return new FlyweightRow$CellIterator(new AbstractList$SubList(this.this$01.cells_0, this.val$offset2, this.val$offset2 + this.val$numberOfCells3), true);
-}
-;
-_.val$numberOfCells3 = 0;
-_.val$offset2 = 0;
-var Lcom_vaadin_client_widget_escalator_FlyweightRow$1_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'FlyweightRow/1', 141, Ljava_lang_Object_2_classLit);
-function FlyweightRow$2(this$0, val$offset){
- this.this$01 = this$0;
- this.val$offset2 = val$offset;
- this.val$numberOfCells3 = 1;
-}
-
-defineClass(181, 1, {}, FlyweightRow$2);
-_.iterator_0 = function(){
- return new FlyweightRow$CellIterator(new AbstractList$SubList(this.this$01.cells_0, this.val$offset2, this.val$offset2 + this.val$numberOfCells3), false);
-}
-;
-_.val$numberOfCells3 = 0;
-_.val$offset2 = 0;
-var Lcom_vaadin_client_widget_escalator_FlyweightRow$2_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'FlyweightRow/2', 181, Ljava_lang_Object_2_classLit);
-function $next_1(this$static){
- var cell, i_0;
- for (i_0 = 0; i_0 < this$static.skipNext; i_0++) {
- this$static.cells_0.remove_3(this$static.cursor_0);
- }
- this$static.skipNext = 0;
- cell = dynamicCast($get_6(this$static.cells_0, this$static.cursor_0++), 37);
- $setup(cell, this$static);
- return cell;
-}
-
-function $rawPeekNext(this$static, n){
- var cell, cell$iterator, from, nextCells, to;
- from = min_1(this$static.cursor_0, this$static.cells_0.array.length);
- to = min_1(this$static.cursor_0 + n, this$static.cells_0.array.length);
- nextCells = new AbstractList$SubList(this$static.cells_0, from, to);
- for (cell$iterator = new AbstractList$IteratorImpl(nextCells); cell$iterator.i < cell$iterator.this$01_0.size_2();) {
- cell = (checkCriticalElement(cell$iterator.i < cell$iterator.this$01_0.size_2()) , dynamicCast(cell$iterator.this$01_0.get_0(cell$iterator.last = cell$iterator.i++), 37));
- $setup(cell, this$static);
- }
- return nextCells;
-}
-
-function $setSkipNext(this$static, colspan){
- this$static.skipNext = colspan;
-}
-
-function FlyweightRow$CellIterator(cells_0, attached){
- this.cells_0 = new ArrayList_1(cells_0);
- this.cellsAttached = attached;
-}
-
-defineClass(108, 1, {}, FlyweightRow$CellIterator);
-_.hasNext = function(){
- return this.cursor_0 + this.skipNext < this.cells_0.array.length;
-}
-;
-_.next_0 = function(){
- return $next_1(this);
-}
-;
-_.remove_0 = function(){
- throw new UnsupportedOperationException_0('Cannot remove cells via iterator');
-}
-;
-_.cellsAttached = false;
-_.cursor_0 = 0;
-_.skipNext = 0;
-var Lcom_vaadin_client_widget_escalator_FlyweightRow$CellIterator_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'FlyweightRow/CellIterator', 108, Ljava_lang_Object_2_classLit);
-function PositionFunction$AbsolutePosition(){
-}
-
-defineClass(114, 1, {114:1}, PositionFunction$AbsolutePosition);
-_.reset_0 = function(e){
- $setPropertyImpl(e.style, 'left', '');
- $setPropertyImpl(e.style, 'top', '');
-}
-;
-_.set_1 = function(e, x_0, y_0){
- e.style['left'] = x_0 + ($clinit_Style$Unit() , 'px');
- e.style['top'] = y_0 + 'px';
-}
-;
-var Lcom_vaadin_client_widget_escalator_PositionFunction$AbsolutePosition_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'PositionFunction/AbsolutePosition', 114, Ljava_lang_Object_2_classLit);
-function PositionFunction$Translate3DPosition(){
-}
-
-defineClass(438, 1, {}, PositionFunction$Translate3DPosition);
-_.reset_0 = function(e){
- $setPropertyImpl(e.style, 'transform', '');
-}
-;
-_.set_1 = function(e, x_0, y_0){
- e.style['transform'] = 'translate3d(' + x_0 + 'px, ' + y_0 + 'px, 0)';
-}
-;
-var Lcom_vaadin_client_widget_escalator_PositionFunction$Translate3DPosition_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'PositionFunction/Translate3DPosition', 438, Ljava_lang_Object_2_classLit);
-function PositionFunction$TranslatePosition(){
-}
-
-defineClass(439, 1, {}, PositionFunction$TranslatePosition);
-_.reset_0 = function(e){
- $setPropertyImpl(e.style, 'transform', '');
-}
-;
-_.set_1 = function(e, x_0, y_0){
- e.style['transform'] = 'translate(' + x_0 + 'px,' + y_0 + 'px)';
-}
-;
-var Lcom_vaadin_client_widget_escalator_PositionFunction$TranslatePosition_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'PositionFunction/TranslatePosition', 439, Ljava_lang_Object_2_classLit);
-function PositionFunction$WebkitTranslate3DPosition(){
-}
-
-defineClass(440, 1, {}, PositionFunction$WebkitTranslate3DPosition);
-_.reset_0 = function(e){
- $setPropertyImpl(e.style, 'webkitTransform', '');
-}
-;
-_.set_1 = function(e, x_0, y_0){
- e.style['webkitTransform'] = 'translate3d(' + x_0 + 'px,' + y_0 + 'px,0)';
-}
-;
-var Lcom_vaadin_client_widget_escalator_PositionFunction$WebkitTranslate3DPosition_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'PositionFunction/WebkitTranslate3DPosition', 440, Ljava_lang_Object_2_classLit);
-function $clinit_RowVisibilityChangeEvent(){
- $clinit_RowVisibilityChangeEvent = emptyMethod;
- TYPE_6 = new GwtEvent$Type;
-}
-
-function $dispatch_0(this$static, handler){
- $onRowVisibilityChange(handler, this$static);
-}
-
-function RowVisibilityChangeEvent(firstVisibleRow, visibleRowCount){
- $clinit_RowVisibilityChangeEvent();
- this.firstVisibleRow = firstVisibleRow;
- this.visibleRowCount = visibleRowCount;
-}
-
-defineClass(173, 556, {}, RowVisibilityChangeEvent);
-_.dispatch = function(handler){
- $dispatch_0(this, dynamicCast(handler, 586));
-}
-;
-_.getAssociatedType = function(){
- return TYPE_6;
-}
-;
-_.firstVisibleRow = 0;
-_.visibleRowCount = 0;
-var TYPE_6;
-var Lcom_vaadin_client_widget_escalator_RowVisibilityChangeEvent_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'RowVisibilityChangeEvent', 173, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function $addScrollHandler(this$static, handler){
- return $addHandler((!this$static.handlerManager && (this$static.handlerManager = new HandlerManager(this$static)) , this$static.handlerManager), ($clinit_ScrollEvent() , TYPE_9), handler);
-}
-
-function $addVisibilityHandler(this$static, handler){
- return $addHandler((!this$static.handlerManager && (this$static.handlerManager = new HandlerManager(this$static)) , this$static.handlerManager), ($clinit_ScrollbarBundle$VisibilityChangeEvent() , TYPE_7), handler);
-}
-
-function $fireVisibilityChangeIfNeeded(this$static){
- var event_0, oldHandleIsVisible;
- oldHandleIsVisible = this$static.scrollHandleIsVisible;
- this$static.scrollHandleIsVisible = parseCssDimensionToPixels(this$static.internalGetOffsetSize()) < parseCssDimensionToPixels(this$static.internalGetScrollSize());
- if (oldHandleIsVisible != this$static.scrollHandleIsVisible) {
- event_0 = new ScrollbarBundle$VisibilityChangeEvent;
- $fireEvent((!this$static.handlerManager && (this$static.handlerManager = new HandlerManager(this$static)) , this$static.handlerManager), event_0);
- }
-}
-
-function $forceScrollbar(this$static, enable){
- enable?$setPropertyImpl(this$static.root.style, 'display', ''):(this$static.root.style['display'] = ($clinit_Style$Display() , 'none') , undefined);
- this$static.internalForceScrollbar(enable);
-}
-
-function $getHandlerManager(this$static){
- !this$static.handlerManager && (this$static.handlerManager = new HandlerManager(this$static));
- return this$static.handlerManager;
-}
-
-function $getScrollbarThickness(this$static){
- return this$static.isInvisibleScrollbar?0:parseCssDimensionToPixels(this$static.internalGetScrollbarThickness());
-}
-
-function $recalculateMaxScrollPos(this$static){
- var offsetSize, scrollSize;
- scrollSize = parseCssDimensionToPixels(this$static.internalGetScrollSize());
- offsetSize = parseCssDimensionToPixels(this$static.internalGetOffsetSize());
- this$static.maxScrollPos = 0 > scrollSize - offsetSize?0:scrollSize - offsetSize;
- $setScrollPos(this$static, this$static.scrollPos);
-}
-
-function $setOffsetSize(this$static, px){
- var newOffsetSizeIsGreaterThanScrollSize, offsetSizeBecomesGreaterThanScrollSize;
- newOffsetSizeIsGreaterThanScrollSize = px > parseCssDimensionToPixels(this$static.internalGetScrollSize());
- offsetSizeBecomesGreaterThanScrollSize = parseCssDimensionToPixels(this$static.internalGetOffsetSize()) < parseCssDimensionToPixels(this$static.internalGetScrollSize()) && newOffsetSizeIsGreaterThanScrollSize;
- if (offsetSizeBecomesGreaterThanScrollSize && this$static.scrollPos != 0) {
- this$static.offsetSizeTemporaryScrollHandler = $addScrollHandler(this$static, new ScrollbarBundle$1(this$static, px));
- $setScrollPos(this$static, 0);
- }
- else {
- $setOffsetSizeNow(this$static, px);
- }
-}
-
-function $setOffsetSizeNow(this$static, px){
- this$static.internalSetOffsetSize(max_0(0, px > 0?floor_0(px):ceil_0(px)));
- $recalculateMaxScrollPos(this$static);
- $forceScrollbar(this$static, parseCssDimensionToPixels(this$static.internalGetOffsetSize()) < parseCssDimensionToPixels(this$static.internalGetScrollSize()));
- $fireVisibilityChangeIfNeeded(this$static);
-}
-
-function $setScrollPos(this$static, px){
- var oldScrollPos;
- oldScrollPos = this$static.scrollPos;
- this$static.scrollPos = max_0(0, min_0(this$static.maxScrollPos, px > 0?floor_0(px):ceil_0(px)));
- if (!pixelValuesEqual(oldScrollPos, this$static.scrollPos)) {
- this$static.isInvisibleScrollbar && $show_1(this$static.invisibleScrollbarTemporaryResizer);
- this$static.internalSetScrollPos(this$static.scrollPos | 0);
- }
-}
-
-function $setScrollPosByDelta(this$static, delta){
- delta != 0 && $setScrollPos(this$static, this$static.scrollPos + delta);
-}
-
-function $setScrollSize(this$static, px){
- var newScrollSizeIsSmallerThanOffsetSize, scrollSizeBecomesSmallerThanOffsetSize;
- newScrollSizeIsSmallerThanOffsetSize = px <= parseCssDimensionToPixels(this$static.internalGetOffsetSize());
- scrollSizeBecomesSmallerThanOffsetSize = parseCssDimensionToPixels(this$static.internalGetOffsetSize()) < parseCssDimensionToPixels(this$static.internalGetScrollSize()) && newScrollSizeIsSmallerThanOffsetSize;
- if (scrollSizeBecomesSmallerThanOffsetSize && this$static.scrollPos != 0) {
- this$static.scrollSizeTemporaryScrollHandler = $addScrollHandler(this$static, new ScrollbarBundle$2(this$static, px));
- $setScrollPos(this$static, 0);
- }
- else {
- $setScrollSizeNow(this$static, px);
- }
-}
-
-function $setScrollSizeNow(this$static, px){
- this$static.internalSetScrollSize(0 > px?0:px);
- $recalculateMaxScrollPos(this$static);
- $forceScrollbar(this$static, parseCssDimensionToPixels(this$static.internalGetOffsetSize()) < parseCssDimensionToPixels(this$static.internalGetScrollSize()));
- $fireVisibilityChangeIfNeeded(this$static);
-}
-
-function $setScrollbarThickness(this$static, px){
- this$static.isInvisibleScrollbar = px == 0;
- if (this$static.isInvisibleScrollbar) {
- sinkEvents_0(this$static.root, 16384);
- $clinit_DOM();
- setEventListener(this$static.root, new ScrollbarBundle$3(this$static));
- }
- else {
- sinkEvents_0(this$static.root, 0);
- $clinit_DOM();
- setEventListener(this$static.root, null);
- }
- this$static.internalSetScrollbarThickness(1 > px?1:px);
-}
-
-function $showsScrollHandle(this$static){
- return parseCssDimensionToPixels(this$static.internalGetOffsetSize()) < parseCssDimensionToPixels(this$static.internalGetScrollSize());
-}
-
-function $updateScrollPosFromDom(this$static){
- var newScrollPos;
- newScrollPos = this$static.internalGetScrollPos();
- this$static.scrollPos = newScrollPos;
- $scheduleEvent(this$static.scrollEventFirer);
-}
-
-function ScrollbarBundle(){
- this.root = ($clinit_DOM() , $createDivElement($doc));
- this.scrollSizeElement = $createDivElement($doc);
- this.invisibleScrollbarTemporaryResizer = new ScrollbarBundle$TemporaryResizer(this);
- this.scrollEventFirer = new ScrollbarBundle$ScrollEventFirer(this);
- $appendChild(this.root, this.scrollSizeElement);
- this.root.style['display'] = ($clinit_Style$Display() , 'none');
- $setTabIndex(this.root, -1);
-}
-
-function parseCssDimensionToPixels(size_0){
- return !size_0.length?0:__parseAndValidateDouble(__substr(size_0, 0, size_0.length - 2));
-}
-
-defineClass(159, 1, {});
-_.getElement = function(){
- return this.root;
-}
-;
-_.updateScrollPosFromDom = function(){
- $updateScrollPosFromDom(this);
-}
-;
-_.isInvisibleScrollbar = false;
-_.maxScrollPos = 0;
-_.scrollHandleIsVisible = false;
-_.scrollPos = 0;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle', 159, Ljava_lang_Object_2_classLit);
-function ScrollbarBundle$1(this$0, val$px){
- this.this$01 = this$0;
- this.val$px2 = val$px;
-}
-
-defineClass(277, 1, $intern_41, ScrollbarBundle$1);
-_.onScroll = function(event_0){
- $setOffsetSizeNow(this.this$01, this.val$px2);
- $removeHandler(this.this$01.offsetSizeTemporaryScrollHandler.real);
- this.this$01.offsetSizeTemporaryScrollHandler = null;
-}
-;
-_.val$px2 = 0;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$1_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/1', 277, Ljava_lang_Object_2_classLit);
-function ScrollbarBundle$2(this$0, val$px){
- this.this$01 = this$0;
- this.val$px2 = val$px;
-}
-
-defineClass(278, 1, $intern_41, ScrollbarBundle$2);
-_.onScroll = function(event_0){
- $setScrollSizeNow(this.this$01, this.val$px2);
- $removeHandler(this.this$01.scrollSizeTemporaryScrollHandler.real);
- this.this$01.scrollSizeTemporaryScrollHandler = null;
-}
-;
-_.val$px2 = 0;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$2_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/2', 278, Ljava_lang_Object_2_classLit);
-function ScrollbarBundle$3(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(279, 1, {20:1}, ScrollbarBundle$3);
-_.onBrowserEvent = function(event_0){
- $show_1(this.this$01.invisibleScrollbarTemporaryResizer);
-}
-;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$3_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/3', 279, Ljava_lang_Object_2_classLit);
-function $setStylePrimaryName(this$static, primaryStyleName){
- $setClassName(this$static.root, primaryStyleName + '-scroller');
- $addClassName(this$static.root, primaryStyleName + '-scroller-horizontal');
-}
-
-function ScrollbarBundle$HorizontalScrollbarBundle(){
- ScrollbarBundle.call(this);
-}
-
-defineClass(273, 159, {}, ScrollbarBundle$HorizontalScrollbarBundle);
-_.internalForceScrollbar = function(enable){
- enable?(this.root.style['overflowX'] = ($clinit_Style$Overflow() , 'scroll') , undefined):$setPropertyImpl(this.root.style, 'overflowX', '');
-}
-;
-_.internalGetOffsetSize = function(){
- return $getProperty(this.root.style, 'width');
-}
-;
-_.internalGetScrollPos = function(){
- return $getScrollLeft(this.root);
-}
-;
-_.internalGetScrollSize = function(){
- return $getProperty(this.scrollSizeElement.style, 'width');
-}
-;
-_.internalGetScrollbarThickness = function(){
- return $getProperty(this.root.style, 'height');
-}
-;
-_.internalSetOffsetSize = function(px){
- this.root.style['width'] = px + ($clinit_Style$Unit() , 'px');
-}
-;
-_.internalSetScrollPos = function(px){
- $setScrollLeft(this.root, px);
-}
-;
-_.internalSetScrollSize = function(px){
- this.scrollSizeElement.style['width'] = px + ($clinit_Style$Unit() , 'px');
-}
-;
-_.internalSetScrollbarThickness = function(px){
- this.root.style['height'] = px + ($clinit_Style$Unit() , 'px');
- this.scrollSizeElement.style['height'] = px + 'px';
-}
-;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$HorizontalScrollbarBundle_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/HorizontalScrollbarBundle', 273, Lcom_vaadin_client_widget_escalator_ScrollbarBundle_2_classLit);
-function $scheduleEvent(this$static){
- if (!this$static.isBeingFired) {
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), this$static.fireEventCommand);
- this$static.isBeingFired = true;
- }
-}
-
-function ScrollbarBundle$ScrollEventFirer(this$0){
- this.this$01 = this$0;
- this.fireEventCommand = new ScrollbarBundle$ScrollEventFirer$1(this);
-}
-
-defineClass(269, 1, {}, ScrollbarBundle$ScrollEventFirer);
-_.isBeingFired = false;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$ScrollEventFirer_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/ScrollEventFirer', 269, Ljava_lang_Object_2_classLit);
-function ScrollbarBundle$ScrollEventFirer$1(this$1){
- this.this$11 = this$1;
-}
-
-defineClass(274, 1, {}, ScrollbarBundle$ScrollEventFirer$1);
-_.execute_1 = function(){
- $updateScrollPosFromDom(this.this$11.this$01);
- $fireEvent($getHandlerManager(this.this$11.this$01), new ScrollEvent);
- this.this$11.isBeingFired = false;
-}
-;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$ScrollEventFirer$1_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/ScrollEventFirer/1', 274, Ljava_lang_Object_2_classLit);
-function $show_1(this$static){
- this$static.this$01.internalSetScrollbarThickness(13);
- $schedule(this$static.timer, 1000);
-}
-
-function ScrollbarBundle$TemporaryResizer(this$0){
- this.this$01 = this$0;
- this.timer = new ScrollbarBundle$TemporaryResizer$1(this);
-}
-
-defineClass(270, 1, {}, ScrollbarBundle$TemporaryResizer);
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$TemporaryResizer_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/TemporaryResizer', 270, Ljava_lang_Object_2_classLit);
-function ScrollbarBundle$TemporaryResizer$1(this$1){
- this.this$11 = this$1;
- Timer.call(this);
-}
-
-defineClass(275, 45, {}, ScrollbarBundle$TemporaryResizer$1);
-_.run = function(){
- this.this$11.this$01.internalSetScrollbarThickness(1);
-}
-;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$TemporaryResizer$1_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/TemporaryResizer/1', 275, Lcom_google_gwt_user_client_Timer_2_classLit);
-function $setStylePrimaryName_0(this$static, primaryStyleName){
- $setClassName(this$static.root, primaryStyleName + '-scroller');
- $addClassName(this$static.root, primaryStyleName + '-scroller-vertical');
-}
-
-function ScrollbarBundle$VerticalScrollbarBundle(){
- ScrollbarBundle.call(this);
-}
-
-defineClass(272, 159, {}, ScrollbarBundle$VerticalScrollbarBundle);
-_.internalForceScrollbar = function(enable){
- enable?(this.root.style['overflowY'] = ($clinit_Style$Overflow() , 'scroll') , undefined):$setPropertyImpl(this.root.style, 'overflowY', '');
-}
-;
-_.internalGetOffsetSize = function(){
- return $getProperty(this.root.style, 'height');
-}
-;
-_.internalGetScrollPos = function(){
- return $getSubPixelScrollTop(this.root) | 0;
-}
-;
-_.internalGetScrollSize = function(){
- return $getProperty(this.scrollSizeElement.style, 'height');
-}
-;
-_.internalGetScrollbarThickness = function(){
- return $getProperty(this.root.style, 'width');
-}
-;
-_.internalSetOffsetSize = function(px){
- this.root.style['height'] = px + ($clinit_Style$Unit() , 'px');
-}
-;
-_.internalSetScrollPos = function(px){
- $setScrollTop(this.root, px);
-}
-;
-_.internalSetScrollSize = function(px){
- this.scrollSizeElement.style['height'] = px + ($clinit_Style$Unit() , 'px');
-}
-;
-_.internalSetScrollbarThickness = function(px){
- this.root.style['width'] = px + ($clinit_Style$Unit() , 'px');
- this.scrollSizeElement.style['width'] = px + 'px';
-}
-;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$VerticalScrollbarBundle_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/VerticalScrollbarBundle', 272, Lcom_vaadin_client_widget_escalator_ScrollbarBundle_2_classLit);
-function $clinit_ScrollbarBundle$VisibilityChangeEvent(){
- $clinit_ScrollbarBundle$VisibilityChangeEvent = emptyMethod;
- TYPE_7 = new ScrollbarBundle$VisibilityChangeEvent$1;
-}
-
-function ScrollbarBundle$VisibilityChangeEvent(){
- $clinit_ScrollbarBundle$VisibilityChangeEvent();
-}
-
-defineClass(271, 556, {}, ScrollbarBundle$VisibilityChangeEvent);
-_.dispatch = function(handler){
- $applyHeightByRows(dynamicCast(handler, 589).this$01);
-}
-;
-_.getAssociatedType = function(){
- return TYPE_7;
-}
-;
-var TYPE_7;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$VisibilityChangeEvent_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/VisibilityChangeEvent', 271, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function ScrollbarBundle$VisibilityChangeEvent$1(){
- GwtEvent$Type.call(this);
-}
-
-defineClass(276, 35, {}, ScrollbarBundle$VisibilityChangeEvent$1);
-_.toString$ = function(){
- return 'VisibilityChangeEvent';
-}
-;
-var Lcom_vaadin_client_widget_escalator_ScrollbarBundle$VisibilityChangeEvent$1_2_classLit = createForClass('com.vaadin.client.widget.escalator', 'ScrollbarBundle/VisibilityChangeEvent/1', 276, Lcom_google_gwt_event_shared_GwtEvent$Type_2_classLit);
-function $set_0(this$static, columnIndex, column){
- this$static.columnIndex = columnIndex;
- this$static.column = column;
-}
-
-function CellReference(rowReference){
- this.rowReference = rowReference;
-}
-
-defineClass(134, 1, {}, CellReference);
-_.columnIndex = 0;
-var Lcom_vaadin_client_widget_grid_CellReference_2_classLit = createForClass('com.vaadin.client.widget.grid', 'CellReference', 134, Ljava_lang_Object_2_classLit);
-function $clinit_DataAvailableEvent(){
- $clinit_DataAvailableEvent = emptyMethod;
- TYPE_8 = new GwtEvent$Type;
-}
-
-function DataAvailableEvent(rowsAvailable){
- $clinit_DataAvailableEvent();
- this.rowsAvailable = rowsAvailable;
-}
-
-defineClass(174, 556, {}, DataAvailableEvent);
-_.dispatch = function(handler){
- dynamicCast(handler, 198).onDataAvailable(this);
-}
-;
-_.getAssociatedType = function(){
- return TYPE_8;
-}
-;
-var TYPE_8;
-var Lcom_vaadin_client_widget_grid_DataAvailableEvent_2_classLit = createForClass('com.vaadin.client.widget.grid', 'DataAvailableEvent', 174, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function $set_1(this$static, targetCell){
- var column, row;
- row = targetCell.row;
- column = targetCell.column;
- $set_3(this$static.rowReference, row, this$static.grid.dataSource_0.getRow(row));
- $set_0(this$static, column, $getColumn(this$static.grid, column));
- this$static.element = targetCell.element;
-}
-
-function EventCellReference(grid){
- CellReference.call(this, new RowReference);
- this.grid = grid;
-}
-
-defineClass(409, 134, {}, EventCellReference);
-var Lcom_vaadin_client_widget_grid_EventCellReference_2_classLit = createForClass('com.vaadin.client.widget.grid', 'EventCellReference', 409, Lcom_vaadin_client_widget_grid_CellReference_2_classLit);
-function $set_2(this$static, cell, column){
- this$static.cell = cell;
- $set_0(this$static, cell.column, column);
-}
-
-function RendererCellReference(rowReference){
- CellReference.call(this, rowReference);
-}
-
-defineClass(415, 134, {}, RendererCellReference);
-var Lcom_vaadin_client_widget_grid_RendererCellReference_2_classLit = createForClass('com.vaadin.client.widget.grid', 'RendererCellReference', 415, Lcom_vaadin_client_widget_grid_CellReference_2_classLit);
-function $set_3(this$static, rowIndex, row){
- this$static.rowIndex = rowIndex;
- this$static.row = row;
-}
-
-function RowReference(){
-}
-
-defineClass(172, 1, {}, RowReference);
-_.rowIndex = 0;
-var Lcom_vaadin_client_widget_grid_RowReference_2_classLit = createForClass('com.vaadin.client.widget.grid', 'RowReference', 172, Ljava_lang_Object_2_classLit);
-function ListDataSource(datasource){
- if (!datasource) {
- throw new IllegalArgumentException_0('datasource cannot be null');
- }
- this.ds = new ArrayList_1(datasource);
- new ListDataSource$ListWrapper(this);
-}
-
-defineClass(162, 1, {}, ListDataSource);
-_.ensureAvailability = function(firstRowIndex, numberOfRows){
- if (firstRowIndex >= this.ds.array.length) {
- throw new IllegalStateException_0('Trying to fetch rows outside of array');
- }
- $dataAvailable(this.changeHandler, firstRowIndex, numberOfRows);
-}
-;
-_.getHandle = function(row){
- return new ListDataSource$RowHandleImpl(row);
-}
-;
-_.getRow = function(rowIndex){
- return $get_6(this.ds, rowIndex);
-}
-;
-_.indexOf_0 = function(row){
- return $indexOf_3(this.ds, row, 0);
-}
-;
-_.setDataChangeHandler = function(dataChangeHandler){
- this.changeHandler = dataChangeHandler;
-}
-;
-_.size_2 = function(){
- return this.ds.array.length;
-}
-;
-var Lcom_vaadin_client_widget_grid_datasources_ListDataSource_2_classLit = createForClass('com.vaadin.client.widget.grid.datasources', 'ListDataSource', 162, Ljava_lang_Object_2_classLit);
-function $contains(this$static, o){
- return $contains(this$static, o);
-}
-
-function $toArray(this$static, a){
- return $toArray(this$static, a);
-}
-
-function ListDataSource$ListWrapper(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(302, 1, $intern_42, ListDataSource$ListWrapper);
-_.add_1 = function(e){
- if ($add_6(this.this$01.ds, e)) {
- !!this.this$01.changeHandler && $dataAdded(this.this$01.changeHandler, this.this$01.ds.array.length - 1);
- return true;
- }
- return false;
-}
-;
-_.contains_0 = function(o){
- return $contains(this, o);
-}
-;
-_.get_0 = function(index_0){
- return $get_6(this.this$01.ds, index_0);
-}
-;
-_.indexOf_0 = function(o){
- return $indexOf_3(this.this$01.ds, o, 0);
-}
-;
-_.isEmpty = function(){
- return this.this$01.ds.array.length == 0;
-}
-;
-_.iterator_0 = function(){
- return new ListDataSource$ListWrapperIterator(new AbstractList$IteratorImpl(this.this$01.ds));
-}
-;
-_.listIterator = function(){
- throw new UnsupportedOperationException_0('List iterators not supported at this time.');
-}
-;
-_.listIterator_0 = function(index_0){
- throw new UnsupportedOperationException_0('List iterators not supported at this time.');
-}
-;
-_.remove_1 = function(o){
- var index_0;
- index_0 = $indexOf_3(this.this$01.ds, o, 0);
- if ($remove_7(this.this$01.ds, o)) {
- !!this.this$01.changeHandler && $dataRemoved(this.this$01.changeHandler, index_0);
- return true;
- }
- return false;
-}
-;
-_.size_2 = function(){
- return this.this$01.ds.array.length;
-}
-;
-_.toArray = function(){
- return $toArray_1(this.this$01.ds);
-}
-;
-_.toArray_0 = function(a){
- return $toArray(this, a);
-}
-;
-var Lcom_vaadin_client_widget_grid_datasources_ListDataSource$ListWrapper_2_classLit = createForClass('com.vaadin.client.widget.grid.datasources', 'ListDataSource/ListWrapper', 302, Ljava_lang_Object_2_classLit);
-function ListDataSource$ListWrapperIterator(iterator){
- this.iterator = iterator;
-}
-
-defineClass(303, 1, {}, ListDataSource$ListWrapperIterator);
-_.hasNext = function(){
- return $hasNext_0(this.iterator);
-}
-;
-_.next_0 = function(){
- return $next_2(this.iterator);
-}
-;
-_.remove_0 = function(){
- throw new UnsupportedOperationException_0('Iterator.remove() is not supported by this iterator.');
-}
-;
-var Lcom_vaadin_client_widget_grid_datasources_ListDataSource$ListWrapperIterator_2_classLit = createForClass('com.vaadin.client.widget.grid.datasources', 'ListDataSource/ListWrapperIterator', 303, Ljava_lang_Object_2_classLit);
-function ListDataSource$RowHandleImpl(row){
- this.row = row;
-}
-
-defineClass(112, 79, {79:1, 112:1}, ListDataSource$RowHandleImpl);
-_.equalsExplicit = function(obj){
- var rhi;
- if (instanceOf(obj, 112)) {
- rhi = dynamicCast(obj, 112);
- return equals(this.row, rhi.row);
- }
- else {
- return false;
- }
-}
-;
-_.getRow_0 = function(){
- return this.row;
-}
-;
-_.hashCodeExplicit = function(){
- return hashCode__I__devirtual$(this.row);
-}
-;
-_.pin = function(){
-}
-;
-_.unpin = function(){
-}
-;
-var Lcom_vaadin_client_widget_grid_datasources_ListDataSource$RowHandleImpl_2_classLit = createForClass('com.vaadin.client.widget.grid.datasources', 'ListDataSource/RowHandleImpl', 112, Lcom_vaadin_client_data_DataSource$RowHandle_2_classLit);
-function $dispatch_1(this$static, handler){
- var container, section, target, targetElement;
- target = $getEventTarget(this$static.nativeEvent);
- if (!is_0(target)) {
- return;
- }
- targetElement = target;
- if ($isElementInChildWidget(this$static.grid, targetElement)) {
- return;
- }
- container = $findRowContainer(this$static.grid.escalator, targetElement);
- if (!container) {
- return;
- }
- section = ($clinit_Grid$Section() , FOOTER);
- container == this$static.grid.escalator.header?(section = HEADER):container == this$static.grid.escalator.body_0 && (section = BODY);
- this$static.doDispatch(handler, section);
-}
-
-function Grid$AbstractGridMouseEvent(grid, targetCell){
- this.associatedType = new DomEvent$Type(this.getBrowserEventType(), this);
- this.grid = grid;
- this.targetCell = targetCell;
-}
-
-defineClass(155, 562, {});
-_.dispatch = function(handler){
- $dispatch_1(this, dynamicCast(handler, 584));
-}
-;
-_.getAssociatedType_0 = function(){
- return this.associatedType;
-}
-;
-var Lcom_vaadin_client_widgets_Grid$AbstractGridMouseEvent_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/AbstractGridMouseEvent', 155, Lcom_google_gwt_event_dom_client_MouseEvent_2_classLit);
-function GridClickEvent(grid, targetCell){
- Grid$AbstractGridMouseEvent.call(this, grid, targetCell);
-}
-
-defineClass(413, 155, {}, GridClickEvent);
-_.doDispatch = function(handler, section){
- var row;
- (section == ($clinit_Grid$Section() , BODY) && !!handler || section == HEADER && false || section == FOOTER && false) && (row = this.targetCell.rowReference.row , $isSelected_0(handler.this$01.grid, row) || $select_4(handler.this$01.grid, row) , undefined);
-}
-;
-_.getBrowserEventType = function(){
- return 'click';
-}
-;
-var Lcom_vaadin_client_widget_grid_events_GridClickEvent_2_classLit = createForClass('com.vaadin.client.widget.grid.events', 'GridClickEvent', 413, Lcom_vaadin_client_widgets_Grid$AbstractGridMouseEvent_2_classLit);
-function $doDispatch(section){
- (section == ($clinit_Grid$Section() , BODY) && false || section == HEADER && false || section == FOOTER && false) && null.nullMethod();
-}
-
-function GridDoubleClickEvent(grid, targetCell){
- Grid$AbstractGridMouseEvent.call(this, grid, targetCell);
-}
-
-defineClass(414, 155, {}, GridDoubleClickEvent);
-_.doDispatch = function(handler, section){
- $doDispatch((throwClassCastExceptionUnlessNull(handler) , section));
-}
-;
-_.getBrowserEventType = function(){
- return 'dblclick';
-}
-;
-var Lcom_vaadin_client_widget_grid_events_GridDoubleClickEvent_2_classLit = createForClass('com.vaadin.client.widget.grid.events', 'GridDoubleClickEvent', 414, Lcom_vaadin_client_widgets_Grid$AbstractGridMouseEvent_2_classLit);
-function $dispatch_2(this$static, handler){
- var container, section, target;
- target = $getEventTarget(this$static.nativeEvent);
- if (is_0(target) && !$isElementInChildWidget(this$static.grid, target)) {
- section = ($clinit_Grid$Section() , FOOTER);
- container = this$static.grid.cellFocusHandler.containerWithFocus;
- container == this$static.grid.escalator.header?(section = HEADER):container == this$static.grid.escalator.body_0 && (section = BODY);
- this$static.doDispatch_0(handler, section);
- }
-}
-
-function Grid$AbstractGridKeyEvent(grid, targetCell){
- this.associatedType = new DomEvent$Type(this.getBrowserEventType(), this);
- this.grid = grid;
- this.targetCell = targetCell;
-}
-
-defineClass(120, 560, {});
-_.dispatch = function(handler){
- $dispatch_2(this, dynamicCast(handler, 197));
-}
-;
-_.getAssociatedType_0 = function(){
- return this.associatedType;
-}
-;
-var Lcom_vaadin_client_widgets_Grid$AbstractGridKeyEvent_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/AbstractGridKeyEvent', 120, Lcom_google_gwt_event_dom_client_KeyEvent_2_classLit);
-function $doDispatch_0(this$static, handler, section){
- (section == ($clinit_Grid$Section() , BODY) && !!handler || section == HEADER && false || section == FOOTER && false) && $onKeyDown(handler, this$static);
-}
-
-function GridKeyDownEvent(grid, targetCell){
- Grid$AbstractGridKeyEvent.call(this, grid, targetCell);
-}
-
-defineClass(410, 120, {}, GridKeyDownEvent);
-_.doDispatch_0 = function(handler, section){
- $doDispatch_0(this, dynamicCast(handler, 588), section);
-}
-;
-_.getBrowserEventType = function(){
- return 'keydown';
-}
-;
-var Lcom_vaadin_client_widget_grid_events_GridKeyDownEvent_2_classLit = createForClass('com.vaadin.client.widget.grid.events', 'GridKeyDownEvent', 410, Lcom_vaadin_client_widgets_Grid$AbstractGridKeyEvent_2_classLit);
-function $doDispatch_1(section){
- (section == ($clinit_Grid$Section() , BODY) && false || section == HEADER && false || section == FOOTER && false) && null.nullMethod();
-}
-
-function GridKeyPressEvent(grid, targetCell){
- Grid$AbstractGridKeyEvent.call(this, grid, targetCell);
-}
-
-defineClass(412, 120, {}, GridKeyPressEvent);
-_.doDispatch_0 = function(handler, section){
- $doDispatch_1((throwClassCastExceptionUnlessNull(handler) , section));
-}
-;
-_.getBrowserEventType = function(){
- return 'keypress';
-}
-;
-var Lcom_vaadin_client_widget_grid_events_GridKeyPressEvent_2_classLit = createForClass('com.vaadin.client.widget.grid.events', 'GridKeyPressEvent', 412, Lcom_vaadin_client_widgets_Grid$AbstractGridKeyEvent_2_classLit);
-function $doDispatch_2(this$static, handler, section){
- (section == ($clinit_Grid$Section() , BODY) && instanceOf(handler, 592) || section == HEADER && instanceOf(handler, 587) || section == FOOTER && false) && handler.onKeyUp(this$static);
-}
-
-function GridKeyUpEvent(grid, targetCell){
- Grid$AbstractGridKeyEvent.call(this, grid, targetCell);
-}
-
-defineClass(411, 120, {}, GridKeyUpEvent);
-_.doDispatch_0 = function(handler, section){
- $doDispatch_2(this, dynamicCast(handler, 533), section);
-}
-;
-_.getBrowserEventType = function(){
- return 'keyup';
-}
-;
-var Lcom_vaadin_client_widget_grid_events_GridKeyUpEvent_2_classLit = createForClass('com.vaadin.client.widget.grid.events', 'GridKeyUpEvent', 411, Lcom_vaadin_client_widgets_Grid$AbstractGridKeyEvent_2_classLit);
-function $clinit_ScrollEvent(){
- $clinit_ScrollEvent = emptyMethod;
- TYPE_9 = new GwtEvent$Type;
-}
-
-function ScrollEvent(){
- $clinit_ScrollEvent();
-}
-
-defineClass(135, 556, {}, ScrollEvent);
-_.dispatch = function(handler){
- dynamicCast(handler, 146).onScroll(this);
-}
-;
-_.getAssociatedType = function(){
- return TYPE_9;
-}
-;
-var TYPE_9;
-var Lcom_vaadin_client_widget_grid_events_ScrollEvent_2_classLit = createForClass('com.vaadin.client.widget.grid.events', 'ScrollEvent', 135, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function $clinit_SelectAllEvent(){
- $clinit_SelectAllEvent = emptyMethod;
- TYPE_10 = new GwtEvent$Type;
-}
-
-function SelectAllEvent(){
- $clinit_SelectAllEvent();
-}
-
-defineClass(498, 556, {}, SelectAllEvent);
-_.dispatch = function(handler){
- throwClassCastExceptionUnlessNull(handler);
- null.nullMethod();
-}
-;
-_.getAssociatedType = function(){
- return TYPE_10;
-}
-;
-var TYPE_10;
-var Lcom_vaadin_client_widget_grid_events_SelectAllEvent_2_classLit = createForClass('com.vaadin.client.widget.grid.events', 'SelectAllEvent', 498, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-defineClass(566, 1, {});
-var Lcom_vaadin_client_widget_grid_selection_AbstractRowHandleSelectionModel_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'AbstractRowHandleSelectionModel', 566, Ljava_lang_Object_2_classLit);
-function ClickSelectHandler(grid){
- this.grid = grid;
- this.clickHandler = $addBodyClickHandler(grid, new ClickSelectHandler$RowClickHandler(this));
-}
-
-defineClass(487, 1, {}, ClickSelectHandler);
-var Lcom_vaadin_client_widget_grid_selection_ClickSelectHandler_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'ClickSelectHandler', 487, Ljava_lang_Object_2_classLit);
-function ClickSelectHandler$RowClickHandler(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(488, 1, {22:1, 584:1}, ClickSelectHandler$RowClickHandler);
-var Lcom_vaadin_client_widget_grid_selection_ClickSelectHandler$RowClickHandler_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'ClickSelectHandler/RowClickHandler', 488, Ljava_lang_Object_2_classLit);
-function $destroy(this$static){
- !!this$static.nativePreviewHandlerRegistration && $removeNativeHandler(this$static);
-}
-
-function $getBodyClientTop(this$static){
- return $getClientTop($getElement(this$static.grid)) + (($getTheadElement(this$static).offsetHeight || 0) | 0);
-}
-
-function $getClientTop(e){
- var cursor, top_0;
- cursor = e;
- top_0 = 0;
- while (cursor) {
- top_0 += (cursor.offsetTop || 0) | 0;
- cursor = cursor.offsetParent;
- }
- return top_0;
-}
-
-function $getConsumedEvents(){
- var events;
- events = new HashSet;
- $add_7(events, 'mousedown');
- $add_7(events, 'touchstart');
- return events;
-}
-
-function $getLogicalRowIndex(this$static, target){
- var checkbox, tbody, td, tr;
- if (!target) {
- return -1;
- }
- tbody = $getTbodyElement(this$static);
- tr = $getFirstChildElement_0(($clinit_DOMImpl() , tbody));
- while (tr) {
- if (impl_0.isOrHasChild(tr, target)) {
- td = $getFirstChildElement_0(tr);
- checkbox = $getFirstChildElement_0(td);
- return $getPropertyInt(checkbox, 'vEscalatorLogicalRow');
- }
- tr = $getNextSiblingElement(tr);
- }
- return -1;
-}
-
-function $getTableElement(this$static){
- var root, tablewrapper;
- root = $getElement(this$static.grid);
- tablewrapper = root.childNodes[2];
- return tablewrapper?$getFirstChildElement_0(($clinit_DOMImpl() , tablewrapper)):null;
-}
-
-function $getTbodyElement(this$static){
- var table;
- table = $getTableElement(this$static);
- return table?table.tBodies[0]:null;
-}
-
-function $getTfootElement(this$static){
- var table;
- table = $getTableElement(this$static);
- return table?table.tFoot:null;
-}
-
-function $getTheadElement(this$static){
- var table;
- table = $getTableElement(this$static);
- return table?table.tHead:null;
-}
-
-function $init(cell){
- var checkbox;
- checkbox = ($clinit_DOM() , $createCheckInputElement($doc));
- $removeAllChildren(cell.cell.element);
- $appendChild(cell.cell.element, checkbox);
-}
-
-function $isSelected(this$static, logicalRow){
- return $isSelected_0(this$static.grid, this$static.grid.dataSource_0.getRow(logicalRow));
-}
-
-function $onBrowserEvent_0(this$static, event_0){
- var logicalRowIndex;
- if ($equals_2('touchstart', ($clinit_DOMImpl() , event_0).type) || $equals_2('mousedown', event_0.type) && $eventGetButton(event_0) == 1) {
- $removeNativeHandler(this$static);
- this$static.nativePreviewHandlerRegistration = addNativePreviewHandler(new MultiSelectionRenderer$TouchEventHandler(this$static));
- logicalRowIndex = $getLogicalRowIndex(this$static, impl_0.eventGetTarget(event_0));
- $start(this$static.autoScrollHandler, logicalRowIndex);
- $eventPreventDefault(event_0);
- $eventStopPropagation(event_0);
- return true;
- }
- else {
- throw new IllegalStateException_0('received unexpected event: ' + event_0.type);
- }
-}
-
-function $removeNativeHandler(this$static){
- if (this$static.nativePreviewHandlerRegistration) {
- $removeHandler(this$static.nativePreviewHandlerRegistration.real);
- this$static.nativePreviewHandlerRegistration = null;
- }
-}
-
-function $render(cell, data_0){
- var checkbox;
- checkbox = $getFirstChildElement(cell.cell.element);
- $setChecked(checkbox, data_0.value_0);
- $setPropertyInt(checkbox, 'vEscalatorLogicalRow', cell.rowReference.rowIndex);
-}
-
-function $render_0(cell, data_0){
- $render(cell, dynamicCast(data_0, 42));
-}
-
-function $setSelected(this$static, logicalRow, select){
- var row;
- row = this$static.grid.dataSource_0.getRow(logicalRow);
- select?$select_4(this$static.grid, row):$deselect_1(this$static.grid, row);
-}
-
-function MultiSelectionRenderer(grid){
- this.autoScrollHandler = new MultiSelectionRenderer$AutoScrollHandler(this);
- this.grid = grid;
-}
-
-defineClass(491, 51, {51:1}, MultiSelectionRenderer);
-_.render = function(cell, data_0){
- $render_0(cell, data_0);
-}
-;
-var Lcom_vaadin_client_widget_grid_selection_MultiSelectionRenderer_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'MultiSelectionRenderer', 491, Lcom_vaadin_client_renderers_ComplexRenderer_2_classLit);
-function $getScrollCompensation(this$static){
- var cursor, scroll_0;
- cursor = ($clinit_DOM() , this$static.this$01.grid.element);
- scroll_0 = 0;
- while (cursor) {
- scroll_0 -= $getSubPixelScrollTop(cursor) | 0;
- cursor = $getParentElement_0(($clinit_DOMImpl() , cursor));
- }
- return scroll_0;
-}
-
-function $start(this$static, logicalRowIndex){
- var batchedModel, model;
- model = this$static.this$01.grid.selectionModel;
- if (instanceOf(model, 147)) {
- batchedModel = dynamicCast(model, 147);
- batchedModel.batchStarted = true;
- }
- $updateScrollBounds(this$static);
- this$static.handlerRegistration = addNativePreviewHandler(this$static.scrollPreviewHandler);
- this$static.autoScroller = new MultiSelectionRenderer$AutoScrollerAndSelector(this$static.this$01, this$static.topBound, this$static.bottomBound, this$static.gradientArea, !$isSelected(this$static.this$01, logicalRowIndex));
- $start_0(this$static.autoScroller, logicalRowIndex);
-}
-
-function $stop(this$static){
- var batchedModel, model;
- if (this$static.handlerRegistration) {
- $removeHandler(this$static.handlerRegistration.real);
- this$static.handlerRegistration = null;
- }
- if (this$static.autoScroller) {
- $stop_0(this$static.autoScroller);
- this$static.autoScroller = null;
- }
- model = this$static.this$01.grid.selectionModel;
- if (instanceOf(model, 147)) {
- batchedModel = dynamicCast(model, 147);
- $commitBatchSelect(batchedModel);
- }
- $removeNativeHandler(this$static.this$01);
-}
-
-function $updateScrollBounds(this$static){
- var adjustment, bottomBorder, scrollCompensation, topBorder;
- topBorder = $getBodyClientTop(this$static.this$01);
- bottomBorder = $getClientTop($getTfootElement(this$static.this$01)) - 1;
- scrollCompensation = $getScrollCompensation(this$static);
- this$static.topBound = scrollCompensation + topBorder + 100;
- this$static.bottomBound = scrollCompensation + bottomBorder - 100;
- this$static.gradientArea = 100;
- if (this$static.bottomBound - this$static.topBound < 50) {
- adjustment = 50 - (this$static.bottomBound - this$static.topBound);
- this$static.topBound -= adjustment / 2 | 0;
- this$static.bottomBound += adjustment / 2 | 0;
- this$static.gradientArea -= adjustment / 2 | 0;
- }
-}
-
-function MultiSelectionRenderer$AutoScrollHandler(this$0){
- this.this$01 = this$0;
- this.scrollPreviewHandler = new MultiSelectionRenderer$AutoScrollHandler$1(this);
-}
-
-defineClass(494, 1, {}, MultiSelectionRenderer$AutoScrollHandler);
-_.bottomBound = -1;
-_.gradientArea = 0;
-_.topBound = -1;
-var Lcom_vaadin_client_widget_grid_selection_MultiSelectionRenderer$AutoScrollHandler_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'MultiSelectionRenderer/AutoScrollHandler', 494, Ljava_lang_Object_2_classLit);
-function MultiSelectionRenderer$AutoScrollHandler$1(this$1){
- this.this$11 = this$1;
-}
-
-defineClass(495, 1, $intern_37, MultiSelectionRenderer$AutoScrollHandler$1);
-_.onPreviewNativeEvent = function(event_0){
- var nativeEvent, pageX, pageY;
- if (!this.this$11.autoScroller) {
- $stop(this.this$11);
- return;
- }
- nativeEvent = event_0.nativeEvent;
- switch ($getTypeInt(event_0.nativeEvent)) {
- case 64:
- case $intern_31:
- pageY = ($clinit_WidgetUtil() , $clinit_WidgetUtil() , ($clinit_DOMImpl() , nativeEvent).type.indexOf('touch') != -1?$getClientY(nativeEvent.changedTouches[0]):toInt32(nativeEvent.clientY || 0));
- pageX = (null , nativeEvent.type.indexOf('touch') != -1?$getClientX(nativeEvent.changedTouches[0]):toInt32(nativeEvent.clientX || 0));
- $updatePointerCoords(this.this$11.autoScroller, pageX, pageY);
- break;
- case 8:
- case $intern_17:
- case $intern_32:
- $stop(this.this$11);
- }
-}
-;
-var Lcom_vaadin_client_widget_grid_selection_MultiSelectionRenderer$AutoScrollHandler$1_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'MultiSelectionRenderer/AutoScrollHandler/1', 495, Ljava_lang_Object_2_classLit);
-function $doScrollAreaChecks(this$static, pageY){
- var bottomDidNotMove, oldBottomBound, oldTopBound, topDidNotMove, wasVerticalMovement;
- if (this$static.topBound == -1) {
- this$static.topBound = min_1(this$static.finalTopBound, pageY);
- this$static.bottomBound = max_1(this$static.finalBottomBound, pageY);
- }
- else {
- oldTopBound = this$static.topBound;
- this$static.topBound < this$static.finalTopBound && (this$static.topBound = max_1(this$static.topBound, min_1(this$static.finalTopBound, pageY)));
- oldBottomBound = this$static.bottomBound;
- this$static.bottomBound > this$static.finalBottomBound && (this$static.bottomBound = min_1(this$static.bottomBound, max_1(this$static.finalBottomBound, pageY)));
- topDidNotMove = oldTopBound == this$static.topBound;
- bottomDidNotMove = oldBottomBound == this$static.bottomBound;
- wasVerticalMovement = pageY != this$static.pageY_0;
- this$static.scrollAreaShouldRebound = topDidNotMove && bottomDidNotMove && wasVerticalMovement;
- }
-}
-
-function $reboundScrollArea(this$static, timeDiff){
- var reboundPx;
- if (!this$static.scrollAreaShouldRebound) {
- return;
- }
- reboundPx = round_int(Math.ceil(0.001 * timeDiff));
- if (this$static.topBound < this$static.finalTopBound) {
- this$static.topBound += reboundPx;
- this$static.topBound = min_1(this$static.topBound, this$static.finalTopBound);
- $updateScrollSpeed(this$static, this$static.pageY_0);
- }
- else if (this$static.bottomBound > this$static.finalBottomBound) {
- this$static.bottomBound -= reboundPx;
- this$static.bottomBound = max_1(this$static.bottomBound, this$static.finalBottomBound);
- $updateScrollSpeed(this$static, this$static.pageY_0);
- }
-}
-
-function $start_0(this$static, logicalRowIndex){
- this$static.running = true;
- $setSelected(this$static.this$01, logicalRowIndex, this$static.selectionPaint);
- this$static.lastModifiedLogicalRow = logicalRowIndex;
- this$static.running && this$static.gradientArea >= 10 && (this$static.handle = (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0).requestAnimationFrame_0(this$static, $getElement(this$static.this$01.grid)));
-}
-
-function $stop_0(this$static){
- this$static.running = false;
- if (this$static.handle) {
- this$static.handle.cancel();
- this$static.handle = null;
- }
-}
-
-function $updatePointerCoords(this$static, pageX, pageY){
- $doScrollAreaChecks(this$static, pageY);
- $updateScrollSpeed(this$static, pageY);
- this$static.pageY_0 = pageY;
- this$static.initialPageX == -1 && (this$static.initialPageX = pageX);
-}
-
-function $updateScrollSpeed(this$static, pointerPageY){
- var distance, ratio;
- if (pointerPageY < this$static.topBound) {
- distance = pointerPageY - this$static.topBound;
- ratio = max_0(-1, distance / this$static.gradientArea);
- }
- else if (pointerPageY > this$static.bottomBound) {
- distance = pointerPageY - this$static.bottomBound;
- ratio = min_0(1, distance / this$static.gradientArea);
- }
- else {
- ratio = 0;
- }
- this$static.scrollSpeed = ratio * 500;
-}
-
-function MultiSelectionRenderer$AutoScrollerAndSelector(this$0, topBound, bottomBound, gradientArea, selectionPaint){
- this.this$01 = this$0;
- this.finalTopBound = topBound;
- this.finalBottomBound = bottomBound;
- this.gradientArea = gradientArea;
- this.selectionPaint = selectionPaint;
- this.bodyAbsoluteTop = $getClientTop($getElement(this$0.grid)) + (($getTheadElement(this$0).offsetHeight || 0) | 0);
- this.bodyAbsoluteBottom = $getClientTop($getTfootElement(this$0)) - 1;
-}
-
-defineClass(493, 1, {}, MultiSelectionRenderer$AutoScrollerAndSelector);
-_.execute = function(timestamp){
- var constrainedPageY, incrementOrDecrement, intPixelsToScroll, logicalRow, timeDiff;
- timeDiff = timestamp - this.prevTimestamp;
- this.prevTimestamp = timestamp;
- $reboundScrollArea(this, timeDiff);
- this.pixelsToScroll += this.scrollSpeed * (timeDiff / 1000);
- intPixelsToScroll = round_int(this.pixelsToScroll);
- this.pixelsToScroll -= intPixelsToScroll;
- intPixelsToScroll != 0 && $setScrollTop_1(this.this$01.grid, this.this$01.grid.escalator.verticalScrollbar.scrollPos + intPixelsToScroll);
- constrainedPageY = max_1(this.bodyAbsoluteTop, min_1(this.bodyAbsoluteBottom, this.pageY_0));
- logicalRow = $getLogicalRowIndex(this.this$01, getElementFromPoint(this.initialPageX, constrainedPageY));
- incrementOrDecrement = logicalRow > this.lastModifiedLogicalRow?1:-1;
- while (logicalRow != -1 && this.lastModifiedLogicalRow != logicalRow) {
- this.lastModifiedLogicalRow += incrementOrDecrement;
- $setSelected(this.this$01, this.lastModifiedLogicalRow, this.selectionPaint);
- }
- this.running && this.gradientArea >= 10 && (this.handle = (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0).requestAnimationFrame_0(this, $getElement(this.this$01.grid)));
-}
-;
-_.bodyAbsoluteBottom = 0;
-_.bodyAbsoluteTop = 0;
-_.bottomBound = -1;
-_.finalBottomBound = 0;
-_.finalTopBound = 0;
-_.gradientArea = 0;
-_.initialPageX = -1;
-_.lastModifiedLogicalRow = -1;
-_.pageY_0 = 0;
-_.pixelsToScroll = 0;
-_.prevTimestamp = 0;
-_.running = false;
-_.scrollAreaShouldRebound = false;
-_.scrollSpeed = 0;
-_.selectionPaint = false;
-_.topBound = -1;
-var Lcom_vaadin_client_widget_grid_selection_MultiSelectionRenderer$AutoScrollerAndSelector_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'MultiSelectionRenderer/AutoScrollerAndSelector', 493, Ljava_lang_Object_2_classLit);
-function $isInFirstColumn(this$static, element){
- var cursor, tbody, tr;
- if (!element) {
- return false;
- }
- tbody = $getTbodyElement(this$static.this$01);
- if (!tbody || !($clinit_DOMImpl() , impl_0).isOrHasChild(tbody, element)) {
- return false;
- }
- cursor = element;
- while (!!$getParentElement_0(($clinit_DOMImpl() , cursor)) && $getParentElement($getParentElement_0(cursor)) != tbody) {
- cursor = $getParentElement_0(cursor);
- }
- tr = $getParentElement_0(cursor);
- return $getFirstChildElement_0(tr) == cursor;
-}
-
-function MultiSelectionRenderer$TouchEventHandler(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(492, 1, $intern_37, MultiSelectionRenderer$TouchEventHandler);
-_.onPreviewNativeEvent = function(event_0){
- var targetElement;
- switch ($getTypeInt(event_0.nativeEvent)) {
- case $intern_30:
- {
- $getTouches(event_0.nativeEvent).length == 1 && $stop(this.this$01.autoScrollHandler);
- break;
- }
-
- case $intern_31:
- event_0.isCanceled = true;
- break;
- case $intern_17:
- case $intern_32:
- targetElement = $getEventTarget(event_0.nativeEvent);
- if ($isInFirstColumn(this, targetElement)) {
- $removeNativeHandler(this.this$01);
- event_0.isCanceled = true;
- }
-
- }
-}
-;
-var Lcom_vaadin_client_widget_grid_selection_MultiSelectionRenderer$TouchEventHandler_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'MultiSelectionRenderer/TouchEventHandler', 492, Ljava_lang_Object_2_classLit);
-function $clinit_SelectionEvent(){
- $clinit_SelectionEvent = emptyMethod;
- eventType_0 = new GwtEvent$Type;
-}
-
-function SelectionEvent(grid, added, removed){
- $clinit_SelectionEvent();
- this.grid = grid;
- added != null?($clinit_Collections() , new Collections$SingletonList(added)):($clinit_Collections() , $clinit_Collections() , EMPTY_LIST);
- removed != null?($clinit_Collections() , new Collections$SingletonList(removed)):($clinit_Collections() , $clinit_Collections() , EMPTY_LIST);
-}
-
-function SelectionEvent_0(grid, added, removed){
- $clinit_SelectionEvent();
- this.grid = grid;
- added?new ArrayList_1(added):($clinit_Collections() , $clinit_Collections() , EMPTY_LIST);
- removed?new ArrayList_1(removed):($clinit_Collections() , $clinit_Collections() , EMPTY_LIST);
-}
-
-defineClass(87, 556, {}, SelectionEvent, SelectionEvent_0);
-_.dispatch = function(handler){
- dynamicCast(handler, 530).onSelect_0(this);
-}
-;
-_.getAssociatedType = function(){
- return eventType_0;
-}
-;
-_.getSource = function(){
- return this.grid;
-}
-;
-var eventType_0;
-var Lcom_vaadin_client_widget_grid_selection_SelectionEvent_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'SelectionEvent', 87, Lcom_google_gwt_event_shared_GwtEvent_2_classLit);
-function $commitBatchSelect(this$static){
- var added, handle, handle$iterator, removed;
- if (!this$static.batchStarted) {
- return;
- }
- this$static.batchStarted = false;
- added = $rowHandlesToRows(this$static.selectionBatch);
- this$static.selectionBatch.map_0.clear_0();
- removed = $rowHandlesToRows(this$static.deselectionBatch);
- for (handle$iterator = $iterator(new AbstractMap$1(this$static.deselectionBatch.map_0)); handle$iterator.val$outerIter2.hasNext();) {
- handle = dynamicCast($next_3(handle$iterator), 79);
- handle.unpin();
- }
- this$static.deselectionBatch.map_0.clear_0();
- $fireEvent_0(this$static.grid, new SelectionEvent_0(this$static.grid, added, removed));
-}
-
-function $deselect(this$static, rows_0){
- var handle, removed, row, row$iterator;
- removed = new LinkedHashSet;
- for (row$iterator = new AbstractList$IteratorImpl(rows_0); row$iterator.i < row$iterator.this$01_0.size_2();) {
- row = (checkCriticalElement(row$iterator.i < row$iterator.this$01_0.size_2()) , row$iterator.this$01_0.get_0(row$iterator.last = row$iterator.i++));
- handle = this$static.grid.dataSource_0.getHandle(row);
- $deselectByHandle(this$static, handle) && $add_7(removed, row);
- }
- if (removed.map_0.size_2() > 0) {
- $fireEvent_0(this$static.grid, new SelectionEvent_0(this$static.grid, null, removed));
- return true;
- }
- return false;
-}
-
-function $deselectAll(this$static){
- var event_0, selectedRowsClone;
- if (this$static.selectedRows_0.map_0.size_2() > 0) {
- selectedRowsClone = new LinkedHashSet_0(this$static.selectedRows_0);
- event_0 = new SelectionEvent_0(this$static.grid, null, $getSelectedRows(this$static));
- this$static.selectedRows_0.map_0.clear_0();
- if (this$static.batchStarted) {
- this$static.selectionBatch.map_0.clear_0();
- this$static.deselectionBatch.map_0.clear_0();
- $addAll_0(this$static.deselectionBatch, selectedRowsClone);
- }
- $fireEvent_0(this$static.grid, event_0);
- return true;
- }
- return false;
-}
-
-function $deselectByHandle(this$static, handle){
- if ($remove_8(this$static.selectedRows_0, handle)) {
- if (this$static.batchStarted) {
- $remove_8(this$static.selectionBatch, handle);
- $add_7(this$static.deselectionBatch, handle);
- }
- else {
- handle.unpin();
- }
- return true;
- }
- return false;
-}
-
-function $getSelectedRows(this$static){
- var handle, handle$iterator, selected;
- selected = new LinkedHashSet;
- for (handle$iterator = $iterator(new AbstractMap$1(this$static.selectedRows_0.map_0)); handle$iterator.val$outerIter2.hasNext();) {
- handle = dynamicCast($next_3(handle$iterator), 79);
- $add_7(selected, handle.getRow_0());
- }
- return $clinit_Collections() , new Collections$UnmodifiableSet(selected);
-}
-
-function $isSelectedByHandle(this$static, handle){
- return $contains_2(this$static.selectedRows_0, handle);
-}
-
-function $rowHandlesToRows(rowHandles){
- var handle, handle$iterator, rows_0;
- rows_0 = new ArrayList_0(rowHandles.map_0.size_2());
- for (handle$iterator = $iterator(new AbstractMap$1(rowHandles.map_0)); handle$iterator.val$outerIter2.hasNext();) {
- handle = dynamicCast($next_3(handle$iterator), 79);
- $add_6(rows_0, handle.getRow_0());
- }
- return rows_0;
-}
-
-function $select_2(this$static, rows_0){
- var added, handle, row, row$iterator;
- added = new LinkedHashSet;
- for (row$iterator = new AbstractList$IteratorImpl(rows_0); row$iterator.i < row$iterator.this$01_0.size_2();) {
- row = (checkCriticalElement(row$iterator.i < row$iterator.this$01_0.size_2()) , row$iterator.this$01_0.get_0(row$iterator.last = row$iterator.i++));
- handle = this$static.grid.dataSource_0.getHandle(row);
- $selectByHandle(this$static, handle) && $add_7(added, row);
- }
- if (added.map_0.size_2() > 0) {
- $fireEvent_0(this$static.grid, new SelectionEvent_0(this$static.grid, added, null));
- return true;
- }
- return false;
-}
-
-function $selectByHandle(this$static, handle){
- if ($add_7(this$static.selectedRows_0, handle)) {
- handle.pin();
- if (this$static.batchStarted) {
- $remove_8(this$static.deselectionBatch, handle);
- $add_7(this$static.selectionBatch, handle);
- }
- return true;
- }
- return false;
-}
-
-function SelectionModelMulti(){
- this.selectionBatch = new LinkedHashSet;
- this.deselectionBatch = new LinkedHashSet;
- this.grid = null;
- this.renderer = null;
- this.selectedRows_0 = new LinkedHashSet;
-}
-
-defineClass(104, 566, {110:1, 147:1, 104:1}, SelectionModelMulti);
-_.getSelectedRows_0 = function(){
- return $getSelectedRows(this);
-}
-;
-_.getSelectionColumnRenderer = function(){
- return this.renderer;
-}
-;
-_.isSelected = function(row){
- return $isSelectedByHandle(this, this.grid.dataSource_0.getHandle(row));
-}
-;
-_.reset_1 = function(){
- $deselectAll(this);
-}
-;
-_.setGrid = function(grid){
- if (!!this.grid && !!grid) {
- throw new IllegalStateException_0('Selection model is already attached to a grid. Remove the selection model first from the grid and then add it.');
- }
- this.grid = grid;
- if (this.grid) {
- this.spaceSelectHandler = new SpaceSelectHandler(grid);
- this.renderer = new MultiSelectionRenderer(grid);
- }
- else {
- $removeHandler_0(this.spaceSelectHandler);
- this.spaceSelectHandler = null;
- this.renderer = null;
- }
-}
-;
-_.batchStarted = false;
-var Lcom_vaadin_client_widget_grid_selection_SelectionModelMulti_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'SelectionModelMulti', 104, Lcom_vaadin_client_widget_grid_selection_AbstractRowHandleSelectionModel_2_classLit);
-function SelectionModelNone(){
-}
-
-defineClass(449, 566, {}, SelectionModelNone);
-_.getSelectedRows_0 = function(){
- return $clinit_Collections() , $clinit_Collections() , EMPTY_SET;
-}
-;
-_.getSelectionColumnRenderer = function(){
- return null;
-}
-;
-_.isSelected = function(row){
- return false;
-}
-;
-_.reset_1 = function(){
-}
-;
-_.setGrid = function(grid){
-}
-;
-var Lcom_vaadin_client_widget_grid_selection_SelectionModelNone_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'SelectionModelNone', 449, Lcom_vaadin_client_widget_grid_selection_AbstractRowHandleSelectionModel_2_classLit);
-function $deselect_0(this$static, row){
- if (row == null) {
- throw new IllegalArgumentException_0('Row cannot be null');
- }
- if (!!this$static.selectedRow_0 && this$static.selectedRow_0.equalsExplicit(this$static.grid.dataSource_0.getHandle(row))) {
- $deselectByHandle_0(this$static, this$static.selectedRow_0);
- $fireEvent_0(this$static.grid, new SelectionEvent(this$static.grid, null, row));
- return true;
- }
- return false;
-}
-
-function $deselectByHandle_0(this$static, handle){
- if (!!handle && handle.equalsExplicit(this$static.selectedRow_0)) {
- this$static.selectedRow_0.unpin();
- this$static.selectedRow_0 = null;
- return true;
- }
- else {
- return false;
- }
-}
-
-function $getSelectedRow(this$static){
- return this$static.selectedRow_0?this$static.selectedRow_0.getRow_0():null;
-}
-
-function $select_3(this$static, row){
- var removed;
- if (row == null) {
- throw new IllegalArgumentException_0('Row cannot be null');
- }
- removed = this$static.selectedRow_0?this$static.selectedRow_0.getRow_0():null;
- if ($selectByHandle_0(this$static, this$static.grid.dataSource_0.getHandle(row))) {
- $fireEvent_0(this$static.grid, new SelectionEvent(this$static.grid, row, removed));
- return true;
- }
- return false;
-}
-
-function $selectByHandle_0(this$static, handle){
- if (!!handle && !handle.equalsExplicit(this$static.selectedRow_0)) {
- $deselectByHandle_0(this$static, this$static.selectedRow_0);
- this$static.selectedRow_0 = handle;
- this$static.selectedRow_0.pin();
- return true;
- }
- else {
- return false;
- }
-}
-
-function SelectionModelSingle(){
-}
-
-defineClass(127, 566, {96:1, 127:1}, SelectionModelSingle);
-_.getSelectedRows_0 = function(){
- if ((this.selectedRow_0?this.selectedRow_0.getRow_0():null) != null) {
- return singleton_0(this.selectedRow_0?this.selectedRow_0.getRow_0():null);
- }
- return $clinit_Collections() , $clinit_Collections() , EMPTY_SET;
-}
-;
-_.getSelectionColumnRenderer = function(){
- return null;
-}
-;
-_.isSelected = function(row){
- return !!this.selectedRow_0 && this.selectedRow_0.equalsExplicit(this.grid.dataSource_0.getHandle(row));
-}
-;
-_.reset_1 = function(){
- !!this.selectedRow_0 && $deselect_0(this, this.selectedRow_0?this.selectedRow_0.getRow_0():null);
-}
-;
-_.setGrid = function(grid){
- if (!!this.grid && !!grid) {
- throw new IllegalStateException_0('Selection model is already attached to a grid. Remove the selection model first from the grid and then add it.');
- }
- this.grid = grid;
- if (this.grid) {
- this.spaceSelectHandler = new SpaceSelectHandler(grid);
- this.clickSelectHandler = new ClickSelectHandler(grid);
- }
- else {
- $removeHandler_0(this.spaceSelectHandler);
- $removeHandler(this.clickSelectHandler.clickHandler.real);
- this.spaceSelectHandler = null;
- this.clickSelectHandler = null;
- }
-}
-;
-var Lcom_vaadin_client_widget_grid_selection_SelectionModelSingle_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'SelectionModelSingle', 127, Lcom_vaadin_client_widget_grid_selection_AbstractRowHandleSelectionModel_2_classLit);
-function $removeHandler_0(this$static){
- $removeHandler(this$static.spaceDownHandler.real);
- $removeHandler(this$static.spaceUpHandler.real);
-}
-
-function SpaceSelectHandler(grid){
- this.grid = grid;
- this.spaceDownHandler = $addBodyKeyDownHandler(grid, new SpaceSelectHandler$SpaceKeyDownHandler(this));
- this.spaceUpHandler = $addBodyKeyUpHandler(grid, new SpaceSelectHandler$1(this));
-}
-
-defineClass(190, 1, {}, SpaceSelectHandler);
-_.spaceDown = false;
-var Lcom_vaadin_client_widget_grid_selection_SpaceSelectHandler_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'SpaceSelectHandler', 190, Ljava_lang_Object_2_classLit);
-function SpaceSelectHandler$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(486, 1, {22:1, 197:1, 533:1, 592:1}, SpaceSelectHandler$1);
-_.onKeyUp = function(event_0){
- $getKeyCode(event_0.nativeEvent) == 32 && (this.this$01.spaceDown = false);
-}
-;
-var Lcom_vaadin_client_widget_grid_selection_SpaceSelectHandler$1_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'SpaceSelectHandler/1', 486, Ljava_lang_Object_2_classLit);
-function $onKeyDown(this$static, event_0){
- var rowIndex;
- if ($getKeyCode(event_0.nativeEvent) != 32 || this$static.this$01.spaceDown) {
- return;
- }
- $preventDefault(event_0.nativeEvent);
- this$static.this$01.spaceDown = true;
- rowIndex = event_0.targetCell.rowReference.rowIndex;
- if (this$static.scrollHandler) {
- $removeHandler(this$static.scrollHandler.real);
- this$static.scrollHandler = null;
- }
- this$static.scrollHandler = $addDataAvailableHandler(this$static.this$01.grid, new SpaceSelectHandler$SpaceKeyDownHandler$1(this$static, rowIndex));
- $scrollToRow_1(this$static.this$01.grid, rowIndex);
-}
-
-function $setSelected_0(grid, rowIndex){
- var row;
- row = grid.dataSource_0.getRow(rowIndex);
- grid.selectionModel.isSelected(row)?$deselect_1(grid, row):$select_4(grid, row);
-}
-
-function SpaceSelectHandler$SpaceKeyDownHandler(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(484, 1, {22:1, 197:1, 588:1}, SpaceSelectHandler$SpaceKeyDownHandler);
-_.scrollHandler = null;
-var Lcom_vaadin_client_widget_grid_selection_SpaceSelectHandler$SpaceKeyDownHandler_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'SpaceSelectHandler/SpaceKeyDownHandler', 484, Ljava_lang_Object_2_classLit);
-function SpaceSelectHandler$SpaceKeyDownHandler$1(this$1, val$rowIndex){
- this.this$11 = this$1;
- this.val$rowIndex2 = val$rowIndex;
-}
-
-defineClass(485, 1, $intern_43, SpaceSelectHandler$SpaceKeyDownHandler$1);
-_.onDataAvailable = function(dataAvailableEvent){
- if ($contains_0(dataAvailableEvent.rowsAvailable, this.val$rowIndex2)) {
- $setSelected_0(this.this$11.this$01.grid, this.val$rowIndex2);
- $removeHandler(this.this$11.scrollHandler.real);
- this.this$11.scrollHandler = null;
- }
-}
-;
-_.val$rowIndex2 = 0;
-var Lcom_vaadin_client_widget_grid_selection_SpaceSelectHandler$SpaceKeyDownHandler$1_2_classLit = createForClass('com.vaadin.client.widget.grid.selection', 'SpaceSelectHandler/SpaceKeyDownHandler/1', 485, Ljava_lang_Object_2_classLit);
-function $clinit_Escalator(){
- $clinit_Escalator = emptyMethod;
- RATIO_OF_30_DEGREES = 1 / Math.sqrt(3);
- RATIO_OF_40_DEGREES = Math.tan(0.6981317007977318);
-}
-
-function $applyHeightByRows(this$static){
- var bodyHeight, footerHeight, headerHeight, scrollbar, totalHeight;
- if (this$static.heightMode != ($clinit_HeightMode() , ROW)) {
- return;
- }
- headerHeight = this$static.header.heightOfSection;
- footerHeight = this$static.footer.heightOfSection;
- bodyHeight = this$static.body_0.defaultRowHeight * this$static.heightByRows;
- scrollbar = $showsScrollHandle(this$static.horizontalScrollbar)?$getScrollbarThickness(this$static.horizontalScrollbar):0;
- totalHeight = headerHeight + bodyHeight + scrollbar + footerHeight;
- $setHeightInternal(this$static, totalHeight + 'px');
-}
-
-function $detectAndApplyPositionFunction(this$static){
- var docStyle;
- if ($wnd.navigator.userAgent.indexOf('Firefox') != -1) {
- this$static.position_0 = new PositionFunction$AbsolutePosition;
- return;
- }
- docStyle = $doc.body.style;
- hasProperty_0(docStyle, 'transform')?hasProperty_0(docStyle, 'transformStyle')?(this$static.position_0 = new PositionFunction$Translate3DPosition):(this$static.position_0 = new PositionFunction$TranslatePosition):hasProperty_0(docStyle, 'webkitTransform')?(this$static.position_0 = new PositionFunction$WebkitTranslate3DPosition):(this$static.position_0 = new PositionFunction$AbsolutePosition);
-}
-
-function $findRowContainer(this$static, element){
- if (this$static.header.root != element && $isOrHasChild(this$static.header.root, element)) {
- return this$static.header;
- }
- else if (this$static.body_0.root != element && $isOrHasChild(this$static.body_0.root, element)) {
- return this$static.body_0;
- }
- else if (this$static.footer.root != element && $isOrHasChild(this$static.footer.root, element)) {
- return this$static.footer;
- }
- return null;
-}
-
-function $fireRowVisibilityChangeEvent(this$static){
- var visibleRangeEnd, visibleRangeStart, visibleRowCount;
- if (this$static.body_0.visualRowOrder.size_0 == 0) {
- $fireEvent_0(this$static, new RowVisibilityChangeEvent(0, 0));
- }
- else {
- visibleRangeStart = $getLogicalRowIndex_0(this$static.body_0, dynamicCastJso($getFirst(this$static.body_0.visualRowOrder)));
- visibleRangeEnd = $getLogicalRowIndex_0(this$static.body_0, dynamicCastJso($getLast(this$static.body_0.visualRowOrder))) + 1;
- visibleRowCount = visibleRangeEnd - visibleRangeStart;
- $fireEvent_0(this$static, new RowVisibilityChangeEvent(visibleRangeStart, visibleRowCount));
- }
-}
-
-function $getVisibleRowRange(this$static){
- return this$static.body_0.visualRowOrder.size_0 == 0?withLength(0, 0):withLength($getLogicalRowIndex_0(this$static.body_0, dynamicCastJso($getFirst(this$static.body_0.visualRowOrder))), this$static.body_0.visualRowOrder.size_0);
-}
-
-function $hasColumnAndRowData(this$static){
- return (this$static.header.rows_0 > 0 || this$static.body_0.rows_0 > 0 || this$static.footer.rows_0 > 0) && this$static.columnConfiguration.columns.array.length > 0;
-}
-
-function $hasSomethingInDom(this$static){
- return this$static.headElem.hasChildNodes() || this$static.bodyElem.hasChildNodes() || this$static.footElem.hasChildNodes();
-}
-
-function $recalculateElementSizes(this$static){
- if (!this$static.attached) {
- return;
- }
- this$static.widthOfEscalator = max_0(0, getRequiredWidthBoundingClientRectDouble(($clinit_DOM() , this$static.element)));
- this$static.heightOfEscalator = max_0(0, getRequiredHeightBoundingClientRectDouble(this$static.element));
- $recalculateSectionHeight(this$static.header);
- $recalculateSectionHeight(this$static.footer);
- $recalculateScrollbarsForVirtualViewport(this$static.scroller);
- $verifyEscalatorCount(this$static.body_0);
-}
-
-function $scrollToColumn(this$static, columnIndex){
- $verifyValidColumnIndex(this$static, columnIndex);
- if (columnIndex < this$static.columnConfiguration.frozenColumns) {
- throw new IllegalArgumentException_0('The given column index ' + columnIndex + ' is frozen.');
- }
- $scrollToColumn_0(this$static.scroller, columnIndex);
-}
-
-function $scrollToRow(this$static, rowIndex){
- $verifyValidRowIndex(this$static, rowIndex);
- $scrollToRow_0(this$static.scroller, rowIndex);
-}
-
-function $setHeight_1(this$static, height){
- height != null && !!height.length?(this$static.heightByCss = height):(this$static.heightByCss = '400.0px');
- this$static.heightMode == ($clinit_HeightMode() , CSS_0) && $setHeightInternal(this$static, height);
-}
-
-function $setHeightByRows(this$static, rows_0){
- if (rows_0 <= 0) {
- throw new IllegalArgumentException_0('The number of rows must be a positive number.');
- }
- else if (isInfinite(rows_0)) {
- throw new IllegalArgumentException_0('The number of rows must be finite.');
- }
- else if (isNaN(rows_0)) {
- throw new IllegalArgumentException_0('The number must not be NaN.');
- }
- this$static.heightByRows = rows_0;
- $applyHeightByRows(this$static);
-}
-
-function $setHeightInternal(this$static, height){
- var escalatorRowsBefore;
- escalatorRowsBefore = this$static.body_0.visualRowOrder.size_0;
- height != null && !!height.length?(($clinit_DOM() , this$static.element).style['height'] = height , undefined):(($clinit_DOM() , this$static.element).style['height'] = '400.0px' , undefined);
- $recalculateElementSizes(this$static);
- escalatorRowsBefore != this$static.body_0.visualRowOrder.size_0 && $fireRowVisibilityChangeEvent(this$static);
-}
-
-function $setHeightMode(this$static, heightMode){
- if (heightMode != this$static.heightMode) {
- this$static.heightMode = heightMode;
- switch (this$static.heightMode.ordinal) {
- case 0:
- $setHeight_1(this$static, this$static.heightByCss);
- break;
- case 1:
- $setHeightByRows(this$static, this$static.heightByRows);
- break;
- default:throw new IllegalStateException_0('Unimplemented feature - unknown HeightMode: ' + this$static.heightMode);
- }
- }
-}
-
-function $setScrollLeft_1(this$static, scrollLeft){
- $setScrollPos(this$static.horizontalScrollbar, scrollLeft);
-}
-
-function $setScrollTop_0(this$static, scrollTop){
- $setScrollPos(this$static.verticalScrollbar, scrollTop);
-}
-
-function $setStylePrimaryName_1(this$static, style){
- setStylePrimaryName(($clinit_DOM() , this$static.element), style);
- $setStylePrimaryName_0(this$static.verticalScrollbar, style);
- $setStylePrimaryName(this$static.horizontalScrollbar, style);
- setStylePrimaryName(this$static.tableWrapper, style + '-tablewrapper');
- setStylePrimaryName(this$static.headerDeco, style + '-header-deco');
- setStylePrimaryName(this$static.footerDeco, style + '-footer-deco');
- setStylePrimaryName(this$static.horizontalScrollbarDeco, style + '-horizontal-scrollbar-deco');
- $setStylePrimaryName_5(this$static.header, style);
- $setStylePrimaryName_3(this$static.body_0, style);
- $setStylePrimaryName_4(this$static.footer, style);
-}
-
-function $setWidth_1(this$static, width_0){
- width_0 != null && !!width_0.length?(($clinit_DOM() , this$static.element).style['width'] = width_0 , undefined):(($clinit_DOM() , this$static.element).style['width'] = '500.0px' , undefined);
- $recalculateElementSizes(this$static);
-}
-
-function $verifyValidColumnIndex(this$static, columnIndex){
- if (columnIndex < 0 || columnIndex >= this$static.columnConfiguration.columns.array.length) {
- throw new IndexOutOfBoundsException_0('The given column index ' + columnIndex + ' does not exist.');
- }
-}
-
-function $verifyValidRowIndex(this$static, rowIndex){
- if (rowIndex < 0 || rowIndex >= this$static.body_0.rows_0) {
- throw new IndexOutOfBoundsException_0('The given row index ' + rowIndex + ' does not exist.');
- }
-}
-
-function Escalator(){
- $clinit_Escalator();
- var fCornerStyle, hCornerStyle, hWrapperStyle, root, scrollHandler, table;
- this.flyweightRow = new FlyweightRow;
- this.headElem = ($clinit_DOM() , $createTHeadElement($doc));
- this.bodyElem = $createTBodyElement($doc);
- this.footElem = $createTFootElement($doc);
- this.verticalScrollbar = new ScrollbarBundle$VerticalScrollbarBundle;
- this.horizontalScrollbar = new ScrollbarBundle$HorizontalScrollbarBundle;
- this.header = new Escalator$HeaderRowContainer(this, this.headElem);
- this.body_0 = new Escalator$BodyRowContainer(this, this.bodyElem);
- this.footer = new Escalator$FooterRowContainer(this, this.footElem);
- this.scroller = new Escalator$Scroller(this);
- this.columnConfiguration = new Escalator$ColumnConfigurationImpl(this);
- this.horizontalScrollbarDeco = $createDivElement($doc);
- this.headerDeco = $createDivElement($doc);
- this.footerDeco = $createDivElement($doc);
- this.heightMode = ($clinit_HeightMode() , CSS_0);
- new Escalator$1(this);
- this.columnAutoWidthAssignScheduler = new Escalator$ColumnAutoWidthAssignScheduler(this);
- $detectAndApplyPositionFunction(this);
- $ensureNamesAreInitialized(Lcom_vaadin_client_widgets_Escalator_2_classLit);
- 'Using ' + $getSimpleName(this.position_0.___clazz$) + ' for position';
- root = $createDivElement($doc);
- $setElement_0(this, root);
- scrollHandler = new Escalator$2(this);
- $appendChild(root, this.verticalScrollbar.root);
- $addScrollHandler(this.verticalScrollbar, scrollHandler);
- $setScrollbarThickness(this.verticalScrollbar, getNativeScrollbarSize());
- $appendChild(root, this.horizontalScrollbar.root);
- $addScrollHandler(this.horizontalScrollbar, scrollHandler);
- $setScrollbarThickness(this.horizontalScrollbar, getNativeScrollbarSize());
- $addVisibilityHandler(this.horizontalScrollbar, new Escalator$3(this));
- this.tableWrapper = $createDivElement($doc);
- $appendChild(root, this.tableWrapper);
- table = $createTableElement($doc);
- $appendChild(this.tableWrapper, table);
- $appendChild(table, this.headElem);
- $appendChild(table, this.bodyElem);
- $appendChild(table, this.footElem);
- hCornerStyle = this.headerDeco.style;
- hCornerStyle['width'] = getNativeScrollbarSize() + ($clinit_Style$Unit() , 'px');
- $setPropertyImpl(hCornerStyle, 'display', ($clinit_Style$Display() , 'none'));
- $appendChild(root, this.headerDeco);
- fCornerStyle = this.footerDeco.style;
- fCornerStyle['width'] = getNativeScrollbarSize() + 'px';
- $setPropertyImpl(fCornerStyle, 'display', 'none');
- $appendChild(root, this.footerDeco);
- hWrapperStyle = this.horizontalScrollbarDeco.style;
- $setPropertyImpl(hWrapperStyle, 'display', 'none');
- hWrapperStyle['height'] = getNativeScrollbarSize() + 'px';
- $appendChild(root, this.horizontalScrollbarDeco);
- $setStylePrimaryName_1(this, 'v-escalator');
- this.heightByCss = '400.0px';
- this.heightMode == CSS_0 && $setHeightInternal(this, null);
- this.element.style['width'] = '500.0px';
- $recalculateElementSizes(this);
-}
-
-function getScrollPos(targetStartPx, targetEndPx, viewportStartPx, viewportEndPx, padding){
- $clinit_Escalator();
- var endScrollPos, startScrollPos, viewportLength;
- viewportLength = viewportEndPx - viewportStartPx;
- startScrollPos = targetStartPx - padding;
- endScrollPos = targetEndPx + padding - viewportLength;
- return startScrollPos < viewportStartPx?startScrollPos:targetEndPx + padding > viewportEndPx?endScrollPos:viewportStartPx;
-}
-
-function hasProperty_0(style, name_0){
- return style[name_0] !== undefined;
-}
-
-function snapDeltas_0(deltaX, deltaY, thresholdRatio){
- $clinit_Escalator();
- var aDeltaX, aDeltaY, array, xRatio, yRatio;
- array = initDim(D_classLit, {3:1}, 0, 2, 7, 1);
- if (deltaX != 0 && deltaY != 0) {
- aDeltaX = deltaX <= 0?0 - deltaX:deltaX;
- aDeltaY = deltaY <= 0?0 - deltaY:deltaY;
- yRatio = aDeltaY / aDeltaX;
- xRatio = aDeltaX / aDeltaY;
- array[0] = xRatio < thresholdRatio?0:deltaX;
- array[1] = yRatio < thresholdRatio?0:deltaY;
- }
- else {
- array[0] = deltaX;
- array[1] = deltaY;
- }
- return array;
-}
-
-defineClass(252, 17, $intern_25, Escalator);
-_.onLoad = function(){
- var column, column$iterator, columnChanged, columnsChanged;
- $autodetectRowHeightLater(this.header);
- $autodetectRowHeightLater(this.body_0);
- $autodetectRowHeightLater(this.footer);
- $paintInsertStaticRows(this.header, 0, this.header.rows_0);
- $paintInsertStaticRows(this.footer, 0, this.footer.rows_0);
- $recalculateElementSizes(this);
- columnsChanged = false;
- for (column$iterator = new AbstractList$IteratorImpl(this.columnConfiguration.columns); column$iterator.i < column$iterator.this$01_0.size_2();) {
- column = (checkCriticalElement(column$iterator.i < column$iterator.this$01_0.size_2()) , dynamicCast(column$iterator.this$01_0.get_0(column$iterator.last = column$iterator.i++), 54));
- columnChanged = $measureAndSetWidthIfNeeded(column);
- columnChanged && (columnsChanged = true);
- }
- if (columnsChanged) {
- $reapplyColumnWidths(this.header);
- $reapplyColumnWidths(this.body_0);
- $reapplyColumnWidths(this.footer);
- }
- $attachScrollListener(this.scroller, this.verticalScrollbar.root);
- $attachScrollListener(this.scroller, this.horizontalScrollbar.root);
- $attachMousewheelListener(this.scroller, ($clinit_DOM() , this.element));
- $attachTouchListeners(this.scroller, this.element);
-}
-;
-_.onUnload = function(){
- var i_0, index_0, rowsToRemove, tr;
- $detachScrollListener(this.scroller, this.verticalScrollbar.root);
- $detachScrollListener(this.scroller, this.horizontalScrollbar.root);
- $detachMousewheelListener(this.scroller, ($clinit_DOM() , this.element));
- $detachTouchListeners(this.scroller, this.element);
- $paintRemoveRows(this.header, 0, this.header.rows_0);
- $paintRemoveRows(this.footer, 0, this.footer.rows_0);
- rowsToRemove = this.bodyElem.childNodes.length;
- for (i_0 = 0; i_0 < rowsToRemove; i_0++) {
- index_0 = rowsToRemove - i_0 - 1;
- tr = this.bodyElem.rows[index_0];
- $paintRemoveRow(this.body_0, tr, index_0);
- $removeRowPosition(this.body_0, tr);
- }
- $reset_0(this.body_0.visualRowOrder);
- $setTopRowLogicalIndex(this.body_0, 0);
-}
-;
-_.setHeight_0 = function(height){
- $setHeight_1(this, height);
-}
-;
-_.setWidth = function(width_0){
- $setWidth_1(this, width_0);
-}
-;
-_.heightByCss = '';
-_.heightByRows = 10;
-_.heightOfEscalator = 0;
-_.tBodyScrollLeft = 0;
-_.tBodyScrollTop = 0;
-_.widthOfEscalator = 0;
-var RATIO_OF_30_DEGREES = 0, RATIO_OF_40_DEGREES = 0;
-var Lcom_vaadin_client_widgets_Escalator_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator', 252, Lcom_google_gwt_user_client_ui_Widget_2_classLit);
-function Escalator$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(266, 1, {}, Escalator$1);
-_.execute_1 = function(){
- $recalculateElementSizes(this.this$01);
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/1', 266, Ljava_lang_Object_2_classLit);
-function Escalator$2(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(267, 1, $intern_41, Escalator$2);
-_.onScroll = function(event_0){
- $onScroll(this.this$01.scroller);
- $fireEvent_0(this.this$01, new ScrollEvent);
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$2_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/2', 267, Ljava_lang_Object_2_classLit);
-function Escalator$3(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(268, 1, {22:1, 589:1}, Escalator$3);
-var Lcom_vaadin_client_widgets_Escalator$3_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/3', 268, Ljava_lang_Object_2_classLit);
-function $assertArgumentsAreValidAndWithinRange(this$static, index_0, numberOfRows){
- if (numberOfRows < 1) {
- throw new IllegalArgumentException_0('Number of rows must be 1 or greater (was ' + numberOfRows + ')');
- }
- if (index_0 < 0 || index_0 + numberOfRows > this$static.rows_0) {
- throw new IndexOutOfBoundsException_0('The given row range (' + index_0 + '..' + (index_0 + numberOfRows) + ') was outside of the current number of rows (' + this$static.rows_0 + ')');
- }
-}
-
-function $autodetectRowHeightLater(this$static){
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), new Escalator$AbstractRowContainer$1(this$static));
-}
-
-function $autodetectRowHeightNow(this$static){
- var boundingHeight, cellElem, detectionTr;
- if (!this$static.this$01_1.attached) {
- this$static.defaultRowHeightShouldBeAutodetected = true;
- return;
- }
- detectionTr = ($clinit_DOM() , $createTRElement($doc));
- $setClassName(detectionTr, this$static.primaryStyleName + '-row');
- cellElem = createElement(this$static.getCellElementTagName());
- $setClassName(cellElem, this$static.primaryStyleName + '-cell');
- $setInnerText_0(($clinit_DOMImpl() , cellElem), 'Ij');
- detectionTr.appendChild(cellElem);
- $appendChild(this$static.root, detectionTr);
- boundingHeight = getRequiredHeightBoundingClientRectDouble(cellElem);
- this$static.defaultRowHeight = 1 > boundingHeight?1:boundingHeight;
- $removeChild(this$static.root, detectionTr);
- if (this$static.root.hasChildNodes()) {
- this$static.reapplyDefaultRowHeights();
- $applyHeightByRows(this$static.this$01_1);
- }
-}
-
-function $calculateEstimatedTotalRowHeight(this$static){
- return this$static.defaultRowHeight * this$static.rows_0;
-}
-
-function $createCellElement(this$static, width_0){
- var cellElem, height;
- cellElem = createElement(this$static.getCellElementTagName());
- height = this$static.defaultRowHeight;
- cellElem.style['height'] = height + ($clinit_Style$Unit() , 'px');
- width_0 >= 0 && (cellElem.style['width'] = width_0 + 'px' , undefined);
- $addClassName(cellElem, this$static.primaryStyleName + '-cell');
- return cellElem;
-}
-
-function $getCell(this$static, element){
- var cellElement, cellElementCandidate, domColumnIndex, domRowIndex, e, e0;
- if (!element) {
- throw new IllegalArgumentException_0('Element cannot be null');
- }
- if (this$static.root == element || $getParentElement_0(($clinit_DOMImpl() , element)) == this$static.root || !$isOrHasChild(this$static.root, element)) {
- return null;
- }
- cellElementCandidate = element;
- while ($getParentElement($getParentElement_0(($clinit_DOMImpl() , cellElementCandidate))) != this$static.root) {
- cellElementCandidate = $getParentElement_0(cellElementCandidate);
- }
- cellElement = cellElementCandidate;
- domColumnIndex = -1;
- for (e0 = cellElement; e0; e0 = $getPreviousSiblingElement(e0)) {
- ++domColumnIndex;
- }
- domRowIndex = -1;
- for (e = $getParentElement_0(cellElement); e; e = $getPreviousSiblingElement(e)) {
- ++domRowIndex;
- }
- return new Cell(domRowIndex, domColumnIndex, cellElement);
-}
-
-function $getMaxCellWidth(this$static, colIndex){
- var cellClone, cellOriginal, maxCellWidth, requiredWidth, row, rowElement, rows_0, cellHasColspan, cellIsHidden;
- maxCellWidth = -1;
- rows_0 = this$static.root.rows;
- for (row = 0; row < rows_0.length; row++) {
- rowElement = rows_0[row];
- cellOriginal = rowElement.cells[colIndex];
- if (cellHasColspan = cellOriginal.colSpan > 1 , cellIsHidden = $equals_2(($clinit_Style$Display() , 'none'), $getDisplay(cellOriginal.style)) , cellHasColspan || cellIsHidden) {
- continue;
- }
- cellClone = cellOriginal.cloneNode(true);
- $setPropertyImpl(cellClone.style, 'height', '');
- $setPropertyImpl(cellClone.style, 'width', '');
- rowElement.insertBefore(cellClone, cellOriginal);
- requiredWidth = getRequiredWidthBoundingClientRectDouble(cellClone);
- $isIE9(($clinit_BrowserInfo() , !instance_2 && (instance_2 = new BrowserInfo) , $clinit_BrowserInfo() , instance_2)) && (requiredWidth += 1);
- maxCellWidth = requiredWidth > maxCellWidth?requiredWidth:maxCellWidth;
- $removeFromParent(cellClone);
- }
- return maxCellWidth;
-}
-
-function $getRowTop(this$static, tr){
- return dynamicCast(this$static.rowTopPositionMap.get_1(tr), 15).value_0;
-}
-
-function $insertAfterReferenceAndUpdateIt(parent_0, elem, referenceNode){
- referenceNode?$insertAfter(parent_0, elem, referenceNode):$insertBefore(parent_0, elem, parent_0.firstChild);
- return elem;
-}
-
-function $insertRows(this$static, index_0, numberOfRows){
- if (index_0 < 0 || index_0 > this$static.rows_0) {
- throw new IndexOutOfBoundsException_0('The given index (' + index_0 + ') was outside of the current number of rows (0..' + this$static.rows_0 + ')');
- }
- if (numberOfRows < 1) {
- throw new IllegalArgumentException_0('Number of rows must be 1 or greater (was ' + numberOfRows + ')');
- }
- this$static.rows_0 += numberOfRows;
- if (this$static.this$01_1.attached) {
- this$static.paintInsertRows(index_0, numberOfRows);
- this$static.rows_0 == numberOfRows && $reschedule_0(this$static.this$01_1.columnAutoWidthAssignScheduler);
- }
-}
-
-function $paintInsertCells(this$static, tr, logicalRowIndex, offset){
- var cell, cell$iterator, cell$iterator0, cellElem, cells_0, colWidth, referenceCell;
- $setup_0(this$static.this$01_1.flyweightRow, tr, logicalRowIndex, $getCalculatedColumnWidths(this$static.this$01_1.columnConfiguration));
- cells_0 = new FlyweightRow$2(this$static.this$01_1.flyweightRow, offset);
- for (cell$iterator0 = new FlyweightRow$CellIterator(new AbstractList$SubList(cells_0.this$01.cells_0, cells_0.val$offset2, cells_0.val$offset2 + cells_0.val$numberOfCells3), false); cell$iterator0.cursor_0 + cell$iterator0.skipNext < cell$iterator0.cells_0.array.length;) {
- cell = $next_1(cell$iterator0);
- colWidth = $getColumnWidthActual(this$static.this$01_1.columnConfiguration, cell.column);
- cellElem = $createCellElement(this$static, colWidth);
- cell.element = cellElem;
- }
- this$static.updater.preAttach(this$static.this$01_1.flyweightRow, cells_0);
- offset != 0?(referenceCell = tr.childNodes[offset - 1]):(referenceCell = null);
- for (cell$iterator = new FlyweightRow$CellIterator(new AbstractList$SubList(cells_0.this$01.cells_0, cells_0.val$offset2, cells_0.val$offset2 + cells_0.val$numberOfCells3), false); cell$iterator.cursor_0 + cell$iterator.skipNext < cell$iterator.cells_0.array.length;) {
- cell = $next_1(cell$iterator);
- referenceCell = $insertAfterReferenceAndUpdateIt(tr, cell.element, referenceCell);
- }
- this$static.updater.postAttach(this$static.this$01_1.flyweightRow, cells_0);
- this$static.updater.update(this$static.this$01_1.flyweightRow, cells_0);
-}
-
-function $paintInsertColumns(this$static, offset, frozen){
- var col, row, tr;
- for (row = 0; row < this$static.root.childNodes.length; row++) {
- tr = this$static.getTrByVisualIndex(row);
- $paintInsertCells(this$static, tr, row, offset);
- }
- $reapplyRowWidths(this$static);
- if (frozen) {
- for (col = offset; col < offset + 1; col++) {
- $setColumnFrozen(this$static, col, true);
- }
- }
-}
-
-function $paintInsertRow(this$static, referenceRow, tr, logicalRowIndex){
- $setup_0(this$static.this$01_1.flyweightRow, tr, logicalRowIndex, $getCalculatedColumnWidths(this$static.this$01_1.columnConfiguration));
- this$static.updater.preAttach(this$static.this$01_1.flyweightRow, $getCells(this$static.this$01_1.flyweightRow));
- referenceRow = $insertAfterReferenceAndUpdateIt(this$static.root, tr, referenceRow);
- this$static.updater.postAttach(this$static.this$01_1.flyweightRow, $getCells(this$static.this$01_1.flyweightRow));
- this$static.updater.update(this$static.this$01_1.flyweightRow, $getCells(this$static.this$01_1.flyweightRow));
- return referenceRow;
-}
-
-function $paintInsertStaticRows(this$static, visualIndex, numberOfRows){
- var addedRows, cellElem, col, colWidth, referenceRow, row, tr;
- addedRows = new ArrayList;
- if (numberOfRows < 1) {
- return addedRows;
- }
- this$static.root.childNodes.length != 0 && visualIndex != 0?(referenceRow = $getChild(this$static.root, visualIndex - 1)):(referenceRow = null);
- for (row = visualIndex; row < visualIndex + numberOfRows; row++) {
- tr = ($clinit_DOM() , $createTRElement($doc));
- setCheck(addedRows.array, addedRows.array.length, tr);
- $addClassName(tr, this$static.primaryStyleName + '-row');
- for (col = 0; col < this$static.this$01_1.columnConfiguration.columns.array.length; col++) {
- colWidth = $getColumnWidthActual(this$static.this$01_1.columnConfiguration, col);
- cellElem = $createCellElement(this$static, colWidth);
- tr.appendChild(cellElem);
- if (col < this$static.this$01_1.columnConfiguration.frozenColumns) {
- $addClassName(cellElem, 'frozen');
- this$static.this$01_1.position_0.set_1(cellElem, this$static.this$01_1.scroller.lastScrollLeft, 0);
- }
- }
- referenceRow = $paintInsertRow(this$static, referenceRow, tr, row);
- }
- $reapplyRowWidths(this$static);
- this$static.recalculateSectionHeight();
- return addedRows;
-}
-
-function $paintRemoveColumns(this$static, offset){
- var attachedCells, detachedCells, i_0, j, row;
- for (i_0 = 0; i_0 < this$static.root.childNodes.length; i_0++) {
- row = this$static.getTrByVisualIndex(i_0);
- $setup_0(this$static.this$01_1.flyweightRow, row, i_0, $getCalculatedColumnWidths(this$static.this$01_1.columnConfiguration));
- attachedCells = new FlyweightRow$1(this$static.this$01_1.flyweightRow, offset, 1);
- this$static.updater.preDetach(this$static.this$01_1.flyweightRow, attachedCells);
- for (j = 0; j < 1; j++) {
- $removeFromParent(row.cells[offset]);
- }
- detachedCells = new FlyweightRow$2(this$static.this$01_1.flyweightRow, offset);
- this$static.updater.postDetach(this$static.this$01_1.flyweightRow, detachedCells);
- }
-}
-
-function $paintRemoveRow(this$static, tr, logicalRowIndex){
- $setup_0(this$static.this$01_1.flyweightRow, tr, logicalRowIndex, $getCalculatedColumnWidths(this$static.this$01_1.columnConfiguration));
- this$static.updater.preDetach(this$static.this$01_1.flyweightRow, $getCells(this$static.this$01_1.flyweightRow));
- $removeFromParent(tr);
- this$static.updater.postDetach(this$static.this$01_1.flyweightRow, $getCells(this$static.this$01_1.flyweightRow));
-}
-
-function $reapplyColumnWidths(this$static){
- var cell, columnIndex, row, width_0, colspan, spannedColumns;
- row = $getFirstChildElement(this$static.root);
- while (row) {
- cell = $getFirstChildElement_0(($clinit_DOMImpl() , row));
- columnIndex = 0;
- while (cell) {
- width_0 = (colspan = $getPropertyInt(cell, 'colSpan') , spannedColumns = withLength(columnIndex, colspan) , spannedColumns.end > this$static.this$01_1.columnConfiguration.columns.array.length && (spannedColumns = new Range_0(columnIndex, this$static.this$01_1.columnConfiguration.columns.array.length)) , $getCalculatedColumnsWidth(this$static.this$01_1.columnConfiguration, spannedColumns));
- cell.style['width'] = width_0 + ($clinit_Style$Unit() , 'px');
- cell = $getNextSiblingElement(cell);
- ++columnIndex;
- }
- row = $getNextSiblingElement(row);
- }
- $reapplyRowWidths(this$static);
-}
-
-function $reapplyRowHeight(tr, heightPx){
- var cellElem;
- cellElem = $getFirstChildElement_0(($clinit_DOMImpl() , tr));
- while (cellElem) {
- cellElem.style['height'] = heightPx + ($clinit_Style$Unit() , 'px');
- cellElem = $getNextSiblingElement(cellElem);
- }
-}
-
-function $reapplyRowWidths(this$static){
- var row, rowWidth;
- rowWidth = $calculateRowWidth(this$static.this$01_1.columnConfiguration);
- row = $getFirstChildElement(this$static.root);
- while (row) {
- rowWidth >= 0 && (row.style['width'] = rowWidth + ($clinit_Style$Unit() , 'px') , undefined);
- row = $getNextSiblingElement(($clinit_DOMImpl() , row));
- }
-}
-
-function $refreshRow(this$static, tr, logicalRowIndex, colRange){
- var cellsToUpdate;
- $setup_0(this$static.this$01_1.flyweightRow, tr, logicalRowIndex, $getCalculatedColumnWidths(this$static.this$01_1.columnConfiguration));
- cellsToUpdate = new FlyweightRow$1(this$static.this$01_1.flyweightRow, colRange.start_0, colRange.end - colRange.start_0);
- this$static.updater.update(this$static.this$01_1.flyweightRow, cellsToUpdate);
-}
-
-function $refreshRows(this$static, index_0, numberOfRows){
- var colRange, rowRange;
- rowRange = withLength(index_0, numberOfRows);
- colRange = withLength(0, this$static.this$01_1.columnConfiguration.columns.array.length);
- this$static.refreshCells(rowRange, colRange);
-}
-
-function $removeRowPosition(this$static, tr){
- this$static.rowTopPositionMap.remove_2(tr);
-}
-
-function $removeRows(this$static, index_0, numberOfRows){
- $assertArgumentsAreValidAndWithinRange(this$static, index_0, numberOfRows);
- this$static.rows_0 -= numberOfRows;
- if (!this$static.this$01_1.attached) {
- return;
- }
- $hasSomethingInDom(this$static.this$01_1) && this$static.paintRemoveRows(index_0, numberOfRows);
-}
-
-function $setColumnFrozen(this$static, column, frozen){
- var cell, childRows, row, tr;
- childRows = this$static.root.rows;
- for (row = 0; row < childRows.length; row++) {
- tr = childRows[row];
- cell = tr.cells[column];
- if (frozen) {
- $addClassName(cell, 'frozen');
- }
- else {
- $removeClassName(cell, 'frozen');
- this$static.this$01_1.position_0.reset_0(cell);
- }
- }
- frozen && $updateFreezePosition(this$static, column, this$static.this$01_1.scroller.lastScrollLeft);
-}
-
-function $setEscalatorUpdater(this$static, escalatorUpdater){
- this$static.updater = escalatorUpdater;
- $hasColumnAndRowData(this$static.this$01_1) && this$static.rows_0 > 0 && $refreshRows(this$static, 0, this$static.rows_0);
-}
-
-function $setRowPosition(this$static, tr, y_0){
- this$static.this$01_1.position_0.set_1(tr, 0, y_0);
- this$static.rowTopPositionMap.put(tr, new Double(y_0));
-}
-
-function $setStylePrimaryName_2(this$static, primaryStyleName){
- var cell, oldStyle, row;
- oldStyle = this$static.primaryStyleName;
- if (equals(oldStyle, primaryStyleName)) {
- return;
- }
- this$static.primaryStyleName = primaryStyleName;
- row = this$static.root.rows[0];
- while (row) {
- setStylePrimaryName(row, primaryStyleName + '-row');
- cell = row.cells[0];
- while (cell) {
- setStylePrimaryName(cell, primaryStyleName + '-cell');
- cell = $getNextSiblingElement(($clinit_DOMImpl() , cell));
- }
- row = $getNextSiblingElement(($clinit_DOMImpl() , row));
- }
-}
-
-function $updateFreezePosition(this$static, column, scrollLeft){
- var cell, childRows, row, tr;
- childRows = this$static.root.rows;
- for (row = 0; row < childRows.length; row++) {
- tr = childRows[row];
- cell = tr.cells[column];
- this$static.this$01_1.position_0.set_1(cell, scrollLeft, 0);
- }
-}
-
-function Escalator$AbstractRowContainer(this$0, rowContainerElement){
- this.this$01_1 = this$0;
- this.updater = ($clinit_EscalatorUpdater() , NULL);
- this.rowTopPositionMap = new HashMap;
- this.root = rowContainerElement;
-}
-
-defineClass(157, 1, {});
-_.autodetectRowHeightLater = function(){
- $autodetectRowHeightLater(this);
-}
-;
-_.getCell = function(element){
- return $getCell(this, element);
-}
-;
-_.getRowCount_0 = function(){
- return this.rows_0;
-}
-;
-_.getRowElement = function(index_0){
- return this.getTrByVisualIndex(index_0);
-}
-;
-_.refreshRows = function(index_0, numberOfRows){
- $refreshRows(this, index_0, numberOfRows);
-}
-;
-_.defaultRowHeight = 20;
-_.defaultRowHeightShouldBeAutodetected = true;
-_.heightOfSection = 0;
-_.primaryStyleName = null;
-_.rows_0 = 0;
-var Lcom_vaadin_client_widgets_Escalator$AbstractRowContainer_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/AbstractRowContainer', 157, Ljava_lang_Object_2_classLit);
-function Escalator$AbstractRowContainer$1(this$1){
- this.this$11 = this$1;
-}
-
-defineClass(264, 1, {}, Escalator$AbstractRowContainer$1);
-_.execute_1 = function(){
- if (this.this$11.defaultRowHeightShouldBeAutodetected && this.this$11.this$01_1.attached) {
- $autodetectRowHeightNow(this.this$11);
- this.this$11.defaultRowHeightShouldBeAutodetected = false;
- }
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$AbstractRowContainer$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/AbstractRowContainer/1', 264, Ljava_lang_Object_2_classLit);
-function $getTrByVisualIndex(this$static, index_0){
- if (index_0 >= 0 && index_0 < this$static.root.childNodes.length) {
- return this$static.root.rows[index_0];
- }
- else {
- throw new IndexOutOfBoundsException_0('No such visual index: ' + index_0);
- }
-}
-
-function $paintRemoveRows(this$static, index_0, numberOfRows){
- var i_0, tr;
- for (i_0 = index_0; i_0 < index_0 + numberOfRows; i_0++) {
- tr = this$static.root.rows[index_0];
- $paintRemoveRow(this$static, tr, index_0);
- }
- $recalculateSectionHeight(this$static);
-}
-
-function $recalculateSectionHeight(this$static){
- var newHeight;
- newHeight = this$static.defaultRowHeight * this$static.rows_0;
- if (newHeight != this$static.heightOfSection) {
- this$static.heightOfSection = newHeight;
- this$static.sectionHeightCalculated();
- $verifyEscalatorCount(this$static.this$01_0.body_0);
- }
-}
-
-function Escalator$AbstractStaticRowContainer(this$0, headElement){
- this.this$01_0 = this$0;
- Escalator$AbstractRowContainer.call(this, this$0, headElement);
-}
-
-defineClass(158, 157, {});
-_.getTrByVisualIndex = function(index_0){
- return $getTrByVisualIndex(this, index_0);
-}
-;
-_.paintInsertRows = function(visualIndex, numberOfRows){
- $paintInsertStaticRows(this, visualIndex, numberOfRows);
-}
-;
-_.paintRemoveRows = function(index_0, numberOfRows){
- $paintRemoveRows(this, index_0, numberOfRows);
-}
-;
-_.reapplyDefaultRowHeights = function(){
- var tr;
- if (this.root.childNodes.length == 0) {
- return;
- }
- tr = this.root.rows[0];
- while (tr) {
- $reapplyRowHeight(tr, this.defaultRowHeight);
- tr = $getNextSiblingElement(($clinit_DOMImpl() , tr));
- }
- $recalculateSectionHeight(this);
-}
-;
-_.recalculateSectionHeight = function(){
- $recalculateSectionHeight(this);
-}
-;
-_.refreshCells = function(logicalRowRange, colRange){
- var row, tr;
- $assertArgumentsAreValidAndWithinRange(this, logicalRowRange.start_0, logicalRowRange.end - logicalRowRange.start_0);
- if (!this.this$01_0.attached) {
- return;
- }
- if ($hasColumnAndRowData(this.this$01_0)) {
- for (row = logicalRowRange.start_0; row < logicalRowRange.end; row++) {
- tr = $getTrByVisualIndex(this, row);
- $refreshRow(this, tr, row, colRange);
- }
- }
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$AbstractStaticRowContainer_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/AbstractStaticRowContainer', 158, Lcom_vaadin_client_widgets_Escalator$AbstractRowContainer_2_classLit);
-function $adjustScrollPosIgnoreEvents(this$static, yDelta){
- var rowTopPos, tr, tr$iterator;
- if (yDelta == 0) {
- return;
- }
- $setScrollPosByDelta(this$static.this$01.verticalScrollbar, yDelta);
- rowTopPos = yDelta - yDelta % this$static.defaultRowHeight;
- for (tr$iterator = $listIterator(this$static.visualRowOrder, 0); tr$iterator.currentNode != tr$iterator.this$01.tail;) {
- tr = (checkCriticalElement(tr$iterator.currentNode != tr$iterator.this$01.tail) , tr$iterator.lastNode = tr$iterator.currentNode , tr$iterator.currentNode = tr$iterator.currentNode.next , ++tr$iterator.currentIndex , dynamicCastJso(tr$iterator.lastNode.value_0));
- $setRowPosition(this$static, tr, dynamicCast(this$static.rowTopPositionMap.get_1(tr), 15).value_0 + rowTopPos);
- }
- $setBodyScrollPosition(this$static, this$static.this$01.tBodyScrollLeft, this$static.this$01.tBodyScrollTop + yDelta);
-}
-
-function $calculateHeight(this$static){
- var footerHeight, headerHeight, tableHeight;
- tableHeight = (this$static.this$01.tableWrapper.offsetHeight || 0) | 0;
- footerHeight = this$static.this$01.footer.heightOfSection;
- headerHeight = this$static.this$01.header.heightOfSection;
- return tableHeight - footerHeight - headerHeight;
-}
-
-function $convertToVisual(this$static, logicalRange){
- var currentTopRowIndex, insideRange, maxEscalatorRows, partitions;
- if (logicalRange.start_0 >= logicalRange.end) {
- return logicalRange;
- }
- else if (this$static.visualRowOrder.size_0 == 0) {
- return withLength(0, 0);
- }
- maxEscalatorRows = $getMaxEscalatorRowCapacity(this$static);
- currentTopRowIndex = $getLogicalRowIndex_0(this$static, dynamicCastJso($getFirst(this$static.visualRowOrder)));
- partitions = $partitionWith(logicalRange, withLength(currentTopRowIndex, maxEscalatorRows));
- insideRange = partitions[1];
- return -currentTopRowIndex == 0?insideRange:new Range_0(insideRange.start_0 + -currentTopRowIndex, insideRange.end + -currentTopRowIndex);
-}
-
-function $fillAndPopulateEscalatorRowsIfNeeded(this$static, index_0, numberOfRows){
- var addedRows, escalatorRowsNeeded, escalatorRowsStillFit, i_0, i0, tr;
- escalatorRowsStillFit = $getMaxEscalatorRowCapacity(this$static) - this$static.root.childNodes.length;
- escalatorRowsNeeded = numberOfRows < escalatorRowsStillFit?numberOfRows:escalatorRowsStillFit;
- if (escalatorRowsNeeded > 0) {
- addedRows = $paintInsertStaticRows(this$static, index_0, escalatorRowsNeeded);
- $addAll_1(this$static.visualRowOrder, index_0, addedRows);
- for (i0 = 0; i0 < addedRows.array.length; i0++) {
- $setRowPosition(this$static, (checkElementIndex(i0, addedRows.array.length) , dynamicCastJso(addedRows.array[i0])), (index_0 + i0) * this$static.defaultRowHeight);
- }
- for (i_0 = index_0 + addedRows.array.length; i_0 < this$static.visualRowOrder.size_0; i_0++) {
- tr = dynamicCastJso($get_5(this$static.visualRowOrder, i_0));
- $setRowPosition(this$static, tr, i_0 * this$static.defaultRowHeight);
- }
- return addedRows;
- }
- else {
- return new ArrayList;
- }
-}
-
-function $getEscalatorRowWithFocus(this$static){
- var e, focusedElement, rowContainingFocus;
- rowContainingFocus = null;
- focusedElement = getFocusedElement();
- if (!!focusedElement && $isOrHasChild(this$static.root, focusedElement)) {
- e = focusedElement;
- while (!!e && e != this$static.root) {
- !!e && $equalsIgnoreCase('tr', ($clinit_DOMImpl() , e).tagName) && (rowContainingFocus = e);
- e = $getParentElement_0(($clinit_DOMImpl() , e));
- }
- }
- return rowContainingFocus;
-}
-
-function $getLogicalRowIndex_0(this$static, tr){
- var internalIndex;
- internalIndex = $indexOf_2(this$static.visualRowOrder, tr);
- return this$static.topRowLogicalIndex + internalIndex;
-}
-
-function $getMaxEscalatorRowCapacity(this$static){
- var maxEscalatorRowCapacity;
- maxEscalatorRowCapacity = round_int(ceil_0($calculateHeight(this$static) / this$static.defaultRowHeight)) + 1;
- return 0 > maxEscalatorRowCapacity?0:maxEscalatorRowCapacity;
-}
-
-function $getRowElement(this$static, index_0){
- var visualIndex;
- if (index_0 < 0 || index_0 >= this$static.rows_0) {
- throw new IndexOutOfBoundsException_0('No such logical index: ' + index_0);
- }
- visualIndex = index_0 - $getLogicalRowIndex_0(this$static, dynamicCastJso($getFirst(this$static.visualRowOrder)));
- if (visualIndex >= 0 && visualIndex < this$static.visualRowOrder.size_0) {
- return $getTrByVisualIndex_0(this$static, visualIndex);
- }
- else {
- throw new IllegalStateException_0('Row with logical index ' + index_0 + ' is currently not available in the DOM');
- }
-}
-
-function $getTrByVisualIndex_0(this$static, index_0){
- if (index_0 >= 0 && index_0 < this$static.visualRowOrder.size_0) {
- return dynamicCastJso($get_5(this$static.visualRowOrder, index_0));
- }
- else {
- throw new IndexOutOfBoundsException_0('No such visual index: ' + index_0);
- }
-}
-
-function $moveAndUpdateEscalatorRows(this$static, visualSourceRange, visualTargetIndex, logicalTargetIndex){
- var adjustedVisualTargetIndex, i_0, iter, logicalEndIndex, logicalIndex, newRowTop, removedRows, tr;
- if (visualSourceRange.start_0 >= visualSourceRange.end) {
- return;
- }
- if (visualSourceRange.start_0 < 0) {
- throw new IllegalArgumentException_0('Logical source start must be 0 or greater (was ' + visualSourceRange.start_0 + ')');
- }
- else if (logicalTargetIndex < 0) {
- throw new IllegalArgumentException_0('Logical target must be 0 or greater');
- }
- else if (visualTargetIndex < 0) {
- throw new IllegalArgumentException_0('Visual target must be 0 or greater');
- }
- else if (visualTargetIndex > this$static.root.childNodes.length) {
- throw new IllegalArgumentException_0('Visual target must not be greater than the number of escalator rows');
- }
- else if (logicalTargetIndex + (visualSourceRange.end - visualSourceRange.start_0) > this$static.rows_0) {
- logicalEndIndex = logicalTargetIndex + (visualSourceRange.end - visualSourceRange.start_0) - 1;
- throw new IllegalArgumentException_0('Logical target leads to rows outside of the data range (' + logicalTargetIndex + '..' + logicalEndIndex + ')');
- }
- visualSourceRange.start_0 < visualTargetIndex?(adjustedVisualTargetIndex = visualTargetIndex - (visualSourceRange.end - visualSourceRange.start_0)):(adjustedVisualTargetIndex = visualTargetIndex);
- if (visualSourceRange.start_0 != adjustedVisualTargetIndex) {
- removedRows = new ArrayList_0(visualSourceRange.end - visualSourceRange.start_0);
- for (i_0 = 0; i_0 < visualSourceRange.end - visualSourceRange.start_0; i_0++) {
- tr = dynamicCastJso($remove_5(this$static.visualRowOrder, visualSourceRange.start_0));
- setCheck(removedRows.array, removedRows.array.length, tr);
- }
- $addAll_1(this$static.visualRowOrder, adjustedVisualTargetIndex, removedRows);
- }
- iter = $listIterator(this$static.visualRowOrder, adjustedVisualTargetIndex);
- for (logicalIndex = logicalTargetIndex; logicalIndex < logicalTargetIndex + (visualSourceRange.end - visualSourceRange.start_0); logicalIndex++) {
- tr = (checkCriticalElement(iter.currentNode != iter.this$01.tail) , iter.lastNode = iter.currentNode , iter.currentNode = iter.currentNode.next , ++iter.currentIndex , dynamicCastJso(iter.lastNode.value_0));
- $refreshRow(this$static, tr, logicalIndex, withLength(0, this$static.this$01_1.columnConfiguration.columns.array.length));
- }
- newRowTop = logicalTargetIndex * this$static.defaultRowHeight;
- iter = $listIterator(this$static.visualRowOrder, adjustedVisualTargetIndex);
- for (i_0 = 0; i_0 < visualSourceRange.end - visualSourceRange.start_0; i_0++) {
- tr = (checkCriticalElement(iter.currentNode != iter.this$01.tail) , iter.lastNode = iter.currentNode , iter.currentNode = iter.currentNode.next , ++iter.currentIndex , dynamicCastJso(iter.lastNode.value_0));
- this$static.this$01_1.position_0.set_1(tr, 0, newRowTop);
- this$static.rowTopPositionMap.put(tr, new Double(newRowTop));
- newRowTop += this$static.defaultRowHeight;
- }
-}
-
-function $paintRemoveRowsAtBottom(this$static, removedLogicalInside, removedVisualInside){
- var iterator, logicalTargetIndex, rowTop, tr;
- logicalTargetIndex = $getLogicalRowIndex_0(this$static, dynamicCastJso($getFirst(this$static.visualRowOrder))) - (removedVisualInside.end - removedVisualInside.start_0);
- $moveAndUpdateEscalatorRows(this$static, removedVisualInside, 0, logicalTargetIndex);
- iterator = $listIterator(this$static.visualRowOrder, removedVisualInside.end);
- rowTop = removedLogicalInside.start_0 * this$static.defaultRowHeight;
- while (iterator.currentNode != iterator.this$01.tail) {
- tr = (checkCriticalElement(iterator.currentNode != iterator.this$01.tail) , iterator.lastNode = iterator.currentNode , iterator.currentNode = iterator.currentNode.next , ++iterator.currentIndex , dynamicCastJso(iterator.lastNode.value_0));
- this$static.this$01_1.position_0.set_1(tr, 0, rowTop);
- this$static.rowTopPositionMap.put(tr, new Double(rowTop));
- rowTop += this$static.defaultRowHeight;
- }
-}
-
-function $paintRemoveRowsAtMiddle(this$static, removedLogicalInside, removedVisualInside){
- var escalatorRowCount, i_0, iterator, logicalTargetIndex, rowTop, tr;
- escalatorRowCount = this$static.visualRowOrder.size_0;
- logicalTargetIndex = $getLogicalRowIndex_0(this$static, dynamicCastJso($getLast(this$static.visualRowOrder))) - (removedVisualInside.end - removedVisualInside.start_0 - 1);
- $moveAndUpdateEscalatorRows(this$static, removedVisualInside, escalatorRowCount, logicalTargetIndex);
- iterator = $listIterator(this$static.visualRowOrder, removedVisualInside.start_0);
- rowTop = removedLogicalInside.start_0 * this$static.defaultRowHeight;
- for (i_0 = removedVisualInside.start_0; i_0 < escalatorRowCount - (removedVisualInside.end - removedVisualInside.start_0); i_0++) {
- tr = (checkCriticalElement(iterator.currentNode != iterator.this$01.tail) , iterator.lastNode = iterator.currentNode , iterator.currentNode = iterator.currentNode.next , ++iterator.currentIndex , dynamicCastJso(iterator.lastNode.value_0));
- this$static.this$01_1.position_0.set_1(tr, 0, rowTop);
- this$static.rowTopPositionMap.put(tr, new Double(rowTop));
- rowTop += this$static.defaultRowHeight;
- }
-}
-
-function $setBodyScrollPosition(this$static, scrollLeft, scrollTop){
- this$static.this$01.tBodyScrollLeft = scrollLeft;
- this$static.this$01.tBodyScrollTop = scrollTop;
- this$static.this$01.position_0.set_1(this$static.this$01.bodyElem, -this$static.this$01.tBodyScrollLeft, -this$static.this$01.tBodyScrollTop);
-}
-
-function $setStylePrimaryName_3(this$static, primaryStyleName){
- $setStylePrimaryName_2(this$static, primaryStyleName);
- setStylePrimaryName(this$static.root, primaryStyleName + '-body');
-}
-
-function $setTopRowLogicalIndex(this$static, topRowLogicalIndex){
- loggingIsEnabled() && undefined;
- this$static.topRowLogicalIndex = topRowLogicalIndex;
-}
-
-function $sortDomElements(this$static){
- var focusedRow, i_0, insertFirst, tr;
- focusedRow = $getEscalatorRowWithFocus(this$static);
- insertFirst = !focusedRow;
- i_0 = $listIterator(this$static.visualRowOrder, this$static.visualRowOrder.size_0);
- while (i_0.currentNode.prev != i_0.this$01.header) {
- tr = (checkCriticalElement(i_0.currentNode.prev != i_0.this$01.header) , i_0.lastNode = i_0.currentNode = i_0.currentNode.prev , --i_0.currentIndex , dynamicCastJso(i_0.lastNode.value_0));
- tr == focusedRow?(insertFirst = true):insertFirst?$insertFirst(this$static.root, tr):$insertAfter(this$static.root, tr, focusedRow);
- }
-}
-
-function $updateEscalatorRowsOnScroll(this$static){
- var aRowWasLeftBehind, end, logicalRowIndex, maxLogicalIndex, naiveNewLogicalIndex, originalRowsToMove, rowsToMove, rowsWereMoved, scrollTop, start_0, strayRow, targetVisualIndex, topLogicalIndex, topRowPos, viewportOffset;
- if (this$static.visualRowOrder.size_0 == 0) {
- return;
- }
- rowsWereMoved = false;
- topRowPos = $getRowTop(this$static, dynamicCastJso($getFirst(this$static.visualRowOrder)));
- scrollTop = this$static.this$01.tBodyScrollTop;
- viewportOffset = topRowPos - scrollTop;
- if (viewportOffset > 0) {
- originalRowsToMove = round_int(ceil_0(viewportOffset / this$static.defaultRowHeight));
- rowsToMove = min_1(originalRowsToMove, this$static.root.childNodes.length);
- end = this$static.root.childNodes.length;
- start_0 = end - rowsToMove;
- logicalRowIndex = round_int(scrollTop / this$static.defaultRowHeight);
- $moveAndUpdateEscalatorRows(this$static, new Range_0(start_0, end), 0, logicalRowIndex);
- loggingIsEnabled() && undefined;
- this$static.topRowLogicalIndex = logicalRowIndex;
- rowsWereMoved = true;
- }
- else if (viewportOffset + this$static.defaultRowHeight <= 0) {
- originalRowsToMove = round_int(abs_0(viewportOffset / this$static.defaultRowHeight));
- rowsToMove = min_1(originalRowsToMove, this$static.root.childNodes.length);
- rowsToMove < this$static.root.childNodes.length?(logicalRowIndex = $getLogicalRowIndex_0(this$static, dynamicCastJso($getLast(this$static.visualRowOrder))) + 1):(logicalRowIndex = round_int(scrollTop / this$static.defaultRowHeight));
- targetVisualIndex = this$static.root.childNodes.length;
- aRowWasLeftBehind = false;
- if (logicalRowIndex + rowsToMove > this$static.rows_0) {
- --rowsToMove;
- aRowWasLeftBehind = true;
- }
- $moveAndUpdateEscalatorRows(this$static, new Range_0(0, rowsToMove), targetVisualIndex, logicalRowIndex);
- if (aRowWasLeftBehind) {
- strayRow = new Range_0(0, 1);
- topLogicalIndex = this$static.rows_0 - this$static.visualRowOrder.size_0;
- $moveAndUpdateEscalatorRows(this$static, strayRow, 0, topLogicalIndex);
- }
- naiveNewLogicalIndex = this$static.topRowLogicalIndex + originalRowsToMove;
- maxLogicalIndex = this$static.rows_0 - this$static.visualRowOrder.size_0;
- loggingIsEnabled() && undefined;
- this$static.topRowLogicalIndex = naiveNewLogicalIndex < maxLogicalIndex?naiveNewLogicalIndex:maxLogicalIndex;
- rowsWereMoved = true;
- }
- if (rowsWereMoved) {
- $fireRowVisibilityChangeEvent(this$static.this$01);
- this$static.this$01.scroller.touchHandlerBundle.touches_0 == 0 && $reschedule(this$static.domSorter);
- }
-}
-
-function $updateTopRowLogicalIndex(this$static, diff){
- $setTopRowLogicalIndex(this$static, this$static.topRowLogicalIndex + diff);
-}
-
-function $verifyEscalatorCount(this$static){
- var addedRows, contentWillFit, firstRowMinTop, firstRowTop, i_0, index_0, iter, last, maxEscalatorRows, neededEscalatorRows, neededEscalatorRowsDiff, newLogicalIndex, nextLastLogicalIndex, oldScrollTop;
- if (!this$static.this$01.attached) {
- return;
- }
- maxEscalatorRows = $getMaxEscalatorRowCapacity(this$static);
- neededEscalatorRows = min_1(maxEscalatorRows, this$static.this$01.body_0.rows_0);
- neededEscalatorRowsDiff = neededEscalatorRows - this$static.visualRowOrder.size_0;
- if (neededEscalatorRowsDiff > 0) {
- index_0 = this$static.visualRowOrder.size_0;
- this$static.visualRowOrder.size_0 == 0?(nextLastLogicalIndex = 0):(nextLastLogicalIndex = $getLogicalRowIndex_0(this$static, dynamicCastJso($getLast(this$static.visualRowOrder))) + 1);
- contentWillFit = nextLastLogicalIndex < this$static.rows_0 - neededEscalatorRowsDiff;
- if (contentWillFit) {
- addedRows = $fillAndPopulateEscalatorRowsIfNeeded(this$static, index_0, neededEscalatorRowsDiff);
- $moveAndUpdateEscalatorRows(this$static, withLength(index_0, addedRows.array.length), index_0, nextLastLogicalIndex);
- }
- else {
- oldScrollTop = this$static.this$01.verticalScrollbar.scrollPos;
- $setScrollTop_0(this$static.this$01, 0);
- $onScroll(this$static.this$01.scroller);
- $fillAndPopulateEscalatorRowsIfNeeded(this$static, index_0, neededEscalatorRowsDiff);
- $setScrollTop_0(this$static.this$01, oldScrollTop);
- $onScroll(this$static.this$01.scroller);
- }
- }
- else if (neededEscalatorRowsDiff < 0) {
- iter = $listIterator(this$static.visualRowOrder, this$static.visualRowOrder.size_0);
- for (i_0 = 0; i_0 < -neededEscalatorRowsDiff; i_0++) {
- last = (checkCriticalElement(iter.currentNode.prev != iter.this$01.header) , iter.lastNode = iter.currentNode = iter.currentNode.prev , --iter.currentIndex , dynamicCastJso(iter.lastNode.value_0));
- $removeFromParent(last);
- $remove_13(iter);
- }
- if (this$static.visualRowOrder.size_0 != 0) {
- firstRowTop = $getRowTop(this$static, dynamicCastJso($getFirst(this$static.visualRowOrder)));
- firstRowMinTop = this$static.this$01.tBodyScrollTop - this$static.defaultRowHeight;
- if (firstRowTop < firstRowMinTop) {
- newLogicalIndex = $getLogicalRowIndex_0(this$static, dynamicCastJso($getLast(this$static.visualRowOrder))) + 1;
- $moveAndUpdateEscalatorRows(this$static, new Range_0(0, 1), this$static.visualRowOrder.size_0, newLogicalIndex);
- }
- }
- }
- neededEscalatorRowsDiff != 0 && $fireRowVisibilityChangeEvent(this$static.this$01);
-}
-
-function Escalator$BodyRowContainer(this$0, bodyElement){
- this.this$01 = this$0;
- Escalator$AbstractRowContainer.call(this, this$0, bodyElement);
- this.visualRowOrder = new LinkedList;
- this.topRowLogicalIndex = 0;
- this.domSorter = new Escalator$BodyRowContainer$DeferredDomSorter(this);
-}
-
-defineClass(259, 157, {}, Escalator$BodyRowContainer);
-_.getCell = function(element){
- var cell, rowElement;
- cell = $getCell(this, element);
- if (!cell) {
- return null;
- }
- rowElement = $getParentElement(cell.element);
- return new Cell($getLogicalRowIndex_0(this, rowElement), cell.column, cell.element);
-}
-;
-_.getCellElementTagName = function(){
- return 'td';
-}
-;
-_.getRowElement = function(index_0){
- return $getRowElement(this, index_0);
-}
-;
-_.getTrByVisualIndex = function(index_0){
- return $getTrByVisualIndex_0(this, index_0);
-}
-;
-_.paintInsertRows = function(index_0, numberOfRows){
- var addedRows, addedRowsAboveCurrentViewport, addedRowsBelowCurrentViewport, end, i_0, rowTop, rowsStillNeeded, start_0, tr, unupdatedLogicalStart, unupdatedVisual, visualOffset, visualTargetIndex, yDelta;
- if (numberOfRows == 0) {
- return;
- }
- addedRows = $fillAndPopulateEscalatorRowsIfNeeded(this, index_0, numberOfRows);
- $recalculateScrollbarsForVirtualViewport(this.this$01.scroller);
- addedRowsAboveCurrentViewport = index_0 * this.defaultRowHeight < this.this$01.verticalScrollbar.scrollPos;
- addedRowsBelowCurrentViewport = index_0 * this.defaultRowHeight > this.this$01.verticalScrollbar.scrollPos + $calculateHeight(this);
- if (addedRowsAboveCurrentViewport) {
- yDelta = numberOfRows * this.defaultRowHeight;
- $adjustScrollPosIgnoreEvents(this, yDelta);
- $setTopRowLogicalIndex(this, this.topRowLogicalIndex + numberOfRows);
- }
- else if (addedRowsBelowCurrentViewport)
- ;
- else {
- unupdatedLogicalStart = index_0 + addedRows.array.length;
- visualOffset = $getLogicalRowIndex_0(this, dynamicCastJso($getFirst(this.visualRowOrder)));
- rowsStillNeeded = numberOfRows - addedRows.array.length;
- unupdatedVisual = $convertToVisual(this, withLength(unupdatedLogicalStart, rowsStillNeeded));
- end = this.root.childNodes.length;
- start_0 = end - (unupdatedVisual.end - unupdatedVisual.start_0);
- visualTargetIndex = unupdatedLogicalStart - visualOffset;
- $moveAndUpdateEscalatorRows(this, new Range_0(start_0, end), visualTargetIndex, unupdatedLogicalStart);
- rowTop = (unupdatedLogicalStart + (end - start_0)) * this.defaultRowHeight;
- i_0 = $listIterator(this.visualRowOrder, visualTargetIndex + (end - start_0));
- while (i_0.currentNode != i_0.this$01.tail) {
- tr = (checkCriticalElement(i_0.currentNode != i_0.this$01.tail) , i_0.lastNode = i_0.currentNode , i_0.currentNode = i_0.currentNode.next , ++i_0.currentIndex , dynamicCastJso(i_0.lastNode.value_0));
- this.this$01_1.position_0.set_1(tr, 0, rowTop);
- this.rowTopPositionMap.put(tr, new Double(rowTop));
- rowTop += this.defaultRowHeight;
- }
- $fireRowVisibilityChangeEvent(this.this$01);
- $sortDomElements(this);
- }
-}
-;
-_.paintRemoveRows = function(index_0, numberOfRows){
- var allEscalatorRows, contentBottom, dirtyRowsStart, escalatorRowCount, escalatorRowsToRemove, firstLogicalRowHeight, firstVisualRowIsRemoved, i_0, i0, i1, left, logicalTargetIndex, newScrollTop, newTop, partitions, removalScrollsToShowFirstLogicalRow, removedAbove, removedLogicalInside, removedRowsRange, removedVisualInside, rowsLeft, rowsScrolled, rowsToUpdateDataOn, start_0, top_0, tr, viewportBottom, viewportRange, visualRefreshRange, yDelta;
- if (numberOfRows == 0) {
- return;
- }
- viewportRange = $getVisibleRowRange(this.this$01);
- removedRowsRange = withLength(index_0, numberOfRows);
- partitions = $partitionWith(removedRowsRange, viewportRange);
- removedAbove = partitions[0];
- removedLogicalInside = partitions[1];
- removedVisualInside = $convertToVisual(this, removedLogicalInside);
- firstVisualRowIsRemoved = removedVisualInside.start_0 < removedVisualInside.end && removedVisualInside.start_0 == 0;
- if (removedAbove.start_0 < removedAbove.end || firstVisualRowIsRemoved) {
- yDelta = (removedAbove.end - removedAbove.start_0) * this.defaultRowHeight;
- firstLogicalRowHeight = this.defaultRowHeight;
- removalScrollsToShowFirstLogicalRow = this.this$01.verticalScrollbar.scrollPos - yDelta < firstLogicalRowHeight;
- removedVisualInside.start_0 >= removedVisualInside.end && (!removalScrollsToShowFirstLogicalRow || !firstVisualRowIsRemoved)?$adjustScrollPosIgnoreEvents(this, -yDelta):removalScrollsToShowFirstLogicalRow && $adjustScrollPosIgnoreEvents(this, -this.this$01.verticalScrollbar.scrollPos);
- }
- if (removedVisualInside.start_0 < removedVisualInside.end) {
- escalatorRowCount = this.this$01.bodyElem.childNodes.length;
- rowsLeft = this.rows_0;
- if (rowsLeft < escalatorRowCount) {
- escalatorRowsToRemove = escalatorRowCount - rowsLeft;
- for (i0 = 0; i0 < escalatorRowsToRemove; i0++) {
- tr = dynamicCastJso($remove_5(this.visualRowOrder, removedVisualInside.start_0));
- $paintRemoveRow(this, tr, index_0);
- this.rowTopPositionMap.remove_2(tr);
- }
- escalatorRowCount -= escalatorRowsToRemove;
- $setBodyScrollPosition(this.this$01.body_0, this.this$01.tBodyScrollLeft, 0);
- dirtyRowsStart = removedLogicalInside.start_0;
- for (i1 = dirtyRowsStart; i1 < escalatorRowCount; i1++) {
- tr = dynamicCastJso($get_5(this.visualRowOrder, i1));
- $setRowPosition(this, tr, i1 * this.defaultRowHeight);
- }
- rowsToUpdateDataOn = numberOfRows - escalatorRowsToRemove;
- start_0 = 0 > escalatorRowCount - rowsToUpdateDataOn?0:escalatorRowCount - rowsToUpdateDataOn;
- for (i_0 = start_0; i_0 < escalatorRowCount; i_0++) {
- tr = dynamicCastJso($get_5(this.visualRowOrder, i_0));
- $refreshRow(this, tr, i_0, withLength(0, this.this$01_1.columnConfiguration.columns.array.length));
- }
- }
- else {
- contentBottom = this.rows_0 * this.defaultRowHeight;
- viewportBottom = this.this$01.tBodyScrollTop + $calculateHeight(this);
- if (viewportBottom <= contentBottom) {
- $paintRemoveRowsAtMiddle(this, removedLogicalInside, removedVisualInside);
- }
- else if (removedVisualInside.start_0 <= 0 && 0 < removedVisualInside.end && numberOfRows >= this.visualRowOrder.size_0) {
- left = this.this$01.horizontalScrollbar.scrollPos;
- top_0 = contentBottom - this.visualRowOrder.size_0 * this.defaultRowHeight;
- $setBodyScrollPosition(this, left, top_0);
- allEscalatorRows = withLength(0, this.visualRowOrder.size_0);
- logicalTargetIndex = this.rows_0 - (allEscalatorRows.end - allEscalatorRows.start_0);
- $moveAndUpdateEscalatorRows(this, allEscalatorRows, 0, logicalTargetIndex);
- }
- else if (contentBottom + numberOfRows * this.defaultRowHeight - viewportBottom < this.defaultRowHeight) {
- $paintRemoveRowsAtBottom(this, removedLogicalInside, removedVisualInside);
- $updateTopRowLogicalIndex(this, -(removedLogicalInside.end - removedLogicalInside.start_0));
- }
- else {
- newTop = $getRowTop(this, dynamicCastJso($get_5(this.visualRowOrder, removedVisualInside.start_0)));
- for (i0 = 0; i0 < removedVisualInside.end - removedVisualInside.start_0; i0++) {
- tr = dynamicCastJso($remove_5(this.visualRowOrder, removedVisualInside.start_0));
- $addLast(this.visualRowOrder, tr);
- }
- for (i_0 = removedVisualInside.start_0; i_0 < escalatorRowCount; i_0++) {
- tr = dynamicCastJso($get_5(this.visualRowOrder, i_0));
- $setRowPosition(this, tr, round_int(newTop));
- newTop += this.defaultRowHeight;
- }
- newScrollTop = contentBottom - $calculateHeight(this);
- $setScrollTop_0(this.this$01, newScrollTop);
- $onScroll(this.this$01.scroller);
- $moveAndUpdateEscalatorRows(this, new Range_0(escalatorRowCount - 1, escalatorRowCount - 1 + 1), 0, $getLogicalRowIndex_0(this, dynamicCastJso($getFirst(this.visualRowOrder))) - 1);
- $setTopRowLogicalIndex(this, this.topRowLogicalIndex + -1);
- rowsScrolled = round_int(ceil_0((viewportBottom - contentBottom) / this.defaultRowHeight));
- start_0 = escalatorRowCount - (removedVisualInside.end - removedVisualInside.start_0 - rowsScrolled);
- visualRefreshRange = new Range_0(start_0, escalatorRowCount);
- logicalTargetIndex = $getLogicalRowIndex_0(this, dynamicCastJso($getFirst(this.visualRowOrder))) + start_0;
- $moveAndUpdateEscalatorRows(this, visualRefreshRange, start_0, logicalTargetIndex);
- }
- }
- $fireRowVisibilityChangeEvent(this.this$01);
- $sortDomElements(this);
- }
- $updateTopRowLogicalIndex(this, -(removedAbove.end - removedAbove.start_0));
- $recalculateScrollbarsForVirtualViewport(this.this$01.scroller);
-}
-;
-_.reapplyDefaultRowHeights = function(){
- var i_0, logicalIndex, logicalLogical, scrollRatio, tr;
- if (this.visualRowOrder.size_0 == 0) {
- return;
- }
- for (i_0 = 0; i_0 < this.visualRowOrder.size_0; i_0++) {
- tr = dynamicCastJso($get_5(this.visualRowOrder, i_0));
- $reapplyRowHeight(tr, this.defaultRowHeight);
- logicalIndex = this.topRowLogicalIndex + i_0;
- $setRowPosition(this, tr, logicalIndex * this.defaultRowHeight);
- }
- scrollRatio = this.this$01.verticalScrollbar.scrollPos / parseCssDimensionToPixels($getProperty(this.this$01.verticalScrollbar.scrollSizeElement.style, 'height'));
- $recalculateScrollbarsForVirtualViewport(this.this$01.scroller);
- $setScrollPos(this.this$01.verticalScrollbar, round_int(this.defaultRowHeight * this.rows_0 * scrollRatio));
- $setBodyScrollPosition(this, this.this$01.horizontalScrollbar.scrollPos, this.this$01.verticalScrollbar.scrollPos);
- $onScroll(this.this$01.scroller);
- $verifyEscalatorCount(this);
- logicalLogical = round_int($getRowTop(this, dynamicCastJso($getFirst(this.visualRowOrder))) / this.defaultRowHeight);
- loggingIsEnabled() && undefined;
- this.topRowLogicalIndex = logicalLogical;
-}
-;
-_.recalculateSectionHeight = function(){
-}
-;
-_.refreshCells = function(logicalRowRange, colRange){
- var firstLogicalRowIndex, rowNumber, visualRange;
- visualRange = $convertToVisual(this, logicalRowRange);
- if (visualRange.start_0 < visualRange.end) {
- firstLogicalRowIndex = $getLogicalRowIndex_0(this, dynamicCastJso($getFirst(this.visualRowOrder)));
- for (rowNumber = visualRange.start_0; rowNumber < visualRange.end; rowNumber++) {
- $refreshRow(this, dynamicCastJso($get_5(this.visualRowOrder, rowNumber)), firstLogicalRowIndex + rowNumber, colRange);
- }
- }
-}
-;
-_.topRowLogicalIndex = 0;
-var Lcom_vaadin_client_widgets_Escalator$BodyRowContainer_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/BodyRowContainer', 259, Lcom_vaadin_client_widgets_Escalator$AbstractRowContainer_2_classLit);
-function $reschedule(this$static){
- $resetConditions(this$static);
- this$static.animationHandle = (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0).requestAnimationFrame_0(this$static.frameCounter, null);
-}
-
-function $resetConditions(this$static){
- if (this$static.animationHandle) {
- this$static.animationHandle.cancel();
- this$static.animationHandle = null;
- }
- this$static.startTime = now_1();
- this$static.framesPassed = 0;
-}
-
-function $sortIfConditionsMet(this$static){
- var conditionsMet, enoughFramesHavePassed, enoughTimeHasPassed;
- enoughFramesHavePassed = this$static.framesPassed >= 3;
- enoughTimeHasPassed = now_1() - this$static.startTime >= 50;
- conditionsMet = enoughFramesHavePassed && enoughTimeHasPassed;
- if (conditionsMet) {
- $resetConditions(this$static);
- $sortDomElements(this$static.this$11);
- }
- return conditionsMet;
-}
-
-function Escalator$BodyRowContainer$DeferredDomSorter(this$1){
- this.this$11 = this$1;
- this.frameCounter = new Escalator$BodyRowContainer$DeferredDomSorter$1(this);
-}
-
-defineClass(260, 1, {}, Escalator$BodyRowContainer$DeferredDomSorter);
-_.framesPassed = 0;
-_.startTime = 0;
-var Lcom_vaadin_client_widgets_Escalator$BodyRowContainer$DeferredDomSorter_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/BodyRowContainer/DeferredDomSorter', 260, Ljava_lang_Object_2_classLit);
-function Escalator$BodyRowContainer$DeferredDomSorter$1(this$2){
- this.this$21 = this$2;
-}
-
-defineClass(265, 1, {}, Escalator$BodyRowContainer$DeferredDomSorter$1);
-_.execute = function(timestamp){
- var domWasSorted;
- ++this.this$21.framesPassed;
- domWasSorted = $sortIfConditionsMet(this.this$21);
- domWasSorted || (this.this$21.animationHandle = (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0).requestAnimationFrame_0(this, null));
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$BodyRowContainer$DeferredDomSorter$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/BodyRowContainer/DeferredDomSorter/1', 265, Ljava_lang_Object_2_classLit);
-function $reschedule_0(this$static){
- if (!this$static.isScheduled) {
- this$static.isScheduled = true;
- $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), this$static.widthCommand);
- }
-}
-
-function Escalator$ColumnAutoWidthAssignScheduler(this$0){
- this.this$01 = this$0;
- this.widthCommand = new Escalator$ColumnAutoWidthAssignScheduler$1(this);
-}
-
-defineClass(256, 1, {}, Escalator$ColumnAutoWidthAssignScheduler);
-_.isScheduled = false;
-var Lcom_vaadin_client_widgets_Escalator$ColumnAutoWidthAssignScheduler_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/ColumnAutoWidthAssignScheduler', 256, Ljava_lang_Object_2_classLit);
-function Escalator$ColumnAutoWidthAssignScheduler$1(this$1){
- this.this$11 = this$1;
-}
-
-defineClass(263, 1, {}, Escalator$ColumnAutoWidthAssignScheduler$1);
-_.execute_1 = function(){
- var cc, col, column;
- if (!this.this$11.isScheduled) {
- return;
- }
- this.this$11.isScheduled = false;
- cc = this.this$11.this$01.columnConfiguration;
- for (col = 0; col < cc.columns.array.length; col++) {
- column = dynamicCast($get_6(cc.columns, col), 54);
- if (!column.widthHasBeenFinalized) {
- $setColumnWidth(cc, col, -1);
- column.this$11.this$01.columnAutoWidthAssignScheduler.isScheduled = false;
- column.widthHasBeenFinalized = true;
- }
- }
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$ColumnAutoWidthAssignScheduler$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/ColumnAutoWidthAssignScheduler/1', 263, Ljava_lang_Object_2_classLit);
-function $assertArgumentsAreValidAndWithinRange_0(this$static, index_0){
- if (index_0 < 0 || index_0 + 1 > this$static.columns.array.length) {
- throw new IndexOutOfBoundsException_0('The given column range (' + index_0 + '..' + (index_0 + 1) + ') was outside of the current ' + 'number of columns (' + this$static.columns.array.length + ')');
- }
-}
-
-function $calculateRowWidth(this$static){
- return $getCalculatedColumnsWidth(this$static, new Range_0(0, this$static.columns.array.length));
-}
-
-function $checkValidColumnIndex(this$static, index_0){
- if (!$contains_0(withLength(0, this$static.columns.array.length), index_0)) {
- throw new IllegalArgumentException_0('The given column index (' + index_0 + ') does not exist');
- }
-}
-
-function $getCalculatedColumnWidths(this$static){
- var i_0;
- if (this$static.widthsArray == null || this$static.widthsArray.length != this$static.columns.array.length) {
- this$static.widthsArray = initDim(D_classLit, {3:1}, 0, this$static.columns.array.length, 7, 1);
- for (i_0 = 0; i_0 < this$static.columns.array.length; i_0++) {
- this$static.widthsArray[i_0] = $getCalculatedWidth(dynamicCast($get_6(this$static.columns, i_0), 54));
- }
- }
- return this$static.widthsArray;
-}
-
-function $getCalculatedColumnsWidth(this$static, columns){
- var columnWidthActual, i_0, sum;
- sum = 0;
- for (i_0 = columns.start_0; i_0 < columns.end; i_0++) {
- columnWidthActual = $getCalculatedWidth(dynamicCast($get_6(this$static.columns, i_0), 54));
- sum += columnWidthActual;
- }
- return sum;
-}
-
-function $getColumnWidthActual(this$static, index_0){
- return $getCalculatedWidth(dynamicCast($get_6(this$static.columns, index_0), 54));
-}
-
-function $getMaxCellWidth_0(this$static, colIndex){
- var bodyWidth, footerWidth, headerWidth, maxWidth;
- headerWidth = $getMaxCellWidth(this$static.this$01.header, colIndex);
- bodyWidth = $getMaxCellWidth(this$static.this$01.body_0, colIndex);
- footerWidth = $getMaxCellWidth(this$static.this$01.footer, colIndex);
- maxWidth = headerWidth > (bodyWidth > footerWidth?bodyWidth:footerWidth)?headerWidth:bodyWidth > footerWidth?bodyWidth:footerWidth;
- return maxWidth;
-}
-
-function $insertColumns(this$static, index_0){
- var col, columnsWereAddedToTheLeftOfViewport, frozen, i_0, insertedColumnsWidth, pixelsToInsertedColumn, scrollbarIsNowNeeded, scrollbarWasNeeded;
- if (index_0 < 0 || index_0 > this$static.columns.array.length) {
- throw new IndexOutOfBoundsException_0('The given index(' + index_0 + ') was outside of the current number of columns (0..' + this$static.columns.array.length + ')');
- }
- $addCells(this$static.this$01.flyweightRow, index_0);
- for (i_0 = 0; i_0 < 1; i_0++) {
- $add_5(this$static.columns, index_0, new Escalator$ColumnConfigurationImpl$Column(this$static));
- }
- frozen = index_0 < this$static.frozenColumns;
- frozen && (this$static.frozenColumns += 1);
- scrollbarWasNeeded = parseCssDimensionToPixels($getProperty(this$static.this$01.horizontalScrollbar.root.style, 'width')) < parseCssDimensionToPixels($getProperty(this$static.this$01.horizontalScrollbar.scrollSizeElement.style, 'width'));
- $recalculateScrollbarsForVirtualViewport(this$static.this$01.scroller);
- scrollbarIsNowNeeded = parseCssDimensionToPixels($getProperty(this$static.this$01.horizontalScrollbar.root.style, 'width')) < parseCssDimensionToPixels($getProperty(this$static.this$01.horizontalScrollbar.scrollSizeElement.style, 'width'));
- !scrollbarWasNeeded && scrollbarIsNowNeeded && $verifyEscalatorCount(this$static.this$01.body_0);
- $paintInsertColumns(this$static.this$01.header, index_0, frozen);
- $paintInsertColumns(this$static.this$01.body_0, index_0, frozen);
- $paintInsertColumns(this$static.this$01.footer, index_0, frozen);
- if (this$static.this$01.header.rows_0 > 0 || this$static.this$01.body_0.rows_0 > 0 || this$static.this$01.footer.rows_0 > 0) {
- for (col = index_0; col < index_0 + 1; col++) {
- $setColumnWidth(this$static.this$01.columnConfiguration, col, -1);
- $widthIsFinalized(dynamicCast($get_6(this$static.this$01.columnConfiguration.columns, col), 54));
- }
- }
- pixelsToInsertedColumn = $getCalculatedColumnsWidth(this$static.this$01.columnConfiguration, withLength(0, index_0));
- columnsWereAddedToTheLeftOfViewport = this$static.this$01.scroller.lastScrollLeft > pixelsToInsertedColumn;
- if (columnsWereAddedToTheLeftOfViewport) {
- insertedColumnsWidth = $getCalculatedColumnsWidth(this$static.this$01.columnConfiguration, withLength(index_0, 1));
- $setScrollPos(this$static.this$01.horizontalScrollbar, this$static.this$01.scroller.lastScrollLeft + insertedColumnsWidth);
- }
-}
-
-function $reapplyRowWidths_0(container){
- container.rows_0 > 0 && $reapplyRowWidths(container);
-}
-
-function $removeColumns(this$static, index_0){
- $assertArgumentsAreValidAndWithinRange_0(this$static, index_0);
- $removeColumnsAdjustScrollbar(this$static, index_0);
- $paintRemoveColumns(this$static.this$01.header, index_0);
- $paintRemoveColumns(this$static.this$01.body_0, index_0);
- $paintRemoveColumns(this$static.this$01.footer, index_0);
- $removeCells(this$static.this$01.flyweightRow, index_0);
- $clear_0(new AbstractList$SubList(this$static.columns, index_0, index_0 + 1));
- index_0 < this$static.frozenColumns && (index_0 + 1 < this$static.frozenColumns?(this$static.frozenColumns -= 1):(this$static.frozenColumns = index_0));
- $recalculateScrollbarsForVirtualViewport(this$static.this$01.scroller);
- $verifyEscalatorCount(this$static.this$01.body_0);
- if (this$static.this$01.columnConfiguration.columns.array.length > 0) {
- $reapplyRowWidths_0(this$static.this$01.header);
- $reapplyRowWidths_0(this$static.this$01.body_0);
- $reapplyRowWidths_0(this$static.this$01.footer);
- }
-}
-
-function $removeColumnsAdjustScrollbar(this$static, index_0){
- var adjustedScrollLeft, leftPosOfFirstColumnToRemove, scrollLeft, widthOfColumnsToRemove;
- if (parseCssDimensionToPixels($getProperty(this$static.this$01.horizontalScrollbar.root.style, 'width')) >= parseCssDimensionToPixels($getProperty(this$static.this$01.horizontalScrollbar.scrollSizeElement.style, 'width'))) {
- return;
- }
- leftPosOfFirstColumnToRemove = $getCalculatedColumnsWidth(this$static, new Range_0(0, index_0));
- widthOfColumnsToRemove = $getCalculatedColumnsWidth(this$static, withLength(index_0, 1));
- scrollLeft = this$static.this$01.horizontalScrollbar.scrollPos;
- if (scrollLeft <= leftPosOfFirstColumnToRemove) {
- return;
- }
- adjustedScrollLeft = leftPosOfFirstColumnToRemove > scrollLeft - widthOfColumnsToRemove?leftPosOfFirstColumnToRemove:scrollLeft - widthOfColumnsToRemove;
- $setScrollPos(this$static.this$01.horizontalScrollbar, adjustedScrollLeft);
-}
-
-function $setColumnWidth(this$static, index_0, px){
- $checkValidColumnIndex(this$static, index_0);
- $setWidth_2(dynamicCast($get_6(this$static.columns, index_0), 54), px);
- $widthIsFinalized(dynamicCast($get_6(this$static.columns, index_0), 54));
- this$static.widthsArray = null;
- $reapplyColumnWidths(this$static.this$01.header);
- $reapplyColumnWidths(this$static.this$01.body_0);
- $reapplyColumnWidths(this$static.this$01.footer);
- $recalculateElementSizes(this$static.this$01);
-}
-
-function $setFrozenColumnCount(this$static, count){
- var col, firstAffectedCol, firstUnaffectedCol, frozen, oldCount;
- if (count < 0 || count > this$static.columns.array.length) {
- throw new IllegalArgumentException_0('count must be between 0 and the current number of columns (' + this$static.columns.array.length + ')');
- }
- oldCount = this$static.frozenColumns;
- if (count == oldCount) {
- return;
- }
- this$static.frozenColumns = count;
- if ($hasSomethingInDom(this$static.this$01)) {
- frozen = count > oldCount;
- if (frozen) {
- firstAffectedCol = oldCount;
- firstUnaffectedCol = count;
- }
- else {
- firstAffectedCol = count;
- firstUnaffectedCol = oldCount;
- }
- for (col = firstAffectedCol; col < firstUnaffectedCol; col++) {
- $setColumnFrozen(this$static.this$01.header, col, frozen);
- $setColumnFrozen(this$static.this$01.body_0, col, frozen);
- $setColumnFrozen(this$static.this$01.footer, col, frozen);
- }
- }
- $recalculateScrollbarsForVirtualViewport(this$static.this$01.scroller);
-}
-
-function Escalator$ColumnConfigurationImpl(this$0){
- this.this$01 = this$0;
- this.columns = new ArrayList;
-}
-
-defineClass(261, 1, {}, Escalator$ColumnConfigurationImpl);
-_.frozenColumns = 0;
-_.widthsArray = null;
-var Lcom_vaadin_client_widgets_Escalator$ColumnConfigurationImpl_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/ColumnConfigurationImpl', 261, Ljava_lang_Object_2_classLit);
-function $getCalculatedWidth(this$static){
- return this$static.measuringRequested?-1:this$static.calculatedWidth;
-}
-
-function $measureAndSetWidthIfNeeded(this$static){
- if (this$static.measuringRequested) {
- this$static.measuringRequested = false;
- $setWidth_2(this$static, this$static.definedWidth);
- return true;
- }
- return false;
-}
-
-function $setWidth_2(this$static, px){
- this$static.definedWidth = px;
- px < 0?this$static.this$11.this$01.attached?(this$static.calculatedWidth = $getMaxCellWidth_0(this$static.this$11, $indexOf_3(this$static.this$11.columns, this$static, 0))):(this$static.measuringRequested = true):(this$static.calculatedWidth = px);
-}
-
-function $widthIsFinalized(this$static){
- this$static.this$11.this$01.columnAutoWidthAssignScheduler.isScheduled = false;
- this$static.widthHasBeenFinalized = true;
-}
-
-function Escalator$ColumnConfigurationImpl$Column(this$1){
- this.this$11 = this$1;
-}
-
-defineClass(54, 1, {54:1}, Escalator$ColumnConfigurationImpl$Column);
-_.calculatedWidth = 100;
-_.definedWidth = -1;
-_.measuringRequested = false;
-_.widthHasBeenFinalized = false;
-var Lcom_vaadin_client_widgets_Escalator$ColumnConfigurationImpl$Column_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/ColumnConfigurationImpl/Column', 54, Ljava_lang_Object_2_classLit);
-function Escalator$FlickScrollAnimator(this$0, deltaX, deltaY, lastTime){
- var currentTimeMillis, snapDeltas;
- this.this$01 = this$0;
- currentTimeMillis = now_1();
- this.velX = (deltaX / (currentTimeMillis - lastTime) < 7?deltaX / (currentTimeMillis - lastTime):7) > -7?deltaX / (currentTimeMillis - lastTime) < 7?deltaX / (currentTimeMillis - lastTime):7:-7;
- this.velY = (deltaY / (currentTimeMillis - lastTime) < 7?deltaY / (currentTimeMillis - lastTime):7) > -7?deltaY / (currentTimeMillis - lastTime) < 7?deltaY / (currentTimeMillis - lastTime):7:-7;
- this.lastLeft = this$0.horizontalScrollbar.scrollPos;
- this.lastTop = this$0.verticalScrollbar.scrollPos;
- snapDeltas = snapDeltas_0(this.velX, this.velY, ($clinit_Escalator() , RATIO_OF_30_DEGREES));
- this.velX = snapDeltas[0];
- this.velY = snapDeltas[1];
- if (this.velX * this.velX + this.velY * this.velY > 0.005) {
- this.millisLeft = 1500;
- this.xFric = this.velX / this.millisLeft;
- this.yFric = this.velY / this.millisLeft;
- }
- else {
- this.millisLeft = 0;
- }
-}
-
-defineClass(254, 1, {}, Escalator$FlickScrollAnimator);
-_.execute = function(doNotUseThisTimestamp){
- var currentLeft, currentTop, left, timeDiff, timestamp, top_0;
- if (this.millisLeft <= 0 || this.cancelled) {
- this.this$01.scroller.currentFlickScroller = null;
- return;
- }
- timestamp = now_1();
- if (this.prevTime == 0) {
- this.prevTime = timestamp;
- (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0).requestAnimationFrame_0(this, null);
- return;
- }
- currentLeft = this.this$01.horizontalScrollbar.scrollPos;
- currentTop = this.this$01.verticalScrollbar.scrollPos;
- timeDiff = timestamp - this.prevTime;
- left = currentLeft - this.velX * timeDiff;
- $setScrollLeft_1(this.this$01, left);
- this.velX -= this.xFric * timeDiff;
- top_0 = currentTop - this.velY * timeDiff;
- $setScrollTop_0(this.this$01, top_0);
- this.velY -= this.yFric * timeDiff;
- this.lastLeft == this.this$01.horizontalScrollbar.scrollPos && this.lastTop == this.this$01.verticalScrollbar.scrollPos && (this.cancelled = true);
- this.prevTime = timestamp;
- this.millisLeft = round_int(this.millisLeft - timeDiff);
- this.lastLeft = currentLeft;
- this.lastTop = currentTop;
- (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0).requestAnimationFrame_0(this, null);
-}
-;
-_.cancelled = false;
-_.lastLeft = 0;
-_.lastTop = 0;
-_.millisLeft = 0;
-_.prevTime = 0;
-_.velX = 0;
-_.velY = 0;
-_.xFric = 0;
-_.yFric = 0;
-var Lcom_vaadin_client_widgets_Escalator$FlickScrollAnimator_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/FlickScrollAnimator', 254, Ljava_lang_Object_2_classLit);
-function $setStylePrimaryName_4(this$static, primaryStyleName){
- $setStylePrimaryName_2(this$static, primaryStyleName);
- setStylePrimaryName(this$static.root, primaryStyleName + '-footer');
-}
-
-function Escalator$FooterRowContainer(this$0, footElement){
- this.this$01 = this$0;
- Escalator$AbstractStaticRowContainer.call(this, this$0, footElement);
-}
-
-defineClass(258, 158, {}, Escalator$FooterRowContainer);
-_.getCellElementTagName = function(){
- return 'td';
-}
-;
-_.sectionHeightCalculated = function(){
- var horizontalScrollbarNeeded, vscrollHeight;
- vscrollHeight = round_int(floor_0(this.this$01.heightOfEscalator - this.this$01.header.heightOfSection - this.this$01.footer.heightOfSection));
- horizontalScrollbarNeeded = $calculateRowWidth(this.this$01.columnConfiguration) > this.this$01.widthOfEscalator;
- horizontalScrollbarNeeded && (vscrollHeight = round_int(vscrollHeight - $getScrollbarThickness(this.this$01.horizontalScrollbar)));
- this.this$01.footerDeco.style['height'] = this.this$01.footer.heightOfSection + ($clinit_Style$Unit() , 'px');
- $setOffsetSize(this.this$01.verticalScrollbar, vscrollHeight);
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$FooterRowContainer_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/FooterRowContainer', 258, Lcom_vaadin_client_widgets_Escalator$AbstractStaticRowContainer_2_classLit);
-function $setStylePrimaryName_5(this$static, primaryStyleName){
- $setStylePrimaryName_2(this$static, primaryStyleName);
- setStylePrimaryName(this$static.root, primaryStyleName + '-header');
-}
-
-function Escalator$HeaderRowContainer(this$0, headElement){
- this.this$01 = this$0;
- Escalator$AbstractStaticRowContainer.call(this, this$0, headElement);
-}
-
-defineClass(257, 158, {}, Escalator$HeaderRowContainer);
-_.getCellElementTagName = function(){
- return 'th';
-}
-;
-_.sectionHeightCalculated = function(){
- this.this$01.bodyElem.style['marginTop'] = this.heightOfSection + ($clinit_Style$Unit() , 'px');
- this.this$01.verticalScrollbar.root.style['top'] = this.heightOfSection + 'px';
- this.this$01.headerDeco.style['height'] = this.heightOfSection + 'px';
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$HeaderRowContainer_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/HeaderRowContainer', 257, Lcom_vaadin_client_widgets_Escalator$AbstractStaticRowContainer_2_classLit);
-function moveScrollFromEvent(escalator, deltaX, deltaY, event_0){
- var warrantedXScroll, warrantedYScroll;
- isNaN(deltaX) || $setScrollPosByDelta(escalator.horizontalScrollbar, deltaX);
- isNaN(deltaY) || $setScrollPosByDelta(escalator.verticalScrollbar, deltaY);
- warrantedYScroll = deltaY != 0 && $showsScrollHandle(escalator.verticalScrollbar);
- warrantedXScroll = deltaX != 0 && $showsScrollHandle(escalator.horizontalScrollbar);
- (warrantedYScroll || warrantedXScroll) && $eventPreventDefault(($clinit_DOMImpl() , event_0));
-}
-
-function $getTouchEndHandler(this$static){
- var self_0 = this$static;
- return $entry(function(e){
- self_0.touchEnd(e);
- }
- );
-}
-
-function $getTouchMoveHandler(this$static){
- var self_0 = this$static;
- return $entry(function(e){
- self_0.touchMove(e);
- }
- );
-}
-
-function $getTouchStartHandler(this$static){
- var self_0 = this$static;
- return $entry(function(e){
- self_0.touchStart(e);
- }
- );
-}
-
-function Escalator$JsniUtil$TouchHandlerBundle(escalator){
- this.mover = new Escalator$JsniUtil$TouchHandlerBundle$1(this);
- this.escalator = escalator;
-}
-
-defineClass(253, 1, {}, Escalator$JsniUtil$TouchHandlerBundle);
-_.touchEnd = function(event_0){
- this.touches_0 = $getTouches(event_0).length;
- if (this.touches_0 == 0) {
- $handleFlickScroll(this.escalator.scroller, this.deltaX_0, this.deltaY_0, this.lastTime);
- $reschedule(this.escalator.body_0.domSorter);
- }
-}
-;
-_.touchMove = function(event_0){
- var lastArg;
- this.latestTouchMoveEvent = event_0;
- !!this.animationHandle && this.animationHandle.cancel();
- this.animationHandle = (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0).requestAnimationFrame_0(this.mover, this.escalator.bodyElem);
- $preventDefault(event_0);
- $execute_1((lastArg = this.mover , now_1() , lastArg));
-}
-;
-_.touchStart = function(event_0){
- this.touches_0 = $getTouches(event_0).length;
- if (this.touches_0 != 1) {
- return;
- }
- $cancelFlickScroll(this.escalator.scroller);
- this.lastX = $getPageX(event_0);
- this.lastY = $getPageY(event_0);
- this.snappedScrollEnabled = true;
-}
-;
-_.deltaX_0 = 0;
-_.deltaY_0 = 0;
-_.lastTime = 0;
-_.lastX = 0;
-_.lastY = 0;
-_.snappedScrollEnabled = true;
-_.touches_0 = 0;
-var Lcom_vaadin_client_widgets_Escalator$JsniUtil$TouchHandlerBundle_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/JsniUtil/TouchHandlerBundle', 253, Ljava_lang_Object_2_classLit);
-function $execute_1(this$static){
- var oldDeltaX, oldDeltaY, snapped, x_0, y_0;
- if (this$static.this$21.touches_0 != 1) {
- return;
- }
- x_0 = $getPageX(this$static.this$21.latestTouchMoveEvent);
- y_0 = $getPageY(this$static.this$21.latestTouchMoveEvent);
- this$static.this$21.deltaX_0 = x_0 - this$static.this$21.lastX;
- this$static.this$21.deltaY_0 = y_0 - this$static.this$21.lastY;
- this$static.this$21.lastX = x_0;
- this$static.this$21.lastY = y_0;
- this$static.this$21.lastTime = now_1();
- if (this$static.this$21.snappedScrollEnabled) {
- oldDeltaX = this$static.this$21.deltaX_0;
- oldDeltaY = this$static.this$21.deltaY_0;
- snapped = snapDeltas_0(this$static.this$21.deltaX_0, this$static.this$21.deltaY_0, ($clinit_Escalator() , RATIO_OF_40_DEGREES));
- this$static.this$21.deltaX_0 = snapped[0];
- this$static.this$21.deltaY_0 = snapped[1];
- oldDeltaX != 0 && this$static.this$21.deltaX_0 == oldDeltaX && oldDeltaY != 0 && this$static.this$21.deltaY_0 == oldDeltaY && (this$static.this$21.snappedScrollEnabled = false);
- }
- moveScrollFromEvent(this$static.this$21.escalator, -this$static.this$21.deltaX_0, -this$static.this$21.deltaY_0, this$static.this$21.latestTouchMoveEvent);
-}
-
-function Escalator$JsniUtil$TouchHandlerBundle$1(this$2){
- this.this$21 = this$2;
-}
-
-defineClass(262, 1, {}, Escalator$JsniUtil$TouchHandlerBundle$1);
-_.execute = function(doNotUseThisTimestamp){
- $execute_1(this);
-}
-;
-var Lcom_vaadin_client_widgets_Escalator$JsniUtil$TouchHandlerBundle$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/JsniUtil/TouchHandlerBundle/1', 262, Ljava_lang_Object_2_classLit);
-function $getPageX(this$static){
- return this$static.targetTouches[0].pageX;
-}
-
-function $getPageY(this$static){
- return this$static.targetTouches[0].pageY;
-}
-
-defineClass(251, 1, {});
-var Lcom_vaadin_client_widgets_JsniWorkaround_2_classLit = createForClass('com.vaadin.client.widgets', 'JsniWorkaround', 251, Ljava_lang_Object_2_classLit);
-function $attachMousewheelListener(this$static, element){
- if (element.addEventListener) {
- var eventName = element.onwheel === undefined?'mousewheel':'wheel';
- element.addEventListener(eventName, this$static.mousewheelListenerFunction);
- }
- else {
- element.attachEvent('onmousewheel', this$static.mousewheelListenerFunction);
- }
-}
-
-function $attachScrollListener(this$static, element){
- element.addEventListener?element.addEventListener('scroll', this$static.scrollListenerFunction):element.attachEvent('onscroll', this$static.scrollListenerFunction);
-}
-
-function $attachTouchListeners(this$static, element){
- if (element.addEventListener) {
- element.addEventListener('touchstart', this$static.touchStartFunction);
- element.addEventListener('touchmove', this$static.touchMoveFunction);
- element.addEventListener('touchend', this$static.touchEndFunction);
- element.addEventListener('touchcancel', this$static.touchEndFunction);
- }
-}
-
-function $cancelFlickScroll(this$static){
- !!this$static.currentFlickScroller && (this$static.currentFlickScroller.cancelled = true);
-}
-
-function $createMousewheelListenerFunction(esc){
- return $entry(function(e){
- var deltaX = e.deltaX?e.deltaX:-0.5 * e.wheelDeltaX;
- var deltaY = e.deltaY?e.deltaY:-0.5 * e.wheelDeltaY;
- isNaN(deltaY) && (deltaY = -0.5 * e.wheelDelta);
- moveScrollFromEvent(esc, deltaX, deltaY, e);
- }
- );
-}
-
-function $createScrollListenerFunction(esc){
- var vScroll = esc.verticalScrollbar;
- var vScrollElem = vScroll.getElement();
- var hScroll = esc.horizontalScrollbar;
- var hScrollElem = hScroll.getElement();
- return $entry(function(e){
- var target = e.target || e.srcElement;
- target === vScrollElem?vScroll.updateScrollPosFromDom():target === hScrollElem?hScroll.updateScrollPosFromDom():$wnd.console.error('unexpected scroll target: ' + target);
- }
- );
-}
-
-function $detachMousewheelListener(this$static, element){
- if (element.addEventListener) {
- var eventName = element.onwheel === undefined?'mousewheel':'wheel';
- element.removeEventListener(eventName, this$static.mousewheelListenerFunction);
- }
- else {
- element.detachEvent('onmousewheel', this$static.mousewheelListenerFunction);
- }
-}
-
-function $detachScrollListener(this$static, element){
- element.addEventListener?element.removeEventListener('scroll', this$static.scrollListenerFunction):element.detachEvent('onscroll', this$static.scrollListenerFunction);
-}
-
-function $detachTouchListeners(this$static, element){
- if (element.removeEventListener) {
- element.removeEventListener('touchstart', this$static.touchStartFunction);
- element.removeEventListener('touchmove', this$static.touchMoveFunction);
- element.removeEventListener('touchend', this$static.touchEndFunction);
- element.removeEventListener('touchcancel', this$static.touchEndFunction);
- }
-}
-
-function $handleFlickScroll(this$static, deltaX, deltaY, lastTime){
- this$static.currentFlickScroller = new Escalator$FlickScrollAnimator(this$static.this$01, deltaX, deltaY, lastTime);
- (!instance_0 && (instance_0 = $isNativelySupported()?new AnimationSchedulerImplStandard:new AnimationSchedulerImplTimer) , instance_0).requestAnimationFrame_0(this$static.currentFlickScroller, null);
-}
-
-function $onScroll(this$static){
- var i_0, scrollLeft, scrollTop;
- scrollTop = this$static.this$01.verticalScrollbar.scrollPos;
- scrollLeft = this$static.this$01.horizontalScrollbar.scrollPos;
- if (this$static.lastScrollLeft != scrollLeft) {
- for (i_0 = 0; i_0 < this$static.this$01.columnConfiguration.frozenColumns; i_0++) {
- $updateFreezePosition(this$static.this$01.header, i_0, scrollLeft);
- $updateFreezePosition(this$static.this$01.body_0, i_0, scrollLeft);
- $updateFreezePosition(this$static.this$01.footer, i_0, scrollLeft);
- }
- this$static.this$01.position_0.set_1(this$static.this$01.headElem, -scrollLeft, 0);
- instanceOf(this$static.this$01.position_0, 114)?(this$static.this$01.footElem.style['left'] = -scrollLeft + ($clinit_Style$Unit() , 'px') , undefined):this$static.this$01.position_0.set_1(this$static.this$01.footElem, -scrollLeft, 0);
- this$static.lastScrollLeft = scrollLeft;
- }
- $setBodyScrollPosition(this$static.this$01.body_0, scrollLeft, scrollTop);
- $updateEscalatorRowsOnScroll(this$static.this$01.body_0);
-}
-
-function $recalculateScrollbarsForVirtualViewport(this$static){
- var fCornerStyle, frozenPixels, hCornerStyle, hScrollOffsetWidth, horizontalScrollNeeded, offset, prevScrollPos, scrollContentHeight, scrollContentWidth, tableWrapperHeight, tableWrapperWidth, unfrozenPixels, vScrollbarHeight, verticalScrollNeeded;
- scrollContentHeight = $calculateEstimatedTotalRowHeight(this$static.this$01.body_0);
- scrollContentWidth = $calculateRowWidth(this$static.this$01.columnConfiguration);
- tableWrapperHeight = this$static.this$01.heightOfEscalator;
- tableWrapperWidth = this$static.this$01.widthOfEscalator;
- verticalScrollNeeded = scrollContentHeight > tableWrapperHeight - this$static.this$01.header.heightOfSection - this$static.this$01.footer.heightOfSection;
- horizontalScrollNeeded = scrollContentWidth > tableWrapperWidth;
- verticalScrollNeeded != horizontalScrollNeeded && (!verticalScrollNeeded && horizontalScrollNeeded?(verticalScrollNeeded = scrollContentHeight > tableWrapperHeight - this$static.this$01.header.heightOfSection - this$static.this$01.footer.heightOfSection - $getScrollbarThickness(this$static.this$01.horizontalScrollbar)):(horizontalScrollNeeded = scrollContentWidth > tableWrapperWidth - $getScrollbarThickness(this$static.this$01.verticalScrollbar)));
- if (verticalScrollNeeded) {
- tableWrapperWidth -= $getScrollbarThickness(this$static.this$01.verticalScrollbar);
- tableWrapperWidth = 0 > tableWrapperWidth?0:tableWrapperWidth;
- }
- if (horizontalScrollNeeded) {
- tableWrapperHeight -= $getScrollbarThickness(this$static.this$01.horizontalScrollbar);
- tableWrapperHeight = 0 > tableWrapperHeight?0:tableWrapperHeight;
- }
- this$static.this$01.tableWrapper.style['height'] = tableWrapperHeight + ($clinit_Style$Unit() , 'px');
- this$static.this$01.tableWrapper.style['width'] = tableWrapperWidth + 'px';
- vScrollbarHeight = max_0(0, tableWrapperHeight - this$static.this$01.footer.heightOfSection - this$static.this$01.header.heightOfSection);
- $setOffsetSize(this$static.this$01.verticalScrollbar, vScrollbarHeight);
- $setScrollSize(this$static.this$01.verticalScrollbar, scrollContentHeight);
- prevScrollPos = this$static.this$01.horizontalScrollbar.scrollPos;
- unfrozenPixels = $getCalculatedColumnsWidth(this$static.this$01.columnConfiguration, new Range_0(this$static.this$01.columnConfiguration.frozenColumns, this$static.this$01.columnConfiguration.columns.array.length));
- frozenPixels = scrollContentWidth - unfrozenPixels;
- hScrollOffsetWidth = tableWrapperWidth - frozenPixels;
- $setOffsetSize(this$static.this$01.horizontalScrollbar, hScrollOffsetWidth);
- $setScrollSize(this$static.this$01.horizontalScrollbar, unfrozenPixels);
- this$static.this$01.horizontalScrollbar.root.style['left'] = frozenPixels + 'px';
- $setScrollPos(this$static.this$01.horizontalScrollbar, prevScrollPos);
- $showsScrollHandle(this$static.this$01.horizontalScrollbar)?$setPropertyImpl(this$static.this$01.horizontalScrollbarDeco.style, 'display', ''):(this$static.this$01.horizontalScrollbarDeco.style['display'] = ($clinit_Style$Display() , 'none') , undefined);
- hCornerStyle = this$static.this$01.headerDeco.style;
- fCornerStyle = this$static.this$01.footerDeco.style;
- if ($showsScrollHandle(this$static.this$01.verticalScrollbar)) {
- $setPropertyImpl(hCornerStyle, 'display', '');
- $setPropertyImpl(fCornerStyle, 'display', '');
- if ($showsScrollHandle(this$static.this$01.horizontalScrollbar)) {
- offset = $getScrollbarThickness(this$static.this$01.horizontalScrollbar);
- fCornerStyle['bottom'] = offset + 'px';
- }
- else {
- $setPropertyImpl(fCornerStyle, 'bottom', '');
- }
- }
- else {
- $setPropertyImpl(hCornerStyle, 'display', ($clinit_Style$Display() , 'none'));
- $setPropertyImpl(fCornerStyle, 'display', 'none');
- }
-}
-
-function $scrollToColumn_0(this$static, columnIndex){
- var frozenPixels, scrollLeft, targetEndPx, targetStartPx, viewportEndPx, viewportStartPx;
- frozenPixels = $getCalculatedColumnsWidth(this$static.this$01.columnConfiguration, withLength(0, this$static.this$01.columnConfiguration.frozenColumns));
- targetStartPx = $getCalculatedColumnsWidth(this$static.this$01.columnConfiguration, withLength(0, columnIndex)) - frozenPixels;
- targetEndPx = targetStartPx + $getColumnWidthActual(this$static.this$01.columnConfiguration, columnIndex);
- viewportStartPx = this$static.this$01.horizontalScrollbar.scrollPos;
- viewportEndPx = viewportStartPx + getRequiredWidthBoundingClientRectDouble($getElement(this$static.this$01)) - frozenPixels;
- $showsScrollHandle(this$static.this$01.verticalScrollbar) && (viewportEndPx -= getNativeScrollbarSize());
- scrollLeft = getScrollPos(targetStartPx, targetEndPx, viewportStartPx, viewportEndPx, 10);
- $setScrollLeft_1(this$static.this$01, scrollLeft);
-}
-
-function $scrollToRow_0(this$static, rowIndex){
- var scrollTop, targetEndPx, targetStartPx, viewportEndPx, viewportStartPx;
- targetStartPx = this$static.this$01.body_0.defaultRowHeight * rowIndex;
- targetEndPx = targetStartPx + this$static.this$01.body_0.defaultRowHeight;
- viewportStartPx = this$static.this$01.verticalScrollbar.scrollPos;
- viewportEndPx = viewportStartPx + $calculateHeight(this$static.this$01.body_0);
- scrollTop = getScrollPos(targetStartPx, targetEndPx, viewportStartPx, viewportEndPx, 0);
- $setScrollTop_0(this$static.this$01, scrollTop);
-}
-
-function Escalator$Scroller(this$0){
- this.this$01 = this$0;
- this.scrollListenerFunction = $createScrollListenerFunction(this$0);
- this.mousewheelListenerFunction = $createMousewheelListenerFunction(this$0);
- this.touchHandlerBundle = new Escalator$JsniUtil$TouchHandlerBundle(this$0);
- this.touchStartFunction = $getTouchStartHandler(this.touchHandlerBundle);
- this.touchMoveFunction = $getTouchMoveHandler(this.touchHandlerBundle);
- this.touchEndFunction = $getTouchEndHandler(this.touchHandlerBundle);
-}
-
-defineClass(255, 251, {}, Escalator$Scroller);
-_.lastScrollLeft = 0;
-var Lcom_vaadin_client_widgets_Escalator$Scroller_2_classLit = createForClass('com.vaadin.client.widgets', 'Escalator/Scroller', 255, Lcom_vaadin_client_widgets_JsniWorkaround_2_classLit);
-function $addBodyClickHandler(this$static, handler){
- return $addHandler_0(this$static, handler, this$static.clickEvent.associatedType);
-}
-
-function $addBodyKeyDownHandler(this$static, handler){
- return $addHandler_0(this$static, handler, this$static.keyDown.associatedType);
-}
-
-function $addBodyKeyUpHandler(this$static, handler){
- return $addHandler_0(this$static, handler, this$static.keyUp.associatedType);
-}
-
-function $addColumn(this$static, column){
- $addColumn_0(this$static, column, this$static.columns.array.length);
- return column;
-}
-
-function $addColumn_0(this$static, column, index_0){
- if (column == this$static.selectionColumn) {
- throw new IllegalArgumentException_0('The selection column many not be added manually');
- }
- else if (!!this$static.selectionColumn && index_0 == 0) {
- throw new IllegalStateException_0('A column cannot be inserted before the selection column');
- }
- $addColumnSkipSelectionColumnCheck(this$static, column, index_0);
- return column;
-}
-
-function $addColumnSkipSelectionColumnCheck(this$static, column, index_0){
- var events;
- $add_5(this$static.columns, index_0, column);
- $addColumn_1(this$static.header, column);
- $addColumn_1(this$static.footer, column);
- $setGrid(column, this$static);
- $insertColumns(this$static.escalator.columnConfiguration, index_0);
- column.setWidth_0(column.widthUser);
- events = new HashSet;
- events.addAll($getConsumedEventsForRenderer(column.bodyRenderer));
- $sinkEvents_0(this$static, events);
-}
-
-function $addDataAvailableHandler(this$static, handler){
- $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), new Grid$7(this$static, handler));
- return $addHandler_0(this$static, handler, ($clinit_DataAvailableEvent() , TYPE_8));
-}
-
-function $addHeaderKeyUpHandler(this$static, handler){
- return $addHandler_0(this$static, handler, this$static.keyUp.associatedType);
-}
-
-function $deselect_1(this$static, row){
- if (instanceOf(this$static.selectionModel, 96)) {
- return $deselect_0(dynamicCast(this$static.selectionModel, 96), row);
- }
- else if (instanceOf(this$static.selectionModel, 110)) {
- return $deselect(dynamicCast(dynamicCast(this$static.selectionModel, 110), 104), new Arrays$ArrayList(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [row])));
- }
- else {
- throw new IllegalStateException_0('Unsupported selection model');
- }
-}
-
-function $findRenderer(this$static, cell){
- var column;
- column = $getColumn(this$static, cell.column);
- return column.bodyRenderer;
-}
-
-function $getColumn(this$static, index_0){
- if (index_0 < 0 || index_0 >= this$static.columns.array.length) {
- throw new IllegalStateException_0('Column not found.');
- }
- return dynamicCast($get_6(this$static.columns, index_0), 33);
-}
-
-function $getConsumedEventsForRenderer(renderer){
- var consumedEvents, events;
- events = new HashSet;
- if (instanceOf(renderer, 51)) {
- consumedEvents = (dynamicCast(renderer, 51) , $getConsumedEvents());
- events.addAll(consumedEvents);
- }
- return events;
-}
-
-function $getFirstVisibleRowIndex(this$static){
- var firstRow, firstRowIndex, headerBottom;
- firstRowIndex = $getVisibleRowRange(this$static.escalator).start_0;
- headerBottom = $getAbsoluteBottom(this$static.escalator.header.root);
- firstRow = $getRowElement(this$static.escalator.body_0, firstRowIndex);
- while (($clinit_DOMImpl() , impl_0).getAbsoluteTop(firstRow) + ($getSubPixelOffsetHeight(firstRow) | 0) < headerBottom) {
- firstRow = $getRowElement(this$static.escalator.body_0, ++firstRowIndex);
- }
- return firstRowIndex;
-}
-
-function $getHeaderRow(this$static, rowIndex){
- return $getRow_0(this$static.header, rowIndex);
-}
-
-function $getLastVisibleRowIndex(this$static){
- var footerTop, lastRow, lastRowIndex;
- lastRowIndex = $getVisibleRowRange(this$static.escalator).end;
- footerTop = $getAbsoluteTop(this$static.escalator.footer.root);
- do {
- lastRow = $getRowElement(this$static.escalator.body_0, --lastRowIndex);
- }
- while (($clinit_DOMImpl() , impl_0).getAbsoluteTop(lastRow) > footerTop);
- return lastRowIndex;
-}
-
-function $getSelectedRow_0(this$static){
- if (instanceOf(this$static.selectionModel, 96)) {
- return $getSelectedRow(dynamicCast(this$static.selectionModel, 96));
- }
- else {
- throw new IllegalStateException_0('Unsupported selection model; can not get single selected row');
- }
-}
-
-function $handleHeaderDefaultRowEvent(this$static, container){
- if (container != this$static.escalator.header) {
- return false;
- }
- if (!$getRow_0(this$static.header, this$static.eventCell.rowReference.rowIndex).isDefault) {
- return false;
- }
- return false;
-}
-
-function $handleNavigationEvent(this$static, event_0){
- var container, firstIndex, lastIndex, newRow, range;
- if (!$equals_2(($clinit_DOMImpl() , event_0).type, 'keydown')) {
- return false;
- }
- newRow = -1;
- container = this$static.escalator.body_0;
- switch (event_0.keyCode | 0) {
- case 36:
- container.rows_0 > 0 && (newRow = 0);
- break;
- case 35:
- container.rows_0 > 0 && (newRow = container.rows_0 - 1);
- break;
- case 33:
- {
- range = $getVisibleRowRange(this$static.escalator);
- if (range.start_0 < range.end) {
- firstIndex = $getFirstVisibleRowIndex(this$static);
- newRow = firstIndex - (range.end - range.start_0);
- newRow < 0 && (newRow = 0);
- }
- break;
- }
-
- case 34:
- {
- range = $getVisibleRowRange(this$static.escalator);
- if (range.start_0 < range.end) {
- lastIndex = $getLastVisibleRowIndex(this$static);
- newRow = lastIndex + (range.end - range.start_0);
- newRow >= container.rows_0 && (newRow = container.rows_0 - 1);
- }
- break;
- }
-
- default:return false;
- }
- $scrollToRow_1(this$static, newRow);
- return true;
-}
-
-function $handleRendererEvent(this$static, event_0, container){
- var cplxRenderer, gridColumn;
- if (container == this$static.escalator.body_0) {
- gridColumn = this$static.eventCell.column;
- $equals_2(($clinit_DOMImpl() , event_0).type, 'keydown') && (event_0.keyCode | 0) == 13;
- $equals_2(event_0.type, 'dblclick');
- if (instanceOf(gridColumn.bodyRenderer, 51)) {
- cplxRenderer = dynamicCast(gridColumn.bodyRenderer, 51);
- if ($contains_2($getConsumedEvents(), event_0.type)) {
- if ($onBrowserEvent_0(cplxRenderer, event_0)) {
- return true;
- }
- }
- }
- }
- return false;
-}
-
-function $isElementInChildWidget(this$static, e){
- var w;
- w = findWidget(e);
- if (w == this$static) {
- return false;
- }
- while (!!w && w != this$static) {
- w = w.parent_0;
- }
- return !!w;
-}
-
-function $isSelected_0(this$static, row){
- return this$static.selectionModel.isSelected(row);
-}
-
-function $refreshBody(this$static){
- $refreshRows(this$static.escalator.body_0, 0, this$static.escalator.body_0.rows_0);
-}
-
-function $refreshFooter(this$static){
- $refreshRowContainer(this$static.escalator.footer, this$static.footer);
-}
-
-function $refreshHeader(this$static){
- $refreshRowContainer(this$static.escalator.header, this$static.header);
-}
-
-function $refreshRowContainer(rows_0, section){
- var rowDiff;
- rowDiff = (section.visible?section.rows_0.array.length:0) - rows_0.rows_0;
- rowDiff > 0?($insertRows(rows_0, 0, rowDiff) , $recalculateElementSizes(rows_0.this$01_0) , $applyHeightByRows(rows_0.this$01_0) , undefined):rowDiff < 0 && ($removeRows(rows_0, 0, -rowDiff) , $recalculateElementSizes(rows_0.this$01_0) , $applyHeightByRows(rows_0.this$01_0) , undefined);
- rows_0.rows_0 > 0 && $refreshRows(rows_0, 0, rows_0.rows_0);
-}
-
-function $removeColumn(this$static, column){
- if (!!column && column == this$static.selectionColumn) {
- throw new IllegalArgumentException_0('The selection column may not be removed manually.');
- }
- $removeColumnSkipSelectionColumnCheck(this$static, column);
-}
-
-function $removeColumnSkipSelectionColumnCheck(this$static, column){
- var columnIndex;
- columnIndex = $indexOf_3(this$static.columns, column, 0);
- $removeColumns(this$static.escalator.columnConfiguration, columnIndex);
- $updateFrozenColumns(this$static);
- $removeColumn_0(this$static.header, column);
- $removeColumn_0(this$static.footer, column);
- $setGrid(column, null);
- this$static.columns.remove_3(columnIndex);
-}
-
-function $scrollToRow_1(this$static, rowIndex){
- var maxsize;
- maxsize = this$static.escalator.body_0.rows_0 - 1;
- if (rowIndex < 0) {
- throw new IllegalArgumentException_0('Row index (' + rowIndex + ') is below zero!');
- }
- if (rowIndex > maxsize) {
- throw new IllegalArgumentException_0('Row index (' + rowIndex + ') is above maximum (' + maxsize + ')!');
- }
- $scrollToRow(this$static.escalator, rowIndex);
-}
-
-function $select_4(this$static, row){
- if (instanceOf(this$static.selectionModel, 96)) {
- return $select_3(dynamicCast(this$static.selectionModel, 96), row);
- }
- else if (instanceOf(this$static.selectionModel, 110)) {
- return $select_2(dynamicCast(dynamicCast(this$static.selectionModel, 110), 104), new Arrays$ArrayList(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [row])));
- }
- else {
- throw new IllegalStateException_0('Unsupported selection model');
- }
-}
-
-function $setDataSource(this$static, dataSource){
- var previousRowCount;
- if (!dataSource) {
- throw new IllegalArgumentException_0("dataSource can't be null.");
- }
- this$static.selectionModel.reset_1();
- !!this$static.dataSource_0 && this$static.dataSource_0.setDataChangeHandler(null);
- this$static.dataSource_0 = dataSource;
- dataSource.setDataChangeHandler(new Grid$6(this$static, dataSource));
- previousRowCount = this$static.escalator.body_0.rows_0;
- previousRowCount != 0 && $removeRows(this$static.escalator.body_0, 0, previousRowCount);
- $setEscalatorSizeFromDataSource(this$static);
-}
-
-function $setDefaultHeaderRow(this$static, row){
- $setDefaultRow(this$static.header, row);
-}
-
-function $setEscalatorSizeFromDataSource(this$static){
- var size_0;
- size_0 = this$static.dataSource_0.size_2();
- size_0 == -1 && $isAttached(this$static) && (size_0 = $getMaxEscalatorRowCapacity(this$static.escalator.body_0));
- size_0 > 0 && $insertRows(this$static.escalator.body_0, 0, size_0);
-}
-
-function $setHeight_2(this$static, height){
- $setHeight_1(this$static.escalator, height);
-}
-
-function $setHeightByRows_0(this$static, rows_0){
- $setHeightByRows(this$static.escalator, rows_0);
-}
-
-function $setHeightMode_0(this$static, heightMode){
- $setHeightMode(this$static.escalator, heightMode);
-}
-
-function $setScrollTop_1(this$static, px){
- $setScrollTop_0(this$static.escalator, px);
-}
-
-function $setSelectColumnRenderer(this$static, selectColumnRenderer){
- var colToRemove;
- if (this$static.selectColumnRenderer == selectColumnRenderer) {
- return;
- }
- if (this$static.selectColumnRenderer) {
- !!this$static.selectColumnRenderer && $destroy(this$static.selectColumnRenderer);
- colToRemove = this$static.selectionColumn;
- this$static.selectionColumn = null;
- $removeColumnSkipSelectionColumnCheck(this$static, colToRemove);
- $offsetRangeBy(this$static.cellFocusHandler, -1);
- }
- this$static.selectColumnRenderer = selectColumnRenderer;
- if (selectColumnRenderer) {
- $offsetRangeBy(this$static.cellFocusHandler, 1);
- this$static.selectionColumn = new Grid$SelectionColumn(this$static, selectColumnRenderer);
- $addColumnSkipSelectionColumnCheck(this$static, this$static.selectionColumn, 0);
- $initDone(this$static.selectionColumn);
- }
- else {
- this$static.selectionColumn = null;
- $refreshRows(this$static.escalator.body_0, 0, this$static.escalator.body_0.rows_0);
- }
- $updateFrozenColumns(this$static);
-}
-
-function $setSelectionMode(this$static, mode){
- var model;
- model = mode.createModel();
- !!this$static.selectionModel && this$static.selectionModel.setGrid(null);
- this$static.selectionModel = model;
- model.setGrid(this$static);
- $setSelectColumnRenderer(this$static, this$static.selectionModel.getSelectionColumnRenderer());
-}
-
-function $setStylePrimaryName_6(this$static){
- var rowStyle;
- setStylePrimaryName(($clinit_DOM() , this$static.element), 'v-grid');
- $setStylePrimaryName_1(this$static.escalator, 'v-grid');
- $setStylePrimaryName_7(this$static.editor);
- rowStyle = getStylePrimaryName(this$static.element) + '-row';
- this$static.rowHasDataStyleName = rowStyle + '-has-data';
- this$static.rowSelectedStyleName = rowStyle + '-selected';
- this$static.rowStripeStyleName = rowStyle + '-stripe';
- this$static.cellFocusStyleName = getStylePrimaryName(this$static.element) + '-cell-focused';
- this$static.rowFocusStyleName = getStylePrimaryName(this$static.element) + '-row-focused';
- if ($isAttached(this$static)) {
- $refreshRowContainer(this$static.escalator.header, this$static.header);
- $refreshRows(this$static.escalator.body_0, 0, this$static.escalator.body_0.rows_0);
- $refreshRowContainer(this$static.escalator.footer, this$static.footer);
- }
-}
-
-function $sinkEvents_0(this$static, events){
- var eventsToSink, typeInt, typeName, typeName$iterator;
- eventsToSink = 0;
- for (typeName$iterator = events.iterator_0(); typeName$iterator.hasNext();) {
- typeName = dynamicCastToString(typeName$iterator.next_0());
- typeInt = $eventGetTypeInt(($clinit_DOM() , typeName));
- typeInt < 0?sinkBitlessEvent(this$static.element, typeName):(eventsToSink |= typeInt);
- }
- eventsToSink > 0 && (this$static.eventsToSink == -1?sinkEvents(($clinit_DOM() , this$static.element), eventsToSink | (this$static.element.__eventBits || 0)):(this$static.eventsToSink |= eventsToSink));
-}
-
-function $updateFrozenColumns(this$static){
- var numberOfColumns;
- numberOfColumns = 0;
- !!this$static.selectionColumn && ++numberOfColumns;
- $setFrozenColumnCount(this$static.escalator.columnConfiguration, numberOfColumns);
-}
-
-function Grid(){
- var defaultRow;
- this.eventCell = new EventCellReference(this);
- this.keyDown = new GridKeyDownEvent(this, this.eventCell);
- this.keyUp = new GridKeyUpEvent(this, this.eventCell);
- new GridKeyPressEvent(this, this.eventCell);
- this.clickEvent = new GridClickEvent(this, this.eventCell);
- new GridDoubleClickEvent(this, this.eventCell);
- this.escalator = new Escalator;
- this.header = new Grid$Header;
- this.footer = new Grid$Footer;
- this.columns = new ArrayList;
- this.currentDataAvailable = withLength(0, 0);
- this.sortOrder = new ArrayList;
- this.sorter = new Grid$UserSorter(this);
- this.editor = new Grid$Editor;
- this.autoColumnWidthsRecalculator = new Grid$AutoColumnWidthsRecalculator(this);
- this.rowReference = new RowReference;
- new CellReference(this.rowReference);
- this.rendererCellReference = new RendererCellReference(this.rowReference);
- $initWidget(this, this.escalator);
- $setTabIndex(($clinit_DOM() , this.element), 0);
- this.cellFocusHandler = new Grid$CellFocusHandler(this);
- $setStylePrimaryName_6(this);
- $setEscalatorUpdater(this.escalator.header, new Grid$StaticSectionUpdater(this, this.header, this.escalator.header));
- $setEscalatorUpdater(this.escalator.body_0, new Grid$BodyUpdater(this));
- $setEscalatorUpdater(this.escalator.footer, new Grid$StaticSectionUpdater(this, this.footer, this.escalator.footer));
- $setGrid_1(this.header, this);
- defaultRow = $appendRow(this.header);
- $setDefaultRow(this.header, defaultRow);
- $setGrid_1(this.footer, this);
- $setGrid_0(this.editor, this);
- $setSelectionMode(this, ($clinit_Grid$SelectionMode() , SINGLE));
- $addHandler_0(this.escalator, new Grid$1(this), ($clinit_ScrollEvent() , TYPE_9));
- $addHandler_0(this.escalator, new Grid$2(this), ($clinit_RowVisibilityChangeEvent() , TYPE_6));
- $addHandler_0(this, new Grid$3(this), ($clinit_SelectionEvent() , $clinit_SelectionEvent() , eventType_0));
- $sinkEvents_0(this, new Arrays$ArrayList(initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['touchstart', 'touchmove', 'touchend', 'touchcancel', 'click'])));
- $sinkEvents_0(this, new Arrays$ArrayList(initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['keydown', 'keyup', 'keypress', 'dblclick'])));
- $addHeaderKeyUpHandler(this, new Grid$4(this));
- $addDataAvailableHandler(this, new Grid$5(this));
-}
-
-function setCustomStyleName(element){
- var oldStyleName;
- oldStyleName = $getPropertyString(element, 'customStyle');
- if (!equals(oldStyleName, null)) {
- oldStyleName != null && $removeClassName(element, oldStyleName);
- $setPropertyString(element, 'customStyle', null);
- }
-}
-
-function setParent(widget, parent_0){
- widget.setParent(parent_0);
-}
-
-defineClass(223, 558, {31:1, 24:1, 20:1, 27:1, 40:1, 23:1, 21:1, 17:1}, Grid);
-_.add_0 = function(w){
- throw new UnsupportedOperationException_0('Cannot add widgets to Grid with this method');
-}
-;
-_.iterator_0 = function(){
- throw new UnsupportedOperationException_0('Cannot iterate through widgets in Grid this way');
-}
-;
-_.onAttach = function(){
- $onAttach_0(this);
- this.escalator.body_0.rows_0 == 0 && !!this.dataSource_0 && $setEscalatorSizeFromDataSource(this);
-}
-;
-_.onBrowserEvent = function(event_0){
- var cell, container, e, eventType, target, navigation;
- if (!this.enabled) {
- return;
- }
- target = ($clinit_DOMImpl() , impl_0).eventGetTarget(event_0);
- if (!is_0(target)) {
- return;
- }
- e = target;
- container = $findRowContainer(this.escalator, e);
- eventType = event_0.type;
- if (!container) {
- if ($equals_2(eventType, 'keydown') || $equals_2(eventType, 'keyup') || $equals_2(eventType, 'keypress')) {
- cell = $getFocusedCell(this.cellFocusHandler);
- container = this.cellFocusHandler.containerWithFocus;
- }
- else {
- return;
- }
- }
- else {
- cell = container.getCell(e);
- $equals_2(eventType, 'mousedown')?(this.cellOnPrevMouseDown = cell):!cell && $equals_2(eventType, 'click') && (cell = this.cellOnPrevMouseDown);
- }
- $set_1(this.eventCell, cell);
- $onBrowserEvent(this, event_0);
- $onBrowserEvent(this.widget, event_0);
- if (!$isElementInChildWidget(this, e)) {
- if ($handleHeaderDefaultRowEvent(this, container)) {
- return;
- }
- if ($handleRendererEvent(this, event_0, container)) {
- return;
- }
- if ($handleNavigationEvent(this, event_0)) {
- return;
- }
- if (navigation = new Arrays$ArrayList(initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['keydown', 'click'])) , $indexOf_2(navigation, event_0.type) != -1 && $handleNavigationEvent_0(this.cellFocusHandler, event_0, this.eventCell) , false) {
- return;
- }
- }
-}
-;
-_.remove = function(w){
- return false;
-}
-;
-_.setHeight_0 = function(height){
- $setHeight_2(this, height);
-}
-;
-_.setWidth = function(width_0){
- $setWidth_1(this.escalator, width_0);
-}
-;
-_.dataIsBeingFetched = false;
-_.enabled = true;
-_.selectColumnRenderer = null;
-var Lcom_vaadin_client_widgets_Grid_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid', 223, Lcom_google_gwt_user_client_ui_ResizeComposite_2_classLit);
-function Grid$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(242, 1, $intern_41, Grid$1);
-_.onScroll = function(event_0){
- $fireEvent_0(this.this$01, new ScrollEvent);
-}
-;
-var Lcom_vaadin_client_widgets_Grid$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/1', 242, Ljava_lang_Object_2_classLit);
-function $onRowVisibilityChange(this$static, event_0){
- if (!!this$static.this$01.dataSource_0 && this$static.this$01.dataSource_0.size_2() != 0) {
- this$static.this$01.dataIsBeingFetched = true;
- this$static.this$01.dataSource_0.ensureAvailability(event_0.firstVisibleRow, event_0.visibleRowCount);
- }
-}
-
-function Grid$2(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(243, 1, {22:1, 586:1}, Grid$2);
-var Lcom_vaadin_client_widgets_Grid$2_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/2', 243, Ljava_lang_Object_2_classLit);
-function Grid$3(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(244, 1, {22:1, 530:1}, Grid$3);
-_.onSelect_0 = function(event_0){
- $refreshBody(this.this$01);
-}
-;
-var Lcom_vaadin_client_widgets_Grid$3_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/3', 244, Ljava_lang_Object_2_classLit);
-function Grid$4(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(245, 1, {22:1, 197:1, 533:1, 587:1}, Grid$4);
-_.onKeyUp = function(event_0){
- var lastArg;
- if ($getKeyCode(event_0.nativeEvent) != 13) {
- return;
- }
- $sort(this.this$01.sorter, (lastArg = event_0.targetCell.column , $getShiftKey(event_0.nativeEvent) , lastArg));
-}
-;
-var Lcom_vaadin_client_widgets_Grid$4_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/4', 245, Ljava_lang_Object_2_classLit);
-function Grid$5(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(246, 1, $intern_43, Grid$5);
-_.onDataAvailable = function(event_0){
- this.this$01.dataIsBeingFetched = false;
-}
-;
-var Lcom_vaadin_client_widgets_Grid$5_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/5', 246, Ljava_lang_Object_2_classLit);
-function $dataAdded(this$static, firstIndex){
- var added;
- $insertRows(this$static.this$01.escalator.body_0, firstIndex, 1);
- added = withLength(firstIndex, 1);
- $rowsAddedToBody(this$static.this$01.cellFocusHandler, added);
-}
-
-function $dataAvailable(this$static, firstIndex, numberOfItems){
- this$static.this$01.currentDataAvailable = withLength(firstIndex, numberOfItems);
- $fireEvent_0(this$static.this$01, new DataAvailableEvent(this$static.this$01.currentDataAvailable));
-}
-
-function $dataRemoved(this$static, firstIndex){
- var removed;
- $removeRows(this$static.this$01.escalator.body_0, firstIndex, 1);
- removed = withLength(firstIndex, 1);
- $rowsRemovedFromBody(this$static.this$01.cellFocusHandler, removed);
-}
-
-function $dataUpdated(this$static, firstIndex, numberOfItems){
- $refreshRows(this$static.this$01.escalator.body_0, firstIndex, numberOfItems);
-}
-
-function $resetDataAndSize_0(this$static, newSize){
- var body_0, oldSize, visibleRowRange;
- body_0 = this$static.this$01.escalator.body_0;
- oldSize = body_0.rows_0;
- newSize > oldSize?$insertRows(body_0, oldSize, newSize - oldSize):newSize < oldSize && $removeRows(body_0, newSize, oldSize - newSize);
- if (newSize > 0) {
- this$static.this$01.dataIsBeingFetched = true;
- visibleRowRange = $getVisibleRowRange(this$static.this$01.escalator);
- this$static.val$dataSource2.ensureAvailability(visibleRowRange.start_0, visibleRowRange.end - visibleRowRange.start_0);
- }
-}
-
-function Grid$6(this$0, val$dataSource){
- this.this$01 = this$0;
- this.val$dataSource2 = val$dataSource;
-}
-
-defineClass(247, 1, {}, Grid$6);
-var Lcom_vaadin_client_widgets_Grid$6_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/6', 247, Ljava_lang_Object_2_classLit);
-function Grid$7(this$0, val$handler){
- this.this$01 = this$0;
- this.val$handler2 = val$handler;
-}
-
-defineClass(248, 1, {}, Grid$7);
-_.execute_1 = function(){
- this.this$01.dataIsBeingFetched || this.val$handler2.onDataAvailable(new DataAvailableEvent(this.this$01.currentDataAvailable));
-}
-;
-var Lcom_vaadin_client_widgets_Grid$7_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/7', 248, Ljava_lang_Object_2_classLit);
-function $calculate(this$static){
- var aColumnHasMaxedOut, autoWidth, column, column$iterator, column$iterator0, column$iterator1, column$iterator2, column$iterator3, columnsToExpand, currentWidth, expandRatio, hasAutoWidth, i_0, isFixedWidth, maxWidth, minWidth, minWidthsCausedReflows, newWidth, pixelsToDistribute, pixelsToRemove, pixelsToRemoveFromOtherColumns, pixelsToRemovePerRatio, reservedPixels, shouldExpand, someColumnExpands, totalRatios, totalWidth, width_0, widthAsIs, widthCandidate, widthFixed, widthPerRatio, widthPerRatio0;
- this$static.isScheduled = false;
- this$static.rescheduleCount = 0;
- if ($gridWasTooNarrowAndEverythingWasFixedAlready(this$static)) {
- return;
- }
- someColumnExpands = false;
- totalRatios = 0;
- reservedPixels = 0;
- columnsToExpand = new HashSet;
- for (column$iterator0 = new Collections$UnmodifiableCollectionIterator(unmodifiableList(new ArrayList_1(this$static.this$01.columns)).coll.iterator_0()); column$iterator0.it.hasNext();) {
- column = dynamicCast(column$iterator0.it.next_0(), 33);
- widthAsIs = column.widthUser;
- isFixedWidth = widthAsIs >= 0;
- widthFixed = max_0(widthAsIs, column.getMinimumWidth());
- expandRatio = column.getExpandRatio();
- if (isFixedWidth) {
- $doSetWidth(column, widthFixed);
- }
- else {
- $doSetWidth(column, -1);
- newWidth = $getColumnWidthActual(column.grid.escalator.columnConfiguration, $indexOf_3(column.grid.columns, column, 0));
- maxWidth = $getMaxWidth(column);
- shouldExpand = newWidth < maxWidth && expandRatio > 0;
- if (shouldExpand) {
- totalRatios += expandRatio;
- $add_7(columnsToExpand, column);
- someColumnExpands = true;
- }
- }
- reservedPixels += $getColumnWidthActual(column.grid.escalator.columnConfiguration, $indexOf_3(column.grid.columns, column, 0));
- }
- if (!someColumnExpands) {
- for (column$iterator1 = new Collections$UnmodifiableCollectionIterator(unmodifiableList(new ArrayList_1(this$static.this$01.columns)).coll.iterator_0()); column$iterator1.it.hasNext();) {
- column = dynamicCast(column$iterator1.it.next_0(), 33);
- width_0 = column.widthUser;
- expandRatio = column.getExpandRatio();
- if (width_0 < 0 && expandRatio < 0) {
- ++totalRatios;
- $add_7(columnsToExpand, column);
- }
- }
- }
- pixelsToDistribute = getRequiredWidthBoundingClientRectDouble(this$static.this$01.escalator.tableWrapper) - reservedPixels;
- if (pixelsToDistribute <= 0 || totalRatios <= 0) {
- return;
- }
- do {
- aColumnHasMaxedOut = false;
- widthPerRatio0 = pixelsToDistribute / totalRatios;
- i_0 = $iterator(new AbstractMap$1(columnsToExpand.map_0));
- while (i_0.val$outerIter2.hasNext()) {
- column = dynamicCast($next_3(i_0), 33);
- expandRatio = $getExpandRatio(column);
- autoWidth = $getColumnWidthActual(column.grid.escalator.columnConfiguration, $indexOf_3(column.grid.columns, column, 0));
- maxWidth = $getMaxWidth(column);
- widthCandidate = autoWidth + widthPerRatio0 * expandRatio;
- if (maxWidth <= widthCandidate) {
- $doSetWidth(column, maxWidth);
- totalRatios -= expandRatio;
- pixelsToDistribute -= maxWidth - autoWidth;
- i_0.val$outerIter2.remove_0();
- aColumnHasMaxedOut = true;
- }
- }
- }
- while (aColumnHasMaxedOut);
- if (totalRatios <= 0 && columnsToExpand.map_0.size_2() == 0) {
- return;
- }
- widthPerRatio = pixelsToDistribute / totalRatios;
- for (column$iterator2 = $iterator(new AbstractMap$1(columnsToExpand.map_0)); column$iterator2.val$outerIter2.hasNext();) {
- column = dynamicCast($next_3(column$iterator2), 33);
- expandRatio = $getExpandRatio(column);
- autoWidth = $getColumnWidthActual(column.grid.escalator.columnConfiguration, $indexOf_3(column.grid.columns, column, 0));
- totalWidth = autoWidth + widthPerRatio * expandRatio;
- $doSetWidth(column, totalWidth);
- totalRatios -= expandRatio;
- }
- do {
- minWidthsCausedReflows = false;
- pixelsToRemoveFromOtherColumns = 0;
- for (column$iterator1 = new Collections$UnmodifiableCollectionIterator(unmodifiableList(new ArrayList_1(this$static.this$01.columns)).coll.iterator_0()); column$iterator1.it.hasNext();) {
- column = dynamicCast(column$iterator1.it.next_0(), 33);
- minWidth = $getMinWidth(column);
- currentWidth = $getColumnWidthActual(column.grid.escalator.columnConfiguration, $indexOf_3(column.grid.columns, column, 0));
- hasAutoWidth = column.widthUser < 0;
- if (hasAutoWidth && currentWidth < minWidth) {
- $doSetWidth(column, minWidth);
- pixelsToRemoveFromOtherColumns += minWidth - currentWidth;
- minWidthsCausedReflows = true;
- columnsToExpand.map_0.remove_2(column) != null;
- }
- }
- totalRatios = 0;
- for (column$iterator3 = $iterator(new AbstractMap$1(columnsToExpand.map_0)); column$iterator3.val$outerIter2.hasNext();) {
- column = dynamicCast($next_3(column$iterator3), 33);
- totalRatios += $getExpandRatio(column);
- }
- pixelsToRemovePerRatio = pixelsToRemoveFromOtherColumns / totalRatios;
- for (column$iterator = $iterator(new AbstractMap$1(columnsToExpand.map_0)); column$iterator.val$outerIter2.hasNext();) {
- column = dynamicCast($next_3(column$iterator), 33);
- pixelsToRemove = pixelsToRemovePerRatio * $getExpandRatio(column);
- $doSetWidth(column, $getColumnWidthActual(column.grid.escalator.columnConfiguration, $indexOf_3(column.grid.columns, column, 0)) - pixelsToRemove);
- }
- }
- while (minWidthsCausedReflows);
-}
-
-function $getExpandRatio(column){
- var expandRatio;
- expandRatio = column.getExpandRatio();
- return expandRatio > 0?expandRatio:expandRatio < 0?1:0;
-}
-
-function $getMaxWidth(column){
- var maxWidth;
- maxWidth = column.getMaximumWidth();
- return maxWidth >= 0?maxWidth:1.7976931348623157E308;
-}
-
-function $getMinWidth(column){
- var minWidth;
- minWidth = column.getMinimumWidth();
- return minWidth >= 0?minWidth:4.9E-324;
-}
-
-function $gridWasTooNarrowAndEverythingWasFixedAlready(this$static){
- var column, column$iterator, column$iterator0, freeSpace, newWidthIsSmallerThanMinWidth, wasFixedWidth;
- freeSpace = getRequiredWidthBoundingClientRectDouble(this$static.this$01.escalator.tableWrapper);
- for (column$iterator0 = new Collections$UnmodifiableCollectionIterator(unmodifiableList(new ArrayList_1(this$static.this$01.columns)).coll.iterator_0()); column$iterator0.it.hasNext();) {
- column = dynamicCast(column$iterator0.it.next_0(), 33);
- column.widthUser >= 0?(freeSpace -= column.widthUser):column.getMinimumWidth() >= 0 && (freeSpace -= column.getMinimumWidth());
- }
- if (freeSpace < 0) {
- for (column$iterator = new Collections$UnmodifiableCollectionIterator(unmodifiableList(new ArrayList_1(this$static.this$01.columns)).coll.iterator_0()); column$iterator.it.hasNext();) {
- column = dynamicCast(column$iterator.it.next_0(), 33);
- $doSetWidth(column, column.widthUser);
- wasFixedWidth = column.widthUser <= 0;
- newWidthIsSmallerThanMinWidth = $getColumnWidthActual(column.grid.escalator.columnConfiguration, $indexOf_3(column.grid.columns, column, 0)) < $getMinWidth(column);
- wasFixedWidth && newWidthIsSmallerThanMinWidth && $doSetWidth(column, column.getMinimumWidth());
- }
- }
- return freeSpace < 0;
-}
-
-function $schedule_0(this$static){
- if (!this$static.isScheduled) {
- this$static.isScheduled = true;
- $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), this$static.calculateCommand);
- }
-}
-
-function Grid$AutoColumnWidthsRecalculator(this$0){
- this.this$01 = this$0;
- this.calculateCommand = new Grid$AutoColumnWidthsRecalculator$1(this);
-}
-
-defineClass(231, 1, {}, Grid$AutoColumnWidthsRecalculator);
-_.isScheduled = false;
-_.rescheduleCount = 0;
-var Lcom_vaadin_client_widgets_Grid$AutoColumnWidthsRecalculator_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/AutoColumnWidthsRecalculator', 231, Ljava_lang_Object_2_classLit);
-function Grid$AutoColumnWidthsRecalculator$1(this$1){
- this.this$11 = this$1;
-}
-
-defineClass(238, 1, {}, Grid$AutoColumnWidthsRecalculator$1);
-_.execute_1 = function(){
- if (!this.this$11.isScheduled) {
- return;
- }
- if (this.this$11.this$01.header.markAsDirty) {
- if (this.this$11.rescheduleCount < 10) {
- $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), this);
- ++this.this$11.rescheduleCount;
- }
- else {
- this.this$11.rescheduleCount = 0;
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), this);
- }
- }
- else
- this.this$11.this$01.dataIsBeingFetched?$scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), this):$calculate(this.this$11);
-}
-;
-var Lcom_vaadin_client_widgets_Grid$AutoColumnWidthsRecalculator$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/AutoColumnWidthsRecalculator/1', 238, Ljava_lang_Object_2_classLit);
-function Grid$BodyUpdater(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(232, 1, {}, Grid$BodyUpdater);
-_.postAttach = function(row, attachedCells){
- var cell, cell$iterator;
- for (cell$iterator = attachedCells.iterator_0(); cell$iterator.hasNext();) {
- cell = dynamicCast(cell$iterator.next_0(), 37);
- $findRenderer(this.this$01, cell);
- }
-}
-;
-_.postDetach = function(row, detachedCells){
- var cell, cell$iterator, renderer, rowIndex;
- rowIndex = row.row;
- $set_3(this.this$01.rowReference, rowIndex, null);
- for (cell$iterator = detachedCells.iterator_0(); cell$iterator.hasNext();) {
- cell = dynamicCast(cell$iterator.next_0(), 37);
- renderer = $findRenderer(this.this$01, cell);
- if (instanceOf(renderer, 51)) {
- try {
- $set_2(this.this$01.rendererCellReference, cell, $getColumn(this.this$01, cell.column));
- dynamicCast(renderer, 51);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 11)) {
- $ensureNamesAreInitialized(Lcom_vaadin_client_widgets_Grid_2_classLit);
- }
- else
- throw unwrap($e0);
- }
- }
- }
-}
-;
-_.preAttach = function(row, cellsToAttach){
- var cell, cell$iterator, renderer, rowIndex;
- rowIndex = row.row;
- $set_3(this.this$01.rowReference, rowIndex, this.this$01.dataSource_0.getRow(rowIndex));
- for (cell$iterator = cellsToAttach.iterator_0(); cell$iterator.hasNext();) {
- cell = dynamicCast(cell$iterator.next_0(), 37);
- renderer = $findRenderer(this.this$01, cell);
- if (instanceOf(renderer, 51)) {
- try {
- $set_2(this.this$01.rendererCellReference, cell, $getColumn(this.this$01, cell.column));
- $init((dynamicCast(renderer, 51) , this.this$01.rendererCellReference));
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 11)) {
- $ensureNamesAreInitialized(Lcom_vaadin_client_widgets_Grid_2_classLit);
- }
- else
- throw unwrap($e0);
- }
- }
- }
-}
-;
-_.preDetach = function(row, cellsToDetach){
- var cell, cell$iterator;
- for (cell$iterator = new FlyweightRow$CellIterator(new AbstractList$SubList(cellsToDetach.this$01.cells_0, cellsToDetach.val$offset2, cellsToDetach.val$offset2 + cellsToDetach.val$numberOfCells3), true); cell$iterator.cursor_0 + cell$iterator.skipNext < cell$iterator.cells_0.array.length;) {
- cell = $next_1(cell$iterator);
- $findRenderer(this.this$01, cell);
- }
-}
-;
-_.update = function(row, cellsToUpdate){
- var cell, cell$iterator, clxRenderer, column, hasData, isEvenIndex, renderer, rowData, rowElement, rowIndex, usedToHaveData, value_0;
- rowIndex = row.row;
- rowElement = row.element;
- rowData = this.this$01.dataSource_0.getRow(rowIndex);
- hasData = rowData != null;
- usedToHaveData = $hasClassName(rowElement, this.this$01.rowHasDataStyleName);
- usedToHaveData != hasData && setStyleName(rowElement, this.this$01.rowHasDataStyleName, hasData);
- isEvenIndex = row.row % 2 == 0;
- setStyleName(rowElement, this.this$01.rowStripeStyleName, !isEvenIndex);
- $set_3(this.this$01.rowReference, rowIndex, rowData);
- if (hasData) {
- setStyleName(rowElement, this.this$01.rowSelectedStyleName, $isSelected_0(this.this$01, rowData));
- setCustomStyleName(rowElement);
- }
- else if (usedToHaveData) {
- setStyleName(rowElement, this.this$01.rowSelectedStyleName, false);
- setCustomStyleName(rowElement);
- }
- $updateFocusedRowStyle(this.this$01.cellFocusHandler, row);
- for (cell$iterator = cellsToUpdate.iterator_0(); cell$iterator.hasNext();) {
- cell = dynamicCast(cell$iterator.next_0(), 37);
- column = $getColumn(this.this$01, cell.column);
- $updateFocusedCellStyle(this.this$01.cellFocusHandler, cell, this.this$01.escalator.body_0);
- (hasData || usedToHaveData) && setCustomStyleName(cell.element);
- renderer = column.bodyRenderer;
- try {
- $set_2(this.this$01.rendererCellReference, cell, column);
- if (instanceOf(renderer, 51)) {
- clxRenderer = dynamicCast(renderer, 51);
- if (hasData) {
- usedToHaveData || $setContentVisible(this.this$01.rendererCellReference, true);
- value_0 = column.getValue_0(rowData);
- $render_0(this.this$01.rendererCellReference, value_0);
- }
- else {
- $setContentVisible(this.this$01.rendererCellReference, false);
- }
- }
- else if (hasData) {
- value_0 = column.getValue_0(rowData);
- renderer.render(this.this$01.rendererCellReference, value_0);
- }
- else {
- $removeAllChildren(cell.element);
- }
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 11)) {
- $ensureNamesAreInitialized(Lcom_vaadin_client_widgets_Grid_2_classLit);
- }
- else
- throw unwrap($e0);
- }
- }
-}
-;
-var Lcom_vaadin_client_widgets_Grid$BodyUpdater_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/BodyUpdater', 232, Ljava_lang_Object_2_classLit);
-function $getFocusedCell(this$static){
- return new Cell(this$static.rowWithFocus, this$static.cellFocusRange.start_0, this$static.cellWithFocusStyle);
-}
-
-function $getNextContainer(this$static, current){
- if (current == this$static.this$01.escalator.header) {
- current = this$static.this$01.escalator.body_0;
- }
- else if (current == this$static.this$01.escalator.body_0) {
- current = this$static.this$01.escalator.footer;
- }
- else {
- return current;
- }
- if (current.getRowCount_0() == 0) {
- return $getNextContainer(this$static, current);
- }
- return current;
-}
-
-function $getPreviousContainer(this$static, current){
- if (current == this$static.this$01.escalator.footer) {
- current = this$static.this$01.escalator.body_0;
- }
- else if (current == this$static.this$01.escalator.body_0) {
- current = this$static.this$01.escalator.header;
- }
- else {
- return current;
- }
- if (current.getRowCount_0() == 0) {
- return $getPreviousContainer(this$static, current);
- }
- return current;
-}
-
-function $handleNavigationEvent_0(this$static, event_0, cell){
- var newColumn, newContainer, newRow;
- if ($equals_2(($clinit_DOMImpl() , event_0).type, 'click')) {
- $setCellFocus(this$static, cell.rowReference.rowIndex, cell.columnIndex, $findRowContainer(this$static.this$01.escalator, cell.element));
- $focus($getElement(this$static.this$01));
- }
- else if ($equals_2(event_0.type, 'keydown')) {
- newRow = this$static.rowWithFocus;
- newContainer = this$static.containerWithFocus;
- newColumn = this$static.cellFocusRange.start_0;
- switch (event_0.keyCode | 0) {
- case 40:
- ++newRow;
- break;
- case 38:
- --newRow;
- break;
- case 39:
- if (this$static.cellFocusRange.end >= unmodifiableList(new ArrayList_1(this$static.this$01.columns)).size_2()) {
- return;
- }
-
- newColumn = this$static.cellFocusRange.end;
- break;
- case 37:
- if (newColumn == 0) {
- return;
- }
-
- --newColumn;
- break;
- case 9:
- event_0.shiftKey?(newContainer = $getPreviousContainer(this$static, this$static.containerWithFocus)):(newContainer = $getNextContainer(this$static, this$static.containerWithFocus));
- if (newContainer == this$static.containerWithFocus) {
- return;
- }
-
- break;
- default:return;
- }
- if (newContainer != this$static.containerWithFocus) {
- newContainer == this$static.this$01.escalator.body_0?(newRow = this$static.lastFocusedBodyRow):newContainer == this$static.this$01.escalator.header?(newRow = this$static.lastFocusedHeaderRow):(newRow = this$static.lastFocusedFooterRow);
- }
- else if (newRow < 0) {
- newContainer = $getPreviousContainer(this$static, newContainer);
- newContainer == this$static.containerWithFocus?(newRow = 0):newContainer == this$static.this$01.escalator.body_0?(newRow = $getLastVisibleRowIndex(this$static.this$01)):(newRow = newContainer.getRowCount_0() - 1);
- }
- else if (newRow >= this$static.containerWithFocus.getRowCount_0()) {
- newContainer = $getNextContainer(this$static, newContainer);
- newContainer == this$static.containerWithFocus?(newRow = this$static.containerWithFocus.getRowCount_0() - 1):newContainer == this$static.this$01.escalator.body_0?(newRow = $getFirstVisibleRowIndex(this$static.this$01)):(newRow = 0);
- }
- if (newContainer.getRowCount_0() == 0) {
- return;
- }
- $eventPreventDefault(event_0);
- $eventStopPropagation(event_0);
- $setCellFocus(this$static, newRow, newColumn, newContainer);
- }
-}
-
-function $offsetRangeBy(this$static, offset){
- this$static.cellFocusRange = $offsetBy(this$static.cellFocusRange, offset);
-}
-
-function $refreshRow_0(this$static, row){
- this$static.containerWithFocus.refreshRows(row, 1);
-}
-
-function $rowsAddedToBody(this$static, added){
- var bodyHasFocus, insertionIsAboveFocusedCell;
- bodyHasFocus = this$static.containerWithFocus == this$static.this$01.escalator.body_0;
- insertionIsAboveFocusedCell = added.start_0 <= this$static.rowWithFocus;
- if (bodyHasFocus && insertionIsAboveFocusedCell) {
- this$static.rowWithFocus += added.end - added.start_0;
- $refreshRow_0(this$static, this$static.rowWithFocus);
- }
-}
-
-function $rowsRemovedFromBody(this$static, removed){
- if (this$static.containerWithFocus != this$static.this$01.escalator.body_0) {
- return;
- }
- else if ($contains_0(removed, this$static.rowWithFocus)) {
- if (this$static.containerWithFocus.getRowCount_0() > removed.end) {
- this$static.rowWithFocus = removed.start_0;
- }
- else if (removed.start_0 > 0) {
- this$static.rowWithFocus = removed.start_0 - 1;
- }
- else {
- if (this$static.this$01.escalator.header.rows_0 > 0) {
- this$static.rowWithFocus = this$static.lastFocusedHeaderRow;
- this$static.containerWithFocus = this$static.this$01.escalator.header;
- }
- else if (this$static.this$01.escalator.footer.rows_0 > 0) {
- this$static.rowWithFocus = this$static.lastFocusedFooterRow;
- this$static.containerWithFocus = this$static.this$01.escalator.footer;
- }
- }
- }
- else {
- if (removed.start_0 > this$static.rowWithFocus) {
- return;
- }
- this$static.rowWithFocus = this$static.rowWithFocus - (removed.end - removed.start_0);
- }
- $refreshRow_0(this$static, this$static.rowWithFocus);
-}
-
-function $setCellFocus(this$static, row, column, container){
- var cell, cellRange, colSpan, i_0, oldContainer, oldRange, oldRow;
- if (row == this$static.rowWithFocus && $contains_0(this$static.cellFocusRange, column) && container == this$static.containerWithFocus) {
- $refreshRow_0(this$static, this$static.rowWithFocus);
- return;
- }
- oldRow = this$static.rowWithFocus;
- this$static.rowWithFocus = row;
- oldRange = this$static.cellFocusRange;
- if (container == this$static.this$01.escalator.body_0) {
- $scrollToRow_1(this$static.this$01, this$static.rowWithFocus);
- this$static.cellFocusRange = withLength(column, 1);
- }
- else {
- i_0 = 0;
- cell = $getFirstChildElement(container.getRowElement(this$static.rowWithFocus));
- do {
- colSpan = $getPropertyInt(cell, 'colSpan');
- cellRange = withLength(i_0, colSpan);
- if (cellRange.start_0 <= column && column < cellRange.end) {
- this$static.cellFocusRange = cellRange;
- break;
- }
- cell = $getNextSiblingElement(($clinit_DOMImpl() , cell));
- ++i_0;
- }
- while (cell);
- }
- column >= this$static.this$01.escalator.columnConfiguration.frozenColumns && $scrollToColumn(this$static.this$01.escalator, column);
- if (this$static.containerWithFocus == container) {
- if ($equals(oldRange, this$static.cellFocusRange) && oldRow != this$static.rowWithFocus) {
- this$static.containerWithFocus.refreshRows(oldRow, 1);
- }
- else {
- $refreshHeader(this$static.this$01);
- $refreshFooter(this$static.this$01);
- }
- }
- else {
- oldContainer = this$static.containerWithFocus;
- this$static.containerWithFocus = container;
- oldContainer == this$static.this$01.escalator.body_0?(this$static.lastFocusedBodyRow = oldRow):oldContainer == this$static.this$01.escalator.header?(this$static.lastFocusedHeaderRow = oldRow):(this$static.lastFocusedFooterRow = oldRow);
- if ($equals(oldRange, this$static.cellFocusRange)) {
- oldContainer.refreshRows(oldRow, 1);
- }
- else {
- $refreshHeader(this$static.this$01);
- $refreshFooter(this$static.this$01);
- oldContainer == this$static.this$01.escalator.body_0 && oldContainer.refreshRows(oldRow, 1);
- }
- }
- $refreshRow_0(this$static, this$static.rowWithFocus);
-}
-
-function $updateFocusedCellStyle(this$static, cell, cellContainer){
- var cellColumn, cellRow, colSpan, columnHasFocus;
- cellRow = cell.row.row;
- cellColumn = cell.column;
- colSpan = $getPropertyInt(cell.element, 'colSpan');
- columnHasFocus = $intersects(withLength(cellColumn, colSpan), this$static.cellFocusRange);
- if (cellContainer == this$static.containerWithFocus) {
- if (cellRow == this$static.rowWithFocus && columnHasFocus) {
- if (this$static.cellWithFocusStyle != cell.element) {
- !!this$static.cellWithFocusStyle && setStyleName(this$static.cellWithFocusStyle, this$static.this$01.cellFocusStyleName, false);
- this$static.cellWithFocusStyle = cell.element;
- setStyleName(this$static.cellWithFocusStyle, this$static.this$01.cellFocusStyleName, true);
- }
- }
- else if (this$static.cellWithFocusStyle == cell.element) {
- setStyleName(this$static.cellWithFocusStyle, this$static.this$01.cellFocusStyleName, false);
- this$static.cellWithFocusStyle = null;
- }
- }
-}
-
-function $updateFocusedRowStyle(this$static, row){
- if (this$static.rowWithFocus == row.row && this$static.containerWithFocus == this$static.this$01.escalator.body_0) {
- if (row.element != this$static.rowWithFocusStyle) {
- !!this$static.rowWithFocusStyle && setStyleName(this$static.rowWithFocusStyle, this$static.this$01.rowFocusStyleName, false);
- this$static.rowWithFocusStyle = row.element;
- setStyleName(this$static.rowWithFocusStyle, this$static.this$01.rowFocusStyleName, true);
- }
- }
- else if (this$static.rowWithFocusStyle == row.element || this$static.containerWithFocus != this$static.this$01.escalator.body_0 && !!this$static.rowWithFocusStyle) {
- setStyleName(this$static.rowWithFocusStyle, this$static.this$01.rowFocusStyleName, false);
- this$static.rowWithFocusStyle = null;
- }
-}
-
-function Grid$CellFocusHandler(this$0){
- this.this$01 = this$0;
- this.containerWithFocus = this.this$01.escalator.body_0;
- this.cellFocusRange = withLength(0, 1);
- $sinkEvents_0(this$0, new Arrays$ArrayList(initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['keydown', 'click'])));
-}
-
-defineClass(228, 1, {}, Grid$CellFocusHandler);
-_.cellWithFocusStyle = null;
-_.lastFocusedBodyRow = 0;
-_.lastFocusedFooterRow = 0;
-_.lastFocusedHeaderRow = 0;
-_.rowWithFocus = 0;
-_.rowWithFocusStyle = null;
-var Lcom_vaadin_client_widgets_Grid$CellFocusHandler_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/CellFocusHandler', 228, Ljava_lang_Object_2_classLit);
-function $doSetWidth(this$static, pixels){
- var conf, index_0;
- if (this$static.grid) {
- index_0 = $indexOf_3(this$static.grid.columns, this$static, 0);
- conf = this$static.grid.escalator.columnConfiguration;
- $setColumnWidth(conf, index_0, pixels);
- }
-}
-
-function $setGrid(this$static, grid){
- var row;
- if (!!this$static.grid && !!grid) {
- throw new IllegalStateException_0('Column already is attached to a grid. Remove the column first from the grid and then add it. (in: ' + $toString_2(this$static) + ')');
- }
- !!this$static.grid && $schedule_0(this$static.grid.autoColumnWidthsRecalculator);
- this$static.grid = grid;
- if (this$static.grid) {
- $schedule_0(this$static.grid.autoColumnWidthsRecalculator);
- row = this$static.grid.header.defaultRow;
- !!row && $setText_0(dynamicCast($getCell_0(row, this$static), 85), this$static.headerCaption);
- }
-}
-
-function $setRenderer(this$static, renderer){
- if (!renderer) {
- throw new IllegalArgumentException_0('Renderer cannot be null.');
- }
- this$static.bodyRenderer = renderer;
- !!this$static.grid && $refreshBody(this$static.grid);
- return this$static;
-}
-
-function $setWidth_3(this$static, pixels){
- if (this$static.widthUser != pixels) {
- this$static.widthUser = pixels;
- !!this$static.grid && $schedule_0(this$static.grid.autoColumnWidthsRecalculator);
- }
- return this$static;
-}
-
-function $toString_2(this$static){
- var details, index_0;
- details = '';
- !this$static.headerCaption.length?(details += 'header:empty '):(details += 'header:"' + this$static.headerCaption + '" ');
- if (this$static.grid) {
- index_0 = $indexOf_4(unmodifiableList(new ArrayList_1(this$static.grid.columns)), this$static);
- index_0 != -1?(details += 'attached:#' + index_0 + ' '):(details += 'attached:unindexed ');
- }
- else {
- details += 'detached ';
- }
- details += 'sortable:false ';
- return $getSimpleName(this$static.___clazz$) + '[' + $trim(details) + ']';
-}
-
-function Grid$Column(renderer){
- $setRenderer(this, renderer);
-}
-
-defineClass(33, 1, {33:1});
-_.getExpandRatio = function(){
- return this.expandRatio;
-}
-;
-_.getMaximumWidth = function(){
- return this.maximumWidthPx;
-}
-;
-_.getMinimumWidth = function(){
- return this.minimumWidthPx;
-}
-;
-_.setWidth_0 = function(pixels){
- return $setWidth_3(this, pixels);
-}
-;
-_.toString$ = function(){
- return $toString_2(this);
-}
-;
-_.expandRatio = -1;
-_.headerCaption = '';
-_.maximumWidthPx = -1;
-_.minimumWidthPx = 10;
-_.widthUser = -1;
-var Lcom_vaadin_client_widgets_Grid$Column_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/Column', 33, Ljava_lang_Object_2_classLit);
-function $setGrid_0(this$static, grid){
- $addDataAvailableHandler(grid, new Grid$Editor$5(this$static));
-}
-
-function $setStylePrimaryName_7(this$static){
- this$static.styleName != null && $removeClassName(this$static.editorOverlay, this$static.styleName);
- this$static.styleName = 'v-grid-editor';
- $addClassName(this$static.editorOverlay, this$static.styleName);
-}
-
-function Grid$Editor(){
- this.editorOverlay = ($clinit_DOM() , $createDivElement($doc));
- new HashMap;
- new Grid$Editor$1;
- new Grid$Editor$3;
-}
-
-defineClass(227, 1, {}, Grid$Editor);
-_.rowIndex = -1;
-_.styleName = null;
-var Lcom_vaadin_client_widgets_Grid$Editor_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/Editor', 227, Ljava_lang_Object_2_classLit);
-function Grid$Editor$1(){
- Timer.call(this);
-}
-
-defineClass(233, 45, {}, Grid$Editor$1);
-_.run = function(){
- $ensureNamesAreInitialized(Lcom_vaadin_client_widgets_Grid_2_classLit);
- $ensureNamesAreInitialized(Lcom_vaadin_client_widget_grid_EditorHandler_2_classLit);
-}
-;
-var Lcom_vaadin_client_widgets_Grid$Editor$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/Editor/1', 233, Lcom_google_gwt_user_client_Timer_2_classLit);
-function Grid$Editor$3(){
- Timer.call(this);
-}
-
-defineClass(234, 45, {}, Grid$Editor$3);
-_.run = function(){
- $ensureNamesAreInitialized(Lcom_vaadin_client_widgets_Grid_2_classLit);
- $ensureNamesAreInitialized(Lcom_vaadin_client_widget_grid_EditorHandler_2_classLit);
-}
-;
-var Lcom_vaadin_client_widgets_Grid$Editor$3_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/Editor/3', 234, Lcom_google_gwt_user_client_Timer_2_classLit);
-function Grid$Editor$5(this$1){
- this.this$11 = this$1;
-}
-
-defineClass(235, 1, $intern_43, Grid$Editor$5);
-_.onDataAvailable = function(event_0){
- $contains_0(event_0.rowsAvailable, this.this$11.rowIndex) && undefined;
-}
-;
-var Lcom_vaadin_client_widgets_Grid$Editor$5_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/Editor/5', 235, Ljava_lang_Object_2_classLit);
-function $addColumn_1(this$static, column){
- var row, row$iterator;
- for (row$iterator = new AbstractList$IteratorImpl(this$static.rows_0); row$iterator.i < row$iterator.this$01_0.size_2();) {
- row = (checkCriticalElement(row$iterator.i < row$iterator.this$01_0.size_2()) , dynamicCast(row$iterator.this$01_0.get_0(row$iterator.last = row$iterator.i++), 84));
- $addCell(row, column);
- }
-}
-
-function $addRowAt(this$static, index_0){
- var i_0, row;
- row = new Grid$HeaderRow;
- row.section = this$static;
- for (i_0 = 0; i_0 < this$static.grid.columns.array.length; ++i_0) {
- $addCell(row, $getColumn(this$static.grid, i_0));
- }
- $add_5(this$static.rows_0, index_0, row);
- this$static.markAsDirty = true;
- $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), new Grid$Header$1(this$static));
- return row;
-}
-
-function $appendRow(this$static){
- return $addRowAt(this$static, this$static.rows_0.array.length);
-}
-
-function $getRow_0(this$static, index_0){
- try {
- return dynamicCast($get_6(this$static.rows_0, index_0), 84);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 34)) {
- throw new IllegalArgumentException_0('Row with index ' + index_0 + ' does not exist');
- }
- else
- throw unwrap($e0);
- }
-}
-
-function $removeColumn_0(this$static, column){
- var row, row$iterator;
- for (row$iterator = new AbstractList$IteratorImpl(this$static.rows_0); row$iterator.i < row$iterator.this$01_0.size_2();) {
- row = (checkCriticalElement(row$iterator.i < row$iterator.this$01_0.size_2()) , dynamicCast(row$iterator.this$01_0.get_0(row$iterator.last = row$iterator.i++), 84));
- row.cells_0.remove_2(column);
- }
-}
-
-function $setGrid_1(this$static, grid){
- this$static.grid = grid;
-}
-
-function Grid$StaticSection(){
- this.rows_0 = new ArrayList;
-}
-
-defineClass(154, 1, {});
-_.visible = true;
-var Lcom_vaadin_client_widgets_Grid$StaticSection_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/StaticSection', 154, Ljava_lang_Object_2_classLit);
-function Grid$Footer(){
- Grid$StaticSection.call(this);
-}
-
-defineClass(226, 154, {}, Grid$Footer);
-var Lcom_vaadin_client_widgets_Grid$Footer_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/Footer', 226, Lcom_vaadin_client_widgets_Grid$StaticSection_2_classLit);
-function $requestSectionRefresh(this$static){
- this$static.markAsDirty = true;
- $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), new Grid$Header$1(this$static));
-}
-
-function $setDefaultRow(this$static, row){
- if (row == this$static.defaultRow) {
- return;
- }
- if (!!row && $indexOf_3(this$static.rows_0, row, 0) == -1) {
- throw new IllegalArgumentException_0('Cannot set a default row that does not exist in the container');
- }
- !!this$static.defaultRow && (this$static.defaultRow.isDefault = false);
- !!row && (row.isDefault = true);
- this$static.defaultRow = row;
- this$static.markAsDirty = true;
- $scheduleFinally(($clinit_SchedulerImpl() , INSTANCE), new Grid$Header$1(this$static));
-}
-
-function Grid$Header(){
- Grid$StaticSection.call(this);
- this.markAsDirty = false;
-}
-
-defineClass(224, 154, {}, Grid$Header);
-_.markAsDirty = false;
-var Lcom_vaadin_client_widgets_Grid$Header_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/Header', 224, Lcom_vaadin_client_widgets_Grid$StaticSection_2_classLit);
-function Grid$Header$1(this$1){
- this.this$11 = this$1;
-}
-
-defineClass(121, 1, {}, Grid$Header$1);
-_.execute_1 = function(){
- if (this.this$11.markAsDirty) {
- this.this$11.markAsDirty = false;
- $refreshHeader(this.this$11.grid);
- }
-}
-;
-var Lcom_vaadin_client_widgets_Grid$Header$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/Header/1', 121, Ljava_lang_Object_2_classLit);
-function $getHtml(this$static){
- if (this$static.type_0 != ($clinit_GridStaticCellType() , HTML_1)) {
- throw new IllegalStateException_0('Cannot fetch HTML from a cell with type ' + this$static.type_0);
- }
- return dynamicCastToString(this$static.content_0);
-}
-
-function $getText(this$static){
- if (this$static.type_0 != ($clinit_GridStaticCellType() , TEXT_0)) {
- throw new IllegalStateException_0('Cannot fetch Text from a cell with type ' + this$static.type_0);
- }
- return dynamicCastToString(this$static.content_0);
-}
-
-function $getWidget(this$static){
- if (this$static.type_0 != ($clinit_GridStaticCellType() , WIDGET_0)) {
- throw new IllegalStateException_0('Cannot fetch Widget from a cell with type ' + this$static.type_0);
- }
- return dynamicCast(this$static.content_0, 17);
-}
-
-function $setColspan(this$static, colspan){
- if (colspan < 1) {
- throw new IllegalArgumentException_0('Colspan cannot be less than 1');
- }
- this$static.colspan = colspan;
- $requestSectionRefresh(this$static.section);
-}
-
-function $setHtml(this$static, html){
- this$static.content_0 = html;
- this$static.type_0 = ($clinit_GridStaticCellType() , HTML_1);
- $requestSectionRefresh(this$static.section);
-}
-
-function $setSection(this$static, section){
- this$static.section = section;
-}
-
-function $setText_0(this$static, text_0){
- this$static.content_0 = text_0;
- this$static.type_0 = ($clinit_GridStaticCellType() , TEXT_0);
- $requestSectionRefresh(this$static.section);
-}
-
-function $setWidget_1(this$static, widget){
- this$static.content_0 = widget;
- this$static.type_0 = ($clinit_GridStaticCellType() , WIDGET_0);
- $requestSectionRefresh(this$static.section);
-}
-
-defineClass(101, 1, {101:1});
-_.colspan = 1;
-_.content_0 = null;
-var Lcom_vaadin_client_widgets_Grid$StaticSection$StaticCell_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/StaticSection/StaticCell', 101, Ljava_lang_Object_2_classLit);
-function Grid$HeaderCell(){
- this.type_0 = ($clinit_GridStaticCellType() , TEXT_0);
-}
-
-defineClass(85, 101, {85:1, 101:1}, Grid$HeaderCell);
-var Lcom_vaadin_client_widgets_Grid$HeaderCell_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/HeaderCell', 85, Lcom_vaadin_client_widgets_Grid$StaticSection$StaticCell_2_classLit);
-function $addCell(this$static, column){
- var cell;
- cell = new Grid$HeaderCell;
- $setSection(cell, this$static.section);
- this$static.cells_0.put(column, cell);
-}
-
-function $getCell_0(this$static, column){
- var cellGroup;
- cellGroup = $getCellGroupForColumn(this$static, column);
- if (cellGroup) {
- return dynamicCast(this$static.cellGroups.get_1(cellGroup), 101);
- }
- return dynamicCast(this$static.cells_0.get_1(column), 101);
-}
-
-function $getCellGroupForColumn(this$static, column){
- var group, group$iterator;
- for (group$iterator = $iterator(new AbstractMap$1(this$static.cellGroups)); group$iterator.val$outerIter2.hasNext();) {
- group = dynamicCast($next_3(group$iterator), 64);
- if (group.contains_0(column)) {
- return group;
- }
- }
- return null;
-}
-
-defineClass(84, 1, {84:1});
-var Lcom_vaadin_client_widgets_Grid$StaticSection$StaticRow_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/StaticSection/StaticRow', 84, Ljava_lang_Object_2_classLit);
-function Grid$HeaderRow(){
- this.cells_0 = new HashMap;
- this.cellGroups = new HashMap;
- this.isDefault = false;
-}
-
-defineClass(225, 84, {84:1}, Grid$HeaderRow);
-_.isDefault = false;
-var Lcom_vaadin_client_widgets_Grid$HeaderRow_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/HeaderRow', 225, Lcom_vaadin_client_widgets_Grid$StaticSection$StaticRow_2_classLit);
-function $clinit_Grid$Section(){
- $clinit_Grid$Section = emptyMethod;
- HEADER = new Grid$Section('HEADER', 0);
- BODY = new Grid$Section('BODY', 1);
- FOOTER = new Grid$Section('FOOTER', 2);
-}
-
-function Grid$Section(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_9(){
- $clinit_Grid$Section();
- return initValues(getClassLiteralForArray(Lcom_vaadin_client_widgets_Grid$Section_2_classLit, 1), $intern_4, 100, 0, [HEADER, BODY, FOOTER]);
-}
-
-defineClass(100, 5, {100:1, 3:1, 6:1, 5:1}, Grid$Section);
-var BODY, FOOTER, HEADER;
-var Lcom_vaadin_client_widgets_Grid$Section_2_classLit = createForEnum('com.vaadin.client.widgets', 'Grid/Section', 100, Ljava_lang_Enum_2_classLit, values_9);
-function $initDone(this$static){
- var checkBox, model;
- if (instanceOf(this$static.this$01.selectionModel, 110) && !!this$static.this$01.header.defaultRow) {
- model = dynamicCast(this$static.this$01.selectionModel, 110);
- checkBox = new CheckBox;
- $addValueChangeHandler_0(checkBox, new Grid$SelectionColumn$1(this$static, model));
- $setWidget_1(dynamicCast($getCell_0(this$static.this$01.header.defaultRow, this$static), 85), checkBox);
- }
- $setWidth_4(this$static, -1);
- this$static.initDone = true;
-}
-
-function $setWidth_4(this$static, pixels){
- if (pixels != this$static.widthUser && this$static.initDone) {
- throw new UnsupportedOperationException_0('The selection column cannot be modified after init');
- }
- else {
- $setWidth_3(this$static, pixels);
- }
- return this$static;
-}
-
-function Grid$SelectionColumn(this$0, selectColumnRenderer){
- this.this$01 = this$0;
- Grid$Column.call(this, selectColumnRenderer);
- this.initDone = false;
-}
-
-defineClass(229, 33, {33:1}, Grid$SelectionColumn);
-_.getExpandRatio = function(){
- return 0;
-}
-;
-_.getMaximumWidth = function(){
- return -1;
-}
-;
-_.getMinimumWidth = function(){
- return -1;
-}
-;
-_.getValue_0 = function(row){
- return $clinit_Boolean() , $isSelected_0(this.this$01, row)?TRUE:FALSE;
-}
-;
-_.setWidth_0 = function(pixels){
- return $setWidth_4(this, pixels);
-}
-;
-_.initDone = false;
-var Lcom_vaadin_client_widgets_Grid$SelectionColumn_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/SelectionColumn', 229, Lcom_vaadin_client_widgets_Grid$Column_2_classLit);
-function Grid$SelectionColumn$1(this$1, val$model){
- this.this$11 = this$1;
- this.val$model2 = val$model;
-}
-
-defineClass(236, 1, $intern_38, Grid$SelectionColumn$1);
-_.onValueChange_0 = function(event_0){
- dynamicCast(event_0.value_0, 42).value_0?$fireEvent_0(this.this$11.this$01, new SelectAllEvent):$deselectAll(this.val$model2);
-}
-;
-var Lcom_vaadin_client_widgets_Grid$SelectionColumn$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/SelectionColumn/1', 236, Ljava_lang_Object_2_classLit);
-function $clinit_Grid$SelectionMode(){
- $clinit_Grid$SelectionMode = emptyMethod;
- SINGLE = new Grid$SelectionMode$1;
- MULTI = new Grid$SelectionMode$2;
- NONE_1 = new Grid$SelectionMode$3;
-}
-
-function Grid$SelectionMode(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_10(){
- $clinit_Grid$SelectionMode();
- return initValues(getClassLiteralForArray(Lcom_vaadin_client_widgets_Grid$SelectionMode_2_classLit, 1), $intern_4, 71, 0, [SINGLE, MULTI, NONE_1]);
-}
-
-defineClass(71, 5, $intern_44);
-var MULTI, NONE_1, SINGLE;
-var Lcom_vaadin_client_widgets_Grid$SelectionMode_2_classLit = createForEnum('com.vaadin.client.widgets', 'Grid/SelectionMode', 71, Ljava_lang_Enum_2_classLit, values_10);
-function Grid$SelectionMode$1(){
- Grid$SelectionMode.call(this, 'SINGLE', 0);
-}
-
-defineClass(239, 71, $intern_44, Grid$SelectionMode$1);
-_.createModel = function(){
- return new SelectionModelSingle;
-}
-;
-var Lcom_vaadin_client_widgets_Grid$SelectionMode$1_2_classLit = createForEnum('com.vaadin.client.widgets', 'Grid/SelectionMode/1', 239, Lcom_vaadin_client_widgets_Grid$SelectionMode_2_classLit, null);
-function Grid$SelectionMode$2(){
- Grid$SelectionMode.call(this, 'MULTI', 1);
-}
-
-defineClass(240, 71, $intern_44, Grid$SelectionMode$2);
-_.createModel = function(){
- return new SelectionModelMulti;
-}
-;
-var Lcom_vaadin_client_widgets_Grid$SelectionMode$2_2_classLit = createForEnum('com.vaadin.client.widgets', 'Grid/SelectionMode/2', 240, Lcom_vaadin_client_widgets_Grid$SelectionMode_2_classLit, null);
-function Grid$SelectionMode$3(){
- Grid$SelectionMode.call(this, 'NONE', 2);
-}
-
-defineClass(241, 71, $intern_44, Grid$SelectionMode$3);
-_.createModel = function(){
- return new SelectionModelNone;
-}
-;
-var Lcom_vaadin_client_widgets_Grid$SelectionMode$3_2_classLit = createForEnum('com.vaadin.client.widgets', 'Grid/SelectionMode/3', 241, Lcom_vaadin_client_widgets_Grid$SelectionMode_2_classLit, null);
-function $getSortOrder(this$static, column){
- var order, order$iterator;
- for (order$iterator = new Collections$UnmodifiableCollectionIterator(unmodifiableList(this$static.this$01.sortOrder).coll.iterator_0()); order$iterator.it.hasNext();) {
- order = throwClassCastExceptionUnlessNull(order$iterator.it.next_0());
- if (null.nullField == column) {
- return order;
- }
- }
- return null;
-}
-
-function $postAttach(this$static, row, attachedCells){
- var cell, cell$iterator, cellElement, columns, gridRow, metadata, widget;
- gridRow = $getRow_0(this$static.section, row.row);
- columns = unmodifiableList(new ArrayList_1(this$static.this$01.columns));
- for (cell$iterator = attachedCells.iterator_0(); cell$iterator.hasNext();) {
- cell = dynamicCast(cell$iterator.next_0(), 37);
- metadata = $getCell_0(gridRow, dynamicCast($get_8(columns, cell.column), 33));
- if (($clinit_GridStaticCellType() , WIDGET_0) == metadata.type_0) {
- widget = $getWidget(metadata);
- cellElement = cell.element;
- if (!widget.isAttached()) {
- $appendChild(cellElement, ($clinit_DOM() , widget.element));
- setParent(widget, this$static.this$01);
- }
- }
- }
-}
-
-function $preDetach(this$static, row, cellsToDetach){
- var cell, cell$iterator, columns, gridRow, metadata, widget;
- if (this$static.section.rows_0.array.length > row.row) {
- gridRow = $getRow_0(this$static.section, row.row);
- columns = unmodifiableList(new ArrayList_1(this$static.this$01.columns));
- for (cell$iterator = cellsToDetach.iterator_0(); cell$iterator.hasNext();) {
- cell = dynamicCast(cell$iterator.next_0(), 37);
- metadata = $getCell_0(gridRow, dynamicCast($get_8(columns, cell.column), 33));
- if (($clinit_GridStaticCellType() , WIDGET_0) == metadata.type_0 && $getWidget(metadata).isAttached()) {
- widget = $getWidget(metadata);
- setParent(widget, null);
- $removeFromParent(($clinit_DOM() , widget.element));
- }
- }
- }
-}
-
-function Grid$StaticSectionUpdater(this$0, section, container){
- this.this$01 = this$0;
- this.section = section;
- this.container = container;
-}
-
-defineClass(156, 1, {}, Grid$StaticSectionUpdater);
-_.postAttach = function(row, attachedCells){
- $postAttach(this, row, attachedCells);
-}
-;
-_.postDetach = function(row, detachedCells){
-}
-;
-_.preAttach = function(row, cellsToAttach){
-}
-;
-_.preDetach = function(row, cellsToDetach){
- $preDetach(this, row, cellsToDetach);
-}
-;
-_.update = function(row, cellsToUpdate){
- var cell, cell$iterator, columns, element, metadata, staticRow, cellElement, column;
- staticRow = $getRow_0(this.section, row.row);
- columns = unmodifiableList(new ArrayList_1(this.this$01.columns));
- setCustomStyleName(row.element);
- for (cell$iterator = cellsToUpdate.iterator_0(); cell$iterator.hasNext();) {
- cell = dynamicCast(cell$iterator.next_0(), 37);
- metadata = $getCell_0(staticRow, dynamicCast($get_8(columns, cell.column), 33));
- !!staticRow && (cellElement = cell.element , $removeAttribute(cellElement, 'sort-order') , $removeClassName(cellElement, 'sort-desc') , $removeClassName(cellElement, 'sort-asc') , column = $getColumn(this.this$01, cell.column) , $getSortOrder(this, column) , undefined);
- $setColSpan(cell, metadata.colspan);
- element = cell.element;
- switch (metadata.type_0.ordinal) {
- case 0:
- $setInnerText(element, $getText(metadata));
- break;
- case 1:
- $setInnerHTML(element, $getHtml(metadata));
- break;
- case 2:
- $preDetach(this, row, new Arrays$ArrayList(initValues(getClassLiteralForArray(Lcom_vaadin_client_widget_escalator_FlyweightCell_2_classLit, 1), $intern_4, 37, 0, [cell])));
- $setInnerHTML(element, '');
- $postAttach(this, row, new Arrays$ArrayList(initValues(getClassLiteralForArray(Lcom_vaadin_client_widget_escalator_FlyweightCell_2_classLit, 1), $intern_4, 37, 0, [cell])));
- }
- setCustomStyleName(element);
- $updateFocusedCellStyle(this.this$01.cellFocusHandler, cell, this.container);
- }
-}
-;
-var Lcom_vaadin_client_widgets_Grid$StaticSectionUpdater_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/StaticSectionUpdater', 156, Ljava_lang_Object_2_classLit);
-function $sort(this$static, column){
- if ($indexOf_3(this$static.this$01.columns, column, 0) == -1) {
- throw new IllegalArgumentException_0('Given column is not a column in this grid. ' + $toString_2(column));
- }
- return;
-}
-
-function Grid$UserSorter(this$0){
- this.this$01 = this$0;
- new Grid$UserSorter$1(this);
-}
-
-defineClass(230, 1, {}, Grid$UserSorter);
-var Lcom_vaadin_client_widgets_Grid$UserSorter_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/UserSorter', 230, Ljava_lang_Object_2_classLit);
-function Grid$UserSorter$1(this$1){
- this.this$11 = this$1;
- Timer.call(this);
-}
-
-defineClass(237, 45, {}, Grid$UserSorter$1);
-_.run = function(){
- $sort(this.this$11, this.this$11.column);
-}
-;
-var Lcom_vaadin_client_widgets_Grid$UserSorter$1_2_classLit = createForClass('com.vaadin.client.widgets', 'Grid/UserSorter/1', 237, Lcom_google_gwt_user_client_Timer_2_classLit);
-function $clinit_HTMLDocument(){
- $clinit_HTMLDocument = emptyMethod;
- throwClassCastExceptionUnlessNull($doc);
-}
-
-defineClass(552, 1, {});
-_.addEventListener = function(event_0, listener){
- this.addEventListener(event_0, listener);
-}
-;
-_.appendChild = function(element){
- this.appendChild(element);
-}
-;
-_.children = function(){
- return this.children;
-}
-;
-_.className = function(){
- return this.className;
-}
-;
-_.className = function(string){
- return _ = this , _.className = string , _;
-}
-;
-_.createShadowRoot = function(){
- return this.createShadowRoot();
-}
-;
-_.dispatchEvent = function(ev){
- this.dispatchEvent(ev);
-}
-;
-_.getAttribute = function(name_0){
- return this.getAttribute(name_0);
-}
-;
-_.innerHTML = function(string){
- this.innerHTML = string;
-}
-;
-_.innerText = function(){
- return this.innerText;
-}
-;
-_.innerText = function(string){
- this.innerText = string;
-}
-;
-_.setAttribute = function(name_0, value_0){
- this.setAttribute(name_0, value_0);
-}
-;
-_.shadowRoot = function(){
- return this.shadowRoot;
-}
-;
-_.style = function(){
- return this.style;
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_html_HTMLElement$Prototype_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.html', 'HTMLElement/Prototype', 552, Ljava_lang_Object_2_classLit);
-defineClass(553, 552, {});
-var Lcom_vaadin_prototype_wc_gwt_client_html_HTMLTableElement$Prototype_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.html', 'HTMLTableElement/Prototype', 553, Lcom_vaadin_prototype_wc_gwt_client_html_HTMLElement$Prototype_2_classLit);
-function $clinit_HTMLWindow(){
- $clinit_HTMLWindow = emptyMethod;
- window_2 = $wnd;
-}
-
-var window_2;
-function $clinit_ElementResizeManager(){
- $clinit_ElementResizeManager = emptyMethod;
- elementResizeListeners = new HashMap;
- resizeHelpers = new HashMap;
- deferHandles = new HashMap;
- previousSizes = new HashMap;
- scheduleFrame = getScheduleFrame();
- cancelFrame = getCancelFrame();
-}
-
-function addResizeListener(element, listener){
- var helper, expandDiv, contractDiv;
- $clinit_ElementResizeManager();
- var listeners;
- $equals_2($getPosition(element.style), ($clinit_Style$Position() , STATIC)) && $setPropertyImpl(element.style, 'position', 'relative');
- listeners = dynamicCast(elementResizeListeners.get_1(element), 28);
- if (!listeners) {
- listeners = new HashSet;
- elementResizeListeners.put(element, listeners);
- }
- !!dynamicCastJso(resizeHelpers.get_1(element)) || (helper = ($clinit_DOM() , $createDivElement($doc)) , $addClassName(helper, 'v-resize-helper') , expandDiv = $createDivElement($doc) , $addClassName(expandDiv, 'v-resize-helper-expand') , $appendChild(expandDiv, $createDivElement($doc)) , helper.appendChild(expandDiv) , contractDiv = $createDivElement($doc) , $addClassName(contractDiv, 'v-resize-helper-contract') , helper.appendChild(contractDiv) , resizeHelpers.put(element, helper) , element.appendChild(helper) , $schedule(new ElementResizeManager$1(element), 1) , undefined);
- listeners.add_1(listener);
- return listener;
-}
-
-function addScrollListener(element){
- $clinit_ElementResizeManager();
- element.addEventListener('scroll', onElementScroll, true);
-}
-
-function getCancelFrame(){
- var cancelFunction = $wnd.cancelAnimationFrame || $wnd.mozCancelAnimationFrame || $wnd.webkitCancelAnimationFrame || $wnd.clearTimeout;
- return function(id_0){
- return cancelFunction(id_0);
- }
- ;
-}
-
-function getDeferHandle(element){
- return dynamicCastJso(deferHandles.get_1(element));
-}
-
-function getPreviousSize(element){
- $clinit_ElementResizeManager();
- return dynamicCast(previousSizes.get_1(element), 128);
-}
-
-function getScheduleFrame(){
- var frameFunction = $wnd.requestAnimationFrame || $wnd.mozRequestAnimationFrame || $wnd.webkitRequestAnimationFrame || function(deferredFunction){
- return $wnd.setTimeout(deferredFunction, 20);
- }
- ;
- return function(deferredFunction){
- return frameFunction(deferredFunction);
- }
- ;
-}
-
-function onElementScroll(event_0){
- var target = event_0.currentTarget;
- resetHelpers(target);
- var deferHandle = getDeferHandle(target);
- if (deferHandle) {
- var cancelFrameFunction = cancelFrame;
- cancelFrameFunction(deferHandle);
- }
- var scheduleFrameFunction = scheduleFrame;
- deferHandle = scheduleFrameFunction(function(){
- var previousSize = getPreviousSize(target);
- if (target.offsetWidth != previousSize.width || target.offsetHeight != previousSize.height) {
- var currentSize = new ElementResizeManager$Size(target.offsetWidth, target.offsetHeight);
- triggerResize(target, previousSize, currentSize);
- setPreviousSize(target, currentSize);
- }
- }
- );
- setDeferHandle(target, deferHandle);
-}
-
-function resetHelpers(element){
- $clinit_ElementResizeManager();
- var helpers = dynamicCastJso(resizeHelpers.get_1(element));
- var expand = helpers.firstElementChild;
- var contract = helpers.lastElementChild;
- var expandChild = expand.firstElementChild;
- contract.scrollLeft = contract.scrollWidth;
- contract.scrollTop = contract.scrollHeight;
- expandChild.style.width = expand.offsetWidth + 1 + 'px';
- expandChild.style.height = expand.offsetHeight + 1 + 'px';
- expand.scrollLeft = expand.scrollWidth;
- expand.scrollTop = expand.scrollHeight;
-}
-
-function setDeferHandle(element, handle){
- deferHandles.put(element, handle);
-}
-
-function setPreviousSize(element, size_0){
- $clinit_ElementResizeManager();
- previousSizes.put(element, size_0);
-}
-
-function triggerResize(element, previousSize, newSize){
- var listener, listener$iterator, rowCount;
- $ensureNamesAreInitialized(Lcom_vaadin_prototype_wc_gwt_client_ui_ElementResizeManager_2_classLit);
- for (listener$iterator = dynamicCast(elementResizeListeners.get_1(element), 28).iterator_0(); listener$iterator.hasNext();) {
- listener = dynamicCast(listener$iterator.next_0(), 583);
- rowCount = listener.this$01.size_0;
- rowCount == 0 && (listener.this$01.vals?(rowCount = listener.this$01.vals.size_2()):!!listener.this$01.grid.dataSource_0 && (rowCount = listener.this$01.grid.dataSource_0.size_2()));
- $adjustHeight_0(listener.this$01, rowCount);
- }
-}
-
-var cancelFrame, deferHandles, elementResizeListeners, previousSizes, resizeHelpers, scheduleFrame;
-var Lcom_vaadin_prototype_wc_gwt_client_ui_ElementResizeManager_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.ui', 'ElementResizeManager', null, Ljava_lang_Object_2_classLit);
-function ElementResizeManager$1(val$element){
- this.val$element1 = val$element;
- Timer.call(this);
-}
-
-defineClass(304, 45, {}, ElementResizeManager$1);
-_.run = function(){
- resetHelpers(this.val$element1);
- !getPreviousSize(this.val$element1) && setPreviousSize(this.val$element1, new ElementResizeManager$Size(0, 0));
- addScrollListener(this.val$element1);
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_ui_ElementResizeManager$1_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.ui', 'ElementResizeManager/1', 304, Lcom_google_gwt_user_client_Timer_2_classLit);
-function ElementResizeManager$Size(width_0, height){
-}
-
-defineClass(128, 1, {128:1}, ElementResizeManager$Size);
-var Lcom_vaadin_prototype_wc_gwt_client_ui_ElementResizeManager$Size_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.ui', 'ElementResizeManager/Size', 128, Ljava_lang_Object_2_classLit);
-function $clinit_Elements(){
- $clinit_Elements = emptyMethod;
- new HashSet;
- window_3 = ($clinit_HTMLWindow() , window_2);
- document_1 = window_3.document;
- document_1.head;
- document_1.body;
- monkeyPatchHTMLElement();
-}
-
-function getWCOptions(elem){
- function mixin(dest, src_0){
- for (var k_0 in src_0) {
- if (src_0.hasOwnProperty(k_0)) {
- var r = /^jsProperty([A-Z].+)$/.exec(k_0);
- if (r) {
- var prpName = r[1].charAt(0).toLowerCase() + r[1].slice(1);
- var getName = 'get' + r[1];
- var setName = 'set' + r[1];
- src_0[prpName] === undefined && Object.defineProperty(dest, prpName, {get:src_0[getName] || function(){
- }
- , set:src_0[setName] || function(){
- }
- , enumerable:true, configurable:true});
- delete dest[getName];
- delete dest[setName];
- }
- else {
- dest[k_0] = src_0[k_0];
- }
- }
- }
- }
-
- var eproto = $wnd.Object.create($wnd.HTMLElement.prototype);
- var cproto = $wnd.Object.getPrototypeOf(elem);
- mixin(eproto, cproto);
- $wnd.__addEventListener_patched && (eproto.addEventListener = $wnd.__addEventListener_patched);
- return {prototype:eproto};
-}
-
-function isEventListener(o){
- return instanceOf(o, 20);
-}
-
-function monkeyPatchHTMLElement(){
- if ($wnd.__addEventListener_org)
- return;
- console.log('Monkey Patched HTMLElement.addEventListener');
- $wnd.__addEventListener_org = $wnd.HTMLElement.prototype.addEventListener;
- $wnd.__addEventListener_patched = function(name_0, obj, bol){
- var fnc = isEventListener(obj)?function(e){
- obj.onBrowserEvent(e);
- }
- :obj;
- $wnd.__addEventListener_org.call(this, name_0, fnc, bol);
- }
- ;
- $wnd.HTMLElement.prototype.addEventListener = $wnd.__addEventListener_patched;
-}
-
-function registerElement(tag, elem){
- $clinit_Elements();
- var js;
- js = getWCOptions(elem);
- document_1.registerElement(tag, js);
-}
-
-var document_1, window_3;
-function WCFormat(){
-}
-
-function formatCurrency(val){
- var fmt;
- fmt = ($clinit_NumberFormat() , !cachedCurrencyFormat && (cachedCurrencyFormat = new NumberFormat_0(['USD', 'US$', 2, 'US$', '$'])) , $clinit_NumberFormat() , cachedCurrencyFormat);
- return $format(fmt, val);
-}
-
-defineClass(554, 1, {}, WCFormat);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCFormat_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCFormat', 554, Ljava_lang_Object_2_classLit);
-function $clinit_WCUtils(){
- $clinit_WCUtils = emptyMethod;
- postThemeLoad = new WCUtils$1;
-}
-
-function getAttrFloatValue(el, attr, def){
- $clinit_WCUtils();
- try {
- return (new Float_0(getAttrValue(el, attr, '' + def))).value_0;
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 73)) {
- return 0;
- }
- else
- throw unwrap($e0);
- }
-}
-
-function getAttrValue(el, attr, def){
- $clinit_WCUtils();
- var val;
- val = el.getAttribute(attr);
- return val == null || !val.length?def:val;
-}
-
-function linksAndScripts(g){
- var d, e, e$array, e$index, e$max, imports, toAdd;
- imports = $find(g, initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ["link[rel='import'], script[src]"]));
- $each(imports, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new WCUtils$6(g)]));
- toAdd = ($clinit_GQuery() , new GQuery_3(create_4(null)));
- for (e$array = imports.elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- d = dynamicCastJso($prop(new GQuery_0(e), 'import'));
- !!d && $add(toAdd, linksAndScripts(new GQuery_0(d)));
- }
- return $pushStack(imports, copyNodeList(imports.nodeList, toAdd.nodeList, true), $join(',', initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, [imports.currentSelector, toAdd.currentSelector])));
-}
-
-function loadTheme(container, style, theme){
- var global, key;
- $clinit_WCUtils();
- var base, l, links_0, s, v;
- links_0 = linksAndScripts(($clinit_GQuery() , new GQuery_0(document_0)));
- l = $filter(links_0, new WCUtils$7);
- s = $filter(links_0, new WCUtils$8);
- v = $filter(links_0, new WCUtils$9);
- base = $replace_0((key = '__gwtDevModeHook:' + $moduleName + ':moduleBase' , global = $wnd || self , global[key] || $moduleBase), $moduleName + '/', '');
- if (l.elements.length == 0) {
- base.indexOf('VAADIN/widgetsets') != -1?(base += '../themes/'):v.elements.length == 0?s.elements.length == 0 || (base += 'VAADIN/themes/'):(base = $replace_0(v.elements.length == 0?'':$getAttribute($get(v, 0), 'src'), 'vaadin-components.js', 'themes/'));
- }
- else {
- base = $replaceFirst(l.elements.length == 0?'':$getAttribute($get(l, 0), 'href'), '[\\w\\-]+\\.html', '');
- $matches(base, '^(|/|.*[\\w\\-]/)$')?(base += '../vaadin-'):(base += 'VAADIN/themes/');
- }
- base += theme + '/styles.css';
- $addClass(container, initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, [theme]));
- $text_0(style, "@import url('" + base + "')");
-}
-
-function loadVaadinTheme(container, el, style, f){
- $clinit_WCUtils();
- var theme;
- theme = getAttrValue(el, 'theme', null);
- if (theme == null) {
- return;
- }
- if ($indexOf_0($text($_0(style)), theme) != -1) {
- return;
- }
- loadTheme($_0(container), $_0(style), theme);
- waitUntilThemeLoaded($_0(style), f);
-}
-
-function observe(jso, ev){
- $clinit_WCUtils();
- var fnc = function(changes){
- ev.onBrowserEvent(null);
- }
- ;
- jso.__fnc = fnc;
- Object.observe(jso, fnc);
-}
-
-function ready(fncs){
- $clinit_WCUtils();
- return $done(new WCUtils$2, fncs);
-}
-
-function unobserve(jso){
- $clinit_WCUtils();
- if (jso && jso.__fnc) {
- Object.unobserve(jso, jso.__fnc);
- jso.__fnc = undefined;
- }
-}
-
-function waitUntilThemeLoaded(style, f){
- $clinit_WCUtils();
- var rows_0, sheet_0;
- try {
- sheet_0 = dynamicCastJso(style.elements.length == 0?null:prop_0($get(style, 0), 'sheet'));
- if (sheet_0) {
- rows_0 = dynamicCastJso(!sheet_0?null:$get_1(sheet_0, 'cssRules'));
- !!rows_0 && rows_0.length > 0 && $scheduleRepeating(new WCUtils$4(rows_0, style, f));
- }
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- $scheduleDeferred_0(($clinit_SchedulerImpl() , INSTANCE), new WCUtils$5(style, f));
- }
- else
- throw unwrap($e0);
- }
-}
-
-var postThemeLoad;
-function WCUtils$1(){
- Function_0.call(this);
-}
-
-defineClass(314, 7, $intern_20, WCUtils$1);
-_.f_0 = function(){
- var e, e$array, e$index, e$max;
- for (e$array = ($clinit_GQuery() , $_1('v-grid', document_0)).elements , e$index = 0 , e$max = e$array.length; e$index < e$max; ++e$index) {
- e = e$array[e$index];
- runJavascriptFunction(e, 'redraw', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, []));
- }
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$1_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/1', 314, Lcom_google_gwt_query_client_Function_2_classLit);
-function $f_4(this$static, dfd){
- 'complete' === $prop(($clinit_GQuery() , $clinit_GQuery() , new GQuery_0(document_0)), 'readyState')?$resolve(dfd, initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [])):$schedule(new WCUtils$2$1(this$static, dfd), 5);
-}
-
-function WCUtils$2(){
- PromiseFunction.call(this);
-}
-
-defineClass(315, 150, $intern_24, WCUtils$2);
-_.f_3 = function(dfd){
- $f_4(this, dfd);
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$2_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/2', 315, Lcom_google_gwt_query_client_plugins_deferred_PromiseFunction_2_classLit);
-function WCUtils$2$1(this$1, val$dfd){
- this.this$11 = this$1;
- this.val$dfd2 = val$dfd;
- Timer.call(this);
-}
-
-defineClass(316, 45, {}, WCUtils$2$1);
-_.run = function(){
- $f_4(this.this$11, this.val$dfd2);
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$2$1_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/2/1', 316, Lcom_google_gwt_user_client_Timer_2_classLit);
-function WCUtils$3(){
- Function_0.call(this);
-}
-
-defineClass(205, 7, $intern_20, WCUtils$3);
-_.f_0 = function(){
- var body_0, style, theme;
- body_0 = ($clinit_GQuery() , $_1('body', document_0));
- theme = body_0.elements.length == 0?'':$getAttribute($get(body_0, 0), 'vaadin-theme');
- if (theme.length) {
- style = $_1('#__vaadin-style', document_0);
- style.elements.length == 0 && (style = $appendTo($_1("<style id='__vaadin-style' language='text/css'><\/style>", document_0), $_1('head', document_0)));
- loadTheme(body_0, style, theme);
- waitUntilThemeLoaded(style, ($clinit_WCUtils() , postThemeLoad));
- }
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$3_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/3', 205, Lcom_google_gwt_query_client_Function_2_classLit);
-function WCUtils$4(val$rows, val$style, val$f){
- this.val$rows1 = val$rows;
- this.val$style2 = val$style;
- this.val$f3 = val$f;
- Timer.call(this);
-}
-
-defineClass(317, 45, {}, WCUtils$4);
-_.run = function(){
- var e, importedSheet;
- try {
- importedSheet = dynamicCastJso(prop_0(dynamicCastJso(this.val$rows1[0]), 'styleSheet'));
- if (importedSheet) {
- $schedule(new WCUtils$4$1(this.val$f3), 500);
- $log($toJs(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [($clinit_GQuery() , 'Theme rules were loaded: ' + $text(this.val$style2))])));
- $cancel_0(this);
- }
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 12)) {
- e = $e0;
- $log($toJs(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [($clinit_GQuery() , e)])));
- }
- else
- throw unwrap($e0);
- }
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$4_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/4', 317, Lcom_google_gwt_user_client_Timer_2_classLit);
-function WCUtils$4$1(val$f){
- this.val$f2 = val$f;
- Timer.call(this);
-}
-
-defineClass(318, 45, {}, WCUtils$4$1);
-_.run = function(){
- this.val$f2.f_0();
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$4$1_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/4/1', 318, Lcom_google_gwt_user_client_Timer_2_classLit);
-function WCUtils$5(val$style, val$f){
- this.val$style1 = val$style;
- this.val$f2 = val$f;
-}
-
-defineClass(319, 1, {}, WCUtils$5);
-_.execute_1 = function(){
- waitUntilThemeLoaded(this.val$style1, this.val$f2);
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$5_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/5', 319, Ljava_lang_Object_2_classLit);
-function WCUtils$6(val$g){
- this.val$g1 = val$g;
- Function_0.call(this);
-}
-
-defineClass(320, 7, $intern_20, WCUtils$6);
-_.f_0 = function(){
- var a, attr;
- a = $_1('<a>', $get(this.val$g1, 0));
- attr = $prop(($clinit_GQuery() , new GQuery_0(this.element)), 'href') != null?'href':'src';
- $prop_0(a, $attr(new GQuery_0(this.element), attr));
- $attr_0(new GQuery_0(this.element), attr, a.elements.length == 0?null:prop_0($get(a, 0), 'href'));
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$6_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/6', 320, Lcom_google_gwt_query_client_Function_2_classLit);
-function WCUtils$7(){
-}
-
-defineClass(321, 48, $intern_21, WCUtils$7);
-_.f_2 = function(e, index_0){
- var h;
- h = $attr(($clinit_GQuery() , new GQuery_0(e)), 'href');
- return $matches(h, '^(|.*/)(vaadin-[\\w\\-]+)\\.html');
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$7_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/7', 321, Lcom_google_gwt_query_client_Predicate_2_classLit);
-function WCUtils$8(){
-}
-
-defineClass(322, 48, $intern_21, WCUtils$8);
-_.f_2 = function(e, index_0){
- var h;
- h = $attr(($clinit_GQuery() , new GQuery_0(e)), 'src');
- return $matches(h, '^.*\\.nocache.js.*');
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$8_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/8', 322, Lcom_google_gwt_query_client_Predicate_2_classLit);
-function WCUtils$9(){
-}
-
-defineClass(323, 48, $intern_21, WCUtils$9);
-_.f_2 = function(e, index_0){
- var h;
- h = $attr(($clinit_GQuery() , new GQuery_0(e)), 'src');
- return $equals_2(__substr(h, h.length - 20, 20), 'vaadin-components.js');
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCUtils$9_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCUtils/9', 323, Lcom_google_gwt_query_client_Predicate_2_classLit);
-function $adjustHeight(this$static){
- this$static.size_0 = this$static.grid.dataSource_0.size_2();
- $adjustHeight_0(this$static, this$static.size_0);
-}
-
-function $adjustHeight_0(this$static, size_0){
- var paramsForName;
- if ((ensureListParameterMap() , paramsForName = dynamicCast(listParamMap.get_1('resize'), 30) , !paramsForName?null:dynamicCastToString(paramsForName.get_0(paramsForName.size_2() - 1))) != null && size_0 > 0) {
- this$static.size_0 = size_0;
- $setHeightMode_0(this$static.grid, ($clinit_HeightMode() , ROW));
- $setHeightByRows_0(this$static.grid, size_0 < 10?size_0:10);
- }
-}
-
-function $getGrid(this$static){
- if (!this$static.grid) {
- this$static.changed = true;
- $initGrid(this$static);
- }
- return this$static.grid;
-}
-
-function $initGrid(this$static){
- var c, cell, col, content_0, dataSource, header, i_0, j, k_0, l, offset, row, templateRegexp;
- if (!this$static.changed) {
- return;
- }
- this$static.changed = false;
- dataSource = this$static.grid.dataSource_0;
- instanceOf(this$static.grid.selectionModel, 127) && $equals_2($attr($_0(this$static), 'selectionMode'), 'multi')?$setSelectionMode(this$static.grid, ($clinit_Grid$SelectionMode() , MULTI)):instanceOf(this$static.grid.selectionModel, 104) && !$equals_2($attr($_0(this$static), 'selectionMode'), 'multi') && $setSelectionMode(this$static.grid, ($clinit_Grid$SelectionMode() , SINGLE));
- while (this$static.gridColumns.array.length > 0) {
- $removeColumn(this$static.grid, dynamicCast(this$static.gridColumns.remove_3(0), 33));
- }
- if (this$static.cols_0) {
- for (i_0 = 0 , l = this$static.cols_0.size_2(); i_0 < l; i_0++) {
- c = dynamicCast(this$static.cols_0.get_0(i_0), 77);
- col = (templateRegexp = new RegExp('\\{\\{data\\}\\}', 'ig') , new WCVGrid$3(new WCVGrid$2(c, templateRegexp), c, i_0));
- $addColumn(this$static.grid, col);
- $add_6(this$static.gridColumns, col);
- for (j = 0; j < $headerData(c).array.length; j++) {
- this$static.grid.header.rows_0.array.length < $headerData(c).array.length && $appendRow(this$static.grid.header);
- header = dynamicCast($get_7($headerData(c), j), 94);
- offset = 0;
- for (k_0 = 0; k_0 <= j + offset; k_0++) {
- row = $getHeaderRow(this$static.grid, k_0);
- dynamicCast($getCell_0(row, $getColumn(this$static.grid, i_0)), 85).colspan != 1 && ++offset;
- }
- cell = dynamicCast($getCell_0($getHeaderRow(this$static.grid, j + offset), col), 85);
- $setColspan(cell, round_int($getFloat(header.p, 'colSpan')));
- content_0 = $get_0(header.p, 'content');
- switch (valueOf_0($getStr(header.p, 'format')).ordinal) {
- case 1:
- $setHtml(cell, dynamicCastToString(content_0));
- break;
- case 2:
- $setWidget_1(cell, dynamicCast(content_0, 17));
- break;
- case 0:
- $setText_0(cell, dynamicCastToString(content_0));
- }
- }
- }
- $setDefaultHeaderRow(this$static.grid, $getHeaderRow(this$static.grid, this$static.headerDefaultRowIndex));
- }
- this$static.loadRows();
- !!this$static.vals && !this$static.vals.isEmpty() && (dataSource = new ListDataSource(this$static.vals));
- !!dataSource && $setDataSource(this$static.grid, dataSource);
- addResizeListener($getElement(this$static.grid), new WCVGrid$1(this$static));
-}
-
-function $setCols(this$static, cols_0){
- this$static.changed = true;
- this$static.cols_0 = cols_0;
-}
-
-function WCVGrid(){
- this.$init();
-}
-
-function c_0(r){
- r.defaultRowHeightShouldBeAutodetected = true;
- r.autodetectRowHeightLater();
-}
-
-function createGridColumn(gColumn, idx){
- var templateRegexp;
- templateRegexp = new RegExp('\\{\\{data\\}\\}', 'ig');
- return new WCVGrid$3(new WCVGrid$2(gColumn, templateRegexp), gColumn, idx);
-}
-
-defineClass(208, 553, {196:1, 145:1, 22:1, 531:1, 530:1}, WCVGrid);
-_.$init = function(){
-}
-;
-_.adjustHeight = function(){
- $adjustHeight(this);
-}
-;
-_.adjustHeight_0 = function(size_0){
- $adjustHeight_0(this, size_0);
-}
-;
-_.attachedCallback = function(){
- this.initWidgetSystem();
- this.readAttributes();
-}
-;
-_.attributeChangedCallback = function(){
- this.refreshing || this.readAttributes();
-}
-;
-_.createdCallback = function(){
- this.style_0 = ($clinit_Elements() , document_1.createElement('style'));
- this.style_0.setAttribute('language', 'text/css');
- this.selectEvent = document_1.createEvent('HTMLEvents');
- this.selectEvent.initEvent('select', false, false);
- this.selectEvent.srcElement = this;
- this.container = document_1.createElement('div');
- this.cols_0 = new ArrayList;
- this.vals = new ArrayList;
- this.gridColumns = new ArrayList;
- this.grid = new Grid;
- $addHandler_0(this.grid, this, ($clinit_SelectionEvent() , $clinit_SelectionEvent() , eventType_0));
-}
-;
-_.getCols = function(){
- return this.cols_0;
-}
-;
-_.getColumns = function(){
- var i_0, i0, l, l0;
- if (this.columnsJso) {
- for (i0 = 0 , l0 = this.columnsJso.length; i0 < l0; i0++) {
- unobserve(dynamicCastJso(this.columnsJso[i0]));
- }
- }
- this.columnsJso = dynamicCastJso($get_0($setColumns((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_2_classLit), 95)), this.cols_0).p, 'columns'));
- for (i_0 = 0 , l = this.columnsJso.length; i_0 < l; i_0++) {
- observe(dynamicCastJso(this.columnsJso[i_0]), new WCVGrid$5(this));
- }
- return this.columnsJso;
-}
-;
-_.getDataSource = function(){
- return createFunction();
-}
-;
-_.getGrid = function(){
- return $getGrid(this);
-}
-;
-_.getHeightMode = function(){
- return $toString_0(this.grid.escalator.heightMode);
-}
-;
-_.getRowCount = function(){
- return this.size_0;
-}
-;
-_.getSelectedRow = function(){
- return !this.grid || !this.grid.selectionModel || !instanceOf(this.grid.selectionModel, 96) || $getSelectedRow_0(this.grid) == null?-1:this.grid.dataSource_0.indexOf_0(dynamicCastJso($getSelectedRow_0(this.grid)));
-}
-;
-_.getSelectedRows = function(){
- var c, i_0;
- if (!this.selectedLock) {
- !this.selectedJso && (this.selectedJso = []);
- this.selectedJso.length = 0;
- c = this.grid.selectionModel.getSelectedRows_0();
- for (i_0 = c.iterator_0(); i_0.hasNext();) {
- $push_0(this.selectedJso, this.grid.dataSource_0.indexOf_0(dynamicCastJso(i_0.next_0())));
- }
- unobserve(this.selectedJso);
- observe(this.selectedJso, new WCVGrid$6(this));
- }
- return this.selectedJso;
-}
-;
-_.getTheme = function(){
- this.getAttribute('theme');
-}
-;
-_.initGrid = function(){
- $initGrid(this);
-}
-;
-_.initWidgetSystem = function(){
- var elementWidget, shadow, shadowPanel;
- this.initialized || (this.lightDom = $observe_0(dynamicCast($as($hide($children($_0(this))), ($clinit_Observe() , Observe)), 118), $subtree($childList($characterData($attributes((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_google_gwt_query_client_plugin_Observe$MutationObserverInit_2_classLit), 581)))))), this));
- if (!this.initialized) {
- this.initialized = true;
- elementWidget = $widget($_0(this), 0);
- !elementWidget && (elementWidget = $widget($widgets(dynamicCast($as($_0(this), ($clinit_GQuery() , Widgets)), 67)), 0));
- $addHandler_0(elementWidget, this, (!TYPE_0 && (TYPE_0 = new GwtEvent$Type) , TYPE_0));
- $clinit_WCUtils();
- if (($clinit_Boolean() , $equalsIgnoreCase('true', getAttrValue(this, 'shadow', 'false'))?TRUE:FALSE).value_0) {
- shadow = this.createShadowRoot();
- shadow.appendChild(this.style_0);
- shadow.appendChild(this.container);
- }
- else {
- this.appendChild(this.style_0);
- this.appendChild(this.container);
- }
- shadowPanel = dynamicCast($widget($widgets(dynamicCast($as($_0(this.container), ($clinit_GQuery() , Widgets)), 67)), 0), 36);
- shadowPanel.add_0(this.grid);
- }
-}
-;
-_.jsPropertyColumns = function(){
-}
-;
-_.jsPropertyDataSource = function(){
-}
-;
-_.jsPropertyHeight = function(){
-}
-;
-_.jsPropertyHeightMode = function(){
-}
-;
-_.jsPropertyRowCount = function(){
-}
-;
-_.jsPropertySelectedRow = function(){
-}
-;
-_.jsPropertySelectedRows = function(){
-}
-;
-_.jsPropertyTheme = function(){
-}
-;
-_.loadData = function(){
- !!this.vals && !this.vals.isEmpty() && $setDataSource(this.grid, new ListDataSource(this.vals));
-}
-;
-_.loadHeaders = function(){
- var $templateRow, $th, $theadRows, $ths, colList, colOffset, colSpan, colString, column, contentsMap, header, html, i_0, i0, i1, iterator, j, txt;
- $theadRows = $find(this.lightDom, initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['thead tr']));
- txt = $toString_1($theadRows);
- if ($theadRows.elements.length == 0 || $equals_2(txt, this.lastHeaders)) {
- return;
- }
- this.lastHeaders = txt;
- colList = new ArrayList;
- contentsMap = new HashMap;
- this.headerDefaultRowIndex = $index($theadRows, $get($find(this.lightDom, initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['tr[default]'])), 0));
- this.headerDefaultRowIndex == -1 && (this.headerDefaultRowIndex = 0);
- for (i0 = 0; i0 < $theadRows.elements.length; i0++) {
- $ths = $children_0(new GQuery_0($get($theadRows, i0)), initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['th']));
- while (colList.array.length < $ths.elements.length) {
- column = (!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn_2_classLit), 77));
- contentsMap.put(column, new ArrayList);
- setCheck(colList.array, colList.array.length, column);
- }
- }
- for (i1 = 0; i1 < $theadRows.elements.length; i1++) {
- $ths = $children_0(new GQuery_0($get($theadRows, i1)), initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['th']));
- colOffset = 0;
- for (j = 0; j < $ths.elements.length; j++) {
- column = (checkElementIndex(j + colOffset, colList.array.length) , dynamicCast(colList.array[j + colOffset], 77));
- header = (!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader_2_classLit), 94));
- $th = new GQuery_0($get($ths, j));
- $setValue_2(column, $th.elements.length == 0?'':$getAttribute($get($th, 0), 'name'));
- colSpan = 1;
- colString = $th.elements.length == 0?'':$getAttribute($get($th, 0), 'colspan');
- if (colString.length) {
- colSpan = __parseAndValidateInt(colString);
- colOffset += colSpan - 1;
- }
- $setFormat($setContent(($setNumber(header.p, colSpan) , header), $th.elements.length == 0?'':$getInnerHTML($get($th, 0))), ($clinit_GData$GColumn$GHeader$Format() , HTML_0));
- dynamicCast(contentsMap.get_1(column), 30).add_1(header);
- }
- }
- iterator = $iterator(new AbstractMap$1(contentsMap));
- $remove($find(this.lightDom, initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['div[v-wc-container]'])), true);
- $templateRow = $find(this.lightDom, initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['tr[template] td']));
- for (i_0 = 0; iterator.val$outerIter2.hasNext(); i_0++) {
- column = dynamicCast($next_3(iterator), 77);
- $setHeaderData(column, dynamicCast(contentsMap.get_1(column), 30));
- if (i_0 < $templateRow.elements.length) {
- html = $html(new GQuery_0($get($templateRow, i_0)));
- $set(column.p, 'template', html);
- }
- }
- this.changed = true;
- this.cols_0 = colList;
-}
-;
-_.loadRows = function(){
- var $td, $tr, a, i_0, tr, tr$array, tr$index, tr$max;
- $tr = $find(this.lightDom, initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['tbody tr:not([template])']));
- if ($tr.elements.length != 0) {
- this.setVals(new ArrayList);
- for (tr$array = $tr.elements , tr$index = 0 , tr$max = tr$array.length; tr$index < tr$max; ++tr$index) {
- tr = tr$array[tr$index];
- a = [];
- this.vals.add_1(a);
- $td = $find(($clinit_GQuery() , new GQuery_0(tr)), initValues(getClassLiteralForArray(Ljava_lang_String_2_classLit, 1), $intern_4, 2, 4, ['td']));
- for (i_0 = 0; i_0 < $td.elements.length; i_0++) {
- $push_1(a, $html(new GQuery_0($get($td, i_0))));
- }
- }
- }
-}
-;
-_.onAttachOrDetach_0 = function(event_0){
-}
-;
-_.onAttachOrDetach = makeBridgeMethod(_.onAttachOrDetach_0, false, [false]);
-_.onMutation = function(mutations){
- this.readAttributes();
-}
-;
-_.onSelect_0 = function(ev){
- if (!this.refreshing) {
- this.refreshing = true;
- this.dispatchEvent(this.selectEvent);
- this.setAttribute('selectedRow', '' + (this.selectedRow < 0?'':valueOf_2(this.selectedRow)));
- this.refreshing = false;
- }
-}
-;
-_.onSelect = makeBridgeMethod(_.onSelect_0, false, [false]);
-_.onValueChange_0 = function(ev){
-}
-;
-_.onValueChange = makeBridgeMethod(_.onValueChange_0, false, [false]);
-_.parseAttributeDeclarations = function(){
- var count, dataPath, jso, match_0, regex;
- dataPath = this.getAttribute('dataSource');
- regex = new RegExp('\\{\\{\\s*(\\w+)\\s*\\}\\}');
- match_0 = regex.exec(dataPath);
- if (match_0) {
- jso = dynamicCastJso(prop_0(($clinit_GQuery() , window_1), match_0[1]));
- if (isFunction(jso)) {
- count = this.getAttribute('rowCount');
- match_0 = regex.exec(count);
- !!match_0 && (count = '' + prop_0(window_1, match_0[1]));
- count != null && $matches(count, '[\\d\\.\\+]+') && (this.rowCount = valueOf_2(__parseAndValidateInt(count)).value_0);
- this.dataSource = jso;
- }
- else if (isArray(jso)) {
- this.vals = $values(dynamicCast((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_2_classLit), 95)).set_0('values', jso), 95));
- this.loadData();
- }
- else {
- $log($toJs(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, ['Unknown type of datasource: ' + jso])));
- }
- }
-}
-;
-_.readAttributes = function(){
- var p, type_0, url_0;
- $clinit_WCUtils();
- loadVaadinTheme(this.container, this, this.style_0, postThemeLoad);
- this.loadHeaders();
- this.loadRows();
- $initGrid(this);
- this.parseAttributeDeclarations();
- this.selectedRow = round_int(getAttrFloatValue(this, 'selectedRow', -1));
- type_0 = getAttrValue(this, 'type', null);
- url_0 = getAttrValue(this, 'url', null);
- if ($equals_2('ajax', type_0) && url_0 != null) {
- p = {};
- $put(p, 'url', url_0);
- this.dataSource = p;
- }
-}
-;
-_.redraw = function(){
- var columnConfiguration, e, i_0;
- e = this.grid.escalator;
- c_0(e.header);
- c_0(e.footer);
- c_0(e.body_0);
- columnConfiguration = e.columnConfiguration;
- for (i_0 = 0; i_0 < columnConfiguration.columns.array.length; i_0++) {
- $setColumnWidth(columnConfiguration, i_0, ($checkValidColumnIndex(columnConfiguration, i_0) , dynamicCast($get_6(columnConfiguration.columns, i_0), 54).definedWidth));
- }
-}
-;
-_.refresh = function(){
- var a;
- if (instanceOf(this.grid.dataSource_0, 66)) {
- a = this.selectedRow;
- $refresh(dynamicCast(this.grid.dataSource_0, 66));
- if (a > 0) {
- this.refreshing = true;
- $_0(this).delay_0(5, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new WCVGrid$4(this, a)]));
- }
- }
- else
- !!this.grid.dataSource_0 && $setDataSource(this.grid, this.grid.dataSource_0);
-}
-;
-_.setCols = function(cols_0){
- $setCols(this, cols_0);
-}
-;
-_.setColumnWidth = function(column, widht){
- $getColumn(this.grid, column).setWidth_0(widht);
-}
-;
-_.setColumns = function(newCols){
- this.changed = true;
- this.cols_0 = $columns_0(dynamicCast((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_2_classLit), 95)).set_0('columns', newCols), 95));
-}
-;
-_.setDataSource = function(jso){
- if (isFunction(jso)) {
- $setDataSource(this.grid, new GJsFuncDataSource(jso, this.size_0, this));
- }
- else if (isArray(jso)) {
- this.loadHeaders();
- $setDataSource(this.grid, new GJsObjectDataSource(jso, this));
- }
- else {
- if ((!jso?null:$get_1(jso, 'url')) != null) {
- this.loadHeaders();
- new GRestDataSource(jso, this);
- }
- else {
- throw new RuntimeException_0('Unknown jso: ' + jso);
- }
- }
-}
-;
-_.setHeight = function(height){
- $setHeight_2(this.grid, height);
-}
-;
-_.setHeightMode = function(mode){
- $setHeightMode_0(this.grid, ($clinit_HeightMode() , dynamicCast(valueOf(($clinit_HeightMode$Map() , $MAP_0), mode), 91)));
-}
-;
-_.setRowCount = function(rows_0){
- this.size_0 = round_int(rows_0);
- $adjustHeight_0(this, this.size_0);
-}
-;
-_.setSelectedRow = function(idx){
- var $tmp$0;
- idx < 0 || idx >= this.grid.dataSource_0.size_2()?this.selectedRow >= 0 && $deselect_1(this.grid, dynamicCastJso(this.grid.dataSource_0.getRow(this.selectedRow))):$select_4(this.grid, dynamicCastJso(this.grid.dataSource_0.getRow(idx)));
- $tmp$0 = this;
- trampolineBridgeMethod($tmp$0, $tmp$0.onSelect, $tmp$0.onSelect_0).bind($tmp$0)(null);
-}
-;
-_.setSelectedRows = function(arr){
- var i_0, l;
- arr != this.selectedJso && unobserve(this.selectedJso);
- this.selectedJso = arr;
- this.selectedLock = true;
- this.grid.selectionModel.reset_1();
- for (i_0 = 0 , l = this.selectedJso.length; i_0 < l; i_0++) {
- $select_4(this.grid, dynamicCastJso(this.grid.dataSource_0.getRow(this.selectedJso[i_0])));
- }
- this.selectedLock = false;
-}
-;
-_.setTheme = function(value_0){
- this.setAttribute('theme', value_0);
-}
-;
-_.setVals = function(vals){
- this.changed = true;
- this.vals = vals;
-}
-;
-_.changed = true;
-_.headerDefaultRowIndex = 0;
-_.initialized = false;
-_.lastHeaders = null;
-_.refreshing = false;
-_.selectedLock = false;
-_.size_0 = 0;
-var TAG = 'v-grid';
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVGrid_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVGrid', 208, Lcom_vaadin_prototype_wc_gwt_client_html_HTMLTableElement$Prototype_2_classLit);
-function WCVGrid$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(209, 1, {583:1}, WCVGrid$1);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVGrid$1_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVGrid/1', 209, Ljava_lang_Object_2_classLit);
-function WCVGrid$2(val$gColumn, val$templateRegexp){
- this.val$gColumn1 = val$gColumn;
- this.val$templateRegexp2 = val$templateRegexp;
-}
-
-defineClass(210, 1, {}, WCVGrid$2);
-_.render = function(cell, data_0){
- var elm, o;
- o = $getJavaScriptObject(this.val$gColumn1.p, 'renderer');
- elm = cell.cell.element;
- if (o) {
- if (isFunction(o)) {
- runJavascriptFunction(o, 'call', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [o, elm, data_0, cell.rowReference.row]));
- }
- else {
- if ($data(($clinit_GQuery() , new GQuery_0(elm))) == null) {
- $data_0(new GQuery_0(elm), ($clinit_Boolean() , $clinit_Boolean() , TRUE));
- runJavascriptFunction(o, 'init', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [elm]));
- }
- runJavascriptFunction(o, 'render', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [elm, data_0]));
- }
- }
- else {
- $getStr(this.val$gColumn1.p, 'template') != null?$setInnerHTML(elm, $replace(this.val$templateRegexp2, $getStr(this.val$gColumn1.p, 'template'), '' + data_0)):$setInnerHTML(elm, '' + data_0);
- }
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVGrid$2_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVGrid/2', 210, Ljava_lang_Object_2_classLit);
-function $getValue_0(this$static, row){
- var o, p;
- o = $get_0(this$static.val$gColumn2.p, 'value');
- if (instanceOfJso(o) && isFunction(dynamicCastJso(o))) {
- o = runJavascriptFunction(dynamicCastJso(o), 'call', initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [o, row, valueOf_2(this$static.val$idx3)]));
- }
- else if (isJavaString(o)) {
- o = !row?null:$get_1(row, o);
- }
- else {
- if (isArray(row)) {
- o = $getObject(row, this$static.val$idx3);
- }
- else {
- p = row;
- o = $getObject_0(p, $keys(p)[this$static.val$idx3]);
- }
- }
- return o;
-}
-
-function WCVGrid$3($anonymous0, val$gColumn, val$idx){
- this.val$gColumn2 = val$gColumn;
- this.val$idx3 = val$idx;
- Grid$Column.call(this, $anonymous0);
-}
-
-defineClass(211, 33, {33:1}, WCVGrid$3);
-_.getValue_0 = function(row){
- return $getValue_0(this, dynamicCastJso(row));
-}
-;
-_.val$idx3 = 0;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVGrid$3_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVGrid/3', 211, Lcom_vaadin_client_widgets_Grid$Column_2_classLit);
-function WCVGrid$4(this$0, val$a){
- this.this$01 = this$0;
- this.val$a2 = val$a;
- Function_0.call(this);
-}
-
-defineClass(212, 7, $intern_20, WCVGrid$4);
-_.f_0 = function(){
- this.this$01.selectedRow = this.val$a2;
- this.this$01.refreshing = false;
-}
-;
-_.val$a2 = 0;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVGrid$4_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVGrid/4', 212, Lcom_google_gwt_query_client_Function_2_classLit);
-function WCVGrid$5(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(213, 1, {20:1}, WCVGrid$5);
-_.onBrowserEvent = function(event_0){
- this.this$01.refresh();
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVGrid$5_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVGrid/5', 213, Ljava_lang_Object_2_classLit);
-function WCVGrid$6(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(214, 1, {20:1}, WCVGrid$6);
-_.onBrowserEvent = function(event_0){
- this.this$01.selectedRows = this.this$01.selectedJso;
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVGrid$6_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVGrid/6', 214, Ljava_lang_Object_2_classLit);
-function WCVProgress(){
- this.$init_0();
-}
-
-defineClass(206, 552, {196:1, 22:1}, WCVProgress);
-_.$init_0 = function(){
-}
-;
-_.attachedCallback = function(){
- this.initWidgetSystem_0();
-}
-;
-_.attributeChangedCallback = function(){
- this.readAttributes_0();
-}
-;
-_.createdCallback = function(){
- this.style_0 = ($clinit_Elements() , document_1.createElement('style'));
- this.progress = new VProgressBar;
- this.changeEvent = document_1.createEvent('HTMLEvents');
- this.changeEvent.initEvent('change', false, false);
- this.changeEvent.srcElement = this;
- this.container = document_1.createElement('div');
- this.container.setAttribute('v-wc-container', '');
- this.readAttributes_0();
-}
-;
-_.getTheme = function(){
- this.getAttribute('theme');
-}
-;
-_.getValue = function(){
- return 0;
-}
-;
-_.initWidgetSystem_0 = function(){
- var elementWidget, shadow, shadowPanel;
- if (!this.initialized) {
- this.initialized = true;
- elementWidget = $widget($_0(this), 0);
- !elementWidget && (elementWidget = $widget($widgets(dynamicCast($as($_0(this), ($clinit_GQuery() , Widgets)), 67)), 0));
- $addHandler_0(elementWidget, this, (!TYPE_0 && (TYPE_0 = new GwtEvent$Type) , TYPE_0));
- if (this.getAttribute('shadow') != null) {
- shadow = this.createShadowRoot();
- shadow.appendChild(this.style_0);
- shadow.appendChild(this.container);
- }
- else {
- this.appendChild(this.style_0);
- this.appendChild(this.container);
- }
- shadowPanel = dynamicCast($widget($widgets(dynamicCast($as($_0(this.container), ($clinit_GQuery() , Widgets)), 67)), 0), 36);
- shadowPanel.add_0(this.progress);
- }
-}
-;
-_.jsPropertyTheme = function(){
-}
-;
-_.jsPropertyValue = function(){
-}
-;
-_.onAttachOrDetach_0 = function(event_0){
-}
-;
-_.onAttachOrDetach = makeBridgeMethod(_.onAttachOrDetach_0, false, [false]);
-_.readAttributes_0 = function(){
- $setState_0(this.progress, getAttrFloatValue(this, 'value', 0));
- $clinit_WCUtils();
- loadVaadinTheme(this.container, this, this.style_0, postThemeLoad);
-}
-;
-_.setTheme = function(value_0){
- this.setAttribute('theme', value_0);
-}
-;
-_.setValue = function(value_0){
- $setState_0(this.progress, value_0);
-}
-;
-_.initialized = false;
-var TAG_0 = 'v-progress';
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVProgress_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVProgress', 206, Lcom_vaadin_prototype_wc_gwt_client_html_HTMLElement$Prototype_2_classLit);
-function WCVSlider(){
- this.$init_1();
-}
-
-defineClass(207, 552, {196:1, 145:1, 22:1}, WCVSlider);
-_.$init_1 = function(){
-}
-;
-_.attachedCallback = function(){
- this.initWidgetSystem_1();
- $buildBase(this.slider);
-}
-;
-_.attributeChangedCallback = function(){
- this.readAttributes_1();
-}
-;
-_.createdCallback = function(){
- this.style_0 = ($clinit_Elements() , document_1.createElement('style'));
- this.slider = new VSlider;
- $addHandler_0(this.slider, this, (!TYPE_3 && (TYPE_3 = new GwtEvent$Type) , TYPE_3));
- this.changeEvent = document_1.createEvent('HTMLEvents');
- this.changeEvent.initEvent('change', false, false);
- this.changeEvent.srcElement = this;
- this.container = document_1.createElement('div');
- this.readAttributes_1();
-}
-;
-_.getTheme = function(){
- this.getAttribute('theme');
-}
-;
-_.getValue = function(){
- return this.slider.value_0.value_0;
-}
-;
-_.initWidgetSystem_1 = function(){
- var elementWidget, shadow, shadowPanel;
- if (!this.initialized) {
- this.initialized = true;
- elementWidget = $widget($_0(this), 0);
- !elementWidget && (elementWidget = $widget($widgets(dynamicCast($as($_0(this), ($clinit_GQuery() , Widgets)), 67)), 0));
- $addHandler_0(elementWidget, this, (!TYPE_0 && (TYPE_0 = new GwtEvent$Type) , TYPE_0));
- if (this.getAttribute('shadow') != null) {
- shadow = this.createShadowRoot();
- shadow.appendChild(this.style_0);
- shadow.appendChild(this.container);
- }
- else {
- this.appendChild(this.style_0);
- this.appendChild(this.container);
- }
- shadowPanel = dynamicCast($widget($widgets(dynamicCast($as($_0(this.container), ($clinit_GQuery() , Widgets)), 67)), 0), 36);
- shadowPanel.add_0(this.slider);
- }
-}
-;
-_.jsPropertyTheme = function(){
-}
-;
-_.jsPropertyValue = function(){
-}
-;
-_.onAttachOrDetach_0 = function(event_0){
-}
-;
-_.onAttachOrDetach = makeBridgeMethod(_.onAttachOrDetach_0, false, [false]);
-_.onValueChange_0 = function(ev){
- var val;
- val = '' + dynamicCast(ev.value_0, 15).value_0;
- if (!$equals_2(val, this.getAttribute('value'))) {
- this.setAttribute('value', val);
- this.dispatchEvent(this.changeEvent);
- this.value = (new Double_0(val)).value_0;
- }
-}
-;
-_.onValueChange = makeBridgeMethod(_.onValueChange_0, false, [false]);
-_.readAttributes_1 = function(){
- $clinit_WCUtils();
- loadVaadinTheme(this.container, this, this.style_0, postThemeLoad);
- $setMinValue(this.slider, getAttrFloatValue(this, 'min', 0));
- $setMaxValue(this.slider, getAttrFloatValue(this, 'max', 100));
- $setValue_0(this.slider, new Double(getAttrFloatValue(this, 'value', 0)));
-}
-;
-_.setTheme = function(value_0){
- this.setAttribute('theme', value_0);
-}
-;
-_.setValue = function(value_0){
- $setValue_0(this.slider, new Double(value_0));
-}
-;
-_.initialized = false;
-var TAG_1 = 'v-slider';
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_WCVSlider_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets', 'WCVSlider', 207, Lcom_vaadin_prototype_wc_gwt_client_html_HTMLElement$Prototype_2_classLit);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData');
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GAjaxConf');
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf$GAjaxResponse_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GAjaxConf/GAjaxResponse');
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf$GAjaxResponse$GAjaxColumn_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GAjaxConf/GAjaxResponse/GAjaxColumn');
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GColumn');
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GColumn/GHeader');
-function $clinit_GData$GColumn$GHeader$Format(){
- $clinit_GData$GColumn$GHeader$Format = emptyMethod;
- TEXT = new GData$GColumn$GHeader$Format('TEXT', 0);
- HTML_0 = new GData$GColumn$GHeader$Format('HTML', 1);
- WIDGET = new GData$GColumn$GHeader$Format('WIDGET', 2);
-}
-
-function GData$GColumn$GHeader$Format(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function valueOf_0(name_0){
- $clinit_GData$GColumn$GHeader$Format();
- return valueOf(($clinit_GData$GColumn$GHeader$Format$Map() , $MAP), name_0);
-}
-
-function values_11(){
- $clinit_GData$GColumn$GHeader$Format();
- return initValues(getClassLiteralForArray(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader$Format_2_classLit, 1), $intern_4, 86, 0, [TEXT, HTML_0, WIDGET]);
-}
-
-defineClass(86, 5, {86:1, 3:1, 6:1, 5:1}, GData$GColumn$GHeader$Format);
-var HTML_0, TEXT, WIDGET;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader$Format_2_classLit = createForEnum('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GColumn/GHeader/Format', 86, Ljava_lang_Enum_2_classLit, values_11);
-function $clinit_GData$GColumn$GHeader$Format$Map(){
- $clinit_GData$GColumn$GHeader$Format$Map = emptyMethod;
- $MAP = createValueOfMap(($clinit_GData$GColumn$GHeader$Format() , initValues(getClassLiteralForArray(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader$Format_2_classLit, 1), $intern_4, 86, 0, [TEXT, HTML_0, WIDGET])));
-}
-
-var $MAP;
-function $configColumnsFromFirstDataRow(this$static, p){
- var colList, k_0, k$array, k$index, k$max, l;
- colList = new ArrayList;
- for (k$array = $keys(p) , k$index = 0 , k$max = k$array.length; k$index < k$max; ++k$index) {
- k_0 = k$array[k$index];
- l = new ArrayList;
- $add_6(l, $setColSpan_0($setFormat($setContent((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader_2_classLit), 94)), k_0), ($clinit_GData$GColumn$GHeader$Format() , HTML_0))));
- $add_6(colList, $setHeaderData($setValue_2((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn_2_classLit), 77)), k_0), l));
- }
- if (this$static.wcGrid) {
- $setCols(this$static.wcGrid, colList);
- $initGrid(this$static.wcGrid);
- }
- return colList;
-}
-
-function $configColumsFromAjaxResponse(this$static, cfgs){
- var c, c$iterator, colList, l;
- colList = new ArrayList;
- for (c$iterator = new AbstractList$IteratorImpl(cfgs); c$iterator.i < c$iterator.this$01_0.size_2();) {
- c = (checkCriticalElement(c$iterator.i < c$iterator.this$01_0.size_2()) , dynamicCast(c$iterator.this$01_0.get_0(c$iterator.last = c$iterator.i++), 199));
- l = new ArrayList;
- $add_6(l, $setColSpan_0($setFormat($setContent((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader_2_classLit), 94)), $getStr(c.p, 'title')), ($clinit_GData$GColumn$GHeader$Format() , HTML_0))));
- $add_6(colList, $setHeaderData($setValue_2((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn_2_classLit), 77)), $getStr(c.p, 'name')), l));
- }
- if (this$static.wcGrid) {
- $setCols(this$static.wcGrid, colList);
- $initGrid(this$static.wcGrid);
- }
- return colList;
-}
-
-function $refresh(this$static){
- $resetDataAndSize(this$static, this$static.size_0);
-}
-
-function $setRowData_0(this$static, idx, array){
- var g;
- g = dynamicCast((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_2_classLit), 95)).set_0('values', array), 95);
- $setRowData(this$static, idx, $values(g));
-}
-
-function $setRowDataFromJs(this$static, idx, count, cols_0, data_0){
- if (data_0.length > 0) {
- !isArray(data_0[0]) && (!cols_0 || cols_0.isEmpty()) && (cols_0 = $configColumnsFromFirstDataRow(this$static, data_0[0]));
- $setRowData_0(this$static, idx, data_0.slice(idx, idx + count));
- }
- return cols_0;
-}
-
-function GDataSource(grid){
- this.requestedAvailability = new Range_0(0, 0);
- this.cached = new Range_0(0, 0);
- this.indexToRowMap = new HashMap;
- this.keyToIndexMap = new HashMap;
- this.cacheStrategy = new CacheStrategy$DefaultCacheStrategy;
- this.coverageChecker = new AbstractRemoteDataSource$1(this);
- this.pinnedCounts = new HashMap;
- this.pinnedRows = new HashMap;
- $clinit_Collections();
- this.size_0 = 300;
- this.wcGrid = grid;
-}
-
-defineClass(66, 305, $intern_45);
-_.getRowKey_0 = function(row){
- return row;
-}
-;
-_.getRowKey = function(row){
- return this.getRowKey_0(dynamicCastJso(row));
-}
-;
-_.size_2 = function(){
- return this.size_0;
-}
-;
-_.size_0 = 0;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GDataSource_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GDataSource', 66, Lcom_vaadin_client_data_AbstractRemoteDataSource_2_classLit);
-function GData_GAjaxConf_GAjaxResponse_GAjaxColumn_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(186, 56, {52:1, 53:1, 199:1}, GData_GAjaxConf_GAjaxResponse_GAjaxColumn_JsonBuilder);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_1GAjaxConf_1GAjaxResponse_1GAjaxColumn_1JsonBuilder_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData_GAjaxConf_GAjaxResponse_GAjaxColumn_JsonBuilder', 186, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $columns(this$static){
- var a, a1, i_0, instance, l, l1, r, w;
- a = $getArray(this$static.p, 'columns');
- l = !a?0:a.length;
- r = initDim(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf$GAjaxResponse$GAjaxColumn_2_classLit, $intern_4, 199, l, 0, 1);
- a1 = $getArray(this$static.p, 'columns');
- l1 = r.length;
- for (i_0 = 0; i_0 < l1; i_0++) {
- w = $get_1(a1, valueOf_2(i_0));
- instance = new GData_GAjaxConf_GAjaxResponse_GAjaxColumn_JsonBuilder;
- setCheck(r, i_0, dynamicCast($load(instance, w), 199));
- }
- return new Arrays$ArrayList(r);
-}
-
-function GData_GAjaxConf_GAjaxResponse_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(478, 56, {52:1, 53:1, 535:1}, GData_GAjaxConf_GAjaxResponse_JsonBuilder);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_1GAjaxConf_1GAjaxResponse_1JsonBuilder_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData_GAjaxConf_GAjaxResponse_JsonBuilder', 478, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function GData_GAjaxConf_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(477, 56, {52:1, 53:1, 534:1}, GData_GAjaxConf_JsonBuilder);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_1GAjaxConf_1JsonBuilder_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData_GAjaxConf_JsonBuilder', 477, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $setColSpan_0(this$static){
- $setNumber(this$static.p, 1);
- return this$static;
-}
-
-function $setContent(this$static, a){
- $set(this$static.p, 'content', a);
- return this$static;
-}
-
-function $setFormat(this$static, a){
- $set(this$static.p, 'format', a.name_0 != null?a.name_0:'' + a.ordinal);
- return this$static;
-}
-
-function GData_GColumn_GHeader_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(188, 56, {52:1, 53:1, 94:1}, GData_GColumn_GHeader_JsonBuilder);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_1GColumn_1GHeader_1JsonBuilder_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData_GColumn_GHeader_JsonBuilder', 188, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $headerData(this$static){
- var a, a1, i_0, instance, l, l1, r, w;
- a = $getArray(this$static.p, 'headerData');
- l = !a?0:a.length;
- r = initDim(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader_2_classLit, $intern_46, 94, l, 0, 1);
- a1 = $getArray(this$static.p, 'headerData');
- l1 = r.length;
- for (i_0 = 0; i_0 < l1; i_0++) {
- w = $get_1(a1, valueOf_2(i_0));
- instance = new GData_GColumn_GHeader_JsonBuilder;
- setCheck(r, i_0, dynamicCast($load(instance, w), 94));
- }
- return new Arrays$ArrayList(r);
-}
-
-function $setHeaderData(this$static, a){
- $setArrayBase(this$static, 'headerData', dynamicCast(a.toArray_0(initDim(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader_2_classLit, $intern_46, 94, 0, 0, 1)), 539));
- return this$static;
-}
-
-function $setValue_2(this$static, a){
- $set(this$static.p, 'value', a);
- return this$static;
-}
-
-function GData_GColumn_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(187, 56, {52:1, 53:1, 77:1}, GData_GColumn_JsonBuilder);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_1GColumn_1JsonBuilder_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData_GColumn_JsonBuilder', 187, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $columns_0(this$static){
- var a, a1, i_0, instance, l, l1, r, w;
- a = $getArray(this$static.p, 'columns');
- l = !a?0:a.length;
- r = initDim(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn_2_classLit, $intern_47, 77, l, 0, 1);
- a1 = $getArray(this$static.p, 'columns');
- l1 = r.length;
- for (i_0 = 0; i_0 < l1; i_0++) {
- w = $get_1(a1, valueOf_2(i_0));
- instance = new GData_GColumn_JsonBuilder;
- setCheck(r, i_0, dynamicCast($load(instance, w), 77));
- }
- return new Arrays$ArrayList(r);
-}
-
-function $setColumns(this$static, a){
- $setArrayBase(this$static, 'columns', dynamicCast(a.toArray_0(initDim(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn_2_classLit, $intern_47, 77, 0, 0, 1)), 538));
- return this$static;
-}
-
-function $values(this$static){
- var a, l;
- a = $getArray(this$static.p, 'values');
- l = !a?0:a.length;
- return new Arrays$ArrayList($getArrayBase(this$static, initDim(Lcom_google_gwt_core_client_JavaScriptObject_2_classLit, $intern_4, 0, l, 2, 1), Lcom_google_gwt_core_client_JavaScriptObject_2_classLit));
-}
-
-function GData_JsonBuilder(){
- JsonBuilderBase.call(this);
-}
-
-defineClass(476, 56, {52:1, 53:1, 95:1}, GData_JsonBuilder);
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_1JsonBuilder_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData_JsonBuilder', 476, Lcom_google_gwt_query_client_builders_JsonBuilderBase_2_classLit);
-function $exec_1(f, idx, count, cb){
- return f(idx, count, function(r){
- cb.onSuccess_0(r);
- }
- );
-}
-
-function GJsFuncDataSource(jso, rows_0, grid){
- GDataSource.call(this, grid);
- this.f = jso;
- this.size_0 = rows_0;
-}
-
-defineClass(311, 66, $intern_45, GJsFuncDataSource);
-_.getRowKey_0 = function(row){
- return $JSON2String(row);
-}
-;
-_.requestRows = function(firstRowIndex, numberOfRows, callback){
- var o;
- o = $exec_1(this.f, firstRowIndex, numberOfRows, new GJsFuncDataSource$1(this, firstRowIndex));
- !!o && $setRowData_0(this, firstRowIndex, o);
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GJsFuncDataSource_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GJsFuncDataSource', 311, Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GDataSource_2_classLit);
-function $onSuccess_1(this$static, result){
- $setRowData_0(this$static.this$01, this$static.val$firstRowIndex2, result);
-}
-
-function GJsFuncDataSource$1(this$0, val$firstRowIndex){
- this.this$01 = this$0;
- this.val$firstRowIndex2 = val$firstRowIndex;
-}
-
-defineClass(312, 1, {}, GJsFuncDataSource$1);
-_.onFailure_2 = function(caught){
-}
-;
-_.onSuccess_0 = function(result){
- $onSuccess_1(this, dynamicCastJso(result));
-}
-;
-_.val$firstRowIndex2 = 0;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GJsFuncDataSource$1_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GJsFuncDataSource/1', 312, Ljava_lang_Object_2_classLit);
-function GJsObjectDataSource(jso, grid){
- GDataSource.call(this, grid);
- this.jso = jso;
- this.size_0 = jso.length;
-}
-
-defineClass(313, 66, $intern_45, GJsObjectDataSource);
-_.requestRows = function(firstRowIndex, numberOfRows, callback){
- var cols_0;
- cols_0 = this.wcGrid.cols_0;
- $setRowDataFromJs(this, firstRowIndex, numberOfRows, cols_0, this.jso);
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GJsObjectDataSource_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GJsObjectDataSource', 313, Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GDataSource_2_classLit);
-function $requestRows(this$static, firstRowIndex, numberOfRows){
- var url_0, s, onSuccess, onError, dataType, ret;
- url_0 = $replace_0($replace_0($getStr(this$static.ajaxCfg.p, 'url'), '{START}', '' + firstRowIndex), '{LENGTH}', '' + numberOfRows);
- $log($toJs(initValues(getClassLiteralForArray(Ljava_lang_Object_2_classLit, 1), $intern_4, 1, 3, [($clinit_GQuery() , url_0)])));
- $clinit_Ajax();
- $fail($done((s = (!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_google_gwt_query_client_plugins_ajax_Ajax$Settings_2_classLit), 593)) , $set(s.p, 'url', url_0) , $set(s.p, 'dataType', 'txt') , $set(s.p, 'type', 'post') , $set(s.p, 'data', null) , $setFunction(s.p, 'success', null) , resolveSettings(s) , onSuccess = $getFunction(s.p, 'success') , !!onSuccess && $setElement(onSuccess, $getJavaScriptObject(s.p, 'context')) , onError = $getFunction(s.p, 'error') , !!onError && $setElement(onError, $getJavaScriptObject(s.p, 'context')) , dataType = $getStr(s.p, 'dataType') , $equalsIgnoreCase('jsonp', dataType)?(ret = (!ajaxTransport && (ajaxTransport = new AjaxTransportJs) , new PromiseReqBuilderJSONP($getStr(s.p, 'url'), round_int($getFloat(s.p, 'timeout'))))):$equalsIgnoreCase('loadscript', dataType)?(ret = (!ajaxTransport && (ajaxTransport = new AjaxTransportJs) , new AjaxTransportJs$1(s))):(ret = (!ajaxTransport && (ajaxTransport = new AjaxTransportJs) , $then(new PromiseReqBuilder(s), initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new Ajax$2(dataType), new Ajax$3])))) , !!onSuccess && $done(ret, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [onSuccess])) , !!onError && $fail(ret, initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [onError])) , ret), initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new GRestDataSource$1(this$static, numberOfRows, firstRowIndex)])), initValues(getClassLiteralForArray(Lcom_google_gwt_query_client_Function_2_classLit, 1), $intern_4, 7, 0, [new GRestDataSource$2(url_0)]));
-}
-
-function GRestDataSource(cfg, grid){
- GDataSource.call(this, grid);
- this.ajaxCfg = dynamicCast((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf_2_classLit), 534)).load(cfg), 534);
- $requestRows(this, 0, 0);
-}
-
-defineClass(306, 66, $intern_45, GRestDataSource);
-_.requestRows = function(firstRowIndex, numberOfRows, callback){
- $requestRows(this, firstRowIndex, numberOfRows);
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GRestDataSource_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GRestDataSource', 306, Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GDataSource_2_classLit);
-function GRestDataSource$1(this$0, val$numberOfRows, val$firstRowIndex){
- this.this$01 = this$0;
- this.val$numberOfRows2 = val$numberOfRows;
- this.val$firstRowIndex3 = val$firstRowIndex;
- Function_0.call(this);
-}
-
-defineClass(307, 7, $intern_20, GRestDataSource$1);
-_.f_0 = function(){
- var cfgs, cols_0, data_0, json, r;
- json = dynamicCastToString($getArgument(this, 0, null));
- r = dynamicCast((!jsonFactory && (jsonFactory = new JsonFactory_JsonBuilder) , dynamicCast($create(Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf$GAjaxResponse_2_classLit), 535)).parse_0(json, false), 535);
- this.this$01.size_0 = round_int($getFloat(r.p, 'size'));
- cfgs = $columns(r);
- cols_0 = this.this$01.wcGrid.cols_0;
- !cfgs.isEmpty() && (!cols_0 || cols_0.isEmpty()) && (cols_0 = $configColumsFromAjaxResponse(this.this$01, cfgs));
- if (this.val$numberOfRows2 == 0) {
- $setDataSource($getGrid(this.this$01.wcGrid), this.this$01);
- }
- else {
- data_0 = $getJavaScriptObject(r.p, 'data');
- $setRowDataFromJs(this.this$01, this.val$firstRowIndex3, this.val$numberOfRows2, cols_0, data_0);
- }
- $adjustHeight(this.this$01.wcGrid);
-}
-;
-_.val$firstRowIndex3 = 0;
-_.val$numberOfRows2 = 0;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GRestDataSource$1_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GRestDataSource/1', 307, Lcom_google_gwt_query_client_Function_2_classLit);
-function GRestDataSource$2(val$url){
- this.val$url2 = val$url;
- Function_0.call(this);
-}
-
-defineClass(308, 7, $intern_20, GRestDataSource$2);
-_.f_0 = function(){
- alert_0('Error getting datasources ' + this.val$url2);
-}
-;
-var Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GRestDataSource$2_2_classLit = createForClass('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GRestDataSource/2', 308, Lcom_google_gwt_query_client_Function_2_classLit);
-function $parseAndroidVersion(this$static, userAgent){
- var osVersionString, parts;
- if (userAgent.indexOf('android') == -1) {
- return;
- }
- osVersionString = $safeSubstring(userAgent, userAgent.indexOf('android ') + 8, userAgent.length);
- osVersionString = $safeSubstring(osVersionString, 0, osVersionString.indexOf(';'));
- parts = $split(osVersionString, '\\.', 0);
- $parseOsVersion(this$static, parts);
-}
-
-function $parseIOSVersion(this$static, userAgent){
- var osVersionString, parts;
- if (userAgent.indexOf('os ') == -1 || userAgent.indexOf(' like mac') == -1) {
- return;
- }
- osVersionString = $safeSubstring(userAgent, userAgent.indexOf('os ') + 3, userAgent.indexOf(' like mac'));
- parts = $split(osVersionString, '_', 0);
- $parseOsVersion(this$static, parts);
-}
-
-function $parseOsVersion(this$static, parts){
- this$static.osMajorVersion = -1;
- this$static.osMinorVersion = -1;
- if (parts.length >= 1) {
- try {
- this$static.osMajorVersion = __parseAndValidateInt(parts[0]);
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (!instanceOf($e0, 12))
- throw unwrap($e0);
- }
- }
- if (parts.length >= 2) {
- try {
- this$static.osMinorVersion = __parseAndValidateInt(parts[1]);
- }
- catch ($e1) {
- $e1 = wrap($e1);
- if (!instanceOf($e1, 12))
- throw unwrap($e1);
- }
- if (this$static.osMinorVersion == -1 && parts[1].indexOf('-') != -1) {
- try {
- this$static.osMinorVersion = __parseAndValidateInt(__substr(parts[1], 0, $indexOf_0(parts[1], fromCodePoint(45))));
- }
- catch ($e2) {
- $e2 = wrap($e2);
- if (!instanceOf($e2, 12))
- throw unwrap($e2);
- }
- }
- }
-}
-
-function $parseVersionString(this$static, versionString){
- var idx, idx2;
- idx = $indexOf_0(versionString, fromCodePoint(46));
- idx < 0 && (idx = versionString.length);
- this$static.browserMajorVersion = __parseAndValidateInt($safeSubstring(versionString, 0, idx));
- idx2 = $indexOf_1(versionString, fromCodePoint(46), idx + 1);
- idx2 < 0 && (idx2 = versionString.length);
- try {
- this$static.browserMinorVersion = __parseAndValidateInt($replaceAll($safeSubstring(versionString, idx + 1, idx2), '[^0-9].*', ''));
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (!instanceOf($e0, 73))
- throw unwrap($e0);
- }
-}
-
-function $safeSubstring(string, beginIndex, endIndex){
- beginIndex < 0 && (beginIndex = 0);
- (endIndex < 0 || endIndex > string.length) && (endIndex = string.length);
- return string.substr(beginIndex, endIndex - beginIndex);
-}
-
-function $setIEMode(this$static, documentMode){
- this$static.browserMajorVersion = documentMode;
- this$static.browserMinorVersion = 0;
-}
-
-function VBrowserDetails(userAgent){
- var i_0, ieVersionString, rvPos, tmp, tridentPos;
- userAgent = userAgent.toLowerCase();
- this.isGecko = userAgent.indexOf('gecko') != -1 && userAgent.indexOf('webkit') == -1 && userAgent.indexOf('trident/') == -1;
- userAgent.indexOf(' presto/') != -1;
- this.isTrident = userAgent.indexOf('trident/') != -1;
- this.isWebKit = !this.isTrident && userAgent.indexOf('applewebkit') != -1;
- this.isChrome = userAgent.indexOf(' chrome/') != -1;
- this.isOpera = userAgent.indexOf('opera') != -1;
- this.isIE = userAgent.indexOf('msie') != -1 && !this.isOpera && userAgent.indexOf('webtv') == -1;
- this.isIE = this.isIE || this.isTrident;
- this.isSafari = !this.isChrome && !this.isIE && userAgent.indexOf('safari') != -1;
- this.isFirefox = userAgent.indexOf(' firefox/') != -1;
- userAgent.indexOf('chromeframe') != -1;
- try {
- if (this.isGecko) {
- rvPos = userAgent.indexOf('rv:');
- if (rvPos >= 0) {
- tmp = __substr(userAgent, rvPos + 3, userAgent.length - (rvPos + 3));
- tmp = $replaceFirst(tmp, '(\\.[0-9]+).+', '$1');
- parseFloat_0(tmp);
- }
- }
- else if (this.isWebKit) {
- tmp = $substring(userAgent, userAgent.indexOf('webkit/') + 7);
- tmp = $replaceFirst(tmp, '([0-9]+)[^0-9].+', '$1');
- parseFloat_0(tmp);
- }
- else if (this.isIE) {
- tridentPos = userAgent.indexOf('trident/');
- if (tridentPos >= 0) {
- tmp = __substr(userAgent, tridentPos + 8, userAgent.length - (tridentPos + 8));
- tmp = $replaceFirst(tmp, '([0-9]+\\.[0-9]+).*', '$1');
- parseFloat_0(tmp);
- }
- }
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (!instanceOf($e0, 12))
- throw unwrap($e0);
- }
- try {
- if (this.isIE) {
- if (userAgent.indexOf('msie') == -1) {
- rvPos = userAgent.indexOf('rv:');
- if (rvPos >= 0) {
- tmp = __substr(userAgent, rvPos + 3, userAgent.length - (rvPos + 3));
- tmp = $replaceFirst(tmp, '(\\.[0-9]+).+', '$1');
- $parseVersionString(this, tmp);
- }
- }
- else {
- ieVersionString = $substring(userAgent, userAgent.indexOf('msie ') + 5);
- ieVersionString = $safeSubstring(ieVersionString, 0, ieVersionString.indexOf(';'));
- $parseVersionString(this, ieVersionString);
- }
- }
- else if (this.isFirefox) {
- i_0 = userAgent.indexOf(' firefox/') + 9;
- $parseVersionString(this, $safeSubstring(userAgent, i_0, i_0 + 5));
- }
- else if (this.isChrome) {
- i_0 = userAgent.indexOf(' chrome/') + 8;
- $parseVersionString(this, $safeSubstring(userAgent, i_0, i_0 + 5));
- }
- else if (this.isSafari) {
- i_0 = userAgent.indexOf(' version/') + 9;
- $parseVersionString(this, $safeSubstring(userAgent, i_0, i_0 + 5));
- }
- else if (this.isOpera) {
- i_0 = userAgent.indexOf(' version/');
- i_0 != -1?(i_0 += 9):(i_0 = userAgent.indexOf('opera/') + 6);
- $parseVersionString(this, $safeSubstring(userAgent, i_0, i_0 + 5));
- }
- }
- catch ($e1) {
- $e1 = wrap($e1);
- if (!instanceOf($e1, 12))
- throw unwrap($e1);
- }
- if (userAgent.indexOf('windows ') != -1) {
- this.os = 1;
- userAgent.indexOf('windows phone') != -1;
- }
- else if (userAgent.indexOf('android') != -1) {
- this.os = 5;
- $parseAndroidVersion(this, userAgent);
- }
- else if (userAgent.indexOf('linux') != -1) {
- this.os = 3;
- }
- else if (userAgent.indexOf('macintosh') != -1 || userAgent.indexOf('mac osx') != -1 || userAgent.indexOf('mac os x') != -1) {
- this.isIPad = userAgent.indexOf('ipad') != -1;
- this.isIPhone = userAgent.indexOf('iphone') != -1;
- if (this.isIPad || userAgent.indexOf('ipod') != -1 || this.isIPhone) {
- this.os = 4;
- $parseIOSVersion(this, userAgent);
- }
- else {
- this.os = 2;
- }
- }
-}
-
-defineClass(464, 1, {3:1}, VBrowserDetails);
-_.browserMajorVersion = -1;
-_.browserMinorVersion = -1;
-_.isChrome = false;
-_.isFirefox = false;
-_.isGecko = false;
-_.isIE = false;
-_.isIPad = false;
-_.isIPhone = false;
-_.isOpera = false;
-_.isSafari = false;
-_.isTrident = false;
-_.isWebKit = false;
-_.os = 0;
-_.osMajorVersion = -1;
-_.osMinorVersion = -1;
-var Lcom_vaadin_shared_VBrowserDetails_2_classLit = createForClass('com.vaadin.shared', 'VBrowserDetails', 464, Ljava_lang_Object_2_classLit);
-function $clinit_GridStaticCellType(){
- $clinit_GridStaticCellType = emptyMethod;
- TEXT_0 = new GridStaticCellType('TEXT', 0);
- HTML_1 = new GridStaticCellType('HTML', 1);
- WIDGET_0 = new GridStaticCellType('WIDGET', 2);
-}
-
-function GridStaticCellType(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_12(){
- $clinit_GridStaticCellType();
- return initValues(getClassLiteralForArray(Lcom_vaadin_shared_ui_grid_GridStaticCellType_2_classLit, 1), $intern_4, 106, 0, [TEXT_0, HTML_1, WIDGET_0]);
-}
-
-defineClass(106, 5, {106:1, 3:1, 6:1, 5:1}, GridStaticCellType);
-var HTML_1, TEXT_0, WIDGET_0;
-var Lcom_vaadin_shared_ui_grid_GridStaticCellType_2_classLit = createForEnum('com.vaadin.shared.ui.grid', 'GridStaticCellType', 106, Ljava_lang_Enum_2_classLit, values_12);
-function $clinit_HeightMode(){
- $clinit_HeightMode = emptyMethod;
- CSS_0 = new HeightMode('CSS', 0);
- ROW = new HeightMode('ROW', 1);
-}
-
-function HeightMode(enum$name, enum$ordinal){
- Enum.call(this, enum$name, enum$ordinal);
-}
-
-function values_13(){
- $clinit_HeightMode();
- return initValues(getClassLiteralForArray(Lcom_vaadin_shared_ui_grid_HeightMode_2_classLit, 1), $intern_4, 91, 0, [CSS_0, ROW]);
-}
-
-defineClass(91, 5, {91:1, 3:1, 6:1, 5:1}, HeightMode);
-var CSS_0, ROW;
-var Lcom_vaadin_shared_ui_grid_HeightMode_2_classLit = createForEnum('com.vaadin.shared.ui.grid', 'HeightMode', 91, Ljava_lang_Enum_2_classLit, values_13);
-function $clinit_HeightMode$Map(){
- $clinit_HeightMode$Map = emptyMethod;
- $MAP_0 = createValueOfMap(($clinit_HeightMode() , initValues(getClassLiteralForArray(Lcom_vaadin_shared_ui_grid_HeightMode_2_classLit, 1), $intern_4, 91, 0, [CSS_0, ROW])));
-}
-
-var $MAP_0;
-function $combineWith(this$static, other){
- if (this$static.start_0 > other.end || other.start_0 > this$static.end) {
- throw new IllegalArgumentException_0('There is a gap between ' + this$static + ' and ' + other);
- }
- return new Range_0(min_1(this$static.start_0, other.start_0), max_1(this$static.end, other.end));
-}
-
-function $contains_0(this$static, integer){
- return this$static.start_0 <= integer && integer < this$static.end;
-}
-
-function $equals(this$static, obj){
- var other;
- if (this$static === obj) {
- return true;
- }
- if (obj == null) {
- return false;
- }
- if (Lcom_vaadin_shared_ui_grid_Range_2_classLit != getClass__Ljava_lang_Class___devirtual$(obj)) {
- return false;
- }
- other = dynamicCast(obj, 19);
- if (this$static.end != other.end) {
- return false;
- }
- if (this$static.start_0 != other.start_0) {
- return false;
- }
- return true;
-}
-
-function $intersects(this$static, other){
- return this$static.start_0 < other.end && other.start_0 < this$static.end;
-}
-
-function $isEmpty_0(this$static){
- return this$static.start_0 >= this$static.end;
-}
-
-function $isSubsetOf(this$static, other){
- if (this$static.start_0 >= this$static.end && other.start_0 >= other.end) {
- return true;
- }
- return other.start_0 <= this$static.start_0 && this$static.end <= other.end;
-}
-
-function $length_0(this$static){
- return this$static.end - this$static.start_0;
-}
-
-function $offsetBy(this$static, offset){
- return offset == 0?this$static:new Range_0(this$static.start_0 + offset, this$static.end + offset);
-}
-
-function $partitionWith(this$static, other){
- var rangeAfter, rangeBefore, rangeInside, splitAfter, splitBefore;
- splitBefore = $splitAt(this$static, other.start_0);
- rangeBefore = splitBefore[0];
- splitAfter = $splitAt(splitBefore[1], other.end);
- rangeInside = splitAfter[0];
- rangeAfter = splitAfter[1];
- return initValues(getClassLiteralForArray(Lcom_vaadin_shared_ui_grid_Range_2_classLit, 1), $intern_4, 19, 0, [rangeBefore, rangeInside, rangeAfter]);
-}
-
-function $restrictTo(this$static, bounds){
- var boundsWithin, endWithin, startWithin;
- startWithin = $contains_0(bounds, this$static.start_0);
- endWithin = $contains_0(bounds, this$static.end);
- boundsWithin = this$static.start_0 < bounds.start_0 && this$static.end >= bounds.end;
- return startWithin?endWithin?this$static:new Range_0(this$static.start_0, bounds.end):endWithin?new Range_0(bounds.start_0, this$static.end):boundsWithin?bounds:withLength(this$static.start_0, 0);
-}
-
-function $splitAt(this$static, integer){
- return integer < this$static.start_0?initValues(getClassLiteralForArray(Lcom_vaadin_shared_ui_grid_Range_2_classLit, 1), $intern_4, 19, 0, [withLength(this$static.start_0, 0), this$static]):integer >= this$static.end?initValues(getClassLiteralForArray(Lcom_vaadin_shared_ui_grid_Range_2_classLit, 1), $intern_4, 19, 0, [this$static, withLength(this$static.end, 0)]):initValues(getClassLiteralForArray(Lcom_vaadin_shared_ui_grid_Range_2_classLit, 1), $intern_4, 19, 0, [new Range_0(this$static.start_0, integer), new Range_0(integer, this$static.end)]);
-}
-
-function Range_0(start_0, end){
- if (start_0 > end) {
- throw new IllegalArgumentException_0('start must not be greater than end');
- }
- this.start_0 = start_0;
- this.end = end;
-}
-
-function withLength(start_0, length_0){
- if (length_0 < 0) {
- throw new IllegalArgumentException_0('length must not be negative');
- }
- return new Range_0(start_0, start_0 + length_0);
-}
-
-defineClass(19, 1, {19:1, 3:1}, Range_0);
-_.equals$ = function(obj){
- return $equals(this, obj);
-}
-;
-_.hashCode$ = function(){
- var result;
- result = 31 + this.end;
- result = 31 * result + this.start_0;
- return result;
-}
-;
-_.toString$ = function(){
- return $ensureNamesAreInitialized(Lcom_vaadin_shared_ui_grid_Range_2_classLit) , Lcom_vaadin_shared_ui_grid_Range_2_classLit.simpleName + ' [' + this.start_0 + '..' + this.end + '[' + (this.start_0 >= this.end?' (empty)':'');
-}
-;
-_.end = 0;
-_.start_0 = 0;
-var Lcom_vaadin_shared_ui_grid_Range_2_classLit = createForClass('com.vaadin.shared.ui.grid', 'Range', 19, Ljava_lang_Object_2_classLit);
-function equals(o1, o2){
- if (o1 == null) {
- return o2 == null;
- }
- return equals_Ljava_lang_Object__Z__devirtual$(o1, o2);
-}
-
-function $charAt(this$static, index_0){
- return $charAt_0(this$static.string, index_0);
-}
-
-function $replace0(this$static, start_0, end, toInsert){
- this$static.string = __substr(this$static.string, 0, start_0) + toInsert + $substring(this$static.string, end);
-}
-
-function $setCharAt(this$static, index_0, x_0){
- $replace0(this$static, index_0, index_0 + 1, valueOf_5(x_0));
-}
-
-function AbstractStringBuilder(string){
- this.string = string;
-}
-
-defineClass(126, 1, {});
-_.toString$ = function(){
- return this.string;
-}
-;
-var Ljava_lang_AbstractStringBuilder_2_classLit = createForClass('java.lang', 'AbstractStringBuilder', 126, Ljava_lang_Object_2_classLit);
-function ArithmeticException(){
- RuntimeException_0.call(this, 'divide by zero');
-}
-
-defineClass(401, 11, $intern_3, ArithmeticException);
-var Ljava_lang_ArithmeticException_2_classLit = createForClass('java.lang', 'ArithmeticException', 401, Ljava_lang_RuntimeException_2_classLit);
-function ArrayStoreException(){
- RuntimeException.call(this);
-}
-
-defineClass(400, 11, $intern_3, ArrayStoreException);
-var Ljava_lang_ArrayStoreException_2_classLit = createForClass('java.lang', 'ArrayStoreException', 400, Ljava_lang_RuntimeException_2_classLit);
-function $clinit_Boolean(){
- $clinit_Boolean = emptyMethod;
- FALSE = new Boolean_0(false);
- TRUE = new Boolean_0(true);
-}
-
-function $equals_0(this$static, o){
- return instanceOf(o, 42) && dynamicCast(o, 42).value_0 == this$static.value_0;
-}
-
-function Boolean_0(value_0){
- $clinit_Boolean();
- this.value_0 = value_0;
-}
-
-defineClass(42, 1, {3:1, 42:1, 6:1}, Boolean_0);
-_.equals$ = function(o){
- return $equals_0(this, o);
-}
-;
-_.hashCode$ = function(){
- return this.value_0?1231:1237;
-}
-;
-_.toString$ = function(){
- return '' + this.value_0;
-}
-;
-_.value_0 = false;
-var FALSE, TRUE;
-var Ljava_lang_Boolean_2_classLit = createForClass('java.lang', 'Boolean', 42, Ljava_lang_Object_2_classLit);
-function __parseAndValidateDouble(s){
- var floatRegex;
- if (!(floatRegex = floatRegex_0 , !floatRegex && (floatRegex = floatRegex_0 = /^\s*[+-]?(NaN|Infinity|((\d+\.?\d*)|(\.\d+))([eE][+-]?\d+)?[dDfF]?)\s*$/) , floatRegex.test(s))) {
- throw new NumberFormatException('For input string: "' + s + '"');
- }
- return parseFloat(s);
-}
-
-function __parseAndValidateInt(s){
- var i_0, isTooLow, length_0, startIndex, toReturn;
- if (s == null) {
- throw new NumberFormatException('null');
- }
- length_0 = s.length;
- startIndex = length_0 > 0 && (s.charCodeAt(0) == 45 || s.charCodeAt(0) == 43)?1:0;
- for (i_0 = startIndex; i_0 < length_0; i_0++) {
- if (digit_0(s.charCodeAt(i_0)) == -1) {
- throw new NumberFormatException('For input string: "' + s + '"');
- }
- }
- toReturn = parseInt(s, 10);
- isTooLow = toReturn < -2147483648;
- if (isNaN(toReturn)) {
- throw new NumberFormatException('For input string: "' + s + '"');
- }
- else if (isTooLow || toReturn > 2147483647) {
- throw new NumberFormatException('For input string: "' + s + '"');
- }
- return toReturn;
-}
-
-defineClass(55, 1, {3:1, 55:1});
-var floatRegex_0;
-var Ljava_lang_Number_2_classLit = createForClass('java.lang', 'Number', 55, Ljava_lang_Object_2_classLit);
-function Byte(value_0){
- this.value_0 = value_0;
-}
-
-function valueOf_1(b){
- var rebase, result;
- rebase = b + 128;
- result = ($clinit_Byte$BoxedValues() , boxedValues_0)[rebase];
- !result && (result = boxedValues_0[rebase] = new Byte(b));
- return result;
-}
-
-defineClass(103, 55, {3:1, 103:1, 6:1, 55:1}, Byte);
-_.doubleValue = function(){
- return this.value_0;
-}
-;
-_.equals$ = function(o){
- return instanceOf(o, 103) && dynamicCast(o, 103).value_0 == this.value_0;
-}
-;
-_.hashCode$ = function(){
- return this.value_0;
-}
-;
-_.toString$ = function(){
- return '' + this.value_0;
-}
-;
-_.value_0 = 0;
-var Ljava_lang_Byte_2_classLit = createForClass('java.lang', 'Byte', 103, Ljava_lang_Number_2_classLit);
-function $clinit_Byte$BoxedValues(){
- $clinit_Byte$BoxedValues = emptyMethod;
- boxedValues_0 = initDim(Ljava_lang_Byte_2_classLit, $intern_4, 103, 256, 0, 1);
-}
-
-var boxedValues_0;
-function digit_0(c){
- if (c >= 48 && c < 58) {
- return c - 48;
- }
- if (c >= 97 && c < 97) {
- return c - 97 + 10;
- }
- if (c >= 65 && c < 65) {
- return c - 65 + 10;
- }
- return -1;
-}
-
-function ClassCastException(){
- RuntimeException.call(this);
-}
-
-defineClass(301, 11, $intern_3, ClassCastException);
-var Ljava_lang_ClassCastException_2_classLit = createForClass('java.lang', 'ClassCastException', 301, Ljava_lang_RuntimeException_2_classLit);
-function Double(value_0){
- this.value_0 = value_0;
-}
-
-function Double_0(s){
- this.value_0 = __parseAndValidateDouble(s);
-}
-
-function isInfinite(x_0){
- return !isFinite(x_0) && !isNaN(x_0);
-}
-
-defineClass(15, 55, {3:1, 6:1, 15:1, 55:1}, Double, Double_0);
-_.doubleValue = function(){
- return this.value_0;
-}
-;
-_.equals$ = function(o){
- return instanceOf(o, 15) && dynamicCast(o, 15).value_0 == this.value_0;
-}
-;
-_.hashCode$ = function(){
- return round_int(this.value_0);
-}
-;
-_.toString$ = function(){
- return '' + this.value_0;
-}
-;
-_.value_0 = 0;
-var Ljava_lang_Double_2_classLit = createForClass('java.lang', 'Double', 15, Ljava_lang_Number_2_classLit);
-function Float(value_0){
- this.value_0 = value_0;
-}
-
-function Float_0(s){
- this.value_0 = parseFloat_0(s);
-}
-
-function parseFloat_0(s){
- var doubleValue;
- doubleValue = __parseAndValidateDouble(s);
- if (doubleValue > 3.4028234663852886E38) {
- return Infinity;
- }
- else if (doubleValue < -3.4028234663852886E38) {
- return -Infinity;
- }
- return doubleValue;
-}
-
-defineClass(88, 55, {3:1, 6:1, 88:1, 55:1}, Float, Float_0);
-_.doubleValue = function(){
- return this.value_0;
-}
-;
-_.equals$ = function(o){
- return instanceOf(o, 88) && dynamicCast(o, 88).value_0 == this.value_0;
-}
-;
-_.hashCode$ = function(){
- return round_int(this.value_0);
-}
-;
-_.toString$ = function(){
- return '' + this.value_0;
-}
-;
-_.value_0 = 0;
-var Ljava_lang_Float_2_classLit = createForClass('java.lang', 'Float', 88, Ljava_lang_Number_2_classLit);
-function IllegalArgumentException(){
- RuntimeException.call(this);
-}
-
-function IllegalArgumentException_0(message){
- RuntimeException_0.call(this, message);
-}
-
-defineClass(9, 11, $intern_3, IllegalArgumentException, IllegalArgumentException_0);
-var Ljava_lang_IllegalArgumentException_2_classLit = createForClass('java.lang', 'IllegalArgumentException', 9, Ljava_lang_RuntimeException_2_classLit);
-function IllegalStateException(){
- RuntimeException.call(this);
-}
-
-function IllegalStateException_0(s){
- RuntimeException_0.call(this, s);
-}
-
-defineClass(18, 11, $intern_3, IllegalStateException, IllegalStateException_0);
-var Ljava_lang_IllegalStateException_2_classLit = createForClass('java.lang', 'IllegalStateException', 18, Ljava_lang_RuntimeException_2_classLit);
-function IndexOutOfBoundsException(){
- RuntimeException.call(this);
-}
-
-function IndexOutOfBoundsException_0(message){
- RuntimeException_0.call(this, message);
-}
-
-defineClass(34, 11, {3:1, 12:1, 34:1, 11:1, 14:1}, IndexOutOfBoundsException, IndexOutOfBoundsException_0);
-var Ljava_lang_IndexOutOfBoundsException_2_classLit = createForClass('java.lang', 'IndexOutOfBoundsException', 34, Ljava_lang_RuntimeException_2_classLit);
-function $equals_1(this$static, o){
- return instanceOf(o, 65) && dynamicCast(o, 65).value_0 == this$static.value_0;
-}
-
-function Integer(value_0){
- this.value_0 = value_0;
-}
-
-function numberOfLeadingZeros_0(i_0){
- var m, n, y_0;
- if (i_0 < 0) {
- return 0;
- }
- else if (i_0 == 0) {
- return 32;
- }
- else {
- y_0 = -(i_0 >> 16);
- m = y_0 >> 16 & 16;
- n = 16 - m;
- i_0 = i_0 >> m;
- y_0 = i_0 - 256;
- m = y_0 >> 16 & 8;
- n += m;
- i_0 <<= m;
- y_0 = i_0 - 4096;
- m = y_0 >> 16 & 4;
- n += m;
- i_0 <<= m;
- y_0 = i_0 - 16384;
- m = y_0 >> 16 & 2;
- n += m;
- i_0 <<= m;
- y_0 = i_0 >> 14;
- m = y_0 & ~(y_0 >> 1);
- return n + 2 - m;
- }
-}
-
-function numberOfTrailingZeros(i_0){
- var r, rtn;
- if (i_0 == 0) {
- return 32;
- }
- else {
- rtn = 0;
- for (r = 1; (r & i_0) == 0; r <<= 1) {
- ++rtn;
- }
- return rtn;
- }
-}
-
-function valueOf_2(i_0){
- var rebase, result;
- if (i_0 > -129 && i_0 < 128) {
- rebase = i_0 + 128;
- result = ($clinit_Integer$BoxedValues() , boxedValues_1)[rebase];
- !result && (result = boxedValues_1[rebase] = new Integer(i_0));
- return result;
- }
- return new Integer(i_0);
-}
-
-defineClass(65, 55, {3:1, 6:1, 65:1, 55:1}, Integer);
-_.doubleValue = function(){
- return this.value_0;
-}
-;
-_.equals$ = function(o){
- return $equals_1(this, o);
-}
-;
-_.hashCode$ = function(){
- return this.value_0;
-}
-;
-_.toString$ = function(){
- return '' + this.value_0;
-}
-;
-_.value_0 = 0;
-var Ljava_lang_Integer_2_classLit = createForClass('java.lang', 'Integer', 65, Ljava_lang_Number_2_classLit);
-function $clinit_Integer$BoxedValues(){
- $clinit_Integer$BoxedValues = emptyMethod;
- boxedValues_1 = initDim(Ljava_lang_Integer_2_classLit, $intern_4, 65, 256, 0, 1);
-}
-
-var boxedValues_1;
-function Long(value_0){
- this.value_0 = value_0;
-}
-
-function valueOf_3(i_0){
- var rebase, result;
- if (gt(i_0, {l:4194175, m:$intern_14, h:$intern_15}) && lt(i_0, {l:128, m:0, h:0})) {
- rebase = toInt(i_0) + 128;
- result = ($clinit_Long$BoxedValues() , boxedValues_2)[rebase];
- !result && (result = boxedValues_2[rebase] = new Long(i_0));
- return result;
- }
- return new Long(i_0);
-}
-
-defineClass(89, 55, {3:1, 6:1, 89:1, 55:1}, Long);
-_.doubleValue = function(){
- return toDouble(this.value_0);
-}
-;
-_.equals$ = function(o){
- return instanceOf(o, 89) && eq(dynamicCast(o, 89).value_0, this.value_0);
-}
-;
-_.hashCode$ = function(){
- return toInt(this.value_0);
-}
-;
-_.toString$ = function(){
- return '' + toString_2(this.value_0);
-}
-;
-_.value_0 = {l:0, m:0, h:0};
-var Ljava_lang_Long_2_classLit = createForClass('java.lang', 'Long', 89, Ljava_lang_Number_2_classLit);
-function $clinit_Long$BoxedValues(){
- $clinit_Long$BoxedValues = emptyMethod;
- boxedValues_2 = initDim(Ljava_lang_Long_2_classLit, $intern_4, 89, 256, 0, 1);
-}
-
-var boxedValues_2;
-function abs_0(x_0){
- return x_0 <= 0?0 - x_0:x_0;
-}
-
-function ceil_0(x_0){
- return Math.ceil(x_0);
-}
-
-function cos_0(x_0){
- return Math.cos(x_0);
-}
-
-function floor_0(x_0){
- return Math.floor(x_0);
-}
-
-function max_0(x_0, y_0){
- return x_0 > y_0?x_0:y_0;
-}
-
-function max_1(x_0, y_0){
- return x_0 > y_0?x_0:y_0;
-}
-
-function min_0(x_0, y_0){
- return x_0 < y_0?x_0:y_0;
-}
-
-function min_1(x_0, y_0){
- return x_0 < y_0?x_0:y_0;
-}
-
-function pow_0(x_0, exp_0){
- return Math.pow(x_0, exp_0);
-}
-
-function round0(x_0){
- return Math.round(x_0);
-}
-
-function NullPointerException(){
- RuntimeException.call(this);
-}
-
-function NullPointerException_0(message){
- RuntimeException_0.call(this, message);
-}
-
-defineClass(75, 11, $intern_3, NullPointerException, NullPointerException_0);
-var Ljava_lang_NullPointerException_2_classLit = createForClass('java.lang', 'NullPointerException', 75, Ljava_lang_RuntimeException_2_classLit);
-function NumberFormatException(message){
- IllegalArgumentException_0.call(this, message);
-}
-
-defineClass(73, 9, {3:1, 12:1, 73:1, 11:1, 14:1}, NumberFormatException);
-var Ljava_lang_NumberFormatException_2_classLit = createForClass('java.lang', 'NumberFormatException', 73, Ljava_lang_IllegalArgumentException_2_classLit);
-function Short(value_0){
- this.value_0 = value_0;
-}
-
-function valueOf_4(s){
- var rebase, result;
- if (s > -129 && s < 128) {
- rebase = s + 128;
- result = ($clinit_Short$BoxedValues() , boxedValues_3)[rebase];
- !result && (result = boxedValues_3[rebase] = new Short(s));
- return result;
- }
- return new Short(s);
-}
-
-defineClass(90, 55, {3:1, 6:1, 55:1, 90:1}, Short);
-_.doubleValue = function(){
- return this.value_0;
-}
-;
-_.equals$ = function(o){
- return instanceOf(o, 90) && dynamicCast(o, 90).value_0 == this.value_0;
-}
-;
-_.hashCode$ = function(){
- return this.value_0;
-}
-;
-_.toString$ = function(){
- return '' + this.value_0;
-}
-;
-_.value_0 = 0;
-var Ljava_lang_Short_2_classLit = createForClass('java.lang', 'Short', 90, Ljava_lang_Number_2_classLit);
-function $clinit_Short$BoxedValues(){
- $clinit_Short$BoxedValues = emptyMethod;
- boxedValues_3 = initDim(Ljava_lang_Short_2_classLit, $intern_4, 90, 256, 0, 1);
-}
-
-var boxedValues_3;
-function $charAt_0(this$static, index_0){
- return this$static.charCodeAt(index_0);
-}
-
-function $equals_2(this$static, other){
- return this$static === other;
-}
-
-function $equalsIgnoreCase(this$static, other){
- if (other == null) {
- return false;
- }
- if (this$static == other) {
- return true;
- }
- return this$static.length == other.length && this$static.toLowerCase() == other.toLowerCase();
-}
-
-function $indexOf_0(this$static, str){
- return this$static.indexOf(str);
-}
-
-function $indexOf_1(this$static, str, startIndex){
- return this$static.indexOf(str, startIndex);
-}
-
-function $matches(this$static, regex){
- return (new RegExp('^(' + regex + ')$')).test(this$static);
-}
-
-function $replace_0(this$static, from, to){
- var regex, replacement;
- regex = $replaceAll(from, '([/\\\\\\.\\*\\+\\?\\|\\(\\)\\[\\]\\{\\}$^])', '\\\\$1');
- replacement = $replaceAll($replaceAll(to, '\\\\', '\\\\\\\\'), '\\$', '\\\\$');
- return $replaceAll(this$static, regex, replacement);
-}
-
-function $replaceAll(this$static, regex, replace){
- replace = __translateReplaceString(replace);
- return this$static.replace(RegExp(regex, 'g'), replace);
-}
-
-function $replaceFirst(this$static, regex, replace){
- replace = __translateReplaceString(replace);
- return this$static.replace(RegExp(regex), replace);
-}
-
-function $split(this$static, regex, maxMatch){
- var compiled = new RegExp(regex, 'g');
- var out = [];
- var count = 0;
- var trail = this$static;
- var lastTrail = null;
- while (true) {
- var matchObj = compiled.exec(trail);
- if (matchObj == null || trail == '' || count == maxMatch - 1 && maxMatch > 0) {
- out[count] = trail;
- break;
- }
- else {
- out[count] = trail.substring(0, matchObj.index);
- trail = trail.substring(matchObj.index + matchObj[0].length, trail.length);
- compiled.lastIndex = 0;
- if (lastTrail == trail) {
- out[count] = trail.substring(0, 1);
- trail = trail.substring(1);
- }
- lastTrail = trail;
- count++;
- }
- }
- if (maxMatch == 0 && this$static.length > 0) {
- var lastNonEmpty = out.length;
- while (lastNonEmpty > 0 && out[lastNonEmpty - 1] == '') {
- --lastNonEmpty;
- }
- lastNonEmpty < out.length && out.splice(lastNonEmpty, out.length - lastNonEmpty);
- }
- var jr = __createArray(out.length);
- for (var i_0 = 0; i_0 < out.length; ++i_0) {
- jr[i_0] = out[i_0];
- }
- return jr;
-}
-
-function $substring(this$static, beginIndex){
- return __substr(this$static, beginIndex, this$static.length - beginIndex);
-}
-
-function $trim(this$static){
- var end, length_0, start_0;
- length_0 = this$static.length;
- start_0 = 0;
- while (start_0 < length_0 && this$static.charCodeAt(start_0) <= 32) {
- ++start_0;
- }
- end = length_0;
- while (end > start_0 && this$static.charCodeAt(end - 1) <= 32) {
- --end;
- }
- return start_0 > 0 || end < length_0?this$static.substr(start_0, end - start_0):this$static;
-}
-
-function __createArray(numElements){
- return initDim(Ljava_lang_String_2_classLit, $intern_4, 2, numElements, 4, 1);
-}
-
-function __substr(str, beginIndex, len){
- return str.substr(beginIndex, len);
-}
-
-function __translateReplaceString(replaceStr){
- var pos;
- pos = 0;
- while (0 <= (pos = replaceStr.indexOf('\\', pos))) {
- replaceStr.charCodeAt(pos + 1) == 36?(replaceStr = replaceStr.substr(0, pos) + '$' + $substring(replaceStr, ++pos)):(replaceStr = replaceStr.substr(0, pos) + $substring(replaceStr, ++pos));
- }
- return replaceStr;
-}
-
-function fromCodePoint(codePoint){
- var hiSurrogate, loSurrogate;
- if (codePoint >= $intern_28) {
- hiSurrogate = 55296 + (codePoint - $intern_28 >> 10 & 1023) & 65535;
- loSurrogate = 56320 + (codePoint - $intern_28 & 1023) & 65535;
- return valueOf_5(hiSurrogate) + valueOf_5(loSurrogate);
- }
- else {
- return String.fromCharCode(codePoint & 65535);
- }
-}
-
-function valueOf_5(x_0){
- return String.fromCharCode(x_0);
-}
-
-var Ljava_lang_String_2_classLit = createForClass('java.lang', 'String', 2, Ljava_lang_Object_2_classLit);
-function $clinit_String$HashCache(){
- $clinit_String$HashCache = emptyMethod;
- back_0 = {};
- front = {};
-}
-
-function compute(str){
- var hashCode, i_0, n, nBatch;
- hashCode = 0;
- n = str.length;
- nBatch = n - 4;
- i_0 = 0;
- while (i_0 < nBatch) {
- hashCode = str.charCodeAt(i_0 + 3) + 31 * (str.charCodeAt(i_0 + 2) + 31 * (str.charCodeAt(i_0 + 1) + 31 * (str.charCodeAt(i_0) + 31 * hashCode)));
- hashCode = hashCode | 0;
- i_0 += 4;
- }
- while (i_0 < n) {
- hashCode = hashCode * 31 + $charAt_0(str, i_0++);
- }
- hashCode = hashCode | 0;
- return hashCode;
-}
-
-function getHashCode_0(str){
- $clinit_String$HashCache();
- var key = ':' + str;
- var result = front[key];
- if (result != null) {
- return result;
- }
- result = back_0[key];
- result == null && (result = compute(str));
- increment();
- return front[key] = result;
-}
-
-function increment(){
- if (count_0 == 256) {
- back_0 = front;
- front = {};
- count_0 = 0;
- }
- ++count_0;
-}
-
-var back_0, count_0 = 0, front;
-function $append(this$static, x_0){
- this$static.string += x_0;
- return this$static;
-}
-
-function $append_0(this$static, x_0){
- this$static.string += x_0;
- return this$static;
-}
-
-function $delete_0(this$static, start_0, end){
- this$static.string = __substr(this$static.string, 0, start_0) + '' + $substring(this$static.string, end);
- return this$static;
-}
-
-function $insert_0(this$static, index_0, x_0){
- this$static.string = __substr(this$static.string, 0, index_0) + x_0 + $substring(this$static.string, index_0);
- return this$static;
-}
-
-function StringBuilder(){
- AbstractStringBuilder.call(this, '');
-}
-
-function StringBuilder_0(){
- AbstractStringBuilder.call(this, '');
-}
-
-function StringBuilder_1(s){
- AbstractStringBuilder.call(this, s);
-}
-
-defineClass(59, 126, {580:1}, StringBuilder, StringBuilder_0, StringBuilder_1);
-var Ljava_lang_StringBuilder_2_classLit = createForClass('java.lang', 'StringBuilder', 59, Ljava_lang_AbstractStringBuilder_2_classLit);
-function UnsupportedOperationException(){
- RuntimeException.call(this);
-}
-
-function UnsupportedOperationException_0(message){
- RuntimeException_0.call(this, message);
-}
-
-defineClass(29, 11, {3:1, 12:1, 11:1, 14:1, 29:1}, UnsupportedOperationException, UnsupportedOperationException_0);
-var Ljava_lang_UnsupportedOperationException_2_classLit = createForClass('java.lang', 'UnsupportedOperationException', 29, Ljava_lang_RuntimeException_2_classLit);
-function $addAll_0(this$static, c){
- var changed, e, e$iterator;
- checkNotNull(c);
- changed = false;
- for (e$iterator = $iterator(new AbstractMap$1(c.map_0)); e$iterator.val$outerIter2.hasNext();) {
- e = $next_3(e$iterator);
- changed = changed | this$static.add_1(e);
- }
- return changed;
-}
-
-function $advanceToFind(this$static, o, remove){
- var e, iter;
- for (iter = this$static.iterator_0(); iter.hasNext();) {
- e = iter.next_0();
- if (maskUndefined(o) === maskUndefined(e) || o != null && equals_Ljava_lang_Object__Z__devirtual$(o, e)) {
- remove && iter.remove_0();
- return true;
- }
- }
- return false;
-}
-
-function $containsAll(this$static, c){
- var e, e$iterator;
- checkNotNull(c);
- for (e$iterator = c.iterator_0(); e$iterator.hasNext();) {
- e = e$iterator.next_0();
- if (!this$static.contains_0(e)) {
- return false;
- }
- }
- return true;
-}
-
-function $toArray_0(this$static, a){
- var i_0, it, size_0;
- size_0 = this$static.size_2();
- a.length < size_0 && (a = createFrom(a, size_0));
- it = this$static.iterator_0();
- for (i_0 = 0; i_0 < size_0; ++i_0) {
- setCheck(a, i_0, it.next_0());
- }
- a.length > size_0 && setCheck(a, size_0, null);
- return a;
-}
-
-function $toString_3(this$static){
- var comma, e, e$iterator, sb;
- sb = new StringBuilder_1('[');
- comma = false;
- for (e$iterator = this$static.iterator_0(); e$iterator.hasNext();) {
- e = e$iterator.next_0();
- comma?(sb.string += ', ' , sb):(comma = true);
- sb.string += e === this$static?'(this Collection)':'' + e;
- }
- sb.string += ']';
- return sb.string;
-}
-
-defineClass(564, 1, {28:1});
-_.add_1 = function(o){
- throw new UnsupportedOperationException_0('Add not supported on this collection');
-}
-;
-_.addAll = function(c){
- return $addAll_0(this, c);
-}
-;
-_.contains_0 = function(o){
- return $advanceToFind(this, o, false);
-}
-;
-_.isEmpty = function(){
- return this.size_2() == 0;
-}
-;
-_.remove_1 = function(o){
- return $advanceToFind(this, o, true);
-}
-;
-_.toArray = function(){
- return this.toArray_0(initDim(Ljava_lang_Object_2_classLit, $intern_4, 1, this.size_2(), 3, 1));
-}
-;
-_.toArray_0 = function(a){
- return $toArray_0(this, a);
-}
-;
-_.toString$ = function(){
- return $toString_3(this);
-}
-;
-var Ljava_util_AbstractCollection_2_classLit = createForClass('java.util', 'AbstractCollection', 564, Ljava_lang_Object_2_classLit);
-function $containsEntry(this$static, entry){
- var key, ourValue, value_0;
- key = entry.getKey();
- value_0 = entry.getValue_1();
- ourValue = this$static.get_1(key);
- if (!(maskUndefined(value_0) === maskUndefined(ourValue) || value_0 != null && equals_Ljava_lang_Object__Z__devirtual$(value_0, ourValue))) {
- return false;
- }
- if (ourValue == null && !this$static.containsKey(key)) {
- return false;
- }
- return true;
-}
-
-function $implFindEntry(this$static, key, remove){
- var entry, iter, k_0;
- for (iter = this$static.entrySet_0().iterator_0(); iter.hasNext();) {
- entry = dynamicCast(iter.next_0(), 25);
- k_0 = entry.getKey();
- if (maskUndefined(key) === maskUndefined(k_0) || key != null && equals_Ljava_lang_Object__Z__devirtual$(key, k_0)) {
- if (remove) {
- entry = new AbstractMap$SimpleEntry(entry.getKey(), entry.getValue_1());
- iter.remove_0();
- }
- return entry;
- }
- }
- return null;
-}
-
-function $toString_4(this$static, o){
- return o === this$static?'(this Map)':'' + o;
-}
-
-function getEntryValueOrNull(entry){
- return !entry?null:entry.getValue_1();
-}
-
-defineClass(567, 1, {78:1});
-_.containsKey = function(key){
- return !!$implFindEntry(this, key, false);
-}
-;
-_.equals$ = function(obj){
- var entry, entry$iterator, otherMap;
- if (obj === this) {
- return true;
- }
- if (!instanceOf(obj, 78)) {
- return false;
- }
- otherMap = dynamicCast(obj, 78);
- if (this.size_2() != otherMap.size_2()) {
- return false;
- }
- for (entry$iterator = otherMap.entrySet_0().iterator_0(); entry$iterator.hasNext();) {
- entry = dynamicCast(entry$iterator.next_0(), 25);
- if (!$containsEntry(this, entry)) {
- return false;
- }
- }
- return true;
-}
-;
-_.get_1 = function(key){
- return getEntryValueOrNull($implFindEntry(this, key, false));
-}
-;
-_.hashCode$ = function(){
- return hashCode_0(this.entrySet_0());
-}
-;
-_.isEmpty = function(){
- return this.size_2() == 0;
-}
-;
-_.put = function(key, value_0){
- throw new UnsupportedOperationException_0('Put not supported on this map');
-}
-;
-_.remove_2 = function(key){
- return getEntryValueOrNull($implFindEntry(this, key, true));
-}
-;
-_.size_2 = function(){
- return this.entrySet_0().size_2();
-}
-;
-_.toString$ = function(){
- var comma, entry, entry$iterator, sb;
- sb = new StringBuilder_1('{');
- comma = false;
- for (entry$iterator = this.entrySet_0().iterator_0(); entry$iterator.hasNext();) {
- entry = dynamicCast(entry$iterator.next_0(), 25);
- comma?(sb.string += ', ' , sb):(comma = true);
- $append_0(sb, $toString_4(this, entry.getKey()));
- sb.string += '=';
- $append_0(sb, $toString_4(this, entry.getValue_1()));
- }
- sb.string += '}';
- return sb.string;
-}
-;
-var Ljava_util_AbstractMap_2_classLit = createForClass('java.util', 'AbstractMap', 567, Ljava_lang_Object_2_classLit);
-function $elementAdded(this$static){
- ++this$static.size_0;
- structureChanged(this$static);
-}
-
-function $elementRemoved(this$static){
- --this$static.size_0;
- structureChanged(this$static);
-}
-
-function $reset(this$static){
- $clinit_InternalJsMapFactory$BackwardCompatibleJsMapFactory();
- this$static.hashCodeMap = delegate.createJsHashCodeMap();
- this$static.hashCodeMap.host = this$static;
- this$static.stringMap = delegate.createJsStringMap();
- this$static.stringMap.host = this$static;
- this$static.size_0 = 0;
- structureChanged(this$static);
-}
-
-defineClass(129, 567, {78:1});
-_.clear_0 = function(){
- $reset(this);
-}
-;
-_.containsKey = function(key){
- return isJavaString(key)?key == null?!!$getEntry(this.hashCodeMap, null):!(this.stringMap.get_2(key) === undefined):!!$getEntry(this.hashCodeMap, key);
-}
-;
-_.entrySet_0 = function(){
- return new AbstractHashMap$EntrySet(this);
-}
-;
-_.get_1 = function(key){
- return isJavaString(key)?key == null?getEntryValueOrNull($getEntry(this.hashCodeMap, null)):this.stringMap.get_2(key):getEntryValueOrNull($getEntry(this.hashCodeMap, key));
-}
-;
-_.put = function(key, value_0){
- return isJavaString(key)?key == null?$put_2(this.hashCodeMap, null, value_0):this.stringMap.put_0(key, value_0):$put_2(this.hashCodeMap, key, value_0);
-}
-;
-_.remove_2 = function(key){
- return isJavaString(key)?key == null?$remove_9(this.hashCodeMap, null):this.stringMap.remove_4(key):$remove_9(this.hashCodeMap, key);
-}
-;
-_.size_2 = function(){
- return this.size_0;
-}
-;
-_.size_0 = 0;
-var Ljava_util_AbstractHashMap_2_classLit = createForClass('java.util', 'AbstractHashMap', 129, Ljava_util_AbstractMap_2_classLit);
-defineClass(568, 564, $intern_48);
-_.equals$ = function(o){
- var other;
- if (o === this) {
- return true;
- }
- if (!instanceOf(o, 64)) {
- return false;
- }
- other = dynamicCast(o, 64);
- if (other.size_2() != this.size_2()) {
- return false;
- }
- return $containsAll(this, other);
-}
-;
-_.hashCode$ = function(){
- return hashCode_0(this);
-}
-;
-var Ljava_util_AbstractSet_2_classLit = createForClass('java.util', 'AbstractSet', 568, Ljava_util_AbstractCollection_2_classLit);
-function $contains_1(this$static, o){
- if (instanceOf(o, 25)) {
- return $containsEntry(this$static.this$01, dynamicCast(o, 25));
- }
- return false;
-}
-
-function AbstractHashMap$EntrySet(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(328, 568, $intern_48, AbstractHashMap$EntrySet);
-_.contains_0 = function(o){
- return $contains_1(this, o);
-}
-;
-_.iterator_0 = function(){
- return new AbstractHashMap$EntrySetIterator(this.this$01);
-}
-;
-_.remove_1 = function(entry){
- var key;
- if ($contains_1(this, entry)) {
- key = dynamicCast(entry, 25).getKey();
- this.this$01.remove_2(key);
- return true;
- }
- return false;
-}
-;
-_.size_2 = function(){
- return this.this$01.size_2();
-}
-;
-var Ljava_util_AbstractHashMap$EntrySet_2_classLit = createForClass('java.util', 'AbstractHashMap/EntrySet', 328, Ljava_util_AbstractSet_2_classLit);
-function $hasNext(this$static){
- if (this$static.current.hasNext()) {
- return true;
- }
- if (this$static.current != this$static.stringMapEntries) {
- return false;
- }
- this$static.current = this$static.this$01.hashCodeMap.entries();
- return this$static.current.hasNext();
-}
-
-function AbstractHashMap$EntrySetIterator(this$0){
- this.this$01 = this$0;
- this.stringMapEntries = this.this$01.stringMap.entries();
- this.current = this.stringMapEntries;
- setModCount(this, this$0._gwt_modCount);
-}
-
-defineClass(329, 1, {}, AbstractHashMap$EntrySetIterator);
-_.hasNext = function(){
- return $hasNext(this);
-}
-;
-_.next_0 = function(){
- return checkStructuralChange(this.this$01, this) , checkCriticalElement($hasNext(this)) , this.last = this.current , dynamicCast(this.current.next_0(), 25);
-}
-;
-_.remove_0 = function(){
- checkState(!!this.last);
- checkStructuralChange(this.this$01, this);
- this.last.remove_0();
- this.last = null;
- recordLastKnownStructure(this.this$01, this);
-}
-;
-var Ljava_util_AbstractHashMap$EntrySetIterator_2_classLit = createForClass('java.util', 'AbstractHashMap/EntrySetIterator', 329, Ljava_lang_Object_2_classLit);
-function $clear_0(this$static){
- $removeRange(this$static, this$static.size_0);
-}
-
-function $indexOf_2(this$static, toFind){
- var i_0, n;
- for (i_0 = 0 , n = this$static.size_2(); i_0 < n; ++i_0) {
- if (equals_0(toFind, this$static.get_0(i_0))) {
- return i_0;
- }
- }
- return -1;
-}
-
-function $removeRange(this$static, endIndex){
- var i_0, iter;
- iter = new AbstractList$ListIteratorImpl(this$static, 0);
- for (i_0 = 0; i_0 < endIndex; ++i_0) {
- iter.next_0();
- iter.remove_0();
- }
-}
-
-defineClass(565, 564, $intern_42);
-_.add_2 = function(index_0, element){
- throw new UnsupportedOperationException_0('Add not supported on this list');
-}
-;
-_.add_1 = function(obj){
- this.add_2(this.size_2(), obj);
- return true;
-}
-;
-_.equals$ = function(o){
- var elem, elem$iterator, elemOther, iterOther, other;
- if (o === this) {
- return true;
- }
- if (!instanceOf(o, 30)) {
- return false;
- }
- other = dynamicCast(o, 30);
- if (this.size_2() != other.size_2()) {
- return false;
- }
- iterOther = other.iterator_0();
- for (elem$iterator = this.iterator_0(); elem$iterator.hasNext();) {
- elem = elem$iterator.next_0();
- elemOther = iterOther.next_0();
- if (!(maskUndefined(elem) === maskUndefined(elemOther) || elem != null && equals_Ljava_lang_Object__Z__devirtual$(elem, elemOther))) {
- return false;
- }
- }
- return true;
-}
-;
-_.hashCode$ = function(){
- return hashCode_1(this);
-}
-;
-_.indexOf_0 = function(toFind){
- return $indexOf_2(this, toFind);
-}
-;
-_.iterator_0 = function(){
- return new AbstractList$IteratorImpl(this);
-}
-;
-_.listIterator = function(){
- return this.listIterator_0(0);
-}
-;
-_.listIterator_0 = function(from){
- return new AbstractList$ListIteratorImpl(this, from);
-}
-;
-_.remove_3 = function(index_0){
- throw new UnsupportedOperationException_0('Remove not supported on this list');
-}
-;
-var Ljava_util_AbstractList_2_classLit = createForClass('java.util', 'AbstractList', 565, Ljava_util_AbstractCollection_2_classLit);
-function $hasNext_0(this$static){
- return this$static.i < this$static.this$01_0.size_2();
-}
-
-function $next_2(this$static){
- checkCriticalElement(this$static.i < this$static.this$01_0.size_2());
- return this$static.this$01_0.get_0(this$static.last = this$static.i++);
-}
-
-function AbstractList$IteratorImpl(this$0){
- this.this$01_0 = this$0;
-}
-
-defineClass(43, 1, {}, AbstractList$IteratorImpl);
-_.hasNext = function(){
- return $hasNext_0(this);
-}
-;
-_.next_0 = function(){
- return $next_2(this);
-}
-;
-_.remove_0 = function(){
- checkState(this.last != -1);
- this.this$01_0.remove_3(this.last);
- this.i = this.last;
- this.last = -1;
-}
-;
-_.i = 0;
-_.last = -1;
-var Ljava_util_AbstractList$IteratorImpl_2_classLit = createForClass('java.util', 'AbstractList/IteratorImpl', 43, Ljava_lang_Object_2_classLit);
-function AbstractList$ListIteratorImpl(this$0, start_0){
- this.this$01 = this$0;
- AbstractList$IteratorImpl.call(this, this$0);
- checkPositionIndex(start_0, this$0.size_2());
- this.i = start_0;
-}
-
-defineClass(161, 43, {}, AbstractList$ListIteratorImpl);
-_.hasPrevious = function(){
- return this.i > 0;
-}
-;
-_.previous = function(){
- checkCriticalElement(this.i > 0);
- return this.this$01.get_0(this.last = --this.i);
-}
-;
-var Ljava_util_AbstractList$ListIteratorImpl_2_classLit = createForClass('java.util', 'AbstractList/ListIteratorImpl', 161, Ljava_util_AbstractList$IteratorImpl_2_classLit);
-function AbstractList$SubList(wrapped, fromIndex, toIndex){
- checkCriticalPositionIndexes(fromIndex, toIndex, wrapped.array.length);
- this.wrapped = wrapped;
- this.fromIndex = fromIndex;
- this.size_0 = toIndex - fromIndex;
-}
-
-defineClass(72, 565, $intern_42, AbstractList$SubList);
-_.add_2 = function(index_0, element){
- checkPositionIndex(index_0, this.size_0);
- $add_5(this.wrapped, this.fromIndex + index_0, element);
- ++this.size_0;
-}
-;
-_.get_0 = function(index_0){
- return checkElementIndex(index_0, this.size_0) , $get_6(this.wrapped, this.fromIndex + index_0);
-}
-;
-_.remove_3 = function(index_0){
- var result;
- checkElementIndex(index_0, this.size_0);
- result = this.wrapped.remove_3(this.fromIndex + index_0);
- --this.size_0;
- return result;
-}
-;
-_.size_2 = function(){
- return this.size_0;
-}
-;
-_.fromIndex = 0;
-_.size_0 = 0;
-var Ljava_util_AbstractList$SubList_2_classLit = createForClass('java.util', 'AbstractList/SubList', 72, Ljava_util_AbstractList_2_classLit);
-function $iterator(this$static){
- var outerIter;
- outerIter = this$static.this$01.entrySet_0().iterator_0();
- return new AbstractMap$1$1(outerIter);
-}
-
-function AbstractMap$1(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(47, 568, $intern_48, AbstractMap$1);
-_.contains_0 = function(key){
- return this.this$01.containsKey(key);
-}
-;
-_.iterator_0 = function(){
- return $iterator(this);
-}
-;
-_.remove_1 = function(key){
- if (this.this$01.containsKey(key)) {
- this.this$01.remove_2(key);
- return true;
- }
- return false;
-}
-;
-_.size_2 = function(){
- return this.this$01.size_2();
-}
-;
-var Ljava_util_AbstractMap$1_2_classLit = createForClass('java.util', 'AbstractMap/1', 47, Ljava_util_AbstractSet_2_classLit);
-function $next_3(this$static){
- var entry;
- entry = dynamicCast(this$static.val$outerIter2.next_0(), 25);
- return entry.getKey();
-}
-
-function AbstractMap$1$1(val$outerIter){
- this.val$outerIter2 = val$outerIter;
-}
-
-defineClass(331, 1, {}, AbstractMap$1$1);
-_.hasNext = function(){
- return this.val$outerIter2.hasNext();
-}
-;
-_.next_0 = function(){
- return $next_3(this);
-}
-;
-_.remove_0 = function(){
- this.val$outerIter2.remove_0();
-}
-;
-var Ljava_util_AbstractMap$1$1_2_classLit = createForClass('java.util', 'AbstractMap/1/1', 331, Ljava_lang_Object_2_classLit);
-function $setValue_3(this$static, value_0){
- var oldValue;
- oldValue = this$static.value_0;
- this$static.value_0 = value_0;
- return oldValue;
-}
-
-defineClass(330, 1, $intern_49);
-_.equals$ = function(other){
- var entry;
- if (!instanceOf(other, 25)) {
- return false;
- }
- entry = dynamicCast(other, 25);
- return equals_0(this.key, entry.getKey()) && equals_0(this.value_0, entry.getValue_1());
-}
-;
-_.getKey = function(){
- return this.key;
-}
-;
-_.getValue_1 = function(){
- return this.value_0;
-}
-;
-_.hashCode$ = function(){
- return hashCode_2(this.key) ^ hashCode_2(this.value_0);
-}
-;
-_.setValue_0 = function(value_0){
- return $setValue_3(this, value_0);
-}
-;
-_.toString$ = function(){
- return this.key + '=' + this.value_0;
-}
-;
-var Ljava_util_AbstractMap$AbstractEntry_2_classLit = createForClass('java.util', 'AbstractMap/AbstractEntry', 330, Ljava_lang_Object_2_classLit);
-function AbstractMap$SimpleEntry(key, value_0){
- this.key = key;
- this.value_0 = value_0;
-}
-
-defineClass(130, 330, $intern_49, AbstractMap$SimpleEntry);
-var Ljava_util_AbstractMap$SimpleEntry_2_classLit = createForClass('java.util', 'AbstractMap/SimpleEntry', 130, Ljava_util_AbstractMap$AbstractEntry_2_classLit);
-defineClass(576, 1, $intern_49);
-_.equals$ = function(other){
- var entry;
- if (!instanceOf(other, 25)) {
- return false;
- }
- entry = dynamicCast(other, 25);
- return equals_0(this.getKey(), entry.getKey()) && equals_0(this.getValue_1(), entry.getValue_1());
-}
-;
-_.hashCode$ = function(){
- return hashCode_2(this.getKey()) ^ hashCode_2(this.getValue_1());
-}
-;
-_.toString$ = function(){
- return this.getKey() + '=' + this.getValue_1();
-}
-;
-var Ljava_util_AbstractMapEntry_2_classLit = createForClass('java.util', 'AbstractMapEntry', 576, Ljava_lang_Object_2_classLit);
-function $addAll_1(this$static, index_0, c){
- var e, e$iterator, iter, modified;
- checkNotNull(c);
- modified = false;
- iter = $listIterator(this$static, index_0);
- for (e$iterator = new AbstractList$IteratorImpl(c); e$iterator.i < e$iterator.this$01_0.size_2();) {
- e = (checkCriticalElement(e$iterator.i < e$iterator.this$01_0.size_2()) , e$iterator.this$01_0.get_0(e$iterator.last = e$iterator.i++));
- $add_8(iter, e);
- modified = true;
- }
- return modified;
-}
-
-function $get_5(this$static, index_0){
- var iter;
- iter = $listIterator(this$static, index_0);
- try {
- return checkCriticalElement(iter.currentNode != iter.this$01.tail) , iter.lastNode = iter.currentNode , iter.currentNode = iter.currentNode.next , ++iter.currentIndex , iter.lastNode.value_0;
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 68)) {
- throw new IndexOutOfBoundsException_0("Can't get element " + index_0);
- }
- else
- throw unwrap($e0);
- }
-}
-
-function $remove_5(this$static, index_0){
- var iter, old;
- iter = $listIterator(this$static, index_0);
- try {
- old = (checkCriticalElement(iter.currentNode != iter.this$01.tail) , iter.lastNode = iter.currentNode , iter.currentNode = iter.currentNode.next , ++iter.currentIndex , iter.lastNode.value_0);
- $remove_13(iter);
- return old;
- }
- catch ($e0) {
- $e0 = wrap($e0);
- if (instanceOf($e0, 68)) {
- throw new IndexOutOfBoundsException_0("Can't remove element " + index_0);
- }
- else
- throw unwrap($e0);
- }
-}
-
-defineClass(577, 565, $intern_42);
-_.add_2 = function(index_0, element){
- var iter;
- iter = $listIterator(this, index_0);
- $add_8(iter, element);
-}
-;
-_.get_0 = function(index_0){
- return $get_5(this, index_0);
-}
-;
-_.iterator_0 = function(){
- return $listIterator(this, 0);
-}
-;
-_.remove_3 = function(index_0){
- return $remove_5(this, index_0);
-}
-;
-var Ljava_util_AbstractSequentialList_2_classLit = createForClass('java.util', 'AbstractSequentialList', 577, Ljava_util_AbstractList_2_classLit);
-function $$init_0(this$static){
- this$static.array = initDim(Ljava_lang_Object_2_classLit, $intern_4, 1, 0, 3, 1);
-}
-
-function $add_5(this$static, index_0, o){
- checkPositionIndex(index_0, this$static.array.length);
- splice_0(this$static.array, index_0, 0, o);
-}
-
-function $add_6(this$static, o){
- setCheck(this$static.array, this$static.array.length, o);
- return true;
-}
-
-function $get_6(this$static, index_0){
- checkElementIndex(index_0, this$static.array.length);
- return this$static.array[index_0];
-}
-
-function $indexOf_3(this$static, o, index_0){
- for (; index_0 < this$static.array.length; ++index_0) {
- if (equals_0(o, this$static.array[index_0])) {
- return index_0;
- }
- }
- return -1;
-}
-
-function $insertAt(this$static, index_0, values){
- nativeArraySplice(values, 0, this$static.array, index_0, values.length, false);
-}
-
-function $remove_6(this$static, index_0){
- var previous;
- previous = (checkElementIndex(index_0, this$static.array.length) , this$static.array[index_0]);
- splice(this$static.array, index_0, 1);
- return previous;
-}
-
-function $remove_7(this$static, o){
- var i_0;
- i_0 = $indexOf_3(this$static, o, 0);
- if (i_0 == -1) {
- return false;
- }
- this$static.remove_3(i_0);
- return true;
-}
-
-function $set_4(this$static, index_0, o){
- var previous;
- previous = (checkElementIndex(index_0, this$static.array.length) , this$static.array[index_0]);
- setCheck(this$static.array, index_0, o);
- return previous;
-}
-
-function $toArray_1(this$static){
- return cloneSubrange(this$static.array, this$static.array.length);
-}
-
-function $toArray_2(this$static, out){
- var i_0, size_0;
- size_0 = this$static.array.length;
- out.length < size_0 && (out = createFrom(out, size_0));
- for (i_0 = 0; i_0 < size_0; ++i_0) {
- setCheck(out, i_0, this$static.array[i_0]);
- }
- out.length > size_0 && setCheck(out, size_0, null);
- return out;
-}
-
-function ArrayList(){
- $$init_0(this);
-}
-
-function ArrayList_0(initialCapacity){
- $$init_0(this);
- checkCriticalArgument(initialCapacity >= 0, 'Initial capacity must not be negative');
-}
-
-function ArrayList_1(c){
- $$init_0(this);
- $insertAt(this, 0, c.toArray());
-}
-
-function splice(array, index_0, deleteCount){
- array.splice(index_0, deleteCount);
-}
-
-function splice_0(array, index_0, deleteCount, value_0){
- array.splice(index_0, deleteCount, value_0);
-}
-
-defineClass(13, 565, $intern_50, ArrayList, ArrayList_0, ArrayList_1);
-_.add_2 = function(index_0, o){
- $add_5(this, index_0, o);
-}
-;
-_.add_1 = function(o){
- return $add_6(this, o);
-}
-;
-_.addAll = function(c){
- var cArray, len;
- cArray = $toArray_0(c, initDim(Ljava_lang_Object_2_classLit, $intern_4, 1, c.map_0.size_2(), 3, 1));
- len = cArray.length;
- if (len == 0) {
- return false;
- }
- $insertAt(this, this.array.length, cArray);
- return true;
-}
-;
-_.contains_0 = function(o){
- return $indexOf_3(this, o, 0) != -1;
-}
-;
-_.get_0 = function(index_0){
- return $get_6(this, index_0);
-}
-;
-_.indexOf_0 = function(o){
- return $indexOf_3(this, o, 0);
-}
-;
-_.isEmpty = function(){
- return this.array.length == 0;
-}
-;
-_.remove_3 = function(index_0){
- return $remove_6(this, index_0);
-}
-;
-_.remove_1 = function(o){
- return $remove_7(this, o);
-}
-;
-_.size_2 = function(){
- return this.array.length;
-}
-;
-_.toArray = function(){
- return $toArray_1(this);
-}
-;
-_.toArray_0 = function(out){
- return $toArray_2(this, out);
-}
-;
-var Ljava_util_ArrayList_2_classLit = createForClass('java.util', 'ArrayList', 13, Ljava_util_AbstractList_2_classLit);
-function $get_7(this$static, index_0){
- checkElementIndex(index_0, this$static.array.length);
- return this$static.array[index_0];
-}
-
-function Arrays$ArrayList(array){
- this.array = array;
-}
-
-defineClass(44, 565, $intern_50, Arrays$ArrayList);
-_.contains_0 = function(o){
- return $indexOf_2(this, o) != -1;
-}
-;
-_.get_0 = function(index_0){
- return $get_7(this, index_0);
-}
-;
-_.size_2 = function(){
- return this.array.length;
-}
-;
-_.toArray = function(){
- return clone(this.array);
-}
-;
-_.toArray_0 = function(out){
- var i_0, size_0;
- size_0 = this.array.length;
- out.length < size_0 && (out = createFrom(out, size_0));
- for (i_0 = 0; i_0 < size_0; ++i_0) {
- setCheck(out, i_0, this.array[i_0]);
- }
- out.length > size_0 && setCheck(out, size_0, null);
- return out;
-}
-;
-var Ljava_util_Arrays$ArrayList_2_classLit = createForClass('java.util', 'Arrays/ArrayList', 44, Ljava_util_AbstractList_2_classLit);
-function $clinit_Collections(){
- $clinit_Collections = emptyMethod;
- EMPTY_LIST = new Collections$EmptyList;
- EMPTY_SET = new Collections$EmptySet;
-}
-
-function hashCode_0(collection){
- $clinit_Collections();
- var e, e$iterator, hashCode;
- hashCode = 0;
- for (e$iterator = collection.iterator_0(); e$iterator.hasNext();) {
- e = e$iterator.next_0();
- hashCode = hashCode + (e != null?hashCode__I__devirtual$(e):0);
- hashCode = hashCode | 0;
- }
- return hashCode;
-}
-
-function hashCode_1(list){
- $clinit_Collections();
- var e, e$iterator, hashCode;
- hashCode = 1;
- for (e$iterator = list.iterator_0(); e$iterator.hasNext();) {
- e = e$iterator.next_0();
- hashCode = 31 * hashCode + (e != null?hashCode__I__devirtual$(e):0);
- hashCode = hashCode | 0;
- }
- return hashCode;
-}
-
-function singleton_0(o){
- $clinit_Collections();
- var set_0;
- set_0 = new HashSet_0;
- $add_7(set_0, o);
- return new Collections$UnmodifiableSet(set_0);
-}
-
-function unmodifiableList(list){
- $clinit_Collections();
- return instanceOf(list, 111)?new Collections$UnmodifiableRandomAccessList(list):new Collections$UnmodifiableList(list);
-}
-
-var EMPTY_LIST, EMPTY_SET;
-function Collections$EmptyList(){
-}
-
-defineClass(402, 565, $intern_50, Collections$EmptyList);
-_.contains_0 = function(object){
- return false;
-}
-;
-_.get_0 = function(location_0){
- checkElementIndex(location_0, 0);
- return null;
-}
-;
-_.iterator_0 = function(){
- return $clinit_Collections() , $clinit_Collections$EmptyListIterator() , INSTANCE_5;
-}
-;
-_.listIterator = function(){
- return $clinit_Collections() , $clinit_Collections$EmptyListIterator() , INSTANCE_5;
-}
-;
-_.size_2 = function(){
- return 0;
-}
-;
-var Ljava_util_Collections$EmptyList_2_classLit = createForClass('java.util', 'Collections/EmptyList', 402, Ljava_util_AbstractList_2_classLit);
-function $clinit_Collections$EmptyListIterator(){
- $clinit_Collections$EmptyListIterator = emptyMethod;
- INSTANCE_5 = new Collections$EmptyListIterator;
-}
-
-function Collections$EmptyListIterator(){
-}
-
-defineClass(403, 1, {}, Collections$EmptyListIterator);
-_.hasNext = function(){
- return false;
-}
-;
-_.hasPrevious = function(){
- return false;
-}
-;
-_.next_0 = function(){
- throw new NoSuchElementException;
-}
-;
-_.previous = function(){
- throw new NoSuchElementException;
-}
-;
-_.remove_0 = function(){
- throw new IllegalStateException;
-}
-;
-var INSTANCE_5;
-var Ljava_util_Collections$EmptyListIterator_2_classLit = createForClass('java.util', 'Collections/EmptyListIterator', 403, Ljava_lang_Object_2_classLit);
-function Collections$EmptySet(){
-}
-
-defineClass(404, 568, $intern_51, Collections$EmptySet);
-_.contains_0 = function(object){
- return false;
-}
-;
-_.iterator_0 = function(){
- return $clinit_Collections() , $clinit_Collections$EmptyListIterator() , INSTANCE_5;
-}
-;
-_.size_2 = function(){
- return 0;
-}
-;
-var Ljava_util_Collections$EmptySet_2_classLit = createForClass('java.util', 'Collections/EmptySet', 404, Ljava_util_AbstractSet_2_classLit);
-function Collections$SingletonList(element){
- this.element = element;
-}
-
-defineClass(167, 565, {3:1, 28:1, 30:1}, Collections$SingletonList);
-_.contains_0 = function(item_0){
- return equals_0(this.element, item_0);
-}
-;
-_.get_0 = function(index_0){
- checkElementIndex(index_0, 1);
- return this.element;
-}
-;
-_.size_2 = function(){
- return 1;
-}
-;
-var Ljava_util_Collections$SingletonList_2_classLit = createForClass('java.util', 'Collections/SingletonList', 167, Ljava_util_AbstractList_2_classLit);
-function Collections$UnmodifiableCollection(coll){
- this.coll = coll;
-}
-
-defineClass(168, 1, {28:1});
-_.add_1 = function(o){
- throw new UnsupportedOperationException;
-}
-;
-_.addAll = function(c){
- throw new UnsupportedOperationException;
-}
-;
-_.contains_0 = function(o){
- return this.coll.contains_0(o);
-}
-;
-_.iterator_0 = function(){
- return new Collections$UnmodifiableCollectionIterator(this.coll.iterator_0());
-}
-;
-_.remove_1 = function(o){
- throw new UnsupportedOperationException;
-}
-;
-_.size_2 = function(){
- return this.coll.size_2();
-}
-;
-_.toArray = function(){
- return this.coll.toArray();
-}
-;
-_.toArray_0 = function(a){
- return this.coll.toArray_0(a);
-}
-;
-_.toString$ = function(){
- return this.coll.toString$();
-}
-;
-var Ljava_util_Collections$UnmodifiableCollection_2_classLit = createForClass('java.util', 'Collections/UnmodifiableCollection', 168, Ljava_lang_Object_2_classLit);
-function Collections$UnmodifiableCollectionIterator(it){
- this.it = it;
-}
-
-defineClass(74, 1, {}, Collections$UnmodifiableCollectionIterator);
-_.hasNext = function(){
- return this.it.hasNext();
-}
-;
-_.next_0 = function(){
- return this.it.next_0();
-}
-;
-_.remove_0 = function(){
- throw new UnsupportedOperationException;
-}
-;
-var Ljava_util_Collections$UnmodifiableCollectionIterator_2_classLit = createForClass('java.util', 'Collections/UnmodifiableCollectionIterator', 74, Ljava_lang_Object_2_classLit);
-function $get_8(this$static, index_0){
- return this$static.list.get_0(index_0);
-}
-
-function $indexOf_4(this$static, o){
- return this$static.list.indexOf_0(o);
-}
-
-function Collections$UnmodifiableList(list){
- Collections$UnmodifiableCollection.call(this, list);
- this.list = list;
-}
-
-defineClass(169, 168, $intern_42, Collections$UnmodifiableList);
-_.equals$ = function(o){
- return this.list.equals$(o);
-}
-;
-_.get_0 = function(index_0){
- return $get_8(this, index_0);
-}
-;
-_.hashCode$ = function(){
- return this.list.hashCode$();
-}
-;
-_.indexOf_0 = function(o){
- return $indexOf_4(this, o);
-}
-;
-_.isEmpty = function(){
- return this.list.isEmpty();
-}
-;
-_.listIterator = function(){
- return new Collections$UnmodifiableListIterator(this.list.listIterator_0(0));
-}
-;
-_.listIterator_0 = function(from){
- return new Collections$UnmodifiableListIterator(this.list.listIterator_0(from));
-}
-;
-var Ljava_util_Collections$UnmodifiableList_2_classLit = createForClass('java.util', 'Collections/UnmodifiableList', 169, Ljava_util_Collections$UnmodifiableCollection_2_classLit);
-function Collections$UnmodifiableListIterator(lit){
- Collections$UnmodifiableCollectionIterator.call(this, lit);
- this.lit = lit;
-}
-
-defineClass(171, 74, {}, Collections$UnmodifiableListIterator);
-_.hasPrevious = function(){
- return this.lit.hasPrevious();
-}
-;
-_.previous = function(){
- return this.lit.previous();
-}
-;
-var Ljava_util_Collections$UnmodifiableListIterator_2_classLit = createForClass('java.util', 'Collections/UnmodifiableListIterator', 171, Ljava_util_Collections$UnmodifiableCollectionIterator_2_classLit);
-function Collections$UnmodifiableMap(map_0){
- this.map_0 = map_0;
-}
-
-defineClass(405, 1, {78:1}, Collections$UnmodifiableMap);
-_.entrySet_0 = function(){
- !this.entrySet && (this.entrySet = new Collections$UnmodifiableMap$UnmodifiableEntrySet(this.map_0.entrySet_0()));
- return this.entrySet;
-}
-;
-_.equals$ = function(o){
- return this.map_0.equals$(o);
-}
-;
-_.get_1 = function(key){
- return this.map_0.get_1(key);
-}
-;
-_.hashCode$ = function(){
- return this.map_0.hashCode$();
-}
-;
-_.isEmpty = function(){
- return this.map_0.isEmpty();
-}
-;
-_.put = function(key, value_0){
- throw new UnsupportedOperationException;
-}
-;
-_.remove_2 = function(key){
- throw new UnsupportedOperationException;
-}
-;
-_.size_2 = function(){
- return this.map_0.size_2();
-}
-;
-_.toString$ = function(){
- return this.map_0.toString$();
-}
-;
-var Ljava_util_Collections$UnmodifiableMap_2_classLit = createForClass('java.util', 'Collections/UnmodifiableMap', 405, Ljava_lang_Object_2_classLit);
-function Collections$UnmodifiableSet(set_0){
- Collections$UnmodifiableCollection.call(this, set_0);
-}
-
-defineClass(133, 168, $intern_48, Collections$UnmodifiableSet);
-_.equals$ = function(o){
- return this.coll.equals$(o);
-}
-;
-_.hashCode$ = function(){
- return this.coll.hashCode$();
-}
-;
-var Ljava_util_Collections$UnmodifiableSet_2_classLit = createForClass('java.util', 'Collections/UnmodifiableSet', 133, Ljava_util_Collections$UnmodifiableCollection_2_classLit);
-function $wrap(array, size_0){
- var i_0;
- for (i_0 = 0; i_0 < size_0; ++i_0) {
- setCheck(array, i_0, new Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry(dynamicCast(array[i_0], 25)));
- }
-}
-
-function Collections$UnmodifiableMap$UnmodifiableEntrySet(s){
- Collections$UnmodifiableSet.call(this, s);
-}
-
-defineClass(406, 133, $intern_48, Collections$UnmodifiableMap$UnmodifiableEntrySet);
-_.contains_0 = function(o){
- return this.coll.contains_0(o);
-}
-;
-_.iterator_0 = function(){
- var it;
- it = this.coll.iterator_0();
- return new Collections$UnmodifiableMap$UnmodifiableEntrySet$1(it);
-}
-;
-_.toArray = function(){
- var array;
- array = this.coll.toArray();
- $wrap(array, array.length);
- return array;
-}
-;
-_.toArray_0 = function(a){
- var result;
- result = this.coll.toArray_0(a);
- $wrap(result, this.coll.size_2());
- return result;
-}
-;
-var Ljava_util_Collections$UnmodifiableMap$UnmodifiableEntrySet_2_classLit = createForClass('java.util', 'Collections/UnmodifiableMap/UnmodifiableEntrySet', 406, Ljava_util_Collections$UnmodifiableSet_2_classLit);
-function Collections$UnmodifiableMap$UnmodifiableEntrySet$1(val$it){
- this.val$it2 = val$it;
-}
-
-defineClass(408, 1, {}, Collections$UnmodifiableMap$UnmodifiableEntrySet$1);
-_.hasNext = function(){
- return this.val$it2.hasNext();
-}
-;
-_.next_0 = function(){
- return new Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry(dynamicCast(this.val$it2.next_0(), 25));
-}
-;
-_.remove_0 = function(){
- throw new UnsupportedOperationException;
-}
-;
-var Ljava_util_Collections$UnmodifiableMap$UnmodifiableEntrySet$1_2_classLit = createForClass('java.util', 'Collections/UnmodifiableMap/UnmodifiableEntrySet/1', 408, Ljava_lang_Object_2_classLit);
-function Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry(entry){
- this.entry = entry;
-}
-
-defineClass(170, 1, $intern_49, Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry);
-_.equals$ = function(o){
- return this.entry.equals$(o);
-}
-;
-_.getKey = function(){
- return this.entry.getKey();
-}
-;
-_.getValue_1 = function(){
- return this.entry.getValue_1();
-}
-;
-_.hashCode$ = function(){
- return this.entry.hashCode$();
-}
-;
-_.setValue_0 = function(value_0){
- throw new UnsupportedOperationException;
-}
-;
-_.toString$ = function(){
- return this.entry.toString$();
-}
-;
-var Ljava_util_Collections$UnmodifiableMap$UnmodifiableEntrySet$UnmodifiableEntry_2_classLit = createForClass('java.util', 'Collections/UnmodifiableMap/UnmodifiableEntrySet/UnmodifiableEntry', 170, Ljava_lang_Object_2_classLit);
-function Collections$UnmodifiableRandomAccessList(list){
- Collections$UnmodifiableList.call(this, list);
-}
-
-defineClass(407, 169, {28:1, 30:1, 111:1}, Collections$UnmodifiableRandomAccessList);
-var Ljava_util_Collections$UnmodifiableRandomAccessList_2_classLit = createForClass('java.util', 'Collections/UnmodifiableRandomAccessList', 407, Ljava_util_Collections$UnmodifiableList_2_classLit);
-function checkStructuralChange(host, iterator){
- if (iterator._gwt_modCount != host._gwt_modCount) {
- throw new ConcurrentModificationException;
- }
-}
-
-function recordLastKnownStructure(host, iterator){
- setModCount(iterator, host._gwt_modCount);
-}
-
-function setModCount(o, modCount){
- o._gwt_modCount = modCount;
-}
-
-function structureChanged(map_0){
- var modCount;
- modCount = map_0._gwt_modCount | 0;
- setModCount(map_0, modCount + 1);
-}
-
-function ConcurrentModificationException(){
- RuntimeException.call(this);
-}
-
-defineClass(523, 11, $intern_3, ConcurrentModificationException);
-var Ljava_util_ConcurrentModificationException_2_classLit = createForClass('java.util', 'ConcurrentModificationException', 523, Ljava_lang_RuntimeException_2_classLit);
-function HashMap(){
- $reset(this);
-}
-
-function HashMap_0(){
- checkCriticalArgument(true, 'Negative initial capacity');
- checkCriticalArgument(true, 'Non-positive load factor');
- $reset(this);
-}
-
-defineClass(26, 129, {3:1, 78:1}, HashMap, HashMap_0);
-_.equals = function(value1, value2){
- return maskUndefined(value1) === maskUndefined(value2) || value1 != null && equals_Ljava_lang_Object__Z__devirtual$(value1, value2);
-}
-;
-_.getHashCode = function(key){
- var hashCode;
- hashCode = hashCode__I__devirtual$(key);
- return hashCode | 0;
-}
-;
-var Ljava_util_HashMap_2_classLit = createForClass('java.util', 'HashMap', 26, Ljava_util_AbstractHashMap_2_classLit);
-function $add_7(this$static, o){
- var old;
- old = this$static.map_0.put(o, this$static);
- return old == null;
-}
-
-function $contains_2(this$static, o){
- return this$static.map_0.containsKey(o);
-}
-
-function $remove_8(this$static, o){
- return this$static.map_0.remove_2(o) != null;
-}
-
-function HashSet(){
- this.map_0 = new HashMap;
-}
-
-function HashSet_0(){
- this.map_0 = new HashMap_0;
-}
-
-function HashSet_1(map_0){
- this.map_0 = map_0;
-}
-
-defineClass(46, 568, $intern_51, HashSet, HashSet_0);
-_.add_1 = function(o){
- return $add_7(this, o);
-}
-;
-_.contains_0 = function(o){
- return $contains_2(this, o);
-}
-;
-_.isEmpty = function(){
- return this.map_0.size_2() == 0;
-}
-;
-_.iterator_0 = function(){
- return $iterator(new AbstractMap$1(this.map_0));
-}
-;
-_.remove_1 = function(o){
- return $remove_8(this, o);
-}
-;
-_.size_2 = function(){
- return this.map_0.size_2();
-}
-;
-_.toString$ = function(){
- return $toString_3(new AbstractMap$1(this.map_0));
-}
-;
-var Ljava_util_HashSet_2_classLit = createForClass('java.util', 'HashSet', 46, Ljava_util_AbstractSet_2_classLit);
-function $ensureChain(this$static, hashCode){
- var map_0 = this$static.backingMap;
- return map_0[hashCode] || (map_0[hashCode] = []);
-}
-
-function $getChain(this$static, hashCode){
- return this$static.backingMap[hashCode];
-}
-
-function $getChainOrEmpty(this$static, hashCode){
- return this$static.backingMap[hashCode] || [];
-}
-
-function $getEntry(this$static, key){
- var entry, entry$array, entry$index, entry$max;
- for (entry$array = $getChainOrEmpty(this$static, key == null?'0':'' + this$static.host.getHashCode(key)) , entry$index = 0 , entry$max = entry$array.length; entry$index < entry$max; ++entry$index) {
- entry = entry$array[entry$index];
- if (this$static.host.equals(key, entry.getKey())) {
- return entry;
- }
- }
- return null;
-}
-
-function $keys_0(this$static){
- return Object.getOwnPropertyNames(this$static.backingMap);
-}
-
-function $put_2(this$static, key, value_0){
- var chain, entry, entry$index, entry$max;
- chain = $ensureChain(this$static, key == null?'0':'' + this$static.host.getHashCode(key));
- for (entry$index = 0 , entry$max = chain.length; entry$index < entry$max; ++entry$index) {
- entry = chain[entry$index];
- if (this$static.host.equals(key, entry.getKey())) {
- return entry.setValue_0(value_0);
- }
- }
- setCheck(chain, chain.length, new AbstractMap$SimpleEntry(key, value_0));
- $elementAdded(this$static.host);
- return null;
-}
-
-function $remove_9(this$static, key){
- var chain, entry, hashCode, i_0;
- hashCode = key == null?'0':'' + this$static.host.getHashCode(key);
- chain = $getChainOrEmpty(this$static, hashCode);
- for (i_0 = 0; i_0 < chain.length; i_0++) {
- entry = chain[i_0];
- if (this$static.host.equals(key, entry.getKey())) {
- chain.length == 1?(delete this$static.backingMap[hashCode] , undefined):(chain.splice(i_0, 1) , undefined);
- $elementRemoved(this$static.host);
- return entry.getValue_1();
- }
- }
- return null;
-}
-
-function InternalJsHashCodeMap(){
- this.backingMap = this.createMap();
-}
-
-defineClass(179, 1, {}, InternalJsHashCodeMap);
-_.createMap = function createMap(){
- return Object.create(null);
-}
-;
-_.entries = function(){
- return new InternalJsHashCodeMap$1(this);
-}
-;
-var Ljava_util_InternalJsHashCodeMap_2_classLit = createForClass('java.util', 'InternalJsHashCodeMap', 179, Ljava_lang_Object_2_classLit);
-function $hasNext_1(this$static){
- if (this$static.itemIndex < this$static.chain.length) {
- return true;
- }
- if (this$static.chainIndex < this$static.keys_0.length - 1) {
- this$static.chain = $getChain(this$static.this$01, this$static.keys_0[++this$static.chainIndex]);
- this$static.itemIndex = 0;
- return true;
- }
- return false;
-}
-
-function InternalJsHashCodeMap$1(this$0){
- this.this$01 = this$0;
- this.keys_0 = $keys_0(this.this$01);
- this.chain = initDim(Ljava_util_Map$Entry_2_classLit, $intern_4, 25, 0, 0, 1);
-}
-
-defineClass(460, 1, {}, InternalJsHashCodeMap$1);
-_.hasNext = function(){
- return $hasNext_1(this);
-}
-;
-_.next_0 = function(){
- return checkCriticalElement($hasNext_1(this)) , this.lastChain = this.chain , this.lastEntry = this.chain[this.itemIndex++] , this.lastEntry;
-}
-;
-_.remove_0 = function(){
- checkState(!!this.lastEntry);
- $remove_9(this.this$01, this.lastEntry.getKey());
- maskUndefined(this.chain) === maskUndefined(this.lastChain) && this.chain.length != 1 && --this.itemIndex;
- this.lastEntry = null;
-}
-;
-_.chainIndex = -1;
-_.itemIndex = 0;
-_.lastChain = null;
-_.lastEntry = null;
-var Ljava_util_InternalJsHashCodeMap$1_2_classLit = createForClass('java.util', 'InternalJsHashCodeMap/1', 460, Ljava_lang_Object_2_classLit);
-function InternalJsHashCodeMap$InternalJsHashCodeMapLegacy(){
- InternalJsHashCodeMap.call(this);
-}
-
-defineClass(458, 179, {}, InternalJsHashCodeMap$InternalJsHashCodeMapLegacy);
-_.createMap = function createMap_0(){
- return {};
-}
-;
-_.entries = function entries(){
- var list = this.newEntryList();
- var map_0 = this.backingMap;
- for (var hashCode in map_0) {
- if (hashCode == parseInt(hashCode, 10)) {
- var array = map_0[hashCode];
- for (var i_0 = 0, c = array.length; i_0 < c; ++i_0) {
- list.add_1(array[i_0]);
- }
- }
- }
- return list.iterator_0();
-}
-;
-_.newEntryList = function(){
- return new InternalJsHashCodeMap$InternalJsHashCodeMapLegacy$1(this);
-}
-;
-var Ljava_util_InternalJsHashCodeMap$InternalJsHashCodeMapLegacy_2_classLit = createForClass('java.util', 'InternalJsHashCodeMap/InternalJsHashCodeMapLegacy', 458, Ljava_util_InternalJsHashCodeMap_2_classLit);
-function InternalJsHashCodeMap$InternalJsHashCodeMapLegacy$1(this$1){
- this.this$11 = this$1;
- ArrayList.call(this);
-}
-
-defineClass(459, 13, $intern_50, InternalJsHashCodeMap$InternalJsHashCodeMapLegacy$1);
-_.remove_3 = function(index_0){
- var removed;
- return removed = dynamicCast($remove_6(this, index_0), 25) , $remove_9(this.this$11, removed.getKey()) , removed;
-}
-;
-var Ljava_util_InternalJsHashCodeMap$InternalJsHashCodeMapLegacy$1_2_classLit = createForClass('java.util', 'InternalJsHashCodeMap/InternalJsHashCodeMapLegacy/1', 459, Ljava_util_ArrayList_2_classLit);
-function InternalJsMapFactory(){
-}
-
-defineClass(455, 1, {}, InternalJsMapFactory);
-_.createJsHashCodeMap = function(){
- return new InternalJsHashCodeMap;
-}
-;
-_.createJsStringMap = function(){
- return new InternalJsStringMap;
-}
-;
-var Ljava_util_InternalJsMapFactory_2_classLit = createForClass('java.util', 'InternalJsMapFactory', 455, Ljava_lang_Object_2_classLit);
-function $clinit_InternalJsMapFactory$BackwardCompatibleJsMapFactory(){
- $clinit_InternalJsMapFactory$BackwardCompatibleJsMapFactory = emptyMethod;
- delegate = createFactory();
-}
-
-function canHandleProto(){
- var protoField = '__proto__';
- var map_0 = Object.create(null);
- if (map_0[protoField] !== undefined) {
- return false;
- }
- var keys_0 = Object.getOwnPropertyNames(map_0);
- if (keys_0.length != 0) {
- return false;
- }
- map_0[protoField] = 42;
- if (map_0[protoField] !== 42) {
- return false;
- }
- return true;
-}
-
-function createFactory(){
- var map_0;
- if (Object.create && Object.getOwnPropertyNames && canHandleProto()) {
- return (map_0 = Object.create(null) , map_0['__proto__'] = 42 , Object.getOwnPropertyNames(map_0).length == 0)?new InternalJsMapFactory$KeysWorkaroundJsMapFactory:new InternalJsMapFactory;
- }
- return new InternalJsMapFactory$LegacyInternalJsMapFactory;
-}
-
-var delegate;
-function InternalJsMapFactory$KeysWorkaroundJsMapFactory(){
-}
-
-defineClass(457, 455, {}, InternalJsMapFactory$KeysWorkaroundJsMapFactory);
-_.createJsStringMap = function(){
- return new InternalJsStringMap$InternalJsStringMapWithKeysWorkaround;
-}
-;
-var Ljava_util_InternalJsMapFactory$KeysWorkaroundJsMapFactory_2_classLit = createForClass('java.util', 'InternalJsMapFactory/KeysWorkaroundJsMapFactory', 457, Ljava_util_InternalJsMapFactory_2_classLit);
-function InternalJsMapFactory$LegacyInternalJsMapFactory(){
-}
-
-defineClass(456, 455, {}, InternalJsMapFactory$LegacyInternalJsMapFactory);
-_.createJsHashCodeMap = function(){
- return new InternalJsHashCodeMap$InternalJsHashCodeMapLegacy;
-}
-;
-_.createJsStringMap = function(){
- return new InternalJsStringMap$InternalJsStringMapLegacy;
-}
-;
-var Ljava_util_InternalJsMapFactory$LegacyInternalJsMapFactory_2_classLit = createForClass('java.util', 'InternalJsMapFactory/LegacyInternalJsMapFactory', 456, Ljava_util_InternalJsMapFactory_2_classLit);
-function $keys_1(this$static){
- return Object.getOwnPropertyNames(this$static.backingMap);
-}
-
-function $put_3(this$static, key, value_0){
- var oldValue;
- oldValue = this$static.backingMap[key];
- oldValue === undefined && $elementAdded(this$static.host);
- $set_5(this$static, key, value_0 === undefined?null:value_0);
- return oldValue;
-}
-
-function $remove_10(this$static, key){
- var value_0;
- value_0 = this$static.backingMap[key];
- if (!(value_0 === undefined)) {
- delete this$static.backingMap[key];
- $elementRemoved(this$static.host);
- }
- return value_0;
-}
-
-function $set_5(this$static, key, value_0){
- this$static.backingMap[key] = value_0;
-}
-
-function InternalJsStringMap(){
- this.backingMap = this.createMap_0();
-}
-
-defineClass(138, 1, {}, InternalJsStringMap);
-_.createMap_0 = function createMap_1(){
- return Object.create(null);
-}
-;
-_.entries = function(){
- var keys_0;
- keys_0 = this.keys_1();
- return new InternalJsStringMap$1(this, keys_0);
-}
-;
-_.get_2 = function(key){
- return this.backingMap[key];
-}
-;
-_.keys_1 = function(){
- return $keys_1(this);
-}
-;
-_.newMapEntry = function(key){
- return new InternalJsStringMap$2(this, key);
-}
-;
-_.put_0 = function(key, value_0){
- return $put_3(this, key, value_0);
-}
-;
-_.remove_4 = function(key){
- return $remove_10(this, key);
-}
-;
-var Ljava_util_InternalJsStringMap_2_classLit = createForClass('java.util', 'InternalJsStringMap', 138, Ljava_lang_Object_2_classLit);
-function InternalJsStringMap$1(this$0, val$keys){
- this.this$01 = this$0;
- this.val$keys2 = val$keys;
-}
-
-defineClass(432, 1, {}, InternalJsStringMap$1);
-_.hasNext = function(){
- return this.i < this.val$keys2.length;
-}
-;
-_.next_0 = function(){
- return checkCriticalElement(this.i < this.val$keys2.length) , new InternalJsStringMap$2(this.this$01, this.val$keys2[this.last = this.i++]);
-}
-;
-_.remove_0 = function(){
- checkState(this.last != -1);
- this.this$01.remove_4(this.val$keys2[this.last]);
- this.last = -1;
-}
-;
-_.i = 0;
-_.last = -1;
-var Ljava_util_InternalJsStringMap$1_2_classLit = createForClass('java.util', 'InternalJsStringMap/1', 432, Ljava_lang_Object_2_classLit);
-function InternalJsStringMap$2(this$0, val$key){
- this.this$01 = this$0;
- this.val$key2 = val$key;
-}
-
-defineClass(175, 576, $intern_49, InternalJsStringMap$2);
-_.getKey = function(){
- return this.val$key2;
-}
-;
-_.getValue_1 = function(){
- return this.this$01.get_2(this.val$key2);
-}
-;
-_.setValue_0 = function(object){
- return this.this$01.put_0(this.val$key2, object);
-}
-;
-var Ljava_util_InternalJsStringMap$2_2_classLit = createForClass('java.util', 'InternalJsStringMap/2', 175, Ljava_util_AbstractMapEntry_2_classLit);
-function InternalJsStringMap$InternalJsStringMapLegacy(){
- InternalJsStringMap.call(this);
-}
-
-defineClass(429, 138, {}, InternalJsStringMap$InternalJsStringMapLegacy);
-_.createMap_0 = function createMap_2(){
- return {};
-}
-;
-_.entries = function entries_0(){
- var list = this.newEntryList_0();
- for (var key in this.backingMap) {
- if (key.charCodeAt(0) == 58) {
- var entry = this.newMapEntry(key.substring(1));
- list.add_1(entry);
- }
- }
- return list.iterator_0();
-}
-;
-_.get_2 = function(key){
- return this.backingMap[':' + key];
-}
-;
-_.newEntryList_0 = function(){
- return new InternalJsStringMap$InternalJsStringMapLegacy$1(this);
-}
-;
-_.put_0 = function(key, value_0){
- return $put_3(this, ':' + key, value_0);
-}
-;
-_.remove_4 = function(key){
- return $remove_10(this, ':' + key);
-}
-;
-var Ljava_util_InternalJsStringMap$InternalJsStringMapLegacy_2_classLit = createForClass('java.util', 'InternalJsStringMap/InternalJsStringMapLegacy', 429, Ljava_util_InternalJsStringMap_2_classLit);
-function InternalJsStringMap$InternalJsStringMapLegacy$1(this$1){
- this.this$11 = this$1;
- ArrayList.call(this);
-}
-
-defineClass(431, 13, $intern_50, InternalJsStringMap$InternalJsStringMapLegacy$1);
-_.remove_3 = function(index_0){
- var removed;
- return removed = dynamicCast($remove_6(this, index_0), 25) , $remove_10(this.this$11, ':' + dynamicCastToString(removed.getKey())) , removed;
-}
-;
-var Ljava_util_InternalJsStringMap$InternalJsStringMapLegacy$1_2_classLit = createForClass('java.util', 'InternalJsStringMap/InternalJsStringMapLegacy/1', 431, Ljava_util_ArrayList_2_classLit);
-function InternalJsStringMap$InternalJsStringMapWithKeysWorkaround(){
- InternalJsStringMap.call(this);
-}
-
-defineClass(430, 138, {}, InternalJsStringMap$InternalJsStringMapWithKeysWorkaround);
-_.keys_1 = function(){
- var keys_0;
- keys_0 = $keys_1(this);
- !(this.backingMap['__proto__'] === undefined) && (keys_0[keys_0.length] = '__proto__');
- return keys_0;
-}
-;
-var Ljava_util_InternalJsStringMap$InternalJsStringMapWithKeysWorkaround_2_classLit = createForClass('java.util', 'InternalJsStringMap/InternalJsStringMapWithKeysWorkaround', 430, Ljava_util_InternalJsStringMap_2_classLit);
-function $recordAccess(this$static, entry){
- if (this$static.accessOrder) {
- $remove_12(entry);
- $addToEnd(entry);
- }
-}
-
-function $remove_11(this$static, key){
- var entry;
- entry = dynamicCast(this$static.map_0.remove_2(key), 83);
- if (entry) {
- $remove_12(entry);
- return entry.value_0;
- }
- return null;
-}
-
-function LinkedHashMap(){
- HashMap.call(this);
- this.head_0 = new LinkedHashMap$ChainEntry(this);
- this.map_0 = new HashMap;
- this.head_0.prev = this.head_0;
- this.head_0.next = this.head_0;
-}
-
-defineClass(191, 26, {3:1, 78:1}, LinkedHashMap);
-_.clear_0 = function(){
- this.map_0.clear_0();
- this.head_0.prev = this.head_0;
- this.head_0.next = this.head_0;
-}
-;
-_.containsKey = function(key){
- return this.map_0.containsKey(key);
-}
-;
-_.entrySet_0 = function(){
- return new LinkedHashMap$EntrySet(this);
-}
-;
-_.get_1 = function(key){
- var entry;
- entry = dynamicCast(this.map_0.get_1(key), 83);
- if (entry) {
- $recordAccess(this, entry);
- return entry.value_0;
- }
- return null;
-}
-;
-_.put = function(key, value_0){
- var newEntry, old, oldValue;
- old = dynamicCast(this.map_0.get_1(key), 83);
- if (!old) {
- newEntry = new LinkedHashMap$ChainEntry_0(this, key, value_0);
- this.map_0.put(key, newEntry);
- $addToEnd(newEntry);
- return null;
- }
- else {
- oldValue = $setValue_3(old, value_0);
- $recordAccess(this, old);
- return oldValue;
- }
-}
-;
-_.remove_2 = function(key){
- return $remove_11(this, key);
-}
-;
-_.size_2 = function(){
- return this.map_0.size_2();
-}
-;
-_.accessOrder = false;
-var Ljava_util_LinkedHashMap_2_classLit = createForClass('java.util', 'LinkedHashMap', 191, Ljava_util_HashMap_2_classLit);
-function $addToEnd(this$static){
- var tail;
- tail = this$static.this$01.head_0.prev;
- this$static.prev = tail;
- this$static.next = this$static.this$01.head_0;
- tail.next = this$static.this$01.head_0.prev = this$static;
-}
-
-function $remove_12(this$static){
- this$static.next.prev = this$static.prev;
- this$static.prev.next = this$static.next;
- this$static.next = this$static.prev = null;
-}
-
-function LinkedHashMap$ChainEntry(this$0){
- LinkedHashMap$ChainEntry_0.call(this, this$0, null, null);
-}
-
-function LinkedHashMap$ChainEntry_0(this$0, key, value_0){
- this.this$01 = this$0;
- AbstractMap$SimpleEntry.call(this, key, value_0);
-}
-
-defineClass(83, 130, {83:1, 25:1}, LinkedHashMap$ChainEntry, LinkedHashMap$ChainEntry_0);
-var Ljava_util_LinkedHashMap$ChainEntry_2_classLit = createForClass('java.util', 'LinkedHashMap/ChainEntry', 83, Ljava_util_AbstractMap$SimpleEntry_2_classLit);
-function $contains_3(this$static, o){
- if (instanceOf(o, 25)) {
- return $containsEntry(this$static.this$01, dynamicCast(o, 25));
- }
- return false;
-}
-
-function LinkedHashMap$EntrySet(this$0){
- this.this$01 = this$0;
-}
-
-defineClass(489, 568, $intern_48, LinkedHashMap$EntrySet);
-_.contains_0 = function(o){
- return $contains_3(this, o);
-}
-;
-_.iterator_0 = function(){
- return new LinkedHashMap$EntrySet$EntryIterator(this);
-}
-;
-_.remove_1 = function(entry){
- var key;
- if ($contains_3(this, entry)) {
- key = dynamicCast(entry, 25).getKey();
- $remove_11(this.this$01, key);
- return true;
- }
- return false;
-}
-;
-_.size_2 = function(){
- return this.this$01.map_0.size_2();
-}
-;
-var Ljava_util_LinkedHashMap$EntrySet_2_classLit = createForClass('java.util', 'LinkedHashMap/EntrySet', 489, Ljava_util_AbstractSet_2_classLit);
-function LinkedHashMap$EntrySet$EntryIterator(this$1){
- this.this$11 = this$1;
- this.next = this$1.this$01.head_0.next;
- recordLastKnownStructure(this$1.this$01.map_0, this);
-}
-
-defineClass(490, 1, {}, LinkedHashMap$EntrySet$EntryIterator);
-_.hasNext = function(){
- return this.next != this.this$11.this$01.head_0;
-}
-;
-_.next_0 = function(){
- return checkStructuralChange(this.this$11.this$01.map_0, this) , checkCriticalElement(this.next != this.this$11.this$01.head_0) , this.last = this.next , this.next = this.next.next , this.last;
-}
-;
-_.remove_0 = function(){
- checkState(!!this.last);
- checkStructuralChange(this.this$11.this$01.map_0, this);
- $remove_12(this.last);
- this.this$11.this$01.map_0.remove_2(this.last.key);
- recordLastKnownStructure(this.this$11.this$01.map_0, this);
- this.last = null;
-}
-;
-var Ljava_util_LinkedHashMap$EntrySet$EntryIterator_2_classLit = createForClass('java.util', 'LinkedHashMap/EntrySet/EntryIterator', 490, Ljava_lang_Object_2_classLit);
-function LinkedHashSet(){
- HashSet_1.call(this, new LinkedHashMap);
-}
-
-function LinkedHashSet_0(c){
- HashSet_1.call(this, new LinkedHashMap);
- $addAll_0(this, c);
-}
-
-defineClass(81, 46, $intern_51, LinkedHashSet, LinkedHashSet_0);
-var Ljava_util_LinkedHashSet_2_classLit = createForClass('java.util', 'LinkedHashSet', 81, Ljava_util_HashSet_2_classLit);
-function $addLast(this$static, o){
- $addNode_1(this$static, o, this$static.tail.prev, this$static.tail);
-}
-
-function $addNode_1(this$static, o, prev, next){
- var node;
- node = new LinkedList$Node;
- node.value_0 = o;
- node.prev = prev;
- node.next = next;
- next.prev = prev.next = node;
- ++this$static.size_0;
-}
-
-function $getFirst(this$static){
- checkCriticalElement(this$static.size_0 != 0);
- return this$static.header.next.value_0;
-}
-
-function $getLast(this$static){
- checkCriticalElement(this$static.size_0 != 0);
- return this$static.tail.prev.value_0;
-}
-
-function $listIterator(this$static, index_0){
- var i_0, node;
- checkPositionIndex(index_0, this$static.size_0);
- if (index_0 >= this$static.size_0 >> 1) {
- node = this$static.tail;
- for (i_0 = this$static.size_0; i_0 > index_0; --i_0) {
- node = node.prev;
- }
- }
- else {
- node = this$static.header.next;
- for (i_0 = 0; i_0 < index_0; ++i_0) {
- node = node.next;
- }
- }
- return new LinkedList$ListIteratorImpl(this$static, index_0, node);
-}
-
-function $removeNode(this$static, node){
- var oldValue;
- oldValue = node.value_0;
- node.next.prev = node.prev;
- node.prev.next = node.next;
- node.next = node.prev = null;
- node.value_0 = null;
- --this$static.size_0;
- return oldValue;
-}
-
-function $reset_0(this$static){
- this$static.header.next = this$static.tail;
- this$static.tail.prev = this$static.header;
- this$static.header.prev = this$static.tail.next = null;
- this$static.size_0 = 0;
-}
-
-function LinkedList(){
- this.header = new LinkedList$Node;
- this.tail = new LinkedList$Node;
- $reset_0(this);
-}
-
-defineClass(139, 577, {3:1, 28:1, 30:1, 536:1}, LinkedList);
-_.add_1 = function(o){
- return $addNode_1(this, o, this.tail.prev, this.tail) , true;
-}
-;
-_.listIterator_0 = function(index_0){
- return $listIterator(this, index_0);
-}
-;
-_.size_2 = function(){
- return this.size_0;
-}
-;
-_.size_0 = 0;
-var Ljava_util_LinkedList_2_classLit = createForClass('java.util', 'LinkedList', 139, Ljava_util_AbstractSequentialList_2_classLit);
-function $add_8(this$static, o){
- $addNode_1(this$static.this$01, o, this$static.currentNode.prev, this$static.currentNode);
- ++this$static.currentIndex;
- this$static.lastNode = null;
-}
-
-function $remove_13(this$static){
- var nextNode;
- checkState(!!this$static.lastNode);
- nextNode = this$static.lastNode.next;
- $removeNode(this$static.this$01, this$static.lastNode);
- this$static.currentNode == this$static.lastNode?(this$static.currentNode = nextNode):--this$static.currentIndex;
- this$static.lastNode = null;
-}
-
-function LinkedList$ListIteratorImpl(this$0, index_0, startNode){
- this.this$01 = this$0;
- this.currentNode = startNode;
- this.currentIndex = index_0;
-}
-
-defineClass(450, 1, {}, LinkedList$ListIteratorImpl);
-_.hasNext = function(){
- return this.currentNode != this.this$01.tail;
-}
-;
-_.hasPrevious = function(){
- return this.currentNode.prev != this.this$01.header;
-}
-;
-_.next_0 = function(){
- return checkCriticalElement(this.currentNode != this.this$01.tail) , this.lastNode = this.currentNode , this.currentNode = this.currentNode.next , ++this.currentIndex , this.lastNode.value_0;
-}
-;
-_.previous = function(){
- return checkCriticalElement(this.currentNode.prev != this.this$01.header) , this.lastNode = this.currentNode = this.currentNode.prev , --this.currentIndex , this.lastNode.value_0;
-}
-;
-_.remove_0 = function(){
- $remove_13(this);
-}
-;
-_.currentIndex = 0;
-_.lastNode = null;
-var Ljava_util_LinkedList$ListIteratorImpl_2_classLit = createForClass('java.util', 'LinkedList/ListIteratorImpl', 450, Ljava_lang_Object_2_classLit);
-function LinkedList$Node(){
-}
-
-defineClass(140, 1, {}, LinkedList$Node);
-var Ljava_util_LinkedList$Node_2_classLit = createForClass('java.util', 'LinkedList/Node', 140, Ljava_lang_Object_2_classLit);
-var Ljava_util_Map$Entry_2_classLit = createForInterface('java.util', 'Map/Entry');
-function NoSuchElementException(){
- RuntimeException.call(this);
-}
-
-defineClass(68, 11, {3:1, 12:1, 11:1, 14:1, 68:1}, NoSuchElementException);
-var Ljava_util_NoSuchElementException_2_classLit = createForClass('java.util', 'NoSuchElementException', 68, Ljava_lang_RuntimeException_2_classLit);
-function equals_0(a, b){
- return maskUndefined(a) === maskUndefined(b) || a != null && equals_Ljava_lang_Object__Z__devirtual$(a, b);
-}
-
-function hashCode_2(o){
- return o != null?hashCode__I__devirtual$(o):0;
-}
-
-var Lcom_google_gwt_lang_CollapsedPropertyHolder_2_classLit = createForClass('com.google.gwt.lang', 'CollapsedPropertyHolder', 543, Ljava_lang_Object_2_classLit), Lcom_google_gwt_lang_JavaClassHierarchySetupUtil_2_classLit = createForClass('com.google.gwt.lang', 'JavaClassHierarchySetupUtil', 545, Ljava_lang_Object_2_classLit), Lcom_google_gwt_lang_LongLibBase$LongEmul_2_classLit = createForClass('com.google.gwt.lang', 'LongLibBase/LongEmul', null, Ljava_lang_Object_2_classLit), Lcom_google_gwt_lang_ModuleUtils_2_classLit = createForClass('com.google.gwt.lang', 'ModuleUtils', 548, Ljava_lang_Object_2_classLit), Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData'), Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GColumn'), Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GColumn$GHeader_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GColumn/GHeader'), Lcom_google_gwt_query_client_plugin_Observe$MutationObserverInit_2_classLit = createForInterface('com.google.gwt.query.client.plugin', 'Observe/MutationObserverInit'), Lcom_google_gwt_query_client_plugin_Observe$MutationRecords_2_classLit = createForInterface('com.google.gwt.query.client.plugin', 'Observe/MutationRecords'), Lcom_vaadin_client_widget_grid_EditorHandler_2_classLit = createForInterface('com.vaadin.client.widget.grid', 'EditorHandler'), D_classLit = createForPrimitive('double', 'D'), Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GAjaxConf'), Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf$GAjaxResponse_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GAjaxConf/GAjaxResponse'), Ljava_lang_StackTraceElement_2_classLit = createForClass('java.lang', 'StackTraceElement', null, Ljava_lang_Object_2_classLit), Lcom_google_gwt_query_client_plugins_ajax_Ajax$Settings_2_classLit = createForInterface('com.google.gwt.query.client.plugins.ajax', 'Ajax/Settings'), Lcom_google_gwt_query_client_builders_JsonBuilder_2_classLit = createForInterface('com.google.gwt.query.client.builders', 'JsonBuilder'), Lcom_google_gwt_query_client_plugin_Observe$MutationRecords$MutationRecord_2_classLit = createForInterface('com.google.gwt.query.client.plugin', 'Observe/MutationRecords/MutationRecord'), Lcom_vaadin_prototype_wc_gwt_client_widgets_grid_GData$GAjaxConf$GAjaxResponse$GAjaxColumn_2_classLit = createForInterface('com.vaadin.prototype.wc.gwt.client.widgets.grid', 'GData/GAjaxConf/GAjaxResponse/GAjaxColumn'), Ljava_util_Map$Entry_2_classLit = createForInterface('java.util', 'Map/Entry');
-_ = provide('$wnd.wc.WCFormat');
-_.formatCurrency = formatCurrency;
-_ = provide('$wnd.wc');
-_.WCVGrid = WCVGrid;
-_ = provide('$wnd.wc.WCVGrid');
-_.createGridColumn = createGridColumn;
-_.TAG = TAG;
-_ = provide('$wnd.wc');
-_.WCVProgress = WCVProgress;
-_ = provide('$wnd.wc.WCVProgress');
-_.TAG = TAG_0;
-_ = provide('$wnd.wc');
-_.WCVSlider = WCVSlider;
-_ = provide('$wnd.wc.WCVSlider');
-_.TAG = TAG_1;
-var $entry = entry_0;
-var gwtOnLoad = gwtOnLoad = gwtOnLoad_0;
-addInitFunctions(init_0);
-setGwtProperty('permProps', [[['locale', 'default'], ['user.agent', 'gecko1_8']], [['locale', 'default'], ['user.agent', 'gecko1_8']], [['locale', 'default'], ['user.agent', 'gecko1_8']], [['locale', 'default'], ['user.agent', 'gecko1_8']], [['locale', 'default'], ['user.agent', 'safari']]]);
-
-$sendStats('moduleStartup', 'moduleEvalEnd');
-gwtOnLoad(__gwtModuleFunction.__errFn, __gwtModuleFunction.__moduleName, __gwtModuleFunction.__moduleBase, __gwtModuleFunction.__softPermutationId,__gwtModuleFunction.__computePropValue);
-$sendStats('moduleStartup', 'end');
-$gwt && $gwt.permProps && __gwtModuleFunction.__moduleStartupDone($gwt.permProps);
+$wnd = window; $doc = document;function VaadinComponents(){var N='bootstrap',O='begin',P='gwt.codesvr.VaadinComponents=',Q='gwt.codesvr=',R='VaadinComponents',S='startup',T='DUMMY',U=0,V=1,W='iframe',X='javascript:""',Y='position:absolute; width:0; height:0; border:none; left: -1000px;',Z=' top: -1000px;',$='CSS1Compat',_='<!doctype html>',ab='',bb='<html><head><\/head><body><\/body><\/html>',cb='_',db='$1',eb='script',fb='javascript',gb='meta',hb='name',ib='VaadinComponents::',jb='::',kb='gwt:property',lb='content',mb='=',nb='gwt:onPropertyErrorFn',ob='Bad handler "',pb='" for "gwt:onPropertyErrorFn"',qb='gwt:onLoadErrorFn',rb='" for "gwt:onLoadErrorFn"',sb='#',tb='?',ub='/',vb='img',wb='clear.cache.gif',xb='baseUrl',yb='VaadinComponents.nocache.js',zb='base',Ab='//',Bb='modernie',Cb='MSIE',Db='Trident',Eb='yes',Fb='none',Gb='selectorCapability',Hb='function',Ib='native',Jb='js',Kb='user.agent',Lb='webkit',Mb='safari',Nb='msie',Ob=10,Pb=11,Qb='ie10',Rb=9,Sb='ie9',Tb=8,Ub='ie8',Vb='gecko',Wb='gecko1_8',Xb=2,Yb=3,Zb=4,$b='selectingPermutation',_b='VaadinComponents.devmode.js',ac='DF366C94317FC564C4A099F33FA8A245',bc=':1',cc=':2',dc=':3',ec=':4',fc=':',gc='.cache.js',hc='loadExternalRefs',ic='end',jc='http:',kc='file:',lc='_gwt_dummy_',mc='__gwtDevModeHook:VaadinComponents',nc='Ignoring non-whitelisted Dev Mode URL: ',oc=':moduleBase',pc='head';var n=window;var o=document;q(N,O);function p(){var a=n.location.search;return a.indexOf(P)!=-1||a.indexOf(Q)!=-1}
+function q(a,b){if(n.__gwtStatsEvent){n.__gwtStatsEvent({moduleName:R,sessionId:n.__gwtStatsSessionId,subSystem:S,evtGroup:a,millis:(new Date).getTime(),type:b})}}
+VaadinComponents.__sendStats=q;VaadinComponents.__moduleName=R;VaadinComponents.__errFn=null;VaadinComponents.__moduleBase=T;VaadinComponents.__softPermutationId=U;VaadinComponents.__computePropValue=null;VaadinComponents.__getPropMap=null;VaadinComponents.__installRunAsyncCode=function(){};VaadinComponents.__gwtStartLoadingFragment=function(){return null};VaadinComponents.__gwt_isKnownPropertyValue=function(){return false};VaadinComponents.__gwt_getMetaProperty=function(){return null};var r=null;var s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[R]={moduleName:R};VaadinComponents.__moduleStartupDone=function(e){var f=s[R].bindings;s[R].bindings=function(){var a=f?f():{};var b=e[VaadinComponents.__softPermutationId];for(var c=U;c<b.length;c++){var d=b[c];a[d[U]]=d[V]}return a}};var t;function u(){v();return t}
+function v(){if(t){return}var a=o.createElement(W);a.src=X;a.id=R;a.style.cssText=Y+Z;a.tabIndex=-1;o.body.appendChild(a);t=a.contentDocument;if(!t){t=a.contentWindow.document}t.open();var b=document.compatMode==$?_:ab;t.write(b+bb);t.close()}
+function w(a){this[cb+a.replace(/.*([\dA-F]{32}).cache.js/,db)]()}
+VaadinComponents.__startLoadingFragment=function(a){return C(a)};VaadinComponents.__installRunAsyncCode=function(a){var b=u();var c=b.body;var d=b.createElement(eb);d.language=fb;d.text=a;c.appendChild(d);c.removeChild(d)};function A(){var c={};var d;var e;var f=o.getElementsByTagName(gb);for(var g=U,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(hb),k;if(j){j=j.replace(ib,ab);if(j.indexOf(jb)>=U){continue}if(j==kb){k=i.getAttribute(lb);if(k){var l,m=k.indexOf(mb);if(m>=U){j=k.substring(U,m);l=k.substring(m+V)}else{j=k;l=ab}c[j]=l}}else if(j==nb){k=i.getAttribute(lb);if(k){try{d=eval(k)}catch(a){alert(ob+k+pb)}}}else if(j==qb){k=i.getAttribute(lb);if(k){try{e=eval(k)}catch(a){alert(ob+k+rb)}}}}}__gwt_getMetaProperty=function(a){var b=c[a];return b==null?null:b};r=d;VaadinComponents.__errFn=e}
+function B(){function e(a){var b=a.lastIndexOf(sb);if(b==-1){b=a.length}var c=a.indexOf(tb);if(c==-1){c=a.length}var d=a.lastIndexOf(ub,Math.min(c,b));return d>=U?a.substring(U,d+V):ab}
+function f(a){if(a.match(/^\w+:\/\//)){}else{var b=o.createElement(vb);b.src=a+wb;a=e(b.src)}return a}
+function g(){var a=__gwt_getMetaProperty(xb);if(a!=null){return a}return ab}
+function h(){var a=o.getElementsByTagName(eb);for(var b=U;b<a.length;++b){if(a[b].src.indexOf(yb)!=-1){return e(a[b].src)}}return ab}
+function i(){var a=o.getElementsByTagName(zb);if(a.length>U){return a[a.length-V].href}return ab}
+function j(){var a=o.location;return a.href==a.protocol+Ab+a.host+a.pathname+a.search+a.hash}
+var k=g();if(k==ab){k=h()}if(k==ab){k=i()}if(k==ab&&j()){k=e(o.location.href)}k=f(k);return k}
+function C(a){if(a.match(/^\//)){return a}if(a.match(/^[a-zA-Z]+:\/\//)){return a}return VaadinComponents.__moduleBase+a}
+function D(){var f=[];var g=U;function h(a,b){var c=f;for(var d=U,e=a.length-V;d<e;++d){c=c[a[d]]||(c[a[d]]=[])}c[a[e]]=b}
+var i=[];var j=[];function k(a){var b=j[a](),c=i[a];if(b in c){return b}var d=[];for(var e in c){d[c[e]]=e}if(r){r(a,d,b)}throw null}
+j[Bb]=function(){{var a=n.navigator.userAgent;if(a.indexOf(Cb)==-1&&a.indexOf(Db)!=-1){return Eb}return Fb}};i[Bb]={none:U,yes:V};j[Gb]=function(){return !/_force_no_native/.test(document.location.search)&&typeof document.querySelectorAll==Hb?Ib:Jb};i[Gb]={js:U,'native':V};j[Kb]=function(){var a=navigator.userAgent.toLowerCase();var b=o.documentMode;if(function(){return a.indexOf(Lb)!=-1}())return Mb;if(function(){return a.indexOf(Nb)!=-1&&(b>=Ob&&b<Pb)}())return Qb;if(function(){return a.indexOf(Nb)!=-1&&(b>=Rb&&b<Pb)}())return Sb;if(function(){return a.indexOf(Nb)!=-1&&(b>=Tb&&b<Pb)}())return Ub;if(function(){return a.indexOf(Vb)!=-1||b>=Pb}())return Wb;return ab};i[Kb]={gecko1_8:U,ie10:V,ie8:Xb,ie9:Yb,safari:Zb};__gwt_isKnownPropertyValue=function(a,b){return b in i[a]};VaadinComponents.__getPropMap=function(){var a={};for(var b in i){if(i.hasOwnProperty(b)){a[b]=k(b)}}return a};VaadinComponents.__computePropValue=k;n.__gwt_activeModules[R].bindings=VaadinComponents.__getPropMap;q(N,$b);if(p()){return C(_b)}var l;try{h([Fb,Jb,Wb],ac);h([Fb,Ib,Wb],ac+bc);h([Eb,Jb,Wb],ac+cc);h([Eb,Ib,Wb],ac+dc);h([Fb,Ib,Mb],ac+ec);l=f[k(Bb)][k(Gb)][k(Kb)];var m=l.indexOf(fc);if(m!=-1){g=parseInt(l.substring(m+V),Ob);l=l.substring(U,m)}}catch(a){}VaadinComponents.__softPermutationId=g;return C(l+gc)}
+function F(){if(!n.__gwt_stylesLoaded){n.__gwt_stylesLoaded={}}q(hc,O);q(hc,ic)}
+A();VaadinComponents.__moduleBase=B();s[R].moduleBase=VaadinComponents.__moduleBase;var G=D();if(n){var H=!!(n.location.protocol==jc||n.location.protocol==kc);n.__gwt_activeModules[R].canRedirect=H;function I(){var b=lc;try{n.sessionStorage.setItem(b,b);n.sessionStorage.removeItem(b);return true}catch(a){return false}}
+if(H&&I()){var J=mc;var K=n.sessionStorage[J];if(!/^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?\/.*$/.test(K)){if(K&&(window.console&&console.log)){console.log(nc+K)}K=ab}if(K&&!n[J]){n[J]=true;n[J+oc]=B();var L=o.createElement(eb);L.src=K;var M=o.getElementsByTagName(pc)[U];M.insertBefore(L,M.firstElementChild||M.children[U]);return false}}}F();q(N,ic);w(G);return true}
+VaadinComponents.succeeded=VaadinComponents();
+function _DF366C94317FC564C4A099F33FA8A245(){
+var $wnd = $wnd || window.parent;var __gwtModuleFunction = $wnd.VaadinComponents;var $sendStats = __gwtModuleFunction.__sendStats;$sendStats('moduleStartup', 'moduleEvalStart');var $gwt_version = "2.8.0-SNAPSHOT";var $strongName = 'DF366C94317FC564C4A099F33FA8A245';var $gwt = {};var $doc = $wnd.document;var $moduleName, $moduleBase;function __gwtStartLoadingFragment(frag) {var fragFile = 'deferredjs/' + $strongName + '/' + frag + '.cache.js';return __gwtModuleFunction.__startLoadingFragment(fragFile);}function __gwtInstallCode(code) {return __gwtModuleFunction.__installRunAsyncCode(code);}function __gwt_isKnownPropertyValue(propName, propValue) {return __gwtModuleFunction.__gwt_isKnownPropertyValue(propName, propValue);}function __gwt_getMetaProperty(name) {return __gwtModuleFunction.__gwt_getMetaProperty(name);}var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent && $wnd.__gwtStatsEvent(a);} : null;var $sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;var aa=3.141592653589793,h={3:1},ba={3:1,13:1},ca={3:1,12:1,13:1},da={3:1,12:1,10:1,13:1},ea={40:1,9:1,3:1,5:1,4:1},fa={14:1,9:1,3:1,5:1,4:1},ga={9:1,48:1,3:1,5:1,4:1},ha={9:1,49:1,3:1,5:1,4:1},ia={9:1,50:1,3:1,5:1,4:1},ja={27:1,3:1,5:1,4:1},ka={9:1,70:1,3:1,5:1,4:1},la={9:1,41:1,3:1,5:1,4:1},ma={71:1,3:1,12:1,10:1,13:1},na=4194303,oa=1048575,pa=524288,qa=4194304,ra=17592186044416,sa=-9223372036854775E3,ta={6:1},ua={44:1,45:1},va={83:1},wa={26:1,21:1,19:1,24:1,22:1,20:1,17:1},ya={26:1,21:1,19:1,24:1,
+38:1,22:1,36:1,20:1,17:1},Aa={26:1,21:1,19:1,72:1,24:1,38:1,22:1,36:1,20:1,17:1},Ba=65536,Ca=131072,Da=1048576,Ea=2097152,Fa=8388608,Ga=16777216,Ha=33554432,Ia=67108864,Ja={26:1,21:1,19:1,84:1,24:1,38:1,22:1,36:1,20:1,17:1},Ka={42:1},La={57:1,3:1,5:1,4:1},Ma={61:1},Na={65:1},Oa={55:1},Pa={3:1,42:1,85:1},Qa={3:1,65:1},_,Ra,Sa={},Ta=-1;function Ua(){}
+function Va(a){var b=this;if("$wnd"==a)return $wnd;if(""===a)return b;"$wnd."==a.substring(0,5)&&(b=$wnd,a=a.substring(5));a=a.split(".");a[0]in b||!b.execScript||b.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)b[d]?b=b[d]:b=b[d]={};return b}function Wa(a){function b(){}b.prototype=a||{};return new b}function Xa(a){var b=[!1];return function(){for(var d=[],e=0;e<arguments.length;e++){var f;f=arguments[e];f=b[e]?"number"==typeof f?Ya(f):f:f;d.push(f)}return a.apply(this,d)}}
+function m(){}function s(a,b,d){var e=Sa[a],f=e instanceof Array?e[0]:null;e&&!f?_=e:(_=Sa[a]=b?Wa(Sa[b]):{},_.cM=d,_.constructor=_,!b&&(_.tM=Ua));for(e=3;e<arguments.length;++e)arguments[e].prototype=_;f&&(_.cZ=f)}function Za(a){return $a(ab(a))+"@"+(bb(a)>>>0).toString(16)}function cb(){}function db(a,b){return eb(a)?a===b:fb(a)?a.eQ(b):(gb(a),a===b)}function ab(a){return eb(a)?hb:fb(a)?a.cZ:gb(a)?a.cZ:ib}function bb(a){return eb(a)?jb(a):fb(a)?a.hC():(gb(a),kb(a))}s(1,null,{},cb);_.eQ=lb;
+_.gC=function(){return this.cZ};_.hC=mb;_.tS=function(){return Za(this)};_.toString=function(){return this.tS()};nb={3:1,555:1,5:1,2:1};!Array.isArray&&(Array.isArray=function(a){return"[object Array]"===Object.prototype.toString.call(a)});function ob(){return function(){}}function fb(a){return!Array.isArray(a)&&a.tM===Ua}function t(a,b){return null!=a&&(eb(a)&&!!nb[b]||a.cM&&!!a.cM[b])}function pb(a){return null!=a&&!eb(a)&&a.tM!==Ua}function gb(a){return Array.isArray(a)&&a.tM===Ua}
+function eb(a){return"string"===typeof a}function qb(a){return null==a?null:a}function v(a){return Math.max(Math.min(a,2147483647),-2147483648)|0}var nb;function rb(a){if(null==a.k)if(a.Le()){var b=a.c;b.Me()?a.k="["+b.j:b.Le()?a.k="["+b.Je():a.k="[L"+b.Je()+";";a.b=b.Ie()+"[]";a.i=b.Ke()+"[]"}else{var b=a.f,d=a.d,d=d.split("/");a.k=sb(".",[b,sb("$",d)]);a.b=sb(".",[b,sb(".",d)]);a.i=d[d.length-1]}}function $a(a){rb(a);return a.k}function tb(a){rb(a);return a.i}
+function ub(){this.g=vb++;this.a=this.j=this.b=this.d=this.f=this.i=this.k=null}function wb(a){var b;b=new ub;b.k="Class$"+(a?"S"+a:""+b.g);b.b=b.k;b.i=b.k;return b}function w(a){var b;b=wb(a);xb(a,b);return b}function x(a,b){var d;d=wb(a);xb(a,d);d.e=b?8:0;return d}function yb(){var a;a=wb(null);a.e=2;return a}function y(a,b){var d=a.a=a.a||[];return d[b]||(d[b]=a.He(b))}function sb(a,b){for(var d=0;!b[d]||""==b[d];)d++;for(var e=b[d++];d<b.length;d++)b[d]&&""!=b[d]&&(e+=a+b[d]);return e}
+function xb(a,b){if(a){b.j=a;var d=b.Me()?null:Sa[b.j];d?d.cZ=b:Sa[a]=[b]}}s(124,1,{},ub);_.He=function(a){var b;b=new ub;b.e=4;1<a?b.c=y(this,a-1):b.c=this;return b};_.Ie=function(){rb(this);return this.b};_.Je=function(){return $a(this)};_.Ke=function(){return tb(this)};_.Le=function(){return 0!=(this.e&4)};_.Me=function(){return 0!=(this.e&1)};_.tS=function(){return(0!=(this.e&2)?"interface ":0!=(this.e&1)?"":"class ")+(rb(this),this.k)};_.e=0;_.g=0;var vb=1,z=w(1),ib=w(0);w(124);
+function zb(a){a.p&&(a.v=a.q,a.o=null,a.p=!1,a.q=!1,a.r&&(a.r.U(),a.r=null),a.v&&a.P())}function Ab(a){var b=Bb();zb(a);a.p=!0;a.q=!1;a.n=200;a.u=b;a.o=null;++a.s;Cb(a.k,Bb())}function Db(a,b){var d,e;d=a.s;e=b>=a.u+a.n;return a.q&&!e?(e=(b-a.u)/a.n,a.R((1+Math.cos(aa+e*aa))/2),a.p&&a.s==d):!a.q&&b>=a.u&&(a.q=!0,a.Q(),!a.p||a.s!=d)?!1:e?(a.p=!1,a.q=!1,a.P(),!1):!0}function Eb(){var a=(!Fb&&(Fb=Gb()?new Hb:new Ib),Fb);this.k=new Jb(this);this.t=a}s(101,1,{});
+_.P=function(){this.R((1+Math.cos(6.283185307179586))/2)};_.Q=function(){this.R((1+Math.cos(aa))/2)};_.n=-1;_.p=!1;_.q=!1;_.s=-1;_.u=-1;_.v=!1;w(101);function Cb(a,b){Db(a.a,b)?a.a.r=a.a.t.T(a.a.k,a.a.o):a.a.r=null}function Jb(a){this.a=a}s(275,1,{},Jb);_.S=function(a){Cb(this,a)};w(275);s(535,1,{});var Fb;w(535);s(98,1,{98:1});w(98);function Gb(){return!!$wnd.requestAnimationFrame&&!!$wnd.cancelAnimationFrame}function Hb(){}
+function Kb(a,b){var d=A(function(){var b=Bb();a.S(b)});return{id:$wnd.requestAnimationFrame(d,b)}}s(53,535,{},Hb);_.T=function(a,b){var d;d=Kb(a,b);return new Lb(d)};w(53);function Lb(a){this.a=a}s(486,98,{98:1},Lb);_.U=function(){$wnd.cancelAnimationFrame(this.a.id)};w(486);function Ib(){this.a=new C;this.b=new Mb(this)}s(54,535,{},Ib);_.T=function(a){a=new Nb(this,a);Ob(this.a,a);1==this.a.b.length&&Pb(this.b,16);return a};w(54);
+function Qb(a){a.f&&(++a.d,a.e?$wnd.clearInterval(a.f.a):$wnd.clearTimeout(a.f.a),a.f=null)}function Pb(a,b){if(0>b)throw new D("must be non-negative");a.f&&Qb(a);a.e=!1;var d;d=Rb(a,a.d);d=$wnd.setTimeout(d,b);a.f=E(d)}function Rb(a,b){return A(function(){a.V(b)})}s(35,1,{});_.V=function(a){a==this.d&&(this.e||(this.f=null),this.W())};_.d=0;_.e=!1;_.f=null;w(35);function Mb(a){this.a=a}s(487,35,{},Mb);
+_.W=function(){var a=this.a,b,d,e,f,g;b=F(Sb,h,122,a.a.b.length,0);b=Tb(a.a,b);d=new Ub;f=0;for(g=b.length;f<g;++f)e=b[f],Vb(a.a,e),e.a.S(d.a);0<a.a.b.length&&Pb(a.b,Wb(5,16-(Bb()-d.a)))};w(487);function Nb(a,b){this.b=a;this.a=b}s(122,98,{98:1,122:1},Nb);_.U=function(){var a=this.b;Vb(a.a,this);0==a.a.b.length&&Qb(a.b)};var Sb=w(122);function Xb(a){a.g=null;Yb()}
+function Zb(a){for(var b,d;a;a=a.e){if(null==a.g){d=a;Yb();b=F($b,h,666,0,0);a:for(var e=void 0,f=void 0,f=ac(b.length,5),e=0;e<f;e++)if(null.of()){b=(b.length>=e+1&&b.splice(0,e+1),b);break a}d.g=b}b=a.g;d=0;for(b=b.length;d<b;++d);}}s(13,1,ba);_.Z=bc;_.tS=function(){var a,b;return a=$a(this.cZ),b=this.Z(),null!=b?a+": "+b:a};w(13);function cc(a){this.f=a;Xb(this)}s(12,13,ca,cc);w(12);function dc(a){cc.call(this,a)}s(10,12,da,dc);w(10);function ec(a){cc.call(this,a)}s(554,10,da,ec);w(554);
+function Ub(){this.a=Bb()}s(161,1,{},Ub);_.a=0;w(161);function fc(){fc=m;gc=new cb}function hc(a){fc();this.f=this.e=null;this.a="";this.b=a;this.a=""}s(59,10,{59:1,3:1,12:1,10:1,13:1},hc);_.Z=function(){var a;null==this.c&&(a=qb(this.b)===qb(gc)?null:this.b,this.d=null==a?"null":pb(a)?null==a?null:a.name:eb(a)?"String":$a(ab(a)),this.a=this.a+": "+(pb(a)?null==a?null:a.message:a+""),this.c="("+this.d+") "+this.a);return this.c};_.$=function(){return qb(this.b)===qb(gc)?null:this.b};var gc;w(59);
+function Bb(){return Date.now?Date.now():(new Date).getTime()}s(512,1,{});w(512);function ic(){ic=m;jc=$wnd}function kc(a,b){var d=!1;function e(){a.onerror=a.onreadystatechange=a.onload=null;if(d){var b=a;ic();b.parentNode.removeChild(b)}}ic();a.onload=A(function(){e();b&&b.Y(null)});a.onerror=A(function(){e();if(b){var a=new ec("onerror() called.");b.X(a)}});a.onreadystatechange=A(function(){/loaded|complete/.test(a.readyState)&&a.onload()})}function lc(){ic();return window}
+function mc(a){ic();return a.createElement("script")}var jc;function nc(a){var b=(G(),oc);a.c=b;return a}function pc(a){this.b=a}s(324,1,{},pc);_.a=!0;w(324);function qc(a){this.b=a}s(325,1,{},qc);w(325);function kb(a){return a.$H||(a.$H=++rc)}function sc(a){$wnd.setTimeout(function(){throw a;},0)}function tc(){0!=uc&&(uc=0);vc=-1}var uc=0,rc=0,wc=0,vc=-1;function xc(){xc=m;yc=new zc}function Ac(a){a.j||(a.j=!0,!a.f&&(a.f=new Bc(a)),Cc(a.f,1),!a.i&&(a.i=new Dc(a)),Cc(a.i,50))}
+function Ec(a,b){a.d=Fc(a.d,[b,!1])}function Gc(a){return a._()}function Fc(a,b){!a&&(a=[]);a[a.length]=b;return a}function Hc(a,b){var d,e,f;e=0;for(f=a.length;e<f;e++){d=a[e];try{d[1]?d[0]._()&&(b=Fc(b,d)):d[0].ab()}catch(g){if(g=H(g),t(g,13))d=g,sc(t(d,59)?d.$():d);else throw I(g);}}return b}function Cc(a,b){function d(){A(Gc)(a)&&$wnd.setTimeout(d,b)}xc();$wnd.setTimeout(d,b)}s(411,512,{});_.e=!1;_.j=!1;var yc;w(411);function Bc(a){this.a=a}s(412,1,{},Bc);
+_._=function(){this.a.e=!0;var a=this.a,b;a.b&&(b=a.b,a.b=null,!a.g&&(a.g=[]),Hc(b,a.g));if(a.g){b=a.g;var d,e,f,g,l,n;l=b.length;if(0==l)b=null;else{d=!1;for(e=new Ub;16>Bb()-e.a;){f=!1;for(g=0;g<l;g++)if(n=b[g])f=!0,n[0]._()||(b[g]=null,d=!0);if(!f)break}if(d){d=[];for(g=0;g<l;g++)b[g]&&(d[d.length]=b[g]);b=0==d.length?null:d}}a.g=b}this.a.e=!1;a=this.a;return this.a.j=!!a.b||!!a.g};w(412);function Dc(a){this.a=a}s(413,1,{},Dc);_._=function(){this.a.e&&Cc(this.a.f,1);return this.a.j};w(413);
+function Yb(){Yb=m}function Ic(a,b){if(!a)throw new D(""+b);}function J(a){if(!a)throw new Jc;}function Kc(a,b){if(0>a||a>=b)throw new Lc("Index: "+a+", Size: "+b);}function Mc(a){if(null==a)throw new Nc;}function Oc(a,b){if(0>a||a>b)throw new Lc("Index: "+a+", Size: "+b);}function Pc(a){if(!a)throw new Qc;}
+function Rc(a){var b,d,e,f,g;b="Enum constant undefined: %s";d=new Sc;for(e=g=0;e<a.length;){f=b.indexOf("%s",g);if(-1==f)break;Tc(d,b.substr(g,f-g));Tc(d,a[e++]);g=f+2}Tc(d,b.substr(g,b.length-g));if(e<a.length){d.a+=" [";for(Tc(d,a[e++]);e<a.length;)d.a+=", ",Tc(d,a[e++]);d.a+="]"}return d.a}function Uc(a){return Vc((K(),a))}function Wc(a,b){return(K(),L).ob(a,b)}function Xc(a){var b;(b=Vc((K(),a)))&&b.removeChild(a)}
+function Yc(a,b){var d;b=Zc(b);d=a.className||"";-1==$c(d,b)&&(0<d.length?ad(a,d+" "+b):ad(a,b))}function bd(a){return(K(),L).db(a)}function cd(a){return(K(),L).eb(a)}function dd(a,b){return(K(),a).getAttribute(b)||""}function ed(a){return fd((K(),a))}function gd(a){return(K(),a).innerHTML}function hd(a,b){return parseInt(a[b])|0}function id(a,b){return null==a[b]?null:String(a[b])}function jd(a){return(K(),L).ib(a)}
+function kd(a,b){var d,e,f,g;b=Zc(b);g=a.className||"";e=$c(g,b);-1!=e&&(d=ld(g.substr(0,e)),e=ld(md(g,e+b.length)),0==d.length?f=e:0==e.length?f=d:f=d+" "+e,ad(a,f))}function ad(a,b){a.className=b||""}function $c(a,b){var d,e,f;for(d=a.indexOf(b);-1!=d;){if(0==d||32==a.charCodeAt(d-1))if(e=d+b.length,f=a.length,e==f||e<f&&32==a.charCodeAt(e))break;d=a.indexOf(b,d+1)}return d}function nd(a){var b;try{b=!!a&&!!a.nodeType}catch(d){b=!1}return b?!!a&&1==a.nodeType:!1}function Zc(a){return a=ld(a)}
+function K(){K=m;L=4==Ta?new od:new pd}function fd(a){for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}function qd(a){for(a=a.nextSibling;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Vc(a){(a=a.parentNode)&&1==a.nodeType||(a=null);return a}function rd(a){for(a=a.previousSibling;a&&1!=a.nodeType;)a=a.previousSibling;return a}function sd(a){K();return a|0}s(543,1,{});_.bb=function(a){return a.currentTarget};
+_.db=function(a){for(var b=0,d=a;d.offsetParent;)b-=d.scrollLeft,d=d.parentNode;for(;a;)b+=a.offsetLeft,a=a.offsetParent;return sd(b)};_.eb=function(a){for(var b=0,d=a;d.offsetParent;)b-=d.scrollTop,d=d.parentNode;for(;a;)b+=a.offsetTop,a=a.offsetParent;return sd(b)};_.fb=function(){return 0};_.gb=function(){return 0};_.hb=function(a){return jd("CSS1Compat"===a.compatMode?a.documentElement:a.body)};_.ib=function(a){return sd(a.scrollLeft||0)};_.jb=function(a){return a.tabIndex};
+_.kb=function(a,b){a.scrollLeft=b};_.lb=function(a){return a.outerHTML};var L;w(543);s(544,543,{});_.mb=function(a){return a.relatedTarget};_.nb=function(a){return a.target};_.ob=function(a,b){return a.contains(b)};w(544);function pd(){K()}function td(){var a;a=(a=/rv:([0-9]+)\.([0-9]+)(\.([0-9]+))?.*?/.exec(navigator.userAgent.toLowerCase()))&&3<=a.length?1E6*parseInt(a[1])+1E3*parseInt(a[2])+parseInt(5<=a.length&&!isNaN(a[4])?a[4]:0):-1;return-1!=a&&1009E3<=a}s(394,544,{},pd);
+_.cb=function(a){return a.detail||0};_.mb=function(a){return(a=a.relatedTarget)?a:null};_.db=function(a){var b=ud(a.ownerDocument);Element.prototype.getBoundingClientRect?a=a.getBoundingClientRect().left+b.scrollLeft|0:(b=a.ownerDocument,a=b.getBoxObjectFor(a).screenX-b.getBoxObjectFor(b.documentElement).screenX);return a};
+_.eb=function(a){var b=ud(a.ownerDocument);Element.prototype.getBoundingClientRect?a=a.getBoundingClientRect().top+b.scrollTop|0:(b=a.ownerDocument,a=b.getBoxObjectFor(a).screenY-b.getBoxObjectFor(b.documentElement).screenY);return a};_.fb=function(a){a=$wnd.getComputedStyle(a.documentElement,null);return null==a?0:parseInt(a.marginLeft,10)+parseInt(a.borderLeftWidth,10)};
+_.gb=function(a){a=$wnd.getComputedStyle(a.documentElement,null);return null==a?0:parseInt(a.marginTop,10)+parseInt(a.borderTopWidth,10)};_.ib=function(a){return td()||"rtl"!=a.ownerDocument.defaultView.getComputedStyle(a,null).direction?sd(a.scrollLeft||0):sd(a.scrollLeft||0)-(((a.scrollWidth||0)|0)-(a.clientWidth|0))};_.ob=function(a,b){return a===b||!!(a.compareDocumentPosition(b)&16)};
+_.kb=function(a,b){!td()&&"rtl"==a.ownerDocument.defaultView.getComputedStyle(a,null).direction&&(b+=((a.scrollWidth||0)|0)-(a.clientWidth|0));a.scrollLeft=b};_.lb=function(a){var b=a.ownerDocument;a=a.cloneNode(!0);b=b.createElement("DIV");b.appendChild(a);outer=b.innerHTML;a.innerHTML="";return outer};w(394);s(545,544,{});_.bb=function(a){return a.currentTarget||$wnd};_.cb=function(a){return Math.round(-a.wheelDelta/40)||0};
+_.db=function(a){var b;if(b=a.getBoundingClientRect&&a.getBoundingClientRect())a=b.left+jd(a.ownerDocument.body);else if(null==a.offsetLeft)a=0;else{b=0;var d=a.ownerDocument,e=a.parentNode;if(e)for(;e.offsetParent;)b-=e.scrollLeft,"rtl"==d.defaultView.getComputedStyle(e,"").getPropertyValue("direction")&&(b+=e.scrollWidth-e.clientWidth),e=e.parentNode;for(;a;){b+=a.offsetLeft;if("fixed"==d.defaultView.getComputedStyle(a,"").position){b+=d.body.scrollLeft;break}(e=a.offsetParent)&&$wnd.devicePixelRatio&&
+(b+=parseInt(d.defaultView.getComputedStyle(e,"").getPropertyValue("border-left-width")));if(e&&"BODY"==e.tagName&&"absolute"==a.style.position)break;a=e}a=b}return sd(a)};
+_.eb=function(a){var b;if(b=a.getBoundingClientRect&&a.getBoundingClientRect())a=b.top+((a.ownerDocument.body.scrollTop||0)|0);else if(null==a.offsetTop)a=0;else{b=0;var d=a.ownerDocument,e=a.parentNode;if(e)for(;e.offsetParent;)b-=e.scrollTop,e=e.parentNode;for(;a;){b+=a.offsetTop;if("fixed"==d.defaultView.getComputedStyle(a,"").position){b+=d.body.scrollTop;break}(e=a.offsetParent)&&$wnd.devicePixelRatio&&(b+=parseInt(d.defaultView.getComputedStyle(e,"").getPropertyValue("border-top-width")));if(e&&
+"BODY"==e.tagName&&"absolute"==a.style.position)break;a=e}a=b}return sd(a)};_.hb=function(a){return a.documentElement.scrollLeft||a.body.scrollLeft};_.ib=function(a){return vd("body",(K(),a).tagName)||"rtl"!=a.ownerDocument.defaultView.getComputedStyle(a,"").direction?sd(a.scrollLeft||0):sd(a.scrollLeft||0)-(((a.scrollWidth||0)|0)-(a.clientWidth|0))};_.jb=function(a){return"undefined"!=typeof a.tabIndex?a.tabIndex:-1};
+_.kb=function(a,b){!vd("body",(K(),a).tagName)&&"rtl"==a.ownerDocument.defaultView.getComputedStyle(a,"").direction&&(b+=((a.scrollWidth||0)|0)-(a.clientWidth|0));a.scrollLeft=b};w(545);function od(){K()}s(395,545,{},od);_.nb=function(a){(a=a.target)&&3==a.nodeType&&(a=a.parentNode);return a};w(395);function wd(){var a=$doc,b;return b=(K(),a).createElement("INPUT"),b.type="checkbox",b.value="on",b}function M(){var a=$doc;return(K(),a).createElement("div")}
+function xd(){var a=$doc;return(K(),a).createElement("tr")}function yd(){var a=$doc;return(K(),L).fb(a)}function zd(){var a=$doc;return(K(),L).gb(a)}function Ad(){var a=$doc;return("CSS1Compat"===a.compatMode?a.documentElement:a.body).clientHeight|0}function Bd(){var a=$doc;return("CSS1Compat"===a.compatMode?a.documentElement:a.body).clientWidth|0}function ud(a){return"CSS1Compat"===a.compatMode?a.documentElement:a.body}function Cd(a){return(K(),L).nb(a)}function Dd(a){return(K(),a).keyCode|0}
+function Ed(a){return(K(),a).touches}function Fd(a,b){return(K(),a)[b]}function N(a,b){this.a=a;this.b=b}function Gd(a){var b,d,e,f;b={};e=0;for(f=a.length;e<f;++e)d=a[e],b[":"+(null!=d.a?d.a:""+d.b)]=d;return b}function Hd(a,b){var d;Mc(b);d=a[":"+b];var e=O(y(z,1),h,1,3,[b]);if(!d)throw new D(Rc(e));return d}s(4,1,{3:1,5:1,4:1});_.eQ=lb;_.hC=mb;_.tS=function(){return null!=this.a?this.a:""+this.b};_.b=0;w(4);function Id(){Id=m;Jd=new Kd;Ld=new Md;Nd=new Od;Pd=new Qd;Rd=new Sd}s(40,4,ea);
+var Nd,Ld,Pd,Jd,Rd,Td=x(40,function(){Id();return O(y(Td,1),h,40,0,[Jd,Ld,Nd,Pd,Rd])});function Kd(){N.call(this,"NONE",0)}s(335,40,ea,Kd);x(335,null);function Md(){N.call(this,"DOTTED",1)}s(336,40,ea,Md);x(336,null);function Od(){N.call(this,"DASHED",2)}s(337,40,ea,Od);x(337,null);function Qd(){N.call(this,"HIDDEN",3)}s(338,40,ea,Qd);x(338,null);function Sd(){N.call(this,"SOLID",4)}s(339,40,ea,Sd);x(339,null);
+function Ud(){Ud=m;Vd=new Wd;Xd=new Yd;Zd=new $d;ae=new be;ce=new de;ee=new fe;ge=new he;ie=new je;ke=new le;me=new ne;oe=new pe;qe=new re;se=new te;ue=new ve;we=new xe;ye=new ze;Ae=new Be}s(14,4,fa);var Xd,Ae,Zd,ae,ce,ee,Vd,ge,ie,ke,ue,we,me,qe,oe,ye,se,Ce=x(14,function(){Ud();return O(y(Ce,1),h,14,0,[Vd,Xd,Zd,ae,ce,ee,ge,ie,ke,me,oe,qe,se,ue,we,ye,Ae])});function Wd(){N.call(this,"NONE",0)}s(340,14,fa,Wd);x(340,null);function ne(){N.call(this,"TABLE_COLUMN_GROUP",9)}s(349,14,fa,ne);x(349,null);
+function pe(){N.call(this,"TABLE_HEADER_GROUP",10)}s(350,14,fa,pe);x(350,null);function re(){N.call(this,"TABLE_FOOTER_GROUP",11)}s(351,14,fa,re);x(351,null);function te(){N.call(this,"TABLE_ROW_GROUP",12)}s(352,14,fa,te);x(352,null);function ve(){N.call(this,"TABLE_CELL",13)}s(353,14,fa,ve);x(353,null);function xe(){N.call(this,"TABLE_COLUMN",14)}s(354,14,fa,xe);x(354,null);function ze(){N.call(this,"TABLE_ROW",15)}s(355,14,fa,ze);x(355,null);function Be(){N.call(this,"INITIAL",16)}s(356,14,fa,Be);
+x(356,null);function Yd(){N.call(this,"BLOCK",1)}s(341,14,fa,Yd);x(341,null);function $d(){N.call(this,"INLINE",2)}s(342,14,fa,$d);x(342,null);function be(){N.call(this,"INLINE_BLOCK",3)}s(343,14,fa,be);x(343,null);function de(){N.call(this,"INLINE_TABLE",4)}s(344,14,fa,de);x(344,null);function fe(){N.call(this,"LIST_ITEM",5)}s(345,14,fa,fe);x(345,null);function he(){N.call(this,"RUN_IN",6)}s(346,14,fa,he);x(346,null);function je(){N.call(this,"TABLE",7)}s(347,14,fa,je);x(347,null);
+function le(){N.call(this,"TABLE_CAPTION",8)}s(348,14,fa,le);x(348,null);function De(){De=m;Ee=new Fe;Ge=new He;Ie=new Je;Ke=new Le}s(48,4,ga);var Ke,Ge,Ie,Ee,Me=x(48,function(){De();return O(y(Me,1),h,48,0,[Ee,Ge,Ie,Ke])});function Fe(){N.call(this,"VISIBLE",0)}s(357,48,ga,Fe);x(357,null);function He(){N.call(this,"HIDDEN",1)}s(358,48,ga,He);x(358,null);function Je(){N.call(this,"SCROLL",2)}s(359,48,ga,Je);x(359,null);function Le(){N.call(this,"AUTO",3)}s(360,48,ga,Le);x(360,null);
+function Ne(){Ne=m;Oe=new Pe;Qe=new Re;Se=new Te;Ue=new Ve}s(49,4,ha);var Se,Ue,Qe,Oe,We=x(49,function(){Ne();return O(y(We,1),h,49,0,[Oe,Qe,Se,Ue])});function Pe(){N.call(this,"STATIC",0)}s(361,49,ha,Pe);x(361,null);function Re(){N.call(this,"RELATIVE",1)}s(362,49,ha,Re);x(362,null);function Te(){N.call(this,"ABSOLUTE",2)}s(363,49,ha,Te);x(363,null);function Ve(){N.call(this,"FIXED",3)}s(364,49,ha,Ve);x(364,null);function Xe(){Xe=m;Ye=new Ze;$e=new af;bf=new cf;df=new ef}s(50,4,ia);
+var Ye,$e,bf,df,ff=x(50,function(){Xe();return O(y(ff,1),h,50,0,[Ye,$e,bf,df])});function Ze(){N.call(this,"CENTER",0)}s(365,50,ia,Ze);x(365,null);function af(){N.call(this,"JUSTIFY",1)}s(366,50,ia,af);x(366,null);function cf(){N.call(this,"LEFT",2)}s(367,50,ia,cf);x(367,null);function ef(){N.call(this,"RIGHT",3)}s(368,50,ia,ef);x(368,null);function Q(){Q=m;gf=new hf;jf=new kf;lf=new mf;nf=new of;pf=new qf;rf=new sf;tf=new uf;vf=new wf;xf=new yf}s(27,4,ja);
+var vf,lf,nf,tf,xf,rf,jf,pf,gf,zf=x(27,function(){Q();return O(y(zf,1),h,27,0,[gf,jf,lf,nf,pf,rf,tf,vf,xf])});function hf(){N.call(this,"PX",0)}s(326,27,ja,hf);x(326,null);function kf(){N.call(this,"PCT",1)}s(327,27,ja,kf);x(327,null);function mf(){N.call(this,"EM",2)}s(328,27,ja,mf);x(328,null);function of(){N.call(this,"EX",3)}s(329,27,ja,of);x(329,null);function qf(){N.call(this,"PT",4)}s(330,27,ja,qf);x(330,null);function sf(){N.call(this,"PC",5)}s(331,27,ja,sf);x(331,null);
+function uf(){N.call(this,"IN",6)}s(332,27,ja,uf);x(332,null);function wf(){N.call(this,"CM",7)}s(333,27,ja,wf);x(333,null);function yf(){N.call(this,"MM",8)}s(334,27,ja,yf);x(334,null);function Af(){Af=m;Bf=new Cf;Df=new Ef}s(70,4,ka);var Df,Bf,Ff=x(70,function(){Af();return O(y(Ff,1),h,70,0,[Bf,Df])});function Cf(){N.call(this,"VISIBLE",0)}s(369,70,ka,Cf);x(369,null);function Ef(){N.call(this,"HIDDEN",1)}s(370,70,ka,Ef);x(370,null);
+function Gf(){Gf=m;Hf=new If;Jf=new Kf;Lf=new Mf;Nf=new Of;Pf=new Qf}s(41,4,la);var Hf,Jf,Lf,Nf,Pf,Rf=x(41,function(){Gf();return O(y(Rf,1),h,41,0,[Hf,Jf,Lf,Nf,Pf])});function If(){N.call(this,"NORMAL",0)}s(371,41,la,If);x(371,null);function Kf(){N.call(this,"NOWRAP",1)}s(372,41,la,Kf);x(372,null);function Mf(){N.call(this,"PRE",2)}s(373,41,la,Mf);x(373,null);function Of(){N.call(this,"PRE_LINE",3)}s(374,41,la,Of);x(374,null);function Qf(){N.call(this,"PRE_WRAP",4)}s(375,41,la,Qf);x(375,null);
+function Sf(a){return sd((K(),a).clientX||0)}s(526,1,{});_.tS=function(){return"An event type"};w(526);s(527,526,{});_.rb=Tf;_.sb=function(){this.f=!1;this.g=null};_.f=!1;w(527);s(531,527,{});_.qb=function(){return this.tb()};var Uf;w(531);s(533,531,{});w(533);s(534,533,{});w(534);function Vf(){Vf=m;Wf=new Xf("click",new Yf)}function Yf(){}s(488,534,{},Yf);_.pb=function(a){var b=a.a;a=a.a;a=a.K?(Zf(),a.a.checked?$f:ag):(Zf(),a.a.defaultChecked?$f:ag);bg(b,a)};_.tb=function(){return Wf};var Wf;w(488);
+s(187,1,{});_.hC=function(){return this.c};_.tS=function(){return"Event type"};var cg=_.c=0;w(187);function dg(){this.c=++cg}s(29,187,{},dg);w(29);function Xf(a,b){var d;this.c=++cg;this.a=b;!Uf&&(Uf=new eg);d=Uf.a[a];d||(d=new C,Uf.a[a]=d);d.Cd(this);this.b=a}s(97,29,{},Xf);w(97);s(532,531,{});w(532);function eg(){this.a={}}s(430,1,{},eg);w(430);function fg(){}function gg(a){var b;hg&&(b=new fg,a.M&&ig(a.M,b))}s(186,527,{},fg);_.pb=function(a){a.ub(this)};_.qb=function(){return hg};var hg;w(186);
+function jg(){}function kg(a){var b;lg&&(b=new jg,a.xb(b))}s(462,527,{},jg);_.pb=function(a){a.vb(this)};_.qb=function(){return lg};var lg;w(462);function mg(){}s(483,527,{},mg);_.pb=function(){ng()};_.qb=function(){return og};var og;w(483);function pg(a){this.a=a}function bg(a,b){var d;qg&&(d=new pg(b),a.xb(d))}s(225,527,{},pg);_.pb=function(a){a.wb(this)};_.qb=function(){return qg};var qg;w(225);
+function rg(a,b,d){a=a.a;if(!b)throw new sg("Cannot add a handler with a null type");if(!d)throw new sg("Cannot add a null handler");if(0<a.b){var e=new tg(a,b,d);!a.a&&(a.a=new C);Ob(a.a,e)}else ug(a,b,null,d);return new vg(new wg(a,b,d))}
+function ig(a,b){var d;!b.f||b.sb();d=b.rb();b.g=a.b;try{var e=a.a,f,g,l,n,p;if(!b)throw new sg("Cannot fire null event");try{++e.b;var q=b.qb();n=xg(e,q,null);f=null;for(p=e.c?n.Hd(n.Yc()):n.Gd();e.c?p.Ye():p.Gc();){l=e.c?p.Ze():p.Hc();try{b.pb(l)}catch(r){if(r=H(r),t(r,13))g=r,!f&&(f=new yg),zg(f,g);else throw I(r);}}if(f)throw new Ag(f);}finally{if(--e.b,0==e.b){var u,B;if(e.a)try{for(B=new Bg(e.a);B.b<B.d.Yc();)u=(J(B.b<B.d.Yc()),B.d.Ed(B.c=B.b++)),u.ab()}finally{e.a=null}}}}catch(P){P=H(P);if(t(P,
+71))throw d=P,new Cg(d.a);throw I(P);}finally{null==d?(b.f=!0,b.g=null):b.g=d}}function Dg(a){Eg.call(this,a,!1)}function Eg(a,b){this.a=new Fg(b);this.b=a}s(47,1,{21:1},Dg,Eg);_.xb=function(a){ig(this,a)};w(47);s(542,1,{});w(542);function ug(a,b,d,e){var f;f=a.d.Qe(b);f||(f=new Gg,a.d.Re(b,f));a=f.Qe(d);a||(a=new C,f.Re(d,a));a.Cd(e)}function Hg(a,b,d,e){var f,g;f=xg(a,b,d);f.Id(e)&&f.Fd()&&(g=a.d.Qe(b),g.Se(d),g.Fd()&&a.d.Se(b))}
+function xg(a,b,d){a=a.d.Qe(b);return a?(d=a.Qe(d))?d:(R(),R(),Ig):(R(),R(),Ig)}s(311,542,{});_.b=0;_.c=!1;w(311);function Fg(a){this.d=new Gg;this.c=a}s(312,311,{},Fg);w(312);function vg(a){this.a=a}s(427,1,{},vg);w(427);function Ag(a){var b;var d,e,f;b=a.Yc();if(0==b)b=null;else{b=new Jg(1==b?"Exception caught: ":b+" exceptions caught: ");d=!0;for(f=a.vc();f.Gc();)e=f.Hc(),d?d=!1:b.a+="; ",Tc(b,e.Z());b=b.a}d=a.vc();this.e=d=d.Gc()?d.Hc():null;this.f=b;Xb(this);this.a=a}s(71,10,ma,Ag);w(71);
+function Cg(a){Ag.call(this,a)}s(154,71,ma,Cg);w(154);function Kg(a,b,d){this.c=new Lg(this);if(!a)throw new Nc;if(!d)throw new Nc;if(0>b)throw new Mg;this.a=d;this.b=b;this.d=a;0<b&&Pb(this.c,b)}s(549,1,{},Kg);_.yb=function(a){var b;if(this.d){Qb(this.c);b=this.d;this.d=null;b=new Ng(b);var d,e;d=b.a.status;0>=d||400<=d?(e=0>=d?"Bad CORS":b.a.statusText,b=new Og("HTTP ERROR: "+d+" "+e+"\n"+b.a.responseText),Pg(a.c,O(y(z,1),h,1,3,[b,this]))):Qg(a.c,O(y(z,1),h,1,3,[b,this]))}};_.b=0;var Rg=w(549);
+function Lg(a){this.a=a}s(489,35,{},Lg);_.W=function(){var a=this.a;if(a.d){var b;a.d&&(Qb(a.c),b=a.d,a.d=null,Sg(b),b.abort());b=new Tg(a.b);Pg(a.a.c,O(y(z,1),h,1,3,[b,a]))}};w(489);function Og(a){cc.call(this,a)}s(91,12,ca,Og);w(91);function Ug(a){cc.call(this,"The URL "+a+" is invalid or violates the same-origin security restriction")}s(503,91,ca,Ug);w(503);function Tg(a){cc.call(this,"A request timeout has expired after "+a+" ms")}s(508,91,ca,Tg);w(508);s(553,1,{});w(553);
+function Ng(a){this.a=a}s(490,553,{},Ng);w(490);function Vg(a){a=id(a,"dir");return vd("rtl",a)?(Wg(),Xg):vd("ltr",a)?(Wg(),Yg):(Wg(),Zg)}function Wg(){Wg=m;Xg=new $g("RTL",0);Yg=new $g("LTR",1);Zg=new $g("DEFAULT",2)}function $g(a,b){N.call(this,a,b)}s(81,4,{81:1,3:1,5:1,4:1},$g);var Zg,Yg,Xg,ah=x(81,function(){Wg();return O(y(ah,1),h,81,0,[Xg,Yg,Zg])});function bh(){bh=m;ch=new dh}function dh(){}s(316,1,{},dh);var ch;w(316);function eh(){eh=m;var a=(bh(),bh(),ch);!a.a&&(a.a=new fh)}
+function gh(a,b,d,e,f){var g,l,n,p;hh(e,0,e.a.length);l=!1;n=b.length;for(p=d;p<n;++p)if(g=b.charCodeAt(p),39==g)p+1<n&&39==b.charCodeAt(p+1)?(++p,e.a+="'"):l=!l;else if(l)e.a+=String.fromCharCode(g);else switch(g){case 35:case 48:case 44:case 46:case 59:return p-d;case 164:a.g=!0;p+1<n&&164==b.charCodeAt(p+1)?(++p,p<n-2&&164==b.charCodeAt(p+1)&&164==b.charCodeAt(p+2)?(p+=2,g=a.a,Tc(e,g[4]||g[1])):Tc(e,a.a[0])):Tc(e,a.a[1]);break;case 37:if(!f){if(1!=a.p)throw new D('Too many percent/per mille characters in pattern "'+
+b+'"');a.p=100}e.a+="%";break;case 8240:if(!f){if(1!=a.p)throw new D('Too many percent/per mille characters in pattern "'+b+'"');a.p=1E3}e.a+="\u2030";break;case 45:e.a+="-";break;default:e.a+=String.fromCharCode(g)}return n-d}
+function ih(a,b,d,e){var f,g,l,n,p,q,r,u,B;g=-1;n=u=l=0;p=-1;q=b.length;B=d;for(r=!0;B<q&&r;++B)switch(f=b.charCodeAt(B),f){case 35:0<u?++n:++l;0<=p&&0>g&&++p;break;case 48:if(0<n)throw new D("Unexpected '0' in pattern \""+b+'"');++u;0<=p&&0>g&&++p;break;case 44:p=0;break;case 46:if(0<=g)throw new D('Multiple decimal separators in pattern "'+b+'"');g=l+u+n;break;case 69:if(!e){if(a.v)throw new D('Multiple exponential symbols in pattern "'+b+'"');a.v=!0;a.k=0}for(;B+1<q&&48==b.charCodeAt(B+1);)++B,
+e||++a.k;if(!e&&1>l+u||1>a.k)throw new D('Malformed exponential pattern "'+b+'"');r=!1;break;default:--B,r=!1}0==u&&0<l&&0<=g&&(u=g,0==g&&++u,n=l-u,l=u-1,u=1);if(0>g&&0<n||0<=g&&(g<l||g>l+u)||0==p)throw new D('Malformed pattern "'+b+'"');if(e)return B-d;b=l+u+n;a.i=0<=g?b-g:0;0<=g&&(a.n=l+u-g,0>a.n&&(a.n=0));a.o=(0<=g?g:b)-l;a.v&&(a.j=l+a.o,0==a.i&&0==a.o&&(a.o=1));a.f=0<p?p:0;a.c=0==g||g==b;return B-d}
+function jh(a,b,d){var e,f;for(e=!0;e&&0<=d;)if(f=b.a.charCodeAt(d),57==f){f=d--;var g=b,l=f+1,n=String.fromCharCode(48);g.a=g.a.substr(0,f)+n+md(g.a,l)}else e=b,g=d+1,f=String.fromCharCode(f+1&65535),e.a=e.a.substr(0,d)+f+md(e.a,g),e=!1;e&&(b.a=b.a.substr(0,0)+"1"+md(b.a,0),++a.b,++a.d)}
+function kh(a){eh();if(!a)throw new D("Unknown currency code");this.s="\u00a4#,##0.00";this.a=a;a=this.s;var b,d;b=new lh;d=0+gh(this,a,0,b,!1);this.t=b.a;d+=ih(this,a,d,!1);d+=gh(this,a,d,b,!1);this.u=b.a;d<a.length&&59==a.charCodeAt(d)?(++d,d+=gh(this,a,d,b,!0),this.q=b.a,d+=ih(this,a,d,!0),gh(this,a,d,b,!0),this.r=b.a):(this.q="-"+this.t,this.r=this.u);this.g&&(this.i=this.n=this.a[2]&7)}s(137,1,{},kh);_.b=0;_.c=!1;_.d=0;_.e=0;_.f=3;_.g=!1;_.i=3;_.j=40;_.k=0;_.n=0;_.o=1;_.p=1;_.q="-";_.r="";
+_.t="";_.u="";_.v=!1;var mh;w(137);function fh(){}s(446,1,{},fh);w(446);function nh(){nh=m;$wnd.__gwt_jsonp__||($wnd.__gwt_jsonp__={},$wnd.__gwt_jsonp__.__gwt_jsonp_counter__=0);oh=$wnd.__gwt_jsonp__}function ph(a,b){Qb(a.i);try{a.a&&a.a.cc(b)}finally{qh((xc(),yc),new rh(a))}}
+function sh(a,b){var d=oh,e={};e.onSuccess=A(function(b){"boolean"==typeof b?b=new th(b):"number"==typeof b&&(a.e?b=new uh(b):b=new S(b));a.Ab(b)});a.f&&(e.onFailure=A(function(b){a.zb(b)}));if(b){var f=d[a.b];f||(f={callbackList:[],onSuccess:function(a){for(;0<f.callbackList.length;)f.callbackList.shift().onSuccess(a)},onFailure:function(a){for(;0<f.callbackList.length;)f.callbackList.shift().onFailure(a)}},d[a.b]=f);f.callbackList.push(e)}else d[a.b]=e}
+function vh(a,b,d,e){nh();this.b="P"+$wnd.__gwt_jsonp__.__gwt_jsonp_counter__++;this.a=a;this.g=b;this.e=d;this.c=e;this.f=null;this.d=!1}s(505,1,{},vh);_.zb=function(a){ph(this,new cc(a))};_.Ab=function(a){Qb(this.i);try{this.a&&this.a.Y(a)}finally{qh((xc(),yc),new rh(this))}};_.tS=function(){return"JsonpRequest(id\x3d"+this.b+")"};_.d=!1;_.e=!1;_.g=0;var oh;w(505);function wh(a,b){this.a=a;this.b=b}s(506,35,{},wh);_.W=function(){ph(this.a,new xh("Timeout while calling "+this.b))};w(506);
+function rh(a){this.a=a}s(172,1,{},rh);_.ab=function(){var a;this.a.d||(a=this.a,delete (nh(),oh)[a.b]);(a=$doc.getElementById(this.a.b))&&(nh(),$doc.getElementsByTagName("head")[0]).removeChild(a)};w(172);function yh(){}s(504,1,{},yh);
+_.Bb=function(a,b){var d,e,f;d=new vh(b,this.b,!1,this.a);sh(d,d.d);e=new Jg(a);Tc(e,-1!=a.indexOf("?")?"\x26":"?");f="__gwt_jsonp__."+d.b;Tc(Tc(Tc(Tc(e,d.c),"\x3d"),f),".onSuccess");f=$doc;f=(K(),f).createElement("script");f.type="text/javascript";f.id=d.b;f.src=e.a;d.i=new wh(d,a);Pb(d.i,d.g);$doc.getElementsByTagName("head")[0].appendChild(f)};_.a="callback";_.b=1E4;w(504);function xh(a){cc.call(this,a)}s(507,12,ca,xh);w(507);
+function zh(a,b){var d;d=a.slice(0,b);O(ab(a),a.cM,a.__elementTypeId$,a.__elementTypeCategory$,d);return d}function Ah(a,b){var d;d=Bh(0,b);O(ab(a),a.cM,a.__elementTypeId$,a.__elementTypeCategory$,d);return d}function F(a,b,d,e,f){e=Bh(f,e);O(y(a,1),b,d,f,e);return e}function O(a,b,d,e,f){f.cZ=a;f.cM=b;f.tM=Ua;f.__elementTypeId$=d;f.__elementTypeCategory$=e;return f}
+function Bh(a,b){var d=Array(b),e;switch(a){case 6:e={l:0,m:0,h:0};break;case 7:e=0;break;case 8:e=!1;break;default:return d}for(var f=0;f<b;++f)d[f]=e;return d}function Ch(a,b,d,e){var f=0;a===b&&(a=a.slice(f,f+e),f=0);for(var g=f,f=f+e;g<f;){var l=Math.min(g+1E4,f);e=l-g;Array.prototype.splice.apply(b,[d,0].concat(a.slice(g,l)));g=l;d+=e}}function I(a){return t(a,59)&&qb(a.b)!==qb((fc(),gc))?qb(a.b)===qb(gc)?null:a.b:a}
+function H(a){var b;if(t(a,13))return a;b=a&&a.__gwt$exception;if(!b&&(b=new hc(a),Yb(),a&&"object"==typeof a))try{a.__gwt$exception=b}catch(d){}return b}function Dh(a){return Eh(a.l,a.m,a.h)}function Eh(a,b,d){return{l:a,m:b,h:d}}
+function Fh(a,b){var d,e,f,g,l,n,p,q;if(0==b.l&&0==b.m&&0==b.h)throw new Gh;if(0==a.l&&0==a.m&&0==a.h)return Hh=Eh(0,0,0),Eh(0,0,0);if(b.h==pa&&0==b.m&&0==b.l)return q=a,q.h==pa&&0==q.m&&0==q.l?(Hh=Eh(0,0,0),q=Dh((Ih(),Jh))):(Hh=Eh(q.l,q.m,q.h),q=Eh(0,0,0)),q;q=!1;0!=b.h>>19&&(b=Kh(b),q=!0);n=b.l;0!=(n&n-1)?p=-1:(l=b.m,0!=(l&l-1)?p=-1:(g=b.h,p=0!=(g&g-1)||0==g&&0==l&&0==n?-1:0==g&&0==l&&0!=n?Lh(n):0==g&&0!=l&&0==n?Lh(l)+22:0!=g&&0==l&&0==n?Lh(g)+44:-1));g=l=n=!1;if(a.h==pa&&0==a.m&&0==a.l)if(n=l=
+!0,-1==p)a=Dh((Ih(),Mh)),g=!0,q=!q;else return g=Nh(a,p),q&&Oh(g),Hh=Eh(0,0,0),g;else 0!=a.h>>19&&(n=!0,a=Kh(a),g=!0,q=!q);if(-1!=p){g=a;l=p;p=Nh(g,l);q&&Oh(p);var r;22>=l?(q=g.l&(1<<l)-1,r=g=0):44>=l?(q=g.l,r=g.m&(1<<l-22)-1,g=0):(q=g.l,r=g.m,g=g.h&(1<<l-44)-1);g=Eh(q,r,g);n?Hh=Kh(g):Hh=Eh(g.l,g.m,g.h);return p}if(!Ph(a,b))return n?Hh=Kh(a):Hh=Eh(a.l,a.m,a.h),Eh(0,0,0);g=g?a:Eh(a.l,a.m,a.h);var u;r=Qh(b)-Qh(g);e=r&63;22>e?(d=b.l<<e,p=b.m<<e|b.l>>22-e,f=b.h<<e|b.m>>22-e):44>e?(d=0,p=b.l<<e-22,f=b.m<<
+e-22|b.l>>44-e):(p=d=0,f=b.l<<e-44);d&=na;e=p&na;f&=oa;for(p=Eh(0,0,0);0<=r;){u=g;var B=void 0,P=void 0,xa=void 0,xa=u.h-f;0>xa?u=!1:(B=u.l-d,P=u.m-e+(B>>22),xa+=P>>22,0>xa?u=!1:(u.l=B&na,u.m=P&na,u.h=xa&oa,u=!0));if(u&&(22>r?p.l|=1<<r:44>r?p.m|=1<<r-22:p.h|=1<<r-44,0==g.l&&0==g.m&&0==g.h))break;u=e;e=f;f=e>>>1;e=u>>>1|(e&1)<<21;d=d>>>1|(u&1)<<21;--r}q&&Oh(p);n?(Hh=Kh(g),l&&(q=Hh,g=(Ih(),Jh),n=q.l-g.l,l=q.m-g.m+(n>>22),Hh={l:n&na,m:l&na,h:q.h-g.h+(l>>22)&oa})):Hh=Eh(g.l,g.m,g.h);return p}
+function Oh(a){var b,d,e;b=~a.l+1&na;d=~a.m+(0==b?1:0)&na;e=~a.h+(0==b&&0==d?1:0)&oa;a.l=b;a.m=d;a.h=e}function Qh(a){var b;b=Rh(a.h);return 32==b?(b=Rh(a.m),32==b?Rh(a.l)+32:b+20-10):b-12}var Hh;function Sh(a,b){return a.l==b.l&&a.m==b.m&&a.h==b.h}function Ya(a){var b,d,e;if(isNaN(a))return Ih(),Th;if(a<sa)return Ih(),Uh;if(9223372036854775E3<=a)return Ih(),Mh;e=!1;0>a&&(e=!0,a=-a);d=0;a>=ra&&(d=v(a/ra),a-=d*ra);b=0;a>=qa&&(b=v(a/qa),a-=b*qa);a=v(a);b=Eh(a,b,d);e&&Oh(b);return b}
+function Vh(a){var b;return-129<a&&128>a?(b=a+128,null==Wh&&(Wh=F(Xh,h,568,256,0)),a=Wh[b]=Eh(a&na,a>>22&na,0>a?oa:0)):Eh(a&na,a>>22&na,0>a?oa:0)}function Ph(a,b){var d,e;d=a.h>>19;e=b.h>>19;return 0==d?0!=e||a.h>b.h||a.h==b.h&&a.m>b.m||a.h==b.h&&a.m==b.m&&a.l>=b.l:!(0==e||a.h<b.h||a.h==b.h&&a.m<b.m||a.h==b.h&&a.m==b.m&&a.l<b.l)}function Kh(a){var b,d;b=~a.l+1&na;d=~a.m+(0==b?1:0)&na;return Eh(b,d,~a.h+(0==b&&0==d?1:0)&oa)}
+function Nh(a,b){var d,e,f;b&=63;d=a.h;(e=0!=(d&pa))&&(d|=-1048576);22>b?(f=d>>b,e=a.m>>b|d<<22-b,d=a.l>>b|a.m<<22-b):44>b?(f=e?oa:0,e=d>>b-22,d=a.m>>b-22|d<<44-b):(f=e?oa:0,e=e?na:0,d>>=b-44);return{l:d&na,m:e&na,h:f&oa}}function Yh(a){Sh(a,(Ih(),Uh))?a=sa:Ph(a,Th)?a=a.l+a.m*qa+a.h*ra:(a=Kh(a),a=-(a.l+a.m*qa+a.h*ra));return a}function Zh(a){return a.l|a.m<<22}
+function $h(a){var b,d,e;if(0==a.l&&0==a.m&&0==a.h)return"0";if(a.h==pa&&0==a.m&&0==a.l)return"-9223372036854775808";if(0!=a.h>>19)return"-"+$h(Kh(a));for(d="";0!=a.l||0!=a.m||0!=a.h;){b=Vh(1E9);a=Fh(a,b);b=""+Zh(Hh);if(0!=a.l||0!=a.m||0!=a.h)for(e=9-b.length;0<e;e--)b="0"+b;d=b+d}return d}var Wh;function Ih(){Ih=m;Mh=Eh(na,na,524287);Uh=Eh(0,0,pa);Jh=Vh(1);Vh(2);Th=Vh(0)}var Mh,Uh,Jh,Th;function ai(){ai=m}s(175,1,{},function(){});w(175);
+function bi(){this.a=this.Cb();this.b=this.Db();this.c=this.Eb();this.d=this.Fb();this.e=this.Gb();this.f=this.Hb();this.Ib();this.g=this.Ib()}s(141,1,{});_.a=!1;_.b=!1;_.c=!1;_.d=!1;_.e=!1;_.f=!1;_.g=!1;w(141);function ci(){bi.call(this)}s(318,141,{},ci);_.Cb=di;_.Db=di;_.Eb=di;_.Fb=ei;_.Gb=di;_.Hb=di;_.Ib=di;_.tS=fi;w(318);function gi(){bi.call(this)}s(317,141,{},gi);_.Cb=di;_.Db=di;_.Eb=di;_.Fb=di;_.Gb=di;_.Hb=di;_.Ib=ei;_.tS=fi;w(317);
+function hi(a,b){var d;(d=(a.g=b)?ii(b):null)?(a.i=!0,ji(a,d)):a.Jb()}function ji(a,b){var d=(T(),b.O);a.g=d;a.i?(a.i=!1,a.Jb()):(d=b.O,a.g=d,hi(a,d))}function ki(a,b){a.f=b;a.Jb();return Zf(),Zf(),$f}function li(a,b,d){a=a.f;a=null!=a?0!=(ab(a).e&4)?a:O(y(z,1),h,1,3,[a]):F(z,h,1,0,3);b=a.length>b?a[b]:null;return null!=b&&(!d||ab(b)==d||d==ib&&pb(b))?b:null}function mi(a,b){a.f=b;return a}function ni(){this.f=F(z,h,1,0,3)}s(6,1,ta);
+_.Jb=function(){throw new dc("You have to override the adequate method to handle this action, or you have to override 'public void f()' to avoid this error");};_.Kb=function(a){return ki(this,a)};_.Lb=function(a){this.Kb(O(y(z,1),h,1,3,[a]))};_.Mb=function(a){return this.Kb(a)};_.Nb=function(a){mi(this,a)};_.g=null;_.i=!1;var oi=w(6);function pi(a){var b=qi,b=(!U&&(U=new ri),si(b));ti(b,a);return b}var ui,U;
+function G(){G=m;vi=4==Ta?new gi:new ci;wi=new xi;yi=$doc;zi();Ai();Bi=/<([\w:-]+)/;Ci=(Di(),Ei);oc=(ic(),jc)}function Fi(a){a.c=F(ib,h,0,0,2);a.d=[]}
+function Gi(a){var b,d,e;if(!a)return new Hi(Ii(null));if(Ji(a))return a=new Ki(a),ki(a,a.f),new Hi(Ii(null));if(!Li(a,"alert")&&!Mi(a)&&Ni(a)){b=Ii(null);for(d=0;d<a.length;d++)(e=null!=a[d]?Object(a[d]):null)&&Oi(b,e);return new Pi(b)}return Li(a,"alert")?new V(a):Mi(a)?new V(a):Li(a,"currentTarget")?a?new V((K(),L).bb(a)):new Hi(Ii(null)):(b=Object.prototype.toString.call(a),"[object HTMLCollection]"==b||"[object NodeList]"==b||"object"==typeof a&&a.length&&a[0].tagName?0:1)?new V(a):new Pi(a)}
+function Qi(a){G();if(a){if(Mi(a))return new V(a);if(t(a,22))return Ri(new Si(O(y(z,1),h,1,3,[a])));Ti(Ui(O(y(z,1),h,1,3,["Error: GQuery.$(Object o) could not wrap the type : ",$a(a.cZ),a])))}return new Hi(Ii(null))}
+function Vi(a,b){G();var d;d=null;if(null==a||0==(d=ld(a)).length)d=new Hi(Ii(null));else if(Wi(d.substr(0,1),"\x3c")){d=b&&Mi(b)?9==b.nodeType?b:b.ownerDocument:null;var e,f,g,l;if(e=Bi.exec(a)){e=e[1];Xi||(f=new Yi(1,"\x3ctable\x3e","\x3c/table\x3e"),g=new Yi(1,'\x3cselect multiple\x3d"multiple"\x3e',"\x3c/select\x3e"),l=new Yi(3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"),Xi={},Zi(Xi,"option",g),Zi(Xi,"optgroup",g),g=new Yi(1,"\x3cfieldset\x3e","\x3c/fieldset\x3e"),
+Zi(Xi,"legend",g),Zi(Xi,"thead",f),Zi(Xi,"tbody",f),Zi(Xi,"tfoot",f),Zi(Xi,"colgroup",f),Zi(Xi,"caption",f),f=new Yi(2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"),Zi(Xi,"tr",f),Zi(Xi,"td",l),Zi(Xi,"th",l),l=new Yi(2,"\x3ctable\x3e\x3ctbody\x3e\x3c/tbody\x3e\x3ccolgroup\x3e","\x3c/colgroup\x3e\x3c/table\x3e"),Zi(Xi,"col",l),l=new Yi(1,"\x3cmap\x3e","\x3c/map\x3e"),Zi(Xi,"area",l));e=e.toLowerCase();e=$i(Xi,e);!e&&(e=(aj(),bj));d=(K(),d).createElement("div");l=e.b+ld(a)+e.a;d.innerHTML=
+l||"";for(e=e.c;0!=e--;)d=d.lastChild;d=cj(Gi(d.childNodes),!1)}else d=new V(d.createTextNode(a))}else d=new dj,e=ej((!fj&&(fj=new gj),fj),a,b?b:yi),d.b=a,d.a=b?b:yi,d=hj(d,e);return d}function Ri(a){G();var b,d;b=Ii(null);for(d=a.vc();d.Gc();)a=d.Hc(),pb(a)?Oi(b,a):t(a,22)&&Oi(b,ij(a.hc()));return new Hi(b)}function jj(a,b){var d;if(b==kj)return a;if(lj&&(d=mj(lj,kb(b))))return d._b(a);throw new dc((rb(b),"No plugin registered for class "+b.k));}
+function nj(a,b){return 0==a.c.length?"":dd(oj(a,0),b)}function pj(a){var b,d,e,f;f=Ii(null);a=a.c;d=0;for(e=a.length;d<e;++d){b=a[d];b=fd((K(),b));for(var g=f;b;)b&&qj(g,O(y(ib,1),h,0,2,[b])),b=qd((K(),b))}return new Hi(rj(f))}function sj(a){var b=O(y(hb,1),h,2,4,["th"]);return tj(pj(a),b)}function uj(a,b){var d,e,f,g;e=0;for(f=b.length;e<f;++e){d=b[e];try{vj(),vj(),wj(a,d,null)}catch(l){if(l=H(l),t(l,12))d=l,Zb((g=d,g));else throw I(l);}}}
+function xj(a,b){var d;d=yj((!fj&&(fj=new gj),a.d),b);return zj(a,d,a.b)}
+function tj(a,b){var d;d=Aj(", ",b);var e=(!fj&&(fj=new gj),fj);var f=a.d,g=e.a,l,n,p,q,r,u,B,P;P=Ii(null);if(d.length){p=null;B=new yg;n=new yg;q=0;for(r=f.length;q<r;q++)l=f[q],l==(G(),oc)||l==yi||null==l.nodeName||vd("html",l.nodeName)||(zg(n,l),g?(u=Vc((K(),l)))?B.a.Oe(u)||zg(B,u):(p||(p=M(),zg(B,p)),u=p,u.appendChild(l)):0==B.a.Yc()&&zg(B,yi));for(f=Bj(new Cj(B.a));f.a.Gc();)for(l=Dj(f),r=ej(e,d,l),g=0,q=r.length;g<q;g++)l=r[g],null!=n.a.Se(l)&&qj(P,O(y(ib,1),h,0,2,[l]));p&&(p.innerHTML="")}return zj(a,
+P,d)}function Ej(a,b){var d,e,f,g,l,n,p,q,r,u,B;d=Ii(null);u=0;for(B=b.length;u<B;++u)for(r=b[u],n=a.c,p=0,q=n.length;p<q;++p)for(e=n[p],f=Vi(r,e).c,g=0,l=f.length;g<l;++g)e=f[g],qj(d,O(y(ib,1),h,0,2,[e]));return zj(a,rj(d),b[0])}function oj(a,b){var d;d=a.c.length;return 0<=b&&b<d?a.c[b]:0>b&&0<=d+b?a.c[d+b]:null}function Fj(a){return 0==a.c.length?"":gd(oj(a,0))}function Aj(a,b){var d,e;e="";for(d=0;d<b.length;d++)e+=0<d?a+b[d]:b[d];return e}
+function Gj(a){var b,d,e,f,g;g=Ii(null);a=a.c;d=0;for(e=a.length;d<e;++d)for(b=a[d],f=0,b=b.parentNode;b&&b!=yi;)qj(g,O(y(ib,1),h,0,2,[b])),b=b.parentNode,++f;return new Hi(rj(g))}function Hj(a,b){return 0==a.c.length?null:Ij(oj(a,0),b)}function zj(a,b,d){b=new Hi(b);b.b=d;b.a=a.a;return b}function cj(a,b){var d,e,f,g,l;e=a.c;f=0;for(g=e.length;f<g;++f)d=e[f],b&&(uj(a,Vi("*",d).c),uj(a,O(y(ib,1),h,0,2,[d]))),(l=ii(d))?Jj(l):Xc(d);return a}
+function wj(a,b,d){var e;Kj||(Lj={},Kj={});b=b==oc||null==b.nodeName?Lj:b;e=kb(b);if(null!=d){if(Kj[E(e)]){delete $i(Kj,E(e))[d];a:{d=$i(Kj,E(e));for(k in d)if(d.hasOwnProperty(k)){d=!1;break a}d=!0}d&&wj(a,b,null)}}else a=E(e),delete Kj[a]}function hj(a,b){var d,e;if(b){d=a.d;var f,g,l;f=Mj(d);g=0;for(l=f.length;g<l;++g)e=f[g],delete d[e];e=b.length;a.c=F(ib,h,0,e,2);for(d=0;d<e;d++)a.c[d]=b[d],qj(a.d,O(y(ib,1),h,0,2,[b[d]]))}return a}
+function Nj(a){var b,d,e,f;f="";b=a.c;d=0;for(e=b.length;d<e;++d)a=b[d],f+=(K(),a).textContent;return f}
+function Oj(a){var b,d,e,f,g;g="";b=a.c;d=0;for(e=b.length;d<e;++d)if(a=b[d],oc!=a){try{f=a&&"HTML"!==(a&&Mi(a)?9==a.nodeType?a:a.ownerDocument:null).documentElement.nodeName?(new XMLSerializer).serializeToString(a):(K(),L).lb(a)}catch(l){if(l=H(l),t(l,12))f=l,f="\x3c "+(a?a.nodeName:"null")+"(gquery, error getting the element string representation: "+f.Z()+")/\x3e";else throw I(l);}g+=""+f}return g}
+function Pj(a){var b=0,d,e,f;a=a.c;e=0;for(f=a.length;e<f;++e)if(d=a[e],d=ii(d)){if(0==b)return d;--b}return null}function dj(){Fi(this)}function V(a){G();Hi.call(this,Ii(a))}function Pi(a){Fi(this);hj(this,a)}function Qj(a){G();Fi(this);this.c=a.c;this.d=a.d;this.b=a.b;this.a=a.a}function Hi(a){G();Pi.call(this,a)}
+function Rj(a,b,d){G();Kj||(Lj={},Kj={});if((a=a==oc||null==a.nodeName?Lj:a)&&null!=b){a=kb(a);if(null==d)return Kj[E(a)]?Sj($i(Kj,E(a)),b,null):null;Kj[E(a)]||Zi(Kj,E(a),{});Zi($i(Kj,E(a)),b,d)}return d}function ii(a){G();var b;try{b=(T(),Tj(a));if(!b)return null;if(t(b,17))return b}catch(d){if(d=H(d),t(d,12))a=d,Zb(a);else throw I(d);}return null}function Uj(a,b){G();!lj&&(lj={});Vj(lj,a,b);return a}s(7,1,{},dj,V,Pi,Hi);_.Ob=function(a,b){var d=jj(this,(Wj(),Xj));return Yj(d,a,b)};_.tS=function(){return Oj(this)};
+var Ci,Zj,vi,wi,Kj=null,yi,fj,lj,ak,Bi,oc,Lj=null,Xi,kj=w(7);function aj(){aj=m;bj=new Yi(0,"","")}function Yi(a,b,d){aj();this.c=a;this.a=d;this.b=b}s(56,1,{},Yi);_.c=0;var bj;w(56);s(528,1,{});_.Sb=function(){return!1};w(528);function bk(a,b){var d;return d=Sj(a,""+b,ck),d?d.a:0}function dk(a,b){var d,e;e=$i(a,""+b);if(null!=e){if(t(e,6))return e;if(pb(e))return d=$i(e,"__f"),null!=d&&t(d,6)?d:new Ki(e)}return null}function W(a,b){return id(a,""+b)}function ek(a,b,d){Zi(a,""+b,d);return a}
+var fk=yb();function ti(a,b){if(null!=b&&eb(b))return ti(a,gk(b));null!=b&&(a.a=b);return a}function hk(a,b,d){var e,f,g,l;if(0<d.length&&t(d[0],45))for(e=[],g=0,l=d.length;g<l;++g)f=d[g],f=f.Pb(),e[e.length]=f;else e=[],qj(e,d);ek(a.a,b,e)}s(43,1,ua);_.Pb=ik;_.Qb=function(a){return ti(this,a)};_.Wb=function(a){return ti(this,gk(a))};_.Rb=function(a,b){return null!=b&&(!eb(b)&&b.tM!==Ua||eb(b)&&nb[44]||b.cM&&b.cM[44])?ek(this.a,a,fb(b)?b.Pb():b):ek(this.a,a,b),this};_.tS=function(){return $wnd.JSON.stringify(this.a)};
+w(43);function jk(){this.a={}}s(451,43,ua,jk);w(451);function si(a){return a==fk?new jk:a==kk?new lk:a==qi?new mk:a==nk?new ok:a==pk?new qk:a==rk?new sk:a==tk?new uk:a==vk?new wk:a==xk?new yk:a==zk?new Ak:a==Bk?new Ck:null}function ri(){}s(30,1,{},ri);w(30);function Dk(){Dk=m;Ek=RegExp("^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$","i")}function Fk(){Dk()}s(170,1,{},Fk);var Ek;w(170);function Gk(){}s(492,1,{},Gk);
+_.Xb=function(a){return null==a};_.Yb=function(a,b,d){a.setAttribute(b,""+d)};var Hk;w(492);function Ik(){}s(494,492,{},Ik);_.Xb=function(a){return null==a||Jk((Zf(),ag),a)};_.Yb=function(a,b){Li(a,b)&&(a[b]=!0);var d=b.toLowerCase();a.setAttribute(b,""+d)};var Kk;w(494);function Lk(){}s(495,492,{},Lk);_.Yb=function(a,b,d){var e=null==d?null:eb(d)?d:fb(d)?d.tS():gb(d)?Za(d):d.toString?d.toString():"[JavaScriptObject]";a.id=e;a.setAttribute(b,""+d)};var Mk;w(495);
+function Nk(){Nk=m;Ok=/^(?:button|input)$/i}function Pk(){Nk()}s(496,492,{},Pk);_.Yb=function(a,b,d){var e;e=a.nodeName;var f;if(f=Ok.test(e)){f=(G(),new V(a));var g=O(y(hb,1),h,2,4,["body"]);f=0<tj(Gj(f),g).c.length}if(f)throw new dc("You cannot change type of button or input element if the element is already attached to the dom");Wi("input",e.toLowerCase())&&"radio"===d?(b=a.value,a.setAttribute("type",""+d),a.value=b):a.setAttribute(b,""+d)};var Qk,Ok;w(496);function Rk(){}s(493,492,{},Rk);
+_.Yb=function(a,b,d){a.value=""+d;a.setAttribute(b,""+d)};var Sk;w(493);function Ui(a){var b,d,e,f;f=[];d=0;for(e=a.length;d<e;++d)b=a[d],qj(f,O(y(z,1),h,1,3,[b]));return f}function xi(){this.a=(G(),vi).b?new Tk:vi.c?new Uk:new Vk}s(319,1,{},xi);w(319);function Ti(a){$wnd.console.log.apply($wnd.console,a)}function Vk(){}s(320,1,{},Vk);_.Zb=function(a){$wnd.console.error.apply($wnd.console,a)};w(320);function Uk(){this.$b()}s(142,320,{},Uk);
+_.Zb=function(a){this.a&&$wnd.console.error.apply($wnd.console,a)};_.$b=function(){try{"log info warn error dir clear profile profileEnd".split(" ").forEach(function(a){$wnd.console[a]=this.call($wnd.console[a],$wnd.console)},Function.prototype.bind),this.a=!0}catch(a){}};_.a=!1;w(142);function Tk(){this.$b()}s(321,142,{},Tk);_.$b=function(){try{Function.prototype.call.call($wnd.console.log,$wnd.console,Array.prototype.slice.call(arguments)),this.a=!0}catch(a){}};w(321);
+function Wk(){Wk=m;Xk=/^(fillOpacity|fontWeight|lineHeight|opacity|orphans|widows|zIndex|zoom)$/i;Yk=/^(client|offset|)(width|height)$/i}
+function Zk(a,b,d,e){var f,g;if(!b)return"";d=$k(d);f=Fd(b.style,d);if(e){e=null;if(vd("html",b.nodeName)?0:!Wc((b&&Mi(b)?9==b.nodeType?b:b.ownerDocument:null).body,b))e=Gj((G(),new V(b))),e=new V(oj(e,e.c.length-1)),e=oj(e,0),!e&&(e=b),$doc.body.appendChild(e);if(Yk.test(d)){var l;mj((al(),bl),jb("visible")).Sb(b,0)?a=cl(a,b,d):(f=Zk(a,b,"display",!1),g=Zk(a,b,"position",!1),l=Zk(a,b,"visibility",!1),dl(b,"display","block"),dl(b,"position","absolute"),dl(b,"visibility","hidden"),a=cl(a,b,d),dl(b,
+"display",f),dl(b,"position",g),dl(b,"visibility",l));f=a+"px"}else if(vd("opacity",d))b=b.style,f=""+(g=(K(),b).opacity,g?el(g):1);else{a=d.replace(/([A-Z])/g,"-$1").toLowerCase();try{f=(l=$doc.defaultView.getComputedStyle(b,null))&&l.getPropertyValue?l.getPropertyValue(a):null}catch(n){f=null}}e&&Xc(e)}return null==f?"":f}function fl(a,b){0==(b.clientHeight|0)&&0==(b.clientWidth|0)&&Wi("inline",Zk(a,b,"display",!0))&&(dl(b,"display","inline-block"),dl(b,"width","auto"),dl(b,"height","auto"))}
+function $k(a){return vd("float",a)?"cssFloat":vd("for",a)?"htmlFor":gl(a)}function cl(a,b,d){var e;e=0;"width"===d?e=(fl(a,b),v((b.clientWidth|0)-el(Zk(a,b,"paddingLeft",!0))-el(Zk(a,b,"paddingRight",!0)))):"height"===d?e=(fl(a,b),v((b.clientHeight|0)-el(Zk(a,b,"paddingTop",!0))-el(Zk(a,b,"paddingBottom",!0)))):"clientWidth"===d?e=b.clientWidth|0:"clientHeight"===d?e=b.clientHeight|0:"offsetWidth"===d?e=(b.offsetWidth||0)|0:"offsetHeight"===d&&(e=(b.offsetHeight||0)|0);return e}
+function el(a){return(a=hl(ld(a),"[^\\d\\.\\-]+.*$",""))?il(a):0}function dl(a,b,d){a&&null!=b&&(b=$k(b),jl(b,"^[A-Z]+$")&&(b=b.toLowerCase()),b=gl(b),null==d||0==ld(d).length?a.style[b]="":(jl(d,"-?[\\d\\.]+")&&!Xk.test(b)&&(d+="px"),a.style[b]=d))}function kl(){Wk()}s(376,1,{},kl);var Xk,Yk,ll=w(376);function al(){al=m;$doc.location.href.indexOf("_force_no_native");bl={};Vj(bl,"visible",new ml);Vj(bl,"hidden",new nl);Vj(bl,"selected",new ol);Vj(bl,"input",new pl);Vj(bl,"header",new ql)}
+function yj(a,b){var d,e,f,g,l;l=Ii(null);e=0;g=a.length;for(f=0;e<g;e++)if(d=a[e],b.Sb(d,e)){var n=f++;Zi(l,E(n),d)}return l}
+function ej(a,b,d){var e,f,g,l,n,p,q;if(a.c.test(b))for(;l=a.c.exec(b);)b=l[1]+":"+l[3],l[3]===l[2]||(b+=":"+l[2]),b+=l[4];if(a.b.test(b)){n=Ii(null);b=rl(ld(b),"\\s*,\\s*",0);l=0;for(q=b.length;l<q;++l)p=b[l],(e=a.b.exec(p))?(p=e[1].length?e[1]:"*",g=e[2],(e=mj(bl,jb(g.toLowerCase())))?f=yj(ej(a,p,d),e):a.c.test(g)?f=ej(a,p,d):f=ej(a,p+"[type\x3d"+g+"]",d)):f=ej(a,p,d),sl(n,f,!1);return n}a=b;try{n=(al(),d.querySelectorAll(a))}catch(r){if(r=H(r),t(r,12))f=r,d=(G(),wi),a="GwtQuery: Selector '"+a+
+"' is unsupported in this SelectorEngineNativeMin engine. Do not use this syntax or configure your module to use a JS fallback. "+f.Z(),d.a.Zb(Ui(O(y(z,1),h,1,3,[a]))),n=null;else throw I(r);}return n}function gj(){al();this.b=RegExp("(.*):((visible|hidden|selected|input|header)|((button|checkbox|file|hidden|image|password|radio|reset|submit|text)\\s*(,|$)))(.*)","i");this.c=/(.*):([\w]+):(disabled|checked|enabled|empty|focus)\s*([:,].*|$)/i;rb(tl);ul=new kl;rb(ll)}s(88,1,{},gj);_.a=!0;var bl,ul;
+w(88);function ml(){}s(402,528,{},ml);_.Sb=function(a){return 0<((a.offsetWidth||0)|0)+((a.offsetHeight||0)|0)&&!vd("none",Zk((al(),ul),a,"display",!0))};w(402);function nl(){}s(403,528,{},nl);_.Sb=function(a,b){return!mj((al(),bl),jb("visible")).Sb(a,b)};w(403);function ol(){}s(404,528,{},ol);_.Sb=function(a){return!!a.selected};w(404);function pl(){}s(405,528,{},pl);_.Sb=function(a){return jl(a.nodeName.toLowerCase(),"input|select|textarea|button")};w(405);function ql(){}s(406,528,{},ql);
+_.Sb=function(a){return jl(a.nodeName.toLowerCase(),"h\\d")};w(406);var tl=w(null);function $i(a,b){return vl([a&&a[b]])}
+function Sj(a,b,d){b=$i(a,b);if(null!=b&&d)if(t(b,15))if(a=b,d==ck)b=new wl(a.a);else if(d==xl)b=E(v(a.a));else if(d==yl){d=Ya(a.a);a=na;b=oa;var e,f;e=d.h>>19;f=b>>19;(0==e?!(0!=f||d.h>b||d.h==b&&d.m>a||d.h==b&&d.m==a&&4194175<d.l):0==f||d.h<b||d.h==b&&d.m<a||d.h==b&&d.m==a&&4194175>=d.l)||Ph(d,{l:128,m:0,h:0})?b=new zl(d):(a=Zh(d)+128,b=(Al(),Bl)[a],!b&&(b=Bl[a]=new zl(d)))}else d==Cl?(d=v(a.a)<<16>>16,-129<d&&128>d?(a=d+128,b=(Dl(),El)[a],!b&&(b=El[a]=new Fl(d))):b=new Fl(d)):d==Gl&&(d=v(a.a)<<
+24>>24,a=d+128,b=(Hl(),Il)[a],!b&&(b=Il[a]=new Jl(d)));else d!=Kl||t(b,58)?d==hb&&!eb(b)&&(b=""+b):b=(Zf(),vd("true",""+b)?$f:ag);return b}function Ll(a,b){var d=a[b];return"[object Array]"==Object.prototype.toString.call(d)?d:null}function Ml(a,b){var d;return(d=Sj(a,b,Nl))?d.a:0}function Ol(a,b){var d;d=$i(a,b);return null!=d&&pb(d)?d:null}
+function Mj(a){var b,d=[];for(b in a)a.hasOwnProperty(b)&&"__gwt_ObjectId"!=b&&"$H"!=b&&d.push(String(b));b=F(hb,h,2,d.length,4);for(a=0;a<d.length;a++)b[a]=d[a];return b}function Pl(a){if("number"==typeof a.length)return a.length;var b,d=0;for(b in a)"__gwt_ObjectId"!=b&&d++;return d}function Zi(a,b,d){t(d,58)?a[b]=d.a:(t(d,51)&&(d=d.Ge()),a[b]=d)}
+function vl(a){if("object"==typeof a&&1==a.length){a=a[0];var b=typeof a;if("boolean"==b)return Zf(),a?$f:ag;if("number"==b)return new S(a)}return a||null}function mj(a,b){return $i(a,E(b))}function Vj(a,b,d){Zi(a,E(bb(b)),d)}function Oi(a,b){qj(a,O(y(ib,1),h,0,2,[b]))}function Ii(a){return a?[a]:[]}function qj(a,b){var d,e,f;e=0;for(f=b.length;e<f;++e)if(d=b[e],t(d,51)){var g=E(Pl(a));d=d.Ge();a[g]=d}else t(d,58)?(g=E(Pl(a)),a[g]=d.a):Zi(a,E(Pl(a)),d);return a}
+function gl(a){return a.replace(/\-(\w)/g,function(a,d){return d.toUpperCase()})}function sl(a,b,d){var e,f,g,l;l=!a||d?Ii(null):a;g={};for(f=0;a&&f<a.length;f++)e=a[f],Zi(g,E(kb(e)),E(1)),d&&Zi(l,E(f),e);a=0;f=b.length;for(d=l.length;a<f;a++)if(e=b[a],!g[E(kb(e))]){e=b[a];var n=d++;Zi(l,E(n),e)}return l}function Li(a,b){var d=b.split("."),e;for(e in d){if(!(a&&d[e]in a))return!1;a=a[d[e]]}return!0}
+function Ni(a){return"[object Array]"==Object.prototype.toString.call(a)||"number"==typeof a.length}function Mi(a){return!!a&&"nodeType"in a&&"nodeName"in a}function Ji(a){return"[object Function]"==Object.prototype.toString.call(a)}function gk(a){try{var b;try{b=JSON.parse(a)}catch(d){throw new D("Error parsing JSON: "+d+"\n"+a);}return b}catch(e){e=H(e);if(t(e,12))return{};throw I(e);}}function Ij(a,b){return a?$i(a,b):null}
+function Ql(a,b,d){var e;a:{d=qj([],d);var f=a||$wnd;b=b.split(".");for(e in b)if(a=f,f=f[b[e]],!f){e=null;break a}e=Ji(f)&&vl([f.apply(a,d)])}return e}function Rl(a){return function(b){var d=new C;for(i in arguments)b=vl([arguments[i]]),d.Cd(b);d=d.Jd();a.Nb(d);return a.Mb(d)}}function Ki(a){ni.call(this);this.a=null;Ji(a)&&(this.a=a)}s(140,6,ta,Ki);_.eQ=function(a){return qb(this.a)===qb(a)};_.ab=Sl;_.Jb=Sl;_.hC=function(){return kb(this.a)};w(140);
+function rj(a){var b,d,e,f,g;g=[];b={};for(e=0;e<a.length;e++)d=a[e],f=kb(d),b[E(f)]||(f=E(f),b[f]=1,g[g.length]=d);return g}function Ai(){Ai=m;G();Uj(Tl,new Ul)}function Vl(a){Ai();Qj.call(this,a)}s(126,7,{},Vl);var Tl=w(126);function Wl(){Wl=m;Ai();Xl=Uj(Yl,new Zl)}function $l(a){Wl();Vl.call(this,a)}
+function am(a,b,d){if($wnd.MutationObserver){var e=new $wnd.MutationObserver(function(a){a=ek({},"mutations",a);t(d,6)?d.Kb(O(y(z,1),h,1,3,[a])):t(d,556)&&d.onMutation(bm(pi(a)))});(a.__gq_obs||(a.__gq_obs=[])).push(e);e.observe(a,b)}else $wnd.console.log("ERROR: this browser does not support MutationObserver: "+$wnd.navigator.userAgent)}s(188,126,{},$l);var Xl,Yl=w(188);function Zl(){}s(189,1,{},Zl);_._b=function(a){return new $l(a)};w(189);var kk=yb(),qi=yb(),nk=yb();function lk(){this.a={}}
+s(452,43,ua,lk);w(452);function bm(a){var b,d,e,f,g;b=Ll(a.a,"mutations");b=F(nk,h,557,b?b.length:0,0);a=Ll(a.a,"mutations");f=b.length;for(d=0;d<f;d++)g=$i(a,E(d)),e=new ok,b[d]=ti(e,g);return new Si(b)}function mk(){this.a={}}s(453,43,ua,mk);w(453);function ok(){this.a={}}s(162,43,{44:1,45:1,557:1},ok);w(162);function Wj(){Wj=m;G();Xj=Uj(cm,new dm);rb(cm);em=(rb(cm),cm.k+".Queue-");fm=em+"fx"}
+function Yj(a,b,d){var e=fm,f,g,l,n;g=a.c;l=0;for(n=g.length;l<n;++l)f=g[l],gm(a,f,e,new hm(a,f,e,b,d));return a}function gm(a,b,d,e){var f;return b?(f=(G(),Rj(b,d,null)),e&&(!f&&(f=Rj(b,d,new im)),jm(f,e,f.c.b,f.c),1==f.b&&km(a,b,d,f)),f):null}function km(a,b,d,e){var f,g;(e=0==e.b?null:(J(0!=e.b),e.a.a.c))?(e.g=b,hi(e,b)):(lm((f=d+".Empty",g=(G(),Rj(b,f,null)),!g&&(g=Rj(b,f,new mm("once memory"))),g),O(y(z,1),h,1,3,[])),wj(a,b,d),wj(a,b,d+".Empty"))}function nm(a){Wj();Qj.call(this,a)}
+s(107,7,{},nm);_.Ob=function(a,b){return Yj(this,a,b)};var fm,em,Xj,cm=w(107);function zi(){zi=m;Wj();Uj(om,new pm)}function qm(a){zi();nm.call(this,a)}s(322,107,{},qm);var om=w(322);function pm(){}s(323,1,{},pm);_._b=function(a){return new qm(a)};w(323);function Ul(){}s(190,1,{},Ul);_._b=function(a){return new Vl(a)};w(190);function dm(){}s(305,1,{},dm);_._b=function(a){return new nm(a)};w(305);function hm(a,b,d,e,f){this.e=a;ni.call(this);this.b=b;this.a=e;this.c=f;this.d=d}s(303,6,ta,hm);
+_.Jb=function(){Pb(new rm(this),this.a)};_.a=0;w(303);function rm(a){this.a=a}s(304,35,{},rm);_.W=function(){var a,b,d,e;b=this.a.c;d=0;for(e=b.length;d<e;++d){a=b[d];var f=this.a.b;a.g=f;hi(a,f)}b=this.a.e;d=this.a.b;e=this.a.d;a=this.a;(f=gm(b,d,e,null))&&qb(a)===qb(0==f.b?null:(J(0!=f.b),f.a.a.c))&&(a=gm(b,d,e,null))&&(0==a.b||(J(0!=a.b),sm(a,a.a.a)),km(b,d,e,a))};w(304);
+function Di(){Di=m;Wj();tm=O(y(hb,1),h,2,4,"html body head tr thead tfoot options script noscript style title".split(" "));Uj(Ei,new um)}function vm(a){var b,d,e,f;f=new C;a=a.c;d=0;for(e=a.length;d<e;++d){for(var g=b=a[d],l=tm,n=void 0,p=void 0,q=void 0,p=new Jg("^("),q=null!=l?l.length:0,n=0;n<q;n++)Tc(p,l[n].toUpperCase()),n<q-1&&(p.a+="|");p.a+=")$";(b=jl((K(),g).tagName.toUpperCase(),p.a)?null:new wm(b))&&Ob(f,(T(),b.O))}return jj(Ri(f),Ei)}function xm(a){Di();nm.call(this,a)}s(301,107,{},xm);
+var tm,Ei=w(301);function um(){}s(302,1,{},um);_._b=function(a){return new xm(a)};w(302);function ym(){ym=m;G();Uj(zm,new Am)}function Bm(a){ym();Qj.call(this,a)}s(398,7,{},Bm);var zm=w(398);function Am(){}s(399,1,{},Am);_._b=function(a){return new Bm(a)};w(399);function Cm(a){this.a=a;ni.call(this)}s(400,6,ta,Cm);
+_.Kb=function(){var a,b,d,e;d=li(this,0,null);b=li(this,1,null);e=d.a.responseText;if(null!=e&&""!==e)try{if(vd("xml",this.a))a=d.a.responseText,e=(new DOMParser).parseFromString(a,"text/xml").documentElement;else if(vd("json",this.a)){var f=d.a.responseText;e=(!U&&(U=new ri),gk(f))}else if(e=d.a.responseText,vd("script",this.a)){var g=nc((ic(),new pc(e))),l,n,p=g.c?g.c:lc();ic();l=p.document;n=mc(l);var q=g.b;ic();n.text=q;ic();(l.head||l.getElementsByTagName("head")[0]).appendChild(n);g.a&&(ic(),
+n.parentNode.removeChild(n))}}catch(r){if(r=H(r),t(r,12))a=r,Zb(a);else throw I(r);}return O(y(z,1),h,1,3,[e,"success",b,d])};w(400);function Dm(){ni.call(this)}s(401,6,ta,Dm);_.Kb=function(){var a,b,d;a=li(this,0,null);d=li(this,1,Rg);b=""+a;return O(y(z,1),h,1,3,[null,b,d,null,a])};w(401);var pk=yb();function Em(){}s(121,1,{},Em);w(121);function Fm(a,b){Gm(a.c.d,b);return a}function Hm(){new Im(this);new Jm(this);this.c=new Km}function Lm(a){new Im(this);new Jm(this);this.c=a}s(73,1,va,Lm);
+_.Tb=function(a){Gm(this.c.d,a);Gm(this.c.c,a)};_.Ub=function(){return"resolved"===this.c.e};_.Vb=function(a){Gm(this.c.a,a)};_.tS=function(){return"Promise this\x3d"+kb(this)+" "+this.c};w(73);s(127,73,va);w(127);function Mm(a){this.b=a;Hm.call(this);this.ac(this.c)}s(478,127,va,Mm);
+_.ac=function(a){var b=nc((ic(),new qc(W(this.b.a,"url"))));b.a=new Nm(this,a);var d;a=b.c?b.c:lc();ic();a=a.document;d=mc(a);b.a&&kc(d,b.a);b=b.b;ic();d.src=b;ic();(a.head||a.getElementsByTagName("head")[0]).appendChild(d);this.a=d};w(478);function Om(a){(G(),new V(oc)).Ob(0,O(y(oi,1),h,6,0,[new Pm(a,a.b)]))}function Nm(a,b){this.a=a;this.b=b}s(479,1,{561:1},Nm);_.X=function(a){var b=this.b;a=O(y(z,1),h,1,3,[a]);"pending"==b.e&&lm(b.c,a)};_.Y=function(){Om(this)};w(479);
+function Pm(a,b){this.a=a;this.b=b;ni.call(this)}s(480,6,ta,Pm);_.Jb=function(){Qm(this.b,O(y(z,1),h,1,3,[this.a.a.a]))};w(480);function qk(){this.a={}}s(454,43,ua,qk);w(454);function Gm(a,b){var d,e,f;e=0;for(f=b.length;e<f;++e)d=b[e],a.a||!a.f||!d||a.d&&-1!=Rm(a.f,d)||Ob(a.f,d),a.b&&a.e&&Sm(d,Tm(a.e))}function Um(a){a.f=null;a.a=!0}
+function lm(a,b){var d,e;if(!a.a&&(a.a=a.c,a.b&&(a.e=new Vm(new Si(b))),a.f))for(e=new Bg(a.f);e.b<e.d.Yc()&&(d=(J(e.b<e.d.Yc()),e.d.Ed(e.c=e.b++)),Sm(d,b)||!a.g););}function Sm(a,b){var d;null!=b&&1==b.length&&null!=b[0]&&0!=(ab(b[0]).e&4)&&(b=b[0]);if(t(a,6))return d=a.Kb(b),!t(d,58)||d.a;t(a,561)&&Om(a);return!0}function mm(a){this.f=new C;this.c=-1!=a.indexOf("once");this.b=-1!=a.indexOf("memory");this.d=-1!=a.indexOf("unique");this.g=-1!=a.indexOf("stopOnFalse")}s(90,1,{},mm);_.a=!1;_.b=!1;
+_.c=!1;_.d=!1;_.e=null;_.g=!1;w(90);function Pg(a,b){"pending"==a.e&&lm(a.c,b)}function Qm(a,b){"pending"==a.e&&lm(a.d,b)}function Qg(a,b){"pending"==a.e&&lm(a.d,b)}function Km(){this.a=new mm("memory");this.c=new mm("once memory");this.d=new mm("once memory");Gm(this.d,O(y(oi,1),h,6,0,[new Wm(this)]));Gm(this.c,O(y(oi,1),h,6,0,[new Xm(this)]))}s(128,1,{},Km);
+_.tS=function(){var a="Deferred this\x3d"+kb(this)+" promise\x3d"+(!this.b&&(this.b=new Lm(this)),kb(this.b))+" state\x3d"+this.b.c.e+" restatus\x3d",b;b=this.d;b="stack\x3d"+(b.f?E(b.f.b.length):"null")+" "+b.a;return a+b};_.b=null;_.e="pending";w(128);function Wm(a){this.a=a;ni.call(this)}s(193,6,ta,Wm);_.Jb=function(){this.a.e="resolved";Um(this.a.d);var a=this.a.a;a.b||Um(a);a.f=null};w(193);function Xm(a){this.a=a;ni.call(this)}s(194,6,ta,Xm);
+_.Jb=function(){this.a.e="rejected";Um(this.a.c);var a=this.a.a;a.b||Um(a);a.f=null};w(194);function Im(a){this.a=a;ni.call(this)}s(129,6,ta,Im);_.Jb=function(){Qg(this.a.c,this.f)};w(129);function Jm(a){this.a=a;ni.call(this)}s(130,6,ta,Jm);_.Jb=function(){Pg(this.a.c,this.f)};w(130);function Ym(a,b,d){0==b&&Qm(a.b,d);if(1==b){var e=a.b;"pending"==e.e&&lm(e.c,d)}2==b&&(a=a.b,"pending"==a.e&&lm(a.a,d))}
+function Zm(a,b,d){ni.call(this);this.a=!1;this.d=d;this.c=b.length>this.d?b[this.d]:null;this.b=a;this.a=!1}s(94,6,ta,Zm);_.Jb=function(){var a,b;b=this.f;this.c?(a=mi(this.c,b).Kb(b),t(a,83)?2==this.d?a.Vb(O(y(oi,1),h,6,0,[new $m(this)])):a.Tb(O(y(oi,1),h,6,0,[new an(this,a)])):(a=Jk((Zf(),$f),a)?b:(null!=a&&ab(a),a),Ym(this,this.d,O(y(z,1),h,1,3,[a])))):Ym(this,this.d,b)};_.a=!1;_.d=0;w(94);function $m(a){this.a=a;ni.call(this)}s(191,6,ta,$m);_.Jb=function(){Ym(this.a,2,this.f)};w(191);
+function an(a,b){this.a=a;this.b=b;ni.call(this)}s(192,6,ta,an);_.Jb=function(){Ym(this.a,(0==this.a.d||1==this.a.d&&this.a.a)&&this.b.Ub()?0:1,this.f)};w(192);
+function bn(a){var b,d,e,f,g,l,n,p,q,r;Hm.call(this);p=W(a.a,"type");e=W(a.a,"url");d=(!Ol(a.a,"data")&&ek(a.a,"data",{}),Ol(a.a,"data"));b=W(a.a,"contentType");q=(Zf(),d&&"[object FormData]"==Object.prototype.toString.call(d)?$f:ag);r=new $wnd.XMLHttpRequest;try{null!=W(a.a,"username")&&null!=W(a.a,"password")?r.open(p,e,!0,W(a.a,"username"),W(a.a,"password")):null!=W(a.a,"username")?r.open(p,e,!0,W(a.a,"username")):r.open(p,e,!0)}catch(u){u=H(u);if(t(u,59)){a=u;d=new Ug(e);q=new Og(a.Z());if(d.e)throw new X("Can't overwrite cause");
+Ic(q!=d,"Self-causation not permitted");d.e=q;Pg(this.c,O(y(z,1),h,1,3,[a,null]));return}throw I(u);}e=Rl(new cn(this));r&&Zi(r,"onprogress",e);e=r?$i(r,"upload"):null;f=Rl(new dn(this));e&&Zi(e,"onprogress",f);if(n=(!Ol(a.a,"headers")&&ek(a.a,"headers",{}),Ol(a.a,"headers")))for(f=Mj(n),g=0,l=f.length;g<l;++g){e=f[g];var B=""+$i(n,""+e);r.setRequestHeader(e,B)}!d||q.a||vd("GET",p)||r.setRequestHeader("Content-Type",b);b=Sj(a.a,"withCredentials",Kl);b=!!b&&b.a;r&&Zi(r,"withCredentials",b?$f:ag);b=
+v(bk(a.a,"timeout"));b=new Kg(r,b,this);en(r,new fn(this,b));try{Ql(r,"send",O(y(z,1),h,1,3,[q.a?d:W(a.a,"dataString")]))}catch(P){if(P=H(P),t(P,59))a=P,Pg(this.c,O(y(z,1),h,1,3,[a,null]));else throw I(P);}}s(498,73,va,bn);w(498);function cn(a){this.a=a;ni.call(this)}s(499,6,ta,cn);_.Jb=function(){var a,b,d,e;b=li(this,0,null);e=Ml(b,"total");a=Ml(b,"loaded");d=0==a?0:0==e?100:100*a/e;b=this.a.c;e=O(y(z,1),h,1,3,[new S(e),new S(a),new S(d),"download"]);"pending"==b.e&&lm(b.a,e)};w(499);
+function dn(a){this.a=a;ni.call(this)}s(500,6,ta,dn);_.Jb=function(){var a,b,d,e;b=li(this,0,null);e=Ml(b,"total");a=Ml(b,"loaded");d=100*a/e;b=this.a.c;e=O(y(z,1),h,1,3,[new S(e),new S(a),new S(d),"upload"]);"pending"==b.e&&lm(b.a,e)};w(500);function fn(a,b){this.a=a;this.b=b}s(501,1,{},fn);_.bc=function(a){4==a.readyState&&(Sg(a),this.b.yb(this.a))};w(501);function gn(){gn=m;hn=/^(.+[\?&])([^=]+)=\?(.*)$/}
+function jn(a,b){gn();var d=a,e=null,f,g;Hm.call(this);f=new yh;0<b&&(f.b=b);null==e&&(g=hn.exec(d))&&4==g.length&&(e=g[2],d=g[1]+g[3]);null!=e&&(f.a=e);f.Bb(d,new kn(this))}s(171,73,va,jn);var hn;w(171);function kn(a){this.a=a}s(497,1,{},kn);_.cc=function(a){Pg(this.a.c,O(y(z,1),h,1,3,[a]))};_.Y=function(a){Qg(this.a.c,O(y(z,1),h,1,3,[a]))};w(497);function vj(){vj=m;ln=new Gg;ln.Re(mn,new nn);ln.Re(on,new nn)}var mn="mouseenter",on="mouseleave",ln;s(431,1,{});w(431);function nn(){new pn;new qn}
+s(155,431,{},nn);w(155);function qn(){ni.call(this)}s(432,6,ta,qn);w(432);function pn(){ni.call(this)}s(433,6,ta,pn);w(433);function ij(a){return T(),a.O}function rn(a,b){sn(a,tn((un(),vn).Mc(wn((T(),a.O))))+"-"+b,!1)}function sn(a,b,d){xn((un(),vn).Mc(wn((T(),a.O))),b,d)}function tn(a){var b;a=a.className||"";b=yn(a,zn(32));return 0<=b?a.substr(0,b):a}
+function xn(a,b,d){if(!a)throw new dc("Null widget handle. If you are creating a composite, ensure that initWidget() has been called.");b=ld(b);if(0==b.length)throw new D("Style names cannot be empty");d?Yc(a,b):kd(a,b)}
+function An(a,b){if(!a)throw new dc("Null widget handle. If you are creating a composite, ensure that initWidget() has been called.");b=ld(b);if(0==b.length)throw new D("Style names cannot be empty");var d=b,e=(a.className||"").split(/\s+/);if(e){var f=e[0],g=f.length;e[0]=d;for(var l=1,n=e.length;l<n;l++){var p=e[l];p.length>g&&"-"==p.charAt(g)&&0==p.indexOf(f)&&(e[l]=d+p.substring(g))}a.className=e.join(" ")}}s(20,1,{24:1,20:1});_.dc=Bn;_.ec=function(){throw new Cn;};
+_.fc=function(a){(T(),this.O).style.height=a};_.gc=function(a){(T(),this.O).style.width=a};_.tS=function(){var a;this.O?(a=(T(),this.O),a=(K(),L).lb(a)):a="(null handle)";return a};w(20);function Dn(a,b,d){return rg(a.M?a.M:a.M=new Dg(a),d,b)}function En(a,b){a.M&&ig(a.M,b)}function Fn(a){var b;if(a.kc())throw new X("Should only call onAttach when the widget is detached from the browser's document");a.K=!0;T();a.O.__listener=a;b=a.L;a.L=-1;0<b&&a.rc(b);a.ic();a.oc();gg(a)}
+function Gn(a,b){var d;switch(T(),Hn((K(),b).type)){case 16:case 32:if((d=L.mb(b))&&Wc(a.O,d))return}d=a.O;var e,f,g,l;if(Uf&&(e=(K(),b).type,e=Uf.a[e]))for(l=e.vc();l.Gc();)g=l.Hc(),e=g.a.d,f=g.a.e,g.a.d=b,g.a.e=d,En(a,g.a),g.a.d=e,g.a.e=f}function In(a){if(!a.kc())throw new X("Should only call onDetach when the widget is attached to the browser's document");try{a.pc(),gg(a)}finally{try{a.jc()}finally{T(),a.O.__listener=null,a.K=!1}}}
+function Jj(a){if(!a.N)Jn(),Kn.a.Oe(a)&&Ln(a);else if(t(a.N,38))a.N.tc(a);else if(a.N)throw new X("This widget's parent does not implement HasWidgets");}function Mn(a,b){var d;d=a.N;if(b){if(d)throw new X("Cannot set a new parent without first clearing the old parent");a.N=b;b.kc()&&a.lc()}else try{d&&d.kc()&&a.nc()}finally{a.N=null}}function Nn(a,b){-1==a.L?On((T(),a.O),b|(a.O.__eventBits||0)):a.L|=b}s(17,20,wa);_.hc=function(){return this};_.ic=Pn;_.jc=Pn;_.xb=function(a){En(this,a)};_.kc=function(){return this.K};
+_.lc=function(){Fn(this)};_.mc=function(a){Gn(this,a)};_.nc=function(){In(this)};_.oc=Pn;_.pc=Pn;_.qc=function(a){Mn(this,a)};_.rc=function(a){Nn(this,a)};_.K=!1;_.L=0;var Qn=w(17);s(36,17,ya);_.sc=function(){throw new Rn("This panel does not support no-arg add()");};_.ic=function(){Sn(this,(Tn(),Un))};_.jc=function(){Sn(this,(Tn(),Vn))};w(36);function Wn(a,b,d){Jj(b);Xn(a.a,b);T();var e=Yn(b.O);d.appendChild(e);Mn(b,a)}
+function Zn(a,b){var d;if(b.N!=a)return!1;try{Mn(b,null)}finally{d=(T(),b.O),Vc((K(),d)).removeChild(d),$n(a.a,b)}return!0}s(153,36,ya);_.uc=ik;_.vc=function(){return new ao(this.a)};_.tc=function(a){return Zn(this,a)};w(153);s(72,153,Aa);_.sc=function(a){Wn(this,a,(T(),this.O))};w(72);
+function bo(a,b){var d,e,f,g,l;e=pj((G(),new V(b))).c;f=0;for(g=e.length;f<g;++f)if(d=e[f],l=Pj(new V(d))){d=a;var n=void 0,p=void 0,p=l.N,n=!1;if(p)if(t(p,72)){var p=l,q=void 0,q=p.N;if(t(q,72))$n(q.uc(),p),p.qc(null);else throw new X("You can only use this method to detach a child from an HTMLPanel");}else Jj(l),n=!0;else Jn(),Kn.a.Oe(l)&&Ln(l);Xn(d.a,l);n&&(T(),n=Yn(l.O),d.O.appendChild(n));Mn(l,d)}else bo(a,d)}
+function wm(a){var b,d;this.a=new co(this);this.O=(T(),M());this.O.innerHTML="";a&&((d=Pj((G(),new V(a))))?(b=d.N,t(b,36)?(Wn(this,d,this.O),b.sc(this)):(b=Vc((K(),a)),b.appendChild(this.O),this.O.appendChild(a),eo(this,null))):(this.O=a,eo(this,null)));bo(this,this.O)}s(475,72,Aa,wm);w(475);
+function eo(a,b){var d,e;if(a&&!a.N)if(b)if(t(b,72))d=b,(e=Uc((T(),a.O)))?Wn(d,a,e):Wn(d,a,d.O);else if(t(b,84))b.Bc(a);else if(t(b,38))try{b.sc(a)}catch(f){if(f=H(f),t(f,25))a.qc(b);else throw I(f);}else a.qc(b);else{a:{var g;e=Uc((T(),a.O));for(d=$doc.body;e&&d!=e;){if(Tj(e)&&(g=Pj((G(),new V(e))))){b=g;break a}e=Vc((K(),e))}b=null}b?eo(a,b):(Jn(),zg(Kn,a),a.lc())}}function T(){T=m;fo=4==Ta?new go:new ho}function io(a){T();var b=$doc;return(K(),b).createElement(a)}
+function jo(a,b,d){T();b==ko&&8192==Hn((K(),a).type)&&(ko=null);d.mc(a)}function wn(a){T();return fd((K(),a))}function lo(a){T();var b;var d=mo,e,f,g;no&&d&&d.a.d.Oe(no)?(b=oo.a,e=oo.b,f=oo.c,g=oo.d,po(oo),oo.d=a,ig(d,oo),d=!(oo.a&&!oo.b),oo.a=b,oo.b=e,oo.c=f,oo.d=g,b=d):b=!0;!b&&a&&((K(),a).stopPropagation(),a.preventDefault());return b}function Yn(a){T();return a.__gwt_resolve?a.__gwt_resolve():a}function On(a,b){T();fo.yc(a,b)}var fo,ko;function qo(a){return T(),Hn((K(),a).type)}
+function ro(a){T();so(fo);!no&&(no=new dg);mo||(mo=new Eg(null,!0),oo=new to);return rg(mo,no,a)}var mo;function po(a){a.f=!1;a.g=null;a.a=!1;a.b=!1;a.c=!0;a.d=null}function to(){}s(276,527,{},to);_.pb=function(a){a.wc(this);oo.c=!1};_.qb=function(){return no};_.sb=function(){po(this)};_.a=!1;_.b=!1;_.c=!1;var no,oo;w(276);function uo(){uo=m;new vo;wo=new xo;yo=zo()}
+function zo(){var a;a=(Ao(),Bo).zc();null!=a&&a.length?(a=a.substr(1,a.length-1),a=$wnd.decodeURI(a.replace("%23","#"))):a="";return a}function Co(){uo();var a;a=zo();a!==yo&&(yo=a,bg(wo,a))}var wo,yo;function xo(){this.a=new Dg(null)}s(481,1,{21:1},xo);_.xb=function(a){ig(this.a,a)};w(481);function vo(){var a;a=A(Co);$wnd.addEventListener("hashchange",a,!1)}s(482,1,{},vo);w(482);function Ao(){Ao=m;Bo=4==Ta?new Do:new Eo}function Fo(a,b){return rg((!Go&&(Go=new Ho),Go),a,b)}
+function Io(){Ao();var a;Jo&&(a=new Ko,Go&&ig(Go,a));return null}var Jo=!1,Go,Bo,Lo=0,Mo=0,No=!1;function Oo(){Oo=m;Po=new dg}function Ko(){Oo()}s(310,527,{},Ko);_.pb=Qo;_.qb=function(){return Po};var Po;w(310);var Ro="",So;function Ho(){Eg.call(this,null,!1)}s(110,47,{21:1},Ho);w(110);
+function Hn(a){switch(a){case "blur":return 4096;case "change":return 1024;case "click":return 1;case "dblclick":return 2;case "focus":return 2048;case "keydown":return 128;case "keypress":return 256;case "keyup":return 512;case "load":return 32768;case "losecapture":return 8192;case "mousedown":return 4;case "mousemove":return 64;case "mouseout":return 32;case "mouseover":return 16;case "mouseup":return 8;case "scroll":return 16384;case "error":return Ba;case "DOMMouseScroll":case "mousewheel":return Ca;
+case "contextmenu":return 262144;case "paste":return pa;case "touchstart":return Da;case "touchmove":return Ea;case "touchend":return qa;case "touchcancel":return Fa;case "gesturestart":return Ga;case "gesturechange":return Ha;case "gestureend":return Ia;default:return-1}}function so(a){To||(a.xc(),To=!0)}function Tj(a){a=a.__listener;return!pb(a)&&t(a,19)?a:null}s(546,1,{});var To=!1;w(546);
+function Uo(){Uo=m;Vo={_default_:Wo,dragenter:Xo,dragover:Xo};Yo={click:Zo,dblclick:Zo,mousedown:Zo,mouseup:Zo,mousemove:Zo,mouseover:Zo,mouseout:Zo,mousewheel:Zo,keydown:$o,keyup:$o,keypress:$o,touchstart:Zo,touchend:Zo,touchmove:Zo,touchcancel:Zo,gesturestart:Zo,gestureend:Zo,gesturechange:Zo}}function ap(a,b){for(var d=0,e=a.firstChild;e;){if(1==e.nodeType){if(b==d)return e;++d}e=e.nextSibling}return null}
+function bp(){Y=A(Wo);cp=A(dp);var a=Vo;ep(a,function(b,e){a[b]=A(e)});var b=Yo;ep(b,function(a,e){b[a]=A(e)});ep(b,function(a,b){$wnd.addEventListener(a,b,!0)})}function fp(a,b){var d;so(fo);d=Vo;a.addEventListener(b,d[b]||d._default_,!1)}
+function gp(a,b){var d=(a.__eventBits||0)^b;a.__eventBits=b;d&&(d&1&&(a.onclick=b&1?Y:null),d&2&&(a.ondblclick=b&2?Y:null),d&4&&(a.onmousedown=b&4?Y:null),d&8&&(a.onmouseup=b&8?Y:null),d&16&&(a.onmouseover=b&16?Y:null),d&32&&(a.onmouseout=b&32?Y:null),d&64&&(a.onmousemove=b&64?Y:null),d&128&&(a.onkeydown=b&128?Y:null),d&256&&(a.onkeypress=b&256?Y:null),d&512&&(a.onkeyup=b&512?Y:null),d&1024&&(a.onchange=b&1024?Y:null),d&2048&&(a.onfocus=b&2048?Y:null),d&4096&&(a.onblur=b&4096?Y:null),d&8192&&(a.onlosecapture=
+b&8192?Y:null),d&16384&&(a.onscroll=b&16384?Y:null),d&32768&&(a.onload=b&32768?cp:null),d&Ba&&(a.onerror=b&Ba?Y:null),d&Ca&&(a.onmousewheel=b&Ca?Y:null),d&262144&&(a.oncontextmenu=b&262144?Y:null),d&pa&&(a.onpaste=b&pa?Y:null),d&Da&&(a.ontouchstart=b&Da?Y:null),d&Ea&&(a.ontouchmove=b&Ea?Y:null),d&qa&&(a.ontouchend=b&qa?Y:null),d&Fa&&(a.ontouchcancel=b&Fa?Y:null),d&Ga&&(a.ongesturestart=b&Ga?Y:null),d&Ha&&(a.ongesturechange=b&Ha?Y:null),d&Ia&&(a.ongestureend=b&Ia?Y:null))}function $o(a){lo(a)}
+function Zo(a){Uo();if(lo(a)&&hp){var b;b=hp;T();var d;(d=Tj(b))?(jo(a,b,d),b=!0):b=!1;b&&(K(),a).stopPropagation()}}function Xo(a){(K(),a).preventDefault();Wo(a)}function Wo(a){var b;for(b=(K(),L).bb(a);b&&!Tj(b);)b=b.parentNode;b&&jo(a,1!=b.nodeType?null:b,Tj(b))}function dp(a){(K(),L).bb(a).__gwtLastUnhandledEvent=a.type;Wo(a)}s(547,546,{});_.xc=function(){bp()};_.yc=function(a,b){so(this);gp(a,b)};var Vo,hp,Yo,Y,cp;w(547);function ip(){ip=m;Uo();Yo.DOMMouseScroll=Zo}
+function jp(){$wnd.addEventListener("mouseout",A(function(a){var b=(Uo(),hp);if(b&&!a.relatedTarget&&"html"==a.target.tagName.toLowerCase()){var d=$doc.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,$wnd,0,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,null);b.dispatchEvent(d)}}),!0)}function ho(){ip()}s(397,547,{},ho);_.xc=function(){bp();jp()};_.yc=function(a,b){so(this);gp(a,b);b&Ca&&a.addEventListener("DOMMouseScroll",(Uo(),Y),!1)};w(397);
+s(548,547,{});w(548);function go(){Uo()}s(396,548,{},go);w(396);function ep(a,b){for(var d in a)a.hasOwnProperty(d)&&b(d,a[d])}function kp(){var a=$wnd.onbeforeunload,b=$wnd.onunload;$wnd.onbeforeunload=function(b){var e;try{e=A(Io)()}finally{b=a&&a(b)}if(null!=e)return e;if(null!=b)return b};$wnd.onunload=A(function(a){try{Ao(),Jo&&kg((!Go&&(Go=new Ho),Go))}finally{b&&b(a),$wnd.onresize=null,$wnd.onscroll=null,$wnd.onbeforeunload=null,$wnd.onunload=null}})}
+function lp(){var a=$wnd.onresize;$wnd.onresize=A(function(b){try{Ao();var d,e;if(No&&(e=Bd(),d=Ad(),Mo!=e||Lo!=d)){Mo=e;Lo=d;var f=(!Go&&(Go=new Ho),Go),g;og&&(g=new mg,ig(f,g))}}finally{a&&a(b)}})}function Do(){}s(440,1,{},Do);_.zc=function(){return $wnd.location.hash};w(440);function Eo(){}s(458,440,{},Eo);_.zc=function(){var a=$wnd.location.href,b=a.indexOf("#");return 0<b?a.substring(b):""};w(458);
+function mp(a,b){var d;if(d=Zn(a,b)){var e=(T(),b.O);e.style.left="";e.style.top="";e.style.position=""}return d}s(419,153,ya);_.sc=function(a){Wn(this,a,(T(),this.O))};_.tc=function(a){return mp(this,a)};w(419);function Tn(){Tn=m;Un=new np;Vn=new op}function pp(a){Ag.call(this,a)}function Sn(a,b){Tn();var d,e,f;d=null;for(f=a.vc();f.Gc();){e=f.Hc();try{b.Ac(e)}catch(g){if(g=H(g),t(g,13))e=g,!d&&(d=new yg),zg(d,e);else throw I(g);}}if(d)throw new pp(d);}s(424,154,ma,pp);var Un,Vn;w(424);
+function np(){}s(425,1,{},np);_.Ac=function(a){a.lc()};w(425);function op(){}s(426,1,{},op);_.Ac=function(a){a.nc()};w(426);function qp(){qp=m;rp()}s(448,17,wa);_.lc=function(){Fn(this);var a=this.a;-1==(K(),L).jb(a)&&this.a&&(this.a.tabIndex=0)};w(448);s(449,448,wa);w(449);
+function sp(){qp();var a=(T(),wd());T();var b=$doc,b=(K(),b).createElement("span");this.O=(T(),b);this.a=a;a=$doc;this.b=(K(),a).createElement("label");this.O.appendChild(this.a);this.O.appendChild(this.b);a=$doc;!a.gwt_uid&&(a.gwt_uid=1);a="gwt-uid-"+a.gwt_uid++;this.a.id=a;this.b.htmlFor=a;new tp(this.b);this.a&&(this.a.tabIndex=0);ad(this.O,"gwt-CheckBox")}s(159,449,wa,sp);_.oc=function(){T();this.a.__listener=this};
+_.pc=function(){T();this.a.__listener=null;var a=this.K?(Zf(),this.a.checked?$f:ag):(Zf(),this.a.defaultChecked?$f:ag);!a&&(a=(Zf(),ag));Zf();this.a.checked=a.a;this.a.defaultChecked=a.a};_.rc=function(a){-1==this.L?On(this.a,a|(T(),this.a.__eventBits||0)):-1==this.L?On((T(),this.O),a|(this.O.__eventBits||0)):this.L|=a};_.c=!1;w(159);function up(a){this.a=a}s(450,1,{},up);w(450);
+function vp(a){if(!a.J)throw new X("initWidget() is not called yet");-1!=a.L&&(Nn(a.J,a.L),a.L=-1);Fn(a.J);T();a.O.__listener=a;gg(a)}s(529,17,wa);_.kc=function(){return this.J?this.J.K:!1};_.lc=function(){vp(this)};_.mc=function(a){Gn(this,a);Gn(this.J,a)};_.nc=function(){try{gg(this)}finally{In(this.J)}};_.ec=function(){T();throw new Cn;};w(529);
+function wp(a,b,d){d?a.a.innerHTML=b||"":(d=a.a,(K(),d).textContent=b||"");if(a.c!=a.b)switch(a.c=a.b,b=a.a,a.b.b){case 0:b.dir="rtl";break;case 1:b.dir="ltr";break;case 2:Vg(b)!=(Wg(),Zg)&&(b.dir="")}}function tp(a){this.a=a;this.c=this.b=Vg(a)}s(157,1,{},tp);w(157);s(143,17,wa);w(143);s(377,143,wa);w(377);function xp(){var a=M(),a=(vd("span",(K(),a).tagName),a);this.O=(T(),a);this.a=new tp(this.O);ad((T(),this.O),"gwt-HTML");wp(this.a,"",!0);this.O.style.whiteSpace=(Gf(),"nowrap")}
+s(111,377,wa,xp);w(111);function yp(a,b){if(a.D!=b)return!1;try{Mn(b,null)}finally{var d=a.Cc(),e=(T(),b.O);d.removeChild(e);a.D=null}return!0}function zp(a,b){if(b!=a.D&&(b&&Jj(b),a.D&&yp(a,a.D),a.D=b)){T();var d=a.Cc(),e=Yn(ij(a.D));d.appendChild(e);Mn(b,a)}}s(99,36,Ja);_.sc=function(a){if(this.D)throw new X("SimplePanel can only contain one child widget");this.Bc(a)};_.Cc=Bn;_.vc=function(){return new Ap(this)};_.tc=function(a){return yp(this,a)};_.Bc=function(a){zp(this,a)};w(99);
+function un(){un=m;vn=4==Ta?new Bp:new Cp}function Dp(a){a.B&&(Ep(a.A,!1,!1),kg(a))}function Fp(a){var b;if(b=a.D)null!=a.j&&b.fc(a.j),null!=a.k&&b.gc(a.k)}function Gp(a,b,d){a.s=b;a.C=d;b-=yd();d-=zd();a=(T(),a.O);a.style.left=b+(Q(),"px");a.style.top=d+"px"}s(100,99,Ja);_.Cc=function(){return vn.Lc(wn((T(),this.O)))};_.dc=function(){return vn.Mc(wn((T(),this.O)))};_.Dc=function(){this.Ec(!1)};_.Ec=function(){Dp(this)};_.pc=function(){this.B&&Ep(this.A,!1,!0)};
+_.fc=function(a){this.j=a;Fp(this);0==a.length&&(this.j=null)};_.Fc=function(a,b){Gp(this,a,b)};_.Bc=function(a){zp(this,a);Fp(this)};_.gc=function(a){this.k=a;Fp(this);0==a.length&&(this.k=null)};_.g=!1;_.i=!1;_.q=!1;_.r=!1;_.s=0;_.t=!1;_.w=!1;_.B=!1;_.C=0;var vn;w(100);
+function ng(){var a,b,d,e;null.of();e=(Ao(),Bd());d=Ad();null.of((Ud(),"none"));null.of((Q(),"0.0px"));null.of("0.0px");b=$doc;b=(("CSS1Compat"===b.compatMode?b.documentElement:b.body).scrollWidth||0)|0;a=$doc;a=(("CSS1Compat"===a.compatMode?a.documentElement:a.body).scrollHeight||0)|0;null.of((b>e?b:e)+"px");null.of((a>d?a:d)+"px");null.of("block")}function Hp(){}s(272,1,{},Hp);w(272);function Ip(a){this.a=a}s(273,1,{},Ip);
+_.wc=function(a){var b=this.a,d,e,f;if(a.a||!b.w&&a.b)b.t&&(a.a=!0);else if(!a.a)switch(e=a.d,d=(K(),L).nb(e),(d=nd(d)?Wc((T(),b.O),d)||!!d.shadowRoot&&d.shadowRoot.contains(b.O):!1)&&(a.b=!0),b.t&&(a.a=!0),f=(T(),Hn((K(),e).type)),f){case 4:case Da:if(ko){a.b=!0;break}if(!d&&b.g){b.Ec(!0);break}break;case 8:case 64:case 1:case 2:case qa:if(ko){a.b=!0;break}break;case 2048:e=L.nb(e),b.t&&!d&&e&&(e.blur&&e!=$doc.body&&e.blur(),a.a=!0)}};w(273);function Jp(a){this.a=a}s(274,1,{},Jp);
+_.wb=function(){this.a.i&&this.a.Dc()};w(274);function Kp(a){if(a.i){if(a.a.r){$doc.body.appendChild(a.a.n);var b;b=a.a.o;Ao();Jo||(kp(),Jo=!0);No||(lp(),No=!0);b=Fo((!og&&(og=new dg),og),b);a.f=b;ng();a.b=!0}}else a.b&&($doc.body.removeChild(a.a.n),Lp(a.f.a),a.f=null,a.b=!1)}function Mp(a){a.i||(Kp(a),a.c||mp(a.j.v,a.a));(un(),vn).Nc(ij(a.a),"rect(auto, auto, auto, auto)");ij(a.a).style.overflow="visible"}
+function Np(a,b){var d,e,f,g;a.i||(b=1-b);d=v(b*a.d);f=v(b*a.e);g=a.d-d>>1;e=a.e-f>>1;f=e+f;d=g+d;(un(),vn).Nc(ij(a.a),"rect("+g+"px, "+f+"px, "+d+"px, "+e+"px)")}
+function Ep(a,b,d){a.c=d;zb(a);a.g&&(Qb(a.g),a.g=null,Mp(a));a.a.B=b;var e=a.a;e.u&&(Lp(e.u.a),e.u=null);e.p&&(Lp(e.p.a),e.p=null);if(e.B){e.u=ro(new Ip(e));var f;f=new Jp(e);uo();f=rg(wo.a,(!qg&&(qg=new dg),qg),f);e.p=f}d=!d&&a.a.q;a.i=b;d?b?(Kp(a),ij(a.a).style.position="fixed",-1!=a.a.C&&a.a.Fc(a.a.s,a.a.C),(un(),vn).Nc(ij(a.a),"rect(0px, 0px, 0px, 0px)"),b=a.j.v,Wn(b,a.a,(T(),b.O)),a.g=new Op(a),Pb(a.g,1)):Ab(a):(Kp(a),a.i?(ij(a.a).style.position="absolute",-1!=a.a.C&&a.a.Fc(a.a.s,a.a.C),b=a.j.v,
+Wn(b,a.a,(T(),b.O))):a.c||mp(a.j.v,a.a),ij(a.a).style.overflow="visible")}function Pp(a,b){this.j=a;Eb.call(this);this.a=null;this.e=-1;this.a=b}s(270,101,{},Pp);_.P=function(){Mp(this)};_.Q=function(){this.d=hd((T(),this.a.O),"offsetHeight");this.e=hd(this.a.O,"offsetWidth");this.a.O.style.overflow="hidden";Np(this,(1+Math.cos(aa))/2)};_.R=function(a){Np(this,a)};_.b=!1;_.c=!1;_.d=0;_.e=0;_.i=!1;w(270);function Op(a){this.a=a}s(271,35,{},Op);_.W=function(){this.a.g=null;Ab(this.a)};w(271);
+function Qp(){Qp=m;Rp()}function Sp(a){return function(){this.__gwt_resolve=Tp;return a.ec()}}function Tp(){throw"A PotentialElement cannot be resolved twice.";}function Rp(){function a(){}a.prototype={className:"",clientHeight:0,clientWidth:0,dir:"",getAttribute:function(a){return this[a]},href:"",id:"",lang:"",nodeType:1,removeAttribute:function(a){this[a]=void 0},setAttribute:function(a,d){this[a]=d},src:"",style:{},title:""};$wnd.GwtPotentialElementShim=a}s(530,529,wa);w(530);
+function Jn(){Jn=m;Up=new Vp;Wp=new Gg;Kn=new yg}function Ln(a){Jn();try{a.nc()}finally{Kn.a.Se(a)}}function Xp(){Jn();var a;if(a=Wp.Qe(null))return a;0==Wp.Yc()&&(a=new Yp,Ao(),Jo||(kp(),Jo=!0),Fo(lg?lg:lg=new dg,a),bh());a=new Zp;Wp.Re(null,a);zg(Kn,a);return a}function $p(){Jn();return $doc.body}s(420,419,ya);var Up,Wp,Kn;w(420);function Vp(){}s(422,1,{},Vp);_.Ac=function(a){a.kc()&&a.nc()};w(422);function Yp(){}s(423,1,{},Yp);_.vb=function(){Jn();try{Sn(Kn,Up)}finally{Kn.a.Te(),Wp.Te()}};w(423);
+function Zp(){var a=$p();this.a=new co(this);this.O=(T(),a);Fn(this)}s(421,420,ya,Zp);w(421);function Ap(a){this.c=a;this.a=!!this.c.D}s(264,1,{},Ap);_.Gc=ik;_.Hc=function(){if(!this.a||!this.c.D)throw new Jc;this.a=!1;return this.b=this.c.D};_.Ic=function(){this.b&&yp(this.c,this.b)};_.a=!1;_.b=null;w(264);
+function Xn(a,b){var d=a.c,e,f;if(0>d||d>a.c)throw new aq;if(a.c==a.a.length){f=F(Qn,h,17,2*a.a.length,0);for(e=0;e<a.a.length;++e)f[e]=a.a[e];a.a=f}++a.c;for(e=a.c-1;e>d;--e)a.a[e]=a.a[e-1];a.a[d]=b}function $n(a,b){var d;a:{for(d=0;d<a.c;++d)if(a.a[d]==b)break a;d=-1}if(-1==d)throw new Jc;if(0>d||d>=a.c)throw new aq;for(--a.c;d<a.c;++d)a.a[d]=a.a[d+1];a.a[a.c]=null}function co(a){this.b=a;this.a=F(Qn,h,17,4,0)}s(491,1,{},co);_.vc=function(){return new ao(this)};_.c=0;w(491);
+function ao(a){this.c=a}s(169,1,{},ao);_.Gc=function(){return this.b<this.c.c};_.Hc=function(){if(this.b>=this.c.c)throw new Jc;this.a=this.c.a[this.b];++this.b;return this.a};_.Ic=function(){if(!this.a)throw new Qc;this.c.b.tc(this.a);--this.b;this.a=null};_.b=0;w(169);function rp(){rp=m;bq=4==Ta?new cq:new dq}s(476,1,{},function(){});_.Jc=function(a){a.focus()};var bq;w(476);function dq(){rp()}s(484,476,{},dq);w(484);function cq(){rp()}s(485,484,{},cq);
+_.Jc=function(a){$wnd.setTimeout(function(){a.focus()},0)};w(485);function Bp(){}s(459,1,{},Bp);_.Kc=function(){return M()};_.Lc=eq;_.Mc=function(a){return Vc((K(),a))};_.Nc=function(a,b){a.style.clip=b};w(459);function fq(){fq=m;a:{var a=navigator.userAgent;if(-1!=a.indexOf("Macintosh")&&(a=/rv:([0-9]+)\.([0-9]+)/.exec(a))&&3==a.length&&1008>=1E3*parseInt(a[1])+parseInt(a[2])){gq=!0;break a}gq=!1}}function Cp(){fq()}s(460,459,{},Cp);
+_.Kc=function(){var a;a=(T(),M());gq&&(a.innerHTML="\x3cdiv\x3e\x3c/div\x3e",qh((xc(),yc),new hq(a)));return a};_.Lc=function(a){return gq?fd((K(),a)):a};_.Mc=function(a){return gq?a:Vc((K(),a))};_.Nc=function(a,b){a.style.clip=b;var d=(Ud(),"none");a.style.display=d;a.style.display=""};var gq=!1;w(460);function hq(a){this.a=a}s(461,1,{},hq);_.ab=function(){this.a.style.overflow=(De(),"auto")};w(461);function iq(){var a,b;b=4==Ta?new jq:new kq;a=b.Oc();b=b.Pc();if(a!==b)throw new lq(a,b);}
+s(93,13,ba);w(93);s(32,93,ba);w(32);
+function lq(a,b){this.e=t("Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value ("+a+") does not match the runtime user.agent value ("+b+").\nExpect more errors.",13)?"Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value ("+a+") does not match the runtime user.agent value ("+b+").\nExpect more errors.":null;this.f=""+("Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value ("+a+") does not match the runtime user.agent value ("+
+b+").\nExpect more errors.");Xb(this)}s(174,32,ba,lq);w(174);function kq(){}s(444,1,{},kq);_.Oc=function(){return"gecko1_8"};_.Pc=function(){var a=navigator.userAgent.toLowerCase(),b=$doc.documentMode;return-1!=a.indexOf("webkit")?"safari":-1!=a.indexOf("msie")&&10<=b&&11>b?"ie10":-1!=a.indexOf("msie")&&9<=b&&11>b?"ie9":-1!=a.indexOf("msie")&&8<=b&&11>b?"ie8":-1!=a.indexOf("gecko")||11<=b?"gecko1_8":"unknown"};w(444);function jq(){}s(445,1,{},jq);_.Oc=function(){return"safari"};
+_.Pc=function(){var a=navigator.userAgent.toLowerCase(),b=$doc.documentMode;return-1!=a.indexOf("webkit")?"safari":-1!=a.indexOf("msie")&&10<=b&&11>b?"ie10":-1!=a.indexOf("msie")&&9<=b&&11>b?"ie9":-1!=a.indexOf("msie")&&8<=b&&11>b?"ie8":-1!=a.indexOf("gecko")||11<=b?"gecko1_8":"unknown"};w(445);function Sg(a){a.onreadystatechange=function(){}}function en(a,b){a.onreadystatechange=A(function(){b.bc(a)})}
+function Lp(a){var b=a.a,d=a.d,e=a.c;a=a.b;0<b.b?(d=new mq(b,d,e,a),!b.a&&(b.a=new C),Ob(b.a,d)):Hg(b,d,e,a)}function wg(a,b,d){this.a=a;this.d=b;this.c=null;this.b=d}s(313,1,{},wg);w(313);function tg(a,b,d){this.a=a;this.d=b;this.c=null;this.b=d}s(314,1,{},tg);_.ab=function(){ug(this.a,this.d,this.c,this.b)};w(314);function mq(a,b,d,e){this.a=a;this.d=b;this.c=d;this.b=e}s(315,1,{},mq);_.ab=function(){Hg(this.a,this.d,this.c,this.b)};w(315);
+function nq(){nq=m;a:{var a=document.createElement("fakeelement"),b={animationName:"animationend",OAnimationName:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},d;for(d in b)if(void 0!==a.style[d]){oq=b[d];break a}oq=void 0}a:for(a=document.createElement("fakeelement"),b=["animation","oAnimation","mozAnimation","webkitAnimation"],d=0;d<b.length;d++)if(void 0!==a.style[b[d]])break a}
+function pq(a,b){nq();var d=A(function(a){b.Qc(a)});a.addEventListener(oq,d,!1);!a._vaadin_animationend_callbacks&&(a._vaadin_animationend_callbacks=[]);a._vaadin_animationend_callbacks.push(d);return d}function qq(a){nq();return a.webkitAnimationName?a.webkitAnimationName:a.animationName?a.animationName:a.mozAnimationName?a.mozAnimationName:a.oAnimationName?a.oAnimationName:""}
+function rq(a){nq();a=a.a;return a.getPropertyValue?a.getPropertyValue("-webkit-animation-name")?a.getPropertyValue("-webkit-animation-name"):a.getPropertyValue("animation-name")?a.getPropertyValue("animation-name"):a.getPropertyValue("-moz-animation-name")?a.getPropertyValue("-moz-animation-name"):a.getPropertyValue("-o-animation-name")?a.getPropertyValue("-o-animation-name"):"":""}var oq;function sq(){sq=m;new im;tq=new C}var tq;
+function uq(){uq=m;var a;a=(!Z&&(Z=new vq),Z);var b,d,e,f;null==wq&&(b=f=e=d="",a.a.d?(d="ff",e="ff"+a.a.a,f=e+a.a.b,b="gecko"):a.a.c?(d="sa",e="ch",b="webkit"):a.a.k?(d="sa",e="sa"+a.a.a,f=e+a.a.b,b="webkit"):a.a.f?(d="ie",e="ie"+a.a.a,f=e+a.a.b,b="trident"):a.a.j&&(d="op",e="op"+a.a.a,f=e+a.a.b,b="presto"),wq="v-"+d,""===e||(wq=wq+" v-"+e),""===f||(wq=wq+" v-"+f),""===b||(wq=wq+" v-"+b),b=5==a.a.p?"v-android":4==a.a.p?"v-ios v-ios"+a.a.q:1==a.a.p?"v-win":3==a.a.p?"v-lin":2==a.a.p?"v-mac":null,null!=
+b&&(wq=wq+" "+b),a.b&&(wq+=" v-touch"));a=wq;b=(Jn(),Xp());xn(b.dc(),a,!0)}function xq(){var a=(uq(),!Z&&(Z=new vq),uq(),Z);return a.a.f&&8==a.a.a}function yq(a){return a.a.f&&9==a.a.a}
+function vq(){uq();var a;this.a=new zq($wnd.navigator.userAgent);if(this.a.f&&(a=(a=$wnd.document.documentMode)?a:-1,-1!=a)){var b=this.a;b.a=a;b.b=0}if(this.a.c)this.b="ontouchstart"in window;else if(this.a.f)this.b=!!navigator.msMaxTouchPoints;else{var d;try{document.createEvent("TouchEvent"),d=!0}catch(e){d=!1}this.b=d}}s(31,1,{},vq);_.b=!1;var wq=null,Z;w(31);
+function Aq(a){a=1!=a.nodeType?{}:$wnd.document.defaultView&&$wnd.document.defaultView.getComputedStyle?$wnd.document.defaultView.getComputedStyle(a,null):a.currentStyle?a.currentStyle:void 0;this.a=a}s(166,1,{},Aq);w(166);function qh(a,b){++a.a;a.b=Fc(a.b,[b,!1]);Ac(a);a.b=Fc(a.b,[new Bq(a),!1]);Ac(a)}function zc(){this.a=0}s(441,411,{},zc);_.a=0;w(441);function Bq(a){this.a=a}s(442,1,{},Bq);_.ab=function(){--this.a.a};w(442);function Cq(){Cq=m;T();M()}
+function Dq(){Cq();var a;0>Eq&&(a=(T(),M()),a.style.width="50px",a.style.height="50px",a.style.overflow="scroll",a.style.position="absolute",a.style.marginLeft="-5000px",$p().appendChild(a),Eq=((a.offsetWidth||0)|0)-hd(a,"clientWidth"),$p().removeChild(a));return Eq}function Fq(a){Cq();null!=a.getBoundingClientRect?(a=a.getBoundingClientRect(),a=Math.ceil(a.bottom-a.top)):a=a.offsetHeight;return a}
+function Gq(a){Cq();return a.getBoundingClientRect?(a=a.getBoundingClientRect(),Math.ceil(a.right-a.left)):a.offsetWidth}var Eq=-1;function Hq(a){var b;b=Iq(a.e,Jq(a));Kq(a,b[0]);a.e=b[1];Kq(a,b[2])}function Kq(a,b){var d,e;for(d=b.b;d<b.a;d++)e=a.k.Se(E(d)),a.n.Se(a.Uc(e))}function Lq(a){a.f||(a.f=!0,qh((xc(),yc),a.g))}function Mq(a){var b;b=a.Yc();-1==b&&(b=Nq(a.q));return $(0,b)}function Jq(a){var b;b=Mq(a);var d=a.q;a=(d.a-d.b)*a.d.a;return Oq(new Pq(d.b-a,d.a+a),b)}
+function Qq(a,b){b.b>=b.a||(a.i=new Rq,a.Wc(b.b,b.a-b.b,a.i))}s(282,1,{});_.Rc=function(a,b){this.q=$(a,b);Lq(this)};_.Sc=function(a){var b;b=this.Uc(a);if(null==b)throw new sg("key may not be null (row: "+a+")");if(this.p.Oe(b))return this.p.Qe(b);if(this.n.Oe(b))return new Sq(this,a,b);throw new X("The cache of this DataSource does not currently contain the row "+a);};_.Tc=function(a){return this.k.Qe(E(a))};_.Vc=function(a){a=this.Uc(a);return this.n.Oe(a)?this.n.Qe(a).a:-1};
+_.Xc=function(a){(this.j=a)&&!Tq(this.e)&&(Uq(a.a.o.a,this.e.b,Nq(this.e)),Vq(a,this.e.b,Nq(this.e)))};_.Yc=Wq;_.f=!1;_.r=-1;w(282);function Xq(a){this.a=a}s(287,1,{},Xq);_.ab=function(){this.a.f=!1;var a=this.a,b;if(!a.i){b=Mq(a);var d=a.q,e;e=(d.a-d.b)*a.d.b;b=Oq(new Pq(d.b-e,d.a+e),b);!Yq(b,a.e)||Tq(a.e)?(a.k.Te(),a.n.Te(),a.e=new Pq(0,0),Qq(a,Jq(a))):(Hq(a),d=a.e,b.b>=b.a&&d.b>=d.a||d.b<=b.b&&b.a<=d.a?Vq(a.j,a.e.b,Nq(a.e)):(b=Iq(Jq(a),a.e),Qq(a,b[0]),Qq(a,b[2])))}};w(287);
+function Rq(){this.a=Bb()}s(286,1,{},Rq);_.a=0;w(286);s(538,1,{});_.eQ=function(a){return this.Zc(a)};_.hC=function(){return this._c()};w(538);function Zq(a){if(a.c.p.Oe(a.a))return a.b;throw new X("The row handle for key "+a.a+" was not pinned");}function Sq(a,b,d){this.c=a;this.b=b;this.a=d}s(106,538,{106:1},Sq);_.Zc=function(a){return t(a,106)?db(this.a,a.a):!1};_.$c=function(){return Zq(this)};_._c=$q;
+_.ad=function(){var a=this.c,b,d;d=this.a;b=a.o.Qe(d);b||(b=E(0),a.p.Re(d,this));a.o.Re(d,E(b.a+1))};_.bd=function(){var a=this.c,b,d;d=this.a;if(b=a.o.Qe(d)){var e=E(1);t(e,76)&&e.a==b.a?(a.p.Se(d),a.o.Se(d)):a.o.Re(d,E(b.a-1))}else throw new X("Row "+Zq(this)+" with key "+d+" was not pinned to begin with");};w(106);s(552,1,{});w(552);function ar(){this.b=3;this.a=4}s(160,552,{},ar);_.a=0;_.b=0;w(160);
+function br(a,b){var d,e,f;d=a.a.c;for(f=0;f<d.childNodes.length;f++)if((e=d.childNodes[f])&&1==e.nodeType)if(b)e.style.visibility="";else{var g=(Af(),"hidden");e.style.visibility=g}}s(66,1,{66:1});w(66);s(257,99,Ja);w(257);function cr(a){!a.c&&(a.c=new dr(a));Pb(a.c,a.b)}function er(a){this.b=100;this.a=a}s(414,1,{},er);_.b=0;w(414);function dr(a){this.a=a}s(415,35,{},dr);_.W=function(){this.a.c=null;var a=this.a.a,b=a.a;bg(b,b.r);a.a.a=1};w(415);
+function fr(a,b){var d;xq()||yq((!Z&&(Z=new vq),Z))?Dp(a):-1!=(vn.Mc(wn((T(),a.O))).className||"").indexOf("animate-in")?pq(a.O,new gr(a,b)):(sn(a,tn(vn.Mc(wn(a.O)))+"-animate-out",!0),a.e&&Yc(a.e,"v-shadow-animate-out"),d=new Aq(a.O),d=rq(d),null==d&&(d=""),-1!=d.indexOf("animate-out")?(a.q=!1,pq(a.O,new hr(a,b)),a.w=!1):(sn(a,tn(vn.Mc(wn(a.O)))+"-animate-out",!1),a.e&&kd(a.e,"v-shadow-animate-out"),Dp(a)))}
+function ir(){var a;a=(uq(),!Z&&(Z=new vq),uq(),Z);return a.a.f&&(8==a.a.a?0<=a.a.b:8<a.a.a)}
+function jr(a,b){var d,e,f,g;if(a.K){try{var l=(T(),a.O).style;e=(K(),l).zIndex;f=kr(e)}catch(n){if(n=H(n),t(n,12))f=1E3;else throw I(n);}-1==f&&(f=lr);(uq(),!Z&&(Z=new vq),uq(),Z).a.f&&T();if(a.e||ir())e=new mr((d=bd((T(),a.O)),d-=yd(),d-=(-1==nr&&(nr=or("left")),nr),d),(g=cd(a.O),g-=zd(),g-=(-1==pr&&(pr=or("top")),pr),g),hd(a.O,"offsetWidth"),hd(a.O,"offsetHeight")),e.b+=v(e.d*(1-b)/2),e.c+=v(e.a*(1-b)/2),e.d=v(e.d*b),e.a=v(e.a*b),d=Uc(a.O),a.e&&((uq(),!Z&&(Z=new vq),uq(),Z).a.j&&((T(),ap(a.e,3)).style.height=
+"auto",ap(a.e,4).style.height="auto",ap(a.e,5).style.height="auto"),qr(a.e,e),a.e.style.zIndex=f+"",a.e.style.display=0.9>b?"none":"",(!Z&&(Z=new vq),Z).a.j&&((T(),ap(a.e,3)).style.height=((ap(a.e,3).offsetHeight||0)|0)+(Q(),"px"),ap(a.e,4).style.height=((ap(a.e,4).offsetHeight||0)|0)+"px",ap(a.e,5).style.height=((ap(a.e,5).offsetHeight||0)|0)+"px"),!Uc(a.e)&&d.insertBefore(a.e,a.O)),ir()&&(!a.f&&ir()&&(f=$doc,f=(K(),f).createElement("iframe"),a.f=f,a.f.style.position=(Ne(),"absolute"),a.f.style.borderStyle=
+(Id(),"none"),a.f.tabIndex=-1,a.f.frameBorder=0,a.f.marginHeight=0),qr(a.f,e),!Uc(a.f)&&d.insertBefore(a.f,a.O));(e=yq((!Z&&(Z=new vq),Z)))||(e=(!Z&&(Z=new vq),Z),e=e.a.f&&10==e.a.a);e&&(e=(T(),a.O),Cq(),(uq(),!Z&&(Z=new vq),uq(),Z).a.f&&(e=e.style,f=(K(),e).zoom,e.zoom="1",e.zoom=f))}}function rr(a){a.e&&Uc(a.e)&&(a.e&&Uc(a.e)&&(T(),a.e.__listener=null,On(a.e,0)),Xc(a.e))}
+function sr(a,b,d){var e;e=(T(),a.O).style;e.marginLeft=(-1==nr&&(nr=or("left")),-nr+(Q(),"px"));e.marginTop=(-1==pr&&(pr=or("top")),-pr+"px");Gp(a,b,d);jr(a,a.q?0:1)}function tr(a,b){(T(),a.O).style.visibility=b?"visible":"hidden";a.e&&(a.e.style.visibility=b?"visible":"hidden");a.f&&(a.f.style.visibility=b?"visible":"hidden")}function qr(a,b){a.style.left=b.b+(Q(),"px");a.style.top=b.c+"px";a.style.width=b.d+"px";a.style.height=b.a+"px"}
+function or(a){try{var b=$wnd.document.body,d=b.currentStyle?b.currentStyle:getComputedStyle(b);if(d&&"relative"==d.position)return b.getBoundingClientRect()[a]}catch(e){}return 0}s(259,100,Ja);_.Dc=function(){fr(this,!1)};_.Ec=function(a){fr(this,a)};_.lc=function(){var a;if(a=ur){if(a.d)for(a=(sq(),sq(),tq),a=new Bg(a);a.b<a.d.Yc();)J(a.b<a.d.Yc()),a.d.Ed(a.c=a.b++),null.of(),null.of();a=(rb(vr),ij((Jn(),Xp())));var b=(T(),this.O);a.appendChild(b)}Fn(this)};_.vb=function(){rr(this)};
+_.nc=function(){In(this);rr(this);this.f&&Xc(this.f)};_.fc=function(a){this.j=a;Fp(this);0==a.length&&(this.j=null);jr(this,1)};_.Fc=function(a,b){sr(this,a,b)};_.gc=function(a){this.k=a;Fp(this);0==a.length&&(this.k=null);jr(this,1)};_.rc=function(a){-1==this.L?On((T(),this.O),a|(this.O.__eventBits||0)):this.L|=a};var lr=2E4,ur,nr=-1,pr=-1;w(259);function wr(a){this.a=a}s(267,1,{},wr);
+_.Qc=function(a){if(-1!=qq(a).indexOf("animate-in")){a=ij(this.a);var b=this.a.c;nq();a.removeEventListener(oq,b,!1);rn(this.a,"animate-in");this.a.e&&kd(this.a.e,"v-shadow-animate-in")}};w(267);function gr(a,b){this.a=a;this.b=b}s(268,1,{},gr);_.Qc=function(a){-1!=qq(a).indexOf("animate-in")&&fr(this.a,this.b)};_.b=!1;w(268);function hr(a,b){this.a=a;this.b=b}s(269,1,{},hr);
+_.Qc=function(a){if(-1!=qq(a).indexOf("animate-out")){a=ij(this.a);nq();if(a._vaadin_animationend_callbacks)for(var b=a._vaadin_animationend_callbacks,d=0;d<b.length;d++)a.removeEventListener(oq,b[d],!1);rn(this.a,"animate-in");rn(this.a,"animate-out");this.a.e&&(kd(this.a.e,"v-shadow-animate-in"),kd(this.a.e,"v-shadow-animate-out"));Dp(this.a)}};_.b=!1;w(269);function mr(a,b,d,e){this.b=a;this.c=b;a=d;0>a&&(a=0);this.d=a;0>e&&(e=0);this.a=e}s(265,1,{},mr);_.a=0;_.b=0;_.c=0;_.d=0;w(265);
+function xr(a){this.a=a;Eb.call(this)}s(266,101,{},xr);_.R=function(a){jr(this.a,a)};w(266);function yr(a,b){var d;d=Math.round(100*b);a.a.style.width=d+(Q(),"%")}function zr(){this.b=(T(),M());this.a=M();this.O=M();this.O.appendChild(this.b);this.b.appendChild(this.a);An(this.O,"v-progressbar");ad(this.a,tn(this.O)+"-indicator");ad(this.b,tn(this.O)+"-wrapper")}s(256,17,wa,zr);w(256);
+function Ar(a,b){var d,e,f,g;b.a<a.n?b=new S(a.n):b.a>a.k&&(b=new S(a.k));e=hd(a.b,"offsetWidth")-2-hd(a.j,"offsetWidth");f=b.a;0<a.p?(f*=Br(a.p),f=Math.round(f),f=Yh(Ya(f)),f/=Br(a.p)):f=Yh(Ya(Math.round(f)));g=a.k-a.n;d=0;0<g&&(d=(f-a.n)/g*e);0>d&&(d=0);a.j.style.marginLeft=Zh(Ya(Math.round(d)))+(Q(),"px");a.r=new S(f);e=""+f;0==a.p&&(e=""+v((new S(f)).a));wp(a.g.a,e,!1)}function Cr(a,b,d){b&&(Ar(a,b),d&&bg(a,a.r))}
+function Dr(a,b,d){var e,f;e=(Cq(),-1!=(K(),b).type.indexOf("touch")?Sf(b.changedTouches[0]):sd(b.clientX||0));f=(a.j.offsetWidth||0)|0;b=(a.b.offsetWidth||0)|0;var g=bd(a.b);Ao();var l;l=$doc;l=(K(),L).hb(l);b=(e-(g-l+(f/2|0)))/(b-f)*(a.k-a.n)+a.n;b<a.n?b=a.n:b>a.k&&(b=a.k);Cr(a,new S(b),d)}
+function Er(){var a=(T(),M());this.O=(T(),a);(T(),this.O).tabIndex=0;this.a=1;this.g=new xp;this.i=new Fr(this);this.f=!1;this.d=new er(new Gr(this));this.b=M();this.j=M();this.q=M();this.c=M();a=tn(this.O)+"-feedback";xn(this.i.dc(),a,!1);a=tn(this.O)+"-vertical";xn(this.dc(),a,!1);ad(this.O,"v-slider");a=tn(this.O)+"-feedback";xn(this.i.dc(),a,!0);ad(this.b,tn(this.O)+"-base");ad(this.j,tn(this.O)+"-handle");ad(this.q,tn(this.O)+"-smaller");ad(this.c,tn(this.O)+"-bigger");this.O.appendChild(this.c);
+this.O.appendChild(this.q);this.O.appendChild(this.b);this.b.appendChild(this.j);this.q.style.display=(Ud(),"none");this.c.style.display="none";-1==this.L?On(this.O,15866876|(this.O.__eventBits||0)):this.L|=15866876;a=this.i;zp(a,this.g);Fp(a)}s(258,257,Ja,Er);
+_.mc=function(a){var b;if(!this.e&&!this.o){b=(T(),(K(),L).nb(a));if(Hn(a.type)==Ca)b=L.cb(a),0>b?Cr(this,new S(this.r.a+Br(-this.p)),!1):Cr(this,new S(this.r.a-Br(-this.p)),!1),cr(this.d),a.preventDefault(),a.cancelBubble=!0;else if(this.f||b==this.j)switch(T(),Hn((K(),a).type)){case 4:case Da:this.e||this.o||((rp(),rp(),bq).Jc(this.O),Hr(this.i),this.f=!0,ad(this.j,tn(this.O)+"-handle"),Yc(this.j,tn(this.O)+"-handle-active"),b=this.O,T(),ko=b,so(fo),hp=b,a.preventDefault(),a.cancelBubble=!0,a.stopPropagation());
+break;case 64:case Ea:this.f&&(Dr(this,a,!1),sr(this.i,bd(this.j)+(((this.j.offsetWidth||0)|0)/2|0)-(hd(this.i.O,"offsetWidth")/2|0),cd(this.j)-hd(this.i.O,"offsetHeight")),a.stopPropagation());break;case qa:fr(this.i,!1);case 8:this.f=!1,ad(this.j,tn(this.O)+"-handle"),b=this.O,T(),ko&&b==ko&&(ko=null),so(fo),hp==b&&(hp=null),Dr(this,a,!0),a.stopPropagation()}else if(b==this.q)Cr(this,new S(this.r.a-Br(-this.p)),!0);else if(b==this.c)Cr(this,new S(this.r.a+Br(-this.p)),!0);else if(124==Hn(a.type))T(),
+4!=Hn((K(),a).type)||this.e||this.o||this.f||(Dr(this,a,!0),a.cancelBubble=!0);else if((uq(),!Z&&(Z=new vq),uq(),Z).a.e&&256==Hn(a.type)||!(!Z&&(Z=new vq),Z).a.e&&128==Hn(a.type)){b=a.keyCode|0;var d=!!a.shiftKey;if(a.ctrlKey)b=!1;else if(39==b){if(d){for(b=0;b<this.a;b++)Cr(this,new S(this.r.a+Br(-this.p)),!1);++this.a}else Cr(this,new S(this.r.a+Br(-this.p)),!1);b=!0}else if(37==b){if(d){for(b=0;b<this.a;b++)Cr(this,new S(this.r.a-Br(-this.p)),!1);++this.a}else Cr(this,new S(this.r.a-Br(-this.p)),
+!1);b=!0}else b=!1;b&&(Hr(this.i),cr(this.d),a.preventDefault(),a.cancelBubble=!0)}else b==this.O&&2048==Hn(a.type)?Hr(this.i):b==this.O&&4096==Hn(a.type)?fr(this.i,!1):4==Hn(a.type)&&Hr(this.i);Cq();-1!=a.type.indexOf("touch")&&(a.preventDefault(),a.stopPropagation())}};_.a=0;_.e=!1;_.f=!1;_.k=0;_.n=0;_.o=!1;_.p=0;w(258);
+function Hr(a){ur=a;var b;b=a.K&&a.B;a.B||(a.K&&Jj(a),Ep(a.A,!0,!1));b||xq()||yq((uq(),!Z&&(Z=new vq),uq(),Z))||(tr(a,!1),sn(a,tn(vn.Mc(wn((T(),a.O))))+"-animate-in",!0),a.e&&Yc(a.e,"v-shadow-animate-in"),b=new Aq(a.O),b=rq(b),null==b&&(b=""),tr(a,!0),-1!=b.indexOf("animate-in")?(a.q=!1,a.c=pq(a.O,new wr(a))):(sn(a,tn(vn.Mc(wn(a.O)))+"-animate-in",!1),a.e&&kd(a.e,"v-shadow-animate-in")));a.q?Ab(new xr(a)):jr(a,1);ur=null;a=a.a;sr(a.i,bd(a.j)+(((a.j.offsetWidth||0)|0)/2|0)-(hd((T(),a.i.O),"offsetWidth")/
+2|0),cd(a.j)-hd(a.i.O,"offsetHeight"))}
+function Fr(a){un();this.a=a;a=(T(),M());this.O=(T(),a);this.o=new Hp;this.q=!1;this.s=-1;this.A=new Pp(this,this);this.C=-1;this.v=(Jn(),Xp());a=(T(),this.O);var b=vn.Kc();a.appendChild(b);this.Fc(0,0);ad(vn.Mc(wn(this.O)),"gwt-PopupPanel");ad(vn.Lc(wn(this.O)),"popupContent");this.i=this.g=!0;this.t=!1;a=xq();a!=!!this.e&&(a?(this.e=(T(),M()),ad(this.e,"v-shadow"),this.e.innerHTML='\x3cdiv aria-hidden\x3d"true" class\x3d"top-left"\x3e\x3c/div\x3e\x3cdiv class\x3d"top"\x3e\x3c/div\x3e\x3cdiv class\x3d"top-right"\x3e\x3c/div\x3e\x3cdiv class\x3d"left"\x3e\x3c/div\x3e\x3cdiv class\x3d"center"\x3e\x3c/div\x3e\x3cdiv class\x3d"right"\x3e\x3c/div\x3e\x3cdiv class\x3d"bottom-left"\x3e\x3c/div\x3e\x3cdiv class\x3d"bottom"\x3e\x3c/div\x3e\x3cdiv class\x3d"bottom-right"\x3e\x3c/div\x3e',this.e.style.position=
+(Ne(),"absolute"),Dn(this,this,lg?lg:lg=new dg)):(rr(this),this.e=null));a=lr;(T(),this.O).style.zIndex=a+"";this.e&&(this.e.style.zIndex=a+"");this.d=this.a}s(260,259,Ja,Fr);var vr=w(260);function Gr(a){this.a=a}s(261,1,{},Gr);_.ab=function(){var a=this.a;bg(a,a.r);this.a.a=1};w(261);function Ir(a){this.a=a;this.b="offsetWidth";this.c="width"}s(262,1,{},Ir);_.ab=function(){var a;a=Uc(ij(this.a));55<hd(a,this.b)&&(this.a.b.style[this.c]="",Cr(this.a,this.a.r,!1))};w(262);function Jr(a){this.a=a}
+s(263,1,{},Jr);_.ab=function(){var a=this.a;a.j.style.marginLeft="0";a.j.style.marginTop="";Cr(this.a,this.a.r,!1)};w(263);function Kr(a,b,d){this.c=a;this.a=b;this.b=d}s(115,1,{},Kr);_.a=0;_.c=0;w(115);function Lr(){Lr=m;Mr=new Nr}var Mr;function Nr(){}s(224,1,{},Nr);_.dd=Or;_.ed=Or;_.fd=Or;_.gd=Or;_.hd=Or;w(224);function Pr(a,b){var d;a.b=b;b.b&&(d=a.d.c.cells[a.a],d.colSpan=1,0<=a.d.b[a.a]&&(d.style.width=a.d.b[a.a]+(Q(),"px")),d.style.display="",a.c=d)}function Qr(a,b){this.d=a;this.a=b}
+s(75,1,{75:1},Qr);_.a=0;_.b=null;_.c=null;var Rr=w(75);function Sr(a){return new Tr(a,0,a.a.b.length)}function Ur(a,b,d,e){a.c=b;a.d=d;a.b=e}function Vr(a,b){var d;for(d=b;d<a.a.b.length;d++){var e=a.a,f=d,g=new Qr(a,d);Kc(f,e.b.length);e.b[f]=g}}function Wr(){this.a=new C}s(447,1,{},Wr);_.b=null;_.d=0;w(447);function Tr(a,b,d){this.a=a;this.c=b;this.b=d}s(119,1,{},Tr);_.vc=function(){return new Xr(new Yr(this.a.a,this.c,this.c+this.b),!0)};_.b=0;_.c=0;w(119);
+function Zr(a,b){this.a=a;this.c=b;this.b=1}s(158,1,{},Zr);_.vc=function(){return new Xr(new Yr(this.a.a,this.c,this.c+this.b),!1)};_.b=0;_.c=0;w(158);function $r(a){var b;for(b=0;b<a.d;b++)a.a.Xe(a.c);a.d=0;b=as(a.a,a.c++);Pr(b,a);return b}function bs(a,b){var d,e,f;f=new Yr(a.a,ac(a.c,a.a.b.length),ac(a.c+b,a.a.b.length));for(e=new Bg(f);e.b<e.d.Yc();)d=(J(e.b<e.d.Yc()),e.d.Ed(e.c=e.b++)),Pr(d,a);return f}function Xr(a,b){this.a=new Vm(a);this.b=b}s(82,1,{},Xr);
+_.Gc=function(){return this.c+this.d<this.a.b.length};_.Hc=function(){return $r(this)};_.Ic=function(){throw new Rn("Cannot remove cells via iterator");};_.b=!1;_.c=0;_.d=0;w(82);function cs(){}s(89,1,{89:1},cs);_.jd=function(a){a.style.left="";a.style.top=""};_.kd=function(a,b,d){a.style.left=b+(Q(),"px");a.style.top=d+"px"};w(89);function ds(){}s(416,1,{},ds);_.jd=es;_.kd=function(a,b,d){a.style.transform="translate3d("+b+"px, "+d+"px, 0)"};w(416);function fs(){}s(417,1,{},fs);_.jd=es;
+_.kd=function(a,b,d){a.style.transform="translate("+b+"px,"+d+"px)"};w(417);function gs(){}s(418,1,{},gs);_.jd=function(a){a.style.webkitTransform=""};_.kd=function(a,b,d){a.style.webkitTransform="translate3d("+b+"px,"+d+"px,0)"};w(418);function hs(){hs=m;is=new dg}function js(a,b){hs();this.a=a;this.b=b}s(150,527,{},js);_.pb=function(a){a.a.j&&0!=a.a.j.Yc()&&(a.a.i=!0,a.a.j.Rc(this.a,this.b))};_.qb=function(){return is};_.a=0;_.b=0;var is;w(150);
+function ks(a,b){return rg((!a.a&&(a.a=new Dg(a)),a.a),(ls(),ms),b)}function ns(a){var b;b=a.i;a.i=os(a.rd())<os(a.td());b!=a.i&&(b=new ps,ig((!a.a&&(a.a=new Dg(a)),a.a),b))}function qs(a,b){a.f.style.display=b?"":(Ud(),"none");a.qd(b)}function rs(a){return a.c?0:os(a.ud())}function ss(a){var b,d;d=os(a.td());b=os(a.rd());a.d=0>d-b?0:d-b;ts(a,a.j)}function us(a,b){var d;d=b>os(a.td());os(a.rd())<os(a.td())&&d&&0!=a.j?(a.e=ks(a,new vs(a,b)),ts(a,0)):ws(a,b)}
+function ws(a,b){a.vd(Wb(0,0<b?Math.floor(b):Math.ceil(b)));ss(a);qs(a,os(a.rd())<os(a.td()));ns(a)}function ts(a,b){var d;d=a.j;a.j=Wb(0,ac(a.d,0<b?Math.floor(b):Math.ceil(b)));var e=a.j;Cq();0.49>=(0>=d-e?0-(d-e):d-e)||(a.c&&(d=a.b,d.a.yd(13),Pb(d.b,1E3)),a.wd(a.j|0))}function xs(a,b){var d;d=b<=os(a.rd());os(a.rd())<os(a.td())&&d&&0!=a.j?(a.n=ks(a,new ys(a,b)),ts(a,0)):zs(a,b)}function zs(a,b){a.xd(0>b?0:b);ss(a);qs(a,os(a.rd())<os(a.td()));ns(a)}
+function As(a){var b=Dq();a.c=0==b;a.c?(On(a.f,16384),T(),a.f.__listener=new Bs(a)):(On(a.f,0),T(),a.f.__listener=null);a.yd(1>b?1:b)}function Cs(a){return os(a.rd())<os(a.td())}function Ds(a){var b;b=a.sd();a.j=b;a=a.g;a.b||(qh((xc(),yc),a.a),a.b=!0)}function Es(){this.f=(T(),M());this.k=M();this.b=new Fs(this);this.g=new Gs(this);this.f.appendChild(this.k);this.f.style.display=(Ud(),"none");this.f.tabIndex=-1}function os(a){return a.length?il(a.substr(0,a.length-2)):0}s(136,1,{});_.pd=bc;_.zd=function(){Ds(this)};
+_.c=!1;_.d=0;_.i=!1;_.j=0;w(136);function vs(a,b){this.a=a;this.b=b}s(253,1,{},vs);_.Ad=function(){ws(this.a,this.b);Lp(this.a.e.a);this.a.e=null};_.b=0;w(253);function ys(a,b){this.a=a;this.b=b}s(254,1,{},ys);_.Ad=function(){zs(this.a,this.b);Lp(this.a.n.a);this.a.n=null};_.b=0;w(254);function Bs(a){this.a=a}s(255,1,{19:1},Bs);_.mc=function(){var a=this.a.b;a.a.yd(13);Pb(a.b,1E3)};w(255);function Hs(){Es.call(this)}s(249,136,{},Hs);_.qd=function(a){this.f.style.overflowX=a?(De(),"scroll"):""};
+_.rd=Is;_.sd=function(){return jd(this.f)};_.td=function(){return Fd(this.k.style,"width")};_.ud=Js;_.vd=function(a){this.f.style.width=a+(Q(),"px")};_.wd=function(a){var b=this.f;(K(),L).kb(b,a)};_.xd=function(a){this.k.style.width=a+(Q(),"px")};_.yd=function(a){this.f.style.height=a+(Q(),"px");this.k.style.height=a+"px"};w(249);function Gs(a){this.c=a;this.a=new Ks(this)}s(245,1,{},Gs);_.b=!1;w(245);function Ks(a){this.a=a}s(250,1,{},Ks);
+_.ab=function(){Ds(this.a.c);var a=this.a.c;!a.a&&(a.a=new Dg(a));ig(a.a,new Ls);this.a.b=!1};w(250);function Fs(a){this.a=a;this.b=new Ms(this)}s(246,1,{},Fs);w(246);function Ms(a){this.a=a}s(251,35,{},Ms);_.W=function(){this.a.a.yd(1)};w(251);function Ns(){Es.call(this)}s(248,136,{},Ns);_.qd=function(a){this.f.style.overflowY=a?(De(),"scroll"):""};_.rd=Js;_.sd=function(){return(this.f.scrollTop||0)|0};_.td=function(){return Fd(this.k.style,"height")};_.ud=Is;
+_.vd=function(a){this.f.style.height=a+(Q(),"px")};_.wd=function(a){this.f.scrollTop=a};_.xd=function(a){this.k.style.height=a+(Q(),"px")};_.yd=function(a){this.f.style.width=a+(Q(),"px");this.k.style.width=a+"px"};w(248);function Os(){Os=m;Ps=new Qs}function ps(){Os()}s(247,527,{},ps);_.pb=function(a){Rs(a.a)};_.qb=function(){return Ps};var Ps;w(247);function Qs(){this.c=++cg}s(252,29,{},Qs);_.tS=function(){return"VisibilityChangeEvent"};w(252);s(113,1,{},function(a){this.e=a});_.d=0;w(113);
+function Ss(){Ss=m;Ts=new dg}function Us(a){Ss();this.a=a}s(151,527,{},Us);_.pb=function(a){a.Bd(this)};_.qb=function(){return Ts};var Ts;w(151);function Vs(a){this.e=new Ws;this.b=a}s(387,113,{},Vs);w(387);function Xs(a){this.e=a}s(393,113,{},Xs);w(393);function Ws(){}s(149,1,{},Ws);_.b=0;w(149);function Ys(a){if(!a)throw new D("datasource cannot be null");this.b=new Vm(a)}s(139,1,{},Ys);_.Rc=function(a,b){if(a>=this.b.b.length)throw new X("Trying to fetch rows outside of array");Vq(this.a,a,b)};
+_.Sc=function(a){return new Zs(a)};_.Tc=function(a){return as(this.b,a)};_.Vc=function(a){return Rm(this.b,a)};_.Xc=function(a){this.a=a};_.Yc=function(){return this.b.b.length};w(139);function $s(a,b){return $s(a,b)}function at(a,b){return at(a,b)}s(278,1,Ka,function(a){this.a=a});_.Cd=function(a){if(Ob(this.a.b,a)){if(this.a.a){var b=this.a.a;a=this.a.b.b.length-1;bt(b.a.o.a,a,1);a=$(a,1);var b=b.a.b,d,e;d=b.c==b.j.o.a;e=a.b<=b.g;d&&e&&(b.g+=a.a-a.b,b.c.od(b.g))}return!0}return!1};
+_.Dd=function(a){return $s(this,a)};_.Ed=function(a){return as(this.a.b,a)};_.Vc=function(a){return Rm(this.a.b,a)};_.Fd=function(){return 0==this.a.b.b.length};_.vc=function(){return new ct(new Bg(this.a.b))};_.Gd=function(){throw new Rn("List iterators not supported at this time.");};_.Hd=function(){throw new Rn("List iterators not supported at this time.");};
+_.Id=function(a){var b;b=Rm(this.a.b,a);if(Vb(this.a.b,a)){if(this.a.a)a:if(a=this.a.a,dt(a.a.o.a,b,1),b=$(b,1),a=a.a.b,a.c==a.j.o.a){if(et(b,a.g))a.c.n>b.a?a.g=b.b:0<b.b?a.g=b.b-1:0<a.j.o.k.n?(a.g=a.f,a.c=a.j.o.k):0<a.j.o.g.n&&(a.g=a.e,a.c=a.j.o.g);else{if(b.b>a.g)break a;a.g-=b.a-b.b}a.c.od(a.g)}return!0}return!1};_.Yc=function(){return this.a.b.b.length};_.Jd=function(){return Tm(this.a.b)};_.Kd=function(a){return at(this,a)};w(278);function ct(a){this.a=a}s(279,1,{},ct);
+_.Gc=function(){var a=this.a;return a.b<a.d.Yc()};_.Hc=function(){return ft(this.a)};_.Ic=function(){throw new Rn("Iterator.remove() is not supported by this iterator.");};w(279);function Zs(a){this.a=a}s(105,538,{105:1},Zs);_.Zc=function(a){return t(a,105)?gt(this.a,a.a):!1};_.$c=ik;_._c=$q;_.ad=Pn;_.bd=Pn;w(105);s(132,534,{});_.pb=function(a){var b,d;b=Cd(this.d);nd(b)&&!ht(this.b,b)&&(b=it(this.b.o,b))&&(d=(jt(),kt),b==this.b.o.k?d=lt:b==this.b.o.a&&(d=mt),this.Md(a,d))};_.tb=ik;w(132);
+function nt(a,b){this.a=new Xf(this.Nd(),this);this.b=a;this.c=b}s(391,132,{},nt);_.Md=function(a,b){var d;b==(jt(),mt)&&a&&(d=this.c.e.a,a.a.b.G.Sd(d)||ot(a.a.b,d))};_.Nd=function(){return"click"};w(391);function pt(a,b){this.a=new Xf(this.Nd(),this);this.b=a;this.c=b}s(392,132,{},pt);_.Md=qt;_.Nd=function(){return"dblclick"};w(392);function rt(a,b){this.a=new Xf(this.Nd(),this);this.b=a;this.c=b}s(95,532,{});
+_.pb=function(a){var b,d;b=Cd(this.d);nd(b)&&!ht(this.b,b)&&(d=(jt(),kt),b=this.b.b.c,b==this.b.o.k?d=lt:b==this.b.o.a&&(d=mt),this.Od(a,d))};_.tb=ik;w(95);function st(a,b){rt.call(this,a,b)}s(388,95,{},st);_.Od=function(a,b){if(b==(jt(),mt)&&a){var d;32!=Dd(this.d)||a.b.b||(d=this.d,(K(),d).preventDefault(),a.b.b=!0,d=this.c.e.b,a.a&&(Lp(a.a.a),a.a=null),a.a=tt(a.b.a,new ut(a,d)),vt(a.b.a,d))}};_.Nd=function(){return"keydown"};w(388);function wt(a,b){rt.call(this,a,b)}s(390,95,{},wt);_.Od=qt;
+_.Nd=function(){return"keypress"};w(390);function xt(a,b){rt.call(this,a,b)}s(389,95,{},xt);_.Od=function(a,b){(b==(jt(),mt)&&t(a,560)||b==lt&&t(a,558))&&a.Ld(this)};_.Nd=function(){return"keyup"};w(389);function ls(){ls=m;ms=new dg}function Ls(){ls()}s(114,527,{},Ls);_.pb=function(a){a.Ad(this)};_.qb=function(){return ms};var ms;w(114);function yt(){yt=m;zt=new dg}function At(){yt()}s(477,527,{},At);_.pb=Qo;_.qb=function(){return zt};var zt;w(477);s(539,1,{});w(539);
+function Bt(a){this.b=a;this.a=Dn(a,new Ct(this),a.e.a)}s(466,1,{},Bt);w(466);function Ct(a){this.a=a}s(467,1,{},Ct);w(467);function Dt(a){var b;for(b=0;a;)b+=(a.offsetTop||0)|0,a=a.offsetParent;return b}function Et(){var a;a=new yg;zg(a,"mousedown");zg(a,"touchstart");return a}function Ft(a,b){var d;if(!b)return-1;d=Gt(a);for(d=fd((K(),d));d;){if(L.ob(d,b))return d=fd(d),d=fd(d),hd(d,"vEscalatorLogicalRow");d=qd(d)}return-1}function Ht(a){return(a=ij(a.b).childNodes[2])?fd((K(),a)):null}
+function Gt(a){return(a=Ht(a))?a.tBodies[0]:null}function It(a){return(a=Ht(a))?a.tFoot:null}function Jt(a){return(a=Ht(a))?a.tHead:null}function Kt(a){a.c&&(Lp(a.c.a),a.c=null)}function Lt(a,b){var d;d=ed(a.a.c);d.checked=b.a;d.vEscalatorLogicalRow=a.e.b}function Mt(a,b,d){b=a.b.j.Tc(b);d?ot(a.b,b):Nt(a.b,b)}function Ot(a){this.a=new Pt(this);this.b=a}s(470,66,{66:1},Ot);_.cd=function(a,b){Lt(a,b)};w(470);
+function Qt(a){var b;a.d&&(Lp(a.d.a),a.d=null);a.a&&(b=a.a,b.p=!1,b.g&&(b.g.U(),b.g=null),a.a=null);b=a.f.b.G;if(t(b,511)){var d,e,f,g;if(b.a){b.a=!1;d=Rt(b.f);b.f.a.Te();g=Rt(b.b);for(f=Bj(new Cj(b.b.a));f.a.Gc();)e=Dj(f),e.bd();b.b.a.Te();En(b.c,new St(b.c,d,g))}}Kt(a.f)}function Pt(a){this.f=a;this.e=new Tt(this)}s(473,1,{},Pt);_.b=-1;_.c=0;_.g=-1;w(473);function Tt(a){this.a=a}s(474,1,{},Tt);
+_.wc=function(a){var b;if(this.a.a)switch(b=a.d,qo(a.d)){case 64:case Ea:Cq();Cq();-1!=(K(),b).type.indexOf("touch")?(a=b.changedTouches[0],a=sd((K(),a).clientY||0)):a=sd(b.clientY||0);b=-1!=b.type.indexOf("touch")?Sf(b.changedTouches[0]):sd(b.clientX||0);var d=this.a.a,e,f,g;-1==d.u?(d.u=ac(d.e,a),d.c=Wb(d.d,a)):(f=d.u,d.u<d.e&&(d.u=Wb(d.u,ac(d.e,a))),e=d.c,d.c>d.d&&(d.c=ac(d.c,Wb(d.d,a))),f=f==d.u,e=e==d.c,g=a!=d.k,d.q=f&&e&&g);Ut(d,a);d.k=a;-1==d.i&&(d.i=b);break;case 8:case qa:case Fa:Qt(this.a)}else Qt(this.a)};
+w(474);function Ut(a,b){var d;b<a.u?(d=b-a.u,d=Wb(-1,d/a.f)):b>a.c?(d=b-a.c,d=ac(1,d/a.f)):d=0;a.r=500*d}function Vt(a,b,d,e,f){this.t=a;this.e=b;this.d=d;this.f=e;this.s=f;this.b=Dt(ij(a.b))+((Jt(a).offsetHeight||0)|0);this.a=Dt(It(a))-1}s(472,1,{},Vt);
+_.S=function(a){var b;b=a-this.o;this.o=a;this.q&&(a=v(Math.ceil(0.001*b)),this.u<this.e?(this.u+=a,this.u=ac(this.u,this.e),Ut(this,this.k)):this.c>this.d&&(this.c-=a,this.c=Wb(this.c,this.d),Ut(this,this.k)));this.n+=b/1E3*this.r;b=v(this.n);this.n-=b;0!=b&&ts(this.t.b.o.C,this.t.b.o.C.j+b);b=this.t;a=this.i;var d=Wb(this.b,ac(this.a,this.k));Cq();var e=$wnd.document.elementFromPoint(a,d),e=$wnd.document.elementFromPoint(a,d);null!=e&&3==e.nodeType&&(e=e.parentNode);a=Ft(b,e);for(b=a>this.j?1:-1;-1!=
+a&&this.j!=a;)this.j+=b,Mt(this.t,this.j,this.s);this.p&&10<=this.f&&(this.g=(!Fb&&(Fb=Gb()?new Hb:new Ib),Fb).T(this,ij(this.t.b)))};_.a=0;_.b=0;_.c=-1;_.d=0;_.e=0;_.f=0;_.i=-1;_.j=-1;_.k=0;_.n=0;_.o=0;_.p=!1;_.q=!1;_.r=0;_.s=!1;_.u=-1;w(472);function Wt(a){this.a=a}s(471,1,{},Wt);
+_.wc=function(a){var b;switch(qo(a.d)){case Da:1==Ed(a.d).length&&Qt(this.a.a);break;case Ea:a.a=!0;break;case qa:case Fa:b=Cd(a.d);var d;if(b)if((d=Gt(this.a))&&(K(),L).ob(d,b)){for(;Vc((K(),b))&&Uc(Vc(b))!=d;)b=Vc(b);d=fd(Vc(b))==b}else d=!1;else d=!1;d&&(Kt(this.a),a.a=!0)}};w(471);function Xt(){Xt=m;Yt=new dg}function Zt(a,b,d){Xt();this.a=a;null!=b?R():(R(),R());null!=d?R():(R(),R())}function St(a,b,d){Xt();this.a=a;b?new Vm(b):(R(),R());d?new Vm(d):(R(),R())}s(69,527,{},Zt,St);_.pb=function(a){a.Pd(this)};
+_.qb=function(){return Yt};_.rb=ik;var Yt;w(69);function $t(a){var b,d;0<a.e.a.Yc()&&(d=new au(a.e),b=new St(a.c,null,bu(a)),a.e.a.Te(),a.a&&(a.f.a.Te(),a.b.a.Te(),cu(a.b,d)),En(a.c,b))}function bu(a){var b,d;d=new du;for(b=Bj(new Cj(a.e.a));b.a.Gc();)a=Dj(b),zg(d,a.$c());return R(),new eu(d)}function Rt(a){var b,d;d=new fu(a.a.Yc());for(b=Bj(new Cj(a.a));b.a.Gc();)a=Dj(b),Ob(d,a.$c());return d}function gu(){this.f=new du;this.b=new du;this.d=this.c=null;this.e=new du}
+s(104,539,{173:1,511:1,104:1},gu);_.Qd=function(){return bu(this)};_.Rd=hu;_.Sd=function(a){a=this.c.j.Sc(a);return this.e.a.Oe(a)};_.Td=function(){$t(this)};_.Ud=function(a){if(this.c&&a)throw new X("Selection model is already attached to a grid. Remove the selection model first from the grid and then add it.");(this.c=a)?(this.g=new iu(a),this.d=new Ot(a)):(a=this.g,Lp(a.c.a),Lp(a.d.a),this.d=this.g=null)};_.a=!1;w(104);function ju(){}s(428,539,{},ju);_.Qd=function(){return R(),R(),ku};_.Rd=lu;
+_.Sd=mu;_.Td=Pn;_.Ud=nu;w(428);function ou(a,b){if(null==b)throw new D("Row cannot be null");a.c&&a.c.Zc(a.b.j.Sc(b))&&(pu(a,a.c),En(a.b,new Zt(a.b,null,b)))}function pu(a,b){b&&b.Zc(a.c)&&(a.c.bd(),a.c=null)}function qu(){}s(103,539,{123:1,103:1},qu);_.Qd=function(){var a;if(null!=(this.c?this.c.$c():null)){a=this.c?this.c.$c():null;R();var b;b=new ru;zg(b,a);a=new eu(b)}else a=(R(),R(),ku);return a};_.Rd=lu;_.Sd=function(a){return!!this.c&&this.c.Zc(this.b.j.Sc(a))};
+_.Td=function(){this.c&&ou(this,this.c?this.c.$c():null)};_.Ud=function(a){if(this.b&&a)throw new X("Selection model is already attached to a grid. Remove the selection model first from the grid and then add it.");(this.b=a)?(this.d=new iu(a),this.a=new Bt(a)):(a=this.d,Lp(a.c.a),Lp(a.d.a),Lp(this.a.a.a),this.a=this.d=null)};w(103);function iu(a){this.a=a;this.c=Dn(a,new su(this),a.s.a);this.d=Dn(a,new tu(this),a.t.a)}s(167,1,{},iu);_.b=!1;w(167);function tu(a){this.a=a}s(465,1,{560:1},tu);
+_.Ld=function(a){32==Dd(a.d)&&(this.a.b=!1)};w(465);function su(a){this.b=a}s(463,1,{},su);_.a=null;w(463);function ut(a,b){this.a=a;this.b=b}s(464,1,{},ut);_.Bd=function(a){if(et(a.a,this.b)){a=this.a.b.a;var b;b=a.j.Tc(this.b);a.G.Sd(b)?Nt(a,b):ot(a,b);Lp(this.a.a.a);this.a.a=null}};_.b=0;w(464);function uu(){uu=m;vu=1/Math.sqrt(3);wu=Math.tan(0.6981317007977318)}function Rs(a){var b,d,e,f;a.q==(xu(),yu)&&(e=a.k.g,d=a.g.g,b=a.a.e*a.p,f=Cs(a.s)?rs(a.s):0,zu(a,e+b+f+d+"px"))}
+function it(a,b){return a.k.j!=b&&Wc(a.k.j,b)?a.k:a.a.j!=b&&Wc(a.a.j,b)?a.a:a.g.j!=b&&Wc(a.g.j,b)?a.g:null}function Au(a){var b,d;0==a.a.d.b?En(a,new js(0,0)):(d=Bu(a.a,Cu(a.a.d)),b=Bu(a.a,Du(a.a.d))+1,En(a,new js(d,b-d)))}function Eu(a){return 0==a.a.d.b?$(0,0):$(Bu(a.a,Cu(a.a.d)),a.a.d.b)}function Fu(a){return(0<a.k.n||0<a.a.n||0<a.g.n)&&0<a.d.a.b.length}function Gu(a){return a.j.hasChildNodes()||a.b.hasChildNodes()||a.f.hasChildNodes()}
+function Hu(a){a.K&&(a.D=Wb(0,Gq((T(),a.O))),a.r=Wb(0,Fq(a.O)),Iu(a.k),Iu(a.g),Ju(a.v),Ku(a.a))}function Lu(a,b){null!=b&&b.length?a.o=b:a.o="400.0px";a.q==(xu(),Mu)&&zu(a,b)}function Nu(a,b){if(0>=b)throw new D("The number of rows must be a positive number.");if(!isFinite(b)&&!isNaN(b))throw new D("The number of rows must be finite.");if(isNaN(b))throw new D("The number must not be NaN.");a.p=b;Rs(a)}
+function zu(a,b){var d;d=a.a.d.b;null!=b&&b.length?(T(),a.O).style.height=b:(T(),a.O).style.height="400.0px";Hu(a);d!=a.a.d.b&&Au(a)}function Ou(a,b){if(b!=a.q)switch(a.q=b,a.q.b){case 0:Lu(a,a.o);break;case 1:Nu(a,a.p);break;default:throw new X("Unimplemented feature - unknown HeightMode: "+a.q);}}
+function Pu(a,b){An((T(),a.O),b);var d=a.C;ad(d.f,b+"-scroller");Yc(d.f,b+"-scroller-vertical");d=a.s;ad(d.f,b+"-scroller");Yc(d.f,b+"-scroller-horizontal");An(a.B,b+"-tablewrapper");An(a.n,b+"-header-deco");An(a.i,b+"-footer-deco");An(a.t,b+"-horizontal-scrollbar-deco");d=a.k;Qu(d,b);An(d.j,b+"-header");d=a.a;Qu(d,b);An(d.j,b+"-body");d=a.g;Qu(d,b);An(d.j,b+"-footer")}function Ru(a,b){null!=b&&b.length?(T(),a.O).style.width=b:(T(),a.O).style.width="500.0px";Hu(a)}
+function Su(){uu();var a,b;this.e=new Wr;T();b=$doc;this.j=(K(),b).createElement("thead");b=$doc;this.b=(K(),b).createElement("tbody");b=$doc;this.f=(K(),b).createElement("tfoot");this.C=new Ns;this.s=new Hs;this.k=new Tu(this,this.j);this.a=new Uu(this,this.b);this.g=new Vu(this,this.f);this.v=new Wu(this);this.d=new Xu(this);this.t=M();this.n=M();this.i=M();this.q=(xu(),Mu);this.c=new Yu(this);-1!=$wnd.navigator.userAgent.indexOf("Firefox")?this.u=new cs:(b=$doc.body.style,void 0!==b.transform?
+void 0!==b.transformStyle?this.u=new ds:this.u=new fs:void 0!==b.webkitTransform?this.u=new gs:this.u=new cs);rb(Zu);tb(this.u.cZ);this.O=b=M();a=new $u(this);b.appendChild(this.C.f);ks(this.C,a);As(this.C);b.appendChild(this.s.f);ks(this.s,a);As(this.s);a=this.s;var d=new av(this);rg((!a.a&&(a.a=new Dg(a)),a.a),(Os(),Ps),d);this.B=M();b.appendChild(this.B);a=$doc;a=(K(),a).createElement("table");this.B.appendChild(a);a.appendChild(this.j);a.appendChild(this.b);a.appendChild(this.f);a=this.n.style;
+a.width=Dq()+(Q(),"px");d=(Ud(),"none");a.display=d;b.appendChild(this.n);a=this.i.style;a.width=Dq()+"px";a.display="none";b.appendChild(this.i);a=this.t.style;a.display="none";a.height=Dq()+"px";b.appendChild(this.t);Pu(this,"v-escalator");this.o="400.0px";this.q==Mu&&zu(this,null);this.O.style.width="500.0px";Hu(this)}function bv(a,b,d,e,f){uu();var g;g=a-f;a=b+f-(e-d);return g<d?g:b+f>e?a:d}
+function cv(a,b,d){uu();var e,f,g;g=F(dv,h,0,2,7);0!=a&&0!=b?(e=0>=a?0-a:a,f=0>=b?0-b:b,g[0]=e/f<d?0:a,g[1]=f/e<d?0:b):(g[0]=a,g[1]=b);return g}s(227,17,wa,Su);
+_.oc=function(){var a,b,d;ev(this.k);ev(this.a);ev(this.g);fv(this.k,0,this.k.n);fv(this.g,0,this.g.n);Hu(this);d=!1;for(b=new Bg(this.d.a);b.b<b.d.Yc();)a=(J(b.b<b.d.Yc()),b.d.Ed(b.c=b.b++)),a.c?(a.c=!1,gv(a,a.b),a=!0):a=!1,a&&(d=!0);d&&(hv(this.k),hv(this.a),hv(this.g));iv(this.v,this.C.f);iv(this.v,this.s.f);b=this.v;d=(T(),this.O);d.addEventListener?d.addEventListener(void 0===d.onwheel?"mousewheel":"wheel",b.d):d.attachEvent("onmousewheel",b.d);b=this.v;d=this.O;d.addEventListener&&(d.addEventListener("touchstart",
+b.j),d.addEventListener("touchmove",b.i),d.addEventListener("touchend",b.f),d.addEventListener("touchcancel",b.f))};
+_.pc=function(){var a,b,d,e;jv(this.v,this.C.f);jv(this.v,this.s.f);a=this.v;b=(T(),this.O);b.addEventListener?b.removeEventListener(void 0===b.onwheel?"mousewheel":"wheel",a.d):b.detachEvent("onmousewheel",a.d);a=this.v;b=this.O;b.removeEventListener&&(b.removeEventListener("touchstart",a.j),b.removeEventListener("touchmove",a.i),b.removeEventListener("touchend",a.f),b.removeEventListener("touchcancel",a.f));kv(this.k,0,this.k.n);kv(this.g,0,this.g.n);d=this.b.childNodes.length;for(a=0;a<d;a++)b=
+d-a-1,e=this.b.rows[b],lv(this.a,e,b),this.a.k.Se(e);mv(this.a.d);a=this.a;ai();a.c=0};_.fc=function(a){Lu(this,a)};_.gc=function(a){Ru(this,a)};_.o="";_.p=10;_.r=0;_.w=0;_.A=0;var vu=_.D=0,wu=0,Zu=w(227);s(242,1,{},function(a){this.a=a});_.ab=function(){Hu(this.a)};w(242);function $u(a){this.a=a}s(243,1,{},$u);_.Ad=function(){nv(this.a.v);En(this.a,new Ls)};w(243);function av(a){this.a=a}s(244,1,{},av);w(244);
+function ov(a,b,d){if(1>d)throw new D("Number of rows must be 1 or greater (was "+d+")");if(0>b||b+d>a.n)throw new Lc("The given row range ("+b+".."+(b+d)+") was outside of the current number of rows ("+a.n+")");}function ev(a){qh((xc(),yc),new pv(a))}function qv(a,b){var d;d=io(a.Wd());d.style.height=a.e+(Q(),"px");0<=b&&(d.style.width=b+"px");Yc(d,a.i+"-cell");return d}
+function rv(a,b){var d,e,f,g;if(!b)throw new D("Element cannot be null");if(a.j==b||Vc((K(),b))==a.j||!Wc(a.j,b))return null;for(d=b;Uc(Vc((K(),d)))!=a.j;)d=Vc(d);e=-1;for(f=d;f;f=rd(f))++e;f=-1;for(g=Vc(d);g;g=rd(g))++f;return new Kr(f,e,d)}
+function sv(a,b){var d,e,f,g,l,n,p;f=-1;n=a.j.rows;for(g=0;g<n.length;g++){l=n[g];e=l.cells[b];d=1<e.colSpan;var q=(Ud(),"none"),r;r=e.style;r=(K(),r).display;(p=q===r,d||p)||(d=e.cloneNode(!0),d.style.height="",d.style.width="",l.insertBefore(d,e),e=Gq(d),yq((uq(),!Z&&(Z=new vq),uq(),Z))&&(e+=1),f=e>f?e:f,Xc(d))}return f}function tv(a,b){return a.k.Qe(b).a}function uv(a,b,d){d?(d=d?d.nextSibling:null)?a.insertBefore(b,d):a.appendChild(b):a.insertBefore(b,a.firstChild);return b}
+function bt(a,b,d){if(0>b||b>a.n)throw new Lc("The given index ("+b+") was outside of the current number of rows (0.."+a.n+")");if(1>d)throw new D("Number of rows must be 1 or greater (was "+d+")");a.n+=d;a.o.K&&(a.Yd(b,d),a.n==d&&(a=a.o.c,a.a||(a.a=!0,Ec((xc(),yc),a.c))))}
+function vv(a,b,d){var e,f;for(e=0;e<a.j.childNodes.length;e++){f=a.Xd(e);var g=a,l=b,n=void 0,p=void 0,q=p=void 0,r=void 0,u=q=void 0;Ur(g.o.e,f,e,wv(g.o.d));r=new Zr(g.o.e,l);for(p=new Xr(new Yr(r.a.a,r.c,r.c+r.b),!1);p.c+p.d<p.a.b.length;)n=$r(p),q=xv(g.o.d,n.a),q=qv(g,q),n.c=q;g.p.fd(g.o.e,r);0!=l?u=f.childNodes[l-1]:u=null;for(p=new Xr(new Yr(r.a.a,r.c,r.c+r.b),!1);p.c+p.d<p.a.b.length;)n=$r(p),u=uv(f,n.c,u);g.p.dd(g.o.e,r);g.p.hd(g.o.e,r)}yv(a);if(d)for(d=b;d<b+1;d++)zv(a,d,!0)}
+function fv(a,b,d){var e,f,g,l,n,p;e=new C;if(1>d)return e;0!=a.j.childNodes.length&&0!=b?l=a.j.childNodes[b-1]:l=null;for(n=b;n<b+d;n++){p=(T(),xd());e.b[e.b.length]=p;Yc(p,a.i+"-row");for(g=0;g<a.o.d.a.b.length;g++)f=xv(a.o.d,g),f=qv(a,f),p.appendChild(f),g<a.o.d.b&&(Yc(f,"frozen"),a.o.u.kd(f,a.o.v.b,0));g=a;Ur(g.o.e,p,n,wv(g.o.d));g.p.fd(g.o.e,Sr(g.o.e));l=uv(g.j,p,l);g.p.dd(g.o.e,Sr(g.o.e));g.p.hd(g.o.e,Sr(g.o.e))}yv(a);a._d();return e}
+function Av(a,b){var d,e,f;for(f=0;f<a.j.childNodes.length;f++){e=a.Xd(f);Ur(a.o.e,e,f,wv(a.o.d));d=new Tr(a.o.e,b,1);a.p.gd(a.o.e,d);for(d=0;1>d;d++)Xc(e.cells[b]);e=new Zr(a.o.e,b);a.p.ed(a.o.e,e)}}function lv(a,b,d){Ur(a.o.e,b,d,wv(a.o.d));a.p.gd(a.o.e,Sr(a.o.e));Xc(b);a.p.ed(a.o.e,Sr(a.o.e))}
+function hv(a){var b,d,e,f,g,l;for(e=ed(a.j);e;){b=fd((K(),e));for(d=0;b;)f=(g=hd(b,"colSpan"),l=$(d,g),l.a>a.o.d.a.b.length&&(l=new Pq(d,a.o.d.a.b.length)),Bv(a.o.d,l)),b.style.width=f+(Q(),"px"),b=qd(b),++d;e=qd(e)}yv(a)}function Cv(a,b){var d;for(d=fd((K(),a));d;)d.style.height=b+(Q(),"px"),d=qd(d)}function yv(a){var b;b=Dv(a.o.d);for(a=ed(a.j);a;)0<=b&&(a.style.width=b+(Q(),"px")),a=qd((K(),a))}function Ev(a,b,d,e){Ur(a.o.e,b,d,wv(a.o.d));a.p.hd(a.o.e,new Tr(a.o.e,e.b,e.a-e.b))}
+function Uq(a,b,d){d=$(b,d);b=$(0,a.o.d.a.b.length);a.ae(d,b)}function dt(a,b,d){ov(a,b,d);a.n-=d;a.o.K&&Gu(a.o)&&a.Zd(b,d)}function zv(a,b,d){var e,f,g;f=a.j.rows;for(g=0;g<f.length;g++)e=f[g],e=e.cells[b],d?Yc(e,"frozen"):(kd(e,"frozen"),a.o.u.jd(e));d&&Fv(a,b,a.o.v.b)}function Gv(a,b){a.p=b;Fu(a.o)&&0<a.n&&Uq(a,0,a.n)}function Hv(a,b,d){a.o.u.kd(b,0,d);a.k.Re(b,new S(d))}
+function Qu(a,b){var d,e;if(!gt(a.i,b))for(a.i=b,e=a.j.rows[0];e;){An(e,b+"-row");for(d=e.cells[0];d;)An(d,b+"-cell"),d=qd((K(),d));e=qd((K(),e))}}function Fv(a,b,d){var e,f,g;f=a.j.rows;for(g=0;g<f.length;g++)e=f[g],e=e.cells[b],a.o.u.kd(e,d,0)}function Iv(a,b){this.o=a;this.p=(Lr(),Mr);this.k=new Gg;this.j=b}s(134,1,{});_.Vd=function(){ev(this)};_.ld=function(a){return rv(this,a)};_.md=function(){return this.n};_.nd=function(a){return this.Xd(a)};_.od=function(a){Uq(this,a,1)};_.e=20;_.f=!0;
+_.g=0;_.i=null;_.n=0;w(134);function pv(a){this.a=a}s(240,1,{},pv);_.ab=function(){if(this.a.f&&this.a.o.K){var a=this.a,b,d;a.o.K?(d=(T(),xd()),ad(d,a.i+"-row"),b=io(a.Wd()),ad(b,a.i+"-cell"),(K(),b).textContent="Ij",d.appendChild(b),a.j.appendChild(d),b=Fq(b),a.e=1>b?1:b,a.j.removeChild(d),a.j.hasChildNodes()&&(a.$d(),Rs(a.o))):a.f=!0;this.a.f=!1}};w(240);function Jv(a,b){if(0<=b&&b<a.j.childNodes.length)return a.j.rows[b];throw new Lc("No such visual index: "+b);}
+function kv(a,b,d){var e,f;for(e=b;e<b+d;e++)f=a.j.rows[b],lv(a,f,b);Iu(a)}function Iu(a){var b;b=a.e*a.n;b!=a.g&&(a.g=b,a.be(),Ku(a.b.a))}s(135,134,{});_.Xd=function(a){return Jv(this,a)};_.Yd=function(a,b){fv(this,a,b)};_.Zd=function(a,b){kv(this,a,b)};_.$d=function(){var a;if(0!=this.j.childNodes.length){for(a=this.j.rows[0];a;)Cv(a,this.e),a=qd((K(),a));Iu(this)}};_._d=function(){Iu(this)};
+_.ae=function(a,b){var d,e;ov(this,a.b,a.a-a.b);if(this.b.K&&Fu(this.b))for(d=a.b;d<a.a;d++)e=Jv(this,d),Ev(this,e,d,b)};w(135);function Kv(a,b){var d,e,f;if(0!=b){d=a.b.C;0!=b&&ts(d,d.j+b);d=b-b%a.e;for(f=Lv(a.d,0);f.b!=f.d.c;)e=(J(f.b!=f.d.c),f.c=f.b,f.b=f.b.a,++f.a,f.c.c),Hv(a,e,a.k.Qe(e).a+d);Mv(a,a.b.w,a.b.A+b)}}function Nv(a){return((a.b.B.offsetHeight||0)|0)-a.b.g.g-a.b.k.g}
+function Ov(a,b){var d,e;if(b.b>=b.a)return b;if(0==a.d.b)return $(0,0);e=Pv(a);d=Bu(a,Cu(a.d));e=Iq(b,$(d,e))[1];return 0==-d?e:new Pq(e.b+-d,e.a+-d)}function Qv(a,b,d){var e;e=Pv(a)-a.j.childNodes.length;d=d<e?d:e;if(0<d){d=fv(a,b,d);Rv(a.d,b,d);for(e=0;e<d.b.length;e++)Hv(a,(Kc(e,d.b.length),d.b[e]),(b+e)*a.e);for(b+=d.b.length;b<a.d.b;b++)e=Sv(a.d,b),Hv(a,e,b*a.e);return d}return new C}function Bu(a,b){var d;d=Tv(a.d,b);return a.c+d}function Pv(a){a=v(Math.ceil(Nv(a)/a.e))+1;return 0>a?0:a}
+function Uv(a,b){var d;if(0>b||b>=a.n)throw new Lc("No such logical index: "+b);d=b-Bu(a,Cu(a.d));if(0<=d&&d<a.d.b)return Vv(a,d);throw new X("Row with logical index "+b+" is currently not available in the DOM");}function Vv(a,b){if(0<=b&&b<a.d.b)return Sv(a.d,b);throw new Lc("No such visual index: "+b);}
+function Wv(a,b,d,e){var f,g,l;if(!(b.b>=b.a)){if(0>b.b)throw new D("Logical source start must be 0 or greater (was "+b.b+")");if(0>e)throw new D("Logical target must be 0 or greater");if(0>d)throw new D("Visual target must be 0 or greater");if(d>a.j.childNodes.length)throw new D("Visual target must not be greater than the number of escalator rows");if(e+(b.a-b.b)>a.n)throw a=e+(b.a-b.b)-1,new D("Logical target leads to rows outside of the data range ("+e+".."+a+")");b.b<d?f=d-(b.a-b.b):f=d;if(b.b!=
+f){l=new fu(b.a-b.b);for(g=0;g<b.a-b.b;g++)d=Xv(a.d,b.b),l.b[l.b.length]=d;Rv(a.d,f,l)}l=Lv(a.d,f);for(g=e;g<e+(b.a-b.b);g++)d=(J(l.b!=l.d.c),l.c=l.b,l.b=l.b.a,++l.a,l.c.c),Ev(a,d,g,$(0,a.o.d.a.b.length));e*=a.e;l=Lv(a.d,f);for(g=0;g<b.a-b.b;g++)d=(J(l.b!=l.d.c),l.c=l.b,l.b=l.b.a,++l.a,l.c.c),a.o.u.kd(d,0,e),a.k.Re(d,new S(e)),e+=a.e}}function Mv(a,b,d){a.b.w=b;a.b.A=d;a.b.u.kd(a.b.b,-a.b.w,-a.b.A)}
+function Yv(a){var b,d,e,f;b=null;Cq();if((d=$wnd.document.activeElement?$wnd.document.activeElement:null)&&Wc(a.j,d))for(;d&&d!=a.j;)d&&vd("tr",(K(),d).tagName)&&(b=d),d=Vc((K(),d));e=!b;for(d=Lv(a.d,a.d.b);d.b.b!=d.d.a;)if(f=(J(d.b.b!=d.d.a),d.c=d.b=d.b.b,--d.a,d.c.c),f==b)e=!0;else if(e){var g=a.j;g.insertBefore(f,g.firstChild)}else{var g=a.j,l=void 0;(l=b?b.nextSibling:null)?g.insertBefore(f,l):g.appendChild(f)}}
+function Ku(a){var b,d,e,f;if(a.b.K){f=Pv(a);f=ac(f,a.b.a.n);f-=a.d.b;if(0<f)e=a.d.b,0==a.d.b?d=0:d=Bu(a,Du(a.d))+1,(b=d<a.n-f)?(b=Qv(a,e,f),Wv(a,$(e,b.b.length),e,d)):(d=a.b.C.j,ts(a.b.C,0),nv(a.b.v),Qv(a,e,f),ts(a.b.C,d),nv(a.b.v));else if(0>f){e=Lv(a.d,a.d.b);for(d=0;d<-f;d++)b=(J(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c),Xc(b),Zv(e);0!=a.d.b&&(e=tv(a,Cu(a.d)),d=a.b.A-a.e,e<d&&(d=Bu(a,Du(a.d))+1,Wv(a,new Pq(0,1),a.d.b,d)))}0!=f&&Au(a.b)}}
+function Uu(a,b){this.b=a;Iv.call(this,a,b);this.d=new im;this.c=0;this.a=new $v(this)}s(234,134,{},Uu);_.ld=function(a){var b;a=rv(this,a);if(!a)return null;b=Uc(a.b);return new Kr(Bu(this,b),a.a,a.b)};_.Wd=aw;_.nd=function(a){return Uv(this,a)};_.Xd=function(a){return Vv(this,a)};
+_.Yd=function(a,b){var d,e,f,g;if(0!=b)if(d=Qv(this,a,b),Ju(this.b.v),e=a*this.e<this.b.C.j,f=a*this.e>this.b.C.j+Nv(this),e)e=b*this.e,Kv(this,e),e=this.c+b,ai(),this.c=e;else if(!f){e=a+d.b.length;f=Bu(this,Cu(this.d));d=b-d.b.length;g=Ov(this,$(e,d));d=this.j.childNodes.length;g=d-(g.a-g.b);f=e-f;Wv(this,new Pq(g,d),f,e);e=(e+(d-g))*this.e;for(d=Lv(this.d,f+(d-g));d.b!=d.d.c;)f=(J(d.b!=d.d.c),d.c=d.b,d.b=d.b.a,++d.a,d.c.c),this.o.u.kd(f,0,e),this.k.Re(f,new S(e)),e+=this.e;Au(this.b);Yv(this)}};
+_.Zd=function(a,b){var d,e,f,g,l,n,p,q;if(0!=b){f=Eu(this.b);p=$(a,b);f=Iq(p,f);p=f[0];d=f[1];f=Ov(this,d);g=f.b<f.a&&0==f.b;if(p.b<p.a||g)e=(p.a-p.b)*this.e,l=this.e,l=this.b.C.j-e<l,!(f.b>=f.a)||l&&g?l&&Kv(this,-this.b.C.j):Kv(this,-e);if(f.b<f.a){g=this.b.b.childNodes.length;e=this.n;if(e<g){e=g-e;for(n=0;n<e;n++)l=Xv(this.d,f.b),lv(this,l,a),this.k.Se(l);g-=e;Mv(this.b.a,this.b.w,0);for(f=d.b;f<g;f++)l=Sv(this.d,f),Hv(this,l,f*this.e);f=b-e;for(n=0>g-f?0:g-f;n<g;n++)l=Sv(this.d,n),Ev(this,l,n,
+$(0,this.o.d.a.b.length))}else if(e=this.n*this.e,q=this.b.A+Nv(this),q<=e)for(g=this.d.b,e=Bu(this,Du(this.d))-(f.a-f.b-1),Wv(this,f,g,e),e=Lv(this.d,f.b),l=d.b*this.e,d=f.b;d<g-(f.a-f.b);d++)q=(J(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c),this.o.u.kd(q,0,l),this.k.Re(q,new S(l)),l+=this.e;else if(0>=f.b&&0<f.a&&b>=this.d.b)f=this.b.s.j,d=e-this.d.b*this.e,Mv(this,f,d),d=$(0,this.d.b),f=this.n-(d.a-d.b),Wv(this,d,0,f);else if(e+b*this.e-q<this.e){g=Bu(this,Cu(this.d))-(f.a-f.b);Wv(this,f,0,g);f=
+Lv(this.d,f.a);for(g=d.b*this.e;f.b!=f.d.c;)e=(J(f.b!=f.d.c),f.c=f.b,f.b=f.b.a,++f.a,f.c.c),this.o.u.kd(e,0,g),this.k.Re(e,new S(g)),g+=this.e;f=this.c+-(d.a-d.b);ai();this.c=f}else{d=tv(this,Sv(this.d,f.b));for(n=0;n<f.a-f.b;n++){l=Xv(this.d,f.b);var r=this.d;jm(r,l,r.c.b,r.c)}for(n=f.b;n<g;n++)l=Sv(this.d,n),Hv(this,l,v(d)),d+=this.e;d=e-Nv(this);ts(this.b.C,d);nv(this.b.v);Wv(this,new Pq(g-1,g-1+1),0,Bu(this,Cu(this.d))-1);d=this.c+-1;ai();this.c=d;d=v(Math.ceil((q-e)/this.e));d=g-(f.a-f.b-d);
+g=new Pq(d,g);f=Bu(this,Cu(this.d))+d;Wv(this,g,d,f)}Au(this.b);Yv(this)}p=this.c+-(p.a-p.b);ai();this.c=p;Ju(this.b.v)}};_.$d=function(){var a,b,d;if(0!=this.d.b){for(a=0;a<this.d.b;a++)d=Sv(this.d,a),Cv(d,this.e),b=this.c+a,Hv(this,d,b*this.e);a=this.b.C.j/os(Fd(this.b.C.k.style,"height"));Ju(this.b.v);ts(this.b.C,v(this.e*this.n*a));Mv(this,this.b.s.j,this.b.C.j);nv(this.b.v);Ku(this);a=v(tv(this,Cu(this.d))/this.e);ai();this.c=a}};_._d=Pn;
+_.ae=function(a,b){var d,e,f;f=Ov(this,a);if(f.b<f.a)for(d=Bu(this,Cu(this.d)),e=f.b;e<f.a;e++)Ev(this,Sv(this.d,e),d+e,b)};_.c=0;w(234);function bw(a){cw(a);a.a=(!Fb&&(Fb=Gb()?new Hb:new Ib),Fb).T(a.b,null)}function cw(a){a.a&&(a.a.U(),a.a=null);a.d=Bb();a.c=0}function $v(a){this.e=a;this.b=new dw(this)}s(235,1,{},$v);_.c=0;_.d=0;w(235);function dw(a){this.a=a}s(241,1,{},dw);
+_.S=function(){++this.a.c;var a=this.a,b,d;b=3<=a.c;d=50<=Bb()-a.d;if(b=b&&d)cw(a),Yv(a.e);b||(this.a.a=(!Fb&&(Fb=Gb()?new Hb:new Ib),Fb).T(this,null))};w(241);function Yu(a){this.b=a;this.c=new ew(this)}s(231,1,{},Yu);_.a=!1;w(231);function ew(a){this.a=a}s(239,1,{},ew);_.ab=function(){var a,b,d;if(this.a.a)for(this.a.a=!1,a=this.a.b.d,b=0;b<a.a.b.length;b++)d=as(a.a,b),d.e||(fw(a,b,-1),d.d.c.c.a=!1,d.e=!0)};w(239);function Dv(a){return Bv(a,new Pq(0,a.a.b.length))}
+function gw(a,b){if(!et($(0,a.a.b.length),b))throw new D("The given column index ("+b+") does not exist");}function wv(a){var b;if(null==a.d||a.d.length!=a.a.b.length)for(a.d=F(dv,h,0,a.a.b.length,7),b=0;b<a.a.b.length;b++)a.d[b]=hw(as(a.a,b));return a.d}function Bv(a,b){var d,e,f;f=0;for(e=b.b;e<b.a;e++)d=hw(as(a.a,e)),f+=d;return f}function xv(a,b){return hw(as(a.a,b))}function fw(a,b,d){gw(a,b);gv(as(a.a,b),d);b=as(a.a,b);b.d.c.c.a=!1;b.e=!0;a.d=null;hv(a.c.k);hv(a.c.a);hv(a.c.g);Hu(a.c)}
+function Xu(a){this.c=a;this.a=new C}s(236,1,{},Xu);_.b=0;_.d=null;w(236);function hw(a){return a.c?-1:a.a}function gv(a,b){a.b=b;if(0>b)if(a.d.c.K){var d=a.d,e=Rm(a.d.a,a),f,g;g=sv(d.c.k,e);f=sv(d.c.a,e);d=sv(d.c.g,e);a.a=g>(f>d?f:d)?g:f>d?f:d}else a.c=!0;else a.a=b}function iw(a){this.d=a}s(237,1,{},iw);_.a=100;_.b=-1;_.c=!1;_.e=!1;w(237);
+function jw(a,b,d,e){var f;this.f=a;f=Bb();this.g=-7<(7>b/(f-e)?b/(f-e):7)?7>b/(f-e)?b/(f-e):7:-7;this.i=-7<(7>d/(f-e)?d/(f-e):7)?7>d/(f-e)?d/(f-e):7:-7;this.b=a.s.j;this.c=a.C.j;a=cv(this.g,this.i,(uu(),vu));this.g=a[0];this.i=a[1];0.005<this.g*this.g+this.i*this.i?(this.d=1500,this.j=this.g/this.d,this.k=this.i/this.d):this.d=0}s(229,1,{},jw);
+_.S=function(){var a,b,d,e,f;0>=this.d||this.a?this.f.v.a=null:(f=Bb(),0==this.e?this.e=f:(a=this.f.s.j,b=this.f.C.j,e=f-this.e,d=a-this.g*e,ts(this.f.s,d),this.g-=this.j*e,d=b-this.i*e,ts(this.f.C,d),this.i-=this.k*e,this.b==this.f.s.j&&this.c==this.f.C.j&&(this.a=!0),this.e=f,this.d=v(this.d-e),this.b=a,this.c=b),(!Fb&&(Fb=Gb()?new Hb:new Ib),Fb).T(this,null))};_.a=!1;_.b=0;_.c=0;_.d=0;_.e=0;_.g=0;_.i=0;_.j=0;_.k=0;w(229);function Vu(a,b){this.b=this.a=a;Iv.call(this,a,b)}s(233,135,{},Vu);
+_.Wd=aw;_.be=function(){var a;a=v(Math.floor(this.a.r-this.a.k.g-this.a.g.g));Dv(this.a.d)>this.a.D&&(a=v(a-rs(this.a.s)));this.a.i.style.height=this.a.g.g+(Q(),"px");us(this.a.C,a)};w(233);function Tu(a,b){this.b=this.a=a;Iv.call(this,a,b)}s(232,135,{},Tu);_.Wd=function(){return"th"};_.be=function(){this.a.b.style.marginTop=this.g+(Q(),"px");this.a.C.f.style.top=this.g+"px";this.a.n.style.height=this.g+"px"};w(232);
+function kw(a,b,d,e){if(!isNaN(b)){var f=a.s;0!=b&&ts(f,f.j+b)}isNaN(d)||(f=a.C,0!=d&&ts(f,f.j+d));d=0!=d&&Cs(a.C);a=0!=b&&Cs(a.s);(d||a)&&(K(),e).preventDefault()}function lw(a){return A(function(b){a.ce(b)})}function mw(a){return A(function(b){a.de(b)})}function nw(a){return A(function(b){a.ee(b)})}function ow(a){this.j=new pw(this);this.d=a}s(228,1,{},ow);
+_.ce=function(a){this.n=Ed(a).length;0==this.n&&(a=this.d.v,a.a=new jw(a.c,this.b,this.c,this.e),(!Fb&&(Fb=Gb()?new Hb:new Ib),Fb).T(a.a,null),bw(this.d.a.a))};_.de=function(a){var b;this.i=a;this.a&&this.a.U();this.a=(!Fb&&(Fb=Gb()?new Hb:new Ib),Fb).T(this.j,this.d.b);(K(),a).preventDefault();qw((b=this.j,Bb(),b))};_.ee=function(a){this.n=Ed(a).length;if(1==this.n){var b=this.d.v;b.a&&(b.a.a=!0);this.f=a.targetTouches[0].pageX;this.g=a.targetTouches[0].pageY;this.k=!0}};_.b=0;_.c=0;_.e=0;_.f=0;
+_.g=0;_.k=!0;_.n=0;w(228);function qw(a){var b,d,e;1==a.a.n&&(b=a.a.i.targetTouches[0].pageX,d=a.a.i.targetTouches[0].pageY,a.a.b=b-a.a.f,a.a.c=d-a.a.g,a.a.f=b,a.a.g=d,a.a.e=Bb(),a.a.k&&(b=a.a.b,d=a.a.c,e=cv(a.a.b,a.a.c,(uu(),wu)),a.a.b=e[0],a.a.c=e[1],0!=b&&a.a.b==b&&0!=d&&a.a.c==d&&(a.a.k=!1)),kw(a.a.d,-a.a.b,-a.a.c,a.a.i))}function pw(a){this.a=a}s(238,1,{},pw);_.S=function(){qw(this)};w(238);s(226,1,{});w(226);
+function iv(a,b){b.addEventListener?b.addEventListener("scroll",a.e):b.attachEvent("onscroll",a.e)}function rw(a){return A(function(b){var d=b.deltaX?b.deltaX:-0.5*b.wheelDeltaX,e=b.deltaY?b.deltaY:-0.5*b.wheelDeltaY;isNaN(e)&&(e=-0.5*b.wheelDelta);kw(a,d,e,b)})}function sw(a){var b=a.C,d=b.pd(),e=a.s,f=e.pd();return A(function(a){a=a.target||a.srcElement;a===d?b.zd():a===f?e.zd():$wnd.console.error("unexpected scroll target: "+a)})}
+function jv(a,b){b.addEventListener?b.removeEventListener("scroll",a.e):b.detachEvent("onscroll",a.e)}
+function nv(a){var b,d,e;e=a.c.C.j;d=a.c.s.j;if(a.b!=d){for(b=0;b<a.c.d.b;b++)Fv(a.c.k,b,d),Fv(a.c.a,b,d),Fv(a.c.g,b,d);a.c.u.kd(a.c.j,-d,0);t(a.c.u,89)?a.c.f.style.left=-d+(Q(),"px"):a.c.u.kd(a.c.f,-d,0);a.b=d}Mv(a.c.a,d,e);a=a.c.a;var f,g;0!=a.d.b&&(d=!1,e=tv(a,Cu(a.d)),b=a.b.A,e-=b,0<e?(d=v(Math.ceil(e/a.e)),e=ac(d,a.j.childNodes.length),d=a.j.childNodes.length,e=d-e,f=v(b/a.e),Wv(a,new Pq(e,d),0,f),ai(),a.c=f,d=!0):0>=e+a.e&&(d=e/a.e,d=v(0>=d?0-d:d),e=ac(d,a.j.childNodes.length),e<a.j.childNodes.length?
+f=Bu(a,Du(a.d))+1:f=v(b/a.e),g=a.j.childNodes.length,b=!1,f+e>a.n&&(--e,b=!0),Wv(a,new Pq(0,e),g,f),b&&(f=new Pq(0,1),b=a.n-a.d.b,Wv(a,f,0,b)),b=a.c+d,f=a.n-a.d.b,ai(),a.c=b<f?b:f,d=!0),d&&(Au(a.b),0==a.b.v.g.n&&bw(a.a)))}
+function Ju(a){var b,d,e,f,g,l;b=a.c.a;f=b.e*b.n;d=Dv(a.c.d);g=a.c.r;b=a.c.D;l=f>g-a.c.k.g-a.c.g.g;e=d>b;l!=e&&(!l&&e?l=f>g-a.c.k.g-a.c.g.g-rs(a.c.s):e=d>b-rs(a.c.C));l&&(b-=rs(a.c.C),b=0>b?0:b);e&&(g-=rs(a.c.s),g=0>g?0:g);a.c.B.style.height=g+(Q(),"px");a.c.B.style.width=b+"px";us(a.c.C,Wb(0,g-a.c.g.g-a.c.k.g));xs(a.c.C,f);e=a.c.s.j;f=Bv(a.c.d,new Pq(a.c.d.b,a.c.d.a.b.length));d-=f;us(a.c.s,b-d);xs(a.c.s,f);a.c.s.f.style.left=d+"px";ts(a.c.s,e);Cs(a.c.s)?a.c.t.style.display="":a.c.t.style.display=
+(Ud(),"none");d=a.c.n.style;b=a.c.i.style;Cs(a.c.C)?(d.display="",b.display="",Cs(a.c.s)?(a=rs(a.c.s),b.bottom=a+"px"):b.bottom=""):(a=(Ud(),"none"),d.display=a,b.display="none")}function Wu(a){this.c=a;this.e=sw(a);this.d=rw(a);this.g=new ow(a);this.j=nw(this.g);this.i=mw(this.g);this.f=lw(this.g)}s(230,226,{},Wu);_.b=0;w(230);
+function tw(a,b,d){var e;uw(a.f,d,b);vw(a.r,b);vw(a.q,b);ww(b,a);e=a.o.d;var f,g,l;if(0>d||d>e.a.b.length)throw new Lc("The given index("+d+") was outside of the current number of columns (0.."+e.a.b.length+")");f=e.c.e;for(l=0;1>l;l++)g=d+l,uw(f.a,g,new Qr(f,g));Vr(f,d+1);for(f=0;1>f;f++)uw(e.a,d,new iw(e));(f=d<e.b)&&(e.b+=1);l=os(Fd(e.c.s.f.style,"width"))<os(Fd(e.c.s.k.style,"width"));Ju(e.c.v);g=os(Fd(e.c.s.f.style,"width"))<os(Fd(e.c.s.k.style,"width"));!l&&g&&Ku(e.c.a);vv(e.c.k,d,f);vv(e.c.a,
+d,f);vv(e.c.g,d,f);if(0<e.c.k.n||0<e.c.a.n||0<e.c.g.n)for(f=d;f<d+1;f++)fw(e.c.d,f,-1),g=as(e.c.d.a,f),g.d.c.c.a=!1,g.e=!0;f=Bv(e.c.d,$(0,d));e.c.v.b>f&&(d=Bv(e.c.d,$(d,1)),ts(e.c.s,e.c.v.b+d));b.je(b.j);e=new yg;e.Ne(xw(b.c));yw(a,e)}function tt(a,b){Ec((xc(),yc),new zw(a,b));return Dn(a,b,(Ss(),Ts))}
+function Nt(a,b){if(t(a.G,123))ou(a.G,b);else if(t(a.G,173)){var d=a.G,e=new Si(O(y(z,1),h,1,3,[b])),f,g,l;g=new du;for(l=new Bg(e);l.b<l.d.Yc();){e=(J(l.b<l.d.Yc()),l.d.Ed(l.c=l.b++));f=d.c.j.Sc(e);var n;n=d;null!=n.e.a.Se(f)?(n.a?(n.f.a.Se(f),zg(n.b,f)):f.bd(),n=!0):n=!1;n&&zg(g,e)}0<g.a.Yc()&&En(d.c,new St(d.c,null,g))}else throw new X("Unsupported selection model");}function Aw(a,b){if(0>b||b>=a.f.b.length)throw new X("Column not found.");return as(a.f,b)}
+function xw(a){var b;b=new yg;t(a,66)&&(a=Et(),b.Ne(a));return b}function Bw(a){var b,d,e;d=Eu(a.o).b;b=a.o.k.j;e=(K(),L).eb(b)+((b.offsetHeight||0)|0);for(b=Uv(a.o.a,d);(K(),L).eb(b)+((b.offsetHeight||0)|0)<e;)b=Uv(a.o.a,++d);return d}function Cw(a){var b,d,e;e=Eu(a.o).a;b=cd(a.o.g.j);do d=Uv(a.o.a,--e);while((K(),L).eb(d)>b);return e}function Dw(a){if(t(a.G,123))return a=a.G,a.c?a.c.$c():null;throw new X("Unsupported selection model; can not get single selected row");}
+function ht(a,b){var d;a:{d=b;Cq();var e;if(d){for(e=null;!e&&d;)e=(T(),Tj(d)),!e&&(d=Vc((K(),d)));if(t(e,17))for(d=e;d;)break a}d=null}if(d==a)return!1;for(;d&&d!=a;)d=d.N;return!!d}function Ew(a){Fw(a.o.k,a.r)}function Fw(a,b){var d;d=(b.e?b.d.b.length:0)-a.n;0<d?(bt(a,0,d),Hu(a.b),Rs(a.b)):0>d&&(dt(a,0,-d),Hu(a.b),Rs(a.b));0<a.n&&Uq(a,0,a.n)}
+function Gw(a,b){var d;d=Rm(a.f,b);var e=a.o.d;if(0>d||d+1>e.a.b.length)throw new Lc("The given column range ("+d+".."+(d+1)+") was outside of the current number of columns ("+e.a.b.length+")");var f,g,l;os(Fd(e.c.s.f.style,"width"))>=os(Fd(e.c.s.k.style,"width"))||(f=Bv(e,new Pq(0,d)),l=Bv(e,$(d,1)),g=e.c.s.j,g<=f||ts(e.c.s,f>g-l?f:g-l));Av(e.c.k,d);Av(e.c.a,d);Av(e.c.g,d);f=e.c.e;Hw(new Yr(f.a,d,d+1));Vr(f,d);Hw(new Yr(e.a,d,d+1));d<e.b&&(d+1<e.b?e.b-=1:e.b=d);Ju(e.c.v);Ku(e.c.a);0<e.c.d.a.b.length&&
+(f=e.c.k,0<f.n&&yv(f),f=e.c.a,0<f.n&&yv(f),e=e.c.g,0<e.n&&yv(e));Iw(a);Jw(a.r,b);Jw(a.q,b);ww(b,null);a.f.Xe(d)}function vt(a,b){var d;d=a.o.a.n-1;if(0>b)throw new D("Row index ("+b+") is below zero!");if(b>d)throw new D("Row index ("+b+") is above maximum ("+d+")!");d=a.o;if(0>b||b>=d.a.n)throw new Lc("The given row index "+b+" does not exist.");d=d.v;var e,f,g;f=d.c.a.e*b;e=f+d.c.a.e;g=d.c.C.j;e=bv(f,e,g,g+Nv(d.c.a),0);ts(d.c.C,e)}
+function ot(a,b){if(t(a.G,123)){var d=a.G,e;if(null==b)throw new D("Row cannot be null");e=d.c?d.c.$c():null;var f;(f=d.b.j.Sc(b))&&!f.Zc(d.c)?(pu(d,d.c),d.c=f,d.c.ad(),f=!0):f=!1;f&&En(d.b,new Zt(d.b,b,e))}else if(t(a.G,173)){d=a.G;f=new Si(O(y(z,1),h,1,3,[b]));var g,l;e=new du;for(l=new Bg(f);l.b<l.d.Yc();){f=(J(l.b<l.d.Yc()),l.d.Ed(l.c=l.b++));g=d.c.j.Sc(f);var n;n=d;zg(n.e,g)?(g.ad(),n.a&&(n.b.a.Se(g),zg(n.f,g)),n=!0):n=!1;n&&zg(e,f)}0<e.a.Yc()&&En(d.c,new St(d.c,e,null))}else throw new X("Unsupported selection model");
+}function Kw(a,b){var d;if(!b)throw new D("dataSource can't be null.");a.G.Td();a.j&&a.j.Xc(null);a.j=b;b.Xc(new Lw(a,b));d=a.o.a.n;0!=d&&dt(a.o.a,0,d);Mw(a)}function Mw(a){var b;b=a.j.Yc();-1==b&&a.J&&a.J.K&&(b=Pv(a.o.a));0<b&&bt(a.o.a,0,b)}
+function Nw(a,b){var d;d=b.ke();a.G&&a.G.Ud(null);a.G=d;d.Ud(a);d=a.G.Rd();var e;if(a.D!=d){a.D&&(a.D&&(e=a.D,e.c&&Kt(e)),e=a.F,a.F=null,Gw(a,e),Ow(a.b,-1));if(a.D=d){Ow(a.b,1);a.F=new Pw(a,d);tw(a,a.F,0);d=a.F;var f;if(t(d.b.G,173)&&d.b.r.a){f=d.b.G;e=new sp;f=new Qw(d,f);if(!e.c){var g=new up(e),l=(Vf(),Vf(),Wf),n;n=l.b;n=Hn((T(),n));if(-1==n){n=l.b;var p=(T(),e.O);T();fp(p,n)}else-1==e.L?On(e.a,n|(T(),e.a.__eventBits||0)):-1==e.L?On((T(),e.O),n|(e.O.__eventBits||0)):e.L|=n;rg(e.M?e.M:e.M=new Dg(e),
+l,g);e.c=!0}Dn(e,f,(!qg&&(qg=new dg),qg));f=Rw(d.b.r.a,d);f.b=e;f.d=(Sw(),Tw);Uw(f.c)}Vw(d,-1);d.a=!0}else a.F=null,Uq(a.o.a,0,a.o.a.n);Iw(a)}}function yw(a,b){var d,e,f,g;d=0;for(g=b.vc();g.Gc();)f=g.Hc(),e=Hn((T(),f)),0>e?(e=a.O,T(),fp(e,f)):d|=e;0<d&&(-1==a.L?On((T(),a.O),d|(a.O.__eventBits||0)):a.L|=d)}
+function Iw(a){var b;b=0;a.F&&++b;a=a.o.d;var d=b,e,f;if(0>d||d>a.a.b.length)throw new D("count must be between 0 and the current number of columns ("+a.a.b.length+")");f=a.b;if(d!=f){a.b=d;if(Gu(a.c))for((b=d>f)?e=f:(e=d,d=f);e<d;e++)zv(a.c.k,e,b),zv(a.c.a,e,b),zv(a.c.g,e,b);Ju(a.c.v)}}
+function Ww(){var a;this.p=new Vs(this);this.s=new st(this,this.p);this.t=new xt(this,this.p);new wt(this,this.p);this.e=new nt(this,this.p);new pt(this,this.p);this.o=new Su;this.r=new Xw;this.q=new Yw;this.f=new C;this.g=$(0,0);this.H=new C;this.I=new Zw(this);this.k=new $w;this.a=new ax(this);this.A=new Ws;this.u=new Xs(this.A);a=this.o;var b;if(this.J)throw new X("Composite.initWidget() may only be called once.");Jj(a);this.O=b=(T(),a.O);Qp();var d;T();try{d=!!b&&!!b.__gwt_resolve}catch(e){d=
+!1}d&&(Qp(),b.__gwt_resolve=Sp(this));this.J=a;Mn(a,this);(T(),this.O).tabIndex=0;this.b=new bx(this);An((T(),this.O),"v-grid");Pu(this.o,"v-grid");a=this.k;null!=a.c&&kd(a.a,a.c);a.c="v-grid-editor";Yc(a.a,a.c);a=tn(this.O)+"-row";this.w=a+"-has-data";this.B=a+"-selected";this.C=a+"-stripe";this.c=tn(this.O)+"-cell-focused";this.v=tn(this.O)+"-row-focused";this.J&&this.J.K&&(Fw(this.o.k,this.r),Uq(this.o.a,0,this.o.a.n),Fw(this.o.g,this.q));Gv(this.o.k,new cx(this,this.r,this.o.k));Gv(this.o.a,new dx(this));
+Gv(this.o.g,new cx(this,this.q,this.o.g));this.r.c=this;a=ex(this.r);fx(this.r,a);this.q.c=this;tt(this,new gx(this.k));Nw(this,(hx(),ix));Dn(this.o,new jx(this),(ls(),ms));Dn(this.o,new kx(this),(hs(),is));Dn(this,new lx(this),(Xt(),Xt(),Yt));yw(this,new Si(O(y(hb,1),h,2,4,["touchstart","touchmove","touchend","touchcancel","click"])));yw(this,new Si(O(y(hb,1),h,2,4,["keydown","keyup","keypress","dblclick"])));Dn(this,new mx(this),this.t.a);tt(this,new nx(this))}
+function ox(a){var b;b=id(a,"customStyle");gt(b,null)||(null!=b&&kd(a,b),a.customStyle=null)}s(195,530,{26:1,21:1,19:1,24:1,38:1,22:1,20:1,17:1},Ww);_.sc=function(){throw new Rn("Cannot add widgets to Grid with this method");};_.vc=function(){throw new Rn("Cannot iterate through widgets in Grid this way");};_.lc=function(){vp(this);0==this.o.a.n&&this.j&&Mw(this)};
+_.mc=function(a){var b,d,e,f;if(this.n&&(f=(K(),L).nb(a),nd(f))){d=it(this.o,f);e=a.type;if(d)b=d.ld(f),"mousedown"===e?this.d=b:!b&&"click"===e&&(b=this.d);else if("keydown"===e||"keyup"===e||"keypress"===e)d=this.b,b=new Kr(d.g,d.a.b,d.b),d=this.b.c;else return;e=this.p;var g,l;l=b.c;g=b.a;var n=e.e,p=e.b.j.Tc(l);n.b=l;n.a=p;l=Aw(e.b,g);e.d=g;e.c=l;e.a=b.b;Gn(this,a);Gn(this.J,a);(f=ht(this,f))||(d==this.o.k&&px(this.r,this.p.e.b),f=!1);if(!f){a:{if(d==this.o.a&&(d=this.p.c,K(),t(d.c,66))){f=d.c;
+if(d=Et().a.Oe(a.type))if(!(d=Wi("touchstart",(K(),a).type))&&(d="mousedown"===a.type)&&(d=a.button,d=1==(1==d?4:2==d?2:1)),d){Kt(f);f.c=ro(new Wt(f));d=Ft(f,L.nb(a));f=f.a;e=f.f.b.G;t(e,511)&&(e.a=!0);e=f.f;b=Dt(ij(e.b))+((Jt(e).offsetHeight||0)|0);e=Dt(It(f.f))-1;g=(T(),f.f.b.O);for(l=0;g;)l-=(g.scrollTop||0)|0,g=Vc((K(),g));g=l;f.g=g+b+100;f.b=g+e-100;f.c=100;50>f.b-f.g&&(e=50-(f.b-f.g),f.g-=e/2|0,f.b+=e/2|0,f.c-=e/2|0);f.d=ro(f.e);e=f.f;b=f.g;g=f.b;l=f.c;n=f.f;p=n.b.j.Tc(d);n=n.b.G.Sd(p);f.a=
+new Vt(e,b,g,l,!n);f=f.a;f.p=!0;Mt(f.t,d,f.s);f.j=d;f.p&&10<=f.f&&(f.g=(!Fb&&(Fb=Gb()?new Hb:new Ib),Fb).T(f,ij(f.t.b)));a.preventDefault();a.stopPropagation();d=!0}else throw new X("received unexpected event: "+a.type);if(d){d=!0;break a}}d=!1}if(!d)a:if(Wi((K(),a).type,"keydown")){e=-1;f=this.o.a;switch(a.keyCode|0){case 36:0<f.n&&(e=0);break;case 35:0<f.n&&(e=f.n-1);break;case 33:d=Eu(this.o);d.b<d.a&&(f=Bw(this),e=f-(d.a-d.b),0>e&&(e=0));break;case 34:d=Eu(this.o);d.b<d.a&&(e=Cw(this),e+=d.a-
+d.b,e>=f.n&&(e=f.n-1));break;default:d=!1;break a}vt(this,e);d=!0}else d=!1;f=d}if(!f&&(d=new Si(O(y(hb,1),h,2,4,["keydown","click"])),-1!=Tv(d,a.type)))a:if(d=this.b,f=this.p,Wi((K(),a).type,"click"))qx(d,f.e.b,f.d,it(d.j.o,f.a)),ij(d.j).focus();else if("keydown"===a.type){b=d.g;e=d.c;f=d.a.b;switch(a.keyCode|0){case 40:++b;break;case 38:--b;break;case 39:if(d.a.a>=rx(new Vm(d.j.f)).Yc())break a;f=d.a.a;break;case 37:if(0==f)break a;--f;break;case 9:a.shiftKey?e=sx(d,d.c):e=tx(d,d.c);if(e==d.c)break a;
+break;default:break a}e!=d.c?e==d.j.o.a?b=d.d:e==d.j.o.k?b=d.f:b=d.e:0>b?(e=sx(d,e),e==d.c?b=0:e==d.j.o.a?b=Cw(d.j):b=e.n-1):b>=d.c.n&&(e=tx(d,e),e==d.c?b=d.c.n-1:e==d.j.o.a?b=Bw(d.j):b=0);0!=e.n&&(a.preventDefault(),a.stopPropagation(),qx(d,b,f,e))}}};_.tc=mu;_.fc=function(a){Lu(this.o,a)};_.gc=function(a){Ru(this.o,a)};_.i=!1;_.n=!0;_.D=null;var ux=w(195);function jx(a){this.a=a}s(217,1,{},jx);_.Ad=function(){En(this.a,new Ls)};w(217);function kx(a){this.a=a}s(218,1,{},kx);w(218);
+function lx(a){this.a=a}s(219,1,{},lx);_.Pd=function(){var a=this.a;Uq(a.o.a,0,a.o.a.n)};w(219);function mx(a){this.a=a}s(220,1,{558:1},mx);_.Ld=function(a){if(13==Dd(a.d)){var b=this.a.I;a=a.c.c;K();vx(b,a)}};w(220);function nx(a){this.a=a}s(221,1,{},nx);_.Bd=function(){this.a.i=!1};w(221);function Vq(a,b,d){a.a.g=$(b,d);En(a.a,new Us(a.a.g))}function Lw(a,b){this.a=a;this.b=b}s(222,1,{},Lw);w(222);function zw(a,b){this.a=a;this.b=b}s(223,1,{},zw);_.ab=function(){this.a.i||this.b.Bd(new Us(this.a.g))};
+w(223);function wx(a){a=a.fe();return 0<a?a:0>a?1:0}function xx(a){a=a.ge();return 0<=a?a:1.7976931348623157E308}function yx(a){a=a.he();return 0<=a?a:4.9E-324}function zx(a){a.b||(a.b=!0,Ec((xc(),yc),a.a))}function ax(a){this.d=a;this.a=new Ax(this)}s(206,1,{},ax);_.b=!1;_.c=0;w(206);function Ax(a){this.a=a}s(213,1,{},Ax);
+_.ab=function(){if(this.a.b)if(this.a.d.r.b)10>this.a.c?(Ec((xc(),yc),this),++this.a.c):(this.a.c=0,qh((xc(),yc),this));else if(this.a.d.i)qh((xc(),yc),this);else{var a=this.a,b,d,e,f,g,l,n,p,q,r,u;a.b=!1;a.c=0;l=Gq(a.d.o.B);for(f=new Bx(rx(new Vm(a.d.f)).b.vc());f.b.Gc();)e=f.b.Hc(),0<=e.j?l-=e.j:0<=e.he()&&(l-=e.he());if(0>l)for(f=new Bx(rx(new Vm(a.d.f)).b.vc());f.b.Gc();)e=f.b.Hc(),Cx(e,e.j),g=0>=e.j,n=xv(e.e.o.d,Rm(e.e.f,e))<yx(e),g&&n&&Cx(e,e.he());if(!(0>l)){p=!1;d=f=0;l=new yg;for(b=new Bx(rx(new Vm(a.d.f)).b.vc());b.b.Gc();){e=
+b.b.Hc();n=e.j;g=0<=n;q=Wb(n,e.he());n=e.fe();if(g)Cx(e,q);else if(Cx(e,-1),q=xv(e.e.o.d,Rm(e.e.f,e)),g=xx(e),g=q<g&&0<n)f+=n,zg(l,e),p=!0;d+=xv(e.e.o.d,Rm(e.e.f,e))}if(!p)for(g=new Bx(rx(new Vm(a.d.f)).b.vc());g.b.Gc();)e=g.b.Hc(),b=e.j,n=e.fe(),0>b&&0>n&&(++f,zg(l,e));q=Gq(a.d.o.B)-d;if(!(0>=q||0>=f)){do for(b=!1,u=q/f,p=Bj(new Cj(l.a));p.a.Gc();)e=Dj(p),n=wx(e),d=xv(e.e.o.d,Rm(e.e.f,e)),g=xx(e),r=d+u*n,g<=r&&(Cx(e,g),f-=n,q-=g-d,p.a.Ic(),b=!0);while(b);if(!(0>=f&&0==l.a.Yc())){b=q/f;for(g=Bj(new Cj(l.a));g.a.Gc();)e=
+Dj(g),n=wx(e),d=xv(e.e.o.d,Rm(e.e.f,e)),d+=b*n,Cx(e,d),f-=n;do{n=!1;d=0;for(g=new Bx(rx(new Vm(a.d.f)).b.vc());g.b.Gc();)e=g.b.Hc(),p=yx(e),f=xv(e.e.o.d,Rm(e.e.f,e)),(b=0>e.j)&&f<p&&(Cx(e,p),d+=p-f,n=!0,l.a.Se(e));f=0;for(g=Bj(new Cj(l.a));g.a.Gc();)e=Dj(g),f+=wx(e);d/=f;for(f=Bj(new Cj(l.a));f.a.Gc();)e=Dj(f),g=d*wx(e),Cx(e,xv(e.e.o.d,Rm(e.e.f,e))-g)}while(n)}}}}};w(213);function dx(a){this.a=a}s(207,1,{},dx);_.dd=function(a,b){var d,e;for(e=b.vc();e.Gc();)d=e.Hc(),Aw(this.a,d.a)};
+_.ed=function(a,b){var d,e,f;e=this.a.A;e.b=a.d;e.a=null;for(e=b.vc();e.Gc();)if(d=e.Hc(),f=Aw(this.a,d.a).c,t(f,66))try{var g=this.a.u;f=d;var l=Aw(this.a,d.a);g.a=f;d=g;var n=l;d.d=f.a;d.c=n}catch(p){if(p=H(p),t(p,10))rb(ux);else throw I(p);}};
+_.fd=function(a,b){var d,e,f;e=a.d;f=this.a.A;d=this.a.j.Tc(e);f.b=e;f.a=d;for(e=b.vc();e.Gc();)if(d=e.Hc(),f=Aw(this.a,d.a).c,t(f,66))try{var g=this.a.u;f=d;var l=Aw(this.a,d.a);g.a=f;d=g;var n=l;d.d=f.a;d.c=n;var p=this.a.u;f=void 0;f=(T(),wd());for(var q=p.a.c;q.lastChild;)q.removeChild(q.lastChild);p.a.c.appendChild(f)}catch(r){if(r=H(r),t(r,10))rb(ux);else throw I(r);}};_.gd=function(a,b){var d,e;for(e=new Xr(new Yr(b.a.a,b.c,b.c+b.b),!0);e.c+e.d<e.a.b.length;)d=$r(e),Aw(this.a,d.a)};
+_.hd=function(a,b){var d,e,f,g,l,n,p,q;e=a.d;d=a.c;n=this.a.j.Tc(e);g=null!=n;p=this.a.w;p=Zc(p);p=-1!=$c(d.className||"",p);p!=g&&xn(d,this.a.w,g);xn(d,this.a.C,0!=a.d%2);f=this.a.A;f.b=e;f.a=n;g?(xn(d,this.a.B,this.a.G.Sd(n)),ox(d)):p&&(xn(d,this.a.B,!1),ox(d));d=this.a.b;if(d.g==a.d&&d.c==d.j.o.a)a.c!=d.i&&(d.i&&xn(d.i,d.j.v,!1),d.i=a.c,xn(d.i,d.j.v,!0));else if(d.i==a.c||d.c!=d.j.o.a&&d.i)xn(d.i,d.j.v,!1),d.i=null;for(e=b.vc();e.Gc();){d=e.Hc();f=Aw(this.a,d.a);Dx(this.a.b,d,this.a.o.a);(g||p)&&
+ox(d.c);l=f.c;try{var r=this.a.u,u=d,B=f;r.a=u;var P=r;P.d=u.a;P.c=B;if(t(l,66))g?(p||br(this.a.u,!0),q=f.ie(n),Lt(this.a.u,q)):br(this.a.u,!1);else if(g)q=f.ie(n),l.cd(this.a.u,q);else for(var xa=d.c;xa.lastChild;)xa.removeChild(xa.lastChild)}catch(za){if(za=H(za),t(za,10))rb(ux);else throw I(za);}}};w(207);function tx(a,b){if(b==a.j.o.k)b=a.j.o.a;else if(b==a.j.o.a)b=a.j.o.g;else return b;return 0==b.n?tx(a,b):b}
+function sx(a,b){if(b==a.j.o.g)b=a.j.o.a;else if(b==a.j.o.a)b=a.j.o.k;else return b;return 0==b.n?sx(a,b):b}function Ow(a,b){var d;d=a.a;d=0==b?d:new Pq(d.b+b,d.a+b);a.a=d}
+function qx(a,b,d,e){var f,g,l,n;if(b!=a.g||!et(a.a,d)||e!=a.c){n=a.g;a.g=b;b=a.a;if(e==a.j.o.a)vt(a.j,a.g),a.a=$(d,1);else{l=0;f=ed(e.nd(a.g));do{g=hd(f,"colSpan");g=$(l,g);if(g.b<=d&&d<g.a){a.a=g;break}f=qd((K(),f));++l}while(f)}if(d>=a.j.o.d.b){f=a.j.o;if(0>d||d>=f.d.a.b.length)throw new Lc("The given column index "+d+" does not exist.");if(d<f.d.b)throw new D("The given column index "+d+" is frozen.");f=f.v;var p;g=Bv(f.c.d,$(0,f.c.d.b));l=Bv(f.c.d,$(0,d))-g;d=l+xv(f.c.d,d);p=f.c.s.j;g=p+Gq(ij(f.c))-
+g;Cs(f.c.C)&&(g-=Dq());d=bv(l,d,p,g,10);ts(f.c.s,d)}a.c==e?Ex(b,a.a)&&n!=a.g?a.c.od(n):(Ew(a.j),n=a.j,Fw(n.o.g,n.q)):(d=a.c,a.c=e,d==a.j.o.a?a.d=n:d==a.j.o.k?a.f=n:a.e=n,Ex(b,a.a)?d.od(n):(Ew(a.j),e=a.j,Fw(e.o.g,e.q),d==a.j.o.a&&d.od(n)))}a.c.od(a.g)}function Dx(a,b,d){var e,f;e=b.d.d;f=Yq($(b.a,hd(b.c,"colSpan")),a.a);d==a.c&&(e==a.g&&f?a.b!=b.c&&(a.b&&xn(a.b,a.j.c,!1),a.b=b.c,xn(a.b,a.j.c,!0)):a.b==b.c&&(xn(a.b,a.j.c,!1),a.b=null))}
+function bx(a){this.j=a;this.c=this.j.o.a;this.a=$(0,1);yw(a,new Si(O(y(hb,1),h,2,4,["keydown","click"])))}s(203,1,{},bx);_.b=null;_.d=0;_.e=0;_.f=0;_.g=0;_.i=null;w(203);function Cx(a,b){var d,e;a.e&&(e=Rm(a.e.f,a),d=a.e.o.d,fw(d,e,b))}function ww(a,b){var d;if(a.e&&b)throw new X("Column already is attached to a grid. Remove the column first from the grid and then add it. (in: "+Fx(a)+")");a.e&&zx(a.e.a);a.e=b;a.e&&(zx(a.e.a),d=a.e.r.a)&&(d=Rw(d,a),d.b=a.f,d.d=(Sw(),Gx),Uw(d.c))}
+function Hx(a,b){if(!b)throw new D("Renderer cannot be null.");a.c=b;if(a.e){var d=a.e;Uq(d.o.a,0,d.o.a.n)}}function Ix(a,b){a.j!=b&&(a.j=b,a.e&&zx(a.e.a));return a}function Fx(a){var b,d;b="";a.f.length?b+='header:"'+a.f+'" ':b+="header:empty ";a.e?(d=rx(new Vm(a.e.f)).a.Vc(a),-1!=d?b+="attached:#"+d+" ":b+="attached:unindexed "):b+="detached ";b+="sortable:false ";return tb(a.cZ)+"["+ld(b)+"]"}s(125,1,{});_.fe=hu;_.ge=Tf;_.he=function(){return this.i};_.je=function(a){return Ix(this,a)};_.tS=function(){return Fx(this)};
+_.d=-1;_.f="";_.g=-1;_.i=10;_.j=-1;w(125);function $w(){this.a=(T(),M());new Gg}s(202,1,{},$w);_.b=-1;_.c=null;w(202);s(208,35,{},function(){});_.W=Jx;w(208);s(209,35,{},function(){});_.W=Jx;w(209);function gx(a){this.a=a}s(210,1,{},gx);_.Bd=function(){};w(210);function vw(a,b){var d,e;for(e=new Bg(a.d);e.b<e.d.Yc();)d=(J(e.b<e.d.Yc()),e.d.Ed(e.c=e.b++)),Kx(d,b)}
+function ex(a){var b=a.d.b.length,d,e;e=new Lx;e.d=a;for(d=0;d<a.c.f.b.length;++d)Kx(e,Aw(a.c,d));uw(a.d,b,e);a.b=!0;Ec((xc(),yc),new Mx(a));return e}function px(a,b){try{return as(a.d,b)}catch(d){d=H(d);if(t(d,28))throw new D("Row with index "+b+" does not exist");throw I(d);}}function Jw(a,b){var d,e;for(e=new Bg(a.d);e.b<e.d.Yc();)d=(J(e.b<e.d.Yc()),e.d.Ed(e.c=e.b++)),d.c.Se(b)}s(131,1,{});_.e=!0;w(131);function Yw(){this.d=new C}s(201,131,{},Yw);w(201);
+function Uw(a){a.b=!0;Ec((xc(),yc),new Mx(a))}function fx(a,b){if(b!=a.a){if(b&&-1==Rm(a.d,b))throw new D("Cannot set a default row that does not exist in the container");a.a&&(a.a.a=!1);b&&(b.a=!0);a.a=b;a.b=!0;Ec((xc(),yc),new Mx(a))}}function Xw(){this.d=new C;this.b=!1}s(198,131,{},Xw);_.b=!1;w(198);function Mx(a){this.a=a}s(96,1,{},Mx);_.ab=function(){this.a.b&&(this.a.b=!1,Ew(this.a.c))};w(96);
+function Nx(a){if(a.d!=(Sw(),Tw))throw new X("Cannot fetch Widget from a cell with type "+a.d);return a.b}s(196,1,{});_.a=1;_.b=null;w(196);function Ox(){this.d=(Sw(),Gx)}s(200,196,{},Ox);w(200);function Kx(a,b){var d;d=new Ox;d.c=a.d;a.c.Re(b,d)}function Rw(a,b){var d;a:{var e;for(e=Bj(new Cj(a.b));e.a.Gc();)if(d=Dj(e),d.Dd(b))break a;d=null}return d?a.b.Qe(d):a.c.Qe(b)}s(197,1,{});w(197);function Lx(){this.c=new Gg;this.b=new Gg;this.a=!1}s(199,197,{},Lx);_.a=!1;w(199);
+function jt(){jt=m;lt=new Px("HEADER",0);mt=new Px("BODY",1);kt=new Px("FOOTER",2)}function Px(a,b){N.call(this,a,b)}s(74,4,{74:1,3:1,5:1,4:1},Px);var mt,kt,lt,Qx=x(74,function(){jt();return O(y(Qx,1),h,74,0,[lt,mt,kt])});function Vw(a,b){if(b!=a.j&&a.a)throw new Rn("The selection column cannot be modified after init");Ix(a,b);return a}function Pw(a,b){this.b=a;Hx(this,b);this.a=!1}s(204,125,{},Pw);_.fe=Rx;_.ge=Sx;_.he=Sx;_.ie=function(a){return Zf(),this.b.G.Sd(a)?$f:ag};
+_.je=function(a){return Vw(this,a)};_.a=!1;w(204);function Qw(a,b){this.a=a;this.b=b}s(211,1,{},Qw);_.wb=function(a){a.a.a?En(this.a.b,new At):$t(this.b)};w(211);function hx(){hx=m;ix=new Tx;Ux=new Vx;Wx=new Xx}s(57,4,La);var Ux,Wx,ix,Yx=x(57,function(){hx();return O(y(Yx,1),h,57,0,[ix,Ux,Wx])});function Tx(){N.call(this,"SINGLE",0)}s(214,57,La,Tx);_.ke=function(){return new qu};x(214,null);function Vx(){N.call(this,"MULTI",1)}s(215,57,La,Vx);_.ke=function(){return new gu};x(215,null);
+function Xx(){N.call(this,"NONE",2)}s(216,57,La,Xx);_.ke=function(){return new ju};x(216,null);function Zx(a,b,d){var e,f,g;f=px(a.b,b.d);b=rx(new Vm(a.c.f));for(d=d.vc();d.Gc();)if(e=d.Hc(),g=Rw(f,b.a.Ed(e.a)),(Sw(),Tw)==g.d&&(g=Nx(g),e=e.c,!g.kc())){var l=(T(),g.O);e.appendChild(l);g.qc(a.c)}}function $x(a,b,d){var e;if(a.b.d.b.length>b.d)for(b=px(a.b,b.d),a=rx(new Vm(a.c.f)),d=d.vc();d.Gc();)e=d.Hc(),e=Rw(b,a.a.Ed(e.a)),(Sw(),Tw)==e.d&&Nx(e).kc()&&(e=Nx(e),e.qc(null),Xc((T(),e.O)))}
+function cx(a,b,d){this.c=a;this.b=b;this.a=d}s(133,1,{},cx);_.dd=function(a,b){Zx(this,a,b)};_.ed=Or;_.fd=Or;_.gd=function(a,b){$x(this,a,b)};
+_.hd=function(a,b){var d,e,f,g,l,n;n=px(this.b,a.d);f=rx(new Vm(this.c.f));ox(a.c);for(e=b.vc();e.Gc();){d=e.Hc();l=Rw(n,f.a.Ed(d.a));if(n){g=d.c;g.removeAttribute("sort-order");kd(g,"sort-desc");kd(g,"sort-asc");g=Aw(this.c,d.a);a:for(var p=void 0,p=new Bx(rx(this.c.H).b.vc());p.b.Gc();)if(p.b.Hc(),null.pf==g)break a}g=d;var p=l.a,q=void 0;if(1>p)throw new D("Number of cells should be more than 0");q=hd(g.c,"colSpan");if(1!=p||1!=q){g.c.colSpan=p;for(var r=g,u=void 0,B=void 0,P=void 0,xa=void 0,
+u=bs(r.b,p-1).b,P=r.d.b[r.a],B=xa=0;B<u;B++)xa+=r.d.b[r.a+B+1];r.c.style.width=P+xa+(Q(),"px");r=p;B=u=void 0;u=bs(g.b,(q>r?q:r)-1);if(q<r)for(B=0;B<u.b;B++)(Kc(q+B-1,u.b),as(u.c,u.a+(q+B-1))).c.style.display=(Ud(),"none");else if(q>r)for(B=0;B<u.b;B++)(Kc(r+B-1,u.b),as(u.c,u.a+(r+B-1))).c.style.display="";g.b.d=p-1}g=d.c;switch(l.d.b){case 0:p=g;if(l.d!=(Sw(),Gx))throw new X("Cannot fetch Text from a cell with type "+l.d);l=l.b;(K(),p).textContent=l||"";break;case 1:p=g;if(l.d!=(Sw(),ay))throw new X("Cannot fetch HTML from a cell with type "+
+l.d);p.innerHTML=l.b||"";break;case 2:$x(this,a,new Si(O(y(Rr,1),h,75,0,[d]))),g.innerHTML="",Zx(this,a,new Si(O(y(Rr,1),h,75,0,[d])))}ox(g);Dx(this.c.b,d,this.a)}};w(133);function vx(a,b){if(-1==Rm(a.b.f,b))throw new D("Given column is not a column in this grid. "+Fx(b));}function Zw(a){this.b=a}s(205,1,{},Zw);w(205);s(212,35,{},function(a){this.a=a});_.W=function(){vx(this.a,this.a.a)};w(212);s(523,1,{});_.addEventListener=function(a,b){this.addEventListener(a,b)};_.appendChild=function(a){this.appendChild(a)};
+_.children=function(){return this.children};_.className=function(){return this.className};_.className=function(a){return _=this,_.className=a,_};_.createShadowRoot=function(){return this.createShadowRoot()};_.dispatchEvent=function(a){this.dispatchEvent(a)};_.getAttribute=function(a){return this.getAttribute(a)};_.innerHTML=function(a){this.innerHTML=a};_.innerText=function(){return this.innerText};_.innerText=function(a){this.innerText=a};_.setAttribute=function(a,b){this.setAttribute(a,b)};
+_.shadowRoot=function(){return this.shadowRoot};_.style=function(){return this.style};w(523);s(524,523,{});w(524);function by(){by=m;cy=$wnd}var cy;function dy(){dy=m;ey=new Gg;fy=new Gg;gy=new Gg;hy=new Gg;iy=jy();ky=ly()}function ly(){var a=$wnd.cancelAnimationFrame||$wnd.mozCancelAnimationFrame||$wnd.webkitCancelAnimationFrame||$wnd.clearTimeout;return function(b){return a(b)}}function my(a){dy();return hy.Qe(a)}
+function jy(){var a=$wnd.requestAnimationFrame||$wnd.mozRequestAnimationFrame||$wnd.webkitRequestAnimationFrame||function(a){return $wnd.setTimeout(a,20)};return function(b){return a(b)}}function ny(a){var b=a.currentTarget;oy(b);(a=gy.Qe(b))&&ky(a);a=iy(function(){var a=my(b);if(b.offsetWidth!=a.width||b.offsetHeight!=a.height){var a=new py,e,f,g;rb(qy);for(f=ey.Qe(b).vc();f.Gc();)e=f.Hc(),g=e.a.r,0==g&&(e.a.t?g=e.a.t.Yc():e.a.e.j&&(g=e.a.e.j.Yc())),ry(e.a,g);dy();hy.Re(b,a)}});gy.Re(b,a)}
+function oy(a){dy();var b=fy.Qe(a);a=b.firstElementChild;var b=b.lastElementChild,d=a.firstElementChild;b.scrollLeft=b.scrollWidth;b.scrollTop=b.scrollHeight;d.style.width=a.offsetWidth+1+"px";d.style.height=a.offsetHeight+1+"px";a.scrollLeft=a.scrollWidth;a.scrollTop=a.scrollHeight}var ky,gy,ey,hy,fy,iy,qy=w(null);function sy(a){this.a=a}s(281,35,{},sy);_.W=function(){oy(this.a);if(!my(this.a)){var a=this.a,b=new py;dy();hy.Re(a,b)}a=this.a;dy();a.addEventListener("scroll",ny,!0)};w(281);
+function py(){}s(280,1,{},py);w(280);function ty(){ty=m;new yg;uy=(by(),cy);vy=uy.document;wy()}
+function xy(a){var b=$wnd.Object.create($wnd.HTMLElement.prototype);a=$wnd.Object.getPrototypeOf(a);(function(a,b){for(var f in b)if(b.hasOwnProperty(f)){var g=/^jsProperty([A-Z].+)$/.exec(f);if(g){var l=g[1].charAt(0).toLowerCase()+g[1].slice(1),n="get"+g[1],g="set"+g[1];void 0===b[l]&&Object.defineProperty(a,l,{get:b[n]||function(){},set:b[g]||function(){},enumerable:!0,configurable:!0});delete a[n];delete a[g]}else a[f]=b[f]}})(b,a);$wnd.__addEventListener_patched&&(b.addEventListener=$wnd.__addEventListener_patched);
+return{prototype:b}}function wy(){$wnd.__addEventListener_org||(console.log("Monkey Patched HTMLElement.addEventListener"),$wnd.__addEventListener_org=$wnd.HTMLElement.prototype.addEventListener,$wnd.__addEventListener_patched=function(a,b,d){$wnd.__addEventListener_org.call(this,a,t(b,19)?function(a){b.mc(a)}:b,d)},$wnd.HTMLElement.prototype.addEventListener=$wnd.__addEventListener_patched)}function yy(a,b){ty();var d;d=xy(b);vy.registerElement(a,d)}var vy,uy;s(525,1,{},function(){});w(525);
+function zy(){zy=m;Ay=new By}function Cy(a,b,d){zy();try{return(new Dy(Ey(a,b,""+d))).a}catch(e){e=H(e);if(t(e,62))return 0;throw I(e);}}function Ey(a,b,d){zy();a=a.getAttribute(b);return null!=a&&a.length?a:d}
+function Fy(a){var b,d,e,f,g,l;g=Ej(a,O(y(hb,1),h,2,4,["link[rel\x3d'import'], script[src]"]));a=O(y(oi,1),h,6,0,[new Gy(a)]);var n,p,q;b=0;for(p=a.length;b<p;++b)if(d=a[b])for(q=0,e=g.c,f=0,l=e.length;f<l;++f){n=e[f];var r=d,u=(++q,n);n=void 0;r.g=u;r.g=u;(n=ii(u))?(u=(T(),n.O),r.g=u,ji(r,n)):(r.g=u,hi(r,u))}l=(G(),new Hi(Ii(null)));a=g.c;e=0;for(f=a.length;e<f;++e)if(d=a[e],b=Hj(new V(d),"import"))d=l,b=Fy(new V(b)),zj(d,sl(d.d,b.d,!0),Aj(",",O(y(hb,1),h,2,4,[d.b,b.b])));return zj(g,sl(g.d,l.d,
+!0),Aj(",",O(y(hb,1),h,2,4,[g.b,l.b])))}
+function Hy(a,b,d){var e,f;zy();var g,l,n,p;g=Fy((G(),new V(yi)));l=xj(g,new Iy);n=xj(g,new Jy);p=xj(g,new Ky);g=Ly((f="__gwtDevModeHook:"+$moduleName+":moduleBase",e=$wnd||self,e[f]||$moduleBase),$moduleName+"/","");0==l.c.length?-1!=g.indexOf("VAADIN/widgetsets")?g+="../themes/":0==p.c.length?0==n.c.length||(g+="VAADIN/themes/"):g=Ly(0==p.c.length?"":dd(oj(p,0),"src"),"vaadin-components.js","themes/"):(g=My(0==l.c.length?"":dd(oj(l,0),"href"),"[\\w\\-]+\\.html",""),jl(g,"^(|/|.*[\\w\\-]/)$")?g+=
+"../vaadin-":g+="VAADIN/themes/");g+=d+"/styles.css";d=O(y(hb,1),h,2,4,[d]);var q;n=a.c;p=0;for(q=n.length;p<q;++p)if((l=n[p])&&1==l.nodeType)for(e=0,f=d.length;e<f;++e)a=d[e],Yc(l,a);g="@import url('"+g+"')";a=b.c;d=0;for(e=a.length;d<e;++d)b=a[d],(K(),b).textContent=g||""}function Ny(a,b,d){var e=Ay;zy();b=Ey(b,"theme",null);null!=b&&-1==yn(Nj(Qi(d)),b)&&(Hy(Qi(a),Qi(d),b),Oy(Qi(d),e))}function Py(a,b){function d(){b.mc(null)}zy();a.__fnc=d;Object.observe(a,d)}
+function Qy(a){zy();a&&a.__fnc&&(Object.unobserve(a,a.__fnc),a.__fnc=void 0)}function Oy(a,b){zy();var d,e;try{if((e=0==a.c.length?null:Ij(oj(a,0),"sheet"))&&(d=e?$i(e,"cssRules"):null)&&0<d.length){var f=new Ry(d,a,b);f.f&&Qb(f);f.e=!0;var g,l=Rb(f,f.d);g=$wnd.setInterval(l,100);f.f=E(g)}}catch(n){if(n=H(n),t(n,12))qh((xc(),yc),new Sy(a,b));else throw I(n);}}var Ay;function By(){ni.call(this)}s(291,6,ta,By);
+_.Jb=function(){var a,b,d,e;b=(G(),Vi("v-grid",yi)).c;d=0;for(e=b.length;d<e;++d)a=b[d],Ql(a,"redraw",O(y(z,1),h,1,3,[]))};w(291);function Ty(a,b){"complete"===Hj((G(),G(),new V(yi)),"readyState")?Qm(b,O(y(z,1),h,1,3,[])):Pb(new Uy(a,b),5)}function Vy(){Hm.call(this);this.ac(this.c)}s(292,127,va,Vy);_.ac=function(a){Ty(this,a)};w(292);function Uy(a,b){this.a=a;this.b=b}s(293,35,{},Uy);_.W=function(){Ty(this.a,this.b)};w(293);function Wy(){ni.call(this)}s(176,6,ta,Wy);
+_.Jb=function(){var a,b,d;a=(G(),Vi("body",yi));d=0==a.c.length?"":dd(oj(a,0),"vaadin-theme");if(d.length){b=Vi("#__vaadin-style",yi);if(0==b.c.length){b=Vi("\x3cstyle id\x3d'__vaadin-style' language\x3d'text/css'\x3e\x3c/style\x3e",yi);var e=Vi("head",yi),f=O(y(ib,1),h,0,2,[]),g,l,n,p,q,r;q=Ii(null);0==f.length&&(f=e.c);g=0;for(n=f.length;g<n;g++)for(e=f[g],9==e.nodeType&&(e=e.body),l=0,r=b.c.length;l<r;l++)p=oj(b,l),0<g&&(p=p.cloneNode(!0)),Oi(q,e.appendChild(p)),vj(),vj();Pl(q)>=b.c.length&&hj(b,
+q)}Hy(a,b,d);Oy(b,(zy(),Ay))}};w(176);function Ry(a,b,d){this.b=a;this.c=b;this.a=d}s(294,35,{},Ry);_.W=function(){var a;try{if(a=Ij(this.b[0],"styleSheet"))Pb(new Xy(this.a),500),Ti(Ui(O(y(z,1),h,1,3,[(G(),"Theme rules were loaded: "+Nj(this.c))]))),Qb(this)}catch(b){if(b=H(b),t(b,12))a=b,Ti(Ui(O(y(z,1),h,1,3,[(G(),a)])));else throw I(b);}};w(294);function Xy(a){this.a=a}s(295,35,{},Xy);_.W=function(){this.a.Jb()};w(295);function Sy(a,b){this.b=a;this.a=b}s(296,1,{},Sy);
+_.ab=function(){Oy(this.b,this.a)};w(296);function Gy(a){this.a=a;ni.call(this)}s(297,6,ta,Gy);
+_.Jb=function(){var a,b;a=Vi("\x3ca\x3e",oj(this.a,0));b=null!=Hj((G(),new V(this.g)),"href")?"href":"src";var d=nj(new V(this.g),b),e,f,g,l;f=a.c;g=0;for(l=f.length;g<l;++g)(e=f[g])&&Zi(e,"href",d);d=new V(this.g);a=0==a.c.length?null:Ij(oj(a,0),"href");e=(!Zj&&(Zj=new Fk),d);var n,d=vd("type",b)?(Nk(),!Qk&&(Qk=new Pk),Nk(),Qk):"id"===b?(!Mk&&(Mk=new Lk),Mk):"value"===b?(!Sk&&(Sk=new Rk),Sk):Ek.test(b)?(!Kk&&(Kk=new Ik),Kk):(!Hk&&(Hk=new Gk),Hk);if(d.Xb(a))for(d=(!(G(),Zj)&&(Zj=new Fk),e).c,e=0,
+f=d.length;e<f;++e)a=d[e],1==a.nodeType&&(Li(a,b)&&(Ek.test(b)?a[b]=!1:a[b]=null),a.removeAttribute(b));else for(f=e.c,g=0,l=f.length;g<l;++g)e=f[g],n=e.nodeType,3!=n&&8!=n&&2!=n&&d.Yb(e,b,a)};w(297);function Iy(){}s(298,528,{},Iy);_.Sb=function(a){a=nj((G(),new V(a)),"href");return jl(a,"^(|.*/)(vaadin-[\\w\\-]+)\\.html")};w(298);function Jy(){}s(299,528,{},Jy);_.Sb=function(a){a=nj((G(),new V(a)),"src");return jl(a,"^.*\\.nocache.js.*")};w(299);function Ky(){}s(300,528,{},Ky);
+_.Sb=function(a){a=nj((G(),new V(a)),"src");return Wi(a.substr(a.length-20,20),"vaadin-components.js")};w(300);function Yy(a){a.r=a.e.j.Yc();ry(a,a.r)}
+function ry(a,b){var d,e;e=(Ao(),$wnd.location.search);if(!So||Ro!==e){var f,g,l,n,p,q,r,u;r=new Gg;if(null!=e&&1<e.length)for(g=e.substr(1,e.length-1),g=rl(g,"\x26",0),p=0,q=g.length;p<q;++p)if(l=g[p],n=rl(l,"\x3d",2),l=n[0],l.length){n=1<n.length?n[1]:"";try{if(null==n)throw new sg("encodedURLComponent cannot be null");n=(f=/\+/g,decodeURIComponent(n.replace(f,"%20")))}catch(B){if(B=H(B),!t(B,59))throw I(B);}u=r.Qe(l);u||(u=new C,r.Re(l,u));u.Cd(n)}for(g=r.Pe().vc();g.Gc();)f=g.Hc(),f.af(rx(f._e()));
+So=r=(R(),new Zy(r));Ro=e}null!=(d=So.Qe("resize"),d?d.Ed(d.Yc()-1):null)&&0<b&&(a.r=b,d=(xu(),yu),Ou(a.e.o,d),Nu(a.e.o,10>b?b:10))}function $y(a){a.e||(a.a=!0,az(a));return a.e}
+function az(a){var b,d,e,f,g,l,n,p,q,r,u;if(a.a){a.a=!1;g=a.e.j;for(t(a.e.G,103)&&Wi(nj(Qi(a),"selectionMode"),"multi")?Nw(a.e,(hx(),Ux)):t(a.e.G,104)&&!Wi(nj(Qi(a),"selectionMode"),"multi")&&Nw(a.e,(hx(),ix));0<a.f.b.length;){b=a.e;if((e=a.f.Xe(0))&&e==b.F)throw new D("The selection column may not be removed manually.");Gw(b,e)}if(a.b){n=0;for(q=a.b.Yc();n<q;n++){b=a.b.Ed(n);e=(u=RegExp("\\{\\{data\\}\\}","ig"),new bz(new cz(b,u),b,n));p=d=a.e;l=e;d=d.f.b.length;if(l==p.F)throw new D("The selection column many not be added manually");
+if(p.F&&0==d)throw new X("A column cannot be inserted before the selection column");tw(p,l,d);Ob(a.f,e);for(p=0;p<dz(b).a.length;p++){a.e.r.d.b.length<dz(b).a.length&&ex(a.e.r);l=ez(dz(b),p);for(d=f=0;d<=p+f;d++)r=px(a.e.r,d),1!=Rw(r,Aw(a.e,n)).a&&++f;f=d=Rw(px(a.e.r,p+f),e);r=v(bk(l.a,"colSpan"));if(1>r)throw new D("Colspan cannot be less than 1");f.a=r;Uw(f.c);f=$i(l.a,"content");l=W(l.a,"format");fz();switch(Hd((gz(),hz),l).b){case 1:d.b=f;d.d=(Sw(),ay);Uw(d.c);break;case 2:l=d;l.b=f;l.d=(Sw(),
+Tw);Uw(l.c);break;case 0:l=d,l.b=f,l.d=(Sw(),Gx),Uw(l.c)}}}u=px(a.e.r,a.g);fx(a.e.r,u)}a.ue();a.t&&!a.t.Fd()&&(g=new Ys(a.t));g&&Kw(a.e,g);g=ij(a.e);a=new iz(a);dy();u=g.style;u=(K(),u).position;Wi(u,(Ne(),Oe))&&(g.style.position="relative");b=ey.Qe(g);b||(b=new yg,ey.Re(g,b));fy.Qe(g)||(u=(T(),M()),Yc(u,"v-resize-helper"),e=M(),Yc(e,"v-resize-helper-expand"),n=M(),e.appendChild(n),u.appendChild(e),e=M(),Yc(e,"v-resize-helper-contract"),u.appendChild(e),fy.Re(g,u),g.appendChild(u),Pb(new sy(g),1));
+b.Cd(a)}}function jz(){this.le()}s(179,524,{556:1},jz);_.le=Pn;_.me=function(){Yy(this)};_.ne=function(a){ry(this,a)};_.attachedCallback=function(){this.re();this.we()};_.attributeChangedCallback=function(){this.n||this.we()};
+_.createdCallback=function(){this.s=(ty(),vy.createElement("style"));this.s.setAttribute("language","text/css");this.o=vy.createEvent("HTMLEvents");this.o.initEvent("select",!1,!1);this.o.srcElement=this;this.d=vy.createElement("div");this.b=new C;this.t=new C;this.f=new C;this.e=new Ww;Dn(this.e,this,(Xt(),Xt(),Yt))};_.oe=kz;
+_.getColumns=function(){var a,b;if(this.c)for(a=0,b=this.c.length;a<b;a++)Qy(this.c[a]);a=(!U&&(U=new ri),si(rk));hk(a,"columns",this.b.Kd(F(zk,h,509,0,0)));this.c=$i(a.a,"columns");a=0;for(b=this.c.length;a<b;a++)Py(this.c[a],new lz(this));return this.c};_.getDataSource=function(){return ob()};_.pe=function(){return $y(this)};_.getHeightMode=function(){var a=this.e.o.q;return null!=a.a?a.a:""+a.b};_.getRowCount=Wq;
+_.getSelectedRow=function(){return this.e&&this.e.G&&t(this.e.G,123)&&null!=Dw(this.e)?this.e.j.Vc(Dw(this.e)):-1};_.getSelectedRows=function(){var a;if(!this.q){!this.p&&(this.p=[]);this.p.length=0;a=this.e.G.Qd();for(a=a.vc();a.Gc();){var b=this.p,d=this.e.j.Vc(a.Hc());b[b.length]=d}Qy(this.p);Py(this.p,new mz(this))}return this.p};_.getTheme=nz;_.qe=function(){az(this)};
+_.re=function(){var a;if(!this.i){a=pj(Qi(this));var b,d,e,f,g,l;e=a.c;f=0;for(g=e.length;f<g;++f)d=e[f],b=Zk((!ak&&(ak=(!fj&&(fj=new gj),al(),ul)),ak),d,"display",!1),l=Rj(d,"old-display",null),null==l&&0!=b.length&&"none"!==b&&Rj(d,"old-display",b);b=a.c;e=0;for(f=b.length;e<f;++e)d=b[e],g=(Ud(),"none"),d.style.display=g;a=jj(a,(Wl(),Xl));d=(!U&&(U=new ri),si(kk));d.a.attributes=!0;d.a.characterData=!0;d.a.childList=!0;d.a.subtree=!0;d=d.a;e=a.c;f=0;for(g=e.length;f<g;++f)b=e[f],am(b,d,this);this.k=
+a}this.i||(this.i=!0,a=Pj(Qi(this)),!a&&(a=Pj(vm(jj(Qi(this),(G(),Ci))))),Dn(a,this,(!hg&&(hg=new dg),hg)),zy(),(Zf(),vd("true",Ey(this,"shadow","false"))?$f:ag).a?(a=this.createShadowRoot(),a.appendChild(this.s),a.appendChild(this.d)):(this.appendChild(this.s),this.appendChild(this.d)),a=Pj(vm(jj(Qi(this.d),(G(),Ci)))),a.sc(this.e))};_.jsPropertyColumns=Pn;_.jsPropertyDataSource=Pn;_.jsPropertyHeight=Pn;_.jsPropertyHeightMode=Pn;_.jsPropertyRowCount=Pn;_.jsPropertySelectedRow=Pn;
+_.jsPropertySelectedRows=Pn;_.jsPropertyTheme=Pn;_.se=function(){this.t&&!this.t.Fd()&&Kw(this.e,new Ys(this.t))};
+_.te=function(){var a,b,d,e,f,g,l,n,p,q,r,u;a=Ej(this.k,O(y(hb,1),h,2,4,["thead tr"]));e=Oj(a);if(0!=a.c.length&&e!==this.j){this.j=e;e=new C;p=new Gg;a:{n=oj(Ej(this.k,O(y(hb,1),h,2,4,["tr[default]"])),0);l=0;b=a.c;f=0;for(g=b.length;f<g;++f){d=b[f];if(d==n){n=l;break a}++l}n=-1}this.g=n;-1==this.g&&(this.g=0);for(b=0;b<a.c.length;b++)for(d=sj(new V(oj(a,b)));e.b.length<d.c.length;)n=(!U&&(U=new ri),si(zk)),p.Re(n,new C),e.b[e.b.length]=n;for(r=0;r<a.c.length;r++)for(d=sj(new V(oj(a,r))),u=f=0;u<
+d.c.length;u++)n=(Kc(u+f,e.b.length),e.b[u+f]),q=(!U&&(U=new ri),si(Bk)),b=new V(oj(d,u)),oz(n,0==b.c.length?"":dd(oj(b,0),"name")),g=1,l=0==b.c.length?"":dd(oj(b,0),"colspan"),l.length&&(g=kr(l),f+=g-1),q.a.colSpan=g,pz(qz(q,0==b.c.length?"":gd(oj(b,0)))),p.Qe(n).Cd(q);f=Bj(new Cj(p));cj(Ej(this.k,O(y(hb,1),h,2,4,["div[v-wc-container]"])),!0);a=Ej(this.k,O(y(hb,1),h,2,4,["tr[template] td"]));for(b=0;f.a.Gc();b++)n=Dj(f),rz(n,p.Qe(n)),b<a.c.length&&(d=Fj(new V(oj(a,b))),ek(n.a,"template",d));this.a=
+!0;this.b=e}};_.ue=function(){var a,b,d,e,f,g;b=Ej(this.k,O(y(hb,1),h,2,4,["tbody tr:not([template])"]));if(0!=b.c.length)for(this.ye(),e=b.c,f=0,g=e.length;f<g;++f)for(a=e[f],b=[],this.t.Cd(b),a=Ej((G(),new V(a)),O(y(hb,1),h,2,4,["td"])),d=0;d<a.c.length;d++){var l=Fj(new V(oj(a,d)));b[b.length]=l}};_.ub=nu;_.onAttachOrDetach=Xa(_.ub);_.onMutation=function(){this.we()};
+_.Pd=function(){this.n||(this.n=!0,this.dispatchEvent(this.o),this.setAttribute("selectedRow",""+(0>this.selectedRow?"":E(this.selectedRow))),this.n=!1)};_.onSelect=Xa(_.Pd);_.wb=nu;_.onValueChange=Xa(_.wb);
+_.ve=function(){var a,b,d,e;a=this.getAttribute("dataSource");e=/\{\{\s*(\w+)\s*\}\}/;if(d=e.exec(a))b=Ij((G(),oc),d[1]),Ji(b)?(a=this.getAttribute("rowCount"),(d=e.exec(a))&&(a=""+Ij(oc,d[1])),null!=a&&jl(a,"[\\d\\.\\+]+")&&(this.rowCount=E(kr(a)).a),this.dataSource=b):Ni(b)?(this.t=sz((!U&&(U=new ri),si(rk)).Rb("values",b)),this.se()):Ti(Ui(O(y(z,1),h,1,3,["Unknown type of datasource: "+b])))};
+_.we=function(){var a,b;zy();Ny(this.d,this,this.s);this.te();this.ue();az(this);this.ve();this.selectedRow=v(Cy(this,"selectedRow",-1));a=Ey(this,"type",null);b=Ey(this,"url",null);"ajax"===a&&null!=b&&(a={},Zi(a,"url",b),this.dataSource=a)};_.redraw=function(){var a,b;a=this.e.o;b=a.k;b.f=!0;b.Vd();b=a.g;b.f=!0;b.Vd();b=a.a;b.f=!0;b.Vd();a=a.d;for(b=0;b<a.a.b.length;b++)fw(a,b,(gw(a,b),as(a.a,b).b))};
+_.refresh=function(){var a;if(t(this.e.j,61)){a=this.selectedRow;var b=this.e.j,d=b.b;b.r=d;Kq(b,b.e);b.e=$(0,0);var b=b.j,e,f;e=b.a.o.a;f=e.n;d>f?bt(e,f,d-f):d<f&&dt(e,d,f-d);0<d&&(b.a.i=!0,d=Eu(b.a.o),b.b.Rc(d.b,d.a-d.b));0<a&&(this.n=!0,Qi(this).Ob(5,O(y(oi,1),h,6,0,[new tz(this,a)])))}else this.e.j&&Kw(this.e,this.e.j)};_.xe=function(a){this.a=!0;this.b=a};_.setColumnWidth=function(a,b){Aw(this.e,a).je(b)};
+_.setColumns=function(a){this.a=!0;var b=(!U&&(U=new ri),si(rk)).Rb("columns",a),d,e,f,g;a=Ll(b.a,"columns");a=F(zk,h,509,a?a.length:0,0);b=Ll(b.a,"columns");f=a.length;for(d=0;d<f;d++)g=$i(b,E(d)),e=new Ak,a[d]=ti(e,g);this.b=new Si(a)};_.setDataSource=function(a){if(Ji(a))Kw(this.e,new uz(a,this.r,this));else if(Ni(a))this.te(),Kw(this.e,new vz(a,this));else if(null!=(a?$i(a,"url"):null))this.te(),new wz(a,this);else throw new dc("Unknown jso: "+a);};_.setHeight=function(a){Lu(this.e.o,a)};
+_.setHeightMode=function(a){a=(xu(),Hd((xz(),yz),a));Ou(this.e.o,a)};_.setRowCount=function(a){this.r=v(a);ry(this,this.r)};_.setSelectedRow=function(a){0>a||a>=this.e.j.Yc()?0<=this.selectedRow&&Nt(this.e,this.e.j.Tc(this.selectedRow)):ot(this.e,this.e.j.Tc(a));(eb(this)||this.tM===Ua?this.Pd:this.onSelect).bind(this)(null)};_.setSelectedRows=function(a){var b;a!=this.p&&Qy(this.p);this.p=a;this.q=!0;this.e.G.Td();a=0;for(b=this.p.length;a<b;a++)ot(this.e,this.e.j.Tc(this.p[a]));this.q=!1};
+_.setTheme=zz;_.ye=function(){var a=new C;this.a=!0;this.t=a};_.a=!0;_.g=0;_.i=!1;_.j=null;_.n=!1;_.q=!1;_.r=0;w(179);function iz(a){this.a=a}s(180,1,{},iz);w(180);function cz(a,b){this.a=a;this.b=b}s(181,1,{},cz);
+_.cd=function(a,b){var d,e;e=Ol(this.a.a,"renderer");d=a.a.c;if(e)if(Ji(e))Ql(e,"call",O(y(z,1),h,1,3,[e,d,b,a.e.a]));else{var f=(G(),new V(d));if(null==(0==f.c.length?null:Rj(oj(f,0),"init",null))){var g=new V(d),f=(Zf(),Zf(),$f),l,n,p;l=g.c;n=0;for(p=l.length;n<p;++n)g=l[n],Rj(g,"init",f);Ql(e,"init",O(y(z,1),h,1,3,[d]))}Ql(e,"render",O(y(z,1),h,1,3,[d,b]))}else null!=W(this.a.a,"template")?(e=W(this.a.a,"template").replace(this.b,""+b),d.innerHTML=e||""):d.innerHTML=""+b||""};w(181);
+function bz(a,b,d){this.a=b;this.b=d;Hx(this,a)}s(182,125,{},bz);_.ie=function(a){var b;b=$i(this.a.a,"value");pb(b)&&Ji(b)?a=Ql(b,"call",O(y(z,1),h,1,3,[b,a,E(this.b)])):eb(b)?a=a?$i(a,b):null:Ni(a)?(b=this.b,a=null!=a[b]?Object(a[b]):null):(b=Mj(a)[this.b],a=$i(a,""+b));return a};_.b=0;w(182);function tz(a,b){this.a=a;this.b=b;ni.call(this)}s(183,6,ta,tz);_.Jb=function(){this.a.selectedRow=this.b;this.a.n=!1};_.b=0;w(183);function lz(a){this.a=a}s(184,1,{19:1},lz);_.mc=function(){this.a.refresh()};
+w(184);function mz(a){this.a=a}s(185,1,{19:1},mz);_.mc=function(){this.a.selectedRows=this.a.p};w(185);function Az(){this.ze()}s(177,523,{},Az);_.ze=Pn;_.attachedCallback=function(){this.Ae()};_.attributeChangedCallback=function(){this.Be()};_.createdCallback=function(){this.e=(ty(),vy.createElement("style"));this.d=new zr;this.a=vy.createEvent("HTMLEvents");this.a.initEvent("change",!1,!1);this.a.srcElement=this;this.b=vy.createElement("div");this.b.setAttribute("v-wc-container","");this.Be()};
+_.getTheme=nz;_.getValue=Rx;_.Ae=Bz;_.jsPropertyTheme=Pn;_.jsPropertyValue=Pn;_.ub=nu;_.onAttachOrDetach=Xa(_.ub);_.Be=function(){yr(this.d,Cy(this,"value",0));zy();Ny(this.b,this,this.e)};_.setTheme=zz;_.setValue=function(a){yr(this.d,a)};_.c=!1;w(177);function Cz(){this.Ce()}s(178,523,{},Cz);_.Ce=Pn;
+_.attachedCallback=function(){this.De();var a=this.d,b;a.b.style.height="";b=(T(),a.O);Vc((K(),b))&&(b=Uc(a.O),50<hd(b,"offsetWidth")?a.b.style.width="":(a.b.style.width=(Q(),"50.0px"),qh((xc(),yc),new Ir(a))));qh((xc(),yc),new Jr(a))};_.attributeChangedCallback=function(){this.Ee()};
+_.createdCallback=function(){this.e=(ty(),vy.createElement("style"));this.d=new Er;Dn(this.d,this,(!qg&&(qg=new dg),qg));this.a=vy.createEvent("HTMLEvents");this.a.initEvent("change",!1,!1);this.a.srcElement=this;this.b=vy.createElement("div");this.Ee()};_.getTheme=nz;_.getValue=function(){return this.d.r.a};_.De=Bz;_.jsPropertyTheme=Pn;_.jsPropertyValue=Pn;_.ub=nu;_.onAttachOrDetach=Xa(_.ub);
+_.wb=function(a){a=""+a.a.a;Wi(a,this.getAttribute("value"))||(this.setAttribute("value",a),this.dispatchEvent(this.a),this.value=(new Dz(a)).a)};_.onValueChange=Xa(_.wb);_.Ee=function(){zy();Ny(this.b,this,this.e);var a=Cy(this,"min",0);this.d.n=a;a=Cy(this,"max",100);this.d.k=a;Ar(this.d,new S(Cy(this,"value",0)))};_.setTheme=zz;_.setValue=function(a){Ar(this.d,new S(a))};_.c=!1;w(178);var rk=yb(),tk=yb(),vk=yb(),xk=yb(),zk=yb(),Bk=yb();
+function fz(){fz=m;Ez=new Fz("TEXT",0);Gz=new Fz("HTML",1);Hz=new Fz("WIDGET",2)}function Fz(a,b){N.call(this,a,b)}s(68,4,{68:1,3:1,5:1,4:1},Fz);var Gz,Ez,Hz,Iz=x(68,function(){fz();return O(y(Iz,1),h,68,0,[Ez,Gz,Hz])});function gz(){gz=m;hz=Gd((fz(),O(y(Iz,1),h,68,0,[Ez,Gz,Hz])))}var hz;
+function Jz(a,b,d){d=(!U&&(U=new ri),si(rk)).Rb("values",d);d=sz(d);var e,f,g;e=$(b,d.a.length);a.i&&(Bb(),a.i=null);f=Jq(a);f=Iq(e,f)[1];if(f.b<f.a){for(e=f.b;e<f.a;e++)g=(Kc(e-b,d.a.length),d.a[e-b]),a.k.Re(E(e),g),a.n.Re(a.Fe(g),E(e));a.j&&Uq(a.j.a.o.a,f.b,f.a-f.b);if(Tq(a.e))a.e=f;else if(Hq(a),Tq(a.e))a.e=f;else{b=a.e;if(b.b>f.a||f.b>b.a)throw new D("There is a gap between "+b+" and "+f);b=new Pq(ac(b.b,f.b),Wb(b.a,f.a));a.e=b}Vq(a.j,a.e.b,Nq(a.e));for(d=new Bg(d);d.b<d.d.Yc();)b=(J(d.b<d.d.Yc()),
+d.d.Ed(d.c=d.b++)),f=a.Fe(b),(f=a.p.Qe(f))&&(f.b=b)}Lq(a)}function Kz(a,b,d,e,f){if(0<f.length){if(!(Ni(f[0])||e&&!e.Fd())){var g=f[0],l,n,p,q;e=new C;l=Mj(g);n=0;for(p=l.length;n<p;++n)g=l[n],q=new C,Ob(q,Lz(pz(qz((!U&&(U=new ri),si(Bk)),g)))),Ob(e,rz(oz((!U&&(U=new ri),si(zk)),g),q));a.c&&(g=a.c,g.a=!0,g.b=e,az(a.c))}Jz(a,b,f.slice(b,b+d))}}
+function Mz(a){this.q=new Pq(0,0);this.e=new Pq(0,0);this.k=new Gg;this.n=new Gg;this.d=new ar;this.g=new Xq(this);this.o=new Gg;this.p=new Gg;R();this.b=300;this.c=a}s(61,282,Ma);_.Fe=eq;_.Uc=function(a){return this.Fe(a)};_.Yc=kz;_.b=0;w(61);function yk(){this.a={}}s(163,43,{44:1,45:1,559:1},yk);w(163);function wk(){this.a={}}s(457,43,ua,wk);w(457);function uk(){this.a={}}s(456,43,ua,uk);w(456);function Lz(a){a.a.colSpan=1;return a}function qz(a,b){ek(a.a,"content",b);return a}
+function pz(a){var b=(fz(),Gz);ek(a.a,"format",null!=b.a?b.a:""+b.b);return a}function Ck(){this.a={}}s(165,43,{44:1,45:1,510:1},Ck);w(165);function dz(a){var b,d,e,f,g;b=Ll(a.a,"headerData");b=F(Bk,h,510,b?b.length:0,0);a=Ll(a.a,"headerData");f=b.length;for(d=0;d<f;d++)g=$i(a,E(d)),e=new Ck,b[d]=ti(e,g);return new Si(b)}function rz(a,b){hk(a,"headerData",b.Kd(F(Bk,h,510,0,0)));return a}function oz(a,b){ek(a.a,"value",b);return a}function Ak(){this.a={}}s(164,43,{44:1,45:1,509:1},Ak);w(164);
+function sz(a){var b;b=Ll(a.a,"values");b=F(ib,h,0,b?b.length:0,2);var d=ib,e,f,g,l;a=Ll(a.a,"values");g=b.length;for(f=0;f<g;f++)l=$i(a,E(f)),e=ab(l),e==d&&(b[f]=l);return new Si(b)}function sk(){this.a={}}s(455,43,ua,sk);w(455);function Nz(a,b,d,e){return a(b,d,function(a){e.Y(a)})}function uz(a,b,d){Mz.call(this,d);this.a=a;this.b=b}s(288,61,Ma,uz);_.Fe=function(a){return $wnd.JSON.stringify(a)};_.Wc=function(a,b){var d;(d=Nz(this.a,a,b,new Oz(this,a)))&&Jz(this,a,d)};w(288);
+function Oz(a,b){this.a=a;this.b=b}s(289,1,{},Oz);_.cc=nu;_.Y=function(a){Jz(this.a,this.b,a)};_.b=0;w(289);function vz(a,b){Mz.call(this,b);this.a=a;this.b=a.length}s(290,61,Ma,vz);_.Wc=function(a,b){Kz(this,a,b,this.c.b,this.a)};w(290);
+function Pz(a,b,d){var e,f,g,l,n;e=Ly(Ly(W(a.a.a,"url"),"{START}",""+b),"{LENGTH}",""+d);Ti(Ui(O(y(z,1),h,1,3,[(G(),e)])));ym();f=(!U&&(U=new ri),si(pk));ek(f.a,"url",e);ek(f.a,"dataType","txt");ek(f.a,"type","post");ek(f.a,"data",null);g=W(f.a,"url");l="POST";null!=W(f.a,"type")&&(l=W(f.a,"type").toUpperCase());vd("jsonp",W(f.a,"dataType"))&&(l="GET");ek(f.a,"type",l);if(l=(!Ol(f.a,"data")&&ek(f.a,"data",{}),Ol(f.a,"data"))){if("[object FormData]"==Object.prototype.toString.call(l))n=null,l="application/x-www-form-urlencoded";
+else if(jl(W(f.a,"type"),"(POST|PUT)")&&vd("json",W(f.a,"dataType")))n=$wnd.JSON.stringify(l),l="application/json; charset\x3dutf-8";else{var p,q,r,u,B,P,xa,za;za="";q=Mj(l);r=0;for(u=q.length;r<u;++r)if(n=q[r],za+=za.length?"\x26":"",P=Ll(l,""+n))for(p=0,B=Pl(P);p<B;p++)za+=0<p?"\x26":"",(xa=Ol(P,E(p)))?za+=n+"[]\x3d"+$wnd.JSON.stringify(xa):za+=n+"[]\x3d"+id(P,E(p));else(xa=Ol(l,""+n))?za+=n+"\x3d"+$wnd.JSON.stringify(xa):(p=id(l,""+n),null!=p&&p.length&&!vd("null",p)&&(za+=n+"\x3d"+p));n=za;l=
+"application/x-www-form-urlencoded"}ek(f.a,"dataString",n);ek(f.a,"contentType",l)}"GET"===W(f.a,"type")&&null!=W(f.a,"dataString")&&(g+=(-1!=g.indexOf("?")?"\x26":"?")+W(f.a,"dataString"),ek(f.a,"url",g));if(g=dk(f.a,"success"))l=Ol(f.a,"context"),g.g=l;if(l=dk(f.a,"error"))n=Ol(f.a,"context"),l.g=n;n=W(f.a,"dataType");vd("jsonp",n)?f=(!ui&&(ui=new Em),new jn(W(f.a,"url"),v(bk(f.a,"timeout")))):vd("loadscript",n)?f=(!ui&&(ui=new Em),new Mm(f)):(!ui&&(ui=new Em),f=new bn(f),q=O(y(oi,1),h,6,0,[new Cm(n),
+new Dm]),n=new Km,Fm(f,O(y(oi,1),h,6,0,[new Zm(n,q,0)])),r=O(y(oi,1),h,6,0,[new Zm(n,q,1)]),Gm(f.c.c,r),q=O(y(oi,1),h,6,0,[new Zm(n,q,2)]),Gm(f.c.a,q),f=(!n.b&&(n.b=new Lm(n)),n.b));g&&Fm(f,O(y(oi,1),h,6,0,[g]));l&&(g=O(y(oi,1),h,6,0,[l]),Gm(f.c.c,g));a=Fm(f,O(y(oi,1),h,6,0,[new Qz(a,d,b)]));e=O(y(oi,1),h,6,0,[new Rz(e)]);Gm(a.c.c,e)}function wz(a,b){Mz.call(this,b);this.a=(!U&&(U=new ri),si(tk)).Qb(a);Pz(this,0,0)}s(283,61,Ma,wz);_.Wc=function(a,b){Pz(this,a,b)};w(283);
+function Qz(a,b,d){this.a=a;this.c=b;this.b=d;ni.call(this)}s(284,6,ta,Qz);
+_.Jb=function(){var a,b,d;d=li(this,0,null);d=(!U&&(U=new ri),si(vk)).Wb(d);this.a.b=v(bk(d.a,"size"));var e,f,g,l;b=Ll(d.a,"columns");g=F(xk,h,559,b?b.length:0,0);b=Ll(d.a,"columns");f=g.length;for(e=0;e<f;e++)l=$i(b,E(e)),a=new yk,g[e]=ti(a,l);a=new Si(g);b=this.a.c.b;if(!(a.Fd()||b&&!b.Fd())){b=this.a;e=new C;for(f=new Bg(a);f.b<f.d.Yc();)a=(J(f.b<f.d.Yc()),f.d.Ed(f.c=f.b++)),g=new C,Ob(g,Lz(pz(qz((!U&&(U=new ri),si(Bk)),W(a.a,"title"))))),Ob(e,rz(oz((!U&&(U=new ri),si(zk)),W(a.a,"name")),g));
+b.c&&(a=b.c,a.a=!0,a.b=e,az(b.c));b=e}0==this.c?Kw($y(this.a.c),this.a):(d=Ol(d.a,"data"),Kz(this.a,this.b,this.c,b,d));Yy(this.a.c)};_.b=0;_.c=0;w(284);function Rz(a){this.a=a;ni.call(this)}s(285,6,ta,Rz);_.Jb=function(){var a="Error getting datasources "+this.a;Ao();$wnd.alert(a)};w(285);
+function Sz(a,b){a.q=-1;a.r=-1;if(1<=b.length)try{a.q=kr(b[0])}catch(d){if(d=H(d),!t(d,12))throw I(d);}if(2<=b.length){try{a.r=kr(b[1])}catch(e){if(e=H(e),!t(e,12))throw I(e);}if(-1==a.r&&-1!=b[1].indexOf("-"))try{var f,g=yn(b[1],zn(45));f=b[1].substr(0,g);a.r=kr(f)}catch(l){if(l=H(l),!t(l,12))throw I(l);}}}
+function Tz(a,b){var d,e;d=yn(b,zn(46));0>d&&(d=b.length);a.a=kr(Uz(b,0,d));e=zn(46);e=b.indexOf(e,d+1);0>e&&(e=b.length);try{a.b=kr(hl(Uz(b,d+1,e),"[^0-9].*",""))}catch(f){if(f=H(f),!t(f,62))throw I(f);}}function Uz(a,b,d){0>b&&(b=0);(0>d||d>a.length)&&(d=a.length);return a.substr(b,d-b)}
+function zq(a){var b,d,e,f,g;a=a.toLowerCase();this.e=-1!=a.indexOf("gecko")&&-1==a.indexOf("webkit")&&-1==a.indexOf("trident/");a.indexOf(" presto/");this.n=-1!=a.indexOf("trident/");this.o=!this.n&&-1!=a.indexOf("applewebkit");this.c=-1!=a.indexOf(" chrome/");this.j=-1!=a.indexOf("opera");this.f=(this.f=-1!=a.indexOf("msie")&&!this.j&&-1==a.indexOf("webtv"))||this.n;this.k=!this.c&&!this.f&&-1!=a.indexOf("safari");this.d=-1!=a.indexOf(" firefox/");a.indexOf("chromeframe");try{this.e?(e=a.indexOf("rv:"),
+0<=e&&(f=a.substr(e+3,a.length-(e+3)),f=My(f,"(\\.[0-9]+).+","$1"),Vz(f))):this.o?(f=md(a,a.indexOf("webkit/")+7),f=My(f,"([0-9]+)[^0-9].+","$1"),Vz(f)):this.f&&(g=a.indexOf("trident/"),0<=g&&(f=a.substr(g+8,a.length-(g+8)),f=My(f,"([0-9]+\\.[0-9]+).*","$1"),Vz(f)))}catch(l){if(l=H(l),!t(l,12))throw I(l);}try{this.f?-1==a.indexOf("msie")?(e=a.indexOf("rv:"),0<=e&&(f=a.substr(e+3,a.length-(e+3)),f=My(f,"(\\.[0-9]+).+","$1"),Tz(this,f))):(d=md(a,a.indexOf("msie ")+5),d=Uz(d,0,d.indexOf(";")),Tz(this,
+d)):this.d?(b=a.indexOf(" firefox/")+9,Tz(this,Uz(a,b,b+5))):this.c?(b=a.indexOf(" chrome/")+8,Tz(this,Uz(a,b,b+5))):this.k?(b=a.indexOf(" version/")+9,Tz(this,Uz(a,b,b+5))):this.j&&(b=a.indexOf(" version/"),-1!=b?b+=9:b=a.indexOf("opera/")+6,Tz(this,Uz(a,b,b+5)))}catch(n){if(n=H(n),!t(n,12))throw I(n);}if(-1!=a.indexOf("windows "))this.p=1,a.indexOf("windows phone");else if(-1!=a.indexOf("android"))this.p=5,-1!=a.indexOf("android")&&(a=Uz(a,a.indexOf("android ")+8,a.length),a=Uz(a,0,a.indexOf(";")),
+a=rl(a,"\\.",0),Sz(this,a));else if(-1!=a.indexOf("linux"))this.p=3;else if(-1!=a.indexOf("macintosh")||-1!=a.indexOf("mac osx")||-1!=a.indexOf("mac os x"))this.g=-1!=a.indexOf("ipad"),this.i=-1!=a.indexOf("iphone"),this.g||-1!=a.indexOf("ipod")||this.i?(this.p=4,-1!=a.indexOf("os ")&&-1!=a.indexOf(" like mac")&&(a=Uz(a,a.indexOf("os ")+3,a.indexOf(" like mac")),a=rl(a,"_",0),Sz(this,a))):this.p=2}s(443,1,h,zq);_.a=-1;_.b=-1;_.c=!1;_.d=!1;_.e=!1;_.f=!1;_.g=!1;_.i=!1;_.j=!1;_.k=!1;_.n=!1;_.o=!1;
+_.p=0;_.q=-1;_.r=-1;w(443);function Sw(){Sw=m;Gx=new Wz("TEXT",0);ay=new Wz("HTML",1);Tw=new Wz("WIDGET",2)}function Wz(a,b){N.call(this,a,b)}s(80,4,{80:1,3:1,5:1,4:1},Wz);var ay,Gx,Tw,Xz=x(80,function(){Sw();return O(y(Xz,1),h,80,0,[Gx,ay,Tw])});function xu(){xu=m;Mu=new Yz("CSS",0);yu=new Yz("ROW",1)}function Yz(a,b){N.call(this,a,b)}s(79,4,{79:1,3:1,5:1,4:1},Yz);var Mu,yu,Zz=x(79,function(){xu();return O(y(Zz,1),h,79,0,[Mu,yu])});function xz(){xz=m;yz=Gd((xu(),O(y(Zz,1),h,79,0,[Mu,yu])))}var yz;
+function et(a,b){return a.b<=b&&b<a.a}function Ex(a,b){return a===b?!0:null==b||$z!=ab(b)||a.a!=b.a||a.b!=b.b?!1:!0}function Yq(a,b){return a.b<b.a&&b.b<a.a}function Tq(a){return a.b>=a.a}function Nq(a){return a.a-a.b}function Iq(a,b){var d,e,f;f=aA(a,b.b);e=f[0];d=aA(f[1],b.a);f=d[0];d=d[1];return O(y($z,1),h,18,0,[e,f,d])}function Oq(a,b){var d,e,f;f=et(b,a.b);e=et(b,a.a);d=a.b<b.b&&a.a>=b.a;return f?e?a:new Pq(a.b,b.a):e?new Pq(b.b,a.a):d?b:$(a.b,0)}
+function aA(a,b){return b<a.b?O(y($z,1),h,18,0,[$(a.b,0),a]):b>=a.a?O(y($z,1),h,18,0,[a,$(a.a,0)]):O(y($z,1),h,18,0,[new Pq(a.b,b),new Pq(b,a.a)])}function Pq(a,b){if(a>b)throw new D("start must not be greater than end");this.b=a;this.a=b}function $(a,b){if(0>b)throw new D("length must not be negative");return new Pq(a,a+b)}s(18,1,{18:1,3:1},Pq);_.eQ=function(a){return Ex(this,a)};_.hC=function(){var a;a=31+this.a;return a=31*a+this.b};
+_.tS=function(){return rb($z),$z.i+" ["+this.b+".."+this.a+"["+(this.b>=this.a?" (empty)":"")};_.a=0;_.b=0;var $z=w(18);function gt(a,b){return null==a?null==b:db(a,b)}s(102,1,{});_.tS=ik;w(102);function Gh(){cc.call(this,"divide by zero")}s(379,10,da,Gh);w(379);function Zf(){Zf=m;ag=new th(!1);$f=new th(!0)}function Jk(a,b){return t(b,58)&&b.a==a.a}function th(a){Zf();this.a=a}s(58,1,{3:1,58:1,5:1},th);_.eQ=function(a){return Jk(this,a)};_.hC=function(){return this.a?1231:1237};_.tS=bA;_.a=!1;
+var ag,$f,Kl=w(58);function il(a){var b;if(b=cA,!b&&(b=cA=/^\s*[+-]?(NaN|Infinity|((\d+\.?\d*)|(\.\d+))([eE][+-]?\d+)?[dDfF]?)\s*$/),!b.test(a))throw new dA('For input string: "'+a+'"');return parseFloat(a)}
+function kr(a){var b,d;if(null==a)throw new dA("null");d=a.length;for(b=0<d&&(45==a.charCodeAt(0)||43==a.charCodeAt(0))?1:0;b<d;b++){var e=a.charCodeAt(b);if(-1==(48<=e&&58>e?e-48:97<=e&&97>e?e-97+10:65<=e&&65>e?e-65+10:-1))throw new dA('For input string: "'+a+'"');}d=parseInt(a,10);b=-2147483648>d;if(isNaN(d))throw new dA('For input string: "'+a+'"');if(b||2147483647<d)throw new dA('For input string: "'+a+'"');return d}s(51,1,{3:1,51:1});var cA;w(51);function Jl(a){this.a=a}
+s(86,51,{3:1,86:1,5:1,51:1},Jl);_.Ge=ik;_.eQ=function(a){return t(a,86)&&a.a==this.a};_.hC=ik;_.tS=bA;_.a=0;var Gl=w(86);function Hl(){Hl=m;Il=F(Gl,h,86,256,0)}var Il;function S(a){this.a=a}function Dz(a){this.a=il(a)}s(15,51,{3:1,5:1,15:1,51:1},S,Dz);_.Ge=ik;_.eQ=function(a){return t(a,15)&&a.a==this.a};_.hC=eA;_.tS=bA;_.a=0;var Nl=w(15);function wl(a){this.a=a}function Dy(a){this.a=Vz(a)}function Vz(a){a=il(a);return 3.4028234663852886E38<a?Infinity:-3.4028234663852886E38>a?-Infinity:a}
+s(87,51,{3:1,5:1,87:1,51:1},wl,Dy);_.Ge=ik;_.eQ=function(a){return t(a,87)&&a.a==this.a};_.hC=eA;_.tS=bA;_.a=0;var ck=w(87);function Mg(){Xb(this)}function D(a){cc.call(this,a)}s(8,10,da,Mg,D);w(8);function Qc(){Xb(this)}function X(a){cc.call(this,a)}s(16,10,da,Qc,X);w(16);function aq(){Xb(this)}function Lc(a){cc.call(this,a)}s(28,10,{3:1,12:1,28:1,10:1,13:1},aq,Lc);w(28);function uh(a){this.a=a}
+function Rh(a){var b,d;if(0>a)return 0;if(0==a)return 32;b=-(a>>16)>>16&16;d=16-b;a>>=b;b=a-256>>16&8;d+=b;a<<=b;b=a-4096>>16&4;d+=b;a<<=b;b=a-16384>>16&2;d+=b;a=a<<b>>14;b=a&~(a>>1);return d+2-b}function Lh(a){var b,d;if(0==a)return 32;d=0;for(b=1;0==(b&a);b<<=1)++d;return d}function E(a){var b,d;return-129<a&&128>a?(b=a+128,d=(fA(),gA)[b],!d&&(d=gA[b]=new uh(a)),d):new uh(a)}s(76,51,{3:1,5:1,76:1,51:1},uh);_.Ge=ik;_.eQ=function(a){return t(a,76)&&a.a==this.a};_.hC=ik;_.tS=bA;_.a=0;var xl=w(76);
+function fA(){fA=m;gA=F(xl,h,76,256,0)}var gA;function zl(a){this.a=a}s(77,51,{3:1,5:1,77:1,51:1},zl);_.Ge=function(){return Yh(this.a)};_.eQ=function(a){return t(a,77)&&Sh(a.a,this.a)};_.hC=function(){return Zh(this.a)};_.tS=function(){return""+$h(this.a)};_.a={l:0,m:0,h:0};var yl=w(77);function Al(){Al=m;Bl=F(yl,h,77,256,0)}var Bl;function Wb(a,b){return a>b?a:b}function ac(a,b){return a<b?a:b}function Br(a){return Math.pow(10,a)}function Nc(){Xb(this)}function sg(a){cc.call(this,a)}
+s(64,10,da,Nc,sg);w(64);function dA(a){cc.call(this,a)}s(62,8,{3:1,12:1,62:1,10:1,13:1},dA);w(62);function Fl(a){this.a=a}s(78,51,{3:1,5:1,51:1,78:1},Fl);_.Ge=ik;_.eQ=function(a){return t(a,78)&&a.a==this.a};_.hC=ik;_.tS=bA;_.a=0;var Cl=w(78);function Dl(){Dl=m;El=F(Cl,h,78,256,0)}var El;function Wi(a,b){return a===b}function vd(a,b){return null==b?!1:a==b?!0:a.length==b.length&&a.toLowerCase()==b.toLowerCase()}function yn(a,b){return a.indexOf(b)}
+function jl(a,b){return RegExp("^("+b+")$").test(a)}function Ly(a,b,d){b=hl(b,"([/\\\\\\.\\*\\+\\?\\|\\(\\)\\[\\]\\{\\}$^])","\\\\$1");d=hl(hl(d,"\\\\","\\\\\\\\"),"\\$","\\\\$");return hl(a,b,d)}function hl(a,b,d){d=hA(d);return a.replace(RegExp(b,"g"),d)}function My(a,b,d){d=hA(d);return a.replace(RegExp(b),d)}
+function rl(a,b,d){var e=RegExp(b,"g");b=[];for(var f=0,g=a,l=null;;){var n=e.exec(g);if(null==n||""==g||f==d-1&&0<d){b[f]=g;break}else b[f]=g.substring(0,n.index),g=g.substring(n.index+n[0].length,g.length),e.lastIndex=0,l==g&&(b[f]=g.substring(0,1),g=g.substring(1)),l=g,f++}if(0==d&&0<a.length){for(a=b.length;0<a&&""==b[a-1];)--a;a<b.length&&b.splice(a,b.length-a)}a=F(hb,h,2,b.length,4);for(d=0;d<b.length;++d)a[d]=b[d];return a}function md(a,b){return a.substr(b,a.length-b)}
+function ld(a){var b,d,e;d=a.length;for(e=0;e<d&&32>=a.charCodeAt(e);)++e;for(b=d;b>e&&32>=a.charCodeAt(b-1);)--b;return 0<e||b<d?a.substr(e,b-e):a}function hA(a){var b;for(b=0;0<=(b=a.indexOf("\\",b));)36==a.charCodeAt(b+1)?a=a.substr(0,b)+"$"+md(a,++b):a=a.substr(0,b)+md(a,++b);return a}function zn(a){var b;return a>=Ba?(b=55296+(a-Ba>>10&1023)&65535,a=56320+(a-Ba&1023)&65535,String.fromCharCode(b)+String.fromCharCode(a)):String.fromCharCode(a&65535)}var hb=w(2);function iA(){iA=m;jA={};kA={}}
+function jb(a){iA();var b=":"+a,d=kA[b];if(null!=d)return d;d=jA[b];if(null==d){var e,f,g;e=0;f=a.length;g=f-4;for(d=0;d<g;)e=a.charCodeAt(d+3)+31*(a.charCodeAt(d+2)+31*(a.charCodeAt(d+1)+31*(a.charCodeAt(d)+31*e))),e|=0,d+=4;for(;d<f;)e*=31,g=d++,g=a.charCodeAt(g),e+=g;d=e|0}256==lA&&(jA=kA,kA={},lA=0);++lA;return kA[b]=d}var jA,lA=0,kA;function Tc(a,b){a.a+=b;return a}function hh(a,b,d){a.a=a.a.substr(0,b)+""+md(a.a,d)}function mA(a,b,d){a.a=a.a.substr(0,b)+d+md(a.a,b)}function lh(){this.a=""}
+function Sc(){this.a=""}function Jg(a){this.a=a}s(46,102,{555:1},lh,Sc,Jg);w(46);function Cn(){Xb(this)}function Rn(a){cc.call(this,a)}s(25,10,{3:1,12:1,10:1,13:1,25:1},Cn,Rn);w(25);function cu(a,b){var d,e,f;Mc(b);d=!1;for(f=Bj(new Cj(b.a));f.a.Gc();)e=Dj(f),d|=a.Cd(e);return d}function nA(a,b,d){var e;for(e=a.vc();e.Gc();)if(a=e.Hc(),qb(b)===qb(a)||null!=b&&db(b,a))return d&&e.Ic(),!0;return!1}
+function oA(a,b){var d,e,f;f=a.Yc();b.length<f&&(b=Ah(b,f));e=a.vc();for(d=0;d<f;++d)b[d]=e.Hc();b.length>f&&(b[f]=null);return b}function pA(a){var b,d,e,f;f=new Jg("[");b=!1;for(e=a.vc();e.Gc();)d=e.Hc(),b?f.a+=", ":b=!0,f.a+=d===a?"(this Collection)":""+d;f.a+="]";return f.a}s(536,1,{});_.Cd=function(){throw new Rn("Add not supported on this collection");};_.Ne=function(a){return cu(this,a)};_.Dd=function(a){return nA(this,a,!1)};_.Fd=qA;_.Id=function(a){return nA(this,a,!0)};
+_.Jd=function(){return this.Kd(F(z,h,1,this.Yc(),3))};_.Kd=function(a){return oA(this,a)};_.tS=function(){return pA(this)};w(536);function rA(a,b){var d,e,f;d=b.$e();f=b._e();e=a.Qe(d);return!(qb(f)===qb(e)||null!=f&&db(f,e))||null==e&&!a.Oe(d)?!1:!0}function sA(a,b,d){var e,f;for(e=a.Pe().vc();e.Gc();)if(a=e.Hc(),f=a.$e(),qb(b)===qb(f)||null!=b&&db(b,f))return d&&(a=new tA(a.$e(),a._e()),e.Ic()),a;return null}function uA(a,b){return b===a?"(this Map)":""+b}function vA(a){return a?a._e():null}
+s(540,1,{92:1});_.Oe=function(a){return!!sA(this,a,!1)};_.eQ=function(a){var b;if(a===this)return!0;if(!t(a,92)||this.Yc()!=a.Yc())return!1;for(b=a.Pe().vc();b.Gc();)if(a=b.Hc(),!rA(this,a))return!1;return!0};_.Qe=function(a){return vA(sA(this,a,!1))};_.hC=function(){return wA(this.Pe())};_.Fd=qA;_.Re=function(){throw new Rn("Put not supported on this map");};_.Se=function(a){return vA(sA(this,a,!0))};_.Yc=function(){return this.Pe().Yc()};
+_.tS=function(){var a,b,d,e;e=new Jg("{");a=!1;for(d=this.Pe().vc();d.Gc();)b=d.Hc(),a?e.a+=", ":a=!0,Tc(e,uA(this,b.$e())),e.a+="\x3d",Tc(e,uA(this,b._e()));e.a+="}";return e.a};w(540);function xA(a){yA();a.d=zA.ef();a.d.b=a;a.f=zA.ff();a.f.b=a;a.e=0;AA(a)}s(108,540,{92:1});_.Te=function(){xA(this)};_.Oe=function(a){return eb(a)?null==a?!!BA(this.d,null):void 0!==this.f.hf(a):!!BA(this.d,a)};_.Pe=function(){return new CA(this)};
+_.Qe=function(a){return eb(a)?null==a?vA(BA(this.d,null)):this.f.hf(a):vA(BA(this.d,a))};_.Re=function(a,b){return eb(a)?null==a?DA(this.d,null,b):this.f.lf(a,b):DA(this.d,a,b)};_.Se=function(a){return eb(a)?null==a?EA(this.d,null):this.f.mf(a):EA(this.d,a)};_.Yc=FA;_.e=0;w(108);s(541,536,Na);_.eQ=function(a){if(a===this)a=!0;else if(t(a,65)&&a.Yc()==this.Yc())a:{var b;Mc(a);for(b=a.vc();b.Gc();)if(a=b.Hc(),!this.Dd(a)){a=!1;break a}a=!0}else a=!1;return a};_.hC=function(){return wA(this)};w(541);
+function GA(a,b){return t(b,55)?rA(a.a,b):!1}function CA(a){this.a=a}s(306,541,Na,CA);_.Dd=function(a){return GA(this,a)};_.vc=function(){return new HA(this.a)};_.Id=function(a){return GA(this,a)?(a=a.$e(),this.a.Se(a),!0):!1};_.Yc=IA;w(306);function JA(a){if(a.a.Gc())return!0;if(a.a!=a.c)return!1;a.a=a.d.d.cf();return a.a.Gc()}function HA(a){this.d=a;this.a=this.c=this.d.f.cf();this._gwt_modCount=a._gwt_modCount}s(307,1,{},HA);_.Gc=function(){return JA(this)};
+_.Hc=function(){return KA(this.d,this),J(JA(this)),this.b=this.a,this.a.Hc()};_.Ic=function(){Pc(!!this.b);KA(this.d,this);this.b.Ic();this.b=null;this._gwt_modCount=this.d._gwt_modCount};w(307);function Hw(a){var b=a.b,d;d=new LA(a,0);for(a=0;a<b;++a)d.Hc(),d.Ic()}function Tv(a,b){var d,e;d=0;for(e=a.Yc();d<e;++d)if(MA(b,a.Ed(d)))return d;return-1}s(537,536,Ka);_.We=function(){throw new Rn("Add not supported on this list");};_.Cd=function(a){this.We(this.Yc(),a);return!0};
+_.eQ=function(a){var b,d,e;if(a===this)return!0;if(!t(a,42)||this.Yc()!=a.Yc())return!1;e=a.vc();for(b=this.vc();b.Gc();)if(a=b.Hc(),d=e.Hc(),!(qb(a)===qb(d)||null!=a&&db(a,d)))return!1;return!0};_.hC=function(){R();var a,b,d;d=1;for(b=this.vc();b.Gc();)a=b.Hc(),d=31*d+(null!=a?bb(a):0),d|=0;return d};_.Vc=function(a){return Tv(this,a)};_.vc=function(){return new Bg(this)};_.Gd=function(){return this.Hd(0)};_.Hd=function(a){return new LA(this,a)};
+_.Xe=function(){throw new Rn("Remove not supported on this list");};w(537);function ft(a){J(a.b<a.d.Yc());return a.d.Ed(a.c=a.b++)}function Bg(a){this.d=a}s(33,1,{},Bg);_.Gc=function(){return this.b<this.d.Yc()};_.Hc=function(){return ft(this)};_.Ic=function(){Pc(-1!=this.c);this.d.Xe(this.c);this.b=this.c;this.c=-1};_.b=0;_.c=-1;w(33);function LA(a,b){this.d=this.a=a;Oc(b,a.Yc());this.b=b}s(138,33,{},LA);_.Ye=function(){return 0<this.b};_.Ze=function(){J(0<this.b);return this.a.Ed(this.c=--this.b)};
+w(138);function Yr(a,b,d){var e=a.b.length;if(0>b)throw new Lc("fromIndex: "+b+" \x3c 0");if(d>e)throw new Lc("toIndex: "+d+" \x3e size "+e);if(b>d)throw new D("fromIndex: "+b+" \x3e toIndex: "+d);this.c=a;this.a=b;this.b=d-b}s(60,537,Ka,Yr);_.We=function(a,b){Oc(a,this.b);uw(this.c,this.a+a,b);++this.b};_.Ed=function(a){return Kc(a,this.b),as(this.c,this.a+a)};_.Xe=function(a){Kc(a,this.b);a=this.c.Xe(this.a+a);--this.b;return a};_.Yc=kz;_.a=0;_.b=0;w(60);
+function Bj(a){a=a.a.Pe().vc();return new NA(a)}function Cj(a){this.a=a}s(39,541,Na,Cj);_.Dd=function(a){return this.a.Oe(a)};_.vc=function(){return Bj(this)};_.Id=function(a){return this.a.Oe(a)?(this.a.Se(a),!0):!1};_.Yc=IA;w(39);function Dj(a){return a.a.Hc().$e()}function NA(a){this.a=a}s(309,1,{},NA);_.Gc=OA;_.Hc=function(){return Dj(this)};_.Ic=function(){this.a.Ic()};w(309);function PA(a,b){var d;d=a.e;a.e=b;return d}s(308,1,Oa);
+_.eQ=function(a){return t(a,55)?MA(this.d,a.$e())&&MA(this.e,a._e()):!1};_.$e=hu;_._e=FA;_.hC=function(){return QA(this.d)^QA(this.e)};_.af=function(a){return PA(this,a)};_.tS=function(){return this.d+"\x3d"+this.e};w(308);function tA(a,b){this.d=a;this.e=b}s(109,308,Oa,tA);w(109);s(550,1,Oa);_.eQ=function(a){return t(a,55)?MA(this.$e(),a.$e())&&MA(this._e(),a._e()):!1};_.hC=function(){return QA(this.$e())^QA(this._e())};_.tS=function(){return this.$e()+"\x3d"+this._e()};w(550);
+function Rv(a,b,d){Mc(d);a=Lv(a,b);for(b=new Bg(d);b.b<b.d.Yc();)d=(J(b.b<b.d.Yc()),b.d.Ed(b.c=b.b++)),RA(a,d)}function Sv(a,b){var d;d=Lv(a,b);try{return J(d.b!=d.d.c),d.c=d.b,d.b=d.b.a,++d.a,d.c.c}catch(e){e=H(e);if(t(e,52))throw new Lc("Can't get element "+b);throw I(e);}}function Xv(a,b){var d,e;d=Lv(a,b);try{return e=(J(d.b!=d.d.c),d.c=d.b,d.b=d.b.a,++d.a,d.c.c),Zv(d),e}catch(f){f=H(f);if(t(f,52))throw new Lc("Can't remove element "+b);throw I(f);}}s(551,537,Ka);
+_.We=function(a,b){var d;d=Lv(this,a);RA(d,b)};_.Ed=function(a){return Sv(this,a)};_.vc=function(){return Lv(this,0)};_.Xe=function(a){return Xv(this,a)};w(551);function SA(a){a.b=F(z,h,1,0,3)}function uw(a,b,d){Oc(b,a.b.length);a.b.splice(b,0,d)}function Ob(a,b){a.b[a.b.length]=b;return!0}function as(a,b){Kc(b,a.b.length);return a.b[b]}function Rm(a,b){for(var d=0;d<a.b.length;++d)if(MA(b,a.b[d]))return d;return-1}function TA(a,b){var d;d=(Kc(b,a.b.length),a.b[b]);a.b.splice(b,1);return d}
+function Vb(a,b){var d;d=Rm(a,b);if(-1==d)return!1;a.Xe(d);return!0}function Tm(a){return zh(a.b,a.b.length)}function Tb(a,b){var d,e;e=a.b.length;b.length<e&&(b=Ah(b,e));for(d=0;d<e;++d)b[d]=a.b[d];b.length>e&&(b[e]=null);return b}function C(){SA(this)}function fu(a){SA(this);Ic(0<=a,"Initial capacity must not be negative")}function Vm(a){SA(this);a=a.Jd();Ch(a,this.b,0,a.length)}s(11,537,Pa,C,fu,Vm);_.We=function(a,b){uw(this,a,b)};_.Cd=function(a){return Ob(this,a)};
+_.Ne=function(a){a=oA(a,F(z,h,1,a.a.Yc(),3));if(0==a.length)return!1;Ch(a,this.b,this.b.length,a.length);return!0};_.Dd=function(a){return-1!=Rm(this,a)};_.Ed=function(a){return as(this,a)};_.Vc=function(a){return Rm(this,a)};_.Fd=function(){return 0==this.b.length};_.Xe=function(a){return TA(this,a)};_.Id=function(a){return Vb(this,a)};_.Yc=function(){return this.b.length};_.Jd=function(){return Tm(this)};_.Kd=function(a){return Tb(this,a)};w(11);function ez(a,b){Kc(b,a.a.length);return a.a[b]}
+function Si(a){this.a=a}s(34,537,Pa,Si);_.Dd=function(a){return-1!=Tv(this,a)};_.Ed=function(a){return ez(this,a)};_.Yc=function(){return this.a.length};_.Jd=function(){var a=this.a;return zh(a,a.length)};_.Kd=function(a){var b,d;d=this.a.length;a.length<d&&(a=Ah(a,d));for(b=0;b<d;++b)a[b]=this.a[b];a.length>d&&(a[d]=null);return a};w(34);function R(){R=m;Ig=new UA;ku=new VA}function wA(a){R();var b,d;d=0;for(b=a.vc();b.Gc();)a=b.Hc(),d+=null!=a?bb(a):0,d|=0;return d}
+function rx(a){R();return t(a,85)?new WA(a):new XA(a)}var Ig,ku;function UA(){}s(380,537,Pa,UA);_.Dd=mu;_.Ed=function(a){Kc(a,0);return null};_.vc=YA;_.Gd=YA;_.Yc=Rx;w(380);function ZA(){ZA=m;$A=new aB}function aB(){}s(381,1,{},aB);_.Gc=di;_.Ye=di;_.Hc=bB;_.Ze=bB;_.Ic=function(){throw new Qc;};var $A;w(381);function VA(){}s(382,541,Qa,VA);_.Dd=mu;_.vc=YA;_.Yc=Rx;w(382);s(144,537,{3:1,42:1},function(a){this.a=a});_.Dd=function(a){return MA(this.a,a)};_.Ed=function(a){Kc(a,1);return this.a};_.Yc=function(){return 1};
+w(144);s(145,1,{});_.Cd=cB;_.Ne=cB;_.Dd=dB;_.vc=function(){return new Bx(this.b.vc())};_.Id=cB;_.Yc=eB;_.Jd=function(){return this.b.Jd()};_.Kd=function(a){return this.b.Kd(a)};_.tS=fB;w(145);function Bx(a){this.b=a}s(63,1,{},Bx);_.Gc=function(){return this.b.Gc()};_.Hc=function(){return this.b.Hc()};_.Ic=gB;w(63);function XA(a){this.a=this.b=a}s(146,145,Ka,XA);_.eQ=hB;_.Ed=function(a){return this.a.Ed(a)};_.hC=iB;_.Vc=function(a){return this.a.Vc(a)};_.Fd=function(){return this.a.Fd()};_.Gd=function(){return new jB(this.a.Hd(0))};
+_.Hd=function(a){return new jB(this.a.Hd(a))};w(146);function jB(a){this.a=this.b=a}s(148,63,{},jB);_.Ye=function(){return this.a.Ye()};_.Ze=function(){return this.a.Ze()};w(148);function Zy(a){this.b=a}s(383,1,{92:1},Zy);_.Pe=function(){!this.a&&(this.a=new kB(this.b.Pe()));return this.a};_.eQ=lB;_.Qe=function(a){return this.b.Qe(a)};_.hC=mB;_.Fd=function(){return this.b.Fd()};_.Re=function(){throw new Cn;};_.Se=cB;_.Yc=eB;_.tS=fB;w(383);function eu(a){this.b=a}s(112,145,Na,eu);_.eQ=lB;_.hC=mB;w(112);
+function nB(a,b){var d;for(d=0;d<b;++d)a[d]=new oB(a[d])}function kB(a){this.b=a}s(384,112,Na,kB);_.Dd=dB;_.vc=function(){var a;a=this.b.vc();return new pB(a)};_.Jd=function(){var a;a=this.b.Jd();nB(a,a.length);return a};_.Kd=function(a){a=this.b.Kd(a);nB(a,this.b.Yc());return a};w(384);function pB(a){this.a=a}s(386,1,{},pB);_.Gc=OA;_.Hc=function(){return new oB(this.a.Hc())};_.Ic=gB;w(386);function oB(a){this.a=a}s(147,1,Oa,oB);_.eQ=hB;_.$e=function(){return this.a.$e()};_._e=function(){return this.a._e()};
+_.hC=iB;_.af=cB;_.tS=function(){return this.a.tS()};w(147);function WA(a){XA.call(this,a)}s(385,146,{42:1,85:1},WA);w(385);function KA(a,b){if(b._gwt_modCount!=a._gwt_modCount)throw new qB;}function AA(a){a._gwt_modCount=(a._gwt_modCount|0)+1}function qB(){Xb(this)}s(502,10,da,qB);w(502);function Gg(){xA(this)}function rB(){Ic(!0,"Negative initial capacity");Ic(!0,"Non-positive load factor");xA(this)}s(23,108,{3:1,92:1},Gg,rB);_.Ue=function(a,b){return qb(a)===qb(b)||null!=a&&db(a,b)};
+_.Ve=function(a){return bb(a)|0};w(23);function zg(a,b){return null==a.a.Re(b,a)}function yg(){this.a=new Gg}function ru(){this.a=new rB}s(37,541,Qa,yg,ru);_.Cd=function(a){return zg(this,a)};_.Dd=function(a){return this.a.Oe(a)};_.Fd=function(){return 0==this.a.Yc()};_.vc=function(){return Bj(new Cj(this.a))};_.Id=function(a){return null!=this.a.Se(a)};_.Yc=IA;_.tS=function(){return pA(new Cj(this.a))};w(37);
+function BA(a,b){var d,e,f,g;d=null==b?"0":""+a.b.Ve(b);e=a.a[d]||[];f=0;for(g=e.length;f<g;++f)if(d=e[f],a.b.Ue(b,d.$e()))return d;return null}function DA(a,b,d){var e,f,g,l;e=null==b?"0":""+a.b.Ve(b);f=a.a;e=f[e]||(f[e]=[]);g=0;for(l=e.length;g<l;++g)if(f=e[g],a.b.Ue(b,f.$e()))return f.af(d);e[e.length]=new tA(b,d);a=a.b;++a.e;AA(a);return null}
+function EA(a,b){var d,e,f,g;f=null==b?"0":""+a.b.Ve(b);d=a.a[f]||[];for(g=0;g<d.length;g++)if(e=d[g],a.b.Ue(b,e.$e()))return 1==d.length?delete a.a[f]:d.splice(g,1),d=a.b,--d.e,AA(d),e._e();return null}function sB(){this.a=this.bf()}s(156,1,{},sB);_.bf=function(){return Object.create(null)};_.cf=function(){return new tB(this)};w(156);function uB(a){if(a.c<a.a.length)return!0;if(a.b<a.d.length-1){var b=a.d[++a.b];a.a=a.g.a[b];a.c=0;return!0}return!1}
+function tB(a){this.g=a;this.d=Object.getOwnPropertyNames(this.g.a);this.a=F(vB,h,55,0,0)}s(439,1,{},tB);_.Gc=function(){return uB(this)};_.Hc=function(){return J(uB(this)),this.e=this.a,this.f=this.a[this.c++],this.f};_.Ic=function(){Pc(!!this.f);EA(this.g,this.f.$e());qb(this.a)===qb(this.e)&&1!=this.a.length&&--this.c;this.f=null};_.b=-1;_.c=0;_.e=null;_.f=null;w(439);function wB(){sB.call(this)}s(437,156,{},wB);_.bf=function(){return{}};
+_.cf=function(){var a=this.df(),b=this.a,d;for(d in b)if(d==parseInt(d,10))for(var e=b[d],f=0,g=e.length;f<g;++f)a.Cd(e[f]);return a.vc()};_.df=function(){return new xB(this)};w(437);function xB(a){this.a=a;SA(this)}s(438,11,Pa,xB);_.Xe=function(a){var b;return b=TA(this,a),EA(this.a,b.$e()),b};w(438);function yB(){}s(434,1,{},yB);_.ef=function(){return new sB};_.ff=function(){return new zB};w(434);
+function yA(){yA=m;var a,b;if(b=Object.create&&Object.getOwnPropertyNames)b=Object.create(null),void 0!==b.__proto__||0!=Object.getOwnPropertyNames(b).length?b=!1:(b.__proto__=42,b=42!==b.__proto__?!1:!0);zA=b?(a=Object.create(null),a.__proto__=42,0==Object.getOwnPropertyNames(a).length)?new AB:new yB:new BB}var zA;function AB(){}s(436,434,{},AB);_.ff=function(){return new CB};w(436);function BB(){}s(435,434,{},BB);_.ef=function(){return new wB};_.ff=function(){return new DB};w(435);
+function EB(a,b,d){var e;e=a.a[b];if(void 0===e){var f=a.b;++f.e;AA(f)}a.a[b]=void 0===d?null:d;return e}function FB(a,b){var d;d=a.a[b];if(void 0!==d){delete a.a[b];var e=a.b;--e.e;AA(e)}return d}function zB(){this.a=this.gf()}s(116,1,{},zB);_.gf=function(){return Object.create(null)};_.cf=function(){var a;a=this.jf();return new GB(this,a)};_.hf=function(a){return this.a[a]};_.jf=function(){return Object.getOwnPropertyNames(this.a)};_.kf=function(a){return new HB(this,a)};
+_.lf=function(a,b){return EB(this,a,b)};_.mf=function(a){return FB(this,a)};w(116);function GB(a,b){this.c=a;this.d=b}s(410,1,{},GB);_.Gc=function(){return this.a<this.d.length};_.Hc=function(){return J(this.a<this.d.length),new HB(this.c,this.d[this.b=this.a++])};_.Ic=function(){Pc(-1!=this.b);this.c.mf(this.d[this.b]);this.b=-1};_.a=0;_.b=-1;w(410);function HB(a,b){this.a=a;this.b=b}s(152,550,Oa,HB);_.$e=kz;_._e=function(){return this.a.hf(this.b)};_.af=function(a){return this.a.lf(this.b,a)};w(152);
+function DB(){zB.call(this)}s(407,116,{},DB);_.gf=function(){return{}};_.cf=function(){var a=this.nf(),b;for(b in this.a)if(58==b.charCodeAt(0)){var d=this.kf(b.substring(1));a.Cd(d)}return a.vc()};_.hf=function(a){return this.a[":"+a]};_.nf=function(){return new IB(this)};_.lf=function(a,b){return EB(this,":"+a,b)};_.mf=function(a){return FB(this,":"+a)};w(407);function IB(a){this.a=a;SA(this)}s(409,11,Pa,IB);_.Xe=function(a){var b;return b=TA(this,a),FB(this.a,":"+b.$e()),b};w(409);
+function CB(){zB.call(this)}s(408,116,{},CB);_.jf=function(){var a;a=Object.getOwnPropertyNames(this.a);void 0!==this.a.__proto__&&(a[a.length]="__proto__");return a};w(408);function JB(a,b){var d;return(d=a.c.Se(b))?(KB(d),d.e):null}function LB(){xA(this);this.b=new MB(this);this.c=new Gg;this.b.b=this.b;this.b.a=this.b}s(168,23,{3:1,92:1},LB);_.Te=function(){this.c.Te();this.b.b=this.b;this.b.a=this.b};_.Oe=function(a){return this.c.Oe(a)};_.Pe=function(){return new NB(this)};
+_.Qe=function(a){return(a=this.c.Qe(a))?(this.a&&(KB(a),OB(a)),a.e):null};_.Re=function(a,b){var d,e;if(d=this.c.Qe(a))return e=PA(d,b),this.a&&(KB(d),OB(d)),e;d=new PB(this,a,b);this.c.Re(a,d);OB(d);return null};_.Se=function(a){return JB(this,a)};_.Yc=function(){return this.c.Yc()};_.a=!1;w(168);function OB(a){var b;b=a.c.b.b;a.b=b;a.a=a.c.b;b.a=a.c.b.b=a}function KB(a){a.a.b=a.b;a.b.a=a.a;a.a=a.b=null}function MB(a){PB.call(this,a,null,null)}function PB(a,b,d){this.c=a;tA.call(this,b,d)}
+s(120,109,Oa,MB,PB);w(120);function NB(a){this.a=a}s(468,541,Na,NB);_.Dd=function(a){return GA(this,a)};_.vc=function(){return new QB(this)};_.Id=function(a){return GA(this,a)?(a=a.$e(),JB(this.a,a),!0):!1};_.Yc=function(){return this.a.c.Yc()};w(468);function QB(a){this.c=a;this.b=a.a.b.a;this._gwt_modCount=a.a.c._gwt_modCount}s(469,1,{},QB);_.Gc=function(){return this.b!=this.c.a.b};_.Hc=function(){return KA(this.c.a.c,this),J(this.b!=this.c.a.b),this.a=this.b,this.b=this.b.a,this.a};
+_.Ic=function(){Pc(!!this.a);KA(this.c.a.c,this);KB(this.a);this.c.a.c.Se(this.a.d);this._gwt_modCount=this.c.a.c._gwt_modCount;this.a=null};w(469);function du(){this.a=new LB}function au(a){this.a=new LB;cu(this,a)}s(67,37,Qa,du,au);w(67);function jm(a,b,d,e){var f;f=new RB;f.c=b;f.b=d;f.a=e;e.b=d.a=f;++a.b}function Cu(a){J(0!=a.b);return a.a.a.c}function Du(a){J(0!=a.b);return a.c.b.c}
+function Lv(a,b){var d,e;Oc(b,a.b);if(b>=a.b>>1)for(e=a.c,d=a.b;d>b;--d)e=e.b;else for(e=a.a.a,d=0;d<b;++d)e=e.a;return new SB(a,b,e)}function sm(a,b){b.a.b=b.b;b.b.a=b.a;b.a=b.b=null;b.c=null;--a.b}function mv(a){a.a.a=a.c;a.c.b=a.a;a.a.b=a.c.a=null;a.b=0}function im(){this.a=new RB;this.c=new RB;mv(this)}s(117,551,{3:1,42:1},im);_.Cd=function(a){return jm(this,a,this.c.b,this.c),!0};_.Hd=function(a){return Lv(this,a)};_.Yc=kz;_.b=0;w(117);function RA(a,b){jm(a.d,b,a.b.b,a.b);++a.a;a.c=null}
+function Zv(a){var b;Pc(!!a.c);b=a.c.a;sm(a.d,a.c);a.b==a.c?a.b=b:--a.a;a.c=null}function SB(a,b,d){this.d=a;this.b=d;this.a=b}s(429,1,{},SB);_.Gc=function(){return this.b!=this.d.c};_.Ye=function(){return this.b.b!=this.d.a};_.Hc=function(){return J(this.b!=this.d.c),this.c=this.b,this.b=this.b.a,++this.a,this.c.c};_.Ze=function(){return J(this.b.b!=this.d.a),this.c=this.b=this.b.b,--this.a,this.c.c};_.Ic=function(){Zv(this)};_.a=0;_.c=null;w(429);function RB(){}s(118,1,{},RB);w(118);var vB=yb();
+function Jc(){Xb(this)}s(52,10,{3:1,12:1,10:1,13:1,52:1},Jc);w(52);function MA(a,b){return qb(a)===qb(b)||null!=a&&db(a,b)}function QA(a){return null!=a?bb(a):0}w(514);w(516);var Xh=w(null);w(519);var rk=yb(),zk=yb(),Bk=yb(),kk=yb(),qi=yb(),TB=yb(),dv,UB;UB=wb("D");UB.j="D";UB.e=1;dv=UB;var tk=yb(),vk=yb(),$b=w(null),pk=yb(),fk=yb(),nk=yb(),xk=yb(),vB=yb();_=Va("$wnd.wc.WCFormat");
+_.formatCurrency=function(a){var b;b=(eh(),!mh&&(mh=new kh(["USD","US$",2,"US$","$"])),eh(),mh);var d=a,e,f;if(isNaN(d))b="NaN";else{(e=0>d||0==d&&0>1/d)&&(d=-d);a=new lh;if(isFinite(d)||isNaN(d)){var d=d*b.p,g,l;f=a.a.length;Tc(a,d.toPrecision(20));d=0;l=a.a.indexOf("e",f);0>l&&(l=a.a.indexOf("E",f));0<=l&&(g=l+1,g<a.a.length&&43==a.a.charCodeAt(g)&&++g,g<a.a.length&&(d=kr(md(a.a,g))),hh(a,l,a.a.length));f=a.a.indexOf(".",f);0<=f&&(a.a=a.a.substr(0,f)+""+md(a.a,f+1),d-=a.a.length-f);f=d;d=a.a.length+
+f+b.i+3;0<d&&d<a.a.length&&57==a.a.charCodeAt(d)&&(jh(b,a,d-1),f+=a.a.length-d,hh(a,d,a.a.length));b.e=0;b.d=a.a.length;b.b=b.d+f;d=b.v;f=b.f;1024<b.b&&(d=!0);if(d){for(g=0;g<b.d-1&&48==a.a.charCodeAt(g);)++g;0<g&&(a.a=a.a.substr(0,0)+""+md(a.a,g),b.d-=g,b.e-=g);b.j>b.o&&0<b.j?(b.e+=b.b-1,g=b.e%b.j,0>g&&(g+=b.j),b.b=g+1,b.e-=g):(b.e+=b.b-b.o,b.b=b.o);1==b.d&&48==a.a.charCodeAt(0)&&(b.e=0,b.b=b.o)}if(b.b>b.d)for(;b.d<b.b;)a.a+="0",++b.d;if(!b.v)if(b.b<b.o){for(g=new lh;b.b<b.o;)g.a+="0",++b.b,++b.d;
+mA(a,0,g.tS())}else if(b.b>b.o){l=b.b-b.o;for(g=0;g<l;++g)if(48!=a.a.charCodeAt(g)){l=g;break}0<l&&(a.a=a.a.substr(0,0)+""+md(a.a,l),b.d-=l,b.b-=l)}b.d>b.b+b.i&&53<=a.a.charCodeAt(b.b+b.i)&&(g=b.b+b.i-1,jh(b,a,g));if(0<f)for(g=f;g<b.b;g+=f+1)mA(a,b.b-g,","),++b.b,++b.d;f=b.b+b.n;if(b.d<f)for(;b.d<f;)a.a+="0",++b.d;else{g=b.b+b.i;for(g>b.d&&(g=b.d);g>f&&48==a.a.charCodeAt(g-1);)--g;g<b.d&&(hh(a,g,b.d),b.d=g)}0==b.d&&(a.a=a.a.substr(0,0)+"0"+md(a.a,0),++b.b,++b.d);if(b.b<b.d||b.c)mA(a,b.b,"."),++b.d;
+if(d){a.a+="E";0>b.e&&(b.e=-b.e,a.a+="-");d=""+b.e;for(f=d.length;f<b.k;++f)a.a+="0";a.a+=d}mA(a,0,e?b.q:b.t)}else Tc(a,e?b.q:b.t),a.a+="\u221e";Tc(a,e?b.r:b.u);b=a.a}return b};_=Va("$wnd.wc");_.WCVGrid=jz;_=Va("$wnd.wc.WCVGrid");_.createGridColumn=function(a,b){return new bz(new cz(a,RegExp("\\{\\{data\\}\\}","ig")),a,b)};_.TAG="v-grid";_=Va("$wnd.wc");_.WCVProgress=Az;_=Va("$wnd.wc.WCVProgress");_.TAG="v-progress";_=Va("$wnd.wc");_.WCVSlider=Cz;_=Va("$wnd.wc.WCVSlider");_.TAG="v-slider";
+function A(a){return function(){var b;a:{var d=arguments,e;0!=uc&&(e=Bb(),2E3<e-wc&&(wc=e,vc=$wnd.setTimeout(tc,10)));if(0==uc++){e=(xc(),yc);var f,g;if(e.c){g=null;do f=e.c,e.c=null,g=Hc(f,g);while(e.c);e.c=g}e=!0}else e=!1;try{b=a.apply(this,d);break a}finally{if(d=e)if(e=(xc(),yc),e.d){g=null;do f=e.d,e.d=null,g=Hc(f,g);while(e.d);e.d=g}--uc;d&&-1!=vc&&($wnd.clearTimeout(vc),vc=-1)}b=void 0}return b}}
+var gwtOnLoad=gwtOnLoad=function(a,b,d,e){function f(){for(var a=0;a<g.length;a++)g[a]()}null==Ra&&(Ra=[]);var g=Ra;$moduleName=b;$moduleBase=d;Ta=e;if(a)try{A(f)()}catch(l){a(b,l)}else A(f)()};
+(function(){null==Ra&&(Ra=[]);for(var a=Ra,b=0;b<arguments.length;b++)a.push(arguments[b])})(function(){var a;$wnd.setTimeout(A(iq));var b,d;b=$doc.compatMode;a=O(y(hb,1),h,2,4,["CSS1Compat"]);for(d=0;d<a.length&&a[d]!==b;d++);ai();zy();a=O(y(oi,1),h,6,0,[]);zy();a=Fm(new Vy,a);Fm(a,O(y(oi,1),h,6,0,[new Wy]));a=new Az;yy("v-progress",a);yy("v-progress-bar",a);yy("v-slider",new Cz);yy("v-grid",new jz);Ql(null,"onVaadinX",O(y(z,1),h,1,3,[]))});
+var VB=[[["locale","default"],["user.agent","gecko1_8"]],[["locale","default"],["user.agent","gecko1_8"]],[["locale","default"],["user.agent","gecko1_8"]],[["locale","default"],["user.agent","gecko1_8"]],[["locale","default"],["user.agent","safari"]]];"object"===typeof window&&"object"===typeof window.$gwt&&(window.$gwt.permProps=VB);function lb(a){return this===a}function mb(){return kb(this)}function di(){return!1}function ei(){return!0}
+function fi(){return"Browser: webkit\x3d"+this.g+" mozilla\x3d"+this.d+" opera\x3d"+this.f+" msie\x3d"+this.e+" ie6\x3d"+this.a+" ie8\x3d"+this.b+" ie9\x3d"+this.c}function Sl(){if(this.a){var a=y(z,1),b=h,d;d=li(this,0,null);d=vl([this.a(d)]);mi(this,O(a,b,1,3,[d]))}}function Pn(){}function ik(){return this.a}function Bn(){return T(),this.O}function Or(){}function es(a){a.style.transform=""}function bc(){return this.f}function Js(){return Fd(this.f.style,"height")}
+function Is(){return Fd(this.f.style,"width")}function $q(){return bb(this.a)}function qt(){jt()}function Qo(){null.of()}function lu(){return null}function aw(){return"td"}function mu(){return!1}function hu(){return this.d}function Tf(){return this.g}function Jx(){rb(ux);rb(TB)}function Sx(){return-1}function Wq(){return this.r}function nu(){}function nz(){this.getAttribute("theme")}function Rx(){return 0}function zz(a){this.setAttribute("theme",a)}
+function Bz(){var a;this.c||(this.c=!0,a=Pj(Qi(this)),!a&&(a=Pj(vm(jj(Qi(this),(G(),Ci))))),Dn(a,this,(!hg&&(hg=new dg),hg)),null!=this.getAttribute("shadow")?(a=this.createShadowRoot(),a.appendChild(this.e),a.appendChild(this.b)):(this.appendChild(this.e),this.appendChild(this.b)),a=Pj(vm(jj(Qi(this.b),(G(),Ci)))),a.sc(this.d))}function eq(a){return a}function kz(){return this.b}function bA(){return""+this.a}function eA(){return v(this.a)}function qA(){return 0==this.Yc()}
+function IA(){return this.a.Yc()}function FA(){return this.e}function YA(){return R(),ZA(),$A}function bB(){throw new Jc;}function cB(){throw new Cn;}function eB(){return this.b.Yc()}function fB(){return this.b.tS()}function lB(a){return this.b.eQ(a)}function mB(){return this.b.hC()}function dB(a){return this.b.Dd(a)}function OA(){return this.a.Gc()}function gB(){throw new Cn;}function hB(a){return this.a.eQ(a)}function iB(){return this.a.hC()};window.gwtOnLoad=gwtOnLoad;
+$sendStats('moduleStartup', 'moduleEvalEnd');gwtOnLoad(__gwtModuleFunction.__errFn, __gwtModuleFunction.__moduleName, __gwtModuleFunction.__moduleBase, __gwtModuleFunction.__softPermutationId,__gwtModuleFunction.__computePropValue);$sendStats('moduleStartup', 'end');$gwt && $gwt.permProps && __gwtModuleFunction.__moduleStartupDone($gwt.permProps);
//# sourceURL=VaadinComponents-0.js
}